blob: 5a6ae7b869a80396010c3ea712e9b2d9070bd1a6 [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
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_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
cristy54378032012-12-04 15:52:20 +0000735SHAREARCH_RELATIVE_PATH
736SHAREARCH_DIRNAME
737SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000738SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000739CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000740DOCUMENTATION_PATH
741FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000742FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000743CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744CODER_DIRNAME
745MODULES_PATH
746MODULES_RELATIVE_PATH
747MODULES_DIRNAME
748MODULES_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000749LIBRARY_PATH
750EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000751INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000752PERLMAINCC
753XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754XML_DELEGATE_FALSE
755XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000756xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000757WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000758WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000759WMF_DELEGATE_FALSE
760WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000761WEBP_LIBS
762WEBP_DELEGATE_FALSE
763WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000764TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000765TIFF_DELEGATE_FALSE
766TIFF_DELEGATE_TRUE
767CAIRO_DELEGATE_FALSE
768CAIRO_DELEGATE_TRUE
769RSVG_DELEGATE_FALSE
770RSVG_DELEGATE_TRUE
771CAIRO_SVG_LIBS
772CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000773RSVG_LIBS
774RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000775PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000776PNG_DELEGATE_FALSE
777PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000778PANGOCAIRO_DELEGATE_FALSE
779PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000780PANGO_DELEGATE_FALSE
781PANGO_DELEGATE_TRUE
782PANGO_LIBS
783PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000784OPENEXR_DELEGATE_FALSE
785OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786OPENEXR_LIBS
787OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000788LZMA_DELEGATE_FALSE
789LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000790LZMA_LIBS
791LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000792LQR_DELEGATE_FALSE
793LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000794LQR_LIBS
795LQR_CFLAGS
796LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797LCMS_DELEGATE_FALSE
798LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000800JP2_DELEGATE_FALSE
801JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000803JPEG_DELEGATE_FALSE
804JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000805JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000806JBIG_DELEGATE_FALSE
807JBIG_DELEGATE_TRUE
808GVC_DELEGATE_FALSE
809GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810GVC_LIBS
811GVC_CFLAGS
812GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813GS_DELEGATE_FALSE
814GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816FREETYPE_DELEGATE_FALSE
817FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000818freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000819FONTCONFIG_DELEGATE_FALSE
820FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000821FONTCONFIG_LIBS
822FONTCONFIG_CFLAGS
823FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824FPX_DELEGATE_FALSE
825FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827FFTW_DELEGATE_FALSE
828FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000829DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000830DJVU_DELEGATE_FALSE
831DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000832DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000833DPS_DELEGATE_FALSE
834DPS_DELEGATE_TRUE
835AUTOTRACE_DELEGATE_FALSE
836AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000837AUTOTRACE_LIBS
838AUTOTRACE_CFLAGS
839LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000840WITH_LTDL_FALSE
841WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000842ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000843ZLIB_DELEGATE_FALSE
844ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000845XEXT_LIBS
846X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000847X11_DELEGATE_FALSE
848X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000849X_EXTRA_LIBS
850X_LIBS
851X_PRE_LIBS
852X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000853XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000854BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000855BZLIB_DELEGATE_FALSE
856BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000857CCMALLOCDelegate
858UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000859HasUMEM_FALSE
860HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000861THREAD_LIBS
862GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000863WITH_MAGICK_PLUS_PLUS_FALSE
864WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000865OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000866MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000867POW_LIB
868LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000869UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000870UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000871UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000872UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000873UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000874UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000875INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000876INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000877UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000878UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000879INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000880INT32_T
881UINT16_T
882INT16_T
883UINT8_T
884INT8_T
885LIBRARY_EXTRA_CPPFLAGS
886MODULE_EXTRA_CPPFLAGS
887LIBSTDCLDFLAGS
888PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000889MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000890MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000891QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000892LEGACY_SUPPORT_FALSE
893LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000894MAINT
895MAINTAINER_MODE_FALSE
896MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000897MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000898WITH_MODULES_FALSE
899WITH_MODULES_TRUE
900WITH_SHARED_LIBS_FALSE
901WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000902LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000903CXXCPP
904OTOOL64
905OTOOL
906LIPO
907NMEDIT
908DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000909MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000910RANLIB
cristyda16f162011-02-19 23:52:17 +0000911ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000912AR
913NM
914ac_ct_DUMPBIN
915DUMPBIN
916LIBTOOL
917OBJDUMP
918DLLTOOL
919AS
cristy3ed852e2009-09-05 21:47:34 +0000920LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000921CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000922CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000923OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000924PTHREAD_CFLAGS
925PTHREAD_LIBS
926PTHREAD_CC
927ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000928SHAREARCH_DIR
929INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000930WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000931USING_CL_FALSE
932USING_CL_TRUE
933CYGWIN_BUILD_FALSE
934CYGWIN_BUILD_TRUE
935WIN32_NATIVE_BUILD_FALSE
936WIN32_NATIVE_BUILD_TRUE
937WINGDI32_DELEGATE_FALSE
938WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000939GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000940HAVE_LD_VERSION_SCRIPT_FALSE
941HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000942PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000943PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000944LN_S
cristy3ed852e2009-09-05 21:47:34 +0000945LD
cristy73bd4a52010-10-05 11:24:23 +0000946FGREP
947SED
948am__fastdepCXX_FALSE
949am__fastdepCXX_TRUE
950CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000951ac_ct_CXX
952CXXFLAGS
953CXX
cristya0b81c32010-01-22 02:54:33 +0000954EGREP
955GREP
956CPP
cristy73bd4a52010-10-05 11:24:23 +0000957am__fastdepCC_FALSE
958am__fastdepCC_TRUE
959CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000960am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000961AMDEPBACKSLASH
962AMDEP_FALSE
963AMDEP_TRUE
964am__quote
965am__include
966DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000967OBJEXT
968EXEEXT
969ac_ct_CC
970CPPFLAGS
971LDFLAGS
972CFLAGS
973CC
974DIRSEP
975MAGICK_FILTER_MODULE_PATH
976MAGICK_CONFIGURE_BUILD_PATH
977MAGICK_CONFIGURE_SRC_PATH
978MAGICK_CODER_MODULE_PATH
979MAN_DIR
980INFO_DIR
981PERSISTINCLUDE_DIR
982INCLUDE_DIR
983LIB_DIR
984LOCALSTATE_DIR
985SHAREDSTATE_DIR
986SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000987DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000988DATA_DIR
989LIBEXEC_DIR
990SBIN_DIR
991BIN_DIR
992EXEC_PREFIX_DIR
993PREFIX_DIR
994CONFIG_STATUS_DEPENDENCIES
995MAGICK_LIB_VERSION_NUMBER
996MAGICK_LIB_VERSION_TEXT
997MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000998AM_BACKSLASH
999AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001000AM_DEFAULT_V
1001AM_V
cristy73bd4a52010-10-05 11:24:23 +00001002am__untar
1003am__tar
1004AMTAR
1005am__leading_dot
1006SET_MAKE
1007AWK
1008mkdir_p
1009MKDIR_P
1010INSTALL_STRIP_PROGRAM
1011STRIP
1012install_sh
1013MAKEINFO
1014AUTOHEADER
1015AUTOMAKE
1016AUTOCONF
1017ACLOCAL
1018VERSION
1019PACKAGE
1020CYGPATH_W
1021am__isrc
1022INSTALL_DATA
1023INSTALL_SCRIPT
1024INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001025PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001026PACKAGE_RELEASE_DATE
1027PACKAGE_LIB_VERSION_NUMBER
1028PACKAGE_LIB_VERSION
1029PACKAGE_CHANGE_DATE
1030PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001031PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001032MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001033MAGICK_LIBRARY_VERSION_INFO
1034MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001035MAGICK_LIBRARY_AGE
1036MAGICK_LIBRARY_REVISION
1037MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001038MAGICK_TARGET_OS
1039MAGICK_TARGET_VENDOR
1040MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001041target_os
1042target_vendor
1043target_cpu
1044target
1045host_os
1046host_vendor
1047host_cpu
1048host
1049build_os
1050build_vendor
1051build_cpu
1052build
1053CONFIGURE_ARGS
1054DISTCHECK_CONFIG_FLAGS
1055target_alias
1056host_alias
1057build_alias
1058LIBS
1059ECHO_T
1060ECHO_N
1061ECHO_C
1062DEFS
1063mandir
1064localedir
1065libdir
1066psdir
1067pdfdir
1068dvidir
1069htmldir
1070infodir
1071docdir
1072oldincludedir
1073includedir
1074localstatedir
1075sharedstatedir
1076sysconfdir
1077datadir
1078datarootdir
1079libexecdir
1080sbindir
1081bindir
1082program_transform_name
1083prefix
1084exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001085PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001086PACKAGE_BUGREPORT
1087PACKAGE_STRING
1088PACKAGE_VERSION
1089PACKAGE_TARNAME
1090PACKAGE_NAME
1091PATH_SEPARATOR
1092SHELL'
1093ac_subst_files=''
1094ac_user_opts='
1095enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001096enable_silent_rules
1097enable_dependency_tracking
1098with_gnu_ld
1099with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001100with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001101enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001102enable_bounds_checking
1103enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001104with_includearch_dir
1105with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001106with_threads
1107enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001108enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001109enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001110enable_shared
1111enable_static
1112with_pic
1113enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001114with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001115enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001116with_modules
1117enable_delegate_build
1118enable_deprecated
1119enable_installed
1120enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001121enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001122enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001123enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001124enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001125enable_ccmalloc
1126enable_efence
1127enable_prof
1128enable_gprof
1129enable_gcov
1130with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001131enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001132with_quantum_depth
1133with_cache
1134with_frozenpaths
1135with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001136with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001137with_perl
1138with_perl_options
1139with_umem
1140with_libstdc
1141with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001142with_x
cristy3ed852e2009-09-05 21:47:34 +00001143with_zlib
1144with_autotrace
1145with_dps
1146with_djvu
cristy430a7312010-01-21 20:44:04 +00001147with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001148with_fftw
1149with_fpx
1150with_fontconfig
1151with_freetype
1152with_gslib
1153with_fontpath
1154with_gs_font_dir
1155with_gvc
1156with_jbig
1157with_jpeg
1158with_jp2
1159with_lcms
cristy71203402010-06-18 13:12:03 +00001160with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001161with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001162with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001163with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001164with_pango
cristy3ed852e2009-09-05 21:47:34 +00001165with_png
1166with_rsvg
1167with_tiff
cristyb1860752011-03-14 00:27:46 +00001168with_webp
cristy3ed852e2009-09-05 21:47:34 +00001169with_windows_font_dir
1170with_wmf
1171with_xml
1172'
1173 ac_precious_vars='build_alias
1174host_alias
1175target_alias
1176CC
1177CFLAGS
1178LDFLAGS
1179LIBS
1180CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001181CPP
cristy3ed852e2009-09-05 21:47:34 +00001182CXX
1183CXXFLAGS
1184CCC
cristy73bd4a52010-10-05 11:24:23 +00001185PKG_CONFIG
1186CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001187XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001188AUTOTRACE_CFLAGS
1189AUTOTRACE_LIBS
1190FONTCONFIG_CFLAGS
1191FONTCONFIG_LIBS
1192GVC_CFLAGS
1193GVC_LIBS
1194LQR_CFLAGS
1195LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001196LZMA_CFLAGS
1197LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001198OPENEXR_CFLAGS
1199OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001200PANGO_CFLAGS
1201PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001202RSVG_CFLAGS
1203RSVG_LIBS
1204CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001205CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001206
1207
1208# Initialize some variables set by options.
1209ac_init_help=
1210ac_init_version=false
1211ac_unrecognized_opts=
1212ac_unrecognized_sep=
1213# The variables have the same names as the options, with
1214# dashes changed to underlines.
1215cache_file=/dev/null
1216exec_prefix=NONE
1217no_create=
1218no_recursion=
1219prefix=NONE
1220program_prefix=NONE
1221program_suffix=NONE
1222program_transform_name=s,x,x,
1223silent=
1224site=
1225srcdir=
1226verbose=
1227x_includes=NONE
1228x_libraries=NONE
1229
1230# Installation directory options.
1231# These are left unexpanded so users can "make install exec_prefix=/foo"
1232# and all the variables that are supposed to be based on exec_prefix
1233# by default will actually change.
1234# Use braces instead of parens because sh, perl, etc. also accept them.
1235# (The list follows the same order as the GNU Coding Standards.)
1236bindir='${exec_prefix}/bin'
1237sbindir='${exec_prefix}/sbin'
1238libexecdir='${exec_prefix}/libexec'
1239datarootdir='${prefix}/share'
1240datadir='${datarootdir}'
1241sysconfdir='${prefix}/etc'
1242sharedstatedir='${prefix}/com'
1243localstatedir='${prefix}/var'
1244includedir='${prefix}/include'
1245oldincludedir='/usr/include'
1246docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1247infodir='${datarootdir}/info'
1248htmldir='${docdir}'
1249dvidir='${docdir}'
1250pdfdir='${docdir}'
1251psdir='${docdir}'
1252libdir='${exec_prefix}/lib'
1253localedir='${datarootdir}/locale'
1254mandir='${datarootdir}/man'
1255
1256ac_prev=
1257ac_dashdash=
1258for ac_option
1259do
1260 # If the previous option needs an argument, assign it.
1261 if test -n "$ac_prev"; then
1262 eval $ac_prev=\$ac_option
1263 ac_prev=
1264 continue
1265 fi
1266
1267 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001268 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1269 *=) ac_optarg= ;;
1270 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001271 esac
1272
1273 # Accept the important Cygnus configure options, so we can diagnose typos.
1274
1275 case $ac_dashdash$ac_option in
1276 --)
1277 ac_dashdash=yes ;;
1278
1279 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1280 ac_prev=bindir ;;
1281 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1282 bindir=$ac_optarg ;;
1283
1284 -build | --build | --buil | --bui | --bu)
1285 ac_prev=build_alias ;;
1286 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1287 build_alias=$ac_optarg ;;
1288
1289 -cache-file | --cache-file | --cache-fil | --cache-fi \
1290 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1291 ac_prev=cache_file ;;
1292 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1293 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1294 cache_file=$ac_optarg ;;
1295
1296 --config-cache | -C)
1297 cache_file=config.cache ;;
1298
1299 -datadir | --datadir | --datadi | --datad)
1300 ac_prev=datadir ;;
1301 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1302 datadir=$ac_optarg ;;
1303
1304 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1305 | --dataroo | --dataro | --datar)
1306 ac_prev=datarootdir ;;
1307 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1308 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1309 datarootdir=$ac_optarg ;;
1310
1311 -disable-* | --disable-*)
1312 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001315 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001316 ac_useropt_orig=$ac_useropt
1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1319 *"
1320"enable_$ac_useropt"
1321"*) ;;
1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1323 ac_unrecognized_sep=', ';;
1324 esac
1325 eval enable_$ac_useropt=no ;;
1326
1327 -docdir | --docdir | --docdi | --doc | --do)
1328 ac_prev=docdir ;;
1329 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1330 docdir=$ac_optarg ;;
1331
1332 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1333 ac_prev=dvidir ;;
1334 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1335 dvidir=$ac_optarg ;;
1336
1337 -enable-* | --enable-*)
1338 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1339 # Reject names that are not valid shell variable names.
1340 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001341 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001342 ac_useropt_orig=$ac_useropt
1343 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1344 case $ac_user_opts in
1345 *"
1346"enable_$ac_useropt"
1347"*) ;;
1348 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1349 ac_unrecognized_sep=', ';;
1350 esac
1351 eval enable_$ac_useropt=\$ac_optarg ;;
1352
1353 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1354 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1355 | --exec | --exe | --ex)
1356 ac_prev=exec_prefix ;;
1357 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1358 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1359 | --exec=* | --exe=* | --ex=*)
1360 exec_prefix=$ac_optarg ;;
1361
1362 -gas | --gas | --ga | --g)
1363 # Obsolete; use --with-gas.
1364 with_gas=yes ;;
1365
1366 -help | --help | --hel | --he | -h)
1367 ac_init_help=long ;;
1368 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1369 ac_init_help=recursive ;;
1370 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1371 ac_init_help=short ;;
1372
1373 -host | --host | --hos | --ho)
1374 ac_prev=host_alias ;;
1375 -host=* | --host=* | --hos=* | --ho=*)
1376 host_alias=$ac_optarg ;;
1377
1378 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1379 ac_prev=htmldir ;;
1380 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1381 | --ht=*)
1382 htmldir=$ac_optarg ;;
1383
1384 -includedir | --includedir | --includedi | --included | --include \
1385 | --includ | --inclu | --incl | --inc)
1386 ac_prev=includedir ;;
1387 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1388 | --includ=* | --inclu=* | --incl=* | --inc=*)
1389 includedir=$ac_optarg ;;
1390
1391 -infodir | --infodir | --infodi | --infod | --info | --inf)
1392 ac_prev=infodir ;;
1393 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1394 infodir=$ac_optarg ;;
1395
1396 -libdir | --libdir | --libdi | --libd)
1397 ac_prev=libdir ;;
1398 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1399 libdir=$ac_optarg ;;
1400
1401 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1402 | --libexe | --libex | --libe)
1403 ac_prev=libexecdir ;;
1404 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1405 | --libexe=* | --libex=* | --libe=*)
1406 libexecdir=$ac_optarg ;;
1407
1408 -localedir | --localedir | --localedi | --localed | --locale)
1409 ac_prev=localedir ;;
1410 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1411 localedir=$ac_optarg ;;
1412
1413 -localstatedir | --localstatedir | --localstatedi | --localstated \
1414 | --localstate | --localstat | --localsta | --localst | --locals)
1415 ac_prev=localstatedir ;;
1416 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1417 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1418 localstatedir=$ac_optarg ;;
1419
1420 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1421 ac_prev=mandir ;;
1422 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1423 mandir=$ac_optarg ;;
1424
1425 -nfp | --nfp | --nf)
1426 # Obsolete; use --without-fp.
1427 with_fp=no ;;
1428
1429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1430 | --no-cr | --no-c | -n)
1431 no_create=yes ;;
1432
1433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1435 no_recursion=yes ;;
1436
1437 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1438 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1439 | --oldin | --oldi | --old | --ol | --o)
1440 ac_prev=oldincludedir ;;
1441 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1442 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1443 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1444 oldincludedir=$ac_optarg ;;
1445
1446 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1447 ac_prev=prefix ;;
1448 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1449 prefix=$ac_optarg ;;
1450
1451 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1452 | --program-pre | --program-pr | --program-p)
1453 ac_prev=program_prefix ;;
1454 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1455 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1456 program_prefix=$ac_optarg ;;
1457
1458 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1459 | --program-suf | --program-su | --program-s)
1460 ac_prev=program_suffix ;;
1461 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1462 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1463 program_suffix=$ac_optarg ;;
1464
1465 -program-transform-name | --program-transform-name \
1466 | --program-transform-nam | --program-transform-na \
1467 | --program-transform-n | --program-transform- \
1468 | --program-transform | --program-transfor \
1469 | --program-transfo | --program-transf \
1470 | --program-trans | --program-tran \
1471 | --progr-tra | --program-tr | --program-t)
1472 ac_prev=program_transform_name ;;
1473 -program-transform-name=* | --program-transform-name=* \
1474 | --program-transform-nam=* | --program-transform-na=* \
1475 | --program-transform-n=* | --program-transform-=* \
1476 | --program-transform=* | --program-transfor=* \
1477 | --program-transfo=* | --program-transf=* \
1478 | --program-trans=* | --program-tran=* \
1479 | --progr-tra=* | --program-tr=* | --program-t=*)
1480 program_transform_name=$ac_optarg ;;
1481
1482 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1483 ac_prev=pdfdir ;;
1484 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1485 pdfdir=$ac_optarg ;;
1486
1487 -psdir | --psdir | --psdi | --psd | --ps)
1488 ac_prev=psdir ;;
1489 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1490 psdir=$ac_optarg ;;
1491
1492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1493 | -silent | --silent | --silen | --sile | --sil)
1494 silent=yes ;;
1495
1496 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1497 ac_prev=sbindir ;;
1498 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1499 | --sbi=* | --sb=*)
1500 sbindir=$ac_optarg ;;
1501
1502 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1503 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1504 | --sharedst | --shareds | --shared | --share | --shar \
1505 | --sha | --sh)
1506 ac_prev=sharedstatedir ;;
1507 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1508 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1509 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1510 | --sha=* | --sh=*)
1511 sharedstatedir=$ac_optarg ;;
1512
1513 -site | --site | --sit)
1514 ac_prev=site ;;
1515 -site=* | --site=* | --sit=*)
1516 site=$ac_optarg ;;
1517
1518 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1519 ac_prev=srcdir ;;
1520 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1521 srcdir=$ac_optarg ;;
1522
1523 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1524 | --syscon | --sysco | --sysc | --sys | --sy)
1525 ac_prev=sysconfdir ;;
1526 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1527 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1528 sysconfdir=$ac_optarg ;;
1529
1530 -target | --target | --targe | --targ | --tar | --ta | --t)
1531 ac_prev=target_alias ;;
1532 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1533 target_alias=$ac_optarg ;;
1534
1535 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1536 verbose=yes ;;
1537
1538 -version | --version | --versio | --versi | --vers | -V)
1539 ac_init_version=: ;;
1540
1541 -with-* | --with-*)
1542 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1543 # Reject names that are not valid shell variable names.
1544 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001545 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001546 ac_useropt_orig=$ac_useropt
1547 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1548 case $ac_user_opts in
1549 *"
1550"with_$ac_useropt"
1551"*) ;;
1552 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1553 ac_unrecognized_sep=', ';;
1554 esac
1555 eval with_$ac_useropt=\$ac_optarg ;;
1556
1557 -without-* | --without-*)
1558 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1559 # Reject names that are not valid shell variable names.
1560 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001561 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001562 ac_useropt_orig=$ac_useropt
1563 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1564 case $ac_user_opts in
1565 *"
1566"with_$ac_useropt"
1567"*) ;;
1568 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1569 ac_unrecognized_sep=', ';;
1570 esac
1571 eval with_$ac_useropt=no ;;
1572
1573 --x)
1574 # Obsolete; use --with-x.
1575 with_x=yes ;;
1576
1577 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1578 | --x-incl | --x-inc | --x-in | --x-i)
1579 ac_prev=x_includes ;;
1580 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1581 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1582 x_includes=$ac_optarg ;;
1583
1584 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1585 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1586 ac_prev=x_libraries ;;
1587 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1588 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1589 x_libraries=$ac_optarg ;;
1590
cristy98dddb52010-11-04 00:30:15 +00001591 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1592Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001593 ;;
1594
1595 *=*)
1596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1597 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001598 case $ac_envvar in #(
1599 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001600 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001601 esac
cristy3ed852e2009-09-05 21:47:34 +00001602 eval $ac_envvar=\$ac_optarg
1603 export $ac_envvar ;;
1604
1605 *)
1606 # FIXME: should be removed in autoconf 3.0.
1607 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1609 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001610 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001611 ;;
1612
1613 esac
1614done
1615
1616if test -n "$ac_prev"; then
1617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001618 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001619fi
1620
1621if test -n "$ac_unrecognized_opts"; then
1622 case $enable_option_checking in
1623 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001624 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001625 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1626 esac
1627fi
1628
1629# Check all directory arguments for consistency.
1630for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1631 datadir sysconfdir sharedstatedir localstatedir includedir \
1632 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1633 libdir localedir mandir
1634do
1635 eval ac_val=\$$ac_var
1636 # Remove trailing slashes.
1637 case $ac_val in
1638 */ )
1639 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1640 eval $ac_var=\$ac_val;;
1641 esac
1642 # Be sure to have absolute directory names.
1643 case $ac_val in
1644 [\\/$]* | ?:[\\/]* ) continue;;
1645 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1646 esac
cristy98dddb52010-11-04 00:30:15 +00001647 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001648done
1649
1650# There might be people who depend on the old broken behavior: `$host'
1651# used to hold the argument of --host etc.
1652# FIXME: To remove some day.
1653build=$build_alias
1654host=$host_alias
1655target=$target_alias
1656
1657# FIXME: To remove some day.
1658if test "x$host_alias" != x; then
1659 if test "x$build_alias" = x; then
1660 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001661 elif test "x$build_alias" != "x$host_alias"; then
1662 cross_compiling=yes
1663 fi
1664fi
1665
1666ac_tool_prefix=
1667test -n "$host_alias" && ac_tool_prefix=$host_alias-
1668
1669test "$silent" = yes && exec 6>/dev/null
1670
1671
1672ac_pwd=`pwd` && test -n "$ac_pwd" &&
1673ac_ls_di=`ls -di .` &&
1674ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001675 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001676test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001677 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001678
1679
1680# Find the source files, if location was not specified.
1681if test -z "$srcdir"; then
1682 ac_srcdir_defaulted=yes
1683 # Try the directory containing this script, then the parent directory.
1684 ac_confdir=`$as_dirname -- "$as_myself" ||
1685$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1686 X"$as_myself" : 'X\(//\)[^/]' \| \
1687 X"$as_myself" : 'X\(//\)$' \| \
1688 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1689$as_echo X"$as_myself" |
1690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1691 s//\1/
1692 q
1693 }
1694 /^X\(\/\/\)[^/].*/{
1695 s//\1/
1696 q
1697 }
1698 /^X\(\/\/\)$/{
1699 s//\1/
1700 q
1701 }
1702 /^X\(\/\).*/{
1703 s//\1/
1704 q
1705 }
1706 s/.*/./; q'`
1707 srcdir=$ac_confdir
1708 if test ! -r "$srcdir/$ac_unique_file"; then
1709 srcdir=..
1710 fi
1711else
1712 ac_srcdir_defaulted=no
1713fi
1714if test ! -r "$srcdir/$ac_unique_file"; then
1715 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001716 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001717fi
1718ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1719ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001720 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001721 pwd)`
1722# When building in place, set srcdir=.
1723if test "$ac_abs_confdir" = "$ac_pwd"; then
1724 srcdir=.
1725fi
1726# Remove unnecessary trailing slashes from srcdir.
1727# Double slashes in file names in object file debugging info
1728# mess up M-x gdb in Emacs.
1729case $srcdir in
1730*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1731esac
1732for ac_var in $ac_precious_vars; do
1733 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1734 eval ac_env_${ac_var}_value=\$${ac_var}
1735 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1736 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1737done
1738
1739#
1740# Report the --help message.
1741#
1742if test "$ac_init_help" = "long"; then
1743 # Omit some internal or obsolete options to make the list less imposing.
1744 # This message is too long to be a string in the A/UX 3.1 sh.
1745 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001746\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001747
1748Usage: $0 [OPTION]... [VAR=VALUE]...
1749
1750To assign environment variables (e.g., CC, CFLAGS...), specify them as
1751VAR=VALUE. See below for descriptions of some of the useful variables.
1752
1753Defaults for the options are specified in brackets.
1754
1755Configuration:
1756 -h, --help display this help and exit
1757 --help=short display options specific to this package
1758 --help=recursive display the short help of all the included packages
1759 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001760 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001761 --cache-file=FILE cache test results in FILE [disabled]
1762 -C, --config-cache alias for \`--cache-file=config.cache'
1763 -n, --no-create do not create output files
1764 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1765
1766Installation directories:
1767 --prefix=PREFIX install architecture-independent files in PREFIX
1768 [$ac_default_prefix]
1769 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1770 [PREFIX]
1771
1772By default, \`make install' will install all the files in
1773\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1774an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1775for instance \`--prefix=\$HOME'.
1776
1777For better control, use the options below.
1778
1779Fine tuning of the installation directories:
1780 --bindir=DIR user executables [EPREFIX/bin]
1781 --sbindir=DIR system admin executables [EPREFIX/sbin]
1782 --libexecdir=DIR program executables [EPREFIX/libexec]
1783 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1784 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1785 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1786 --libdir=DIR object code libraries [EPREFIX/lib]
1787 --includedir=DIR C header files [PREFIX/include]
1788 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1789 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1790 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1791 --infodir=DIR info documentation [DATAROOTDIR/info]
1792 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1793 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001794 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001795 --htmldir=DIR html documentation [DOCDIR]
1796 --dvidir=DIR dvi documentation [DOCDIR]
1797 --pdfdir=DIR pdf documentation [DOCDIR]
1798 --psdir=DIR ps documentation [DOCDIR]
1799_ACEOF
1800
1801 cat <<\_ACEOF
1802
cristy73bd4a52010-10-05 11:24:23 +00001803Program names:
1804 --program-prefix=PREFIX prepend PREFIX to installed program names
1805 --program-suffix=SUFFIX append SUFFIX to installed program names
1806 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1807
cristy3ed852e2009-09-05 21:47:34 +00001808X features:
1809 --x-includes=DIR X include files are in DIR
1810 --x-libraries=DIR X library files are in DIR
1811
1812System types:
1813 --build=BUILD configure for building on BUILD [guessed]
1814 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1815 --target=TARGET configure for building compilers for TARGET [HOST]
1816_ACEOF
1817fi
1818
1819if test -n "$ac_init_help"; then
1820 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001821 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001822 esac
1823 cat <<\_ACEOF
1824
1825Optional Features:
1826 --disable-option-checking ignore unrecognized --enable/--with options
1827 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1828 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001829 --enable-silent-rules less verbose build output (undo: "make V=1")
1830 --disable-silent-rules verbose build output (undo: "make V=0")
1831 --enable-dependency-tracking
1832 do not reject slow dependency extractors
1833 --disable-dependency-tracking
1834 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001835 --enable-ld-version-script
1836 enable linker version script (default is enabled
1837 when possible)
cristya3824692012-03-30 17:22:07 +00001838 --enable-bounds-checking
1839 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001840 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001841 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001842 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001843 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001844 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001845 --enable-shared[=PKGS] build shared libraries [default=yes]
1846 --enable-static[=PKGS] build static libraries [default=yes]
1847 --enable-fast-install[=PKGS]
1848 optimize for fast installation [default=yes]
1849 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001850 --enable-delegate-build look for delegate libraries in build directory
1851 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001852 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001853 --disable-installed Formally install ImageMagick under PREFIX
1854 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001855 --enable-zero-configuration
1856 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001857 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001858 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001859 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001860 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001861 --enable-maintainer-mode
1862 enable make rules and dependencies not useful (and
1863 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001864 --enable-ccmalloc enable 'ccmalloc' memory debug support
1865 --enable-efence enable 'efence' memory debug support
1866 --enable-prof enable 'prof' profiling support
1867 --enable-gprof enable 'gprof' profiling support
1868 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001869 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001870 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001871
1872Optional Packages:
1873 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1874 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001875 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001876 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001877 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1878 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001879 --includearch-dir=DIR ARCH specific include directory
1880 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001881 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001882 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001883 both]
cristyda16f162011-02-19 23:52:17 +00001884 --with-sysroot=DIR Search for dependent libraries within DIR
1885 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001886 --with-modules enable building dynamically loadable modules
1887 --with-method-prefix=PREFIX
1888 prefix MagickCore API methods
1889 --with-quantum-depth=DEPTH
1890 number of bits in a pixel quantum (default 16)
1891 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1892 memory)
1893 --with-frozenpaths freeze delegate paths
1894 --without-magick-plus-plus
1895 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001896 --with-package-release-name=NAME
1897 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001898 --with-perl enable build/install of PerlMagick
1899 --with-perl-options=OPTIONS
1900 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001901 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001902 --with-umem enable umem memory allocation library support
1903 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1904 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001905 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001906 --without-zlib disable ZLIB support
1907 --with-autotrace enable autotrace support
1908 --without-dps disable Display Postscript support
1909 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001910 --with-dejavu-font-dir=DIR
1911 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001912 --without-fftw disable FFTW support
1913 --without-fpx disable FlashPIX support
1914 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001915 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001916 --without-gslib enable Ghostscript library support
1917 --with-fontpath=DIR prepend to default font search path
1918 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001919 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001920 --without-jbig disable JBIG support
1921 --without-jpeg disable JPEG support
1922 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001923 --without-lcms disable lcms (v1.1X) support
1924 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001925 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001926 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001927 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001928 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001929 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001930 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001931 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001932 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001933 --with-windows-font-dir=DIR
1934 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001935 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001936 --without-xml disable XML support
1937
1938Some influential environment variables:
1939 CC C compiler command
1940 CFLAGS C compiler flags
1941 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1942 nonstandard directory <lib dir>
1943 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001944 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001945 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001946 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001947 CXX C++ compiler command
1948 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001949 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001950 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001951 XMKMF Path to xmkmf, Makefile generator for X Window System
1952 AUTOTRACE_CFLAGS
1953 C compiler flags for AUTOTRACE, overriding pkg-config
1954 AUTOTRACE_LIBS
1955 linker flags for AUTOTRACE, overriding pkg-config
1956 FONTCONFIG_CFLAGS
1957 C compiler flags for FONTCONFIG, overriding pkg-config
1958 FONTCONFIG_LIBS
1959 linker flags for FONTCONFIG, overriding pkg-config
1960 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1961 GVC_LIBS linker flags for GVC, overriding pkg-config
1962 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1963 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001964 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1965 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001966 OPENEXR_CFLAGS
1967 C compiler flags for OPENEXR, overriding pkg-config
1968 OPENEXR_LIBS
1969 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001970 PANGO_CFLAGS
1971 C compiler flags for PANGO, overriding pkg-config
1972 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001973 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1974 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1975 CAIRO_SVG_CFLAGS
1976 C compiler flags for CAIRO_SVG, overriding pkg-config
1977 CAIRO_SVG_LIBS
1978 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001979
1980Use these variables to override the choices made by `configure' or to help
1981it to find libraries and programs with nonstandard names/locations.
1982
1983Report bugs to <http://www.imagemagick.org>.
1984_ACEOF
1985ac_status=$?
1986fi
1987
1988if test "$ac_init_help" = "recursive"; then
1989 # If there are subdirs, report their specific --help.
1990 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1991 test -d "$ac_dir" ||
1992 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1993 continue
1994 ac_builddir=.
1995
1996case "$ac_dir" in
1997.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1998*)
1999 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2000 # A ".." for each directory in $ac_dir_suffix.
2001 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2002 case $ac_top_builddir_sub in
2003 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2004 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2005 esac ;;
2006esac
2007ac_abs_top_builddir=$ac_pwd
2008ac_abs_builddir=$ac_pwd$ac_dir_suffix
2009# for backward compatibility:
2010ac_top_builddir=$ac_top_build_prefix
2011
2012case $srcdir in
2013 .) # We are building in place.
2014 ac_srcdir=.
2015 ac_top_srcdir=$ac_top_builddir_sub
2016 ac_abs_top_srcdir=$ac_pwd ;;
2017 [\\/]* | ?:[\\/]* ) # Absolute name.
2018 ac_srcdir=$srcdir$ac_dir_suffix;
2019 ac_top_srcdir=$srcdir
2020 ac_abs_top_srcdir=$srcdir ;;
2021 *) # Relative name.
2022 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2023 ac_top_srcdir=$ac_top_build_prefix$srcdir
2024 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2025esac
2026ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2027
2028 cd "$ac_dir" || { ac_status=$?; continue; }
2029 # Check for guested configure.
2030 if test -f "$ac_srcdir/configure.gnu"; then
2031 echo &&
2032 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2033 elif test -f "$ac_srcdir/configure"; then
2034 echo &&
2035 $SHELL "$ac_srcdir/configure" --help=recursive
2036 else
2037 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2038 fi || ac_status=$?
2039 cd "$ac_pwd" || { ac_status=$?; break; }
2040 done
2041fi
2042
2043test -n "$ac_init_help" && exit $ac_status
2044if $ac_init_version; then
2045 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002046ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002047generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002048
cristy14fefe52012-05-21 00:59:18 +00002049Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002050This configure script is free software; the Free Software Foundation
2051gives unlimited permission to copy, distribute and modify it.
2052_ACEOF
2053 exit
2054fi
cristy8b350f62009-11-15 23:12:43 +00002055
2056## ------------------------ ##
2057## Autoconf initialization. ##
2058## ------------------------ ##
2059
2060# ac_fn_c_try_compile LINENO
2061# --------------------------
2062# Try to compile conftest.$ac_ext, and return whether this succeeded.
2063ac_fn_c_try_compile ()
2064{
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 rm -f conftest.$ac_objext
2067 if { { ac_try="$ac_compile"
2068case "(($ac_try" in
2069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070 *) ac_try_echo=$ac_try;;
2071esac
2072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2073$as_echo "$ac_try_echo"; } >&5
2074 (eval "$ac_compile") 2>conftest.err
2075 ac_status=$?
2076 if test -s conftest.err; then
2077 grep -v '^ *+' conftest.err >conftest.er1
2078 cat conftest.er1 >&5
2079 mv -f conftest.er1 conftest.err
2080 fi
2081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2082 test $ac_status = 0; } && {
2083 test -z "$ac_c_werror_flag" ||
2084 test ! -s conftest.err
2085 } && test -s conftest.$ac_objext; then :
2086 ac_retval=0
2087else
2088 $as_echo "$as_me: failed program was:" >&5
2089sed 's/^/| /' conftest.$ac_ext >&5
2090
2091 ac_retval=1
2092fi
cristyda16f162011-02-19 23:52:17 +00002093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002094 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002095
2096} # ac_fn_c_try_compile
2097
cristy95646052009-11-28 23:05:30 +00002098# ac_fn_c_try_cpp LINENO
2099# ----------------------
2100# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2101ac_fn_c_try_cpp ()
2102{
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 if { { ac_try="$ac_cpp conftest.$ac_ext"
2105case "(($ac_try" in
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2108esac
2109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110$as_echo "$ac_try_echo"; } >&5
2111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2112 ac_status=$?
2113 if test -s conftest.err; then
2114 grep -v '^ *+' conftest.err >conftest.er1
2115 cat conftest.er1 >&5
2116 mv -f conftest.er1 conftest.err
2117 fi
2118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002119 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2121 test ! -s conftest.err
2122 }; then :
2123 ac_retval=0
2124else
2125 $as_echo "$as_me: failed program was:" >&5
2126sed 's/^/| /' conftest.$ac_ext >&5
2127
2128 ac_retval=1
2129fi
cristyda16f162011-02-19 23:52:17 +00002130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002131 as_fn_set_status $ac_retval
2132
2133} # ac_fn_c_try_cpp
2134
cristy8b350f62009-11-15 23:12:43 +00002135# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2136# -------------------------------------------------------
2137# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2138# the include files in INCLUDES and setting the cache variable VAR
2139# accordingly.
2140ac_fn_c_check_header_mongrel ()
2141{
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002143 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2145$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002146if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002147 $as_echo_n "(cached) " >&6
2148fi
2149eval ac_res=\$$3
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151$as_echo "$ac_res" >&6; }
2152else
2153 # Is the header compilable?
2154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2155$as_echo_n "checking $2 usability... " >&6; }
2156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157/* end confdefs.h. */
2158$4
2159#include <$2>
2160_ACEOF
2161if ac_fn_c_try_compile "$LINENO"; then :
2162 ac_header_compiler=yes
2163else
2164 ac_header_compiler=no
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2168$as_echo "$ac_header_compiler" >&6; }
2169
2170# Is the header present?
2171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2172$as_echo_n "checking $2 presence... " >&6; }
2173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h. */
2175#include <$2>
2176_ACEOF
2177if ac_fn_c_try_cpp "$LINENO"; then :
2178 ac_header_preproc=yes
2179else
2180 ac_header_preproc=no
2181fi
cristyda16f162011-02-19 23:52:17 +00002182rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2184$as_echo "$ac_header_preproc" >&6; }
2185
2186# So? What about this header?
2187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2188 yes:no: )
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2190$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2192$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2193 ;;
2194 no:yes:* )
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2196$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2198$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2200$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2202$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2204$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002205( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002206## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002207## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002208 ) | sed "s/^/$as_me: WARNING: /" >&2
2209 ;;
2210esac
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2212$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002213if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002214 $as_echo_n "(cached) " >&6
2215else
2216 eval "$3=\$ac_header_compiler"
2217fi
2218eval ac_res=\$$3
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2220$as_echo "$ac_res" >&6; }
2221fi
cristyda16f162011-02-19 23:52:17 +00002222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002223
2224} # ac_fn_c_check_header_mongrel
2225
2226# ac_fn_c_try_run LINENO
2227# ----------------------
2228# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2229# that executables *can* be run.
2230ac_fn_c_try_run ()
2231{
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 if { { ac_try="$ac_link"
2234case "(($ac_try" in
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2237esac
2238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239$as_echo "$ac_try_echo"; } >&5
2240 (eval "$ac_link") 2>&5
2241 ac_status=$?
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2244 { { case "(($ac_try" in
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2247esac
2248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2249$as_echo "$ac_try_echo"; } >&5
2250 (eval "$ac_try") 2>&5
2251 ac_status=$?
2252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253 test $ac_status = 0; }; }; then :
2254 ac_retval=0
2255else
2256 $as_echo "$as_me: program exited with status $ac_status" >&5
2257 $as_echo "$as_me: failed program was:" >&5
2258sed 's/^/| /' conftest.$ac_ext >&5
2259
2260 ac_retval=$ac_status
2261fi
2262 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002263 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002264 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002265
2266} # ac_fn_c_try_run
2267
2268# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2269# -------------------------------------------------------
2270# Tests whether HEADER exists and can be compiled using the include files in
2271# INCLUDES, setting the cache variable VAR accordingly.
2272ac_fn_c_check_header_compile ()
2273{
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002277if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002278 $as_echo_n "(cached) " >&6
2279else
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281/* end confdefs.h. */
2282$4
2283#include <$2>
2284_ACEOF
2285if ac_fn_c_try_compile "$LINENO"; then :
2286 eval "$3=yes"
2287else
2288 eval "$3=no"
2289fi
2290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291fi
2292eval ac_res=\$$3
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002296
2297} # ac_fn_c_check_header_compile
2298
cristya0b81c32010-01-22 02:54:33 +00002299# ac_fn_cxx_try_compile LINENO
2300# ----------------------------
2301# Try to compile conftest.$ac_ext, and return whether this succeeded.
2302ac_fn_cxx_try_compile ()
2303{
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 rm -f conftest.$ac_objext
2306 if { { ac_try="$ac_compile"
2307case "(($ac_try" in
2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309 *) ac_try_echo=$ac_try;;
2310esac
2311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2312$as_echo "$ac_try_echo"; } >&5
2313 (eval "$ac_compile") 2>conftest.err
2314 ac_status=$?
2315 if test -s conftest.err; then
2316 grep -v '^ *+' conftest.err >conftest.er1
2317 cat conftest.er1 >&5
2318 mv -f conftest.er1 conftest.err
2319 fi
2320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2321 test $ac_status = 0; } && {
2322 test -z "$ac_cxx_werror_flag" ||
2323 test ! -s conftest.err
2324 } && test -s conftest.$ac_objext; then :
2325 ac_retval=0
2326else
2327 $as_echo "$as_me: failed program was:" >&5
2328sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 ac_retval=1
2331fi
cristyda16f162011-02-19 23:52:17 +00002332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002333 as_fn_set_status $ac_retval
2334
2335} # ac_fn_cxx_try_compile
2336
cristy8b350f62009-11-15 23:12:43 +00002337# ac_fn_c_try_link LINENO
2338# -----------------------
2339# Try to link conftest.$ac_ext, and return whether this succeeded.
2340ac_fn_c_try_link ()
2341{
2342 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2343 rm -f conftest.$ac_objext conftest$ac_exeext
2344 if { { ac_try="$ac_link"
2345case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348esac
2349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2350$as_echo "$ac_try_echo"; } >&5
2351 (eval "$ac_link") 2>conftest.err
2352 ac_status=$?
2353 if test -s conftest.err; then
2354 grep -v '^ *+' conftest.err >conftest.er1
2355 cat conftest.er1 >&5
2356 mv -f conftest.er1 conftest.err
2357 fi
2358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2359 test $ac_status = 0; } && {
2360 test -z "$ac_c_werror_flag" ||
2361 test ! -s conftest.err
2362 } && test -s conftest$ac_exeext && {
2363 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002364 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002365 }; then :
2366 ac_retval=0
2367else
2368 $as_echo "$as_me: failed program was:" >&5
2369sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 ac_retval=1
2372fi
2373 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2374 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2375 # interfere with the next link command; also delete a directory that is
2376 # left behind by Apple's compiler. We do this before executing the actions.
2377 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002378 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002379 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002380
2381} # ac_fn_c_try_link
2382
cristy73bd4a52010-10-05 11:24:23 +00002383# ac_fn_c_check_func LINENO FUNC VAR
2384# ----------------------------------
2385# Tests whether FUNC exists, setting the cache variable VAR accordingly
2386ac_fn_c_check_func ()
2387{
2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2390$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002391if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002392 $as_echo_n "(cached) " >&6
2393else
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395/* end confdefs.h. */
2396/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2398#define $2 innocuous_$2
2399
2400/* System header to define __stub macros and hopefully few prototypes,
2401 which can conflict with char $2 (); below.
2402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2403 <limits.h> exists even on freestanding compilers. */
2404
2405#ifdef __STDC__
2406# include <limits.h>
2407#else
2408# include <assert.h>
2409#endif
2410
2411#undef $2
2412
2413/* Override any GCC internal prototype to avoid an error.
2414 Use char because int might match the return type of a GCC
2415 builtin and then its argument prototype would still apply. */
2416#ifdef __cplusplus
2417extern "C"
2418#endif
2419char $2 ();
2420/* The GNU C library defines this for functions which it implements
2421 to always fail with ENOSYS. Some functions are actually named
2422 something starting with __ and the normal name is an alias. */
2423#if defined __stub_$2 || defined __stub___$2
2424choke me
2425#endif
2426
2427int
2428main ()
2429{
2430return $2 ();
2431 ;
2432 return 0;
2433}
2434_ACEOF
2435if ac_fn_c_try_link "$LINENO"; then :
2436 eval "$3=yes"
2437else
2438 eval "$3=no"
2439fi
2440rm -f core conftest.err conftest.$ac_objext \
2441 conftest$ac_exeext conftest.$ac_ext
2442fi
2443eval ac_res=\$$3
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002446 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002447
2448} # ac_fn_c_check_func
2449
2450# ac_fn_cxx_try_cpp LINENO
2451# ------------------------
2452# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2453ac_fn_cxx_try_cpp ()
2454{
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 if { { ac_try="$ac_cpp conftest.$ac_ext"
2457case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2460esac
2461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462$as_echo "$ac_try_echo"; } >&5
2463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2464 ac_status=$?
2465 if test -s conftest.err; then
2466 grep -v '^ *+' conftest.err >conftest.er1
2467 cat conftest.er1 >&5
2468 mv -f conftest.er1 conftest.err
2469 fi
2470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002471 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002472 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2473 test ! -s conftest.err
2474 }; then :
2475 ac_retval=0
2476else
2477 $as_echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
2480 ac_retval=1
2481fi
cristyda16f162011-02-19 23:52:17 +00002482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002483 as_fn_set_status $ac_retval
2484
2485} # ac_fn_cxx_try_cpp
2486
2487# ac_fn_cxx_try_link LINENO
2488# -------------------------
2489# Try to link conftest.$ac_ext, and return whether this succeeded.
2490ac_fn_cxx_try_link ()
2491{
2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493 rm -f conftest.$ac_objext conftest$ac_exeext
2494 if { { ac_try="$ac_link"
2495case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2498esac
2499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2500$as_echo "$ac_try_echo"; } >&5
2501 (eval "$ac_link") 2>conftest.err
2502 ac_status=$?
2503 if test -s conftest.err; then
2504 grep -v '^ *+' conftest.err >conftest.er1
2505 cat conftest.er1 >&5
2506 mv -f conftest.er1 conftest.err
2507 fi
2508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2509 test $ac_status = 0; } && {
2510 test -z "$ac_cxx_werror_flag" ||
2511 test ! -s conftest.err
2512 } && test -s conftest$ac_exeext && {
2513 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002514 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002515 }; then :
2516 ac_retval=0
2517else
2518 $as_echo "$as_me: failed program was:" >&5
2519sed 's/^/| /' conftest.$ac_ext >&5
2520
2521 ac_retval=1
2522fi
2523 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2524 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2525 # interfere with the next link command; also delete a directory that is
2526 # left behind by Apple's compiler. We do this before executing the actions.
2527 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002529 as_fn_set_status $ac_retval
2530
2531} # ac_fn_cxx_try_link
2532
cristy8b350f62009-11-15 23:12:43 +00002533# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2534# -------------------------------------------
2535# Tests whether TYPE exists after having included INCLUDES, setting cache
2536# variable VAR accordingly.
2537ac_fn_c_check_type ()
2538{
2539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2541$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002542if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002543 $as_echo_n "(cached) " >&6
2544else
2545 eval "$3=no"
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547/* end confdefs.h. */
2548$4
2549int
2550main ()
2551{
2552if (sizeof ($2))
2553 return 0;
2554 ;
2555 return 0;
2556}
2557_ACEOF
2558if ac_fn_c_try_compile "$LINENO"; then :
2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560/* end confdefs.h. */
2561$4
2562int
2563main ()
2564{
2565if (sizeof (($2)))
2566 return 0;
2567 ;
2568 return 0;
2569}
2570_ACEOF
2571if ac_fn_c_try_compile "$LINENO"; then :
2572
2573else
2574 eval "$3=yes"
2575fi
2576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577fi
2578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579fi
2580eval ac_res=\$$3
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2582$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002584
2585} # ac_fn_c_check_type
2586
cristy92703d82010-04-26 00:18:18 +00002587# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2588# ----------------------------------------------------
2589# Tries to find if the field MEMBER exists in type AGGR, after including
2590# INCLUDES, setting cache variable VAR accordingly.
2591ac_fn_c_check_member ()
2592{
2593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2595$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002596if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002597 $as_echo_n "(cached) " >&6
2598else
2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600/* end confdefs.h. */
2601$5
2602int
2603main ()
2604{
2605static $2 ac_aggr;
2606if (ac_aggr.$3)
2607return 0;
2608 ;
2609 return 0;
2610}
2611_ACEOF
2612if ac_fn_c_try_compile "$LINENO"; then :
2613 eval "$4=yes"
2614else
2615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2616/* end confdefs.h. */
2617$5
2618int
2619main ()
2620{
2621static $2 ac_aggr;
2622if (sizeof ac_aggr.$3)
2623return 0;
2624 ;
2625 return 0;
2626}
2627_ACEOF
2628if ac_fn_c_try_compile "$LINENO"; then :
2629 eval "$4=yes"
2630else
2631 eval "$4=no"
2632fi
2633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634fi
2635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636fi
2637eval ac_res=\$$4
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2639$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002641
2642} # ac_fn_c_check_member
2643
cristy5eef09f2012-10-16 12:08:28 +00002644# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2645# ---------------------------------------------
2646# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2647# accordingly.
2648ac_fn_c_check_decl ()
2649{
2650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2651 as_decl_name=`echo $2|sed 's/ *(.*//'`
2652 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2654$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2655if eval \${$3+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657else
2658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2659/* end confdefs.h. */
2660$4
2661int
2662main ()
2663{
2664#ifndef $as_decl_name
2665#ifdef __cplusplus
2666 (void) $as_decl_use;
2667#else
2668 (void) $as_decl_name;
2669#endif
2670#endif
2671
2672 ;
2673 return 0;
2674}
2675_ACEOF
2676if ac_fn_c_try_compile "$LINENO"; then :
2677 eval "$3=yes"
2678else
2679 eval "$3=no"
2680fi
2681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682fi
2683eval ac_res=\$$3
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2685$as_echo "$ac_res" >&6; }
2686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2687
2688} # ac_fn_c_check_decl
2689
cristy501c8042011-05-26 17:46:28 +00002690# ac_fn_c_find_intX_t LINENO BITS VAR
2691# -----------------------------------
2692# Finds a signed integer type with width BITS, setting cache variable VAR
2693# accordingly.
2694ac_fn_c_find_intX_t ()
2695{
2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2698$as_echo_n "checking for int$2_t... " >&6; }
2699if eval \${$3+:} false; then :
2700 $as_echo_n "(cached) " >&6
2701else
2702 eval "$3=no"
2703 # Order is important - never check a type that is potentially smaller
2704 # than half of the expected target width.
2705 for ac_type in int$2_t 'int' 'long int' \
2706 'long long int' 'short int' 'signed char'; do
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708/* end confdefs.h. */
2709$ac_includes_default
2710 enum { N = $2 / 2 - 1 };
2711int
2712main ()
2713{
2714static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002715test_array [0] = 0;
2716return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002717
2718 ;
2719 return 0;
2720}
2721_ACEOF
2722if ac_fn_c_try_compile "$LINENO"; then :
2723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724/* end confdefs.h. */
2725$ac_includes_default
2726 enum { N = $2 / 2 - 1 };
2727int
2728main ()
2729{
2730static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2731 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002732test_array [0] = 0;
2733return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002734
2735 ;
2736 return 0;
2737}
2738_ACEOF
2739if ac_fn_c_try_compile "$LINENO"; then :
2740
2741else
2742 case $ac_type in #(
2743 int$2_t) :
2744 eval "$3=yes" ;; #(
2745 *) :
2746 eval "$3=\$ac_type" ;;
2747esac
2748fi
2749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750fi
2751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2752 if eval test \"x\$"$3"\" = x"no"; then :
2753
2754else
2755 break
2756fi
2757 done
2758fi
2759eval ac_res=\$$3
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2761$as_echo "$ac_res" >&6; }
2762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2763
2764} # ac_fn_c_find_intX_t
2765
2766# ac_fn_c_find_uintX_t LINENO BITS VAR
2767# ------------------------------------
2768# Finds an unsigned integer type with width BITS, setting cache variable VAR
2769# accordingly.
2770ac_fn_c_find_uintX_t ()
2771{
2772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2774$as_echo_n "checking for uint$2_t... " >&6; }
2775if eval \${$3+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777else
2778 eval "$3=no"
2779 # Order is important - never check a type that is potentially smaller
2780 # than half of the expected target width.
2781 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2782 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2784/* end confdefs.h. */
2785$ac_includes_default
2786int
2787main ()
2788{
2789static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002790test_array [0] = 0;
2791return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002792
2793 ;
2794 return 0;
2795}
2796_ACEOF
2797if ac_fn_c_try_compile "$LINENO"; then :
2798 case $ac_type in #(
2799 uint$2_t) :
2800 eval "$3=yes" ;; #(
2801 *) :
2802 eval "$3=\$ac_type" ;;
2803esac
2804fi
2805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 if eval test \"x\$"$3"\" = x"no"; then :
2807
2808else
2809 break
2810fi
2811 done
2812fi
2813eval ac_res=\$$3
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2815$as_echo "$ac_res" >&6; }
2816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2817
2818} # ac_fn_c_find_uintX_t
2819
cristy8b350f62009-11-15 23:12:43 +00002820# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2821# --------------------------------------------
2822# Tries to find the compile-time value of EXPR in a program that includes
2823# INCLUDES, setting VAR accordingly. Returns whether the value could be
2824# computed
2825ac_fn_c_compute_int ()
2826{
2827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2828 if test "$cross_compiling" = yes; then
2829 # Depending upon the size, compute the lo and hi bounds.
2830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831/* end confdefs.h. */
2832$4
2833int
2834main ()
2835{
2836static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002837test_array [0] = 0;
2838return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002839
2840 ;
2841 return 0;
2842}
2843_ACEOF
2844if ac_fn_c_try_compile "$LINENO"; then :
2845 ac_lo=0 ac_mid=0
2846 while :; do
2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848/* end confdefs.h. */
2849$4
2850int
2851main ()
2852{
2853static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002854test_array [0] = 0;
2855return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002856
2857 ;
2858 return 0;
2859}
2860_ACEOF
2861if ac_fn_c_try_compile "$LINENO"; then :
2862 ac_hi=$ac_mid; break
2863else
2864 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2865 if test $ac_lo -le $ac_mid; then
2866 ac_lo= ac_hi=
2867 break
2868 fi
2869 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2870fi
2871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872 done
2873else
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875/* end confdefs.h. */
2876$4
2877int
2878main ()
2879{
2880static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002881test_array [0] = 0;
2882return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002883
2884 ;
2885 return 0;
2886}
2887_ACEOF
2888if ac_fn_c_try_compile "$LINENO"; then :
2889 ac_hi=-1 ac_mid=-1
2890 while :; do
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892/* end confdefs.h. */
2893$4
2894int
2895main ()
2896{
2897static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002898test_array [0] = 0;
2899return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002900
2901 ;
2902 return 0;
2903}
2904_ACEOF
2905if ac_fn_c_try_compile "$LINENO"; then :
2906 ac_lo=$ac_mid; break
2907else
2908 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2909 if test $ac_mid -le $ac_hi; then
2910 ac_lo= ac_hi=
2911 break
2912 fi
2913 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2914fi
2915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916 done
2917else
2918 ac_lo= ac_hi=
2919fi
2920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921fi
2922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923# Binary search between lo and hi bounds.
2924while test "x$ac_lo" != "x$ac_hi"; do
2925 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927/* end confdefs.h. */
2928$4
2929int
2930main ()
2931{
2932static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002933test_array [0] = 0;
2934return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002935
2936 ;
2937 return 0;
2938}
2939_ACEOF
2940if ac_fn_c_try_compile "$LINENO"; then :
2941 ac_hi=$ac_mid
2942else
2943 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2944fi
2945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946done
2947case $ac_lo in #((
2948?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2949'') ac_retval=1 ;;
2950esac
2951 else
2952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2953/* end confdefs.h. */
2954$4
2955static long int longval () { return $2; }
2956static unsigned long int ulongval () { return $2; }
2957#include <stdio.h>
2958#include <stdlib.h>
2959int
2960main ()
2961{
2962
2963 FILE *f = fopen ("conftest.val", "w");
2964 if (! f)
2965 return 1;
2966 if (($2) < 0)
2967 {
2968 long int i = longval ();
2969 if (i != ($2))
2970 return 1;
2971 fprintf (f, "%ld", i);
2972 }
2973 else
2974 {
2975 unsigned long int i = ulongval ();
2976 if (i != ($2))
2977 return 1;
2978 fprintf (f, "%lu", i);
2979 }
2980 /* Do not output a trailing newline, as this causes \r\n confusion
2981 on some platforms. */
2982 return ferror (f) || fclose (f) != 0;
2983
2984 ;
2985 return 0;
2986}
2987_ACEOF
2988if ac_fn_c_try_run "$LINENO"; then :
2989 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2990else
2991 ac_retval=1
2992fi
2993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2994 conftest.$ac_objext conftest.beam conftest.$ac_ext
2995rm -f conftest.val
2996
2997 fi
cristyda16f162011-02-19 23:52:17 +00002998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002999 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003000
3001} # ac_fn_c_compute_int
3002
3003# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3004# ---------------------------------------------------------
3005# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3006# the include files in INCLUDES and setting the cache variable VAR
3007# accordingly.
3008ac_fn_cxx_check_header_mongrel ()
3009{
3010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003011 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3013$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003014if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003015 $as_echo_n "(cached) " >&6
3016fi
3017eval ac_res=\$$3
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3019$as_echo "$ac_res" >&6; }
3020else
3021 # Is the header compilable?
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3023$as_echo_n "checking $2 usability... " >&6; }
3024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3025/* end confdefs.h. */
3026$4
3027#include <$2>
3028_ACEOF
3029if ac_fn_cxx_try_compile "$LINENO"; then :
3030 ac_header_compiler=yes
3031else
3032 ac_header_compiler=no
3033fi
3034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3036$as_echo "$ac_header_compiler" >&6; }
3037
3038# Is the header present?
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3040$as_echo_n "checking $2 presence... " >&6; }
3041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042/* end confdefs.h. */
3043#include <$2>
3044_ACEOF
3045if ac_fn_cxx_try_cpp "$LINENO"; then :
3046 ac_header_preproc=yes
3047else
3048 ac_header_preproc=no
3049fi
cristyda16f162011-02-19 23:52:17 +00003050rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3052$as_echo "$ac_header_preproc" >&6; }
3053
3054# So? What about this header?
3055case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3056 yes:no: )
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3058$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3060$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3061 ;;
3062 no:yes:* )
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3064$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3066$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3068$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3070$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3072$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003073( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003074## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003075## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003076 ) | sed "s/^/$as_me: WARNING: /" >&2
3077 ;;
3078esac
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3080$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003081if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003082 $as_echo_n "(cached) " >&6
3083else
3084 eval "$3=\$ac_header_compiler"
3085fi
3086eval ac_res=\$$3
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3088$as_echo "$ac_res" >&6; }
3089fi
cristyda16f162011-02-19 23:52:17 +00003090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003091
3092} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003093cat >config.log <<_ACEOF
3094This file contains any messages produced by compilers while
3095running configure, to aid debugging if configure makes a mistake.
3096
cristy29eb34e2011-10-16 00:46:08 +00003097It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003098generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003099
3100 $ $0 $@
3101
3102_ACEOF
3103exec 5>>config.log
3104{
3105cat <<_ASUNAME
3106## --------- ##
3107## Platform. ##
3108## --------- ##
3109
3110hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3111uname -m = `(uname -m) 2>/dev/null || echo unknown`
3112uname -r = `(uname -r) 2>/dev/null || echo unknown`
3113uname -s = `(uname -s) 2>/dev/null || echo unknown`
3114uname -v = `(uname -v) 2>/dev/null || echo unknown`
3115
3116/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3117/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3118
3119/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3120/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3121/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3122/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3123/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3124/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3125/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3126
3127_ASUNAME
3128
3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003134 $as_echo "PATH: $as_dir"
3135 done
cristy3ed852e2009-09-05 21:47:34 +00003136IFS=$as_save_IFS
3137
3138} >&5
3139
3140cat >&5 <<_ACEOF
3141
3142
3143## ----------- ##
3144## Core tests. ##
3145## ----------- ##
3146
3147_ACEOF
3148
3149
3150# Keep a trace of the command line.
3151# Strip out --no-create and --no-recursion so they do not pile up.
3152# Strip out --silent because we don't want to record it for future runs.
3153# Also quote any args containing shell meta-characters.
3154# Make two passes to allow for proper duplicate-argument suppression.
3155ac_configure_args=
3156ac_configure_args0=
3157ac_configure_args1=
3158ac_must_keep_next=false
3159for ac_pass in 1 2
3160do
3161 for ac_arg
3162 do
3163 case $ac_arg in
3164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3166 | -silent | --silent | --silen | --sile | --sil)
3167 continue ;;
3168 *\'*)
3169 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3170 esac
3171 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003172 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003173 2)
cristy8b350f62009-11-15 23:12:43 +00003174 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003175 if test $ac_must_keep_next = true; then
3176 ac_must_keep_next=false # Got value, back to normal.
3177 else
3178 case $ac_arg in
3179 *=* | --config-cache | -C | -disable-* | --disable-* \
3180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3182 | -with-* | --with-* | -without-* | --without-* | --x)
3183 case "$ac_configure_args0 " in
3184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3185 esac
3186 ;;
3187 -* ) ac_must_keep_next=true ;;
3188 esac
3189 fi
cristy8b350f62009-11-15 23:12:43 +00003190 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003191 ;;
3192 esac
3193 done
3194done
cristy8b350f62009-11-15 23:12:43 +00003195{ ac_configure_args0=; unset ac_configure_args0;}
3196{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003197
3198# When interrupted or exit'd, cleanup temporary files, and complete
3199# config.log. We remove comments because anyway the quotes in there
3200# would cause problems or look ugly.
3201# WARNING: Use '\'' to represent an apostrophe within the trap.
3202# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3203trap 'exit_status=$?
3204 # Save into config.log some information that might help in debugging.
3205 {
3206 echo
3207
cristy98dddb52010-11-04 00:30:15 +00003208 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003209## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003210## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003211 echo
3212 # The following way of writing the cache mishandles newlines in values,
3213(
3214 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3215 eval ac_val=\$$ac_var
3216 case $ac_val in #(
3217 *${as_nl}*)
3218 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003220$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3221 esac
3222 case $ac_var in #(
3223 _ | IFS | as_nl) ;; #(
3224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003225 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003226 esac ;;
3227 esac
3228 done
3229 (set) 2>&1 |
3230 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3231 *${as_nl}ac_space=\ *)
3232 sed -n \
3233 "s/'\''/'\''\\\\'\'''\''/g;
3234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3235 ;; #(
3236 *)
3237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3238 ;;
3239 esac |
3240 sort
3241)
3242 echo
3243
cristy98dddb52010-11-04 00:30:15 +00003244 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003245## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003246## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003247 echo
3248 for ac_var in $ac_subst_vars
3249 do
3250 eval ac_val=\$$ac_var
3251 case $ac_val in
3252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3253 esac
3254 $as_echo "$ac_var='\''$ac_val'\''"
3255 done | sort
3256 echo
3257
3258 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003259 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003260## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003261## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003262 echo
3263 for ac_var in $ac_subst_files
3264 do
3265 eval ac_val=\$$ac_var
3266 case $ac_val in
3267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3268 esac
3269 $as_echo "$ac_var='\''$ac_val'\''"
3270 done | sort
3271 echo
3272 fi
3273
3274 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003275 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003276## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003277## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003278 echo
3279 cat confdefs.h
3280 echo
3281 fi
3282 test "$ac_signal" != 0 &&
3283 $as_echo "$as_me: caught signal $ac_signal"
3284 $as_echo "$as_me: exit $exit_status"
3285 } >&5
3286 rm -f core *.core core.conftest.* &&
3287 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3288 exit $exit_status
3289' 0
3290for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003291 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003292done
3293ac_signal=0
3294
3295# confdefs.h avoids OS command line length limits that DEFS can exceed.
3296rm -f -r conftest* confdefs.h
3297
cristy8b350f62009-11-15 23:12:43 +00003298$as_echo "/* confdefs.h */" > confdefs.h
3299
cristy3ed852e2009-09-05 21:47:34 +00003300# Predefined preprocessor variables.
3301
3302cat >>confdefs.h <<_ACEOF
3303#define PACKAGE_NAME "$PACKAGE_NAME"
3304_ACEOF
3305
cristy3ed852e2009-09-05 21:47:34 +00003306cat >>confdefs.h <<_ACEOF
3307#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3308_ACEOF
3309
cristy3ed852e2009-09-05 21:47:34 +00003310cat >>confdefs.h <<_ACEOF
3311#define PACKAGE_VERSION "$PACKAGE_VERSION"
3312_ACEOF
3313
cristy3ed852e2009-09-05 21:47:34 +00003314cat >>confdefs.h <<_ACEOF
3315#define PACKAGE_STRING "$PACKAGE_STRING"
3316_ACEOF
3317
cristy3ed852e2009-09-05 21:47:34 +00003318cat >>confdefs.h <<_ACEOF
3319#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3320_ACEOF
3321
cristy8b350f62009-11-15 23:12:43 +00003322cat >>confdefs.h <<_ACEOF
3323#define PACKAGE_URL "$PACKAGE_URL"
3324_ACEOF
3325
cristy3ed852e2009-09-05 21:47:34 +00003326
3327# Let the site file select an alternate cache file if it wants to.
3328# Prefer an explicitly selected file to automatically selected ones.
3329ac_site_file1=NONE
3330ac_site_file2=NONE
3331if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003332 # We do not want a PATH search for config.site.
3333 case $CONFIG_SITE in #((
3334 -*) ac_site_file1=./$CONFIG_SITE;;
3335 */*) ac_site_file1=$CONFIG_SITE;;
3336 *) ac_site_file1=./$CONFIG_SITE;;
3337 esac
cristy3ed852e2009-09-05 21:47:34 +00003338elif test "x$prefix" != xNONE; then
3339 ac_site_file1=$prefix/share/config.site
3340 ac_site_file2=$prefix/etc/config.site
3341else
3342 ac_site_file1=$ac_default_prefix/share/config.site
3343 ac_site_file2=$ac_default_prefix/etc/config.site
3344fi
3345for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3346do
3347 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003348 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003350$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3351 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003352 . "$ac_site_file" \
3353 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355as_fn_error $? "failed to load site script $ac_site_file
3356See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003357 fi
3358done
3359
3360if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003361 # Some versions of bash will fail to source /dev/null (special files
3362 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3363 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003365$as_echo "$as_me: loading cache $cache_file" >&6;}
3366 case $cache_file in
3367 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3368 *) . "./$cache_file";;
3369 esac
3370 fi
3371else
cristy8b350f62009-11-15 23:12:43 +00003372 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003373$as_echo "$as_me: creating cache $cache_file" >&6;}
3374 >$cache_file
3375fi
3376
cristycd4c5312009-11-22 01:19:08 +00003377as_fn_append ac_header_list " stdlib.h"
3378as_fn_append ac_header_list " unistd.h"
3379as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003380# Check that the precious variables saved in the cache have kept the same
3381# value.
3382ac_cache_corrupted=false
3383for ac_var in $ac_precious_vars; do
3384 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3385 eval ac_new_set=\$ac_env_${ac_var}_set
3386 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3387 eval ac_new_val=\$ac_env_${ac_var}_value
3388 case $ac_old_set,$ac_new_set in
3389 set,)
cristy8b350f62009-11-15 23:12:43 +00003390 { $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 +00003391$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3392 ac_cache_corrupted=: ;;
3393 ,set)
cristy8b350f62009-11-15 23:12:43 +00003394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003395$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3396 ac_cache_corrupted=: ;;
3397 ,);;
3398 *)
3399 if test "x$ac_old_val" != "x$ac_new_val"; then
3400 # differences in whitespace do not lead to failure.
3401 ac_old_val_w=`echo x $ac_old_val`
3402 ac_new_val_w=`echo x $ac_new_val`
3403 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003405$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3406 ac_cache_corrupted=:
3407 else
cristy8b350f62009-11-15 23:12:43 +00003408 { $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 +00003409$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3410 eval $ac_var=\$ac_old_val
3411 fi
cristy8b350f62009-11-15 23:12:43 +00003412 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003413$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003414 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003415$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3416 fi;;
3417 esac
3418 # Pass precious variables to config.status.
3419 if test "$ac_new_set" = set; then
3420 case $ac_new_val in
3421 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3422 *) ac_arg=$ac_var=$ac_new_val ;;
3423 esac
3424 case " $ac_configure_args " in
3425 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003426 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003427 esac
3428 fi
3429done
3430if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003434$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003435 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003436fi
cristy8b350f62009-11-15 23:12:43 +00003437## -------------------- ##
3438## Main body of script. ##
3439## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003440
3441ac_ext=c
3442ac_cpp='$CPP $CPPFLAGS'
3443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446
3447
3448
3449ac_aux_dir=
3450for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003451 if test -f "$ac_dir/install-sh"; then
3452 ac_aux_dir=$ac_dir
3453 ac_install_sh="$ac_aux_dir/install-sh -c"
3454 break
3455 elif test -f "$ac_dir/install.sh"; then
3456 ac_aux_dir=$ac_dir
3457 ac_install_sh="$ac_aux_dir/install.sh -c"
3458 break
3459 elif test -f "$ac_dir/shtool"; then
3460 ac_aux_dir=$ac_dir
3461 ac_install_sh="$ac_aux_dir/shtool install -c"
3462 break
3463 fi
cristy3ed852e2009-09-05 21:47:34 +00003464done
3465if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003466 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003467fi
3468
3469# These three variables are undocumented and unsupported,
3470# and are intended to be withdrawn in a future Autoconf release.
3471# They can cause serious problems if a builder's source tree is in a directory
3472# whose full name contains unusual characters.
3473ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3474ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3475ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3476
3477
3478
3479
3480ac_config_headers="$ac_config_headers config/config.h"
3481
cristy24fc1fe2010-10-23 21:13:01 +00003482
cristy01ff9f32012-12-01 18:15:29 +00003483ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003484
cristy2df32802012-09-17 01:15:28 +00003485ac_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 +00003486
3487
3488#
3489# Save initial user-tunable values
3490#
3491USER_LIBS=$LIBS
3492for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3493 eval isset=\${$var+set}
3494 if test "$isset" = 'set'; then
3495 eval val=$`echo $var`
3496 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3497 fi
3498done
3499
3500
3501CONFIGURE_ARGS="$0 ${ac_configure_args}"
3502
3503
3504# Source file containing package/library versioning information.
3505. ${srcdir}/version.sh
3506
cristy15a88782010-01-31 23:24:49 +00003507echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003508# Make sure we can run config.sub.
3509$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003510 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003511
cristy8b350f62009-11-15 23:12:43 +00003512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003513$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003514if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003515 $as_echo_n "(cached) " >&6
3516else
3517 ac_build_alias=$build_alias
3518test "x$ac_build_alias" = x &&
3519 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3520test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003521 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003522ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003523 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003524
3525fi
cristy8b350f62009-11-15 23:12:43 +00003526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003527$as_echo "$ac_cv_build" >&6; }
3528case $ac_cv_build in
3529*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003530*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003531esac
3532build=$ac_cv_build
3533ac_save_IFS=$IFS; IFS='-'
3534set x $ac_cv_build
3535shift
3536build_cpu=$1
3537build_vendor=$2
3538shift; shift
3539# Remember, the first character of IFS is used to create $*,
3540# except with old shells:
3541build_os=$*
3542IFS=$ac_save_IFS
3543case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3544
3545
cristy8b350f62009-11-15 23:12:43 +00003546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003547$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003548if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003549 $as_echo_n "(cached) " >&6
3550else
3551 if test "x$host_alias" = x; then
3552 ac_cv_host=$ac_cv_build
3553else
3554 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003555 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003556fi
3557
3558fi
cristy8b350f62009-11-15 23:12:43 +00003559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003560$as_echo "$ac_cv_host" >&6; }
3561case $ac_cv_host in
3562*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003563*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003564esac
3565host=$ac_cv_host
3566ac_save_IFS=$IFS; IFS='-'
3567set x $ac_cv_host
3568shift
3569host_cpu=$1
3570host_vendor=$2
3571shift; shift
3572# Remember, the first character of IFS is used to create $*,
3573# except with old shells:
3574host_os=$*
3575IFS=$ac_save_IFS
3576case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3577
3578
cristy8b350f62009-11-15 23:12:43 +00003579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003580$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003581if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003582 $as_echo_n "(cached) " >&6
3583else
3584 if test "x$target_alias" = x; then
3585 ac_cv_target=$ac_cv_host
3586else
3587 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003588 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003589fi
3590
3591fi
cristy8b350f62009-11-15 23:12:43 +00003592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003593$as_echo "$ac_cv_target" >&6; }
3594case $ac_cv_target in
3595*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003596*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003597esac
3598target=$ac_cv_target
3599ac_save_IFS=$IFS; IFS='-'
3600set x $ac_cv_target
3601shift
3602target_cpu=$1
3603target_vendor=$2
3604shift; shift
3605# Remember, the first character of IFS is used to create $*,
3606# except with old shells:
3607target_os=$*
3608IFS=$ac_save_IFS
3609case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3610
3611
3612# The aliases save the names the user supplied, while $host etc.
3613# will get canonicalized.
3614test -n "$target_alias" &&
3615 test "$program_prefix$program_suffix$program_transform_name" = \
3616 NONENONEs,x,x, &&
3617 program_prefix=${target_alias}-
3618
cristy837d6dc2010-02-27 01:16:57 +00003619
3620
3621
cristy8be34142012-06-17 14:07:18 +00003622
cristy19615b82011-04-13 20:02:01 +00003623MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003624
3625
cristy27d53d62012-07-29 23:30:07 +00003626cat >>confdefs.h <<_ACEOF
3627#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3628_ACEOF
3629
3630
cristy19615b82011-04-13 20:02:01 +00003631MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003632
3633
cristy27d53d62012-07-29 23:30:07 +00003634cat >>confdefs.h <<_ACEOF
3635#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3636_ACEOF
3637
3638
cristy19615b82011-04-13 20:02:01 +00003639MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003640
3641
cristy27d53d62012-07-29 23:30:07 +00003642cat >>confdefs.h <<_ACEOF
3643#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3644_ACEOF
3645
3646
cristy3ed852e2009-09-05 21:47:34 +00003647# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003648MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3649
3650MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3651
cristy016e8b82012-12-26 12:11:06 +00003652MAGICK_SVN_REVISION=10388:10401M
cristyd694ca32011-03-27 21:42:54 +00003653
cristy3ed852e2009-09-05 21:47:34 +00003654
3655
3656# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3658$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003659# Reject unsafe characters in $srcdir or the absolute working directory
3660# name. Accept space and tab only in the latter.
3661am_lf='
3662'
3663case `pwd` in
3664 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003665 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003666esac
3667case $srcdir in
3668 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003669 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003670esac
cristy3ed852e2009-09-05 21:47:34 +00003671
cristyc0890a62012-07-19 00:18:20 +00003672# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003673# arguments. Must try -L first in case configure is actually a
3674# symlink; some systems play weird games with the mod time of symlinks
3675# (eg FreeBSD returns the mod time of the symlink's containing
3676# directory).
3677if (
cristyc0890a62012-07-19 00:18:20 +00003678 am_has_slept=no
3679 for am_try in 1 2; do
3680 echo "timestamp, slept: $am_has_slept" > conftest.file
3681 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3682 if test "$*" = "X"; then
3683 # -L didn't work.
3684 set X `ls -t "$srcdir/configure" conftest.file`
3685 fi
3686 if test "$*" != "X $srcdir/configure conftest.file" \
3687 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003688
cristyc0890a62012-07-19 00:18:20 +00003689 # If neither matched, then we have a broken ls. This can happen
3690 # if, for instance, CONFIG_SHELL is bash and it inherits a
3691 # broken ls alias from the environment. This has actually
3692 # happened. Such a system could not be considered "sane".
3693 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3694 alias in your environment" "$LINENO" 5
3695 fi
3696 if test "$2" = conftest.file || test $am_try -eq 2; then
3697 break
3698 fi
3699 # Just in case.
3700 sleep 1
3701 am_has_slept=yes
3702 done
cristy73bd4a52010-10-05 11:24:23 +00003703 test "$2" = conftest.file
3704 )
3705then
3706 # Ok.
3707 :
3708else
cristy98dddb52010-11-04 00:30:15 +00003709 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003710Check your system clock" "$LINENO" 5
3711fi
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3713$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003714# If we didn't sleep, we still need to ensure time stamps of config.status and
3715# generated files are strictly newer.
3716am_sleep_pid=
3717if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3718 ( sleep 1 ) &
3719 am_sleep_pid=$!
3720fi
cristy73bd4a52010-10-05 11:24:23 +00003721
cristyc0890a62012-07-19 00:18:20 +00003722rm -f conftest.file
3723
3724
3725am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003726
3727# Find a good install program. We prefer a C program (faster),
3728# so one script is as good as another. But avoid the broken or
3729# incompatible versions:
3730# SysV /etc/install, /usr/sbin/install
3731# SunOS /usr/etc/install
3732# IRIX /sbin/install
3733# AIX /bin/install
3734# AmigaOS /C/install, which installs bootblocks on floppy discs
3735# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3736# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3737# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3738# OS/2's system install, which has a completely different semantic
3739# ./install, which can be erroneously created by make from ./install.sh.
3740# Reject install programs that cannot install multiple files.
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3742$as_echo_n "checking for a BSD-compatible install... " >&6; }
3743if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003744if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003745 $as_echo_n "(cached) " >&6
3746else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748for as_dir in $PATH
3749do
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 # Account for people who put trailing slashes in PATH elements.
3753case $as_dir/ in #((
3754 ./ | .// | /[cC]/* | \
3755 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3756 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3757 /usr/ucb/* ) ;;
3758 *)
3759 # OSF1 and SCO ODT 3.0 have their own names for install.
3760 # Don't use installbsd from OSF since it installs stuff as root
3761 # by default.
3762 for ac_prog in ginstall scoinst install; do
3763 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003764 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003765 if test $ac_prog = install &&
3766 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3767 # AIX install. It has an incompatible calling convention.
3768 :
3769 elif test $ac_prog = install &&
3770 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3771 # program-specific install script used by HP pwplus--don't use.
3772 :
3773 else
3774 rm -rf conftest.one conftest.two conftest.dir
3775 echo one > conftest.one
3776 echo two > conftest.two
3777 mkdir conftest.dir
3778 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3779 test -s conftest.one && test -s conftest.two &&
3780 test -s conftest.dir/conftest.one &&
3781 test -s conftest.dir/conftest.two
3782 then
3783 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3784 break 3
3785 fi
3786 fi
3787 fi
3788 done
3789 done
3790 ;;
3791esac
3792
3793 done
3794IFS=$as_save_IFS
3795
3796rm -rf conftest.one conftest.two conftest.dir
3797
3798fi
3799 if test "${ac_cv_path_install+set}" = set; then
3800 INSTALL=$ac_cv_path_install
3801 else
3802 # As a last resort, use the slow shell script. Don't cache a
3803 # value for INSTALL within a source directory, because that will
3804 # break other packages using the cache if that directory is
3805 # removed, or if the value is a relative name.
3806 INSTALL=$ac_install_sh
3807 fi
3808fi
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3810$as_echo "$INSTALL" >&6; }
3811
3812# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3813# It thinks the first close brace ends the variable substitution.
3814test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3815
3816test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3817
3818test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3819
3820test "$program_prefix" != NONE &&
3821 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3822# Use a double $ so make ignores it.
3823test "$program_suffix" != NONE &&
3824 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3825# Double any \ or $.
3826# By default was `s,x,x', remove it if useless.
3827ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3828program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3829
3830# expand $ac_aux_dir to an absolute path
3831am_aux_dir=`cd $ac_aux_dir && pwd`
3832
3833if test x"${MISSING+set}" != xset; then
3834 case $am_aux_dir in
3835 *\ * | *\ *)
3836 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3837 *)
3838 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3839 esac
3840fi
3841# Use eval to expand $SHELL
3842if eval "$MISSING --run true"; then
3843 am_missing_run="$MISSING --run "
3844else
3845 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3847$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003848fi
3849
3850if test x"${install_sh}" != xset; then
3851 case $am_aux_dir in
3852 *\ * | *\ *)
3853 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3854 *)
3855 install_sh="\${SHELL} $am_aux_dir/install-sh"
3856 esac
3857fi
3858
cristyc0890a62012-07-19 00:18:20 +00003859# Installed binaries are usually stripped using 'strip' when the user
3860# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003861# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003862# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003863if test "$cross_compiling" != no; then
3864 if test -n "$ac_tool_prefix"; then
3865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3866set dummy ${ac_tool_prefix}strip; ac_word=$2
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003869if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003870 $as_echo_n "(cached) " >&6
3871else
3872 if test -n "$STRIP"; then
3873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3874else
3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003882 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3885 fi
3886done
3887 done
3888IFS=$as_save_IFS
3889
3890fi
3891fi
3892STRIP=$ac_cv_prog_STRIP
3893if test -n "$STRIP"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3895$as_echo "$STRIP" >&6; }
3896else
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898$as_echo "no" >&6; }
3899fi
3900
3901
3902fi
3903if test -z "$ac_cv_prog_STRIP"; then
3904 ac_ct_STRIP=$STRIP
3905 # Extract the first word of "strip", so it can be a program name with args.
3906set dummy strip; ac_word=$2
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003909if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003910 $as_echo_n "(cached) " >&6
3911else
3912 if test -n "$ac_ct_STRIP"; then
3913 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3914else
3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH
3917do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003922 ac_cv_prog_ac_ct_STRIP="strip"
3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 break 2
3925 fi
3926done
3927 done
3928IFS=$as_save_IFS
3929
3930fi
3931fi
3932ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3933if test -n "$ac_ct_STRIP"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3935$as_echo "$ac_ct_STRIP" >&6; }
3936else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938$as_echo "no" >&6; }
3939fi
3940
3941 if test "x$ac_ct_STRIP" = x; then
3942 STRIP=":"
3943 else
3944 case $cross_compiling:$ac_tool_warned in
3945yes:)
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3948ac_tool_warned=yes ;;
3949esac
3950 STRIP=$ac_ct_STRIP
3951 fi
3952else
3953 STRIP="$ac_cv_prog_STRIP"
3954fi
3955
3956fi
3957INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3958
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3960$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3961if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003962 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003963 $as_echo_n "(cached) " >&6
3964else
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3967do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_prog in mkdir gmkdir; do
3971 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003972 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003973 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3974 'mkdir (GNU coreutils) '* | \
3975 'mkdir (coreutils) '* | \
3976 'mkdir (fileutils) '4.1*)
3977 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3978 break 3;;
3979 esac
3980 done
3981 done
3982 done
3983IFS=$as_save_IFS
3984
3985fi
3986
3987 test -d ./--version && rmdir ./--version
3988 if test "${ac_cv_path_mkdir+set}" = set; then
3989 MKDIR_P="$ac_cv_path_mkdir -p"
3990 else
3991 # As a last resort, use the slow shell script. Don't cache a
3992 # value for MKDIR_P within a source directory, because that will
3993 # break other packages using the cache if that directory is
3994 # removed, or if the value is a relative name.
3995 MKDIR_P="$ac_install_sh -d"
3996 fi
3997fi
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3999$as_echo "$MKDIR_P" >&6; }
4000
cristy73bd4a52010-10-05 11:24:23 +00004001for ac_prog in gawk mawk nawk awk
4002do
4003 # Extract the first word of "$ac_prog", so it can be a program name with args.
4004set dummy $ac_prog; ac_word=$2
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004007if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004008 $as_echo_n "(cached) " >&6
4009else
4010 if test -n "$AWK"; then
4011 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4012else
4013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014for as_dir in $PATH
4015do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004020 ac_cv_prog_AWK="$ac_prog"
4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 break 2
4023 fi
4024done
4025 done
4026IFS=$as_save_IFS
4027
4028fi
4029fi
4030AWK=$ac_cv_prog_AWK
4031if test -n "$AWK"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4033$as_echo "$AWK" >&6; }
4034else
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036$as_echo "no" >&6; }
4037fi
4038
4039
4040 test -n "$AWK" && break
4041done
4042
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4044$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4045set x ${MAKE-make}
4046ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004047if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004048 $as_echo_n "(cached) " >&6
4049else
4050 cat >conftest.make <<\_ACEOF
4051SHELL = /bin/sh
4052all:
4053 @echo '@@@%%%=$(MAKE)=@@@%%%'
4054_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004055# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004056case `${MAKE-make} -f conftest.make 2>/dev/null` in
4057 *@@@%%%=?*=@@@%%%*)
4058 eval ac_cv_prog_make_${ac_make}_set=yes;;
4059 *)
4060 eval ac_cv_prog_make_${ac_make}_set=no;;
4061esac
4062rm -f conftest.make
4063fi
4064if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4066$as_echo "yes" >&6; }
4067 SET_MAKE=
4068else
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070$as_echo "no" >&6; }
4071 SET_MAKE="MAKE=${MAKE-make}"
4072fi
4073
4074rm -rf .tst 2>/dev/null
4075mkdir .tst 2>/dev/null
4076if test -d .tst; then
4077 am__leading_dot=.
4078else
4079 am__leading_dot=_
4080fi
4081rmdir .tst 2>/dev/null
4082
cristya448bd22011-10-14 12:38:13 +00004083# Check whether --enable-silent-rules was given.
4084if test "${enable_silent_rules+set}" = set; then :
4085 enableval=$enable_silent_rules;
4086fi
4087
cristyc0890a62012-07-19 00:18:20 +00004088case $enable_silent_rules in # (((
4089 yes) AM_DEFAULT_VERBOSITY=0;;
4090 no) AM_DEFAULT_VERBOSITY=1;;
4091 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004092esac
cristyc3fb77b2012-02-06 01:49:41 +00004093am_make=${MAKE-make}
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4095$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4096if ${am_cv_make_support_nested_variables+:} false; then :
4097 $as_echo_n "(cached) " >&6
4098else
4099 if $as_echo 'TRUE=$(BAR$(V))
4100BAR0=false
4101BAR1=true
4102V=1
4103am__doit:
4104 @$(TRUE)
4105.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4106 am_cv_make_support_nested_variables=yes
4107else
4108 am_cv_make_support_nested_variables=no
4109fi
4110fi
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4112$as_echo "$am_cv_make_support_nested_variables" >&6; }
4113if test $am_cv_make_support_nested_variables = yes; then
4114 AM_V='$(V)'
4115 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4116else
4117 AM_V=$AM_DEFAULT_VERBOSITY
4118 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4119fi
cristya448bd22011-10-14 12:38:13 +00004120AM_BACKSLASH='\'
4121
cristy73bd4a52010-10-05 11:24:23 +00004122if test "`cd $srcdir && pwd`" != "`pwd`"; then
4123 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4124 # is not polluted with repeated "-I."
4125 am__isrc=' -I$(srcdir)'
4126 # test to see if srcdir already configured
4127 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004128 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004129 fi
4130fi
4131
4132# test whether we have cygpath
4133if test -z "$CYGPATH_W"; then
4134 if (cygpath --version) >/dev/null 2>/dev/null; then
4135 CYGPATH_W='cygpath -w'
4136 else
4137 CYGPATH_W=echo
4138 fi
4139fi
4140
4141
4142# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004143 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004144 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004145
4146
cristya448bd22011-10-14 12:38:13 +00004147cat >>confdefs.h <<_ACEOF
4148#define PACKAGE "$PACKAGE"
4149_ACEOF
4150
4151
4152cat >>confdefs.h <<_ACEOF
4153#define VERSION "$VERSION"
4154_ACEOF
4155
cristy73bd4a52010-10-05 11:24:23 +00004156# Some tools Automake needs.
4157
4158ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4159
4160
4161AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4162
4163
4164AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4165
4166
4167AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4168
4169
4170MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4171
cristyc0890a62012-07-19 00:18:20 +00004172# For better backward compatibility. To be removed once Automake 1.9.x
4173# dies out for good. For more background, see:
4174# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4175# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4176mkdir_p='$(MKDIR_P)'
4177
cristy73bd4a52010-10-05 11:24:23 +00004178# We need awk for the "check" target. The system "awk" is bad on
4179# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004180# Always define AMTAR for backward compatibility. Yes, it's still used
4181# in the wild :-( We should find a proper way to deprecate it ...
4182AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004183
cristyc3fb77b2012-02-06 01:49:41 +00004184am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004185
4186
4187
4188
4189
cristy3ed852e2009-09-05 21:47:34 +00004190
4191# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004192# Check whether --enable-silent-rules was given.
4193if test "${enable_silent_rules+set}" = set; then :
4194 enableval=$enable_silent_rules;
4195fi
4196
cristyc0890a62012-07-19 00:18:20 +00004197case $enable_silent_rules in # (((
4198 yes) AM_DEFAULT_VERBOSITY=0;;
4199 no) AM_DEFAULT_VERBOSITY=1;;
4200 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004201esac
cristyc3fb77b2012-02-06 01:49:41 +00004202am_make=${MAKE-make}
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4204$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4205if ${am_cv_make_support_nested_variables+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207else
4208 if $as_echo 'TRUE=$(BAR$(V))
4209BAR0=false
4210BAR1=true
4211V=1
4212am__doit:
4213 @$(TRUE)
4214.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4215 am_cv_make_support_nested_variables=yes
4216else
4217 am_cv_make_support_nested_variables=no
4218fi
4219fi
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4221$as_echo "$am_cv_make_support_nested_variables" >&6; }
4222if test $am_cv_make_support_nested_variables = yes; then
4223 AM_V='$(V)'
4224 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4225else
4226 AM_V=$AM_DEFAULT_VERBOSITY
4227 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4228fi
cristy73bd4a52010-10-05 11:24:23 +00004229AM_BACKSLASH='\'
4230
cristy3ed852e2009-09-05 21:47:34 +00004231
4232MAGICK_LIB_VERSION="0x"
4233if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4234 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4235fi
4236MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4237if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4238 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4239fi
4240MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4241if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4242 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4243fi
4244MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4245
4246
4247# Definition used to define MagickLibVersionText in version.h
4248MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4249
4250
4251# Definition used to define MagickLibVersionNumber in version.h
4252MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4253
4254
4255# Regenerate config.status if ChangeLog or version.sh is updated.
4256CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4257
4258
4259PERLMAINCC=$CC
4260
4261MAGICK_CFLAGS=''
4262MAGICK_CPPFLAGS=$CPPFLAGS_USER
4263MAGICK_PCFLAGS=$CPPFLAGS_USER
4264MAGICK_LDFLAGS=''
4265MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004266MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004267
4268#
4269# Evaluate shell variable equivalents to Makefile directory variables
4270#
4271if test "x$prefix" = xNONE; then
4272 prefix=$ac_default_prefix
4273fi
4274# Let make expand exec_prefix.
4275if test "x$exec_prefix" = xNONE; then
4276 exec_prefix='${prefix}'
4277fi
4278
4279#
4280eval "eval PREFIX_DIR=${prefix}"
4281
4282eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4283
4284eval "eval BIN_DIR=$bindir"
4285
4286eval "eval SBIN_DIR=$sbindir"
4287
4288eval "eval LIBEXEC_DIR=$libexecdir"
4289
4290eval "eval DATA_DIR=$datadir"
4291
cristy4e65ec22012-04-08 01:33:27 +00004292eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004293
cristy3ed852e2009-09-05 21:47:34 +00004294eval "eval SYSCONF_DIR=$sysconfdir"
4295
4296eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4297
4298eval "eval LOCALSTATE_DIR=$localstatedir"
4299
4300eval "eval LIB_DIR=$libdir"
4301
4302eval "eval INCLUDE_DIR=$includedir"
4303
4304eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4305
4306eval "eval INFO_DIR=$infodir"
4307
4308eval "eval MAN_DIR=$mandir"
4309
4310
4311# Get full paths to source and build directories
4312srcdirfull="`cd $srcdir && pwd`"
4313builddir="`pwd`"
4314
4315#
4316# Compute variables useful for running uninstalled software.
4317#
4318MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4319MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4320MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4321MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4322DIRSEP=':'
4323case "${build_os}" in
4324 mingw* )
4325 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4326 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4327 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4328 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4329 DIRSEP=';'
4330 ;;
4331esac
4332case "${host_os}" in
4333 mingw* )
4334 DIRSEP=';'
4335 ;;
4336esac
4337
4338
4339
4340
4341
4342
cristya0b81c32010-01-22 02:54:33 +00004343
4344#
4345# Enable OS features.
4346#
cristy73bd4a52010-10-05 11:24:23 +00004347DEPDIR="${am__leading_dot}deps"
4348
4349ac_config_commands="$ac_config_commands depfiles"
4350
4351
4352am_make=${MAKE-make}
4353cat > confinc << 'END'
4354am__doit:
4355 @echo this is the am__doit target
4356.PHONY: am__doit
4357END
4358# If we don't find an include directive, just comment out the code.
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4360$as_echo_n "checking for style of include used by $am_make... " >&6; }
4361am__include="#"
4362am__quote=
4363_am_result=none
4364# First try GNU make style include.
4365echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004366# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004367case `$am_make -s -f confmf 2> /dev/null` in #(
4368*the\ am__doit\ target*)
4369 am__include=include
4370 am__quote=
4371 _am_result=GNU
4372 ;;
4373esac
4374# Now try BSD make style include.
4375if test "$am__include" = "#"; then
4376 echo '.include "confinc"' > confmf
4377 case `$am_make -s -f confmf 2> /dev/null` in #(
4378 *the\ am__doit\ target*)
4379 am__include=.include
4380 am__quote="\""
4381 _am_result=BSD
4382 ;;
4383 esac
4384fi
4385
4386
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4388$as_echo "$_am_result" >&6; }
4389rm -f confinc confmf
4390
4391# Check whether --enable-dependency-tracking was given.
4392if test "${enable_dependency_tracking+set}" = set; then :
4393 enableval=$enable_dependency_tracking;
4394fi
4395
4396if test "x$enable_dependency_tracking" != xno; then
4397 am_depcomp="$ac_aux_dir/depcomp"
4398 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004399 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004400fi
4401 if test "x$enable_dependency_tracking" != xno; then
4402 AMDEP_TRUE=
4403 AMDEP_FALSE='#'
4404else
4405 AMDEP_TRUE='#'
4406 AMDEP_FALSE=
4407fi
4408
4409
cristy3ed852e2009-09-05 21:47:34 +00004410ac_ext=c
4411ac_cpp='$CPP $CPPFLAGS'
4412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415if test -n "$ac_tool_prefix"; then
4416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4417set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004419$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004420if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004421 $as_echo_n "(cached) " >&6
4422else
4423 if test -n "$CC"; then
4424 ac_cv_prog_CC="$CC" # Let the user override the test.
4425else
4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004433 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004435 break 2
4436 fi
4437done
cristy8b350f62009-11-15 23:12:43 +00004438 done
cristy3ed852e2009-09-05 21:47:34 +00004439IFS=$as_save_IFS
4440
4441fi
4442fi
4443CC=$ac_cv_prog_CC
4444if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004446$as_echo "$CC" >&6; }
4447else
cristy8b350f62009-11-15 23:12:43 +00004448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004449$as_echo "no" >&6; }
4450fi
4451
4452
4453fi
4454if test -z "$ac_cv_prog_CC"; then
4455 ac_ct_CC=$CC
4456 # Extract the first word of "gcc", so it can be a program name with args.
4457set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004459$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004460if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004461 $as_echo_n "(cached) " >&6
4462else
4463 if test -n "$ac_ct_CC"; then
4464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4465else
4466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467for as_dir in $PATH
4468do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004471 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004473 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004475 break 2
4476 fi
4477done
cristy8b350f62009-11-15 23:12:43 +00004478 done
cristy3ed852e2009-09-05 21:47:34 +00004479IFS=$as_save_IFS
4480
4481fi
4482fi
4483ac_ct_CC=$ac_cv_prog_ac_ct_CC
4484if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004486$as_echo "$ac_ct_CC" >&6; }
4487else
cristy8b350f62009-11-15 23:12:43 +00004488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004489$as_echo "no" >&6; }
4490fi
4491
4492 if test "x$ac_ct_CC" = x; then
4493 CC=""
4494 else
4495 case $cross_compiling:$ac_tool_warned in
4496yes:)
cristy8b350f62009-11-15 23:12:43 +00004497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499ac_tool_warned=yes ;;
4500esac
4501 CC=$ac_ct_CC
4502 fi
4503else
4504 CC="$ac_cv_prog_CC"
4505fi
4506
4507if test -z "$CC"; then
4508 if test -n "$ac_tool_prefix"; then
4509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4510set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004512$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004513if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004514 $as_echo_n "(cached) " >&6
4515else
4516 if test -n "$CC"; then
4517 ac_cv_prog_CC="$CC" # Let the user override the test.
4518else
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004524 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004526 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004528 break 2
4529 fi
4530done
cristy8b350f62009-11-15 23:12:43 +00004531 done
cristy3ed852e2009-09-05 21:47:34 +00004532IFS=$as_save_IFS
4533
4534fi
4535fi
4536CC=$ac_cv_prog_CC
4537if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004539$as_echo "$CC" >&6; }
4540else
cristy8b350f62009-11-15 23:12:43 +00004541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004542$as_echo "no" >&6; }
4543fi
4544
4545
4546 fi
4547fi
4548if test -z "$CC"; then
4549 # Extract the first word of "cc", so it can be a program name with args.
4550set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004552$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004553if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004554 $as_echo_n "(cached) " >&6
4555else
4556 if test -n "$CC"; then
4557 ac_cv_prog_CC="$CC" # Let the user override the test.
4558else
4559 ac_prog_rejected=no
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004565 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4568 ac_prog_rejected=yes
4569 continue
4570 fi
4571 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004573 break 2
4574 fi
4575done
cristy8b350f62009-11-15 23:12:43 +00004576 done
cristy3ed852e2009-09-05 21:47:34 +00004577IFS=$as_save_IFS
4578
4579if test $ac_prog_rejected = yes; then
4580 # We found a bogon in the path, so make sure we never use it.
4581 set dummy $ac_cv_prog_CC
4582 shift
4583 if test $# != 0; then
4584 # We chose a different compiler from the bogus one.
4585 # However, it has the same basename, so the bogon will be chosen
4586 # first if we set CC to just the basename; use the full file name.
4587 shift
4588 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4589 fi
4590fi
4591fi
4592fi
4593CC=$ac_cv_prog_CC
4594if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004596$as_echo "$CC" >&6; }
4597else
cristy8b350f62009-11-15 23:12:43 +00004598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004599$as_echo "no" >&6; }
4600fi
4601
4602
4603fi
4604if test -z "$CC"; then
4605 if test -n "$ac_tool_prefix"; then
4606 for ac_prog in cl.exe
4607 do
4608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4609set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004611$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004612if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004613 $as_echo_n "(cached) " >&6
4614else
4615 if test -n "$CC"; then
4616 ac_cv_prog_CC="$CC" # Let the user override the test.
4617else
4618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH
4620do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004627 break 2
4628 fi
4629done
cristy8b350f62009-11-15 23:12:43 +00004630 done
cristy3ed852e2009-09-05 21:47:34 +00004631IFS=$as_save_IFS
4632
4633fi
4634fi
4635CC=$ac_cv_prog_CC
4636if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004638$as_echo "$CC" >&6; }
4639else
cristy8b350f62009-11-15 23:12:43 +00004640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004641$as_echo "no" >&6; }
4642fi
4643
4644
4645 test -n "$CC" && break
4646 done
4647fi
4648if test -z "$CC"; then
4649 ac_ct_CC=$CC
4650 for ac_prog in cl.exe
4651do
4652 # Extract the first word of "$ac_prog", so it can be a program name with args.
4653set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004655$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004656if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004657 $as_echo_n "(cached) " >&6
4658else
4659 if test -n "$ac_ct_CC"; then
4660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4661else
4662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663for as_dir in $PATH
4664do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004667 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004669 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004671 break 2
4672 fi
4673done
cristy8b350f62009-11-15 23:12:43 +00004674 done
cristy3ed852e2009-09-05 21:47:34 +00004675IFS=$as_save_IFS
4676
4677fi
4678fi
4679ac_ct_CC=$ac_cv_prog_ac_ct_CC
4680if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo "$ac_ct_CC" >&6; }
4683else
cristy8b350f62009-11-15 23:12:43 +00004684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004685$as_echo "no" >&6; }
4686fi
4687
4688
4689 test -n "$ac_ct_CC" && break
4690done
4691
4692 if test "x$ac_ct_CC" = x; then
4693 CC=""
4694 else
4695 case $cross_compiling:$ac_tool_warned in
4696yes:)
cristy8b350f62009-11-15 23:12:43 +00004697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699ac_tool_warned=yes ;;
4700esac
4701 CC=$ac_ct_CC
4702 fi
4703fi
4704
4705fi
4706
4707
cristy8b350f62009-11-15 23:12:43 +00004708test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004710as_fn_error $? "no acceptable C compiler found in \$PATH
4711See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004712
4713# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004714$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004715set X $ac_compile
4716ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004717for ac_option in --version -v -V -qversion; do
4718 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004719case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722esac
cristy8b350f62009-11-15 23:12:43 +00004723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4724$as_echo "$ac_try_echo"; } >&5
4725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004726 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004727 if test -s conftest.err; then
4728 sed '10a\
4729... rest of stderr output deleted ...
4730 10q' conftest.err >conftest.er1
4731 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004732 fi
cristycd4c5312009-11-22 01:19:08 +00004733 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4735 test $ac_status = 0; }
4736done
cristy3ed852e2009-09-05 21:47:34 +00004737
cristy8b350f62009-11-15 23:12:43 +00004738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004739/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004740
cristy3ed852e2009-09-05 21:47:34 +00004741int
4742main ()
4743{
4744
4745 ;
4746 return 0;
4747}
4748_ACEOF
4749ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004750ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004751# Try to create an executable without -o first, disregard a.out.
4752# It will help us diagnose broken compilers, and finding out an intuition
4753# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4755$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004756ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4757
4758# The possible output files:
4759ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4760
4761ac_rmfiles=
4762for ac_file in $ac_files
4763do
4764 case $ac_file in
4765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4766 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4767 esac
4768done
4769rm -f $ac_rmfiles
4770
cristy8b350f62009-11-15 23:12:43 +00004771if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004772case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775esac
cristy8b350f62009-11-15 23:12:43 +00004776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4777$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004778 (eval "$ac_link_default") 2>&5
4779 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4781 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004782 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4783# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4784# in a Makefile. We should not override ac_cv_exeext if it was cached,
4785# so that the user can short-circuit this test for compilers unknown to
4786# Autoconf.
4787for ac_file in $ac_files ''
4788do
4789 test -f "$ac_file" || continue
4790 case $ac_file in
4791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4792 ;;
4793 [ab].out )
4794 # We found the default executable, but exeext='' is most
4795 # certainly right.
4796 break;;
4797 *.* )
cristy8b350f62009-11-15 23:12:43 +00004798 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004799 then :; else
4800 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4801 fi
4802 # We set ac_cv_exeext here because the later test for it is not
4803 # safe: cross compilers may not add the suffix if given an `-o'
4804 # argument, so we may need to know it at that point already.
4805 # Even if this section looks crufty: it has the advantage of
4806 # actually working.
4807 break;;
4808 * )
4809 break;;
4810 esac
4811done
4812test "$ac_cv_exeext" = no && ac_cv_exeext=
4813
4814else
4815 ac_file=''
4816fi
cristy8b350f62009-11-15 23:12:43 +00004817if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819$as_echo "no" >&6; }
4820$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004821sed 's/^/| /' conftest.$ac_ext >&5
4822
cristy8b350f62009-11-15 23:12:43 +00004823{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004825as_fn_error 77 "C compiler cannot create executables
4826See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004827else
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4829$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004830fi
cristycd4c5312009-11-22 01:19:08 +00004831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4832$as_echo_n "checking for C compiler default output file name... " >&6; }
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4834$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004835ac_exeext=$ac_cv_exeext
4836
cristycd4c5312009-11-22 01:19:08 +00004837rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004838ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004840$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004841if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004842case "(($ac_try" in
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4845esac
cristy8b350f62009-11-15 23:12:43 +00004846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4847$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004848 (eval "$ac_link") 2>&5
4849 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4851 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004852 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4853# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4854# work properly (i.e., refer to `conftest.exe'), while it won't with
4855# `rm'.
4856for ac_file in conftest.exe conftest conftest.*; do
4857 test -f "$ac_file" || continue
4858 case $ac_file in
4859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4860 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4861 break;;
4862 * ) break;;
4863 esac
4864done
4865else
cristy8b350f62009-11-15 23:12:43 +00004866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004868as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4869See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004870fi
cristycd4c5312009-11-22 01:19:08 +00004871rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004873$as_echo "$ac_cv_exeext" >&6; }
4874
4875rm -f conftest.$ac_ext
4876EXEEXT=$ac_cv_exeext
4877ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879/* end confdefs.h. */
4880#include <stdio.h>
4881int
4882main ()
4883{
4884FILE *f = fopen ("conftest.out", "w");
4885 return ferror (f) || fclose (f) != 0;
4886
4887 ;
4888 return 0;
4889}
4890_ACEOF
4891ac_clean_files="$ac_clean_files conftest.out"
4892# Check that the compiler produces executables we can run. If not, either
4893# the compiler is broken, or we cross compile.
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4895$as_echo_n "checking whether we are cross compiling... " >&6; }
4896if test "$cross_compiling" != yes; then
4897 { { ac_try="$ac_link"
4898case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901esac
4902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4903$as_echo "$ac_try_echo"; } >&5
4904 (eval "$ac_link") 2>&5
4905 ac_status=$?
4906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4907 test $ac_status = 0; }
4908 if { ac_try='./conftest$ac_cv_exeext'
4909 { { case "(($ac_try" in
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4912esac
4913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4914$as_echo "$ac_try_echo"; } >&5
4915 (eval "$ac_try") 2>&5
4916 ac_status=$?
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }; }; then
4919 cross_compiling=no
4920 else
4921 if test "$cross_compiling" = maybe; then
4922 cross_compiling=yes
4923 else
4924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004926as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004927If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004928See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004929 fi
4930 fi
4931fi
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4933$as_echo "$cross_compiling" >&6; }
4934
4935rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4936ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004938$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004939if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004940 $as_echo_n "(cached) " >&6
4941else
cristy8b350f62009-11-15 23:12:43 +00004942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004943/* end confdefs.h. */
4944
4945int
4946main ()
4947{
4948
4949 ;
4950 return 0;
4951}
4952_ACEOF
4953rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004954if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004955case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958esac
cristy8b350f62009-11-15 23:12:43 +00004959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4960$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004961 (eval "$ac_compile") 2>&5
4962 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4964 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004965 for ac_file in conftest.o conftest.obj conftest.*; do
4966 test -f "$ac_file" || continue;
4967 case $ac_file in
4968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4970 break;;
4971 esac
4972done
4973else
4974 $as_echo "$as_me: failed program was:" >&5
4975sed 's/^/| /' conftest.$ac_ext >&5
4976
cristy8b350f62009-11-15 23:12:43 +00004977{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004979as_fn_error $? "cannot compute suffix of object files: cannot compile
4980See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004981fi
cristy3ed852e2009-09-05 21:47:34 +00004982rm -f conftest.$ac_cv_objext conftest.$ac_ext
4983fi
cristy8b350f62009-11-15 23:12:43 +00004984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004985$as_echo "$ac_cv_objext" >&6; }
4986OBJEXT=$ac_cv_objext
4987ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004989$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004990if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004991 $as_echo_n "(cached) " >&6
4992else
cristy8b350f62009-11-15 23:12:43 +00004993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004994/* end confdefs.h. */
4995
4996int
4997main ()
4998{
4999#ifndef __GNUC__
5000 choke me
5001#endif
5002
5003 ;
5004 return 0;
5005}
5006_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005007if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005008 ac_compiler_gnu=yes
5009else
cristy8b350f62009-11-15 23:12:43 +00005010 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005011fi
cristy3ed852e2009-09-05 21:47:34 +00005012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013ac_cv_c_compiler_gnu=$ac_compiler_gnu
5014
5015fi
cristy8b350f62009-11-15 23:12:43 +00005016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005017$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5018if test $ac_compiler_gnu = yes; then
5019 GCC=yes
5020else
5021 GCC=
5022fi
5023ac_test_CFLAGS=${CFLAGS+set}
5024ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005026$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005027if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005028 $as_echo_n "(cached) " >&6
5029else
5030 ac_save_c_werror_flag=$ac_c_werror_flag
5031 ac_c_werror_flag=yes
5032 ac_cv_prog_cc_g=no
5033 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005035/* end confdefs.h. */
5036
5037int
5038main ()
5039{
5040
5041 ;
5042 return 0;
5043}
5044_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005045if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005046 ac_cv_prog_cc_g=yes
5047else
cristy8b350f62009-11-15 23:12:43 +00005048 CFLAGS=""
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005050/* end confdefs.h. */
5051
5052int
5053main ()
5054{
5055
5056 ;
5057 return 0;
5058}
5059_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005060if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005061
cristy8b350f62009-11-15 23:12:43 +00005062else
5063 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005064 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005066/* end confdefs.h. */
5067
5068int
5069main ()
5070{
5071
5072 ;
5073 return 0;
5074}
5075_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005076if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005077 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005078fi
cristy3ed852e2009-09-05 21:47:34 +00005079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5080fi
cristy3ed852e2009-09-05 21:47:34 +00005081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082fi
cristy3ed852e2009-09-05 21:47:34 +00005083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 ac_c_werror_flag=$ac_save_c_werror_flag
5085fi
cristy8b350f62009-11-15 23:12:43 +00005086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005087$as_echo "$ac_cv_prog_cc_g" >&6; }
5088if test "$ac_test_CFLAGS" = set; then
5089 CFLAGS=$ac_save_CFLAGS
5090elif test $ac_cv_prog_cc_g = yes; then
5091 if test "$GCC" = yes; then
5092 CFLAGS="-g -O2"
5093 else
5094 CFLAGS="-g"
5095 fi
5096else
5097 if test "$GCC" = yes; then
5098 CFLAGS="-O2"
5099 else
5100 CFLAGS=
5101 fi
5102fi
cristy8b350f62009-11-15 23:12:43 +00005103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005104$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005105if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005106 $as_echo_n "(cached) " >&6
5107else
5108 ac_cv_prog_cc_c89=no
5109ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005111/* end confdefs.h. */
5112#include <stdarg.h>
5113#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005114struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005115/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5116struct buf { int x; };
5117FILE * (*rcsopen) (struct buf *, struct stat *, int);
5118static char *e (p, i)
5119 char **p;
5120 int i;
5121{
5122 return p[i];
5123}
5124static char *f (char * (*g) (char **, int), char **p, ...)
5125{
5126 char *s;
5127 va_list v;
5128 va_start (v,p);
5129 s = g (p, va_arg (v,int));
5130 va_end (v);
5131 return s;
5132}
5133
5134/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5135 function prototypes and stuff, but not '\xHH' hex character constants.
5136 These don't provoke an error unfortunately, instead are silently treated
5137 as 'x'. The following induces an error, until -std is added to get
5138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5139 array size at least. It's necessary to write '\x00'==0 to get something
5140 that's true only with -std. */
5141int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5142
5143/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5144 inside strings and character constants. */
5145#define FOO(x) 'x'
5146int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5147
5148int test (int i, double x);
5149struct s1 {int (*f) (int a);};
5150struct s2 {int (*f) (double a);};
5151int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5152int argc;
5153char **argv;
5154int
5155main ()
5156{
5157return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5158 ;
5159 return 0;
5160}
5161_ACEOF
5162for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5163 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5164do
5165 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005166 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005167 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005168fi
cristy3ed852e2009-09-05 21:47:34 +00005169rm -f core conftest.err conftest.$ac_objext
5170 test "x$ac_cv_prog_cc_c89" != "xno" && break
5171done
5172rm -f conftest.$ac_ext
5173CC=$ac_save_CC
5174
5175fi
5176# AC_CACHE_VAL
5177case "x$ac_cv_prog_cc_c89" in
5178 x)
cristy8b350f62009-11-15 23:12:43 +00005179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005180$as_echo "none needed" >&6; } ;;
5181 xno)
cristy8b350f62009-11-15 23:12:43 +00005182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005183$as_echo "unsupported" >&6; } ;;
5184 *)
5185 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005187$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5188esac
cristy8b350f62009-11-15 23:12:43 +00005189if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005190
cristy8b350f62009-11-15 23:12:43 +00005191fi
cristy3ed852e2009-09-05 21:47:34 +00005192
5193ac_ext=c
5194ac_cpp='$CPP $CPPFLAGS'
5195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005198
cristy73bd4a52010-10-05 11:24:23 +00005199depcc="$CC" am_compiler_list=
5200
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5202$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005203if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005204 $as_echo_n "(cached) " >&6
5205else
5206 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5207 # We make a subdir and do the tests there. Otherwise we can end up
5208 # making bogus files that we don't know about and never remove. For
5209 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005210 # making a dummy file named 'D' -- because '-MD' means "put the output
5211 # in D".
cristy7247bba2012-02-05 16:37:27 +00005212 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005213 mkdir conftest.dir
5214 # Copy depcomp to subdir because otherwise we won't find it if we're
5215 # using a relative directory.
5216 cp "$am_depcomp" conftest.dir
5217 cd conftest.dir
5218 # We will build objects and dependencies in a subdirectory because
5219 # it helps to detect inapplicable dependency modes. For instance
5220 # both Tru64's cc and ICC support -MD to output dependencies as a
5221 # side effect of compilation, but ICC will put the dependencies in
5222 # the current directory while Tru64 will put them in the object
5223 # directory.
5224 mkdir sub
5225
5226 am_cv_CC_dependencies_compiler_type=none
5227 if test "$am_compiler_list" = ""; then
5228 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5229 fi
5230 am__universal=false
5231 case " $depcc " in #(
5232 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5233 esac
5234
5235 for depmode in $am_compiler_list; do
5236 # Setup a source with many dependencies, because some compilers
5237 # like to wrap large dependency lists on column 80 (with \), and
5238 # we should not choose a depcomp mode which is confused by this.
5239 #
5240 # We need to recreate these files for each test, as the compiler may
5241 # overwrite some of them when testing with obscure command lines.
5242 # This happens at least with the AIX C compiler.
5243 : > sub/conftest.c
5244 for i in 1 2 3 4 5 6; do
5245 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005246 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5247 # Solaris 10 /bin/sh.
5248 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005249 done
5250 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5251
cristyc0890a62012-07-19 00:18:20 +00005252 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005253 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005254 # handle '-M -o', and we need to detect this. Also, some Intel
5255 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005256 am__obj=sub/conftest.${OBJEXT-o}
5257 am__minus_obj="-o $am__obj"
5258 case $depmode in
5259 gcc)
5260 # This depmode causes a compiler race in universal mode.
5261 test "$am__universal" = false || continue
5262 ;;
5263 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005264 # After this tag, mechanisms are not by side-effect, so they'll
5265 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005266 if test "x$enable_dependency_tracking" = xyes; then
5267 continue
5268 else
5269 break
5270 fi
5271 ;;
cristy7247bba2012-02-05 16:37:27 +00005272 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005273 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005274 # not run yet. These depmodes are late enough in the game, and
5275 # so weak that their functioning should not be impacted.
5276 am__obj=conftest.${OBJEXT-o}
5277 am__minus_obj=
5278 ;;
5279 none) break ;;
5280 esac
5281 if depmode=$depmode \
5282 source=sub/conftest.c object=$am__obj \
5283 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5284 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5285 >/dev/null 2>conftest.err &&
5286 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5287 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5288 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5289 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5290 # icc doesn't choke on unknown options, it will just issue warnings
5291 # or remarks (even with -Werror). So we grep stderr for any message
5292 # that says an option was ignored or not supported.
5293 # When given -MP, icc 7.0 and 7.1 complain thusly:
5294 # icc: Command line warning: ignoring option '-M'; no argument required
5295 # The diagnosis changed in icc 8.0:
5296 # icc: Command line remark: option '-MP' not supported
5297 if (grep 'ignoring option' conftest.err ||
5298 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5299 am_cv_CC_dependencies_compiler_type=$depmode
5300 break
5301 fi
5302 fi
5303 done
5304
5305 cd ..
5306 rm -rf conftest.dir
5307else
5308 am_cv_CC_dependencies_compiler_type=none
5309fi
5310
5311fi
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5313$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5314CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5315
5316 if
5317 test "x$enable_dependency_tracking" != xno \
5318 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5319 am__fastdepCC_TRUE=
5320 am__fastdepCC_FALSE='#'
5321else
5322 am__fastdepCC_TRUE='#'
5323 am__fastdepCC_FALSE=
5324fi
5325
5326
cristy3ed852e2009-09-05 21:47:34 +00005327
cristya0b81c32010-01-22 02:54:33 +00005328ac_ext=c
5329ac_cpp='$CPP $CPPFLAGS'
5330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332ac_compiler_gnu=$ac_cv_c_compiler_gnu
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5334$as_echo_n "checking how to run the C preprocessor... " >&6; }
5335# On Suns, sometimes $CPP names a directory.
5336if test -n "$CPP" && test -d "$CPP"; then
5337 CPP=
5338fi
5339if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005340 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005341 $as_echo_n "(cached) " >&6
5342else
5343 # Double quotes because CPP needs to be expanded
5344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5345 do
5346 ac_preproc_ok=false
5347for ac_c_preproc_warn_flag in '' yes
5348do
5349 # Use a header file that comes with gcc, so configuring glibc
5350 # with a fresh cross-compiler works.
5351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5352 # <limits.h> exists even on freestanding compilers.
5353 # On the NeXT, cc -E runs the code through the compiler's parser,
5354 # not just through cpp. "Syntax error" is here to catch this case.
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356/* end confdefs.h. */
5357#ifdef __STDC__
5358# include <limits.h>
5359#else
5360# include <assert.h>
5361#endif
5362 Syntax error
5363_ACEOF
5364if ac_fn_c_try_cpp "$LINENO"; then :
5365
5366else
5367 # Broken: fails on valid input.
5368continue
5369fi
cristyda16f162011-02-19 23:52:17 +00005370rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005371
5372 # OK, works on sane cases. Now check whether nonexistent headers
5373 # can be detected and how.
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375/* end confdefs.h. */
5376#include <ac_nonexistent.h>
5377_ACEOF
5378if ac_fn_c_try_cpp "$LINENO"; then :
5379 # Broken: success on invalid input.
5380continue
5381else
5382 # Passes both tests.
5383ac_preproc_ok=:
5384break
5385fi
cristyda16f162011-02-19 23:52:17 +00005386rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005387
5388done
5389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005390rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005391if $ac_preproc_ok; then :
5392 break
5393fi
5394
5395 done
5396 ac_cv_prog_CPP=$CPP
5397
5398fi
5399 CPP=$ac_cv_prog_CPP
5400else
5401 ac_cv_prog_CPP=$CPP
5402fi
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5404$as_echo "$CPP" >&6; }
5405ac_preproc_ok=false
5406for ac_c_preproc_warn_flag in '' yes
5407do
5408 # Use a header file that comes with gcc, so configuring glibc
5409 # with a fresh cross-compiler works.
5410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5411 # <limits.h> exists even on freestanding compilers.
5412 # On the NeXT, cc -E runs the code through the compiler's parser,
5413 # not just through cpp. "Syntax error" is here to catch this case.
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415/* end confdefs.h. */
5416#ifdef __STDC__
5417# include <limits.h>
5418#else
5419# include <assert.h>
5420#endif
5421 Syntax error
5422_ACEOF
5423if ac_fn_c_try_cpp "$LINENO"; then :
5424
5425else
5426 # Broken: fails on valid input.
5427continue
5428fi
cristyda16f162011-02-19 23:52:17 +00005429rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005430
5431 # OK, works on sane cases. Now check whether nonexistent headers
5432 # can be detected and how.
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h. */
5435#include <ac_nonexistent.h>
5436_ACEOF
5437if ac_fn_c_try_cpp "$LINENO"; then :
5438 # Broken: success on invalid input.
5439continue
5440else
5441 # Passes both tests.
5442ac_preproc_ok=:
5443break
5444fi
cristyda16f162011-02-19 23:52:17 +00005445rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005446
5447done
5448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005449rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005450if $ac_preproc_ok; then :
5451
5452else
5453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005455as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5456See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005457fi
5458
5459ac_ext=c
5460ac_cpp='$CPP $CPPFLAGS'
5461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463ac_compiler_gnu=$ac_cv_c_compiler_gnu
5464
5465
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5467$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005468if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005469 $as_echo_n "(cached) " >&6
5470else
5471 if test -z "$GREP"; then
5472 ac_path_GREP_found=false
5473 # Loop through the user's path and test for each of PROGNAME-LIST
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5476do
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5479 for ac_prog in grep ggrep; do
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005482 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005483# Check for GNU ac_path_GREP and select it if it is found.
5484 # Check for GNU $ac_path_GREP
5485case `"$ac_path_GREP" --version 2>&1` in
5486*GNU*)
5487 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5488*)
5489 ac_count=0
5490 $as_echo_n 0123456789 >"conftest.in"
5491 while :
5492 do
5493 cat "conftest.in" "conftest.in" >"conftest.tmp"
5494 mv "conftest.tmp" "conftest.in"
5495 cp "conftest.in" "conftest.nl"
5496 $as_echo 'GREP' >> "conftest.nl"
5497 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5499 as_fn_arith $ac_count + 1 && ac_count=$as_val
5500 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5501 # Best one so far, save it but keep looking for a better one
5502 ac_cv_path_GREP="$ac_path_GREP"
5503 ac_path_GREP_max=$ac_count
5504 fi
5505 # 10*(2^10) chars as input seems more than enough
5506 test $ac_count -gt 10 && break
5507 done
5508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5509esac
5510
5511 $ac_path_GREP_found && break 3
5512 done
5513 done
5514 done
5515IFS=$as_save_IFS
5516 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005517 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005518 fi
5519else
5520 ac_cv_path_GREP=$GREP
5521fi
5522
5523fi
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5525$as_echo "$ac_cv_path_GREP" >&6; }
5526 GREP="$ac_cv_path_GREP"
5527
5528
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5530$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005531if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005532 $as_echo_n "(cached) " >&6
5533else
5534 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5535 then ac_cv_path_EGREP="$GREP -E"
5536 else
5537 if test -z "$EGREP"; then
5538 ac_path_EGREP_found=false
5539 # Loop through the user's path and test for each of PROGNAME-LIST
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5542do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_prog in egrep; do
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005548 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005549# Check for GNU ac_path_EGREP and select it if it is found.
5550 # Check for GNU $ac_path_EGREP
5551case `"$ac_path_EGREP" --version 2>&1` in
5552*GNU*)
5553 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5554*)
5555 ac_count=0
5556 $as_echo_n 0123456789 >"conftest.in"
5557 while :
5558 do
5559 cat "conftest.in" "conftest.in" >"conftest.tmp"
5560 mv "conftest.tmp" "conftest.in"
5561 cp "conftest.in" "conftest.nl"
5562 $as_echo 'EGREP' >> "conftest.nl"
5563 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5564 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5565 as_fn_arith $ac_count + 1 && ac_count=$as_val
5566 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5567 # Best one so far, save it but keep looking for a better one
5568 ac_cv_path_EGREP="$ac_path_EGREP"
5569 ac_path_EGREP_max=$ac_count
5570 fi
5571 # 10*(2^10) chars as input seems more than enough
5572 test $ac_count -gt 10 && break
5573 done
5574 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5575esac
5576
5577 $ac_path_EGREP_found && break 3
5578 done
5579 done
5580 done
5581IFS=$as_save_IFS
5582 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005583 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005584 fi
5585else
5586 ac_cv_path_EGREP=$EGREP
5587fi
5588
5589 fi
5590fi
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5592$as_echo "$ac_cv_path_EGREP" >&6; }
5593 EGREP="$ac_cv_path_EGREP"
5594
5595
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5597$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005598if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005599 $as_echo_n "(cached) " >&6
5600else
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602/* end confdefs.h. */
5603#include <stdlib.h>
5604#include <stdarg.h>
5605#include <string.h>
5606#include <float.h>
5607
5608int
5609main ()
5610{
5611
5612 ;
5613 return 0;
5614}
5615_ACEOF
5616if ac_fn_c_try_compile "$LINENO"; then :
5617 ac_cv_header_stdc=yes
5618else
5619 ac_cv_header_stdc=no
5620fi
5621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622
5623if test $ac_cv_header_stdc = yes; then
5624 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h. */
5627#include <string.h>
5628
5629_ACEOF
5630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5631 $EGREP "memchr" >/dev/null 2>&1; then :
5632
5633else
5634 ac_cv_header_stdc=no
5635fi
5636rm -f conftest*
5637
5638fi
5639
5640if test $ac_cv_header_stdc = yes; then
5641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h. */
5644#include <stdlib.h>
5645
5646_ACEOF
5647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5648 $EGREP "free" >/dev/null 2>&1; then :
5649
5650else
5651 ac_cv_header_stdc=no
5652fi
5653rm -f conftest*
5654
5655fi
5656
5657if test $ac_cv_header_stdc = yes; then
5658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5659 if test "$cross_compiling" = yes; then :
5660 :
5661else
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h. */
5664#include <ctype.h>
5665#include <stdlib.h>
5666#if ((' ' & 0x0FF) == 0x020)
5667# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5668# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5669#else
5670# define ISLOWER(c) \
5671 (('a' <= (c) && (c) <= 'i') \
5672 || ('j' <= (c) && (c) <= 'r') \
5673 || ('s' <= (c) && (c) <= 'z'))
5674# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5675#endif
5676
5677#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5678int
5679main ()
5680{
5681 int i;
5682 for (i = 0; i < 256; i++)
5683 if (XOR (islower (i), ISLOWER (i))
5684 || toupper (i) != TOUPPER (i))
5685 return 2;
5686 return 0;
5687}
5688_ACEOF
5689if ac_fn_c_try_run "$LINENO"; then :
5690
5691else
5692 ac_cv_header_stdc=no
5693fi
5694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5695 conftest.$ac_objext conftest.beam conftest.$ac_ext
5696fi
5697
5698fi
5699fi
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5701$as_echo "$ac_cv_header_stdc" >&6; }
5702if test $ac_cv_header_stdc = yes; then
5703
5704$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5705
5706fi
5707
5708# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5709for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5710 inttypes.h stdint.h unistd.h
5711do :
5712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5713ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5714"
cristy98dddb52010-11-04 00:30:15 +00005715if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005716 cat >>confdefs.h <<_ACEOF
5717#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5718_ACEOF
5719
5720fi
5721
5722done
5723
5724
5725
5726 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 +00005727if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005728 MINIX=yes
5729else
5730 MINIX=
5731fi
5732
5733
5734 if test "$MINIX" = yes; then
5735
5736$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5737
5738
5739$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5740
5741
5742$as_echo "#define _MINIX 1" >>confdefs.h
5743
5744 fi
5745
5746
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5748$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005749if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005750 $as_echo_n "(cached) " >&6
5751else
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753/* end confdefs.h. */
5754
cristy14fefe52012-05-21 00:59:18 +00005755# define __EXTENSIONS__ 1
5756 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005757int
5758main ()
5759{
5760
5761 ;
5762 return 0;
5763}
5764_ACEOF
5765if ac_fn_c_try_compile "$LINENO"; then :
5766 ac_cv_safe_to_define___extensions__=yes
5767else
5768 ac_cv_safe_to_define___extensions__=no
5769fi
5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771fi
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5773$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5774 test $ac_cv_safe_to_define___extensions__ = yes &&
5775 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5776
5777 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5778
5779 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5780
5781 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5782
5783 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5784
5785
5786
5787# Check for programs
5788ac_ext=c
5789ac_cpp='$CPP $CPPFLAGS'
5790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792ac_compiler_gnu=$ac_cv_c_compiler_gnu
5793if test -n "$ac_tool_prefix"; then
5794 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5795set dummy ${ac_tool_prefix}gcc; ac_word=$2
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005798if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005799 $as_echo_n "(cached) " >&6
5800else
5801 if test -n "$CC"; then
5802 ac_cv_prog_CC="$CC" # Let the user override the test.
5803else
5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005811 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815done
5816 done
5817IFS=$as_save_IFS
5818
5819fi
5820fi
5821CC=$ac_cv_prog_CC
5822if test -n "$CC"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5824$as_echo "$CC" >&6; }
5825else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827$as_echo "no" >&6; }
5828fi
5829
5830
5831fi
5832if test -z "$ac_cv_prog_CC"; then
5833 ac_ct_CC=$CC
5834 # Extract the first word of "gcc", so it can be a program name with args.
5835set dummy gcc; ac_word=$2
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005838if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005839 $as_echo_n "(cached) " >&6
5840else
5841 if test -n "$ac_ct_CC"; then
5842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5843else
5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845for as_dir in $PATH
5846do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005851 ac_cv_prog_ac_ct_CC="gcc"
5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855done
5856 done
5857IFS=$as_save_IFS
5858
5859fi
5860fi
5861ac_ct_CC=$ac_cv_prog_ac_ct_CC
5862if test -n "$ac_ct_CC"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5864$as_echo "$ac_ct_CC" >&6; }
5865else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867$as_echo "no" >&6; }
5868fi
5869
5870 if test "x$ac_ct_CC" = x; then
5871 CC=""
5872 else
5873 case $cross_compiling:$ac_tool_warned in
5874yes:)
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5877ac_tool_warned=yes ;;
5878esac
5879 CC=$ac_ct_CC
5880 fi
5881else
5882 CC="$ac_cv_prog_CC"
5883fi
5884
5885if test -z "$CC"; then
5886 if test -n "$ac_tool_prefix"; then
5887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5888set dummy ${ac_tool_prefix}cc; ac_word=$2
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005891if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005892 $as_echo_n "(cached) " >&6
5893else
5894 if test -n "$CC"; then
5895 ac_cv_prog_CC="$CC" # Let the user override the test.
5896else
5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005904 ac_cv_prog_CC="${ac_tool_prefix}cc"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5907 fi
5908done
5909 done
5910IFS=$as_save_IFS
5911
5912fi
5913fi
5914CC=$ac_cv_prog_CC
5915if test -n "$CC"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5917$as_echo "$CC" >&6; }
5918else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920$as_echo "no" >&6; }
5921fi
5922
5923
5924 fi
5925fi
5926if test -z "$CC"; then
5927 # Extract the first word of "cc", so it can be a program name with args.
5928set dummy cc; ac_word=$2
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005931if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005932 $as_echo_n "(cached) " >&6
5933else
5934 if test -n "$CC"; then
5935 ac_cv_prog_CC="$CC" # Let the user override the test.
5936else
5937 ac_prog_rejected=no
5938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939for as_dir in $PATH
5940do
5941 IFS=$as_save_IFS
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005945 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5946 ac_prog_rejected=yes
5947 continue
5948 fi
5949 ac_cv_prog_CC="cc"
5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 break 2
5952 fi
5953done
5954 done
5955IFS=$as_save_IFS
5956
5957if test $ac_prog_rejected = yes; then
5958 # We found a bogon in the path, so make sure we never use it.
5959 set dummy $ac_cv_prog_CC
5960 shift
5961 if test $# != 0; then
5962 # We chose a different compiler from the bogus one.
5963 # However, it has the same basename, so the bogon will be chosen
5964 # first if we set CC to just the basename; use the full file name.
5965 shift
5966 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5967 fi
5968fi
5969fi
5970fi
5971CC=$ac_cv_prog_CC
5972if test -n "$CC"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5974$as_echo "$CC" >&6; }
5975else
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977$as_echo "no" >&6; }
5978fi
5979
5980
5981fi
5982if test -z "$CC"; then
5983 if test -n "$ac_tool_prefix"; then
5984 for ac_prog in cl.exe
5985 do
5986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5989$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005990if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005991 $as_echo_n "(cached) " >&6
5992else
5993 if test -n "$CC"; then
5994 ac_cv_prog_CC="$CC" # Let the user override the test.
5995else
5996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997for as_dir in $PATH
5998do
5999 IFS=$as_save_IFS
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 break 2
6006 fi
6007done
6008 done
6009IFS=$as_save_IFS
6010
6011fi
6012fi
6013CC=$ac_cv_prog_CC
6014if test -n "$CC"; then
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6016$as_echo "$CC" >&6; }
6017else
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019$as_echo "no" >&6; }
6020fi
6021
6022
6023 test -n "$CC" && break
6024 done
6025fi
6026if test -z "$CC"; then
6027 ac_ct_CC=$CC
6028 for ac_prog in cl.exe
6029do
6030 # Extract the first word of "$ac_prog", so it can be a program name with args.
6031set dummy $ac_prog; ac_word=$2
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006034if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006035 $as_echo_n "(cached) " >&6
6036else
6037 if test -n "$ac_ct_CC"; then
6038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6039else
6040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041for as_dir in $PATH
6042do
6043 IFS=$as_save_IFS
6044 test -z "$as_dir" && as_dir=.
6045 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006047 ac_cv_prog_ac_ct_CC="$ac_prog"
6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 break 2
6050 fi
6051done
6052 done
6053IFS=$as_save_IFS
6054
6055fi
6056fi
6057ac_ct_CC=$ac_cv_prog_ac_ct_CC
6058if test -n "$ac_ct_CC"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6060$as_echo "$ac_ct_CC" >&6; }
6061else
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063$as_echo "no" >&6; }
6064fi
6065
6066
6067 test -n "$ac_ct_CC" && break
6068done
6069
6070 if test "x$ac_ct_CC" = x; then
6071 CC=""
6072 else
6073 case $cross_compiling:$ac_tool_warned in
6074yes:)
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077ac_tool_warned=yes ;;
6078esac
6079 CC=$ac_ct_CC
6080 fi
6081fi
6082
6083fi
6084
6085
6086test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006088as_fn_error $? "no acceptable C compiler found in \$PATH
6089See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006090
6091# Provide some information about the compiler.
6092$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6093set X $ac_compile
6094ac_compiler=$2
6095for ac_option in --version -v -V -qversion; do
6096 { { ac_try="$ac_compiler $ac_option >&5"
6097case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100esac
6101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6102$as_echo "$ac_try_echo"; } >&5
6103 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6104 ac_status=$?
6105 if test -s conftest.err; then
6106 sed '10a\
6107... rest of stderr output deleted ...
6108 10q' conftest.err >conftest.er1
6109 cat conftest.er1 >&5
6110 fi
6111 rm -f conftest.er1 conftest.err
6112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6113 test $ac_status = 0; }
6114done
6115
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6117$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006118if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006119 $as_echo_n "(cached) " >&6
6120else
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122/* end confdefs.h. */
6123
6124int
6125main ()
6126{
6127#ifndef __GNUC__
6128 choke me
6129#endif
6130
6131 ;
6132 return 0;
6133}
6134_ACEOF
6135if ac_fn_c_try_compile "$LINENO"; then :
6136 ac_compiler_gnu=yes
6137else
6138 ac_compiler_gnu=no
6139fi
6140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141ac_cv_c_compiler_gnu=$ac_compiler_gnu
6142
6143fi
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6145$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6146if test $ac_compiler_gnu = yes; then
6147 GCC=yes
6148else
6149 GCC=
6150fi
6151ac_test_CFLAGS=${CFLAGS+set}
6152ac_save_CFLAGS=$CFLAGS
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6154$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006155if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006156 $as_echo_n "(cached) " >&6
6157else
6158 ac_save_c_werror_flag=$ac_c_werror_flag
6159 ac_c_werror_flag=yes
6160 ac_cv_prog_cc_g=no
6161 CFLAGS="-g"
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163/* end confdefs.h. */
6164
6165int
6166main ()
6167{
6168
6169 ;
6170 return 0;
6171}
6172_ACEOF
6173if ac_fn_c_try_compile "$LINENO"; then :
6174 ac_cv_prog_cc_g=yes
6175else
6176 CFLAGS=""
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178/* end confdefs.h. */
6179
6180int
6181main ()
6182{
6183
6184 ;
6185 return 0;
6186}
6187_ACEOF
6188if ac_fn_c_try_compile "$LINENO"; then :
6189
6190else
6191 ac_c_werror_flag=$ac_save_c_werror_flag
6192 CFLAGS="-g"
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194/* end confdefs.h. */
6195
6196int
6197main ()
6198{
6199
6200 ;
6201 return 0;
6202}
6203_ACEOF
6204if ac_fn_c_try_compile "$LINENO"; then :
6205 ac_cv_prog_cc_g=yes
6206fi
6207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208fi
6209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210fi
6211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212 ac_c_werror_flag=$ac_save_c_werror_flag
6213fi
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6215$as_echo "$ac_cv_prog_cc_g" >&6; }
6216if test "$ac_test_CFLAGS" = set; then
6217 CFLAGS=$ac_save_CFLAGS
6218elif test $ac_cv_prog_cc_g = yes; then
6219 if test "$GCC" = yes; then
6220 CFLAGS="-g -O2"
6221 else
6222 CFLAGS="-g"
6223 fi
6224else
6225 if test "$GCC" = yes; then
6226 CFLAGS="-O2"
6227 else
6228 CFLAGS=
6229 fi
6230fi
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6232$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006233if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006234 $as_echo_n "(cached) " >&6
6235else
6236 ac_cv_prog_cc_c89=no
6237ac_save_CC=$CC
6238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239/* end confdefs.h. */
6240#include <stdarg.h>
6241#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006242struct stat;
cristya0b81c32010-01-22 02:54:33 +00006243/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6244struct buf { int x; };
6245FILE * (*rcsopen) (struct buf *, struct stat *, int);
6246static char *e (p, i)
6247 char **p;
6248 int i;
6249{
6250 return p[i];
6251}
6252static char *f (char * (*g) (char **, int), char **p, ...)
6253{
6254 char *s;
6255 va_list v;
6256 va_start (v,p);
6257 s = g (p, va_arg (v,int));
6258 va_end (v);
6259 return s;
6260}
6261
6262/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6263 function prototypes and stuff, but not '\xHH' hex character constants.
6264 These don't provoke an error unfortunately, instead are silently treated
6265 as 'x'. The following induces an error, until -std is added to get
6266 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6267 array size at least. It's necessary to write '\x00'==0 to get something
6268 that's true only with -std. */
6269int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6270
6271/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6272 inside strings and character constants. */
6273#define FOO(x) 'x'
6274int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6275
6276int test (int i, double x);
6277struct s1 {int (*f) (int a);};
6278struct s2 {int (*f) (double a);};
6279int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6280int argc;
6281char **argv;
6282int
6283main ()
6284{
6285return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6286 ;
6287 return 0;
6288}
6289_ACEOF
6290for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6291 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6292do
6293 CC="$ac_save_CC $ac_arg"
6294 if ac_fn_c_try_compile "$LINENO"; then :
6295 ac_cv_prog_cc_c89=$ac_arg
6296fi
6297rm -f core conftest.err conftest.$ac_objext
6298 test "x$ac_cv_prog_cc_c89" != "xno" && break
6299done
6300rm -f conftest.$ac_ext
6301CC=$ac_save_CC
6302
6303fi
6304# AC_CACHE_VAL
6305case "x$ac_cv_prog_cc_c89" in
6306 x)
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6308$as_echo "none needed" >&6; } ;;
6309 xno)
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6311$as_echo "unsupported" >&6; } ;;
6312 *)
6313 CC="$CC $ac_cv_prog_cc_c89"
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6315$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6316esac
6317if test "x$ac_cv_prog_cc_c89" != xno; then :
6318
6319fi
6320
6321ac_ext=c
6322ac_cpp='$CPP $CPPFLAGS'
6323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325ac_compiler_gnu=$ac_cv_c_compiler_gnu
6326
cristy73bd4a52010-10-05 11:24:23 +00006327depcc="$CC" am_compiler_list=
6328
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6330$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006331if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006332 $as_echo_n "(cached) " >&6
6333else
6334 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6335 # We make a subdir and do the tests there. Otherwise we can end up
6336 # making bogus files that we don't know about and never remove. For
6337 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006338 # making a dummy file named 'D' -- because '-MD' means "put the output
6339 # in D".
cristy7247bba2012-02-05 16:37:27 +00006340 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006341 mkdir conftest.dir
6342 # Copy depcomp to subdir because otherwise we won't find it if we're
6343 # using a relative directory.
6344 cp "$am_depcomp" conftest.dir
6345 cd conftest.dir
6346 # We will build objects and dependencies in a subdirectory because
6347 # it helps to detect inapplicable dependency modes. For instance
6348 # both Tru64's cc and ICC support -MD to output dependencies as a
6349 # side effect of compilation, but ICC will put the dependencies in
6350 # the current directory while Tru64 will put them in the object
6351 # directory.
6352 mkdir sub
6353
6354 am_cv_CC_dependencies_compiler_type=none
6355 if test "$am_compiler_list" = ""; then
6356 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6357 fi
6358 am__universal=false
6359 case " $depcc " in #(
6360 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6361 esac
6362
6363 for depmode in $am_compiler_list; do
6364 # Setup a source with many dependencies, because some compilers
6365 # like to wrap large dependency lists on column 80 (with \), and
6366 # we should not choose a depcomp mode which is confused by this.
6367 #
6368 # We need to recreate these files for each test, as the compiler may
6369 # overwrite some of them when testing with obscure command lines.
6370 # This happens at least with the AIX C compiler.
6371 : > sub/conftest.c
6372 for i in 1 2 3 4 5 6; do
6373 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006374 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6375 # Solaris 10 /bin/sh.
6376 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006377 done
6378 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6379
cristyc0890a62012-07-19 00:18:20 +00006380 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006381 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006382 # handle '-M -o', and we need to detect this. Also, some Intel
6383 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006384 am__obj=sub/conftest.${OBJEXT-o}
6385 am__minus_obj="-o $am__obj"
6386 case $depmode in
6387 gcc)
6388 # This depmode causes a compiler race in universal mode.
6389 test "$am__universal" = false || continue
6390 ;;
6391 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006392 # After this tag, mechanisms are not by side-effect, so they'll
6393 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006394 if test "x$enable_dependency_tracking" = xyes; then
6395 continue
6396 else
6397 break
6398 fi
6399 ;;
cristy7247bba2012-02-05 16:37:27 +00006400 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006401 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006402 # not run yet. These depmodes are late enough in the game, and
6403 # so weak that their functioning should not be impacted.
6404 am__obj=conftest.${OBJEXT-o}
6405 am__minus_obj=
6406 ;;
6407 none) break ;;
6408 esac
6409 if depmode=$depmode \
6410 source=sub/conftest.c object=$am__obj \
6411 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6412 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6413 >/dev/null 2>conftest.err &&
6414 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6415 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6416 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6417 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6418 # icc doesn't choke on unknown options, it will just issue warnings
6419 # or remarks (even with -Werror). So we grep stderr for any message
6420 # that says an option was ignored or not supported.
6421 # When given -MP, icc 7.0 and 7.1 complain thusly:
6422 # icc: Command line warning: ignoring option '-M'; no argument required
6423 # The diagnosis changed in icc 8.0:
6424 # icc: Command line remark: option '-MP' not supported
6425 if (grep 'ignoring option' conftest.err ||
6426 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6427 am_cv_CC_dependencies_compiler_type=$depmode
6428 break
6429 fi
6430 fi
6431 done
6432
6433 cd ..
6434 rm -rf conftest.dir
6435else
6436 am_cv_CC_dependencies_compiler_type=none
6437fi
6438
6439fi
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6441$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6442CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6443
6444 if
6445 test "x$enable_dependency_tracking" != xno \
6446 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6447 am__fastdepCC_TRUE=
6448 am__fastdepCC_FALSE='#'
6449else
6450 am__fastdepCC_TRUE='#'
6451 am__fastdepCC_FALSE=
6452fi
6453
6454
cristy95646052009-11-28 23:05:30 +00006455ac_ext=cpp
6456ac_cpp='$CXXCPP $CPPFLAGS'
6457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6460if test -z "$CXX"; then
6461 if test -n "$CCC"; then
6462 CXX=$CCC
6463 else
6464 if test -n "$ac_tool_prefix"; then
6465 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6466 do
6467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6468set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006471if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006472 $as_echo_n "(cached) " >&6
6473else
6474 if test -n "$CXX"; then
6475 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6476else
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006484 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6487 fi
6488done
6489 done
6490IFS=$as_save_IFS
6491
6492fi
6493fi
6494CXX=$ac_cv_prog_CXX
6495if test -n "$CXX"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6497$as_echo "$CXX" >&6; }
6498else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500$as_echo "no" >&6; }
6501fi
6502
6503
6504 test -n "$CXX" && break
6505 done
6506fi
6507if test -z "$CXX"; then
6508 ac_ct_CXX=$CXX
6509 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6510do
6511 # Extract the first word of "$ac_prog", so it can be a program name with args.
6512set dummy $ac_prog; ac_word=$2
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006515if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006516 $as_echo_n "(cached) " >&6
6517else
6518 if test -n "$ac_ct_CXX"; then
6519 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6520else
6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006528 ac_cv_prog_ac_ct_CXX="$ac_prog"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6531 fi
6532done
6533 done
6534IFS=$as_save_IFS
6535
6536fi
6537fi
6538ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6539if test -n "$ac_ct_CXX"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6541$as_echo "$ac_ct_CXX" >&6; }
6542else
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544$as_echo "no" >&6; }
6545fi
6546
6547
6548 test -n "$ac_ct_CXX" && break
6549done
6550
6551 if test "x$ac_ct_CXX" = x; then
6552 CXX="g++"
6553 else
6554 case $cross_compiling:$ac_tool_warned in
6555yes:)
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558ac_tool_warned=yes ;;
6559esac
6560 CXX=$ac_ct_CXX
6561 fi
6562fi
6563
6564 fi
6565fi
6566# Provide some information about the compiler.
6567$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6568set X $ac_compile
6569ac_compiler=$2
6570for ac_option in --version -v -V -qversion; do
6571 { { ac_try="$ac_compiler $ac_option >&5"
6572case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575esac
6576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6577$as_echo "$ac_try_echo"; } >&5
6578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6579 ac_status=$?
6580 if test -s conftest.err; then
6581 sed '10a\
6582... rest of stderr output deleted ...
6583 10q' conftest.err >conftest.er1
6584 cat conftest.er1 >&5
6585 fi
6586 rm -f conftest.er1 conftest.err
6587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588 test $ac_status = 0; }
6589done
6590
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6592$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006593if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006594 $as_echo_n "(cached) " >&6
6595else
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h. */
6598
6599int
6600main ()
6601{
6602#ifndef __GNUC__
6603 choke me
6604#endif
6605
6606 ;
6607 return 0;
6608}
6609_ACEOF
6610if ac_fn_cxx_try_compile "$LINENO"; then :
6611 ac_compiler_gnu=yes
6612else
6613 ac_compiler_gnu=no
6614fi
6615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6617
6618fi
6619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6620$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6621if test $ac_compiler_gnu = yes; then
6622 GXX=yes
6623else
6624 GXX=
6625fi
6626ac_test_CXXFLAGS=${CXXFLAGS+set}
6627ac_save_CXXFLAGS=$CXXFLAGS
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6629$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006630if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006631 $as_echo_n "(cached) " >&6
6632else
6633 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6634 ac_cxx_werror_flag=yes
6635 ac_cv_prog_cxx_g=no
6636 CXXFLAGS="-g"
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h. */
6639
6640int
6641main ()
6642{
6643
6644 ;
6645 return 0;
6646}
6647_ACEOF
6648if ac_fn_cxx_try_compile "$LINENO"; then :
6649 ac_cv_prog_cxx_g=yes
6650else
6651 CXXFLAGS=""
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653/* end confdefs.h. */
6654
6655int
6656main ()
6657{
6658
6659 ;
6660 return 0;
6661}
6662_ACEOF
6663if ac_fn_cxx_try_compile "$LINENO"; then :
6664
6665else
6666 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6667 CXXFLAGS="-g"
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669/* end confdefs.h. */
6670
6671int
6672main ()
6673{
6674
6675 ;
6676 return 0;
6677}
6678_ACEOF
6679if ac_fn_cxx_try_compile "$LINENO"; then :
6680 ac_cv_prog_cxx_g=yes
6681fi
6682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683fi
6684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685fi
6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6688fi
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6690$as_echo "$ac_cv_prog_cxx_g" >&6; }
6691if test "$ac_test_CXXFLAGS" = set; then
6692 CXXFLAGS=$ac_save_CXXFLAGS
6693elif test $ac_cv_prog_cxx_g = yes; then
6694 if test "$GXX" = yes; then
6695 CXXFLAGS="-g -O2"
6696 else
6697 CXXFLAGS="-g"
6698 fi
6699else
6700 if test "$GXX" = yes; then
6701 CXXFLAGS="-O2"
6702 else
6703 CXXFLAGS=
6704 fi
6705fi
6706ac_ext=c
6707ac_cpp='$CPP $CPPFLAGS'
6708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6710ac_compiler_gnu=$ac_cv_c_compiler_gnu
6711
cristy73bd4a52010-10-05 11:24:23 +00006712depcc="$CXX" am_compiler_list=
6713
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6715$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006716if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006717 $as_echo_n "(cached) " >&6
6718else
6719 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6720 # We make a subdir and do the tests there. Otherwise we can end up
6721 # making bogus files that we don't know about and never remove. For
6722 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006723 # making a dummy file named 'D' -- because '-MD' means "put the output
6724 # in D".
cristy7247bba2012-02-05 16:37:27 +00006725 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006726 mkdir conftest.dir
6727 # Copy depcomp to subdir because otherwise we won't find it if we're
6728 # using a relative directory.
6729 cp "$am_depcomp" conftest.dir
6730 cd conftest.dir
6731 # We will build objects and dependencies in a subdirectory because
6732 # it helps to detect inapplicable dependency modes. For instance
6733 # both Tru64's cc and ICC support -MD to output dependencies as a
6734 # side effect of compilation, but ICC will put the dependencies in
6735 # the current directory while Tru64 will put them in the object
6736 # directory.
6737 mkdir sub
6738
6739 am_cv_CXX_dependencies_compiler_type=none
6740 if test "$am_compiler_list" = ""; then
6741 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6742 fi
6743 am__universal=false
6744 case " $depcc " in #(
6745 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6746 esac
6747
6748 for depmode in $am_compiler_list; do
6749 # Setup a source with many dependencies, because some compilers
6750 # like to wrap large dependency lists on column 80 (with \), and
6751 # we should not choose a depcomp mode which is confused by this.
6752 #
6753 # We need to recreate these files for each test, as the compiler may
6754 # overwrite some of them when testing with obscure command lines.
6755 # This happens at least with the AIX C compiler.
6756 : > sub/conftest.c
6757 for i in 1 2 3 4 5 6; do
6758 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006759 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6760 # Solaris 10 /bin/sh.
6761 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006762 done
6763 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6764
cristyc0890a62012-07-19 00:18:20 +00006765 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006766 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006767 # handle '-M -o', and we need to detect this. Also, some Intel
6768 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006769 am__obj=sub/conftest.${OBJEXT-o}
6770 am__minus_obj="-o $am__obj"
6771 case $depmode in
6772 gcc)
6773 # This depmode causes a compiler race in universal mode.
6774 test "$am__universal" = false || continue
6775 ;;
6776 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006777 # After this tag, mechanisms are not by side-effect, so they'll
6778 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006779 if test "x$enable_dependency_tracking" = xyes; then
6780 continue
6781 else
6782 break
6783 fi
6784 ;;
cristy7247bba2012-02-05 16:37:27 +00006785 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006786 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006787 # not run yet. These depmodes are late enough in the game, and
6788 # so weak that their functioning should not be impacted.
6789 am__obj=conftest.${OBJEXT-o}
6790 am__minus_obj=
6791 ;;
6792 none) break ;;
6793 esac
6794 if depmode=$depmode \
6795 source=sub/conftest.c object=$am__obj \
6796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6797 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6798 >/dev/null 2>conftest.err &&
6799 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6800 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6801 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6802 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6803 # icc doesn't choke on unknown options, it will just issue warnings
6804 # or remarks (even with -Werror). So we grep stderr for any message
6805 # that says an option was ignored or not supported.
6806 # When given -MP, icc 7.0 and 7.1 complain thusly:
6807 # icc: Command line warning: ignoring option '-M'; no argument required
6808 # The diagnosis changed in icc 8.0:
6809 # icc: Command line remark: option '-MP' not supported
6810 if (grep 'ignoring option' conftest.err ||
6811 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6812 am_cv_CXX_dependencies_compiler_type=$depmode
6813 break
6814 fi
6815 fi
6816 done
6817
6818 cd ..
6819 rm -rf conftest.dir
6820else
6821 am_cv_CXX_dependencies_compiler_type=none
6822fi
6823
6824fi
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6826$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6827CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6828
6829 if
6830 test "x$enable_dependency_tracking" != xno \
6831 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6832 am__fastdepCXX_TRUE=
6833 am__fastdepCXX_FALSE='#'
6834else
6835 am__fastdepCXX_TRUE='#'
6836 am__fastdepCXX_FALSE=
6837fi
6838
6839
cristy8b350f62009-11-15 23:12:43 +00006840 case $ac_cv_prog_cc_stdc in #(
6841 no) :
6842 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6843 *) :
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006845$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006846if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006847 $as_echo_n "(cached) " >&6
6848else
6849 ac_cv_prog_cc_c99=no
6850ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006852/* end confdefs.h. */
6853#include <stdarg.h>
6854#include <stdbool.h>
6855#include <stdlib.h>
6856#include <wchar.h>
6857#include <stdio.h>
6858
6859// Check varargs macros. These examples are taken from C99 6.10.3.5.
6860#define debug(...) fprintf (stderr, __VA_ARGS__)
6861#define showlist(...) puts (#__VA_ARGS__)
6862#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6863static void
6864test_varargs_macros (void)
6865{
6866 int x = 1234;
6867 int y = 5678;
6868 debug ("Flag");
6869 debug ("X = %d\n", x);
6870 showlist (The first, second, and third items.);
6871 report (x>y, "x is %d but y is %d", x, y);
6872}
6873
6874// Check long long types.
6875#define BIG64 18446744073709551615ull
6876#define BIG32 4294967295ul
6877#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6878#if !BIG_OK
6879 your preprocessor is broken;
6880#endif
6881#if BIG_OK
6882#else
6883 your preprocessor is broken;
6884#endif
6885static long long int bignum = -9223372036854775807LL;
6886static unsigned long long int ubignum = BIG64;
6887
6888struct incomplete_array
6889{
6890 int datasize;
6891 double data[];
6892};
6893
6894struct named_init {
6895 int number;
6896 const wchar_t *name;
6897 double average;
6898};
6899
6900typedef const char *ccp;
6901
6902static inline int
6903test_restrict (ccp restrict text)
6904{
6905 // See if C++-style comments work.
6906 // Iterate through items via the restricted pointer.
6907 // Also check for declarations in for loops.
6908 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6909 continue;
6910 return 0;
6911}
6912
6913// Check varargs and va_copy.
6914static void
6915test_varargs (const char *format, ...)
6916{
6917 va_list args;
6918 va_start (args, format);
6919 va_list args_copy;
6920 va_copy (args_copy, args);
6921
6922 const char *str;
6923 int number;
6924 float fnumber;
6925
6926 while (*format)
6927 {
6928 switch (*format++)
6929 {
6930 case 's': // string
6931 str = va_arg (args_copy, const char *);
6932 break;
6933 case 'd': // int
6934 number = va_arg (args_copy, int);
6935 break;
6936 case 'f': // float
6937 fnumber = va_arg (args_copy, double);
6938 break;
6939 default:
6940 break;
6941 }
6942 }
6943 va_end (args_copy);
6944 va_end (args);
6945}
6946
6947int
6948main ()
6949{
6950
6951 // Check bool.
6952 _Bool success = false;
6953
6954 // Check restrict.
6955 if (test_restrict ("String literal") == 0)
6956 success = true;
6957 char *restrict newvar = "Another string";
6958
6959 // Check varargs.
6960 test_varargs ("s, d' f .", "string", 65, 34.234);
6961 test_varargs_macros ();
6962
6963 // Check flexible array members.
6964 struct incomplete_array *ia =
6965 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6966 ia->datasize = 10;
6967 for (int i = 0; i < ia->datasize; ++i)
6968 ia->data[i] = i * 1.234;
6969
6970 // Check named initializers.
6971 struct named_init ni = {
6972 .number = 34,
6973 .name = L"Test wide string",
6974 .average = 543.34343,
6975 };
6976
6977 ni.number = 58;
6978
6979 int dynamic_array[ni.number];
6980 dynamic_array[ni.number - 1] = 543;
6981
6982 // work around unused variable warnings
6983 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6984 || dynamic_array[ni.number - 1] != 543);
6985
6986 ;
6987 return 0;
6988}
6989_ACEOF
cristy14fefe52012-05-21 00:59:18 +00006990for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00006991do
6992 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006993 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006994 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006995fi
cristy3ed852e2009-09-05 21:47:34 +00006996rm -f core conftest.err conftest.$ac_objext
6997 test "x$ac_cv_prog_cc_c99" != "xno" && break
6998done
6999rm -f conftest.$ac_ext
7000CC=$ac_save_CC
7001
7002fi
7003# AC_CACHE_VAL
7004case "x$ac_cv_prog_cc_c99" in
7005 x)
cristy8b350f62009-11-15 23:12:43 +00007006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007007$as_echo "none needed" >&6; } ;;
7008 xno)
cristy8b350f62009-11-15 23:12:43 +00007009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007010$as_echo "unsupported" >&6; } ;;
7011 *)
7012 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007014$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7015esac
cristy8b350f62009-11-15 23:12:43 +00007016if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007017 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7018else
cristy8b350f62009-11-15 23:12:43 +00007019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007020$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007021if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007022 $as_echo_n "(cached) " >&6
7023else
7024 ac_cv_prog_cc_c89=no
7025ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007027/* end confdefs.h. */
7028#include <stdarg.h>
7029#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007030struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007031/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7032struct buf { int x; };
7033FILE * (*rcsopen) (struct buf *, struct stat *, int);
7034static char *e (p, i)
7035 char **p;
7036 int i;
7037{
7038 return p[i];
7039}
7040static char *f (char * (*g) (char **, int), char **p, ...)
7041{
7042 char *s;
7043 va_list v;
7044 va_start (v,p);
7045 s = g (p, va_arg (v,int));
7046 va_end (v);
7047 return s;
7048}
7049
7050/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7051 function prototypes and stuff, but not '\xHH' hex character constants.
7052 These don't provoke an error unfortunately, instead are silently treated
7053 as 'x'. The following induces an error, until -std is added to get
7054 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7055 array size at least. It's necessary to write '\x00'==0 to get something
7056 that's true only with -std. */
7057int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7058
7059/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7060 inside strings and character constants. */
7061#define FOO(x) 'x'
7062int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7063
7064int test (int i, double x);
7065struct s1 {int (*f) (int a);};
7066struct s2 {int (*f) (double a);};
7067int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7068int argc;
7069char **argv;
7070int
7071main ()
7072{
7073return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7074 ;
7075 return 0;
7076}
7077_ACEOF
7078for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7079 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7080do
7081 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007082 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007083 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007084fi
cristy3ed852e2009-09-05 21:47:34 +00007085rm -f core conftest.err conftest.$ac_objext
7086 test "x$ac_cv_prog_cc_c89" != "xno" && break
7087done
7088rm -f conftest.$ac_ext
7089CC=$ac_save_CC
7090
7091fi
7092# AC_CACHE_VAL
7093case "x$ac_cv_prog_cc_c89" in
7094 x)
cristy8b350f62009-11-15 23:12:43 +00007095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007096$as_echo "none needed" >&6; } ;;
7097 xno)
cristy8b350f62009-11-15 23:12:43 +00007098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007099$as_echo "unsupported" >&6; } ;;
7100 *)
7101 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007103$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7104esac
cristy8b350f62009-11-15 23:12:43 +00007105if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007106 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7107else
7108 ac_cv_prog_cc_stdc=no
7109fi
7110
cristy3ed852e2009-09-05 21:47:34 +00007111fi
cristy3ed852e2009-09-05 21:47:34 +00007112 ;;
7113esac
cristy8b350f62009-11-15 23:12:43 +00007114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007115$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007116 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007117 $as_echo_n "(cached) " >&6
7118fi
7119
cristy8b350f62009-11-15 23:12:43 +00007120 case $ac_cv_prog_cc_stdc in #(
7121 no) :
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7123$as_echo "unsupported" >&6; } ;; #(
7124 '') :
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7126$as_echo "none needed" >&6; } ;; #(
7127 *) :
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007129$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7130esac
7131
cristy3ed852e2009-09-05 21:47:34 +00007132ac_ext=c
7133ac_cpp='$CPP $CPPFLAGS'
7134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7136ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007138$as_echo_n "checking how to run the C preprocessor... " >&6; }
7139# On Suns, sometimes $CPP names a directory.
7140if test -n "$CPP" && test -d "$CPP"; then
7141 CPP=
7142fi
7143if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007144 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007145 $as_echo_n "(cached) " >&6
7146else
7147 # Double quotes because CPP needs to be expanded
7148 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7149 do
7150 ac_preproc_ok=false
7151for ac_c_preproc_warn_flag in '' yes
7152do
7153 # Use a header file that comes with gcc, so configuring glibc
7154 # with a fresh cross-compiler works.
7155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7156 # <limits.h> exists even on freestanding compilers.
7157 # On the NeXT, cc -E runs the code through the compiler's parser,
7158 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007160/* end confdefs.h. */
7161#ifdef __STDC__
7162# include <limits.h>
7163#else
7164# include <assert.h>
7165#endif
7166 Syntax error
7167_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007168if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007169
cristy8b350f62009-11-15 23:12:43 +00007170else
cristy3ed852e2009-09-05 21:47:34 +00007171 # Broken: fails on valid input.
7172continue
7173fi
cristyda16f162011-02-19 23:52:17 +00007174rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007175
7176 # OK, works on sane cases. Now check whether nonexistent headers
7177 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007179/* end confdefs.h. */
7180#include <ac_nonexistent.h>
7181_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007182if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007183 # Broken: success on invalid input.
7184continue
7185else
cristy3ed852e2009-09-05 21:47:34 +00007186 # Passes both tests.
7187ac_preproc_ok=:
7188break
7189fi
cristyda16f162011-02-19 23:52:17 +00007190rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007191
7192done
7193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007194rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007195if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007196 break
7197fi
7198
7199 done
7200 ac_cv_prog_CPP=$CPP
7201
7202fi
7203 CPP=$ac_cv_prog_CPP
7204else
7205 ac_cv_prog_CPP=$CPP
7206fi
cristy8b350f62009-11-15 23:12:43 +00007207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007208$as_echo "$CPP" >&6; }
7209ac_preproc_ok=false
7210for ac_c_preproc_warn_flag in '' yes
7211do
7212 # Use a header file that comes with gcc, so configuring glibc
7213 # with a fresh cross-compiler works.
7214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7215 # <limits.h> exists even on freestanding compilers.
7216 # On the NeXT, cc -E runs the code through the compiler's parser,
7217 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007219/* end confdefs.h. */
7220#ifdef __STDC__
7221# include <limits.h>
7222#else
7223# include <assert.h>
7224#endif
7225 Syntax error
7226_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007227if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007228
cristy8b350f62009-11-15 23:12:43 +00007229else
cristy3ed852e2009-09-05 21:47:34 +00007230 # Broken: fails on valid input.
7231continue
7232fi
cristyda16f162011-02-19 23:52:17 +00007233rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007234
7235 # OK, works on sane cases. Now check whether nonexistent headers
7236 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007238/* end confdefs.h. */
7239#include <ac_nonexistent.h>
7240_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007241if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007242 # Broken: success on invalid input.
7243continue
7244else
cristy3ed852e2009-09-05 21:47:34 +00007245 # Passes both tests.
7246ac_preproc_ok=:
7247break
7248fi
cristyda16f162011-02-19 23:52:17 +00007249rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007250
7251done
7252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007253rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007254if $ac_preproc_ok; then :
7255
cristy3ed852e2009-09-05 21:47:34 +00007256else
cristy8b350f62009-11-15 23:12:43 +00007257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007259as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7260See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007261fi
7262
7263ac_ext=c
7264ac_cpp='$CPP $CPPFLAGS'
7265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267ac_compiler_gnu=$ac_cv_c_compiler_gnu
7268
cristy73bd4a52010-10-05 11:24:23 +00007269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7270$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007271if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007272 $as_echo_n "(cached) " >&6
7273else
7274 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7275 for ac_i in 1 2 3 4 5 6 7; do
7276 ac_script="$ac_script$as_nl$ac_script"
7277 done
7278 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7279 { ac_script=; unset ac_script;}
7280 if test -z "$SED"; then
7281 ac_path_SED_found=false
7282 # Loop through the user's path and test for each of PROGNAME-LIST
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_prog in sed gsed; do
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007291 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007292# Check for GNU ac_path_SED and select it if it is found.
7293 # Check for GNU $ac_path_SED
7294case `"$ac_path_SED" --version 2>&1` in
7295*GNU*)
7296 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7297*)
7298 ac_count=0
7299 $as_echo_n 0123456789 >"conftest.in"
7300 while :
7301 do
7302 cat "conftest.in" "conftest.in" >"conftest.tmp"
7303 mv "conftest.tmp" "conftest.in"
7304 cp "conftest.in" "conftest.nl"
7305 $as_echo '' >> "conftest.nl"
7306 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7308 as_fn_arith $ac_count + 1 && ac_count=$as_val
7309 if test $ac_count -gt ${ac_path_SED_max-0}; then
7310 # Best one so far, save it but keep looking for a better one
7311 ac_cv_path_SED="$ac_path_SED"
7312 ac_path_SED_max=$ac_count
7313 fi
7314 # 10*(2^10) chars as input seems more than enough
7315 test $ac_count -gt 10 && break
7316 done
7317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7318esac
7319
7320 $ac_path_SED_found && break 3
7321 done
7322 done
7323 done
7324IFS=$as_save_IFS
7325 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007326 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007327 fi
7328else
7329 ac_cv_path_SED=$SED
7330fi
7331
7332fi
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7334$as_echo "$ac_cv_path_SED" >&6; }
7335 SED="$ac_cv_path_SED"
7336 rm -f conftest.sed
7337
7338test -z "$SED" && SED=sed
7339Xsed="$SED -e 1s/^X//"
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7352$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007353if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007354 $as_echo_n "(cached) " >&6
7355else
7356 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7357 then ac_cv_path_FGREP="$GREP -F"
7358 else
7359 if test -z "$FGREP"; then
7360 ac_path_FGREP_found=false
7361 # Loop through the user's path and test for each of PROGNAME-LIST
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7364do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_prog in fgrep; do
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007370 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007371# Check for GNU ac_path_FGREP and select it if it is found.
7372 # Check for GNU $ac_path_FGREP
7373case `"$ac_path_FGREP" --version 2>&1` in
7374*GNU*)
7375 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7376*)
7377 ac_count=0
7378 $as_echo_n 0123456789 >"conftest.in"
7379 while :
7380 do
7381 cat "conftest.in" "conftest.in" >"conftest.tmp"
7382 mv "conftest.tmp" "conftest.in"
7383 cp "conftest.in" "conftest.nl"
7384 $as_echo 'FGREP' >> "conftest.nl"
7385 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7387 as_fn_arith $ac_count + 1 && ac_count=$as_val
7388 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7389 # Best one so far, save it but keep looking for a better one
7390 ac_cv_path_FGREP="$ac_path_FGREP"
7391 ac_path_FGREP_max=$ac_count
7392 fi
7393 # 10*(2^10) chars as input seems more than enough
7394 test $ac_count -gt 10 && break
7395 done
7396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7397esac
7398
7399 $ac_path_FGREP_found && break 3
7400 done
7401 done
7402 done
7403IFS=$as_save_IFS
7404 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007405 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007406 fi
7407else
7408 ac_cv_path_FGREP=$FGREP
7409fi
7410
7411 fi
7412fi
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7414$as_echo "$ac_cv_path_FGREP" >&6; }
7415 FGREP="$ac_cv_path_FGREP"
7416
7417
7418test -z "$GREP" && GREP=grep
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
cristy0c60a692010-11-04 01:09:47 +00007436ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7437ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7438ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7439
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7441$as_echo_n "checking how to print strings... " >&6; }
7442# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007443if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007444 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7445 ECHO='print -r --'
7446elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7447 ECHO='printf %s\n'
7448else
7449 # Use this function as a fallback that always works.
7450 func_fallback_echo ()
7451 {
7452 eval 'cat <<_LTECHO_EOF
7453$1
7454_LTECHO_EOF'
7455 }
7456 ECHO='func_fallback_echo'
7457fi
7458
7459# func_echo_all arg...
7460# Invoke $ECHO with all args, space-separated.
7461func_echo_all ()
7462{
7463 $ECHO ""
7464}
7465
7466case "$ECHO" in
7467 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7468$as_echo "printf" >&6; } ;;
7469 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7470$as_echo "print -r" >&6; } ;;
7471 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7472$as_echo "cat" >&6; } ;;
7473esac
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
cristy73bd4a52010-10-05 11:24:23 +00007488
7489
7490# Check whether --with-gnu-ld was given.
7491if test "${with_gnu_ld+set}" = set; then :
7492 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7493else
7494 with_gnu_ld=no
7495fi
7496
7497ac_prog=ld
7498if test "$GCC" = yes; then
7499 # Check if gcc -print-prog-name=ld gives a path.
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7501$as_echo_n "checking for ld used by $CC... " >&6; }
7502 case $host in
7503 *-*-mingw*)
7504 # gcc leaves a trailing carriage return which upsets mingw
7505 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7506 *)
7507 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7508 esac
7509 case $ac_prog in
7510 # Accept absolute paths.
7511 [\\/]* | ?:[\\/]*)
7512 re_direlt='/[^/][^/]*/\.\./'
7513 # Canonicalize the pathname of ld
7514 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7515 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7516 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7517 done
7518 test -z "$LD" && LD="$ac_prog"
7519 ;;
7520 "")
7521 # If it fails, then pretend we aren't using GCC.
7522 ac_prog=ld
7523 ;;
7524 *)
7525 # If it is relative, then search for the first ld in PATH.
7526 with_gnu_ld=unknown
7527 ;;
7528 esac
7529elif test "$with_gnu_ld" = yes; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7531$as_echo_n "checking for GNU ld... " >&6; }
7532else
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7534$as_echo_n "checking for non-GNU ld... " >&6; }
7535fi
cristyda16f162011-02-19 23:52:17 +00007536if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007537 $as_echo_n "(cached) " >&6
7538else
7539 if test -z "$LD"; then
7540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7541 for ac_dir in $PATH; do
7542 IFS="$lt_save_ifs"
7543 test -z "$ac_dir" && ac_dir=.
7544 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7545 lt_cv_path_LD="$ac_dir/$ac_prog"
7546 # Check to see if the program is GNU ld. I'd rather use --version,
7547 # but apparently some variants of GNU ld only accept -v.
7548 # Break only if it was the GNU/non-GNU ld that we prefer.
7549 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7550 *GNU* | *'with BFD'*)
7551 test "$with_gnu_ld" != no && break
7552 ;;
7553 *)
7554 test "$with_gnu_ld" != yes && break
7555 ;;
7556 esac
7557 fi
7558 done
7559 IFS="$lt_save_ifs"
7560else
7561 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7562fi
7563fi
7564
7565LD="$lt_cv_path_LD"
7566if test -n "$LD"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7568$as_echo "$LD" >&6; }
7569else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571$as_echo "no" >&6; }
7572fi
cristy98dddb52010-11-04 00:30:15 +00007573test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7575$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007576if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007577 $as_echo_n "(cached) " >&6
7578else
7579 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7580case `$LD -v 2>&1 </dev/null` in
7581*GNU* | *'with BFD'*)
7582 lt_cv_prog_gnu_ld=yes
7583 ;;
7584*)
7585 lt_cv_prog_gnu_ld=no
7586 ;;
7587esac
7588fi
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7590$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7591with_gnu_ld=$lt_cv_prog_gnu_ld
7592
7593
7594
7595
7596
7597
7598
7599
7600
cristy3ed852e2009-09-05 21:47:34 +00007601
cristy837d6dc2010-02-27 01:16:57 +00007602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7603$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007604if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007605 $as_echo_n "(cached) " >&6
7606else
7607 ac_cv_prog_cc_c99=no
7608ac_save_CC=$CC
7609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610/* end confdefs.h. */
7611#include <stdarg.h>
7612#include <stdbool.h>
7613#include <stdlib.h>
7614#include <wchar.h>
7615#include <stdio.h>
7616
7617// Check varargs macros. These examples are taken from C99 6.10.3.5.
7618#define debug(...) fprintf (stderr, __VA_ARGS__)
7619#define showlist(...) puts (#__VA_ARGS__)
7620#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7621static void
7622test_varargs_macros (void)
7623{
7624 int x = 1234;
7625 int y = 5678;
7626 debug ("Flag");
7627 debug ("X = %d\n", x);
7628 showlist (The first, second, and third items.);
7629 report (x>y, "x is %d but y is %d", x, y);
7630}
7631
7632// Check long long types.
7633#define BIG64 18446744073709551615ull
7634#define BIG32 4294967295ul
7635#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7636#if !BIG_OK
7637 your preprocessor is broken;
7638#endif
7639#if BIG_OK
7640#else
7641 your preprocessor is broken;
7642#endif
7643static long long int bignum = -9223372036854775807LL;
7644static unsigned long long int ubignum = BIG64;
7645
7646struct incomplete_array
7647{
7648 int datasize;
7649 double data[];
7650};
7651
7652struct named_init {
7653 int number;
7654 const wchar_t *name;
7655 double average;
7656};
7657
7658typedef const char *ccp;
7659
7660static inline int
7661test_restrict (ccp restrict text)
7662{
7663 // See if C++-style comments work.
7664 // Iterate through items via the restricted pointer.
7665 // Also check for declarations in for loops.
7666 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7667 continue;
7668 return 0;
7669}
7670
7671// Check varargs and va_copy.
7672static void
7673test_varargs (const char *format, ...)
7674{
7675 va_list args;
7676 va_start (args, format);
7677 va_list args_copy;
7678 va_copy (args_copy, args);
7679
7680 const char *str;
7681 int number;
7682 float fnumber;
7683
7684 while (*format)
7685 {
7686 switch (*format++)
7687 {
7688 case 's': // string
7689 str = va_arg (args_copy, const char *);
7690 break;
7691 case 'd': // int
7692 number = va_arg (args_copy, int);
7693 break;
7694 case 'f': // float
7695 fnumber = va_arg (args_copy, double);
7696 break;
7697 default:
7698 break;
7699 }
7700 }
7701 va_end (args_copy);
7702 va_end (args);
7703}
7704
7705int
7706main ()
7707{
7708
7709 // Check bool.
7710 _Bool success = false;
7711
7712 // Check restrict.
7713 if (test_restrict ("String literal") == 0)
7714 success = true;
7715 char *restrict newvar = "Another string";
7716
7717 // Check varargs.
7718 test_varargs ("s, d' f .", "string", 65, 34.234);
7719 test_varargs_macros ();
7720
7721 // Check flexible array members.
7722 struct incomplete_array *ia =
7723 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7724 ia->datasize = 10;
7725 for (int i = 0; i < ia->datasize; ++i)
7726 ia->data[i] = i * 1.234;
7727
7728 // Check named initializers.
7729 struct named_init ni = {
7730 .number = 34,
7731 .name = L"Test wide string",
7732 .average = 543.34343,
7733 };
7734
7735 ni.number = 58;
7736
7737 int dynamic_array[ni.number];
7738 dynamic_array[ni.number - 1] = 543;
7739
7740 // work around unused variable warnings
7741 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7742 || dynamic_array[ni.number - 1] != 543);
7743
7744 ;
7745 return 0;
7746}
7747_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007748for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007749do
7750 CC="$ac_save_CC $ac_arg"
7751 if ac_fn_c_try_compile "$LINENO"; then :
7752 ac_cv_prog_cc_c99=$ac_arg
7753fi
7754rm -f core conftest.err conftest.$ac_objext
7755 test "x$ac_cv_prog_cc_c99" != "xno" && break
7756done
7757rm -f conftest.$ac_ext
7758CC=$ac_save_CC
7759
7760fi
7761# AC_CACHE_VAL
7762case "x$ac_cv_prog_cc_c99" in
7763 x)
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7765$as_echo "none needed" >&6; } ;;
7766 xno)
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7768$as_echo "unsupported" >&6; } ;;
7769 *)
7770 CC="$CC $ac_cv_prog_cc_c99"
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7772$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7773esac
7774if test "x$ac_cv_prog_cc_c99" != xno; then :
7775
7776fi
7777
7778
cristy73bd4a52010-10-05 11:24:23 +00007779if test "x$CC" != xcc; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7781$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7782else
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7784$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7785fi
7786set dummy $CC; ac_cc=`$as_echo "$2" |
7787 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007788if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007789 $as_echo_n "(cached) " >&6
7790else
cristy73bd4a52010-10-05 11:24:23 +00007791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792/* end confdefs.h. */
7793
7794int
7795main ()
7796{
7797
7798 ;
7799 return 0;
7800}
7801_ACEOF
7802# Make sure it works both with $CC and with simple cc.
7803# We do the test twice because some compilers refuse to overwrite an
7804# existing .o file with -o, though they will create one.
7805ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7806rm -f conftest2.*
7807if { { case "(($ac_try" in
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7810esac
7811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7812$as_echo "$ac_try_echo"; } >&5
7813 (eval "$ac_try") 2>&5
7814 ac_status=$?
7815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7816 test $ac_status = 0; } &&
7817 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7820esac
7821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7822$as_echo "$ac_try_echo"; } >&5
7823 (eval "$ac_try") 2>&5
7824 ac_status=$?
7825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826 test $ac_status = 0; };
7827then
7828 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7829 if test "x$CC" != xcc; then
7830 # Test first that cc exists at all.
7831 if { ac_try='cc -c conftest.$ac_ext >&5'
7832 { { case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835esac
7836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7837$as_echo "$ac_try_echo"; } >&5
7838 (eval "$ac_try") 2>&5
7839 ac_status=$?
7840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7841 test $ac_status = 0; }; }; then
7842 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7843 rm -f conftest2.*
7844 if { { case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7847esac
7848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7849$as_echo "$ac_try_echo"; } >&5
7850 (eval "$ac_try") 2>&5
7851 ac_status=$?
7852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7853 test $ac_status = 0; } &&
7854 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857esac
7858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7859$as_echo "$ac_try_echo"; } >&5
7860 (eval "$ac_try") 2>&5
7861 ac_status=$?
7862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7863 test $ac_status = 0; };
7864 then
7865 # cc works too.
7866 :
7867 else
7868 # cc exists but doesn't like -o.
7869 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7870 fi
7871 fi
7872 fi
7873else
7874 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7875fi
7876rm -f core conftest*
7877
7878fi
7879if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7881$as_echo "yes" >&6; }
7882else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884$as_echo "no" >&6; }
7885
7886$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7887
7888fi
7889
7890# FIXME: we rely on the cache variable name because
7891# there is no other way.
7892set dummy $CC
7893am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7894eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7895if test "$am_t" != yes; then
7896 # Losing compiler, so override with the script.
7897 # FIXME: It is wrong to rewrite CC.
7898 # But if we don't then we get into trouble of one sort or another.
7899 # A longer-term fix would be to have automake use am__CC in this case,
7900 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7901 CC="$am_aux_dir/compile $CC"
7902fi
7903
7904
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7906$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007907if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007908 $as_echo_n "(cached) " >&6
7909else
7910 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007911 ac_ext=c
7912ac_cpp='$CPP $CPPFLAGS'
7913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7915ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916
7917 ac_save_CFLAGS="$CFLAGS"
7918for 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" #
7919do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921/* end confdefs.h. */
7922
7923int
7924main ()
7925{
cristy24fc1fe2010-10-23 21:13:01 +00007926
cristy73bd4a52010-10-05 11:24:23 +00007927 ;
7928 return 0;
7929}
7930_ACEOF
7931if ac_fn_c_try_compile "$LINENO"; then :
7932 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7933fi
7934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935done
7936 CFLAGS="$ac_save_CFLAGS"
7937 ac_ext=c
7938ac_cpp='$CPP $CPPFLAGS'
7939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7941ac_compiler_gnu=$ac_cv_c_compiler_gnu
7942
7943
7944fi
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7946$as_echo "$ac_cv_cflags_warn_all" >&6; }
7947case ".$ac_cv_cflags_warn_all" in
7948 .ok|.ok,*) ;;
7949 .|.no|.no,*)
7950 ;;
7951 *)
7952 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7953 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7954 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7955 ac_status=$?
7956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957 test $ac_status = 0; }
7958 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7959 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7960 ac_status=$?
7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; }
7963 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7964 fi
7965 ;;
nicolas6237c462010-10-05 06:11:49 +00007966esac
cristy3ed852e2009-09-05 21:47:34 +00007967
cristy016e8b82012-12-26 12:11:06 +00007968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7969$as_echo_n "checking for C compiler vendor... " >&6; }
7970if ${ax_cv_c_compiler_vendor+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972else
7973 # note: don't check for gcc first since some other compilers define __GNUC__
7974 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7975 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7976 pathscale: __PATHCC__,__PATHSCALE__
7977 clang: __clang__
7978 gnu: __GNUC__
7979 sun: __SUNPRO_C,__SUNPRO_CC
7980 hp: __HP_cc,__HP_aCC
7981 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
7982 borland: __BORLANDC__,__TURBOC__
7983 comeau: __COMO__
7984 cray: _CRAYC
7985 kai: __KCC
7986 lcc: __LCC__
7987 sgi: __sgi,sgi
7988 microsoft: _MSC_VER
7989 metrowerks: __MWERKS__
7990 watcom: __WATCOMC__
7991 portland: __PGI
7992 unknown: UNKNOWN"
7993 for ventest in $vendors; do
7994 case $ventest in
7995 *:) vendor=$ventest; continue ;;
7996 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
7997 esac
7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999/* end confdefs.h. */
8000
8001int
8002main ()
8003{
8004
8005 #if !($vencpp)
8006 thisisanerror;
8007 #endif
8008
8009 ;
8010 return 0;
8011}
8012_ACEOF
8013if ac_fn_c_try_compile "$LINENO"; then :
8014 break
8015fi
8016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017 done
8018 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8019
8020fi
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8022$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8023
cristya0b81c32010-01-22 02:54:33 +00008024
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8026$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8027set x ${MAKE-make}
8028ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008029if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008030 $as_echo_n "(cached) " >&6
8031else
8032 cat >conftest.make <<\_ACEOF
8033SHELL = /bin/sh
8034all:
8035 @echo '@@@%%%=$(MAKE)=@@@%%%'
8036_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008037# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008038case `${MAKE-make} -f conftest.make 2>/dev/null` in
8039 *@@@%%%=?*=@@@%%%*)
8040 eval ac_cv_prog_make_${ac_make}_set=yes;;
8041 *)
8042 eval ac_cv_prog_make_${ac_make}_set=no;;
8043esac
8044rm -f conftest.make
8045fi
8046if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8048$as_echo "yes" >&6; }
8049 SET_MAKE=
8050else
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052$as_echo "no" >&6; }
8053 SET_MAKE="MAKE=${MAKE-make}"
8054fi
8055
cristy8b350f62009-11-15 23:12:43 +00008056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008057$as_echo_n "checking whether ln -s works... " >&6; }
8058LN_S=$as_ln_s
8059if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008061$as_echo "yes" >&6; }
8062else
cristy8b350f62009-11-15 23:12:43 +00008063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008064$as_echo "no, using $LN_S" >&6; }
8065fi
8066
cristybc556452012-08-17 19:44:03 +00008067for ac_prog in gawk mawk nawk awk
8068do
8069 # Extract the first word of "$ac_prog", so it can be a program name with args.
8070set dummy $ac_prog; ac_word=$2
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072$as_echo_n "checking for $ac_word... " >&6; }
8073if ${ac_cv_prog_AWK+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075else
8076 if test -n "$AWK"; then
8077 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8078else
8079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080for as_dir in $PATH
8081do
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8086 ac_cv_prog_AWK="$ac_prog"
8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 break 2
8089 fi
8090done
8091 done
8092IFS=$as_save_IFS
8093
8094fi
8095fi
8096AWK=$ac_cv_prog_AWK
8097if test -n "$AWK"; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8099$as_echo "$AWK" >&6; }
8100else
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102$as_echo "no" >&6; }
8103fi
8104
8105
8106 test -n "$AWK" && break
8107done
8108
cristy73bd4a52010-10-05 11:24:23 +00008109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8110$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8111
8112# Check whether --with-dmalloc was given.
8113if test "${with_dmalloc+set}" = set; then :
8114 withval=$with_dmalloc; if test "$withval" = yes; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8116$as_echo "yes" >&6; }
8117
8118$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8119
8120 LIBS="$LIBS -ldmalloc"
8121 LDFLAGS="$LDFLAGS -g"
8122else
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124$as_echo "no" >&6; }
8125fi
8126else
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128$as_echo "no" >&6; }
8129fi
8130
8131
8132
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8134$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008135if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008136 $as_echo_n "(cached) " >&6
8137else
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139/* end confdefs.h. */
8140#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008141 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008142 static void
8143 foo(void) {
8144 exit(1);
8145 }
8146
8147int
8148main ()
8149{
8150
8151 ;
8152 return 0;
8153}
8154_ACEOF
8155if ac_fn_c_try_compile "$LINENO"; then :
8156 ax_cv___attribute__=yes
8157else
8158 ax_cv___attribute__=no
8159
8160fi
8161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162
8163fi
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8165$as_echo "$ax_cv___attribute__" >&6; }
8166 if test "$ax_cv___attribute__" = "yes"; then
8167
8168$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8169
8170 fi
8171
8172
8173
cristy37110d62012-03-01 18:38:20 +00008174
8175
8176# Check whether --with-gcc-arch was given.
8177if test "${with_gcc_arch+set}" = set; then :
8178 withval=$with_gcc_arch; ax_gcc_arch=$withval
8179else
cristya32d1812012-03-02 19:24:21 +00008180 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008181fi
8182
8183
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8185$as_echo_n "checking for gcc architecture flag... " >&6; }
8186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8187$as_echo "" >&6; }
8188if ${ax_cv_gcc_archflag+:} false; then :
8189 $as_echo_n "(cached) " >&6
8190else
8191
8192ax_cv_gcc_archflag="unknown"
8193
8194if test "$GCC" = yes; then
8195
8196if test "x$ax_gcc_arch" = xyes; then
8197ax_gcc_arch=""
8198if test "$cross_compiling" = no; then
8199case $host_cpu in
8200 i[3456]86*|x86_64*) # use cpuid codes
8201
8202ac_ext=c
8203ac_cpp='$CPP $CPPFLAGS'
8204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8206ac_compiler_gnu=$ac_cv_c_compiler_gnu
8207
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8209$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8210if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8211 $as_echo_n "(cached) " >&6
8212else
8213 if test "$cross_compiling" = yes; then :
8214 ax_cv_gcc_x86_cpuid_0=unknown
8215else
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217/* end confdefs.h. */
8218#include <stdio.h>
8219int
8220main ()
8221{
8222
8223 int op = 0, eax, ebx, ecx, edx;
8224 FILE *f;
8225 __asm__("cpuid"
8226 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8227 : "a" (op));
8228 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8229 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8230 fclose(f);
8231 return 0;
8232
8233 ;
8234 return 0;
8235}
8236_ACEOF
8237if ac_fn_c_try_run "$LINENO"; then :
8238 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8239else
8240 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8241fi
8242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8243 conftest.$ac_objext conftest.beam conftest.$ac_ext
8244fi
8245
8246fi
8247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8248$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8249ac_ext=c
8250ac_cpp='$CPP $CPPFLAGS'
8251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8253ac_compiler_gnu=$ac_cv_c_compiler_gnu
8254
8255
8256
8257ac_ext=c
8258ac_cpp='$CPP $CPPFLAGS'
8259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8261ac_compiler_gnu=$ac_cv_c_compiler_gnu
8262
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8264$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8265if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8266 $as_echo_n "(cached) " >&6
8267else
8268 if test "$cross_compiling" = yes; then :
8269 ax_cv_gcc_x86_cpuid_1=unknown
8270else
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272/* end confdefs.h. */
8273#include <stdio.h>
8274int
8275main ()
8276{
8277
8278 int op = 1, eax, ebx, ecx, edx;
8279 FILE *f;
8280 __asm__("cpuid"
8281 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8282 : "a" (op));
8283 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8284 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8285 fclose(f);
8286 return 0;
8287
8288 ;
8289 return 0;
8290}
8291_ACEOF
8292if ac_fn_c_try_run "$LINENO"; then :
8293 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8294else
8295 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8296fi
8297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8298 conftest.$ac_objext conftest.beam conftest.$ac_ext
8299fi
8300
8301fi
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8303$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8304ac_ext=c
8305ac_cpp='$CPP $CPPFLAGS'
8306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8308ac_compiler_gnu=$ac_cv_c_compiler_gnu
8309
8310
8311 case $ax_cv_gcc_x86_cpuid_0 in
8312 *:756e6547:*:*) # Intel
8313 case $ax_cv_gcc_x86_cpuid_1 in
8314 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8315 *5??:*:*:*) ax_gcc_arch=pentium ;;
8316 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8317 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8318 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8319 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8320 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8321 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8322 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8323 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8324 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8325 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8326 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8327 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8328 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8329 case $host_cpu in
8330 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8331 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8332 esac ;;
8333 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8334 esac ;;
8335 *:68747541:*:*) # AMD
8336 case $ax_cv_gcc_x86_cpuid_1 in
8337 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8338 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8339 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8340 *60?:*:*:*) ax_gcc_arch=k7 ;;
8341 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8342 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8343 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8344 *6[68a]?:*:*:*)
8345
8346ac_ext=c
8347ac_cpp='$CPP $CPPFLAGS'
8348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8350ac_compiler_gnu=$ac_cv_c_compiler_gnu
8351
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8353$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8354if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8355 $as_echo_n "(cached) " >&6
8356else
8357 if test "$cross_compiling" = yes; then :
8358 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8359else
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361/* end confdefs.h. */
8362#include <stdio.h>
8363int
8364main ()
8365{
8366
8367 int op = 0x80000006, eax, ebx, ecx, edx;
8368 FILE *f;
8369 __asm__("cpuid"
8370 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8371 : "a" (op));
8372 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8373 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8374 fclose(f);
8375 return 0;
8376
8377 ;
8378 return 0;
8379}
8380_ACEOF
8381if ac_fn_c_try_run "$LINENO"; then :
8382 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8383else
8384 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8385fi
8386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8387 conftest.$ac_objext conftest.beam conftest.$ac_ext
8388fi
8389
8390fi
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8392$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8393ac_ext=c
8394ac_cpp='$CPP $CPPFLAGS'
8395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8397ac_compiler_gnu=$ac_cv_c_compiler_gnu
8398
8399 # L2 cache size
8400 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8401 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8402 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8403 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8404 esac ;;
8405 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8406 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8407 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8408 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8409 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8410 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8411 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8412 esac ;;
8413 *:746e6543:*:*) # IDT
8414 case $ax_cv_gcc_x86_cpuid_1 in
8415 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8416 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8417 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8418 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8419 esac ;;
8420 esac
8421 if test x"$ax_gcc_arch" = x; then # fallback
8422 case $host_cpu in
8423 i586*) ax_gcc_arch=pentium ;;
8424 i686*) ax_gcc_arch=pentiumpro ;;
8425 esac
8426 fi
8427 ;;
8428
8429 sparc*)
8430 # Extract the first word of "prtdiag", so it can be a program name with args.
8431set dummy prtdiag; ac_word=$2
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433$as_echo_n "checking for $ac_word... " >&6; }
8434if ${ac_cv_path_PRTDIAG+:} false; then :
8435 $as_echo_n "(cached) " >&6
8436else
8437 case $PRTDIAG in
8438 [\\/]* | ?:[\\/]*)
8439 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8440 ;;
8441 *)
8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8444for as_dir in $as_dummy
8445do
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008450 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 break 2
8453 fi
8454done
8455 done
8456IFS=$as_save_IFS
8457
8458 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8459 ;;
8460esac
8461fi
8462PRTDIAG=$ac_cv_path_PRTDIAG
8463if test -n "$PRTDIAG"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8465$as_echo "$PRTDIAG" >&6; }
8466else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468$as_echo "no" >&6; }
8469fi
8470
8471
8472 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`
8473 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8474 case $cputype in
8475 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8476 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8477 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8478 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8479 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8480 *cypress*) ax_gcc_arch=cypress ;;
8481 esac ;;
8482
8483 alphaev5) ax_gcc_arch=ev5 ;;
8484 alphaev56) ax_gcc_arch=ev56 ;;
8485 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8486 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8487 alphaev6) ax_gcc_arch=ev6 ;;
8488 alphaev67) ax_gcc_arch=ev67 ;;
8489 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8490 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8491 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8492 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8493
8494 powerpc*)
8495 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`
8496 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8497 case $cputype in
8498 *750*) ax_gcc_arch="750 G3" ;;
8499 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8500 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8501 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8502 *970*) ax_gcc_arch="970 G5 power4";;
8503 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8504 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8505 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8506 *) ax_gcc_arch=$cputype ;;
8507 esac
8508 ax_gcc_arch="$ax_gcc_arch powerpc"
8509 ;;
8510esac
8511fi # not cross-compiling
8512fi # guess arch
8513
8514if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8515for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008516 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008517 flags="-mtune=$arch"
8518 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8519 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8520 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8521 else
8522 flags="-march=$arch -mcpu=$arch -m$arch"
8523 fi
8524 for flag in $flags; do
8525 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8527$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8528if eval \${$as_CACHEVAR+:} false; then :
8529 $as_echo_n "(cached) " >&6
8530else
8531
8532 ax_check_save_flags=$CFLAGS
8533 CFLAGS="$CFLAGS $flag"
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535/* end confdefs.h. */
8536
8537int
8538main ()
8539{
8540
8541 ;
8542 return 0;
8543}
8544_ACEOF
8545if ac_fn_c_try_compile "$LINENO"; then :
8546 eval "$as_CACHEVAR=yes"
8547else
8548 eval "$as_CACHEVAR=no"
8549fi
8550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551 CFLAGS=$ax_check_save_flags
8552fi
8553eval ac_res=\$$as_CACHEVAR
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8555$as_echo "$ac_res" >&6; }
8556if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8557 ax_cv_gcc_archflag=$flag; break
8558else
8559 :
8560fi
8561
8562 done
8563 test "x$ax_cv_gcc_archflag" = xunknown || break
8564done
8565fi
8566
8567fi # $GCC=yes
8568
8569fi
8570
8571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8572$as_echo_n "checking for gcc architecture flag... " >&6; }
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8574$as_echo "$ax_cv_gcc_archflag" >&6; }
8575if test "x$ax_cv_gcc_archflag" = xunknown; then
8576 :
8577else
8578 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8579fi
8580
8581
8582
cristy73bd4a52010-10-05 11:24:23 +00008583if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8584 if test -n "$ac_tool_prefix"; then
8585 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8586set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008589if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008590 $as_echo_n "(cached) " >&6
8591else
8592 case $PKG_CONFIG in
8593 [\\/]* | ?:[\\/]*)
8594 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8595 ;;
8596 *)
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598for as_dir in $PATH
8599do
8600 IFS=$as_save_IFS
8601 test -z "$as_dir" && as_dir=.
8602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008604 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 break 2
8607 fi
8608done
8609 done
8610IFS=$as_save_IFS
8611
8612 ;;
8613esac
8614fi
8615PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8616if test -n "$PKG_CONFIG"; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8618$as_echo "$PKG_CONFIG" >&6; }
8619else
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621$as_echo "no" >&6; }
8622fi
8623
8624
8625fi
8626if test -z "$ac_cv_path_PKG_CONFIG"; then
8627 ac_pt_PKG_CONFIG=$PKG_CONFIG
8628 # Extract the first word of "pkg-config", so it can be a program name with args.
8629set dummy pkg-config; ac_word=$2
8630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8631$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008632if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008633 $as_echo_n "(cached) " >&6
8634else
8635 case $ac_pt_PKG_CONFIG in
8636 [\\/]* | ?:[\\/]*)
8637 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8638 ;;
8639 *)
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641for as_dir in $PATH
8642do
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008647 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8649 break 2
8650 fi
8651done
8652 done
8653IFS=$as_save_IFS
8654
8655 ;;
8656esac
8657fi
8658ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8659if test -n "$ac_pt_PKG_CONFIG"; then
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8661$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8662else
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664$as_echo "no" >&6; }
8665fi
8666
8667 if test "x$ac_pt_PKG_CONFIG" = x; then
8668 PKG_CONFIG=""
8669 else
8670 case $cross_compiling:$ac_tool_warned in
8671yes:)
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8674ac_tool_warned=yes ;;
8675esac
8676 PKG_CONFIG=$ac_pt_PKG_CONFIG
8677 fi
8678else
8679 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8680fi
8681
8682fi
8683if test -n "$PKG_CONFIG"; then
8684 _pkg_min_version=0.9.0
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8686$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8687 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8689$as_echo "yes" >&6; }
8690 else
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692$as_echo "no" >&6; }
8693 PKG_CONFIG=""
8694 fi
8695
8696fi
cristy3ed852e2009-09-05 21:47:34 +00008697
cristy9b86f202012-11-28 21:55:35 +00008698# Check for linker script support
8699
8700 # Check whether --enable-ld-version-script was given.
8701if test "${enable_ld_version_script+set}" = set; then :
8702 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8703fi
8704
8705 if test -z "$have_ld_version_script"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8707$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8708 save_LDFLAGS="$LDFLAGS"
8709 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8710 cat > conftest.map <<EOF
8711foo
8712EOF
8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714/* end confdefs.h. */
8715
8716int
8717main ()
8718{
8719
8720 ;
8721 return 0;
8722}
8723_ACEOF
8724if ac_fn_c_try_link "$LINENO"; then :
8725 accepts_syntax_errors=yes
8726else
8727 accepts_syntax_errors=no
8728fi
8729rm -f core conftest.err conftest.$ac_objext \
8730 conftest$ac_exeext conftest.$ac_ext
8731 if test "$accepts_syntax_errors" = no; then
8732 cat > conftest.map <<EOF
8733VERS_1 {
8734 global: sym;
8735};
8736
8737VERS_2 {
8738 global: sym;
8739} VERS_1;
8740EOF
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742/* end confdefs.h. */
8743
8744int
8745main ()
8746{
8747
8748 ;
8749 return 0;
8750}
8751_ACEOF
8752if ac_fn_c_try_link "$LINENO"; then :
8753 have_ld_version_script=yes
8754else
8755 have_ld_version_script=no
8756fi
8757rm -f core conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
8759 else
8760 have_ld_version_script=no
8761 fi
8762 rm -f conftest.map
8763 LDFLAGS="$save_LDFLAGS"
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8765$as_echo "$have_ld_version_script" >&6; }
8766 fi
8767 if test "$have_ld_version_script" = "yes"; then
8768 HAVE_LD_VERSION_SCRIPT_TRUE=
8769 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8770else
8771 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8772 HAVE_LD_VERSION_SCRIPT_FALSE=
8773fi
8774
8775
8776
cristy3ed852e2009-09-05 21:47:34 +00008777#
cristy3ed852e2009-09-05 21:47:34 +00008778# Enable run-time checking.
8779#
8780# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008781if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008782 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8783else
8784 enable_bounds_checking='no'
8785fi
8786
8787
8788if test "$enable_bounds_checking" = yes; then
8789
cristy8b350f62009-11-15 23:12:43 +00008790$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008791
8792fi
8793
8794#
8795# Tests for Windows
8796#
8797
8798
8799
8800GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008801native_win32_build='no'
8802cygwin_build='no'
8803case "${host_os}" in
8804 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008805 cygwin_build='yes'
8806 GDI32_LIBS='-lgdi32'
8807 ;;
8808 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008809 native_win32_build='yes'
8810 GDI32_LIBS='-lgdi32'
8811 ;;
8812esac
8813if test "${GDI32_LIBS}x" != 'x'; then
8814
cristy8b350f62009-11-15 23:12:43 +00008815$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008816
8817fi
8818
cristy73bd4a52010-10-05 11:24:23 +00008819 if test "${GDI32_LIBS}x" != 'x' ; then
8820 WINGDI32_DELEGATE_TRUE=
8821 WINGDI32_DELEGATE_FALSE='#'
8822else
8823 WINGDI32_DELEGATE_TRUE='#'
8824 WINGDI32_DELEGATE_FALSE=
8825fi
8826
8827 if test "${native_win32_build}" = 'yes' ; then
8828 WIN32_NATIVE_BUILD_TRUE=
8829 WIN32_NATIVE_BUILD_FALSE='#'
8830else
8831 WIN32_NATIVE_BUILD_TRUE='#'
8832 WIN32_NATIVE_BUILD_FALSE=
8833fi
8834
8835 if test "${cygwin_build}" = 'yes' ; then
8836 CYGWIN_BUILD_TRUE=
8837 CYGWIN_BUILD_FALSE='#'
8838else
8839 CYGWIN_BUILD_TRUE='#'
8840 CYGWIN_BUILD_FALSE=
8841fi
8842
8843 if test "x${CC}" = 'xcl.exe' ; then
8844 USING_CL_TRUE=
8845 USING_CL_FALSE='#'
8846else
8847 USING_CL_TRUE='#'
8848 USING_CL_FALSE=
8849fi
8850
cristy3ed852e2009-09-05 21:47:34 +00008851
8852WinPathScript="${srcdirfull}/winpath.sh"
8853
8854
8855#
8856# Compiler flags tweaks
8857#
8858if test "${GCC}" != "yes"; then
8859 case "${host}" in
8860 *-*-hpux* )
8861 # aCC: HP ANSI C++ B3910B A.03.34
8862 CFLAGS="${CFLAGS} -Wp,-H30000"
8863 if test -n "${CXXFLAGS}"; then
8864 CXXFLAGS='-AA'
8865 else
8866 CXXFLAGS="${CXXFLAGS} -AA"
8867 fi
8868 ;;
8869 *-dec-osf5.* )
8870 # Compaq alphaev68-dec-osf5.1 compiler
8871 if test -n "${CXXFLAGS}"; then
8872 CXXFLAGS='-std strict_ansi -noimplicit_include'
8873 else
8874 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8875 fi
8876 esac
8877fi
8878
8879# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008881$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008882if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008883 $as_echo_n "(cached) " >&6
8884else
8885
8886im_cv_ld_lazyload='none'
8887case "${host}" in
8888 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8889 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8890 im_cv_ld_lazyload='-Wl,-zlazyload'
8891 fi
8892 ;;
8893esac
8894
8895fi
cristy8b350f62009-11-15 23:12:43 +00008896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008897$as_echo "$im_cv_ld_lazyload" >&6; }
8898if test "${im_cv_ld_lazyload}" != 'none' ; then
8899 if test -z "${LDFLAGS}" ; then
8900 LDFLAGS="${im_cv_ld_lazyload}"
8901 else
8902 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8903 fi
8904fi
8905
8906case "$host" in
8907*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008908 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008909if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008910 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8911else
8912 build_osxuniversal=no
8913fi
8914
8915
8916 if test "${build_osxuniversal}" != no ; then
8917 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008918 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008919Please re-run configure with these options:
8920 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008921 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008922 fi
8923 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8924 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8925 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8926 fi
8927 ;;
8928esac
8929
cristy0151ae12011-10-28 16:32:29 +00008930#
8931# ARCH specific include directory
8932#
8933
cristy670aa3c2011-11-03 00:54:00 +00008934# Check whether --with-includearch-dir was given.
8935if test "${with_includearch_dir+set}" = set; then :
8936 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008937else
cristy670aa3c2011-11-03 00:54:00 +00008938 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008939fi
8940
8941
cristy670aa3c2011-11-03 00:54:00 +00008942eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008943
cristy0151ae12011-10-28 16:32:29 +00008944
8945#
8946# ARCH specific configuration directory
8947#
8948
cristy670aa3c2011-11-03 00:54:00 +00008949# Check whether --with-sharearch-dir was given.
8950if test "${with_sharearch_dir+set}" = set; then :
8951 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008952else
cristy408ebcd2011-11-14 01:36:57 +00008953 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008954fi
8955
8956
cristy670aa3c2011-11-03 00:54:00 +00008957eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008958
cristy0151ae12011-10-28 16:32:29 +00008959
8960#
cristy3ed852e2009-09-05 21:47:34 +00008961# Enable support for threads
8962
8963# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008964if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008965 withval=$with_threads; with_threads=$withval
8966else
8967 with_threads='yes'
8968fi
8969
8970
8971have_threads=no
8972if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008973
8974
cristy73bd4a52010-10-05 11:24:23 +00008975ac_ext=c
8976ac_cpp='$CPP $CPPFLAGS'
8977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8979ac_compiler_gnu=$ac_cv_c_compiler_gnu
8980
8981ax_pthread_ok=no
8982
8983# We used to check for pthread.h first, but this fails if pthread.h
8984# requires special compiler flags (e.g. on True64 or Sequent).
8985# It gets checked for in the link test anyway.
8986
8987# First of all, check if the user has set any of the PTHREAD_LIBS,
8988# etcetera environment variables, and if threads linking works using
8989# them:
8990if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8991 save_CFLAGS="$CFLAGS"
8992 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8993 save_LIBS="$LIBS"
8994 LIBS="$PTHREAD_LIBS $LIBS"
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8996$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998/* end confdefs.h. */
8999
9000/* Override any GCC internal prototype to avoid an error.
9001 Use char because int might match the return type of a GCC
9002 builtin and then its argument prototype would still apply. */
9003#ifdef __cplusplus
9004extern "C"
9005#endif
9006char pthread_join ();
9007int
9008main ()
9009{
9010return pthread_join ();
9011 ;
9012 return 0;
9013}
9014_ACEOF
9015if ac_fn_c_try_link "$LINENO"; then :
9016 ax_pthread_ok=yes
9017fi
9018rm -f core conftest.err conftest.$ac_objext \
9019 conftest$ac_exeext conftest.$ac_ext
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9021$as_echo "$ax_pthread_ok" >&6; }
9022 if test x"$ax_pthread_ok" = xno; then
9023 PTHREAD_LIBS=""
9024 PTHREAD_CFLAGS=""
9025 fi
9026 LIBS="$save_LIBS"
9027 CFLAGS="$save_CFLAGS"
9028fi
9029
9030# We must check for the threads library under a number of different
9031# names; the ordering is very important because some systems
9032# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9033# libraries is broken (non-POSIX).
9034
9035# Create a list of thread flags to try. Items starting with a "-" are
9036# C compiler flags, and other items are library names, except for "none"
9037# which indicates that we try without any flags at all, and "pthread-config"
9038# which is a program returning the flags for the Pth emulation library.
9039
cristy18307f12011-12-30 01:20:16 +00009040ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009041
9042# The ordering *is* (sometimes) important. Some notes on the
9043# individual items follow:
9044
9045# pthreads: AIX (must check this before -lpthread)
9046# none: in case threads are in libc; should be tried before -Kthread and
9047# other compiler flags to prevent continual compiler warnings
9048# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9049# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9050# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9051# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9052# -pthreads: Solaris/gcc
9053# -mthreads: Mingw32/gcc, Lynx/gcc
9054# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9055# doesn't hurt to check since this sometimes defines pthreads too;
9056# also defines -D_REENTRANT)
9057# ... -mt is also the pthreads flag for HP/aCC
9058# pthread: Linux, etcetera
9059# --thread-safe: KAI C++
9060# pthread-config: use pthread-config program (for GNU Pth library)
9061
9062case "${host_cpu}-${host_os}" in
9063 *solaris*)
9064
9065 # On Solaris (at least, for some versions), libc contains stubbed
9066 # (non-functional) versions of the pthreads routines, so link-based
9067 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9068 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9069 # a function called by this macro, so we could check for that, but
9070 # who knows whether they'll stub that too in a future libc.) So,
9071 # we'll just look for -pthreads and -lpthread first:
9072
9073 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9074 ;;
9075
cristya316db12011-10-24 00:49:45 +00009076 *-darwin*)
9077 ax_pthread_flags="-pthread $ax_pthread_flags"
9078 ;;
cristy73bd4a52010-10-05 11:24:23 +00009079esac
9080
9081if test x"$ax_pthread_ok" = xno; then
9082for flag in $ax_pthread_flags; do
9083
9084 case $flag in
9085 none)
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9087$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9088 ;;
9089
9090 -*)
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9092$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9093 PTHREAD_CFLAGS="$flag"
9094 ;;
9095
cristya316db12011-10-24 00:49:45 +00009096 pthread-config)
9097 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009098set dummy pthread-config; ac_word=$2
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009101if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009102 $as_echo_n "(cached) " >&6
9103else
9104 if test -n "$ax_pthread_config"; then
9105 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9106else
9107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108for as_dir in $PATH
9109do
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
9112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009114 ac_cv_prog_ax_pthread_config="yes"
9115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9116 break 2
9117 fi
9118done
9119 done
9120IFS=$as_save_IFS
9121
9122 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9123fi
9124fi
9125ax_pthread_config=$ac_cv_prog_ax_pthread_config
9126if test -n "$ax_pthread_config"; then
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9128$as_echo "$ax_pthread_config" >&6; }
9129else
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9131$as_echo "no" >&6; }
9132fi
9133
9134
cristya316db12011-10-24 00:49:45 +00009135 if test x"$ax_pthread_config" = xno; then continue; fi
9136 PTHREAD_CFLAGS="`pthread-config --cflags`"
9137 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9138 ;;
cristy73bd4a52010-10-05 11:24:23 +00009139
9140 *)
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9142$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9143 PTHREAD_LIBS="-l$flag"
9144 ;;
9145 esac
9146
9147 save_LIBS="$LIBS"
9148 save_CFLAGS="$CFLAGS"
9149 LIBS="$PTHREAD_LIBS $LIBS"
9150 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9151
9152 # Check for various functions. We must include pthread.h,
9153 # since some functions may be macros. (On the Sequent, we
9154 # need a special flag -Kthread to make this header compile.)
9155 # We check for pthread_join because it is in -lpthread on IRIX
9156 # while pthread_create is in libc. We check for pthread_attr_init
9157 # due to DEC craziness with -lpthreads. We check for
9158 # pthread_cleanup_push because it is one of the few pthread
9159 # functions on Solaris that doesn't have a non-functional libc stub.
9160 # We try pthread_create on general principles.
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162/* end confdefs.h. */
9163#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009164 static void routine(void *a) { a = 0; }
9165 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009166int
9167main ()
9168{
9169pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009170 pthread_create(&th, 0, start_routine, 0);
9171 pthread_join(th, 0);
9172 pthread_attr_init(&attr);
9173 pthread_cleanup_push(routine, 0);
9174 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009175 ;
9176 return 0;
9177}
9178_ACEOF
9179if ac_fn_c_try_link "$LINENO"; then :
9180 ax_pthread_ok=yes
9181fi
9182rm -f core conftest.err conftest.$ac_objext \
9183 conftest$ac_exeext conftest.$ac_ext
9184
9185 LIBS="$save_LIBS"
9186 CFLAGS="$save_CFLAGS"
9187
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9189$as_echo "$ax_pthread_ok" >&6; }
9190 if test "x$ax_pthread_ok" = xyes; then
9191 break;
9192 fi
9193
9194 PTHREAD_LIBS=""
9195 PTHREAD_CFLAGS=""
9196done
9197fi
9198
9199# Various other checks:
9200if test "x$ax_pthread_ok" = xyes; then
9201 save_LIBS="$LIBS"
9202 LIBS="$PTHREAD_LIBS $LIBS"
9203 save_CFLAGS="$CFLAGS"
9204 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9205
9206 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009208$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009209 attr_name=unknown
9210 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009212/* end confdefs.h. */
9213#include <pthread.h>
9214int
9215main ()
9216{
cristya316db12011-10-24 00:49:45 +00009217int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009218 ;
9219 return 0;
9220}
9221_ACEOF
9222if ac_fn_c_try_link "$LINENO"; then :
9223 attr_name=$attr; break
9224fi
9225rm -f core conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009227 done
cristy73bd4a52010-10-05 11:24:23 +00009228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9229$as_echo "$attr_name" >&6; }
9230 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9231
9232cat >>confdefs.h <<_ACEOF
9233#define PTHREAD_CREATE_JOINABLE $attr_name
9234_ACEOF
9235
9236 fi
9237
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9239$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9240 flag=no
9241 case "${host_cpu}-${host_os}" in
9242 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9243 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9244 esac
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9246$as_echo "${flag}" >&6; }
9247 if test "x$flag" != xno; then
9248 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9249 fi
9250
cristya316db12011-10-24 00:49:45 +00009251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9252$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9253if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9254 $as_echo_n "(cached) " >&6
9255else
9256
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258/* end confdefs.h. */
9259
9260 #include <pthread.h>
9261int
9262main ()
9263{
9264int i = PTHREAD_PRIO_INHERIT;
9265 ;
9266 return 0;
9267}
9268_ACEOF
9269if ac_fn_c_try_link "$LINENO"; then :
9270 ax_cv_PTHREAD_PRIO_INHERIT=yes
9271else
9272 ax_cv_PTHREAD_PRIO_INHERIT=no
9273fi
9274rm -f core conftest.err conftest.$ac_objext \
9275 conftest$ac_exeext conftest.$ac_ext
9276
9277fi
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9279$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9280 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9281
9282$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9283
9284fi
9285
cristy73bd4a52010-10-05 11:24:23 +00009286 LIBS="$save_LIBS"
9287 CFLAGS="$save_CFLAGS"
9288
9289 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009290 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009291 for ac_prog in xlc_r cc_r
9292do
9293 # Extract the first word of "$ac_prog", so it can be a program name with args.
9294set dummy $ac_prog; ac_word=$2
9295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9296$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009297if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009298 $as_echo_n "(cached) " >&6
9299else
9300 if test -n "$PTHREAD_CC"; then
9301 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9302else
9303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9304for as_dir in $PATH
9305do
9306 IFS=$as_save_IFS
9307 test -z "$as_dir" && as_dir=.
9308 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009310 ac_cv_prog_PTHREAD_CC="$ac_prog"
9311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9312 break 2
9313 fi
9314done
9315 done
9316IFS=$as_save_IFS
9317
9318fi
9319fi
9320PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9321if test -n "$PTHREAD_CC"; then
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9323$as_echo "$PTHREAD_CC" >&6; }
9324else
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9326$as_echo "no" >&6; }
9327fi
9328
9329
9330 test -n "$PTHREAD_CC" && break
9331done
9332test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9333
9334 else
9335 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009336 fi
cristy73bd4a52010-10-05 11:24:23 +00009337else
9338 PTHREAD_CC="$CC"
9339fi
9340
9341
9342
9343
9344
9345# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9346if test x"$ax_pthread_ok" = xyes; then
9347
9348$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9349
9350 :
9351else
9352 ax_pthread_ok=no
9353
9354fi
9355ac_ext=c
9356ac_cpp='$CPP $CPPFLAGS'
9357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9359ac_compiler_gnu=$ac_cv_c_compiler_gnu
9360
9361
cristy7acf8fb2010-09-23 19:58:53 +00009362 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009363 have_threads=yes
9364 DEF_THREAD="$PTHREAD_CFLAGS"
9365 CFLAGS="$CFLAGS $DEF_THREAD"
9366 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9367 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009368 { $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 +00009369$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9370 CC="$PTHREAD_CC"
9371 fi
cristy55bf91c2010-09-24 00:29:41 +00009372
9373$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9374
cristy3ed852e2009-09-05 21:47:34 +00009375 fi
9376fi
9377
9378# Enable support for OpenMP
9379if test "$have_threads" != 'yes'; then
9380 ac_cv_prog_c_openmp=unsupported
9381fi
9382
9383 OPENMP_CFLAGS=
9384 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009385if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009386 enableval=$enable_openmp;
9387fi
9388
9389 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009391$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009392if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009393 $as_echo_n "(cached) " >&6
9394else
cristy8b350f62009-11-15 23:12:43 +00009395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009397
9398#ifndef _OPENMP
9399 choke me
9400#endif
9401#include <omp.h>
9402int main () { return omp_get_num_threads (); }
9403
9404_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009405if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009406 ac_cv_prog_c_openmp='none needed'
9407else
cristy8b350f62009-11-15 23:12:43 +00009408 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009409 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9410 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009411 ac_save_CFLAGS=$CFLAGS
9412 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009415
9416#ifndef _OPENMP
9417 choke me
9418#endif
9419#include <omp.h>
9420int main () { return omp_get_num_threads (); }
9421
9422_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009423if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009424 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009425fi
cristy8b350f62009-11-15 23:12:43 +00009426rm -f core conftest.err conftest.$ac_objext \
9427 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009428 CFLAGS=$ac_save_CFLAGS
9429 if test "$ac_cv_prog_c_openmp" != unsupported; then
9430 break
9431 fi
9432 done
9433fi
cristy8b350f62009-11-15 23:12:43 +00009434rm -f core conftest.err conftest.$ac_objext \
9435 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009436fi
cristy8b350f62009-11-15 23:12:43 +00009437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009438$as_echo "$ac_cv_prog_c_openmp" >&6; }
9439 case $ac_cv_prog_c_openmp in #(
9440 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009441 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009442 *)
cristy8b350f62009-11-15 23:12:43 +00009443 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009444 esac
9445 fi
9446
9447
9448CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9449MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9450
cristy391f1ce2010-09-09 17:23:28 +00009451if test "$enable_openmp" != no; then
9452 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9453 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9454 fi
9455fi
cristy3ed852e2009-09-05 21:47:34 +00009456
cristy736173a2009-09-20 21:18:22 +00009457# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009458
9459
cristy73bd4a52010-10-05 11:24:23 +00009460ac_ext=c
9461ac_cpp='$CPP $CPPFLAGS'
9462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9464ac_compiler_gnu=$ac_cv_c_compiler_gnu
9465
9466ax_pthread_ok=no
9467
9468# We used to check for pthread.h first, but this fails if pthread.h
9469# requires special compiler flags (e.g. on True64 or Sequent).
9470# It gets checked for in the link test anyway.
9471
9472# First of all, check if the user has set any of the PTHREAD_LIBS,
9473# etcetera environment variables, and if threads linking works using
9474# them:
9475if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9476 save_CFLAGS="$CFLAGS"
9477 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9478 save_LIBS="$LIBS"
9479 LIBS="$PTHREAD_LIBS $LIBS"
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9481$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483/* end confdefs.h. */
9484
9485/* Override any GCC internal prototype to avoid an error.
9486 Use char because int might match the return type of a GCC
9487 builtin and then its argument prototype would still apply. */
9488#ifdef __cplusplus
9489extern "C"
9490#endif
9491char pthread_join ();
9492int
9493main ()
9494{
9495return pthread_join ();
9496 ;
9497 return 0;
9498}
9499_ACEOF
9500if ac_fn_c_try_link "$LINENO"; then :
9501 ax_pthread_ok=yes
9502fi
9503rm -f core conftest.err conftest.$ac_objext \
9504 conftest$ac_exeext conftest.$ac_ext
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9506$as_echo "$ax_pthread_ok" >&6; }
9507 if test x"$ax_pthread_ok" = xno; then
9508 PTHREAD_LIBS=""
9509 PTHREAD_CFLAGS=""
9510 fi
9511 LIBS="$save_LIBS"
9512 CFLAGS="$save_CFLAGS"
9513fi
9514
9515# We must check for the threads library under a number of different
9516# names; the ordering is very important because some systems
9517# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9518# libraries is broken (non-POSIX).
9519
9520# Create a list of thread flags to try. Items starting with a "-" are
9521# C compiler flags, and other items are library names, except for "none"
9522# which indicates that we try without any flags at all, and "pthread-config"
9523# which is a program returning the flags for the Pth emulation library.
9524
cristy18307f12011-12-30 01:20:16 +00009525ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009526
9527# The ordering *is* (sometimes) important. Some notes on the
9528# individual items follow:
9529
9530# pthreads: AIX (must check this before -lpthread)
9531# none: in case threads are in libc; should be tried before -Kthread and
9532# other compiler flags to prevent continual compiler warnings
9533# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9534# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9535# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9536# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9537# -pthreads: Solaris/gcc
9538# -mthreads: Mingw32/gcc, Lynx/gcc
9539# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9540# doesn't hurt to check since this sometimes defines pthreads too;
9541# also defines -D_REENTRANT)
9542# ... -mt is also the pthreads flag for HP/aCC
9543# pthread: Linux, etcetera
9544# --thread-safe: KAI C++
9545# pthread-config: use pthread-config program (for GNU Pth library)
9546
9547case "${host_cpu}-${host_os}" in
9548 *solaris*)
9549
9550 # On Solaris (at least, for some versions), libc contains stubbed
9551 # (non-functional) versions of the pthreads routines, so link-based
9552 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9553 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9554 # a function called by this macro, so we could check for that, but
9555 # who knows whether they'll stub that too in a future libc.) So,
9556 # we'll just look for -pthreads and -lpthread first:
9557
9558 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9559 ;;
9560
cristya316db12011-10-24 00:49:45 +00009561 *-darwin*)
9562 ax_pthread_flags="-pthread $ax_pthread_flags"
9563 ;;
cristy73bd4a52010-10-05 11:24:23 +00009564esac
9565
9566if test x"$ax_pthread_ok" = xno; then
9567for flag in $ax_pthread_flags; do
9568
9569 case $flag in
9570 none)
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9572$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9573 ;;
9574
9575 -*)
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9577$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9578 PTHREAD_CFLAGS="$flag"
9579 ;;
9580
cristya316db12011-10-24 00:49:45 +00009581 pthread-config)
9582 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009583set dummy pthread-config; ac_word=$2
9584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009586if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009587 $as_echo_n "(cached) " >&6
9588else
9589 if test -n "$ax_pthread_config"; then
9590 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9591else
9592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593for as_dir in $PATH
9594do
9595 IFS=$as_save_IFS
9596 test -z "$as_dir" && as_dir=.
9597 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009599 ac_cv_prog_ax_pthread_config="yes"
9600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9601 break 2
9602 fi
9603done
9604 done
9605IFS=$as_save_IFS
9606
9607 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9608fi
9609fi
9610ax_pthread_config=$ac_cv_prog_ax_pthread_config
9611if test -n "$ax_pthread_config"; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9613$as_echo "$ax_pthread_config" >&6; }
9614else
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616$as_echo "no" >&6; }
9617fi
9618
9619
cristya316db12011-10-24 00:49:45 +00009620 if test x"$ax_pthread_config" = xno; then continue; fi
9621 PTHREAD_CFLAGS="`pthread-config --cflags`"
9622 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9623 ;;
cristy73bd4a52010-10-05 11:24:23 +00009624
9625 *)
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9627$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9628 PTHREAD_LIBS="-l$flag"
9629 ;;
9630 esac
9631
9632 save_LIBS="$LIBS"
9633 save_CFLAGS="$CFLAGS"
9634 LIBS="$PTHREAD_LIBS $LIBS"
9635 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9636
9637 # Check for various functions. We must include pthread.h,
9638 # since some functions may be macros. (On the Sequent, we
9639 # need a special flag -Kthread to make this header compile.)
9640 # We check for pthread_join because it is in -lpthread on IRIX
9641 # while pthread_create is in libc. We check for pthread_attr_init
9642 # due to DEC craziness with -lpthreads. We check for
9643 # pthread_cleanup_push because it is one of the few pthread
9644 # functions on Solaris that doesn't have a non-functional libc stub.
9645 # We try pthread_create on general principles.
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647/* end confdefs.h. */
9648#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009649 static void routine(void *a) { a = 0; }
9650 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009651int
9652main ()
9653{
9654pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009655 pthread_create(&th, 0, start_routine, 0);
9656 pthread_join(th, 0);
9657 pthread_attr_init(&attr);
9658 pthread_cleanup_push(routine, 0);
9659 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009660 ;
9661 return 0;
9662}
9663_ACEOF
9664if ac_fn_c_try_link "$LINENO"; then :
9665 ax_pthread_ok=yes
9666fi
9667rm -f core conftest.err conftest.$ac_objext \
9668 conftest$ac_exeext conftest.$ac_ext
9669
9670 LIBS="$save_LIBS"
9671 CFLAGS="$save_CFLAGS"
9672
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9674$as_echo "$ax_pthread_ok" >&6; }
9675 if test "x$ax_pthread_ok" = xyes; then
9676 break;
9677 fi
9678
9679 PTHREAD_LIBS=""
9680 PTHREAD_CFLAGS=""
9681done
9682fi
9683
9684# Various other checks:
9685if test "x$ax_pthread_ok" = xyes; then
9686 save_LIBS="$LIBS"
9687 LIBS="$PTHREAD_LIBS $LIBS"
9688 save_CFLAGS="$CFLAGS"
9689 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9690
9691 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009693$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009694 attr_name=unknown
9695 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009697/* end confdefs.h. */
9698#include <pthread.h>
9699int
9700main ()
9701{
cristya316db12011-10-24 00:49:45 +00009702int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009703 ;
9704 return 0;
9705}
9706_ACEOF
9707if ac_fn_c_try_link "$LINENO"; then :
9708 attr_name=$attr; break
9709fi
9710rm -f core conftest.err conftest.$ac_objext \
9711 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009712 done
cristy73bd4a52010-10-05 11:24:23 +00009713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9714$as_echo "$attr_name" >&6; }
9715 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9716
9717cat >>confdefs.h <<_ACEOF
9718#define PTHREAD_CREATE_JOINABLE $attr_name
9719_ACEOF
9720
9721 fi
9722
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9724$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9725 flag=no
9726 case "${host_cpu}-${host_os}" in
9727 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9728 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9729 esac
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9731$as_echo "${flag}" >&6; }
9732 if test "x$flag" != xno; then
9733 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9734 fi
9735
cristya316db12011-10-24 00:49:45 +00009736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9737$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9738if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9739 $as_echo_n "(cached) " >&6
9740else
9741
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743/* end confdefs.h. */
9744
9745 #include <pthread.h>
9746int
9747main ()
9748{
9749int i = PTHREAD_PRIO_INHERIT;
9750 ;
9751 return 0;
9752}
9753_ACEOF
9754if ac_fn_c_try_link "$LINENO"; then :
9755 ax_cv_PTHREAD_PRIO_INHERIT=yes
9756else
9757 ax_cv_PTHREAD_PRIO_INHERIT=no
9758fi
9759rm -f core conftest.err conftest.$ac_objext \
9760 conftest$ac_exeext conftest.$ac_ext
9761
9762fi
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9764$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9765 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9766
9767$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9768
9769fi
9770
cristy73bd4a52010-10-05 11:24:23 +00009771 LIBS="$save_LIBS"
9772 CFLAGS="$save_CFLAGS"
9773
9774 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009775 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009776 for ac_prog in xlc_r cc_r
9777do
9778 # Extract the first word of "$ac_prog", so it can be a program name with args.
9779set dummy $ac_prog; ac_word=$2
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009782if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009783 $as_echo_n "(cached) " >&6
9784else
9785 if test -n "$PTHREAD_CC"; then
9786 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9787else
9788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789for as_dir in $PATH
9790do
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
9793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009795 ac_cv_prog_PTHREAD_CC="$ac_prog"
9796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 break 2
9798 fi
9799done
9800 done
9801IFS=$as_save_IFS
9802
9803fi
9804fi
9805PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9806if test -n "$PTHREAD_CC"; then
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9808$as_echo "$PTHREAD_CC" >&6; }
9809else
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9811$as_echo "no" >&6; }
9812fi
9813
9814
9815 test -n "$PTHREAD_CC" && break
9816done
9817test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9818
9819 else
9820 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009821 fi
cristy73bd4a52010-10-05 11:24:23 +00009822else
9823 PTHREAD_CC="$CC"
9824fi
9825
9826
9827
9828
9829
9830# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9831if test x"$ax_pthread_ok" = xyes; then
9832
9833$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9834
9835 :
9836else
9837 ax_pthread_ok=no
9838
9839fi
9840ac_ext=c
9841ac_cpp='$CPP $CPPFLAGS'
9842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9844ac_compiler_gnu=$ac_cv_c_compiler_gnu
9845
9846
9847
9848# Check whether --enable-opencl was given.
9849if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009850 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009851else
cristy48794642012-09-02 15:19:08 +00009852 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009853fi
9854
9855
cristy48794642012-09-02 15:19:08 +00009856if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009857 ac_ext=c
9858ac_cpp='$CPP $CPPFLAGS'
9859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9861ac_compiler_gnu=$ac_cv_c_compiler_gnu
9862
cristy75314cc2012-09-15 23:08:29 +00009863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9864$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9865if ${ax_cv_c_compiler_ms+:} false; then :
9866 $as_echo_n "(cached) " >&6
9867else
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h. */
9870
9871int
9872main ()
9873{
9874#ifndef _MSC_VER
9875 choke me
9876#endif
9877
9878 ;
9879 return 0;
9880}
9881_ACEOF
9882if ac_fn_c_try_compile "$LINENO"; then :
9883 ax_compiler_ms=yes
9884else
9885 ax_compiler_ms=no
9886fi
9887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9888ax_cv_c_compiler_ms=$ax_compiler_ms
9889
9890fi
9891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9892$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009893 if test X$ax_compiler_ms = Xno; then :
9894 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9895fi
9896
9897 ax_save_CPPFLAGS=$CPPFLAGS
9898 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9899 for ac_header in CL/cl.h OpenCL/cl.h
9900do :
9901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9902ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009903if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009904 cat >>confdefs.h <<_ACEOF
9905#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9906_ACEOF
9907
9908fi
9909
9910done
9911
9912 CPPFLAGS=$ax_save_CPPFLAGS
9913
9914 for ac_header in windows.h
9915do :
9916 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009917if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009918 cat >>confdefs.h <<_ACEOF
9919#define HAVE_WINDOWS_H 1
9920_ACEOF
9921
9922fi
9923
9924done
9925
9926
9927
9928
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9930$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009931if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009932 $as_echo_n "(cached) " >&6
9933else
9934 ax_cv_check_cl_libcl=no
9935 case $host_cpu in
9936 x86_64) ax_check_cl_libdir=lib64 ;;
9937 *) ax_check_cl_libdir=lib ;;
9938 esac
9939 ax_save_CPPFLAGS=$CPPFLAGS
9940 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9941 ax_save_LIBS=$LIBS
9942 LIBS=""
9943 ax_check_libs="-lOpenCL -lCL -lclparser"
9944 for ax_lib in $ax_check_libs; do
9945 if test X$ax_compiler_ms = Xyes; then :
9946 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9947else
9948 ax_try_lib=$ax_lib
9949fi
9950 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952/* end confdefs.h. */
9953
9954 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9955 # include <windows.h>
9956 # endif
9957 # ifdef HAVE_CL_CL_H
9958 # include <CL/cl.h>
9959 # elif defined(HAVE_OPENCL_CL_H)
9960 # include <OpenCL/cl.h>
9961 # else
9962 # error no CL.h
9963 # endif
9964int
9965main ()
9966{
9967clCreateContextFromType(0,0,0,0,0)
9968 ;
9969 return 0;
9970}
9971_ACEOF
9972if ac_fn_c_try_link "$LINENO"; then :
9973 ax_cv_check_cl_libcl=$ax_try_lib; break
9974else
9975 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"
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977/* end confdefs.h. */
9978
9979 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9980 # include <windows.h>
9981 # endif
9982 # ifdef HAVE_CL_CL_H
9983 # include <CL/cl.h>
9984 # elif defined(HAVE_OPENCL_CL_H)
9985 # include <OpenCL/cl.h>
9986 # else
9987 # error no CL.h
9988 # endif
9989int
9990main ()
9991{
9992clCreateContextFromType(0,0,0,0,0)
9993 ;
9994 return 0;
9995}
9996_ACEOF
9997if ac_fn_c_try_link "$LINENO"; then :
9998 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9999else
cristy78c5a0c2010-12-04 20:00:59 +000010000 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 +000010001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002/* end confdefs.h. */
10003
10004 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10005 # include <windows.h>
10006 # endif
10007 # ifdef HAVE_CL_CL_H
10008 # include <CL/cl.h>
10009 # elif defined(HAVE_OPENCL_CL_H)
10010 # include <OpenCL/cl.h>
10011 # else
10012 # error no CL.h
10013 # endif
10014int
10015main ()
10016{
10017clCreateContextFromType(0,0,0,0,0)
10018 ;
10019 return 0;
10020}
10021_ACEOF
10022if ac_fn_c_try_link "$LINENO"; then :
10023 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10024fi
10025rm -f core conftest.err conftest.$ac_objext \
10026 conftest$ac_exeext conftest.$ac_ext
10027fi
10028rm -f core conftest.err conftest.$ac_objext \
10029 conftest$ac_exeext conftest.$ac_ext
10030fi
10031rm -f core conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033 done
10034
cristyc3f8b8e2011-12-22 14:55:16 +000010035 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010036 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038/* end confdefs.h. */
10039
10040 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10041 # include <windows.h>
10042 # endif
10043 # ifdef HAVE_CL_CL_H
10044 # include <CL/cl.h>
10045 # elif defined(HAVE_OPENCL_CL_H)
10046 # include <OpenCL/cl.h>
10047 # else
10048 # error no CL.h
10049 # endif
10050int
10051main ()
10052{
10053clCreateContextFromType(0,0,0,0,0)
10054 ;
10055 return 0;
10056}
10057_ACEOF
10058if ac_fn_c_try_link "$LINENO"; then :
10059 ax_cv_check_cl_libcl=$LIBS
10060fi
10061rm -f core conftest.err conftest.$ac_objext \
10062 conftest$ac_exeext conftest.$ac_ext
10063fi
10064
10065 LIBS=$ax_save_LIBS
10066 CPPFLAGS=$ax_save_CPPFLAGS
10067fi
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10069$as_echo "$ax_cv_check_cl_libcl" >&6; }
10070
10071 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10072 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10073else
10074 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10075$as_echo "#define _OPENCL 1" >>confdefs.h
10076
10077fi
10078 ac_ext=c
10079ac_cpp='$CPP $CPPFLAGS'
10080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10082ac_compiler_gnu=$ac_cv_c_compiler_gnu
10083
10084fi
10085
10086
10087
10088
cristyc7083c12009-10-14 03:16:55 +000010089CFLAGS="$CL_CFLAGS $CFLAGS"
10090LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010091
cristy391f1ce2010-09-09 17:23:28 +000010092if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010093 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010094 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10095 fi
cristyfd9dcd42010-08-08 18:07:02 +000010096fi
cristy2e8b51d2009-10-17 18:26:15 +000010097
cristy3ed852e2009-09-05 21:47:34 +000010098########
10099#
10100# Check for large file support
10101#
10102########
10103# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010104if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010105 enableval=$enable_largefile;
10106fi
10107
10108if test "$enable_largefile" != no; then
10109
cristy8b350f62009-11-15 23:12:43 +000010110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010111$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010112if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010113 $as_echo_n "(cached) " >&6
10114else
10115 ac_cv_sys_largefile_CC=no
10116 if test "$GCC" != yes; then
10117 ac_save_CC=$CC
10118 while :; do
10119 # IRIX 6.2 and later do not support large files by default,
10120 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010122/* end confdefs.h. */
10123#include <sys/types.h>
10124 /* Check that off_t can represent 2**63 - 1 correctly.
10125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10126 since some C++ compilers masquerading as C compilers
10127 incorrectly reject 9223372036854775807. */
10128#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10130 && LARGE_OFF_T % 2147483647 == 1)
10131 ? 1 : -1];
10132int
10133main ()
10134{
10135
10136 ;
10137 return 0;
10138}
10139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010140 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010141 break
cristy3ed852e2009-09-05 21:47:34 +000010142fi
cristy3ed852e2009-09-05 21:47:34 +000010143rm -f core conftest.err conftest.$ac_objext
10144 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010145 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010146 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010147fi
cristy3ed852e2009-09-05 21:47:34 +000010148rm -f core conftest.err conftest.$ac_objext
10149 break
10150 done
10151 CC=$ac_save_CC
10152 rm -f conftest.$ac_ext
10153 fi
10154fi
cristy8b350f62009-11-15 23:12:43 +000010155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010156$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10157 if test "$ac_cv_sys_largefile_CC" != no; then
10158 CC=$CC$ac_cv_sys_largefile_CC
10159 fi
10160
cristy8b350f62009-11-15 23:12:43 +000010161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010162$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010163if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010164 $as_echo_n "(cached) " >&6
10165else
10166 while :; do
cristy8b350f62009-11-15 23:12:43 +000010167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010168/* end confdefs.h. */
10169#include <sys/types.h>
10170 /* Check that off_t can represent 2**63 - 1 correctly.
10171 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10172 since some C++ compilers masquerading as C compilers
10173 incorrectly reject 9223372036854775807. */
10174#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10175 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10176 && LARGE_OFF_T % 2147483647 == 1)
10177 ? 1 : -1];
10178int
10179main ()
10180{
10181
10182 ;
10183 return 0;
10184}
10185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010186if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010187 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010188fi
cristy3ed852e2009-09-05 21:47:34 +000010189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010191/* end confdefs.h. */
10192#define _FILE_OFFSET_BITS 64
10193#include <sys/types.h>
10194 /* Check that off_t can represent 2**63 - 1 correctly.
10195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10196 since some C++ compilers masquerading as C compilers
10197 incorrectly reject 9223372036854775807. */
10198#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10200 && LARGE_OFF_T % 2147483647 == 1)
10201 ? 1 : -1];
10202int
10203main ()
10204{
10205
10206 ;
10207 return 0;
10208}
10209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010210if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010211 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010212fi
cristy3ed852e2009-09-05 21:47:34 +000010213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10214 ac_cv_sys_file_offset_bits=unknown
10215 break
10216done
10217fi
cristy8b350f62009-11-15 23:12:43 +000010218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010219$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10220case $ac_cv_sys_file_offset_bits in #(
10221 no | unknown) ;;
10222 *)
10223cat >>confdefs.h <<_ACEOF
10224#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10225_ACEOF
10226;;
10227esac
10228rm -rf conftest*
10229 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010231$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010232if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010233 $as_echo_n "(cached) " >&6
10234else
10235 while :; do
cristy8b350f62009-11-15 23:12:43 +000010236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010237/* end confdefs.h. */
10238#include <sys/types.h>
10239 /* Check that off_t can represent 2**63 - 1 correctly.
10240 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10241 since some C++ compilers masquerading as C compilers
10242 incorrectly reject 9223372036854775807. */
10243#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10244 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10245 && LARGE_OFF_T % 2147483647 == 1)
10246 ? 1 : -1];
10247int
10248main ()
10249{
10250
10251 ;
10252 return 0;
10253}
10254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010255if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010256 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010257fi
cristy3ed852e2009-09-05 21:47:34 +000010258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010260/* end confdefs.h. */
10261#define _LARGE_FILES 1
10262#include <sys/types.h>
10263 /* Check that off_t can represent 2**63 - 1 correctly.
10264 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10265 since some C++ compilers masquerading as C compilers
10266 incorrectly reject 9223372036854775807. */
10267#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10268 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10269 && LARGE_OFF_T % 2147483647 == 1)
10270 ? 1 : -1];
10271int
10272main ()
10273{
10274
10275 ;
10276 return 0;
10277}
10278_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010279if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010280 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010281fi
cristy3ed852e2009-09-05 21:47:34 +000010282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10283 ac_cv_sys_large_files=unknown
10284 break
10285done
10286fi
cristy8b350f62009-11-15 23:12:43 +000010287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010288$as_echo "$ac_cv_sys_large_files" >&6; }
10289case $ac_cv_sys_large_files in #(
10290 no | unknown) ;;
10291 *)
10292cat >>confdefs.h <<_ACEOF
10293#define _LARGE_FILES $ac_cv_sys_large_files
10294_ACEOF
10295;;
10296esac
10297rm -rf conftest*
10298 fi
cristy14fefe52012-05-21 00:59:18 +000010299
10300
cristy3ed852e2009-09-05 21:47:34 +000010301fi
10302
cristy8b350f62009-11-15 23:12:43 +000010303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010304$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010305if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010306 $as_echo_n "(cached) " >&6
10307else
10308 while :; do
cristy8b350f62009-11-15 23:12:43 +000010309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010310/* end confdefs.h. */
10311#include <sys/types.h> /* for off_t */
10312 #include <stdio.h>
10313int
10314main ()
10315{
10316int (*fp) (FILE *, off_t, int) = fseeko;
10317 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10318 ;
10319 return 0;
10320}
10321_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010322if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010323 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010324fi
cristy8b350f62009-11-15 23:12:43 +000010325rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010328/* end confdefs.h. */
10329#define _LARGEFILE_SOURCE 1
10330#include <sys/types.h> /* for off_t */
10331 #include <stdio.h>
10332int
10333main ()
10334{
10335int (*fp) (FILE *, off_t, int) = fseeko;
10336 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10337 ;
10338 return 0;
10339}
10340_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010341if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010342 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010343fi
cristy8b350f62009-11-15 23:12:43 +000010344rm -f core conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010346 ac_cv_sys_largefile_source=unknown
10347 break
10348done
10349fi
cristy8b350f62009-11-15 23:12:43 +000010350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010351$as_echo "$ac_cv_sys_largefile_source" >&6; }
10352case $ac_cv_sys_largefile_source in #(
10353 no | unknown) ;;
10354 *)
10355cat >>confdefs.h <<_ACEOF
10356#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10357_ACEOF
10358;;
10359esac
10360rm -rf conftest*
10361
10362# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10363# in glibc 2.1.3, but that breaks too many other things.
10364# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10365if test $ac_cv_sys_largefile_source != unknown; then
10366
cristy8b350f62009-11-15 23:12:43 +000010367$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010368
10369fi
10370
10371LFS_CPPFLAGS=''
10372if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010373 case $ac_cv_sys_file_offset_bits in
10374 no)
10375 # nothing to do here as the host supports LFS fine
10376 ;;
10377 unknown)
cristy8b350f62009-11-15 23:12:43 +000010378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010379$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010380 if test "$cross_compiling" = yes; then :
10381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010383as_fn_error $? "cannot run test program while cross compiling
10384See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010385else
cristy8b350f62009-11-15 23:12:43 +000010386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010388#include <unistd.h>
10389 main () {
10390 exit(!(sizeof(off_t) == 8));
10391 }
cristyda16f162011-02-19 23:52:17 +000010392int
10393main ()
10394{
10395
10396 ;
10397 return 0;
10398}
cristy3ed852e2009-09-05 21:47:34 +000010399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010400if ac_fn_c_try_run "$LINENO"; then :
10401 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010402
cristyad38abe2012-12-23 23:03:21 +000010403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10404$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010405else
cristyad38abe2012-12-23 23:03:21 +000010406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010408fi
cristy8b350f62009-11-15 23:12:43 +000010409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10410 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010411fi
10412
cristyc1e0cc12011-09-21 16:41:16 +000010413 ;;
10414 *)
10415 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10416 ;;
10417 esac
cristy3ed852e2009-09-05 21:47:34 +000010418 if test "$ac_cv_sys_large_files" != 'no'; then
10419 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10420 fi
10421 if test "$ac_cv_sys_largefile_source" != 'no'; then
10422 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10423 fi
10424fi
10425
10426
cristy3ed852e2009-09-05 21:47:34 +000010427# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010428enable_dlopen=yes
10429
10430
10431
10432case `pwd` in
10433 *\ * | *\ *)
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10435$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10436esac
10437
10438
10439
cristy99bd5232011-12-07 14:38:20 +000010440macro_version='2.4.2'
10441macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455ltmain="$ac_aux_dir/ltmain.sh"
10456
cristy0c60a692010-11-04 01:09:47 +000010457# Backslashify metacharacters that are still active within
10458# double-quoted strings.
10459sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10460
10461# Same as above, but do not quote variable references.
10462double_quote_subst='s/\(["`\\]\)/\\\1/g'
10463
10464# Sed substitution to delay expansion of an escaped shell variable in a
10465# double_quote_subst'ed string.
10466delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10467
10468# Sed substitution to delay expansion of an escaped single quote.
10469delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10470
10471# Sed substitution to avoid accidental globbing in evaled expressions
10472no_glob_subst='s/\*/\\\*/g'
10473
cristy73bd4a52010-10-05 11:24:23 +000010474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10475$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010476if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010477 $as_echo_n "(cached) " >&6
10478else
10479 if test -n "$NM"; then
10480 # Let the user override the test.
10481 lt_cv_path_NM="$NM"
10482else
10483 lt_nm_to_check="${ac_tool_prefix}nm"
10484 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10485 lt_nm_to_check="$lt_nm_to_check nm"
10486 fi
10487 for lt_tmp_nm in $lt_nm_to_check; do
10488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10489 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10490 IFS="$lt_save_ifs"
10491 test -z "$ac_dir" && ac_dir=.
10492 tmp_nm="$ac_dir/$lt_tmp_nm"
10493 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10494 # Check to see if the nm accepts a BSD-compat flag.
10495 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10496 # nm: unknown option "B" ignored
10497 # Tru64's nm complains that /dev/null is an invalid object file
10498 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10499 */dev/null* | *'Invalid file or object type'*)
10500 lt_cv_path_NM="$tmp_nm -B"
10501 break
10502 ;;
10503 *)
10504 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10505 */dev/null*)
10506 lt_cv_path_NM="$tmp_nm -p"
10507 break
10508 ;;
10509 *)
10510 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10511 continue # so that we can try to find one that supports BSD flags
10512 ;;
10513 esac
10514 ;;
10515 esac
10516 fi
10517 done
10518 IFS="$lt_save_ifs"
10519 done
10520 : ${lt_cv_path_NM=no}
10521fi
10522fi
10523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10524$as_echo "$lt_cv_path_NM" >&6; }
10525if test "$lt_cv_path_NM" != "no"; then
10526 NM="$lt_cv_path_NM"
10527else
10528 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010529 if test -n "$DUMPBIN"; then :
10530 # Let the user override the test.
10531 else
10532 if test -n "$ac_tool_prefix"; then
10533 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010534 do
10535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10536set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010539if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010540 $as_echo_n "(cached) " >&6
10541else
10542 if test -n "$DUMPBIN"; then
10543 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10544else
10545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10546for as_dir in $PATH
10547do
10548 IFS=$as_save_IFS
10549 test -z "$as_dir" && as_dir=.
10550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010552 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10554 break 2
10555 fi
10556done
10557 done
10558IFS=$as_save_IFS
10559
10560fi
10561fi
10562DUMPBIN=$ac_cv_prog_DUMPBIN
10563if test -n "$DUMPBIN"; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10565$as_echo "$DUMPBIN" >&6; }
10566else
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568$as_echo "no" >&6; }
10569fi
10570
10571
10572 test -n "$DUMPBIN" && break
10573 done
10574fi
10575if test -z "$DUMPBIN"; then
10576 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010577 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010578do
10579 # Extract the first word of "$ac_prog", so it can be a program name with args.
10580set dummy $ac_prog; ac_word=$2
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10582$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010583if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010584 $as_echo_n "(cached) " >&6
10585else
10586 if test -n "$ac_ct_DUMPBIN"; then
10587 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10588else
10589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10590for as_dir in $PATH
10591do
10592 IFS=$as_save_IFS
10593 test -z "$as_dir" && as_dir=.
10594 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010596 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10598 break 2
10599 fi
10600done
10601 done
10602IFS=$as_save_IFS
10603
10604fi
10605fi
10606ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10607if test -n "$ac_ct_DUMPBIN"; then
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10609$as_echo "$ac_ct_DUMPBIN" >&6; }
10610else
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10612$as_echo "no" >&6; }
10613fi
10614
10615
10616 test -n "$ac_ct_DUMPBIN" && break
10617done
10618
10619 if test "x$ac_ct_DUMPBIN" = x; then
10620 DUMPBIN=":"
10621 else
10622 case $cross_compiling:$ac_tool_warned in
10623yes:)
10624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10626ac_tool_warned=yes ;;
10627esac
10628 DUMPBIN=$ac_ct_DUMPBIN
10629 fi
10630fi
10631
cristy0c60a692010-11-04 01:09:47 +000010632 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10633 *COFF*)
10634 DUMPBIN="$DUMPBIN -symbols"
10635 ;;
10636 *)
10637 DUMPBIN=:
10638 ;;
10639 esac
10640 fi
cristy73bd4a52010-10-05 11:24:23 +000010641
10642 if test "$DUMPBIN" != ":"; then
10643 NM="$DUMPBIN"
10644 fi
10645fi
10646test -z "$NM" && NM=nm
10647
10648
10649
10650
10651
10652
10653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10654$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010655if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010656 $as_echo_n "(cached) " >&6
10657else
10658 lt_cv_nm_interface="BSD nm"
10659 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010660 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010661 (eval "$ac_compile" 2>conftest.err)
10662 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010663 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010664 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10665 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010666 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010667 cat conftest.out >&5
10668 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10669 lt_cv_nm_interface="MS dumpbin"
10670 fi
10671 rm -f conftest*
10672fi
10673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10674$as_echo "$lt_cv_nm_interface" >&6; }
10675
10676# find the maximum length of command line arguments
10677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10678$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010679if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010680 $as_echo_n "(cached) " >&6
10681else
10682 i=0
10683 teststring="ABCD"
10684
10685 case $build_os in
10686 msdosdjgpp*)
10687 # On DJGPP, this test can blow up pretty badly due to problems in libc
10688 # (any single argument exceeding 2000 bytes causes a buffer overrun
10689 # during glob expansion). Even if it were fixed, the result of this
10690 # check would be larger than it should be.
10691 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10692 ;;
10693
10694 gnu*)
10695 # Under GNU Hurd, this test is not required because there is
10696 # no limit to the length of command line arguments.
10697 # Libtool will interpret -1 as no limit whatsoever
10698 lt_cv_sys_max_cmd_len=-1;
10699 ;;
10700
10701 cygwin* | mingw* | cegcc*)
10702 # On Win9x/ME, this test blows up -- it succeeds, but takes
10703 # about 5 minutes as the teststring grows exponentially.
10704 # Worse, since 9x/ME are not pre-emptively multitasking,
10705 # you end up with a "frozen" computer, even though with patience
10706 # the test eventually succeeds (with a max line length of 256k).
10707 # Instead, let's just punt: use the minimum linelength reported by
10708 # all of the supported platforms: 8192 (on NT/2K/XP).
10709 lt_cv_sys_max_cmd_len=8192;
10710 ;;
10711
cristy0c60a692010-11-04 01:09:47 +000010712 mint*)
10713 # On MiNT this can take a long time and run out of memory.
10714 lt_cv_sys_max_cmd_len=8192;
10715 ;;
10716
cristy73bd4a52010-10-05 11:24:23 +000010717 amigaos*)
10718 # On AmigaOS with pdksh, this test takes hours, literally.
10719 # So we just punt and use a minimum line length of 8192.
10720 lt_cv_sys_max_cmd_len=8192;
10721 ;;
10722
10723 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10724 # This has been around since 386BSD, at least. Likely further.
10725 if test -x /sbin/sysctl; then
10726 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10727 elif test -x /usr/sbin/sysctl; then
10728 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10729 else
10730 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10731 fi
10732 # And add a safety zone
10733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10735 ;;
10736
10737 interix*)
10738 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10739 lt_cv_sys_max_cmd_len=196608
10740 ;;
10741
cristy99bd5232011-12-07 14:38:20 +000010742 os2*)
10743 # The test takes a long time on OS/2.
10744 lt_cv_sys_max_cmd_len=8192
10745 ;;
10746
cristy73bd4a52010-10-05 11:24:23 +000010747 osf*)
10748 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10749 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10750 # nice to cause kernel panics so lets avoid the loop below.
10751 # First set a reasonable default.
10752 lt_cv_sys_max_cmd_len=16384
10753 #
10754 if test -x /sbin/sysconfig; then
10755 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10756 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10757 esac
10758 fi
10759 ;;
10760 sco3.2v5*)
10761 lt_cv_sys_max_cmd_len=102400
10762 ;;
10763 sysv5* | sco5v6* | sysv4.2uw2*)
10764 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10765 if test -n "$kargmax"; then
10766 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10767 else
10768 lt_cv_sys_max_cmd_len=32768
10769 fi
10770 ;;
10771 *)
10772 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10773 if test -n "$lt_cv_sys_max_cmd_len"; then
10774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10776 else
10777 # Make teststring a little bigger before we do anything with it.
10778 # a 1K string should be a reasonable start.
10779 for i in 1 2 3 4 5 6 7 8 ; do
10780 teststring=$teststring$teststring
10781 done
10782 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10783 # If test is not a shell built-in, we'll probably end up computing a
10784 # maximum length that is only half of the actual maximum length, but
10785 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010786 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010787 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010788 test $i != 17 # 1/2 MB should be enough
10789 do
10790 i=`expr $i + 1`
10791 teststring=$teststring$teststring
10792 done
10793 # Only check the string length outside the loop.
10794 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10795 teststring=
10796 # Add a significant safety factor because C++ compilers can tack on
10797 # massive amounts of additional arguments before passing them to the
10798 # linker. It appears as though 1/2 is a usable value.
10799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10800 fi
10801 ;;
10802 esac
10803
10804fi
10805
10806if test -n $lt_cv_sys_max_cmd_len ; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10808$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10809else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10811$as_echo "none" >&6; }
10812fi
10813max_cmd_len=$lt_cv_sys_max_cmd_len
10814
10815
10816
10817
10818
10819
10820: ${CP="cp -f"}
10821: ${MV="mv -f"}
10822: ${RM="rm -f"}
10823
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10825$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10826# Try some XSI features
10827xsi_shell=no
10828( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010829 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10830 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010831 && eval 'test $(( 1 + 1 )) -eq 2 \
10832 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10833 && xsi_shell=yes
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10835$as_echo "$xsi_shell" >&6; }
10836
10837
10838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10839$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10840lt_shell_append=no
10841( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10842 >/dev/null 2>&1 \
10843 && lt_shell_append=yes
10844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10845$as_echo "$lt_shell_append" >&6; }
10846
10847
10848if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10849 lt_unset=unset
10850else
10851 lt_unset=false
10852fi
10853
10854
10855
10856
10857
10858# test EBCDIC or ASCII
10859case `echo X|tr X '\101'` in
10860 A) # ASCII based system
10861 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10862 lt_SP2NL='tr \040 \012'
10863 lt_NL2SP='tr \015\012 \040\040'
10864 ;;
10865 *) # EBCDIC based system
10866 lt_SP2NL='tr \100 \n'
10867 lt_NL2SP='tr \r\n \100\100'
10868 ;;
10869esac
10870
10871
10872
10873
10874
10875
10876
10877
10878
cristyda16f162011-02-19 23:52:17 +000010879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10880$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10881if ${lt_cv_to_host_file_cmd+:} false; then :
10882 $as_echo_n "(cached) " >&6
10883else
10884 case $host in
10885 *-*-mingw* )
10886 case $build in
10887 *-*-mingw* ) # actually msys
10888 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10889 ;;
10890 *-*-cygwin* )
10891 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10892 ;;
10893 * ) # otherwise, assume *nix
10894 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10895 ;;
10896 esac
10897 ;;
10898 *-*-cygwin* )
10899 case $build in
10900 *-*-mingw* ) # actually msys
10901 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10902 ;;
10903 *-*-cygwin* )
10904 lt_cv_to_host_file_cmd=func_convert_file_noop
10905 ;;
10906 * ) # otherwise, assume *nix
10907 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10908 ;;
10909 esac
10910 ;;
10911 * ) # unhandled hosts (and "normal" native builds)
10912 lt_cv_to_host_file_cmd=func_convert_file_noop
10913 ;;
10914esac
10915
10916fi
10917
10918to_host_file_cmd=$lt_cv_to_host_file_cmd
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10920$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10921
10922
10923
10924
10925
10926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10927$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10928if ${lt_cv_to_tool_file_cmd+:} false; then :
10929 $as_echo_n "(cached) " >&6
10930else
10931 #assume ordinary cross tools, or native build.
10932lt_cv_to_tool_file_cmd=func_convert_file_noop
10933case $host in
10934 *-*-mingw* )
10935 case $build in
10936 *-*-mingw* ) # actually msys
10937 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10938 ;;
10939 esac
10940 ;;
10941esac
10942
10943fi
10944
10945to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10947$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10948
10949
10950
10951
10952
cristy73bd4a52010-10-05 11:24:23 +000010953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10954$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010955if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010956 $as_echo_n "(cached) " >&6
10957else
10958 lt_cv_ld_reload_flag='-r'
10959fi
10960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10961$as_echo "$lt_cv_ld_reload_flag" >&6; }
10962reload_flag=$lt_cv_ld_reload_flag
10963case $reload_flag in
10964"" | " "*) ;;
10965*) reload_flag=" $reload_flag" ;;
10966esac
10967reload_cmds='$LD$reload_flag -o $output$reload_objs'
10968case $host_os in
cristyda16f162011-02-19 23:52:17 +000010969 cygwin* | mingw* | pw32* | cegcc*)
10970 if test "$GCC" != yes; then
10971 reload_cmds=false
10972 fi
10973 ;;
cristy73bd4a52010-10-05 11:24:23 +000010974 darwin*)
10975 if test "$GCC" = yes; then
10976 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10977 else
10978 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10979 fi
10980 ;;
10981esac
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991if test -n "$ac_tool_prefix"; then
10992 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10993set dummy ${ac_tool_prefix}objdump; ac_word=$2
10994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010996if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010997 $as_echo_n "(cached) " >&6
10998else
10999 if test -n "$OBJDUMP"; then
11000 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11001else
11002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003for as_dir in $PATH
11004do
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011009 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11011 break 2
11012 fi
11013done
11014 done
11015IFS=$as_save_IFS
11016
11017fi
11018fi
11019OBJDUMP=$ac_cv_prog_OBJDUMP
11020if test -n "$OBJDUMP"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11022$as_echo "$OBJDUMP" >&6; }
11023else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025$as_echo "no" >&6; }
11026fi
11027
11028
11029fi
11030if test -z "$ac_cv_prog_OBJDUMP"; then
11031 ac_ct_OBJDUMP=$OBJDUMP
11032 # Extract the first word of "objdump", so it can be a program name with args.
11033set dummy objdump; ac_word=$2
11034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11035$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011036if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011037 $as_echo_n "(cached) " >&6
11038else
11039 if test -n "$ac_ct_OBJDUMP"; then
11040 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11041else
11042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043for as_dir in $PATH
11044do
11045 IFS=$as_save_IFS
11046 test -z "$as_dir" && as_dir=.
11047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011049 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11051 break 2
11052 fi
11053done
11054 done
11055IFS=$as_save_IFS
11056
11057fi
11058fi
11059ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11060if test -n "$ac_ct_OBJDUMP"; then
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11062$as_echo "$ac_ct_OBJDUMP" >&6; }
11063else
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065$as_echo "no" >&6; }
11066fi
11067
11068 if test "x$ac_ct_OBJDUMP" = x; then
11069 OBJDUMP="false"
11070 else
11071 case $cross_compiling:$ac_tool_warned in
11072yes:)
11073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11075ac_tool_warned=yes ;;
11076esac
11077 OBJDUMP=$ac_ct_OBJDUMP
11078 fi
11079else
11080 OBJDUMP="$ac_cv_prog_OBJDUMP"
11081fi
11082
11083test -z "$OBJDUMP" && OBJDUMP=objdump
11084
11085
11086
11087
11088
11089
11090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11091$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011092if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011093 $as_echo_n "(cached) " >&6
11094else
11095 lt_cv_file_magic_cmd='$MAGIC_CMD'
11096lt_cv_file_magic_test_file=
11097lt_cv_deplibs_check_method='unknown'
11098# Need to set the preceding variable on all platforms that support
11099# interlibrary dependencies.
11100# 'none' -- dependencies not supported.
11101# `unknown' -- same as none, but documents that we really don't know.
11102# 'pass_all' -- all dependencies passed with no checks.
11103# 'test_compile' -- check by making test program.
11104# 'file_magic [[regex]]' -- check by looking for files in library path
11105# which responds to the $file_magic_cmd with a given extended regex.
11106# If you have `file' or equivalent on your system and you're not sure
11107# whether `pass_all' will *always* work, you probably want this one.
11108
11109case $host_os in
11110aix[4-9]*)
11111 lt_cv_deplibs_check_method=pass_all
11112 ;;
11113
11114beos*)
11115 lt_cv_deplibs_check_method=pass_all
11116 ;;
11117
11118bsdi[45]*)
11119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11120 lt_cv_file_magic_cmd='/usr/bin/file -L'
11121 lt_cv_file_magic_test_file=/shlib/libc.so
11122 ;;
11123
11124cygwin*)
11125 # func_win32_libid is a shell function defined in ltmain.sh
11126 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11127 lt_cv_file_magic_cmd='func_win32_libid'
11128 ;;
11129
11130mingw* | pw32*)
11131 # Base MSYS/MinGW do not provide the 'file' command needed by
11132 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11133 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011134 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11135 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011136 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11137 lt_cv_file_magic_cmd='func_win32_libid'
11138 else
cristy0c60a692010-11-04 01:09:47 +000011139 # Keep this pattern in sync with the one in func_win32_libid.
11140 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 +000011141 lt_cv_file_magic_cmd='$OBJDUMP -f'
11142 fi
11143 ;;
11144
cristy0c60a692010-11-04 01:09:47 +000011145cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011146 # use the weaker test based on 'objdump'. See mingw*.
11147 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11148 lt_cv_file_magic_cmd='$OBJDUMP -f'
11149 ;;
11150
11151darwin* | rhapsody*)
11152 lt_cv_deplibs_check_method=pass_all
11153 ;;
11154
11155freebsd* | dragonfly*)
11156 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11157 case $host_cpu in
11158 i*86 )
11159 # Not sure whether the presence of OpenBSD here was a mistake.
11160 # Let's accept both of them until this is cleared up.
11161 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11162 lt_cv_file_magic_cmd=/usr/bin/file
11163 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11164 ;;
11165 esac
11166 else
11167 lt_cv_deplibs_check_method=pass_all
11168 fi
11169 ;;
11170
11171gnu*)
11172 lt_cv_deplibs_check_method=pass_all
11173 ;;
11174
cristy0c60a692010-11-04 01:09:47 +000011175haiku*)
11176 lt_cv_deplibs_check_method=pass_all
11177 ;;
11178
cristy73bd4a52010-10-05 11:24:23 +000011179hpux10.20* | hpux11*)
11180 lt_cv_file_magic_cmd=/usr/bin/file
11181 case $host_cpu in
11182 ia64*)
11183 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11184 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11185 ;;
11186 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011187 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 +000011188 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11189 ;;
11190 *)
cristy0c60a692010-11-04 01:09:47 +000011191 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 +000011192 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11193 ;;
11194 esac
11195 ;;
11196
11197interix[3-9]*)
11198 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11200 ;;
11201
11202irix5* | irix6* | nonstopux*)
11203 case $LD in
11204 *-32|*"-32 ") libmagic=32-bit;;
11205 *-n32|*"-n32 ") libmagic=N32;;
11206 *-64|*"-64 ") libmagic=64-bit;;
11207 *) libmagic=never-match;;
11208 esac
11209 lt_cv_deplibs_check_method=pass_all
11210 ;;
11211
cristy99bd5232011-12-07 14:38:20 +000011212# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011213linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011214 lt_cv_deplibs_check_method=pass_all
11215 ;;
11216
11217netbsd*)
11218 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11220 else
11221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11222 fi
11223 ;;
11224
11225newos6*)
11226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11227 lt_cv_file_magic_cmd=/usr/bin/file
11228 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11229 ;;
11230
11231*nto* | *qnx*)
11232 lt_cv_deplibs_check_method=pass_all
11233 ;;
11234
11235openbsd*)
11236 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11238 else
11239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11240 fi
11241 ;;
11242
11243osf3* | osf4* | osf5*)
11244 lt_cv_deplibs_check_method=pass_all
11245 ;;
11246
11247rdos*)
11248 lt_cv_deplibs_check_method=pass_all
11249 ;;
11250
11251solaris*)
11252 lt_cv_deplibs_check_method=pass_all
11253 ;;
11254
11255sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11256 lt_cv_deplibs_check_method=pass_all
11257 ;;
11258
11259sysv4 | sysv4.3*)
11260 case $host_vendor in
11261 motorola)
11262 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]'
11263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11264 ;;
11265 ncr)
11266 lt_cv_deplibs_check_method=pass_all
11267 ;;
11268 sequent)
11269 lt_cv_file_magic_cmd='/bin/file'
11270 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11271 ;;
11272 sni)
11273 lt_cv_file_magic_cmd='/bin/file'
11274 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11275 lt_cv_file_magic_test_file=/lib/libc.so
11276 ;;
11277 siemens)
11278 lt_cv_deplibs_check_method=pass_all
11279 ;;
11280 pc)
11281 lt_cv_deplibs_check_method=pass_all
11282 ;;
11283 esac
11284 ;;
11285
11286tpf*)
11287 lt_cv_deplibs_check_method=pass_all
11288 ;;
11289esac
11290
11291fi
11292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11293$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011294
11295file_magic_glob=
11296want_nocaseglob=no
11297if test "$build" = "$host"; then
11298 case $host_os in
11299 mingw* | pw32*)
11300 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11301 want_nocaseglob=yes
11302 else
11303 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11304 fi
11305 ;;
11306 esac
11307fi
11308
cristy73bd4a52010-10-05 11:24:23 +000011309file_magic_cmd=$lt_cv_file_magic_cmd
11310deplibs_check_method=$lt_cv_deplibs_check_method
11311test -z "$deplibs_check_method" && deplibs_check_method=unknown
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
cristyda16f162011-02-19 23:52:17 +000011324
11325
11326
11327
11328
11329
11330
11331
11332
11333
cristy73bd4a52010-10-05 11:24:23 +000011334if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011335 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11336set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011339if ${ac_cv_prog_DLLTOOL+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341else
11342 if test -n "$DLLTOOL"; then
11343 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11344else
11345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346for as_dir in $PATH
11347do
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
11350 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011352 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11354 break 2
11355 fi
11356done
11357 done
11358IFS=$as_save_IFS
11359
11360fi
11361fi
11362DLLTOOL=$ac_cv_prog_DLLTOOL
11363if test -n "$DLLTOOL"; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11365$as_echo "$DLLTOOL" >&6; }
11366else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368$as_echo "no" >&6; }
11369fi
11370
11371
11372fi
11373if test -z "$ac_cv_prog_DLLTOOL"; then
11374 ac_ct_DLLTOOL=$DLLTOOL
11375 # Extract the first word of "dlltool", so it can be a program name with args.
11376set dummy dlltool; ac_word=$2
11377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378$as_echo_n "checking for $ac_word... " >&6; }
11379if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381else
11382 if test -n "$ac_ct_DLLTOOL"; then
11383 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11384else
11385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386for as_dir in $PATH
11387do
11388 IFS=$as_save_IFS
11389 test -z "$as_dir" && as_dir=.
11390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011392 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11394 break 2
11395 fi
11396done
11397 done
11398IFS=$as_save_IFS
11399
11400fi
11401fi
11402ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11403if test -n "$ac_ct_DLLTOOL"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11405$as_echo "$ac_ct_DLLTOOL" >&6; }
11406else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408$as_echo "no" >&6; }
11409fi
11410
11411 if test "x$ac_ct_DLLTOOL" = x; then
11412 DLLTOOL="false"
11413 else
11414 case $cross_compiling:$ac_tool_warned in
11415yes:)
11416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11418ac_tool_warned=yes ;;
11419esac
11420 DLLTOOL=$ac_ct_DLLTOOL
11421 fi
11422else
11423 DLLTOOL="$ac_cv_prog_DLLTOOL"
11424fi
11425
11426test -z "$DLLTOOL" && DLLTOOL=dlltool
11427
11428
11429
11430
11431
11432
11433
11434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11435$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11436if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11437 $as_echo_n "(cached) " >&6
11438else
11439 lt_cv_sharedlib_from_linklib_cmd='unknown'
11440
11441case $host_os in
11442cygwin* | mingw* | pw32* | cegcc*)
11443 # two different shell functions defined in ltmain.sh
11444 # decide which to use based on capabilities of $DLLTOOL
11445 case `$DLLTOOL --help 2>&1` in
11446 *--identify-strict*)
11447 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11448 ;;
11449 *)
11450 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11451 ;;
11452 esac
11453 ;;
11454*)
11455 # fallback: assume linklib IS sharedlib
11456 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11457 ;;
11458esac
11459
11460fi
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11462$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11463sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11464test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11465
11466
11467
11468
11469
11470
11471
11472if test -n "$ac_tool_prefix"; then
11473 for ac_prog in ar
11474 do
11475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11476set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478$as_echo_n "checking for $ac_word... " >&6; }
11479if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011480 $as_echo_n "(cached) " >&6
11481else
11482 if test -n "$AR"; then
11483 ac_cv_prog_AR="$AR" # Let the user override the test.
11484else
11485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486for as_dir in $PATH
11487do
11488 IFS=$as_save_IFS
11489 test -z "$as_dir" && as_dir=.
11490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011492 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 break 2
11495 fi
11496done
11497 done
11498IFS=$as_save_IFS
11499
11500fi
11501fi
11502AR=$ac_cv_prog_AR
11503if test -n "$AR"; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11505$as_echo "$AR" >&6; }
11506else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508$as_echo "no" >&6; }
11509fi
11510
11511
cristyda16f162011-02-19 23:52:17 +000011512 test -n "$AR" && break
11513 done
cristy73bd4a52010-10-05 11:24:23 +000011514fi
cristyda16f162011-02-19 23:52:17 +000011515if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011516 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011517 for ac_prog in ar
11518do
11519 # Extract the first word of "$ac_prog", so it can be a program name with args.
11520set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11522$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011523if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011524 $as_echo_n "(cached) " >&6
11525else
11526 if test -n "$ac_ct_AR"; then
11527 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11528else
11529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530for as_dir in $PATH
11531do
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011536 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 break 2
11539 fi
11540done
11541 done
11542IFS=$as_save_IFS
11543
11544fi
11545fi
11546ac_ct_AR=$ac_cv_prog_ac_ct_AR
11547if test -n "$ac_ct_AR"; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11549$as_echo "$ac_ct_AR" >&6; }
11550else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552$as_echo "no" >&6; }
11553fi
11554
cristyda16f162011-02-19 23:52:17 +000011555
11556 test -n "$ac_ct_AR" && break
11557done
11558
cristy73bd4a52010-10-05 11:24:23 +000011559 if test "x$ac_ct_AR" = x; then
11560 AR="false"
11561 else
11562 case $cross_compiling:$ac_tool_warned in
11563yes:)
11564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11566ac_tool_warned=yes ;;
11567esac
11568 AR=$ac_ct_AR
11569 fi
cristy73bd4a52010-10-05 11:24:23 +000011570fi
11571
cristyda16f162011-02-19 23:52:17 +000011572: ${AR=ar}
11573: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
cristyda16f162011-02-19 23:52:17 +000011585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11586$as_echo_n "checking for archiver @FILE support... " >&6; }
11587if ${lt_cv_ar_at_file+:} false; then :
11588 $as_echo_n "(cached) " >&6
11589else
11590 lt_cv_ar_at_file=no
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592/* end confdefs.h. */
11593
11594int
11595main ()
11596{
11597
11598 ;
11599 return 0;
11600}
11601_ACEOF
11602if ac_fn_c_try_compile "$LINENO"; then :
11603 echo conftest.$ac_objext > conftest.lst
11604 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11606 (eval $lt_ar_try) 2>&5
11607 ac_status=$?
11608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11609 test $ac_status = 0; }
11610 if test "$ac_status" -eq 0; then
11611 # Ensure the archiver fails upon bogus file names.
11612 rm -f conftest.$ac_objext libconftest.a
11613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11614 (eval $lt_ar_try) 2>&5
11615 ac_status=$?
11616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11617 test $ac_status = 0; }
11618 if test "$ac_status" -ne 0; then
11619 lt_cv_ar_at_file=@
11620 fi
11621 fi
11622 rm -f conftest.* libconftest.a
11623
11624fi
11625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11626
11627fi
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11629$as_echo "$lt_cv_ar_at_file" >&6; }
11630
11631if test "x$lt_cv_ar_at_file" = xno; then
11632 archiver_list_spec=
11633else
11634 archiver_list_spec=$lt_cv_ar_at_file
11635fi
11636
11637
11638
11639
11640
11641
11642
cristy73bd4a52010-10-05 11:24:23 +000011643if test -n "$ac_tool_prefix"; then
11644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11645set dummy ${ac_tool_prefix}strip; ac_word=$2
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011648if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011649 $as_echo_n "(cached) " >&6
11650else
11651 if test -n "$STRIP"; then
11652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11653else
11654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655for as_dir in $PATH
11656do
11657 IFS=$as_save_IFS
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011661 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 break 2
11664 fi
11665done
11666 done
11667IFS=$as_save_IFS
11668
11669fi
11670fi
11671STRIP=$ac_cv_prog_STRIP
11672if test -n "$STRIP"; then
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11674$as_echo "$STRIP" >&6; }
11675else
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11677$as_echo "no" >&6; }
11678fi
11679
11680
11681fi
11682if test -z "$ac_cv_prog_STRIP"; then
11683 ac_ct_STRIP=$STRIP
11684 # Extract the first word of "strip", so it can be a program name with args.
11685set dummy strip; ac_word=$2
11686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011688if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011689 $as_echo_n "(cached) " >&6
11690else
11691 if test -n "$ac_ct_STRIP"; then
11692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11693else
11694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695for as_dir in $PATH
11696do
11697 IFS=$as_save_IFS
11698 test -z "$as_dir" && as_dir=.
11699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011701 ac_cv_prog_ac_ct_STRIP="strip"
11702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11703 break 2
11704 fi
11705done
11706 done
11707IFS=$as_save_IFS
11708
11709fi
11710fi
11711ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11712if test -n "$ac_ct_STRIP"; then
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11714$as_echo "$ac_ct_STRIP" >&6; }
11715else
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717$as_echo "no" >&6; }
11718fi
11719
11720 if test "x$ac_ct_STRIP" = x; then
11721 STRIP=":"
11722 else
11723 case $cross_compiling:$ac_tool_warned in
11724yes:)
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11727ac_tool_warned=yes ;;
11728esac
11729 STRIP=$ac_ct_STRIP
11730 fi
11731else
11732 STRIP="$ac_cv_prog_STRIP"
11733fi
11734
11735test -z "$STRIP" && STRIP=:
11736
11737
11738
11739
11740
11741
11742if test -n "$ac_tool_prefix"; then
11743 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11744set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11746$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011747if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011748 $as_echo_n "(cached) " >&6
11749else
11750 if test -n "$RANLIB"; then
11751 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11752else
11753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11754for as_dir in $PATH
11755do
11756 IFS=$as_save_IFS
11757 test -z "$as_dir" && as_dir=.
11758 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011760 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11762 break 2
11763 fi
11764done
11765 done
11766IFS=$as_save_IFS
11767
11768fi
11769fi
11770RANLIB=$ac_cv_prog_RANLIB
11771if test -n "$RANLIB"; then
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11773$as_echo "$RANLIB" >&6; }
11774else
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776$as_echo "no" >&6; }
11777fi
11778
11779
11780fi
11781if test -z "$ac_cv_prog_RANLIB"; then
11782 ac_ct_RANLIB=$RANLIB
11783 # Extract the first word of "ranlib", so it can be a program name with args.
11784set dummy ranlib; ac_word=$2
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11786$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011787if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011788 $as_echo_n "(cached) " >&6
11789else
11790 if test -n "$ac_ct_RANLIB"; then
11791 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11792else
11793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794for as_dir in $PATH
11795do
11796 IFS=$as_save_IFS
11797 test -z "$as_dir" && as_dir=.
11798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011800 ac_cv_prog_ac_ct_RANLIB="ranlib"
11801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11802 break 2
11803 fi
11804done
11805 done
11806IFS=$as_save_IFS
11807
11808fi
11809fi
11810ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11811if test -n "$ac_ct_RANLIB"; then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11813$as_echo "$ac_ct_RANLIB" >&6; }
11814else
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816$as_echo "no" >&6; }
11817fi
11818
11819 if test "x$ac_ct_RANLIB" = x; then
11820 RANLIB=":"
11821 else
11822 case $cross_compiling:$ac_tool_warned in
11823yes:)
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11826ac_tool_warned=yes ;;
11827esac
11828 RANLIB=$ac_ct_RANLIB
11829 fi
11830else
11831 RANLIB="$ac_cv_prog_RANLIB"
11832fi
11833
11834test -z "$RANLIB" && RANLIB=:
11835
11836
11837
11838
11839
11840
11841# Determine commands to create old-style static archives.
11842old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11843old_postinstall_cmds='chmod 644 $oldlib'
11844old_postuninstall_cmds=
11845
11846if test -n "$RANLIB"; then
11847 case $host_os in
11848 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011849 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011850 ;;
11851 *)
cristy99bd5232011-12-07 14:38:20 +000011852 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011853 ;;
11854 esac
cristy99bd5232011-12-07 14:38:20 +000011855 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011856fi
11857
cristy0c60a692010-11-04 01:09:47 +000011858case $host_os in
11859 darwin*)
11860 lock_old_archive_extraction=yes ;;
11861 *)
11862 lock_old_archive_extraction=no ;;
11863esac
11864
11865
11866
11867
11868
11869
cristy73bd4a52010-10-05 11:24:23 +000011870
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
11902
11903# If no C compiler was specified, use CC.
11904LTCC=${LTCC-"$CC"}
11905
11906# If no C compiler flags were specified, use CFLAGS.
11907LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11908
11909# Allow CC to be a program name with arguments.
11910compiler=$CC
11911
11912
11913# Check for command to grab the raw symbol name followed by C symbol from nm.
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11915$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011916if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011917 $as_echo_n "(cached) " >&6
11918else
11919
11920# These are sane defaults that work on at least a few old systems.
11921# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11922
11923# Character class describing NM global symbol codes.
11924symcode='[BCDEGRST]'
11925
11926# Regexp to match symbols that can be accessed directly from C.
11927sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11928
11929# Define system-specific variables.
11930case $host_os in
11931aix*)
11932 symcode='[BCDT]'
11933 ;;
11934cygwin* | mingw* | pw32* | cegcc*)
11935 symcode='[ABCDGISTW]'
11936 ;;
11937hpux*)
11938 if test "$host_cpu" = ia64; then
11939 symcode='[ABCDEGRST]'
11940 fi
11941 ;;
11942irix* | nonstopux*)
11943 symcode='[BCDEGRST]'
11944 ;;
11945osf*)
11946 symcode='[BCDEGQRST]'
11947 ;;
11948solaris*)
11949 symcode='[BDRT]'
11950 ;;
11951sco3.2v5*)
11952 symcode='[DT]'
11953 ;;
11954sysv4.2uw2*)
11955 symcode='[DT]'
11956 ;;
11957sysv5* | sco5v6* | unixware* | OpenUNIX*)
11958 symcode='[ABDT]'
11959 ;;
11960sysv4)
11961 symcode='[DFNSTU]'
11962 ;;
11963esac
11964
11965# If we're using GNU nm, then use its standard symbol codes.
11966case `$NM -V 2>&1` in
11967*GNU* | *'with BFD'*)
11968 symcode='[ABCDGIRSTW]' ;;
11969esac
11970
11971# Transform an extracted symbol line into a proper C declaration.
11972# Some systems (esp. on ia64) link data and code symbols differently,
11973# so use this general approach.
11974lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11975
11976# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011977lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11978lt_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 +000011979
11980# Handle CRLF in mingw tool chain
11981opt_cr=
11982case $build_os in
11983mingw*)
11984 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11985 ;;
11986esac
11987
11988# Try without a prefix underscore, then with it.
11989for ac_symprfx in "" "_"; do
11990
11991 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11992 symxfrm="\\1 $ac_symprfx\\2 \\2"
11993
11994 # Write the raw and C identifiers.
11995 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11996 # Fake it for dumpbin and say T for any non-static function
11997 # and D for any global variable.
11998 # Also find C++ and __fastcall symbols from MSVC++,
11999 # which start with @ or ?.
12000 lt_cv_sys_global_symbol_pipe="$AWK '"\
12001" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012002" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012003" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12004" \$ 0!~/External *\|/{next};"\
12005" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12006" {if(hide[section]) next};"\
12007" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12008" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12009" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12010" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12011" ' prfx=^$ac_symprfx"
12012 else
12013 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12014 fi
cristyda16f162011-02-19 23:52:17 +000012015 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012016
12017 # Check to see that the pipe works correctly.
12018 pipe_works=no
12019
12020 rm -f conftest*
12021 cat > conftest.$ac_ext <<_LT_EOF
12022#ifdef __cplusplus
12023extern "C" {
12024#endif
12025char nm_test_var;
12026void nm_test_func(void);
12027void nm_test_func(void){}
12028#ifdef __cplusplus
12029}
12030#endif
12031int main(){nm_test_var='a';nm_test_func();return(0);}
12032_LT_EOF
12033
12034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12035 (eval $ac_compile) 2>&5
12036 ac_status=$?
12037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12038 test $ac_status = 0; }; then
12039 # Now try to grab the symbols.
12040 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12042 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012043 ac_status=$?
12044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12045 test $ac_status = 0; } && test -s "$nlist"; then
12046 # Try sorting and uniquifying the output.
12047 if sort "$nlist" | uniq > "$nlist"T; then
12048 mv -f "$nlist"T "$nlist"
12049 else
12050 rm -f "$nlist"T
12051 fi
12052
12053 # Make sure that we snagged all the symbols we need.
12054 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12055 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12056 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012057/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12058#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12059/* DATA imports from DLLs on WIN32 con't be const, because runtime
12060 relocations are performed -- see ld's documentation on pseudo-relocs. */
12061# define LT_DLSYM_CONST
12062#elif defined(__osf__)
12063/* This system does not cope well with relocations in const data. */
12064# define LT_DLSYM_CONST
12065#else
12066# define LT_DLSYM_CONST const
12067#endif
12068
cristy73bd4a52010-10-05 11:24:23 +000012069#ifdef __cplusplus
12070extern "C" {
12071#endif
12072
12073_LT_EOF
12074 # Now generate the symbol file.
12075 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12076
12077 cat <<_LT_EOF >> conftest.$ac_ext
12078
12079/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012080LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012081 const char *name;
12082 void *address;
12083}
12084lt__PROGRAM__LTX_preloaded_symbols[] =
12085{
12086 { "@PROGRAM@", (void *) 0 },
12087_LT_EOF
12088 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12089 cat <<\_LT_EOF >> conftest.$ac_ext
12090 {0, (void *) 0}
12091};
12092
12093/* This works around a problem in FreeBSD linker */
12094#ifdef FREEBSD_WORKAROUND
12095static const void *lt_preloaded_setup() {
12096 return lt__PROGRAM__LTX_preloaded_symbols;
12097}
12098#endif
12099
12100#ifdef __cplusplus
12101}
12102#endif
12103_LT_EOF
12104 # Now try linking the two files.
12105 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012106 lt_globsym_save_LIBS=$LIBS
12107 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012108 LIBS="conftstm.$ac_objext"
12109 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12111 (eval $ac_link) 2>&5
12112 ac_status=$?
12113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12114 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12115 pipe_works=yes
12116 fi
cristyda16f162011-02-19 23:52:17 +000012117 LIBS=$lt_globsym_save_LIBS
12118 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012119 else
12120 echo "cannot find nm_test_func in $nlist" >&5
12121 fi
12122 else
12123 echo "cannot find nm_test_var in $nlist" >&5
12124 fi
12125 else
12126 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12127 fi
12128 else
12129 echo "$progname: failed program was:" >&5
12130 cat conftest.$ac_ext >&5
12131 fi
12132 rm -rf conftest* conftst*
12133
12134 # Do not use the global_symbol_pipe unless it works.
12135 if test "$pipe_works" = yes; then
12136 break
12137 else
12138 lt_cv_sys_global_symbol_pipe=
12139 fi
12140done
12141
12142fi
12143
12144if test -z "$lt_cv_sys_global_symbol_pipe"; then
12145 lt_cv_sys_global_symbol_to_cdecl=
12146fi
12147if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12149$as_echo "failed" >&6; }
12150else
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12152$as_echo "ok" >&6; }
12153fi
12154
cristyda16f162011-02-19 23:52:17 +000012155# Response file support.
12156if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12157 nm_file_list_spec='@'
12158elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12159 nm_file_list_spec='@'
12160fi
cristy73bd4a52010-10-05 11:24:23 +000012161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
cristyda16f162011-02-19 23:52:17 +000012182
12183
12184
12185
12186
12187
12188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12189$as_echo_n "checking for sysroot... " >&6; }
12190
12191# Check whether --with-sysroot was given.
12192if test "${with_sysroot+set}" = set; then :
12193 withval=$with_sysroot;
12194else
12195 with_sysroot=no
12196fi
12197
12198
12199lt_sysroot=
12200case ${with_sysroot} in #(
12201 yes)
12202 if test "$GCC" = yes; then
12203 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12204 fi
12205 ;; #(
12206 /*)
12207 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12208 ;; #(
12209 no|'')
12210 ;; #(
12211 *)
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12213$as_echo "${with_sysroot}" >&6; }
12214 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12215 ;;
12216esac
12217
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12219$as_echo "${lt_sysroot:-no}" >&6; }
12220
12221
12222
12223
12224
cristy73bd4a52010-10-05 11:24:23 +000012225# Check whether --enable-libtool-lock was given.
12226if test "${enable_libtool_lock+set}" = set; then :
12227 enableval=$enable_libtool_lock;
12228fi
12229
12230test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12231
12232# Some flags need to be propagated to the compiler or linker for good
12233# libtool support.
12234case $host in
12235ia64-*-hpux*)
12236 # Find out which ABI we are using.
12237 echo 'int i;' > conftest.$ac_ext
12238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12239 (eval $ac_compile) 2>&5
12240 ac_status=$?
12241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12242 test $ac_status = 0; }; then
12243 case `/usr/bin/file conftest.$ac_objext` in
12244 *ELF-32*)
12245 HPUX_IA64_MODE="32"
12246 ;;
12247 *ELF-64*)
12248 HPUX_IA64_MODE="64"
12249 ;;
12250 esac
12251 fi
12252 rm -rf conftest*
12253 ;;
12254*-*-irix6*)
12255 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012256 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12258 (eval $ac_compile) 2>&5
12259 ac_status=$?
12260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12261 test $ac_status = 0; }; then
12262 if test "$lt_cv_prog_gnu_ld" = yes; then
12263 case `/usr/bin/file conftest.$ac_objext` in
12264 *32-bit*)
12265 LD="${LD-ld} -melf32bsmip"
12266 ;;
12267 *N32*)
12268 LD="${LD-ld} -melf32bmipn32"
12269 ;;
12270 *64-bit*)
12271 LD="${LD-ld} -melf64bmip"
12272 ;;
12273 esac
12274 else
12275 case `/usr/bin/file conftest.$ac_objext` in
12276 *32-bit*)
12277 LD="${LD-ld} -32"
12278 ;;
12279 *N32*)
12280 LD="${LD-ld} -n32"
12281 ;;
12282 *64-bit*)
12283 LD="${LD-ld} -64"
12284 ;;
12285 esac
12286 fi
12287 fi
12288 rm -rf conftest*
12289 ;;
12290
12291x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12292s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12293 # Find out which ABI we are using.
12294 echo 'int i;' > conftest.$ac_ext
12295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12296 (eval $ac_compile) 2>&5
12297 ac_status=$?
12298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12299 test $ac_status = 0; }; then
12300 case `/usr/bin/file conftest.o` in
12301 *32-bit*)
12302 case $host in
12303 x86_64-*kfreebsd*-gnu)
12304 LD="${LD-ld} -m elf_i386_fbsd"
12305 ;;
12306 x86_64-*linux*)
12307 LD="${LD-ld} -m elf_i386"
12308 ;;
12309 ppc64-*linux*|powerpc64-*linux*)
12310 LD="${LD-ld} -m elf32ppclinux"
12311 ;;
12312 s390x-*linux*)
12313 LD="${LD-ld} -m elf_s390"
12314 ;;
12315 sparc64-*linux*)
12316 LD="${LD-ld} -m elf32_sparc"
12317 ;;
12318 esac
12319 ;;
12320 *64-bit*)
12321 case $host in
12322 x86_64-*kfreebsd*-gnu)
12323 LD="${LD-ld} -m elf_x86_64_fbsd"
12324 ;;
12325 x86_64-*linux*)
12326 LD="${LD-ld} -m elf_x86_64"
12327 ;;
12328 ppc*-*linux*|powerpc*-*linux*)
12329 LD="${LD-ld} -m elf64ppc"
12330 ;;
12331 s390*-*linux*|s390*-*tpf*)
12332 LD="${LD-ld} -m elf64_s390"
12333 ;;
12334 sparc*-*linux*)
12335 LD="${LD-ld} -m elf64_sparc"
12336 ;;
12337 esac
12338 ;;
12339 esac
12340 fi
12341 rm -rf conftest*
12342 ;;
12343
12344*-*-sco3.2v5*)
12345 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12346 SAVE_CFLAGS="$CFLAGS"
12347 CFLAGS="$CFLAGS -belf"
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12349$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012350if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012351 $as_echo_n "(cached) " >&6
12352else
12353 ac_ext=c
12354ac_cpp='$CPP $CPPFLAGS'
12355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12357ac_compiler_gnu=$ac_cv_c_compiler_gnu
12358
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360/* end confdefs.h. */
12361
12362int
12363main ()
12364{
12365
12366 ;
12367 return 0;
12368}
12369_ACEOF
12370if ac_fn_c_try_link "$LINENO"; then :
12371 lt_cv_cc_needs_belf=yes
12372else
12373 lt_cv_cc_needs_belf=no
12374fi
12375rm -f core conftest.err conftest.$ac_objext \
12376 conftest$ac_exeext conftest.$ac_ext
12377 ac_ext=c
12378ac_cpp='$CPP $CPPFLAGS'
12379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12381ac_compiler_gnu=$ac_cv_c_compiler_gnu
12382
12383fi
12384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12385$as_echo "$lt_cv_cc_needs_belf" >&6; }
12386 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12387 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12388 CFLAGS="$SAVE_CFLAGS"
12389 fi
12390 ;;
cristy99bd5232011-12-07 14:38:20 +000012391*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012392 # Find out which ABI we are using.
12393 echo 'int i;' > conftest.$ac_ext
12394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12395 (eval $ac_compile) 2>&5
12396 ac_status=$?
12397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12398 test $ac_status = 0; }; then
12399 case `/usr/bin/file conftest.o` in
12400 *64-bit*)
12401 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012402 yes*)
12403 case $host in
12404 i?86-*-solaris*)
12405 LD="${LD-ld} -m elf_x86_64"
12406 ;;
12407 sparc*-*-solaris*)
12408 LD="${LD-ld} -m elf64_sparc"
12409 ;;
12410 esac
12411 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12412 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12413 LD="${LD-ld}_sol2"
12414 fi
12415 ;;
cristy73bd4a52010-10-05 11:24:23 +000012416 *)
12417 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12418 LD="${LD-ld} -64"
12419 fi
12420 ;;
12421 esac
12422 ;;
12423 esac
12424 fi
12425 rm -rf conftest*
12426 ;;
12427esac
12428
12429need_locks="$enable_libtool_lock"
12430
cristyda16f162011-02-19 23:52:17 +000012431if test -n "$ac_tool_prefix"; then
12432 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12433set dummy ${ac_tool_prefix}mt; ac_word=$2
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435$as_echo_n "checking for $ac_word... " >&6; }
12436if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438else
12439 if test -n "$MANIFEST_TOOL"; then
12440 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12441else
12442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443for as_dir in $PATH
12444do
12445 IFS=$as_save_IFS
12446 test -z "$as_dir" && as_dir=.
12447 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012449 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12451 break 2
12452 fi
12453done
12454 done
12455IFS=$as_save_IFS
12456
12457fi
12458fi
12459MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12460if test -n "$MANIFEST_TOOL"; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12462$as_echo "$MANIFEST_TOOL" >&6; }
12463else
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465$as_echo "no" >&6; }
12466fi
12467
12468
12469fi
12470if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12471 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12472 # Extract the first word of "mt", so it can be a program name with args.
12473set dummy mt; ac_word=$2
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12475$as_echo_n "checking for $ac_word... " >&6; }
12476if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12477 $as_echo_n "(cached) " >&6
12478else
12479 if test -n "$ac_ct_MANIFEST_TOOL"; then
12480 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12481else
12482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483for as_dir in $PATH
12484do
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
12487 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012489 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 break 2
12492 fi
12493done
12494 done
12495IFS=$as_save_IFS
12496
12497fi
12498fi
12499ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12500if test -n "$ac_ct_MANIFEST_TOOL"; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12502$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12503else
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505$as_echo "no" >&6; }
12506fi
12507
12508 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12509 MANIFEST_TOOL=":"
12510 else
12511 case $cross_compiling:$ac_tool_warned in
12512yes:)
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12515ac_tool_warned=yes ;;
12516esac
12517 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12518 fi
12519else
12520 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12521fi
12522
12523test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12525$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12526if ${lt_cv_path_mainfest_tool+:} false; then :
12527 $as_echo_n "(cached) " >&6
12528else
12529 lt_cv_path_mainfest_tool=no
12530 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12531 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12532 cat conftest.err >&5
12533 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12534 lt_cv_path_mainfest_tool=yes
12535 fi
12536 rm -f conftest*
12537fi
12538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12539$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12540if test "x$lt_cv_path_mainfest_tool" != xyes; then
12541 MANIFEST_TOOL=:
12542fi
12543
12544
12545
12546
12547
cristy73bd4a52010-10-05 11:24:23 +000012548
12549 case $host_os in
12550 rhapsody* | darwin*)
12551 if test -n "$ac_tool_prefix"; then
12552 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12553set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012556if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012557 $as_echo_n "(cached) " >&6
12558else
12559 if test -n "$DSYMUTIL"; then
12560 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12561else
12562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563for as_dir in $PATH
12564do
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012569 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12571 break 2
12572 fi
12573done
12574 done
12575IFS=$as_save_IFS
12576
12577fi
12578fi
12579DSYMUTIL=$ac_cv_prog_DSYMUTIL
12580if test -n "$DSYMUTIL"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12582$as_echo "$DSYMUTIL" >&6; }
12583else
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585$as_echo "no" >&6; }
12586fi
12587
12588
12589fi
12590if test -z "$ac_cv_prog_DSYMUTIL"; then
12591 ac_ct_DSYMUTIL=$DSYMUTIL
12592 # Extract the first word of "dsymutil", so it can be a program name with args.
12593set dummy dsymutil; ac_word=$2
12594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012596if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012597 $as_echo_n "(cached) " >&6
12598else
12599 if test -n "$ac_ct_DSYMUTIL"; then
12600 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12601else
12602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603for as_dir in $PATH
12604do
12605 IFS=$as_save_IFS
12606 test -z "$as_dir" && as_dir=.
12607 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012609 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12611 break 2
12612 fi
12613done
12614 done
12615IFS=$as_save_IFS
12616
12617fi
12618fi
12619ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12620if test -n "$ac_ct_DSYMUTIL"; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12622$as_echo "$ac_ct_DSYMUTIL" >&6; }
12623else
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625$as_echo "no" >&6; }
12626fi
12627
12628 if test "x$ac_ct_DSYMUTIL" = x; then
12629 DSYMUTIL=":"
12630 else
12631 case $cross_compiling:$ac_tool_warned in
12632yes:)
12633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12635ac_tool_warned=yes ;;
12636esac
12637 DSYMUTIL=$ac_ct_DSYMUTIL
12638 fi
12639else
12640 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12641fi
12642
12643 if test -n "$ac_tool_prefix"; then
12644 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12645set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012648if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012649 $as_echo_n "(cached) " >&6
12650else
12651 if test -n "$NMEDIT"; then
12652 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12653else
12654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655for as_dir in $PATH
12656do
12657 IFS=$as_save_IFS
12658 test -z "$as_dir" && as_dir=.
12659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012661 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12663 break 2
12664 fi
12665done
12666 done
12667IFS=$as_save_IFS
12668
12669fi
12670fi
12671NMEDIT=$ac_cv_prog_NMEDIT
12672if test -n "$NMEDIT"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12674$as_echo "$NMEDIT" >&6; }
12675else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677$as_echo "no" >&6; }
12678fi
12679
12680
12681fi
12682if test -z "$ac_cv_prog_NMEDIT"; then
12683 ac_ct_NMEDIT=$NMEDIT
12684 # Extract the first word of "nmedit", so it can be a program name with args.
12685set dummy nmedit; ac_word=$2
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012688if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012689 $as_echo_n "(cached) " >&6
12690else
12691 if test -n "$ac_ct_NMEDIT"; then
12692 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12693else
12694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695for as_dir in $PATH
12696do
12697 IFS=$as_save_IFS
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012701 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703 break 2
12704 fi
12705done
12706 done
12707IFS=$as_save_IFS
12708
12709fi
12710fi
12711ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12712if test -n "$ac_ct_NMEDIT"; then
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12714$as_echo "$ac_ct_NMEDIT" >&6; }
12715else
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717$as_echo "no" >&6; }
12718fi
12719
12720 if test "x$ac_ct_NMEDIT" = x; then
12721 NMEDIT=":"
12722 else
12723 case $cross_compiling:$ac_tool_warned in
12724yes:)
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12727ac_tool_warned=yes ;;
12728esac
12729 NMEDIT=$ac_ct_NMEDIT
12730 fi
12731else
12732 NMEDIT="$ac_cv_prog_NMEDIT"
12733fi
12734
12735 if test -n "$ac_tool_prefix"; then
12736 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12737set dummy ${ac_tool_prefix}lipo; ac_word=$2
12738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12739$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012740if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012741 $as_echo_n "(cached) " >&6
12742else
12743 if test -n "$LIPO"; then
12744 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12745else
12746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12747for as_dir in $PATH
12748do
12749 IFS=$as_save_IFS
12750 test -z "$as_dir" && as_dir=.
12751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012753 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12755 break 2
12756 fi
12757done
12758 done
12759IFS=$as_save_IFS
12760
12761fi
12762fi
12763LIPO=$ac_cv_prog_LIPO
12764if test -n "$LIPO"; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12766$as_echo "$LIPO" >&6; }
12767else
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769$as_echo "no" >&6; }
12770fi
12771
12772
12773fi
12774if test -z "$ac_cv_prog_LIPO"; then
12775 ac_ct_LIPO=$LIPO
12776 # Extract the first word of "lipo", so it can be a program name with args.
12777set dummy lipo; ac_word=$2
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012780if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012781 $as_echo_n "(cached) " >&6
12782else
12783 if test -n "$ac_ct_LIPO"; then
12784 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12785else
12786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12787for as_dir in $PATH
12788do
12789 IFS=$as_save_IFS
12790 test -z "$as_dir" && as_dir=.
12791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012793 ac_cv_prog_ac_ct_LIPO="lipo"
12794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12795 break 2
12796 fi
12797done
12798 done
12799IFS=$as_save_IFS
12800
12801fi
12802fi
12803ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12804if test -n "$ac_ct_LIPO"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12806$as_echo "$ac_ct_LIPO" >&6; }
12807else
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809$as_echo "no" >&6; }
12810fi
12811
12812 if test "x$ac_ct_LIPO" = x; then
12813 LIPO=":"
12814 else
12815 case $cross_compiling:$ac_tool_warned in
12816yes:)
12817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12819ac_tool_warned=yes ;;
12820esac
12821 LIPO=$ac_ct_LIPO
12822 fi
12823else
12824 LIPO="$ac_cv_prog_LIPO"
12825fi
12826
12827 if test -n "$ac_tool_prefix"; then
12828 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12829set dummy ${ac_tool_prefix}otool; ac_word=$2
12830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012832if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012833 $as_echo_n "(cached) " >&6
12834else
12835 if test -n "$OTOOL"; then
12836 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12837else
12838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839for as_dir in $PATH
12840do
12841 IFS=$as_save_IFS
12842 test -z "$as_dir" && as_dir=.
12843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012845 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12847 break 2
12848 fi
12849done
12850 done
12851IFS=$as_save_IFS
12852
12853fi
12854fi
12855OTOOL=$ac_cv_prog_OTOOL
12856if test -n "$OTOOL"; then
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12858$as_echo "$OTOOL" >&6; }
12859else
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12861$as_echo "no" >&6; }
12862fi
12863
12864
12865fi
12866if test -z "$ac_cv_prog_OTOOL"; then
12867 ac_ct_OTOOL=$OTOOL
12868 # Extract the first word of "otool", so it can be a program name with args.
12869set dummy otool; ac_word=$2
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012872if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012873 $as_echo_n "(cached) " >&6
12874else
12875 if test -n "$ac_ct_OTOOL"; then
12876 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12877else
12878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879for as_dir in $PATH
12880do
12881 IFS=$as_save_IFS
12882 test -z "$as_dir" && as_dir=.
12883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012885 ac_cv_prog_ac_ct_OTOOL="otool"
12886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887 break 2
12888 fi
12889done
12890 done
12891IFS=$as_save_IFS
12892
12893fi
12894fi
12895ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12896if test -n "$ac_ct_OTOOL"; then
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12898$as_echo "$ac_ct_OTOOL" >&6; }
12899else
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12901$as_echo "no" >&6; }
12902fi
12903
12904 if test "x$ac_ct_OTOOL" = x; then
12905 OTOOL=":"
12906 else
12907 case $cross_compiling:$ac_tool_warned in
12908yes:)
12909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12911ac_tool_warned=yes ;;
12912esac
12913 OTOOL=$ac_ct_OTOOL
12914 fi
12915else
12916 OTOOL="$ac_cv_prog_OTOOL"
12917fi
12918
12919 if test -n "$ac_tool_prefix"; then
12920 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12921set dummy ${ac_tool_prefix}otool64; ac_word=$2
12922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012924if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012925 $as_echo_n "(cached) " >&6
12926else
12927 if test -n "$OTOOL64"; then
12928 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12929else
12930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931for as_dir in $PATH
12932do
12933 IFS=$as_save_IFS
12934 test -z "$as_dir" && as_dir=.
12935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012937 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12939 break 2
12940 fi
12941done
12942 done
12943IFS=$as_save_IFS
12944
12945fi
12946fi
12947OTOOL64=$ac_cv_prog_OTOOL64
12948if test -n "$OTOOL64"; then
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12950$as_echo "$OTOOL64" >&6; }
12951else
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953$as_echo "no" >&6; }
12954fi
12955
12956
12957fi
12958if test -z "$ac_cv_prog_OTOOL64"; then
12959 ac_ct_OTOOL64=$OTOOL64
12960 # Extract the first word of "otool64", so it can be a program name with args.
12961set dummy otool64; ac_word=$2
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012964if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012965 $as_echo_n "(cached) " >&6
12966else
12967 if test -n "$ac_ct_OTOOL64"; then
12968 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12969else
12970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12971for as_dir in $PATH
12972do
12973 IFS=$as_save_IFS
12974 test -z "$as_dir" && as_dir=.
12975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012977 ac_cv_prog_ac_ct_OTOOL64="otool64"
12978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12979 break 2
12980 fi
12981done
12982 done
12983IFS=$as_save_IFS
12984
12985fi
12986fi
12987ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12988if test -n "$ac_ct_OTOOL64"; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12990$as_echo "$ac_ct_OTOOL64" >&6; }
12991else
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993$as_echo "no" >&6; }
12994fi
12995
12996 if test "x$ac_ct_OTOOL64" = x; then
12997 OTOOL64=":"
12998 else
12999 case $cross_compiling:$ac_tool_warned in
13000yes:)
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13003ac_tool_warned=yes ;;
13004esac
13005 OTOOL64=$ac_ct_OTOOL64
13006 fi
13007else
13008 OTOOL64="$ac_cv_prog_OTOOL64"
13009fi
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
13036
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13038$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013039if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013040 $as_echo_n "(cached) " >&6
13041else
13042 lt_cv_apple_cc_single_mod=no
13043 if test -z "${LT_MULTI_MODULE}"; then
13044 # By default we will add the -single_module flag. You can override
13045 # by either setting the environment variable LT_MULTI_MODULE
13046 # non-empty at configure time, or by adding -multi_module to the
13047 # link flags.
13048 rm -rf libconftest.dylib*
13049 echo "int foo(void){return 1;}" > conftest.c
13050 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13051-dynamiclib -Wl,-single_module conftest.c" >&5
13052 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13053 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13054 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013055 # If there is a non-empty error log, and "single_module"
13056 # appears in it, assume the flag caused a linker warning
13057 if test -s conftest.err && $GREP single_module conftest.err; then
13058 cat conftest.err >&5
13059 # Otherwise, if the output was created with a 0 exit code from
13060 # the compiler, it worked.
13061 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013062 lt_cv_apple_cc_single_mod=yes
13063 else
13064 cat conftest.err >&5
13065 fi
13066 rm -rf libconftest.dylib*
13067 rm -f conftest.*
13068 fi
13069fi
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13071$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013072
cristy73bd4a52010-10-05 11:24:23 +000013073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13074$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013075if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013076 $as_echo_n "(cached) " >&6
13077else
13078 lt_cv_ld_exported_symbols_list=no
13079 save_LDFLAGS=$LDFLAGS
13080 echo "_main" > conftest.sym
13081 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083/* end confdefs.h. */
13084
13085int
13086main ()
13087{
13088
13089 ;
13090 return 0;
13091}
13092_ACEOF
13093if ac_fn_c_try_link "$LINENO"; then :
13094 lt_cv_ld_exported_symbols_list=yes
13095else
13096 lt_cv_ld_exported_symbols_list=no
13097fi
13098rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13100 LDFLAGS="$save_LDFLAGS"
13101
13102fi
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13104$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013105
cristy0c60a692010-11-04 01:09:47 +000013106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13107$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013108if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013109 $as_echo_n "(cached) " >&6
13110else
13111 lt_cv_ld_force_load=no
13112 cat > conftest.c << _LT_EOF
13113int forced_loaded() { return 2;}
13114_LT_EOF
13115 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13116 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13117 echo "$AR cru libconftest.a conftest.o" >&5
13118 $AR cru libconftest.a conftest.o 2>&5
13119 echo "$RANLIB libconftest.a" >&5
13120 $RANLIB libconftest.a 2>&5
13121 cat > conftest.c << _LT_EOF
13122int main() { return 0;}
13123_LT_EOF
13124 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13125 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13126 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013127 if test -s conftest.err && $GREP force_load conftest.err; then
13128 cat conftest.err >&5
13129 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013130 lt_cv_ld_force_load=yes
13131 else
13132 cat conftest.err >&5
13133 fi
13134 rm -f conftest.err libconftest.a conftest conftest.c
13135 rm -rf conftest.dSYM
13136
13137fi
13138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13139$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013140 case $host_os in
13141 rhapsody* | darwin1.[012])
13142 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13143 darwin1.*)
13144 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13145 darwin*) # darwin 5.x on
13146 # if running on 10.5 or later, the deployment target defaults
13147 # to the OS version, if on x86, and 10.4, the deployment
13148 # target defaults to 10.4. Don't you love it?
13149 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13150 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13151 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13152 10.[012]*)
13153 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13154 10.*)
13155 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13156 esac
13157 ;;
13158 esac
13159 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13160 _lt_dar_single_mod='$single_module'
13161 fi
13162 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13163 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13164 else
13165 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13166 fi
cristy0c60a692010-11-04 01:09:47 +000013167 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013168 _lt_dsymutil='~$DSYMUTIL $lib || :'
13169 else
13170 _lt_dsymutil=
13171 fi
13172 ;;
13173 esac
13174
13175for ac_header in dlfcn.h
13176do :
13177 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13178"
cristyda16f162011-02-19 23:52:17 +000013179if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013180 cat >>confdefs.h <<_ACEOF
13181#define HAVE_DLFCN_H 1
13182_ACEOF
13183
13184fi
13185
13186done
13187
13188
13189
cristy73bd4a52010-10-05 11:24:23 +000013190
cristyda16f162011-02-19 23:52:17 +000013191func_stripname_cnf ()
13192{
13193 case ${2} in
13194 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13195 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13196 esac
13197} # func_stripname_cnf
13198
13199
13200
cristy73bd4a52010-10-05 11:24:23 +000013201
13202
13203# Set options
13204enable_win32_dll=yes
13205
13206case $host in
cristy0c60a692010-11-04 01:09:47 +000013207*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013208 if test -n "$ac_tool_prefix"; then
13209 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13210set dummy ${ac_tool_prefix}as; ac_word=$2
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013213if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013214 $as_echo_n "(cached) " >&6
13215else
13216 if test -n "$AS"; then
13217 ac_cv_prog_AS="$AS" # Let the user override the test.
13218else
13219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220for as_dir in $PATH
13221do
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013226 ac_cv_prog_AS="${ac_tool_prefix}as"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228 break 2
13229 fi
13230done
13231 done
13232IFS=$as_save_IFS
13233
13234fi
13235fi
13236AS=$ac_cv_prog_AS
13237if test -n "$AS"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13239$as_echo "$AS" >&6; }
13240else
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242$as_echo "no" >&6; }
13243fi
13244
13245
13246fi
13247if test -z "$ac_cv_prog_AS"; then
13248 ac_ct_AS=$AS
13249 # Extract the first word of "as", so it can be a program name with args.
13250set dummy as; ac_word=$2
13251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13252$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013253if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013254 $as_echo_n "(cached) " >&6
13255else
13256 if test -n "$ac_ct_AS"; then
13257 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13258else
13259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260for as_dir in $PATH
13261do
13262 IFS=$as_save_IFS
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013266 ac_cv_prog_ac_ct_AS="as"
13267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13268 break 2
13269 fi
13270done
13271 done
13272IFS=$as_save_IFS
13273
13274fi
13275fi
13276ac_ct_AS=$ac_cv_prog_ac_ct_AS
13277if test -n "$ac_ct_AS"; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13279$as_echo "$ac_ct_AS" >&6; }
13280else
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282$as_echo "no" >&6; }
13283fi
13284
13285 if test "x$ac_ct_AS" = x; then
13286 AS="false"
13287 else
13288 case $cross_compiling:$ac_tool_warned in
13289yes:)
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13292ac_tool_warned=yes ;;
13293esac
13294 AS=$ac_ct_AS
13295 fi
13296else
13297 AS="$ac_cv_prog_AS"
13298fi
13299
13300 if test -n "$ac_tool_prefix"; then
13301 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13302set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013305if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013306 $as_echo_n "(cached) " >&6
13307else
13308 if test -n "$DLLTOOL"; then
13309 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13310else
13311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312for as_dir in $PATH
13313do
13314 IFS=$as_save_IFS
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013318 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320 break 2
13321 fi
13322done
13323 done
13324IFS=$as_save_IFS
13325
13326fi
13327fi
13328DLLTOOL=$ac_cv_prog_DLLTOOL
13329if test -n "$DLLTOOL"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13331$as_echo "$DLLTOOL" >&6; }
13332else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334$as_echo "no" >&6; }
13335fi
13336
13337
13338fi
13339if test -z "$ac_cv_prog_DLLTOOL"; then
13340 ac_ct_DLLTOOL=$DLLTOOL
13341 # Extract the first word of "dlltool", so it can be a program name with args.
13342set dummy dlltool; ac_word=$2
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13344$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013345if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013346 $as_echo_n "(cached) " >&6
13347else
13348 if test -n "$ac_ct_DLLTOOL"; then
13349 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13350else
13351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13352for as_dir in $PATH
13353do
13354 IFS=$as_save_IFS
13355 test -z "$as_dir" && as_dir=.
13356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013358 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13360 break 2
13361 fi
13362done
13363 done
13364IFS=$as_save_IFS
13365
13366fi
13367fi
13368ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13369if test -n "$ac_ct_DLLTOOL"; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13371$as_echo "$ac_ct_DLLTOOL" >&6; }
13372else
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13374$as_echo "no" >&6; }
13375fi
13376
13377 if test "x$ac_ct_DLLTOOL" = x; then
13378 DLLTOOL="false"
13379 else
13380 case $cross_compiling:$ac_tool_warned in
13381yes:)
13382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13384ac_tool_warned=yes ;;
13385esac
13386 DLLTOOL=$ac_ct_DLLTOOL
13387 fi
13388else
13389 DLLTOOL="$ac_cv_prog_DLLTOOL"
13390fi
13391
13392 if test -n "$ac_tool_prefix"; then
13393 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13394set dummy ${ac_tool_prefix}objdump; ac_word=$2
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013397if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013398 $as_echo_n "(cached) " >&6
13399else
13400 if test -n "$OBJDUMP"; then
13401 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13402else
13403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404for as_dir in $PATH
13405do
13406 IFS=$as_save_IFS
13407 test -z "$as_dir" && as_dir=.
13408 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013410 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13412 break 2
13413 fi
13414done
13415 done
13416IFS=$as_save_IFS
13417
13418fi
13419fi
13420OBJDUMP=$ac_cv_prog_OBJDUMP
13421if test -n "$OBJDUMP"; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13423$as_echo "$OBJDUMP" >&6; }
13424else
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426$as_echo "no" >&6; }
13427fi
13428
13429
13430fi
13431if test -z "$ac_cv_prog_OBJDUMP"; then
13432 ac_ct_OBJDUMP=$OBJDUMP
13433 # Extract the first word of "objdump", so it can be a program name with args.
13434set dummy objdump; ac_word=$2
13435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013437if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013438 $as_echo_n "(cached) " >&6
13439else
13440 if test -n "$ac_ct_OBJDUMP"; then
13441 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13442else
13443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13444for as_dir in $PATH
13445do
13446 IFS=$as_save_IFS
13447 test -z "$as_dir" && as_dir=.
13448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013450 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13452 break 2
13453 fi
13454done
13455 done
13456IFS=$as_save_IFS
13457
13458fi
13459fi
13460ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13461if test -n "$ac_ct_OBJDUMP"; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13463$as_echo "$ac_ct_OBJDUMP" >&6; }
13464else
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466$as_echo "no" >&6; }
13467fi
13468
13469 if test "x$ac_ct_OBJDUMP" = x; then
13470 OBJDUMP="false"
13471 else
13472 case $cross_compiling:$ac_tool_warned in
13473yes:)
13474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13476ac_tool_warned=yes ;;
13477esac
13478 OBJDUMP=$ac_ct_OBJDUMP
13479 fi
13480else
13481 OBJDUMP="$ac_cv_prog_OBJDUMP"
13482fi
13483
13484 ;;
13485esac
13486
13487test -z "$AS" && AS=as
13488
13489
13490
13491
13492
13493test -z "$DLLTOOL" && DLLTOOL=dlltool
13494
13495
13496
13497
13498
13499test -z "$OBJDUMP" && OBJDUMP=objdump
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509 # Check whether --enable-shared was given.
13510if test "${enable_shared+set}" = set; then :
13511 enableval=$enable_shared; p=${PACKAGE-default}
13512 case $enableval in
13513 yes) enable_shared=yes ;;
13514 no) enable_shared=no ;;
13515 *)
13516 enable_shared=no
13517 # Look at the argument we got. We use all the common list separators.
13518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13519 for pkg in $enableval; do
13520 IFS="$lt_save_ifs"
13521 if test "X$pkg" = "X$p"; then
13522 enable_shared=yes
13523 fi
13524 done
13525 IFS="$lt_save_ifs"
13526 ;;
13527 esac
13528else
13529 enable_shared=yes
13530fi
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540 # Check whether --enable-static was given.
13541if test "${enable_static+set}" = set; then :
13542 enableval=$enable_static; p=${PACKAGE-default}
13543 case $enableval in
13544 yes) enable_static=yes ;;
13545 no) enable_static=no ;;
13546 *)
13547 enable_static=no
13548 # Look at the argument we got. We use all the common list separators.
13549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13550 for pkg in $enableval; do
13551 IFS="$lt_save_ifs"
13552 if test "X$pkg" = "X$p"; then
13553 enable_static=yes
13554 fi
13555 done
13556 IFS="$lt_save_ifs"
13557 ;;
13558 esac
13559else
13560 enable_static=yes
13561fi
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572# Check whether --with-pic was given.
13573if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013574 withval=$with_pic; lt_p=${PACKAGE-default}
13575 case $withval in
13576 yes|no) pic_mode=$withval ;;
13577 *)
13578 pic_mode=default
13579 # Look at the argument we got. We use all the common list separators.
13580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13581 for lt_pkg in $withval; do
13582 IFS="$lt_save_ifs"
13583 if test "X$lt_pkg" = "X$lt_p"; then
13584 pic_mode=yes
13585 fi
13586 done
13587 IFS="$lt_save_ifs"
13588 ;;
13589 esac
cristy73bd4a52010-10-05 11:24:23 +000013590else
13591 pic_mode=default
13592fi
13593
13594
13595test -z "$pic_mode" && pic_mode=default
13596
13597
13598
13599
13600
13601
13602
13603 # Check whether --enable-fast-install was given.
13604if test "${enable_fast_install+set}" = set; then :
13605 enableval=$enable_fast_install; p=${PACKAGE-default}
13606 case $enableval in
13607 yes) enable_fast_install=yes ;;
13608 no) enable_fast_install=no ;;
13609 *)
13610 enable_fast_install=no
13611 # Look at the argument we got. We use all the common list separators.
13612 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13613 for pkg in $enableval; do
13614 IFS="$lt_save_ifs"
13615 if test "X$pkg" = "X$p"; then
13616 enable_fast_install=yes
13617 fi
13618 done
13619 IFS="$lt_save_ifs"
13620 ;;
13621 esac
13622else
13623 enable_fast_install=yes
13624fi
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636# This can be used to rebuild libtool when needed
13637LIBTOOL_DEPS="$ltmain"
13638
13639# Always use our own libtool.
13640LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
cristy0c60a692010-11-04 01:09:47 +000013666
cristy99bd5232011-12-07 14:38:20 +000013667
13668
13669
13670
cristy73bd4a52010-10-05 11:24:23 +000013671test -z "$LN_S" && LN_S="ln -s"
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686if test -n "${ZSH_VERSION+set}" ; then
13687 setopt NO_GLOB_SUBST
13688fi
13689
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13691$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013692if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013693 $as_echo_n "(cached) " >&6
13694else
13695 rm -f .libs 2>/dev/null
13696mkdir .libs 2>/dev/null
13697if test -d .libs; then
13698 lt_cv_objdir=.libs
13699else
13700 # MS-DOS does not allow filenames that begin with a dot.
13701 lt_cv_objdir=_libs
13702fi
13703rmdir .libs 2>/dev/null
13704fi
13705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13706$as_echo "$lt_cv_objdir" >&6; }
13707objdir=$lt_cv_objdir
13708
13709
13710
13711
13712
13713cat >>confdefs.h <<_ACEOF
13714#define LT_OBJDIR "$lt_cv_objdir/"
13715_ACEOF
13716
13717
13718
13719
cristy73bd4a52010-10-05 11:24:23 +000013720case $host_os in
13721aix3*)
13722 # AIX sometimes has problems with the GCC collect2 program. For some
13723 # reason, if we set the COLLECT_NAMES environment variable, the problems
13724 # vanish in a puff of smoke.
13725 if test "X${COLLECT_NAMES+set}" != Xset; then
13726 COLLECT_NAMES=
13727 export COLLECT_NAMES
13728 fi
13729 ;;
13730esac
13731
cristy73bd4a52010-10-05 11:24:23 +000013732# Global variables:
13733ofile=libtool
13734can_build_shared=yes
13735
13736# All known linkers require a `.a' archive for static linking (except MSVC,
13737# which needs '.lib').
13738libext=a
13739
13740with_gnu_ld="$lt_cv_prog_gnu_ld"
13741
13742old_CC="$CC"
13743old_CFLAGS="$CFLAGS"
13744
13745# Set sane defaults for various variables
13746test -z "$CC" && CC=cc
13747test -z "$LTCC" && LTCC=$CC
13748test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13749test -z "$LD" && LD=ld
13750test -z "$ac_objext" && ac_objext=o
13751
13752for cc_temp in $compiler""; do
13753 case $cc_temp in
13754 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13755 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13756 \-*) ;;
13757 *) break;;
13758 esac
13759done
cristy0c60a692010-11-04 01:09:47 +000013760cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013761
13762
13763# Only perform the check for file, if the check method requires it
13764test -z "$MAGIC_CMD" && MAGIC_CMD=file
13765case $deplibs_check_method in
13766file_magic*)
13767 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13769$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013770if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013771 $as_echo_n "(cached) " >&6
13772else
13773 case $MAGIC_CMD in
13774[\\/*] | ?:[\\/]*)
13775 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13776 ;;
13777*)
13778 lt_save_MAGIC_CMD="$MAGIC_CMD"
13779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13780 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13781 for ac_dir in $ac_dummy; do
13782 IFS="$lt_save_ifs"
13783 test -z "$ac_dir" && ac_dir=.
13784 if test -f $ac_dir/${ac_tool_prefix}file; then
13785 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13786 if test -n "$file_magic_test_file"; then
13787 case $deplibs_check_method in
13788 "file_magic "*)
13789 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13790 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13791 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13792 $EGREP "$file_magic_regex" > /dev/null; then
13793 :
13794 else
13795 cat <<_LT_EOF 1>&2
13796
13797*** Warning: the command libtool uses to detect shared libraries,
13798*** $file_magic_cmd, produces output that libtool cannot recognize.
13799*** The result is that libtool may fail to recognize shared libraries
13800*** as such. This will affect the creation of libtool libraries that
13801*** depend on shared libraries, but programs linked with such libtool
13802*** libraries will work regardless of this problem. Nevertheless, you
13803*** may want to report the problem to your system manager and/or to
13804*** bug-libtool@gnu.org
13805
13806_LT_EOF
13807 fi ;;
13808 esac
13809 fi
13810 break
13811 fi
13812 done
13813 IFS="$lt_save_ifs"
13814 MAGIC_CMD="$lt_save_MAGIC_CMD"
13815 ;;
13816esac
13817fi
13818
13819MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13820if test -n "$MAGIC_CMD"; then
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13822$as_echo "$MAGIC_CMD" >&6; }
13823else
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825$as_echo "no" >&6; }
13826fi
13827
13828
13829
13830
13831
13832if test -z "$lt_cv_path_MAGIC_CMD"; then
13833 if test -n "$ac_tool_prefix"; then
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13835$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013836if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013837 $as_echo_n "(cached) " >&6
13838else
13839 case $MAGIC_CMD in
13840[\\/*] | ?:[\\/]*)
13841 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13842 ;;
13843*)
13844 lt_save_MAGIC_CMD="$MAGIC_CMD"
13845 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13846 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13847 for ac_dir in $ac_dummy; do
13848 IFS="$lt_save_ifs"
13849 test -z "$ac_dir" && ac_dir=.
13850 if test -f $ac_dir/file; then
13851 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13852 if test -n "$file_magic_test_file"; then
13853 case $deplibs_check_method in
13854 "file_magic "*)
13855 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13856 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13857 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13858 $EGREP "$file_magic_regex" > /dev/null; then
13859 :
13860 else
13861 cat <<_LT_EOF 1>&2
13862
13863*** Warning: the command libtool uses to detect shared libraries,
13864*** $file_magic_cmd, produces output that libtool cannot recognize.
13865*** The result is that libtool may fail to recognize shared libraries
13866*** as such. This will affect the creation of libtool libraries that
13867*** depend on shared libraries, but programs linked with such libtool
13868*** libraries will work regardless of this problem. Nevertheless, you
13869*** may want to report the problem to your system manager and/or to
13870*** bug-libtool@gnu.org
13871
13872_LT_EOF
13873 fi ;;
13874 esac
13875 fi
13876 break
13877 fi
13878 done
13879 IFS="$lt_save_ifs"
13880 MAGIC_CMD="$lt_save_MAGIC_CMD"
13881 ;;
13882esac
13883fi
13884
13885MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13886if test -n "$MAGIC_CMD"; then
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13888$as_echo "$MAGIC_CMD" >&6; }
13889else
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13891$as_echo "no" >&6; }
13892fi
13893
13894
13895 else
13896 MAGIC_CMD=:
13897 fi
13898fi
13899
13900 fi
13901 ;;
13902esac
13903
13904# Use C for the default configuration in the libtool script
13905
13906lt_save_CC="$CC"
13907ac_ext=c
13908ac_cpp='$CPP $CPPFLAGS'
13909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13911ac_compiler_gnu=$ac_cv_c_compiler_gnu
13912
13913
13914# Source file extension for C test sources.
13915ac_ext=c
13916
13917# Object file extension for compiled C test sources.
13918objext=o
13919objext=$objext
13920
13921# Code to be used in simple compile tests
13922lt_simple_compile_test_code="int some_variable = 0;"
13923
13924# Code to be used in simple link tests
13925lt_simple_link_test_code='int main(){return(0);}'
13926
13927
13928
13929
13930
13931
13932
13933# If no C compiler was specified, use CC.
13934LTCC=${LTCC-"$CC"}
13935
13936# If no C compiler flags were specified, use CFLAGS.
13937LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13938
13939# Allow CC to be a program name with arguments.
13940compiler=$CC
13941
13942# Save the default compiler, since it gets overwritten when the other
13943# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13944compiler_DEFAULT=$CC
13945
13946# save warnings/boilerplate of simple test code
13947ac_outfile=conftest.$ac_objext
13948echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13949eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13950_lt_compiler_boilerplate=`cat conftest.err`
13951$RM conftest*
13952
13953ac_outfile=conftest.$ac_objext
13954echo "$lt_simple_link_test_code" >conftest.$ac_ext
13955eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13956_lt_linker_boilerplate=`cat conftest.err`
13957$RM -r conftest*
13958
13959
13960## CAVEAT EMPTOR:
13961## There is no encapsulation within the following macros, do not change
13962## the running order or otherwise move them around unless you know exactly
13963## what you are doing...
13964if test -n "$compiler"; then
13965
13966lt_prog_compiler_no_builtin_flag=
13967
13968if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013969 case $cc_basename in
13970 nvcc*)
13971 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13972 *)
13973 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13974 esac
cristy73bd4a52010-10-05 11:24:23 +000013975
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13977$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013978if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013979 $as_echo_n "(cached) " >&6
13980else
13981 lt_cv_prog_compiler_rtti_exceptions=no
13982 ac_outfile=conftest.$ac_objext
13983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13984 lt_compiler_flag="-fno-rtti -fno-exceptions"
13985 # Insert the option either (1) after the last *FLAGS variable, or
13986 # (2) before a word containing "conftest.", or (3) at the end.
13987 # Note that $ac_compile itself does not contain backslashes and begins
13988 # with a dollar sign (not a hyphen), so the echo should work correctly.
13989 # The option is referenced via a variable to avoid confusing sed.
13990 lt_compile=`echo "$ac_compile" | $SED \
13991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13993 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013994 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013995 (eval "$lt_compile" 2>conftest.err)
13996 ac_status=$?
13997 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013999 if (exit $ac_status) && test -s "$ac_outfile"; then
14000 # The compiler can only warn and ignore the option if not recognized
14001 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014002 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14004 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14005 lt_cv_prog_compiler_rtti_exceptions=yes
14006 fi
14007 fi
14008 $RM conftest*
14009
14010fi
14011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14012$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14013
14014if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14015 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14016else
14017 :
14018fi
14019
14020fi
14021
14022
14023
14024
14025
14026
14027 lt_prog_compiler_wl=
14028lt_prog_compiler_pic=
14029lt_prog_compiler_static=
14030
cristy73bd4a52010-10-05 11:24:23 +000014031
14032 if test "$GCC" = yes; then
14033 lt_prog_compiler_wl='-Wl,'
14034 lt_prog_compiler_static='-static'
14035
14036 case $host_os in
14037 aix*)
14038 # All AIX code is PIC.
14039 if test "$host_cpu" = ia64; then
14040 # AIX 5 now supports IA64 processor
14041 lt_prog_compiler_static='-Bstatic'
14042 fi
14043 ;;
14044
14045 amigaos*)
14046 case $host_cpu in
14047 powerpc)
14048 # see comment about AmigaOS4 .so support
14049 lt_prog_compiler_pic='-fPIC'
14050 ;;
14051 m68k)
14052 # FIXME: we need at least 68020 code to build shared libraries, but
14053 # adding the `-m68020' flag to GCC prevents building anything better,
14054 # like `-m68040'.
14055 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14056 ;;
14057 esac
14058 ;;
14059
14060 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14061 # PIC is the default for these OSes.
14062 ;;
14063
14064 mingw* | cygwin* | pw32* | os2* | cegcc*)
14065 # This hack is so that the source file can tell whether it is being
14066 # built for inclusion in a dll (and should export symbols for example).
14067 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14068 # (--disable-auto-import) libraries
14069 lt_prog_compiler_pic='-DDLL_EXPORT'
14070 ;;
14071
14072 darwin* | rhapsody*)
14073 # PIC is the default on this platform
14074 # Common symbols not allowed in MH_DYLIB files
14075 lt_prog_compiler_pic='-fno-common'
14076 ;;
14077
cristy0c60a692010-11-04 01:09:47 +000014078 haiku*)
14079 # PIC is the default for Haiku.
14080 # The "-static" flag exists, but is broken.
14081 lt_prog_compiler_static=
14082 ;;
14083
cristy73bd4a52010-10-05 11:24:23 +000014084 hpux*)
14085 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14086 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14087 # sets the default TLS model and affects inlining.
14088 case $host_cpu in
14089 hppa*64*)
14090 # +Z the default
14091 ;;
14092 *)
14093 lt_prog_compiler_pic='-fPIC'
14094 ;;
14095 esac
14096 ;;
14097
14098 interix[3-9]*)
14099 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14100 # Instead, we relocate shared libraries at runtime.
14101 ;;
14102
14103 msdosdjgpp*)
14104 # Just because we use GCC doesn't mean we suddenly get shared libraries
14105 # on systems that don't support them.
14106 lt_prog_compiler_can_build_shared=no
14107 enable_shared=no
14108 ;;
14109
14110 *nto* | *qnx*)
14111 # QNX uses GNU C++, but need to define -shared option too, otherwise
14112 # it will coredump.
14113 lt_prog_compiler_pic='-fPIC -shared'
14114 ;;
14115
14116 sysv4*MP*)
14117 if test -d /usr/nec; then
14118 lt_prog_compiler_pic=-Kconform_pic
14119 fi
14120 ;;
14121
14122 *)
14123 lt_prog_compiler_pic='-fPIC'
14124 ;;
14125 esac
cristy0c60a692010-11-04 01:09:47 +000014126
14127 case $cc_basename in
14128 nvcc*) # Cuda Compiler Driver 2.2
14129 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014130 if test -n "$lt_prog_compiler_pic"; then
14131 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14132 fi
cristy0c60a692010-11-04 01:09:47 +000014133 ;;
14134 esac
cristy73bd4a52010-10-05 11:24:23 +000014135 else
14136 # PORTME Check for flag to pass linker flags through the system compiler.
14137 case $host_os in
14138 aix*)
14139 lt_prog_compiler_wl='-Wl,'
14140 if test "$host_cpu" = ia64; then
14141 # AIX 5 now supports IA64 processor
14142 lt_prog_compiler_static='-Bstatic'
14143 else
14144 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14145 fi
14146 ;;
14147
14148 mingw* | cygwin* | pw32* | os2* | cegcc*)
14149 # This hack is so that the source file can tell whether it is being
14150 # built for inclusion in a dll (and should export symbols for example).
14151 lt_prog_compiler_pic='-DDLL_EXPORT'
14152 ;;
14153
14154 hpux9* | hpux10* | hpux11*)
14155 lt_prog_compiler_wl='-Wl,'
14156 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14157 # not for PA HP-UX.
14158 case $host_cpu in
14159 hppa*64*|ia64*)
14160 # +Z the default
14161 ;;
14162 *)
14163 lt_prog_compiler_pic='+Z'
14164 ;;
14165 esac
14166 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14167 lt_prog_compiler_static='${wl}-a ${wl}archive'
14168 ;;
14169
14170 irix5* | irix6* | nonstopux*)
14171 lt_prog_compiler_wl='-Wl,'
14172 # PIC (with -KPIC) is the default.
14173 lt_prog_compiler_static='-non_shared'
14174 ;;
14175
cristy0c60a692010-11-04 01:09:47 +000014176 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014177 case $cc_basename in
14178 # old Intel for x86_64 which still supported -KPIC.
14179 ecc*)
14180 lt_prog_compiler_wl='-Wl,'
14181 lt_prog_compiler_pic='-KPIC'
14182 lt_prog_compiler_static='-static'
14183 ;;
14184 # icc used to be incompatible with GCC.
14185 # ICC 10 doesn't accept -KPIC any more.
14186 icc* | ifort*)
14187 lt_prog_compiler_wl='-Wl,'
14188 lt_prog_compiler_pic='-fPIC'
14189 lt_prog_compiler_static='-static'
14190 ;;
14191 # Lahey Fortran 8.1.
14192 lf95*)
14193 lt_prog_compiler_wl='-Wl,'
14194 lt_prog_compiler_pic='--shared'
14195 lt_prog_compiler_static='--static'
14196 ;;
cristyda16f162011-02-19 23:52:17 +000014197 nagfor*)
14198 # NAG Fortran compiler
14199 lt_prog_compiler_wl='-Wl,-Wl,,'
14200 lt_prog_compiler_pic='-PIC'
14201 lt_prog_compiler_static='-Bstatic'
14202 ;;
cristy0c60a692010-11-04 01:09:47 +000014203 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014204 # Portland Group compilers (*not* the Pentium gcc compiler,
14205 # which looks to be a dead project)
14206 lt_prog_compiler_wl='-Wl,'
14207 lt_prog_compiler_pic='-fpic'
14208 lt_prog_compiler_static='-Bstatic'
14209 ;;
14210 ccc*)
14211 lt_prog_compiler_wl='-Wl,'
14212 # All Alpha code is PIC.
14213 lt_prog_compiler_static='-non_shared'
14214 ;;
cristy0c60a692010-11-04 01:09:47 +000014215 xl* | bgxl* | bgf* | mpixl*)
14216 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014217 lt_prog_compiler_wl='-Wl,'
14218 lt_prog_compiler_pic='-qpic'
14219 lt_prog_compiler_static='-qstaticlink'
14220 ;;
14221 *)
14222 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014223 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014224 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14225 lt_prog_compiler_pic='-KPIC'
14226 lt_prog_compiler_static='-Bstatic'
14227 lt_prog_compiler_wl=''
14228 ;;
cristy99bd5232011-12-07 14:38:20 +000014229 *Sun\ F* | *Sun*Fortran*)
14230 lt_prog_compiler_pic='-KPIC'
14231 lt_prog_compiler_static='-Bstatic'
14232 lt_prog_compiler_wl='-Qoption ld '
14233 ;;
cristy73bd4a52010-10-05 11:24:23 +000014234 *Sun\ C*)
14235 # Sun C 5.9
14236 lt_prog_compiler_pic='-KPIC'
14237 lt_prog_compiler_static='-Bstatic'
14238 lt_prog_compiler_wl='-Wl,'
14239 ;;
cristy99bd5232011-12-07 14:38:20 +000014240 *Intel*\ [CF]*Compiler*)
14241 lt_prog_compiler_wl='-Wl,'
14242 lt_prog_compiler_pic='-fPIC'
14243 lt_prog_compiler_static='-static'
14244 ;;
14245 *Portland\ Group*)
14246 lt_prog_compiler_wl='-Wl,'
14247 lt_prog_compiler_pic='-fpic'
14248 lt_prog_compiler_static='-Bstatic'
14249 ;;
cristy73bd4a52010-10-05 11:24:23 +000014250 esac
14251 ;;
14252 esac
14253 ;;
14254
14255 newsos6)
14256 lt_prog_compiler_pic='-KPIC'
14257 lt_prog_compiler_static='-Bstatic'
14258 ;;
14259
14260 *nto* | *qnx*)
14261 # QNX uses GNU C++, but need to define -shared option too, otherwise
14262 # it will coredump.
14263 lt_prog_compiler_pic='-fPIC -shared'
14264 ;;
14265
14266 osf3* | osf4* | osf5*)
14267 lt_prog_compiler_wl='-Wl,'
14268 # All OSF/1 code is PIC.
14269 lt_prog_compiler_static='-non_shared'
14270 ;;
14271
14272 rdos*)
14273 lt_prog_compiler_static='-non_shared'
14274 ;;
14275
14276 solaris*)
14277 lt_prog_compiler_pic='-KPIC'
14278 lt_prog_compiler_static='-Bstatic'
14279 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014280 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014281 lt_prog_compiler_wl='-Qoption ld ';;
14282 *)
14283 lt_prog_compiler_wl='-Wl,';;
14284 esac
14285 ;;
14286
14287 sunos4*)
14288 lt_prog_compiler_wl='-Qoption ld '
14289 lt_prog_compiler_pic='-PIC'
14290 lt_prog_compiler_static='-Bstatic'
14291 ;;
14292
14293 sysv4 | sysv4.2uw2* | sysv4.3*)
14294 lt_prog_compiler_wl='-Wl,'
14295 lt_prog_compiler_pic='-KPIC'
14296 lt_prog_compiler_static='-Bstatic'
14297 ;;
14298
14299 sysv4*MP*)
14300 if test -d /usr/nec ;then
14301 lt_prog_compiler_pic='-Kconform_pic'
14302 lt_prog_compiler_static='-Bstatic'
14303 fi
14304 ;;
14305
14306 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14307 lt_prog_compiler_wl='-Wl,'
14308 lt_prog_compiler_pic='-KPIC'
14309 lt_prog_compiler_static='-Bstatic'
14310 ;;
14311
14312 unicos*)
14313 lt_prog_compiler_wl='-Wl,'
14314 lt_prog_compiler_can_build_shared=no
14315 ;;
14316
14317 uts4*)
14318 lt_prog_compiler_pic='-pic'
14319 lt_prog_compiler_static='-Bstatic'
14320 ;;
14321
14322 *)
14323 lt_prog_compiler_can_build_shared=no
14324 ;;
14325 esac
14326 fi
14327
14328case $host_os in
14329 # For platforms which do not support PIC, -DPIC is meaningless:
14330 *djgpp*)
14331 lt_prog_compiler_pic=
14332 ;;
14333 *)
14334 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14335 ;;
14336esac
cristy73bd4a52010-10-05 11:24:23 +000014337
cristyda16f162011-02-19 23:52:17 +000014338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14339$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14340if ${lt_cv_prog_compiler_pic+:} false; then :
14341 $as_echo_n "(cached) " >&6
14342else
14343 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14344fi
14345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14346$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14347lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014348
14349#
14350# Check to make sure the PIC flag actually works.
14351#
14352if test -n "$lt_prog_compiler_pic"; then
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14354$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014355if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014356 $as_echo_n "(cached) " >&6
14357else
14358 lt_cv_prog_compiler_pic_works=no
14359 ac_outfile=conftest.$ac_objext
14360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14361 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14362 # Insert the option either (1) after the last *FLAGS variable, or
14363 # (2) before a word containing "conftest.", or (3) at the end.
14364 # Note that $ac_compile itself does not contain backslashes and begins
14365 # with a dollar sign (not a hyphen), so the echo should work correctly.
14366 # The option is referenced via a variable to avoid confusing sed.
14367 lt_compile=`echo "$ac_compile" | $SED \
14368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14370 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014371 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014372 (eval "$lt_compile" 2>conftest.err)
14373 ac_status=$?
14374 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014376 if (exit $ac_status) && test -s "$ac_outfile"; then
14377 # The compiler can only warn and ignore the option if not recognized
14378 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14381 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14382 lt_cv_prog_compiler_pic_works=yes
14383 fi
14384 fi
14385 $RM conftest*
14386
14387fi
14388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14389$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14390
14391if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14392 case $lt_prog_compiler_pic in
14393 "" | " "*) ;;
14394 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14395 esac
14396else
14397 lt_prog_compiler_pic=
14398 lt_prog_compiler_can_build_shared=no
14399fi
14400
14401fi
14402
14403
14404
14405
14406
14407
cristyda16f162011-02-19 23:52:17 +000014408
14409
14410
14411
14412
cristy73bd4a52010-10-05 11:24:23 +000014413#
14414# Check to make sure the static flag actually works.
14415#
14416wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14418$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014419if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014420 $as_echo_n "(cached) " >&6
14421else
14422 lt_cv_prog_compiler_static_works=no
14423 save_LDFLAGS="$LDFLAGS"
14424 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14425 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14426 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14427 # The linker can only warn and ignore the option if not recognized
14428 # So say no if there are warnings
14429 if test -s conftest.err; then
14430 # Append any errors to the config.log.
14431 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014432 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14434 if diff conftest.exp conftest.er2 >/dev/null; then
14435 lt_cv_prog_compiler_static_works=yes
14436 fi
14437 else
14438 lt_cv_prog_compiler_static_works=yes
14439 fi
14440 fi
14441 $RM -r conftest*
14442 LDFLAGS="$save_LDFLAGS"
14443
14444fi
14445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14446$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14447
14448if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14449 :
14450else
14451 lt_prog_compiler_static=
14452fi
14453
14454
14455
14456
14457
14458
14459
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14461$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014462if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014463 $as_echo_n "(cached) " >&6
14464else
14465 lt_cv_prog_compiler_c_o=no
14466 $RM -r conftest 2>/dev/null
14467 mkdir conftest
14468 cd conftest
14469 mkdir out
14470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14471
14472 lt_compiler_flag="-o out/conftest2.$ac_objext"
14473 # Insert the option either (1) after the last *FLAGS variable, or
14474 # (2) before a word containing "conftest.", or (3) at the end.
14475 # Note that $ac_compile itself does not contain backslashes and begins
14476 # with a dollar sign (not a hyphen), so the echo should work correctly.
14477 lt_compile=`echo "$ac_compile" | $SED \
14478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14480 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014482 (eval "$lt_compile" 2>out/conftest.err)
14483 ac_status=$?
14484 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14487 then
14488 # The compiler can only warn and ignore the option if not recognized
14489 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014490 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14493 lt_cv_prog_compiler_c_o=yes
14494 fi
14495 fi
14496 chmod u+w . 2>&5
14497 $RM conftest*
14498 # SGI C++ compiler will create directory out/ii_files/ for
14499 # template instantiation
14500 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14501 $RM out/* && rmdir out
14502 cd ..
14503 $RM -r conftest
14504 $RM conftest*
14505
14506fi
14507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14508$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14509
14510
14511
14512
14513
14514
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14516$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014517if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014518 $as_echo_n "(cached) " >&6
14519else
14520 lt_cv_prog_compiler_c_o=no
14521 $RM -r conftest 2>/dev/null
14522 mkdir conftest
14523 cd conftest
14524 mkdir out
14525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14526
14527 lt_compiler_flag="-o out/conftest2.$ac_objext"
14528 # Insert the option either (1) after the last *FLAGS variable, or
14529 # (2) before a word containing "conftest.", or (3) at the end.
14530 # Note that $ac_compile itself does not contain backslashes and begins
14531 # with a dollar sign (not a hyphen), so the echo should work correctly.
14532 lt_compile=`echo "$ac_compile" | $SED \
14533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14535 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014536 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014537 (eval "$lt_compile" 2>out/conftest.err)
14538 ac_status=$?
14539 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14542 then
14543 # The compiler can only warn and ignore the option if not recognized
14544 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014545 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14548 lt_cv_prog_compiler_c_o=yes
14549 fi
14550 fi
14551 chmod u+w . 2>&5
14552 $RM conftest*
14553 # SGI C++ compiler will create directory out/ii_files/ for
14554 # template instantiation
14555 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14556 $RM out/* && rmdir out
14557 cd ..
14558 $RM -r conftest
14559 $RM conftest*
14560
14561fi
14562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14563$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14564
14565
14566
14567
14568hard_links="nottested"
14569if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14570 # do not overwrite the value of need_locks provided by the user
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14572$as_echo_n "checking if we can lock with hard links... " >&6; }
14573 hard_links=yes
14574 $RM conftest*
14575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14576 touch conftest.a
14577 ln conftest.a conftest.b 2>&5 || hard_links=no
14578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14580$as_echo "$hard_links" >&6; }
14581 if test "$hard_links" = no; then
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14583$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14584 need_locks=warn
14585 fi
14586else
14587 need_locks=no
14588fi
14589
14590
14591
14592
14593
14594
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14596$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14597
14598 runpath_var=
14599 allow_undefined_flag=
14600 always_export_symbols=no
14601 archive_cmds=
14602 archive_expsym_cmds=
14603 compiler_needs_object=no
14604 enable_shared_with_static_runtimes=no
14605 export_dynamic_flag_spec=
14606 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14607 hardcode_automatic=no
14608 hardcode_direct=no
14609 hardcode_direct_absolute=no
14610 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014611 hardcode_libdir_separator=
14612 hardcode_minus_L=no
14613 hardcode_shlibpath_var=unsupported
14614 inherit_rpath=no
14615 link_all_deplibs=unknown
14616 module_cmds=
14617 module_expsym_cmds=
14618 old_archive_from_new_cmds=
14619 old_archive_from_expsyms_cmds=
14620 thread_safe_flag_spec=
14621 whole_archive_flag_spec=
14622 # include_expsyms should be a list of space-separated symbols to be *always*
14623 # included in the symbol list
14624 include_expsyms=
14625 # exclude_expsyms can be an extended regexp of symbols to exclude
14626 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14627 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14628 # as well as any symbol that contains `d'.
14629 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14630 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14631 # platforms (ab)use it in PIC code, but their linkers get confused if
14632 # the symbol is explicitly referenced. Since portable code cannot
14633 # rely on this symbol name, it's probably fine to never include it in
14634 # preloaded symbol tables.
14635 # Exclude shared library initialization/finalization symbols.
14636 extract_expsyms_cmds=
14637
14638 case $host_os in
14639 cygwin* | mingw* | pw32* | cegcc*)
14640 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14641 # When not using gcc, we currently assume that we are using
14642 # Microsoft Visual C++.
14643 if test "$GCC" != yes; then
14644 with_gnu_ld=no
14645 fi
14646 ;;
14647 interix*)
14648 # we just hope/assume this is gcc and not c89 (= MSVC++)
14649 with_gnu_ld=yes
14650 ;;
14651 openbsd*)
14652 with_gnu_ld=no
14653 ;;
14654 esac
14655
14656 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014657
14658 # On some targets, GNU ld is compatible enough with the native linker
14659 # that we're better off using the native interface for both.
14660 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014661 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014662 case $host_os in
14663 aix*)
14664 # The AIX port of GNU ld has always aspired to compatibility
14665 # with the native linker. However, as the warning in the GNU ld
14666 # block says, versions before 2.19.5* couldn't really create working
14667 # shared libraries, regardless of the interface used.
14668 case `$LD -v 2>&1` in
14669 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14670 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14671 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14672 *)
14673 lt_use_gnu_ld_interface=yes
14674 ;;
14675 esac
14676 ;;
14677 *)
14678 lt_use_gnu_ld_interface=yes
14679 ;;
14680 esac
14681 fi
14682
14683 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014684 # If archive_cmds runs LD, not CC, wlarc should be empty
14685 wlarc='${wl}'
14686
14687 # Set some defaults for GNU ld with shared library support. These
14688 # are reset later if shared libraries are not supported. Putting them
14689 # here allows them to be overridden if necessary.
14690 runpath_var=LD_RUN_PATH
14691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14692 export_dynamic_flag_spec='${wl}--export-dynamic'
14693 # ancient GNU ld didn't support --whole-archive et. al.
14694 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14695 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14696 else
14697 whole_archive_flag_spec=
14698 fi
14699 supports_anon_versioning=no
14700 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014701 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014702 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14703 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14704 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14705 *\ 2.11.*) ;; # other 2.11 versions
14706 *) supports_anon_versioning=yes ;;
14707 esac
14708
14709 # See if GNU ld supports shared libraries.
14710 case $host_os in
14711 aix[3-9]*)
14712 # On AIX/PPC, the GNU linker is very broken
14713 if test "$host_cpu" != ia64; then
14714 ld_shlibs=no
14715 cat <<_LT_EOF 1>&2
14716
cristy0c60a692010-11-04 01:09:47 +000014717*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014718*** to be unable to reliably create shared libraries on AIX.
14719*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014720*** really care for shared libraries, you may want to install binutils
14721*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14722*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014723
14724_LT_EOF
14725 fi
14726 ;;
14727
14728 amigaos*)
14729 case $host_cpu in
14730 powerpc)
14731 # see comment about AmigaOS4 .so support
14732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14733 archive_expsym_cmds=''
14734 ;;
14735 m68k)
14736 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)'
14737 hardcode_libdir_flag_spec='-L$libdir'
14738 hardcode_minus_L=yes
14739 ;;
14740 esac
14741 ;;
14742
14743 beos*)
14744 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14745 allow_undefined_flag=unsupported
14746 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14747 # support --undefined. This deserves some investigation. FIXME
14748 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14749 else
14750 ld_shlibs=no
14751 fi
14752 ;;
14753
14754 cygwin* | mingw* | pw32* | cegcc*)
14755 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14756 # as there is no search path for DLLs.
14757 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014758 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014759 allow_undefined_flag=unsupported
14760 always_export_symbols=no
14761 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014762 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'
14763 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 +000014764
14765 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14767 # If the export-symbols file already is a .def file (1st line
14768 # is EXPORTS), use it as is; otherwise, prepend...
14769 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14770 cp $export_symbols $output_objdir/$soname.def;
14771 else
14772 echo EXPORTS > $output_objdir/$soname.def;
14773 cat $export_symbols >> $output_objdir/$soname.def;
14774 fi~
14775 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14776 else
14777 ld_shlibs=no
14778 fi
14779 ;;
14780
cristy0c60a692010-11-04 01:09:47 +000014781 haiku*)
14782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14783 link_all_deplibs=yes
14784 ;;
14785
cristy73bd4a52010-10-05 11:24:23 +000014786 interix[3-9]*)
14787 hardcode_direct=no
14788 hardcode_shlibpath_var=no
14789 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14790 export_dynamic_flag_spec='${wl}-E'
14791 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14792 # Instead, shared libraries are loaded at an image base (0x10000000 by
14793 # default) and relocated if they conflict, which is a slow very memory
14794 # consuming and fragmenting process. To avoid this, we pick a random,
14795 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14796 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14797 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14798 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'
14799 ;;
14800
cristy0c60a692010-11-04 01:09:47 +000014801 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014802 tmp_diet=no
14803 if test "$host_os" = linux-dietlibc; then
14804 case $cc_basename in
14805 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14806 esac
14807 fi
14808 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14809 && test "$tmp_diet" = no
14810 then
cristyda16f162011-02-19 23:52:17 +000014811 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014812 tmp_sharedflag='-shared'
14813 case $cc_basename,$host_cpu in
14814 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014815 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 +000014816 tmp_addflag=' $pic_flag'
14817 ;;
cristy0c60a692010-11-04 01:09:47 +000014818 pgf77* | pgf90* | pgf95* | pgfortran*)
14819 # Portland Group f77 and f90 compilers
14820 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 +000014821 tmp_addflag=' $pic_flag -Mnomain' ;;
14822 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14823 tmp_addflag=' -i_dynamic' ;;
14824 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14825 tmp_addflag=' -i_dynamic -nofor_main' ;;
14826 ifc* | ifort*) # Intel Fortran compiler
14827 tmp_addflag=' -nofor_main' ;;
14828 lf95*) # Lahey Fortran 8.1
14829 whole_archive_flag_spec=
14830 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014831 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014832 tmp_sharedflag='-qmkshrobj'
14833 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014834 nvcc*) # Cuda Compiler Driver 2.2
14835 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'
14836 compiler_needs_object=yes
14837 ;;
cristy73bd4a52010-10-05 11:24:23 +000014838 esac
14839 case `$CC -V 2>&1 | sed 5q` in
14840 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014841 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 +000014842 compiler_needs_object=yes
14843 tmp_sharedflag='-G' ;;
14844 *Sun\ F*) # Sun Fortran 8.3
14845 tmp_sharedflag='-G' ;;
14846 esac
14847 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14848
14849 if test "x$supports_anon_versioning" = xyes; then
14850 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14851 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14852 echo "local: *; };" >> $output_objdir/$libname.ver~
14853 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14854 fi
14855
14856 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014857 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014858 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14859 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014861 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014862 if test "x$supports_anon_versioning" = xyes; then
14863 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14864 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14865 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014866 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014867 fi
14868 ;;
14869 esac
14870 else
14871 ld_shlibs=no
14872 fi
14873 ;;
14874
14875 netbsd*)
14876 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14877 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14878 wlarc=
14879 else
cristyda16f162011-02-19 23:52:17 +000014880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14881 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 +000014882 fi
14883 ;;
14884
14885 solaris*)
14886 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14887 ld_shlibs=no
14888 cat <<_LT_EOF 1>&2
14889
14890*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14891*** create shared libraries on Solaris systems. Therefore, libtool
14892*** is disabling shared libraries support. We urge you to upgrade GNU
14893*** binutils to release 2.9.1 or newer. Another option is to modify
14894*** your PATH or compiler configuration so that the native linker is
14895*** used, and then restart.
14896
14897_LT_EOF
14898 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014899 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14900 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 +000014901 else
14902 ld_shlibs=no
14903 fi
14904 ;;
14905
14906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14907 case `$LD -v 2>&1` in
14908 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14909 ld_shlibs=no
14910 cat <<_LT_EOF 1>&2
14911
14912*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14913*** reliably create shared libraries on SCO systems. Therefore, libtool
14914*** is disabling shared libraries support. We urge you to upgrade GNU
14915*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14916*** your PATH or compiler configuration so that the native linker is
14917*** used, and then restart.
14918
14919_LT_EOF
14920 ;;
14921 *)
14922 # For security reasons, it is highly recommended that you always
14923 # use absolute paths for naming shared libraries, and exclude the
14924 # DT_RUNPATH tag from executables and libraries. But doing so
14925 # requires that you compile everything twice, which is a pain.
14926 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14930 else
14931 ld_shlibs=no
14932 fi
14933 ;;
14934 esac
14935 ;;
14936
14937 sunos4*)
14938 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14939 wlarc=
14940 hardcode_direct=yes
14941 hardcode_shlibpath_var=no
14942 ;;
14943
14944 *)
14945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014946 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14947 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 +000014948 else
14949 ld_shlibs=no
14950 fi
14951 ;;
14952 esac
14953
14954 if test "$ld_shlibs" = no; then
14955 runpath_var=
14956 hardcode_libdir_flag_spec=
14957 export_dynamic_flag_spec=
14958 whole_archive_flag_spec=
14959 fi
14960 else
14961 # PORTME fill in a description of your system's linker (not GNU ld)
14962 case $host_os in
14963 aix3*)
14964 allow_undefined_flag=unsupported
14965 always_export_symbols=yes
14966 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'
14967 # Note: this linker hardcodes the directories in LIBPATH if there
14968 # are no directories specified by -L.
14969 hardcode_minus_L=yes
14970 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14971 # Neither direct hardcoding nor static linking is supported with a
14972 # broken collect2.
14973 hardcode_direct=unsupported
14974 fi
14975 ;;
14976
14977 aix[4-9]*)
14978 if test "$host_cpu" = ia64; then
14979 # On IA64, the linker does run time linking by default, so we don't
14980 # have to do anything special.
14981 aix_use_runtimelinking=no
14982 exp_sym_flag='-Bexport'
14983 no_entry_flag=""
14984 else
14985 # If we're using GNU nm, then we don't want the "-C" option.
14986 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014987 # Also, AIX nm treats weak defined symbols like other global
14988 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014989 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014990 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 +000014991 else
14992 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'
14993 fi
14994 aix_use_runtimelinking=no
14995
14996 # Test if we are trying to use run time linking or normal
14997 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14998 # need to do runtime linking.
14999 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15000 for ld_flag in $LDFLAGS; do
15001 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15002 aix_use_runtimelinking=yes
15003 break
15004 fi
15005 done
15006 ;;
15007 esac
15008
15009 exp_sym_flag='-bexport'
15010 no_entry_flag='-bnoentry'
15011 fi
15012
15013 # When large executables or shared objects are built, AIX ld can
15014 # have problems creating the table of contents. If linking a library
15015 # or program results in "error TOC overflow" add -mminimal-toc to
15016 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15017 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15018
15019 archive_cmds=''
15020 hardcode_direct=yes
15021 hardcode_direct_absolute=yes
15022 hardcode_libdir_separator=':'
15023 link_all_deplibs=yes
15024 file_list_spec='${wl}-f,'
15025
15026 if test "$GCC" = yes; then
15027 case $host_os in aix4.[012]|aix4.[012].*)
15028 # We only want to do this on AIX 4.2 and lower, the check
15029 # below for broken collect2 doesn't work under 4.3+
15030 collect2name=`${CC} -print-prog-name=collect2`
15031 if test -f "$collect2name" &&
15032 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15033 then
15034 # We have reworked collect2
15035 :
15036 else
15037 # We have old collect2
15038 hardcode_direct=unsupported
15039 # It fails to find uninstalled libraries when the uninstalled
15040 # path is not listed in the libpath. Setting hardcode_minus_L
15041 # to unsupported forces relinking
15042 hardcode_minus_L=yes
15043 hardcode_libdir_flag_spec='-L$libdir'
15044 hardcode_libdir_separator=
15045 fi
15046 ;;
15047 esac
15048 shared_flag='-shared'
15049 if test "$aix_use_runtimelinking" = yes; then
15050 shared_flag="$shared_flag "'${wl}-G'
15051 fi
15052 else
15053 # not using gcc
15054 if test "$host_cpu" = ia64; then
15055 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15056 # chokes on -Wl,-G. The following line is correct:
15057 shared_flag='-G'
15058 else
15059 if test "$aix_use_runtimelinking" = yes; then
15060 shared_flag='${wl}-G'
15061 else
15062 shared_flag='${wl}-bM:SRE'
15063 fi
15064 fi
15065 fi
15066
15067 export_dynamic_flag_spec='${wl}-bexpall'
15068 # It seems that -bexpall does not export symbols beginning with
15069 # underscore (_), so it is better to generate a list of symbols to export.
15070 always_export_symbols=yes
15071 if test "$aix_use_runtimelinking" = yes; then
15072 # Warning - without using the other runtime loading flags (-brtl),
15073 # -berok will link without error, but may produce a broken library.
15074 allow_undefined_flag='-berok'
15075 # Determine the default libpath from the value encoded in an
15076 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015077 if test "${lt_cv_aix_libpath+set}" = set; then
15078 aix_libpath=$lt_cv_aix_libpath
15079else
15080 if ${lt_cv_aix_libpath_+:} false; then :
15081 $as_echo_n "(cached) " >&6
15082else
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015084/* end confdefs.h. */
15085
15086int
15087main ()
15088{
15089
15090 ;
15091 return 0;
15092}
15093_ACEOF
15094if ac_fn_c_try_link "$LINENO"; then :
15095
cristyda16f162011-02-19 23:52:17 +000015096 lt_aix_libpath_sed='
15097 /Import File Strings/,/^$/ {
15098 /^0/ {
15099 s/^0 *\([^ ]*\) *$/\1/
15100 p
15101 }
15102 }'
15103 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15104 # Check for a 64-bit object if we didn't find anything.
15105 if test -z "$lt_cv_aix_libpath_"; then
15106 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15107 fi
cristy73bd4a52010-10-05 11:24:23 +000015108fi
15109rm -f core conftest.err conftest.$ac_objext \
15110 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015111 if test -z "$lt_cv_aix_libpath_"; then
15112 lt_cv_aix_libpath_="/usr/lib:/lib"
15113 fi
15114
15115fi
15116
15117 aix_libpath=$lt_cv_aix_libpath_
15118fi
cristy73bd4a52010-10-05 11:24:23 +000015119
15120 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015121 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 +000015122 else
15123 if test "$host_cpu" = ia64; then
15124 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15125 allow_undefined_flag="-z nodefs"
15126 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"
15127 else
15128 # Determine the default libpath from the value encoded in an
15129 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015130 if test "${lt_cv_aix_libpath+set}" = set; then
15131 aix_libpath=$lt_cv_aix_libpath
15132else
15133 if ${lt_cv_aix_libpath_+:} false; then :
15134 $as_echo_n "(cached) " >&6
15135else
15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015137/* end confdefs.h. */
15138
15139int
15140main ()
15141{
15142
15143 ;
15144 return 0;
15145}
15146_ACEOF
15147if ac_fn_c_try_link "$LINENO"; then :
15148
cristyda16f162011-02-19 23:52:17 +000015149 lt_aix_libpath_sed='
15150 /Import File Strings/,/^$/ {
15151 /^0/ {
15152 s/^0 *\([^ ]*\) *$/\1/
15153 p
15154 }
15155 }'
15156 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15157 # Check for a 64-bit object if we didn't find anything.
15158 if test -z "$lt_cv_aix_libpath_"; then
15159 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15160 fi
cristy73bd4a52010-10-05 11:24:23 +000015161fi
15162rm -f core conftest.err conftest.$ac_objext \
15163 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015164 if test -z "$lt_cv_aix_libpath_"; then
15165 lt_cv_aix_libpath_="/usr/lib:/lib"
15166 fi
15167
15168fi
15169
15170 aix_libpath=$lt_cv_aix_libpath_
15171fi
cristy73bd4a52010-10-05 11:24:23 +000015172
15173 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15174 # Warning - without using the other run time loading flags,
15175 # -berok will link without error, but may produce a broken library.
15176 no_undefined_flag=' ${wl}-bernotok'
15177 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015178 if test "$with_gnu_ld" = yes; then
15179 # We only use this code for GNU lds that support --whole-archive.
15180 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15181 else
15182 # Exported symbols can be pulled into shared objects from archives
15183 whole_archive_flag_spec='$convenience'
15184 fi
cristy73bd4a52010-10-05 11:24:23 +000015185 archive_cmds_need_lc=yes
15186 # This is similar to how AIX traditionally builds its shared libraries.
15187 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'
15188 fi
15189 fi
15190 ;;
15191
15192 amigaos*)
15193 case $host_cpu in
15194 powerpc)
15195 # see comment about AmigaOS4 .so support
15196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15197 archive_expsym_cmds=''
15198 ;;
15199 m68k)
15200 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)'
15201 hardcode_libdir_flag_spec='-L$libdir'
15202 hardcode_minus_L=yes
15203 ;;
15204 esac
15205 ;;
15206
15207 bsdi[45]*)
15208 export_dynamic_flag_spec=-rdynamic
15209 ;;
15210
15211 cygwin* | mingw* | pw32* | cegcc*)
15212 # When not using gcc, we currently assume that we are using
15213 # Microsoft Visual C++.
15214 # hardcode_libdir_flag_spec is actually meaningless, as there is
15215 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015216 case $cc_basename in
15217 cl*)
15218 # Native MSVC
15219 hardcode_libdir_flag_spec=' '
15220 allow_undefined_flag=unsupported
15221 always_export_symbols=yes
15222 file_list_spec='@'
15223 # Tell ltmain to make .lib files, not .a files.
15224 libext=lib
15225 # Tell ltmain to make .dll files, not .so files.
15226 shrext_cmds=".dll"
15227 # FIXME: Setting linknames here is a bad hack.
15228 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15229 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15230 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15231 else
15232 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15233 fi~
15234 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15235 linknames='
15236 # The linker will not automatically build a static lib if we build a DLL.
15237 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15238 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015239 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015240 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15241 # Don't use ranlib
15242 old_postinstall_cmds='chmod 644 $oldlib'
15243 postlink_cmds='lt_outputfile="@OUTPUT@"~
15244 lt_tool_outputfile="@TOOL_OUTPUT@"~
15245 case $lt_outputfile in
15246 *.exe|*.EXE) ;;
15247 *)
15248 lt_outputfile="$lt_outputfile.exe"
15249 lt_tool_outputfile="$lt_tool_outputfile.exe"
15250 ;;
15251 esac~
15252 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15253 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15254 $RM "$lt_outputfile.manifest";
15255 fi'
15256 ;;
15257 *)
15258 # Assume MSVC wrapper
15259 hardcode_libdir_flag_spec=' '
15260 allow_undefined_flag=unsupported
15261 # Tell ltmain to make .lib files, not .a files.
15262 libext=lib
15263 # Tell ltmain to make .dll files, not .so files.
15264 shrext_cmds=".dll"
15265 # FIXME: Setting linknames here is a bad hack.
15266 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15267 # The linker will automatically build a .lib file if we build a DLL.
15268 old_archive_from_new_cmds='true'
15269 # FIXME: Should let the user specify the lib program.
15270 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15271 enable_shared_with_static_runtimes=yes
15272 ;;
15273 esac
cristy73bd4a52010-10-05 11:24:23 +000015274 ;;
15275
15276 darwin* | rhapsody*)
15277
15278
15279 archive_cmds_need_lc=no
15280 hardcode_direct=no
15281 hardcode_automatic=yes
15282 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015283 if test "$lt_cv_ld_force_load" = "yes"; then
15284 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 +000015285
cristy0c60a692010-11-04 01:09:47 +000015286 else
15287 whole_archive_flag_spec=''
15288 fi
cristy73bd4a52010-10-05 11:24:23 +000015289 link_all_deplibs=yes
15290 allow_undefined_flag="$_lt_dar_allow_undefined"
15291 case $cc_basename in
15292 ifort*) _lt_dar_can_shared=yes ;;
15293 *) _lt_dar_can_shared=$GCC ;;
15294 esac
15295 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015296 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015297 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15298 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15299 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}"
15300 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}"
15301
15302 else
15303 ld_shlibs=no
15304 fi
15305
15306 ;;
15307
15308 dgux*)
15309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15310 hardcode_libdir_flag_spec='-L$libdir'
15311 hardcode_shlibpath_var=no
15312 ;;
15313
cristy73bd4a52010-10-05 11:24:23 +000015314 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15315 # support. Future versions do this automatically, but an explicit c++rt0.o
15316 # does not break anything, and helps significantly (at the cost of a little
15317 # extra space).
15318 freebsd2.2*)
15319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15320 hardcode_libdir_flag_spec='-R$libdir'
15321 hardcode_direct=yes
15322 hardcode_shlibpath_var=no
15323 ;;
15324
15325 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015326 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15328 hardcode_direct=yes
15329 hardcode_minus_L=yes
15330 hardcode_shlibpath_var=no
15331 ;;
15332
15333 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15334 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015335 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015336 hardcode_libdir_flag_spec='-R$libdir'
15337 hardcode_direct=yes
15338 hardcode_shlibpath_var=no
15339 ;;
15340
15341 hpux9*)
15342 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015343 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 +000015344 else
15345 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'
15346 fi
15347 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15348 hardcode_libdir_separator=:
15349 hardcode_direct=yes
15350
15351 # hardcode_minus_L: Not really in the search PATH,
15352 # but as the default location of the library.
15353 hardcode_minus_L=yes
15354 export_dynamic_flag_spec='${wl}-E'
15355 ;;
15356
15357 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015358 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015359 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 +000015360 else
15361 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15362 fi
15363 if test "$with_gnu_ld" = no; then
15364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015365 hardcode_libdir_separator=:
15366 hardcode_direct=yes
15367 hardcode_direct_absolute=yes
15368 export_dynamic_flag_spec='${wl}-E'
15369 # hardcode_minus_L: Not really in the search PATH,
15370 # but as the default location of the library.
15371 hardcode_minus_L=yes
15372 fi
15373 ;;
15374
15375 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015376 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015377 case $host_cpu in
15378 hppa*64*)
15379 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15380 ;;
15381 ia64*)
cristyda16f162011-02-19 23:52:17 +000015382 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015383 ;;
15384 *)
cristyda16f162011-02-19 23:52:17 +000015385 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 +000015386 ;;
15387 esac
15388 else
15389 case $host_cpu in
15390 hppa*64*)
15391 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15392 ;;
15393 ia64*)
15394 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15395 ;;
15396 *)
cristy0c60a692010-11-04 01:09:47 +000015397
15398 # Older versions of the 11.00 compiler do not understand -b yet
15399 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15401$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015402if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015403 $as_echo_n "(cached) " >&6
15404else
15405 lt_cv_prog_compiler__b=no
15406 save_LDFLAGS="$LDFLAGS"
15407 LDFLAGS="$LDFLAGS -b"
15408 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15409 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15410 # The linker can only warn and ignore the option if not recognized
15411 # So say no if there are warnings
15412 if test -s conftest.err; then
15413 # Append any errors to the config.log.
15414 cat conftest.err 1>&5
15415 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15417 if diff conftest.exp conftest.er2 >/dev/null; then
15418 lt_cv_prog_compiler__b=yes
15419 fi
15420 else
15421 lt_cv_prog_compiler__b=yes
15422 fi
15423 fi
15424 $RM -r conftest*
15425 LDFLAGS="$save_LDFLAGS"
15426
15427fi
15428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15429$as_echo "$lt_cv_prog_compiler__b" >&6; }
15430
15431if test x"$lt_cv_prog_compiler__b" = xyes; then
15432 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15433else
15434 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15435fi
15436
cristy73bd4a52010-10-05 11:24:23 +000015437 ;;
15438 esac
15439 fi
15440 if test "$with_gnu_ld" = no; then
15441 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15442 hardcode_libdir_separator=:
15443
15444 case $host_cpu in
15445 hppa*64*|ia64*)
15446 hardcode_direct=no
15447 hardcode_shlibpath_var=no
15448 ;;
15449 *)
15450 hardcode_direct=yes
15451 hardcode_direct_absolute=yes
15452 export_dynamic_flag_spec='${wl}-E'
15453
15454 # hardcode_minus_L: Not really in the search PATH,
15455 # but as the default location of the library.
15456 hardcode_minus_L=yes
15457 ;;
15458 esac
15459 fi
15460 ;;
15461
15462 irix5* | irix6* | nonstopux*)
15463 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015464 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 +000015465 # Try to use the -exported_symbol ld option, if it does not
15466 # work, assume that -exports_file does not work either and
15467 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015468 # This should be the same for all languages, so no per-tag cache variable.
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15470$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15471if ${lt_cv_irix_exported_symbol+:} false; then :
15472 $as_echo_n "(cached) " >&6
15473else
15474 save_LDFLAGS="$LDFLAGS"
15475 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015477/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015478int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015479_ACEOF
15480if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015481 lt_cv_irix_exported_symbol=yes
15482else
15483 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015484fi
15485rm -f core conftest.err conftest.$ac_objext \
15486 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015487 LDFLAGS="$save_LDFLAGS"
15488fi
15489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15490$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15491 if test "$lt_cv_irix_exported_symbol" = yes; then
15492 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'
15493 fi
cristy73bd4a52010-10-05 11:24:23 +000015494 else
cristy0c60a692010-11-04 01:09:47 +000015495 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'
15496 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 +000015497 fi
15498 archive_cmds_need_lc='no'
15499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15500 hardcode_libdir_separator=:
15501 inherit_rpath=yes
15502 link_all_deplibs=yes
15503 ;;
15504
15505 netbsd*)
15506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15508 else
15509 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15510 fi
15511 hardcode_libdir_flag_spec='-R$libdir'
15512 hardcode_direct=yes
15513 hardcode_shlibpath_var=no
15514 ;;
15515
15516 newsos6)
15517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15518 hardcode_direct=yes
15519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15520 hardcode_libdir_separator=:
15521 hardcode_shlibpath_var=no
15522 ;;
15523
15524 *nto* | *qnx*)
15525 ;;
15526
15527 openbsd*)
15528 if test -f /usr/libexec/ld.so; then
15529 hardcode_direct=yes
15530 hardcode_shlibpath_var=no
15531 hardcode_direct_absolute=yes
15532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15534 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15535 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15536 export_dynamic_flag_spec='${wl}-E'
15537 else
15538 case $host_os in
15539 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15541 hardcode_libdir_flag_spec='-R$libdir'
15542 ;;
15543 *)
15544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15545 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15546 ;;
15547 esac
15548 fi
15549 else
15550 ld_shlibs=no
15551 fi
15552 ;;
15553
15554 os2*)
15555 hardcode_libdir_flag_spec='-L$libdir'
15556 hardcode_minus_L=yes
15557 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015558 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 +000015559 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15560 ;;
15561
15562 osf3*)
15563 if test "$GCC" = yes; then
15564 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015565 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 +000015566 else
15567 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015568 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 +000015569 fi
15570 archive_cmds_need_lc='no'
15571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15572 hardcode_libdir_separator=:
15573 ;;
15574
15575 osf4* | osf5*) # as osf3* with the addition of -msym flag
15576 if test "$GCC" = yes; then
15577 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015578 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 +000015579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15580 else
15581 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015582 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 +000015583 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 +000015584 $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 +000015585
15586 # Both c and cxx compiler support -rpath directly
15587 hardcode_libdir_flag_spec='-rpath $libdir'
15588 fi
15589 archive_cmds_need_lc='no'
15590 hardcode_libdir_separator=:
15591 ;;
15592
15593 solaris*)
15594 no_undefined_flag=' -z defs'
15595 if test "$GCC" = yes; then
15596 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015597 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 +000015598 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 +000015599 $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 +000015600 else
15601 case `$CC -V 2>&1` in
15602 *"Compilers 5.0"*)
15603 wlarc=''
15604 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15605 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15606 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15607 ;;
15608 *)
15609 wlarc='${wl}'
15610 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15612 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15613 ;;
15614 esac
15615 fi
15616 hardcode_libdir_flag_spec='-R$libdir'
15617 hardcode_shlibpath_var=no
15618 case $host_os in
15619 solaris2.[0-5] | solaris2.[0-5].*) ;;
15620 *)
15621 # The compiler driver will combine and reorder linker options,
15622 # but understands `-z linker_flag'. GCC discards it without `$wl',
15623 # but is careful enough not to reorder.
15624 # Supported since Solaris 2.6 (maybe 2.5.1?)
15625 if test "$GCC" = yes; then
15626 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15627 else
15628 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15629 fi
15630 ;;
15631 esac
15632 link_all_deplibs=yes
15633 ;;
15634
15635 sunos4*)
15636 if test "x$host_vendor" = xsequent; then
15637 # Use $CC to link under sequent, because it throws in some extra .o
15638 # files that make .init and .fini sections work.
15639 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15640 else
15641 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15642 fi
15643 hardcode_libdir_flag_spec='-L$libdir'
15644 hardcode_direct=yes
15645 hardcode_minus_L=yes
15646 hardcode_shlibpath_var=no
15647 ;;
15648
15649 sysv4)
15650 case $host_vendor in
15651 sni)
15652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15653 hardcode_direct=yes # is this really true???
15654 ;;
15655 siemens)
15656 ## LD is ld it makes a PLAMLIB
15657 ## CC just makes a GrossModule.
15658 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15659 reload_cmds='$CC -r -o $output$reload_objs'
15660 hardcode_direct=no
15661 ;;
15662 motorola)
15663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15664 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15665 ;;
15666 esac
15667 runpath_var='LD_RUN_PATH'
15668 hardcode_shlibpath_var=no
15669 ;;
15670
15671 sysv4.3*)
15672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673 hardcode_shlibpath_var=no
15674 export_dynamic_flag_spec='-Bexport'
15675 ;;
15676
15677 sysv4*MP*)
15678 if test -d /usr/nec; then
15679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680 hardcode_shlibpath_var=no
15681 runpath_var=LD_RUN_PATH
15682 hardcode_runpath_var=yes
15683 ld_shlibs=yes
15684 fi
15685 ;;
15686
15687 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15688 no_undefined_flag='${wl}-z,text'
15689 archive_cmds_need_lc=no
15690 hardcode_shlibpath_var=no
15691 runpath_var='LD_RUN_PATH'
15692
15693 if test "$GCC" = yes; then
15694 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15695 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15696 else
15697 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15698 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15699 fi
15700 ;;
15701
15702 sysv5* | sco3.2v5* | sco5v6*)
15703 # Note: We can NOT use -z defs as we might desire, because we do not
15704 # link with -lc, and that would cause any symbols used from libc to
15705 # always be unresolved, which means just about no library would
15706 # ever link correctly. If we're not using GNU ld we use -z text
15707 # though, which does catch some bad symbols but isn't as heavy-handed
15708 # as -z defs.
15709 no_undefined_flag='${wl}-z,text'
15710 allow_undefined_flag='${wl}-z,nodefs'
15711 archive_cmds_need_lc=no
15712 hardcode_shlibpath_var=no
15713 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15714 hardcode_libdir_separator=':'
15715 link_all_deplibs=yes
15716 export_dynamic_flag_spec='${wl}-Bexport'
15717 runpath_var='LD_RUN_PATH'
15718
15719 if test "$GCC" = yes; then
15720 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15721 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15722 else
15723 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15725 fi
15726 ;;
15727
15728 uts4*)
15729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15730 hardcode_libdir_flag_spec='-L$libdir'
15731 hardcode_shlibpath_var=no
15732 ;;
15733
15734 *)
15735 ld_shlibs=no
15736 ;;
15737 esac
15738
15739 if test x$host_vendor = xsni; then
15740 case $host in
15741 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15742 export_dynamic_flag_spec='${wl}-Blargedynsym'
15743 ;;
15744 esac
15745 fi
15746 fi
15747
15748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15749$as_echo "$ld_shlibs" >&6; }
15750test "$ld_shlibs" = no && can_build_shared=no
15751
15752with_gnu_ld=$with_gnu_ld
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768#
15769# Do we need to explicitly link libc?
15770#
15771case "x$archive_cmds_need_lc" in
15772x|xyes)
15773 # Assume -lc should be added
15774 archive_cmds_need_lc=yes
15775
15776 if test "$enable_shared" = yes && test "$GCC" = yes; then
15777 case $archive_cmds in
15778 *'~'*)
15779 # FIXME: we may have to deal with multi-command sequences.
15780 ;;
15781 '$CC '*)
15782 # Test whether the compiler implicitly links with -lc since on some
15783 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15784 # to ld, don't add -lc before -lgcc.
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15786$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015787if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015788 $as_echo_n "(cached) " >&6
15789else
15790 $RM conftest*
15791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015792
cristy0c60a692010-11-04 01:09:47 +000015793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015794 (eval $ac_compile) 2>&5
15795 ac_status=$?
15796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15797 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015798 soname=conftest
15799 lib=conftest
15800 libobjs=conftest.$ac_objext
15801 deplibs=
15802 wl=$lt_prog_compiler_wl
15803 pic_flag=$lt_prog_compiler_pic
15804 compiler_flags=-v
15805 linker_flags=-v
15806 verstring=
15807 output_objdir=.
15808 libname=conftest
15809 lt_save_allow_undefined_flag=$allow_undefined_flag
15810 allow_undefined_flag=
15811 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 +000015812 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15813 ac_status=$?
15814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15815 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015816 then
15817 lt_cv_archive_cmds_need_lc=no
15818 else
15819 lt_cv_archive_cmds_need_lc=yes
15820 fi
15821 allow_undefined_flag=$lt_save_allow_undefined_flag
15822 else
15823 cat conftest.err 1>&5
15824 fi
15825 $RM conftest*
15826
15827fi
15828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15829$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15830 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015831 ;;
15832 esac
15833 fi
15834 ;;
15835esac
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
15986
15987
cristy73bd4a52010-10-05 11:24:23 +000015988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15989$as_echo_n "checking dynamic linker characteristics... " >&6; }
15990
15991if test "$GCC" = yes; then
15992 case $host_os in
15993 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15994 *) lt_awk_arg="/^libraries:/" ;;
15995 esac
cristy0c60a692010-11-04 01:09:47 +000015996 case $host_os in
15997 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15998 *) lt_sed_strip_eq="s,=/,/,g" ;;
15999 esac
16000 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16001 case $lt_search_path_spec in
16002 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016003 # if the path contains ";" then we assume it to be the separator
16004 # otherwise default to the standard path separator (i.e. ":") - it is
16005 # assumed that no part of a normal pathname contains ";" but that should
16006 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016007 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16008 ;;
16009 *)
16010 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16011 ;;
16012 esac
cristy73bd4a52010-10-05 11:24:23 +000016013 # Ok, now we have the path, separated by spaces, we can step through it
16014 # and add multilib dir if necessary.
16015 lt_tmp_lt_search_path_spec=
16016 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16017 for lt_sys_path in $lt_search_path_spec; do
16018 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16019 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16020 else
16021 test -d "$lt_sys_path" && \
16022 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16023 fi
16024 done
cristy0c60a692010-11-04 01:09:47 +000016025 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016026BEGIN {RS=" "; FS="/|\n";} {
16027 lt_foo="";
16028 lt_count=0;
16029 for (lt_i = NF; lt_i > 0; lt_i--) {
16030 if ($lt_i != "" && $lt_i != ".") {
16031 if ($lt_i == "..") {
16032 lt_count++;
16033 } else {
16034 if (lt_count == 0) {
16035 lt_foo="/" $lt_i lt_foo;
16036 } else {
16037 lt_count--;
16038 }
16039 }
16040 }
16041 }
16042 if (lt_foo != "") { lt_freq[lt_foo]++; }
16043 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16044}'`
cristy0c60a692010-11-04 01:09:47 +000016045 # AWK program above erroneously prepends '/' to C:/dos/paths
16046 # for these hosts.
16047 case $host_os in
16048 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16049 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16050 esac
16051 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016052else
16053 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16054fi
16055library_names_spec=
16056libname_spec='lib$name'
16057soname_spec=
16058shrext_cmds=".so"
16059postinstall_cmds=
16060postuninstall_cmds=
16061finish_cmds=
16062finish_eval=
16063shlibpath_var=
16064shlibpath_overrides_runpath=unknown
16065version_type=none
16066dynamic_linker="$host_os ld.so"
16067sys_lib_dlsearch_path_spec="/lib /usr/lib"
16068need_lib_prefix=unknown
16069hardcode_into_libs=no
16070
16071# when you set need_version to no, make sure it does not cause -set_version
16072# flags to be left without arguments
16073need_version=unknown
16074
16075case $host_os in
16076aix3*)
cristy99bd5232011-12-07 14:38:20 +000016077 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16079 shlibpath_var=LIBPATH
16080
16081 # AIX 3 has no versioning support, so we append a major version to the name.
16082 soname_spec='${libname}${release}${shared_ext}$major'
16083 ;;
16084
16085aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016086 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016087 need_lib_prefix=no
16088 need_version=no
16089 hardcode_into_libs=yes
16090 if test "$host_cpu" = ia64; then
16091 # AIX 5 supports IA64
16092 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16093 shlibpath_var=LD_LIBRARY_PATH
16094 else
16095 # With GCC up to 2.95.x, collect2 would create an import file
16096 # for dependence libraries. The import file would start with
16097 # the line `#! .'. This would cause the generated library to
16098 # depend on `.', always an invalid library. This was fixed in
16099 # development snapshots of GCC prior to 3.0.
16100 case $host_os in
16101 aix4 | aix4.[01] | aix4.[01].*)
16102 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16103 echo ' yes '
16104 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16105 :
16106 else
16107 can_build_shared=no
16108 fi
16109 ;;
16110 esac
16111 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16112 # soname into executable. Probably we can add versioning support to
16113 # collect2, so additional links can be useful in future.
16114 if test "$aix_use_runtimelinking" = yes; then
16115 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16116 # instead of lib<name>.a to let people know that these are not
16117 # typical AIX shared libraries.
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119 else
16120 # We preserve .a as extension for shared libraries through AIX4.2
16121 # and later when we are not doing run time linking.
16122 library_names_spec='${libname}${release}.a $libname.a'
16123 soname_spec='${libname}${release}${shared_ext}$major'
16124 fi
16125 shlibpath_var=LIBPATH
16126 fi
16127 ;;
16128
16129amigaos*)
16130 case $host_cpu in
16131 powerpc)
16132 # Since July 2007 AmigaOS4 officially supports .so libraries.
16133 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135 ;;
16136 m68k)
16137 library_names_spec='$libname.ixlibrary $libname.a'
16138 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016139 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 +000016140 ;;
16141 esac
16142 ;;
16143
16144beos*)
16145 library_names_spec='${libname}${shared_ext}'
16146 dynamic_linker="$host_os ld.so"
16147 shlibpath_var=LIBRARY_PATH
16148 ;;
16149
16150bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016151 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016152 need_version=no
16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16154 soname_spec='${libname}${release}${shared_ext}$major'
16155 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16158 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16159 # the default ld.so.conf also contains /usr/contrib/lib and
16160 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16161 # libtool to hard-code these into programs
16162 ;;
16163
16164cygwin* | mingw* | pw32* | cegcc*)
16165 version_type=windows
16166 shrext_cmds=".dll"
16167 need_version=no
16168 need_lib_prefix=no
16169
cristyda16f162011-02-19 23:52:17 +000016170 case $GCC,$cc_basename in
16171 yes,*)
16172 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016173 library_names_spec='$libname.dll.a'
16174 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16175 postinstall_cmds='base_file=`basename \${file}`~
16176 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16177 dldir=$destdir/`dirname \$dlpath`~
16178 test -d \$dldir || mkdir -p \$dldir~
16179 $install_prog $dir/$dlname \$dldir/$dlname~
16180 chmod a+x \$dldir/$dlname~
16181 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16182 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16183 fi'
16184 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16185 dlpath=$dir/\$dldll~
16186 $RM \$dlpath'
16187 shlibpath_overrides_runpath=yes
16188
16189 case $host_os in
16190 cygwin*)
16191 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16192 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016193
16194 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016195 ;;
16196 mingw* | cegcc*)
16197 # MinGW DLLs use traditional 'lib' prefix
16198 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016199 ;;
16200 pw32*)
16201 # pw32 DLLs use 'pw' prefix rather than 'lib'
16202 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16203 ;;
16204 esac
cristyda16f162011-02-19 23:52:17 +000016205 dynamic_linker='Win32 ld.exe'
16206 ;;
16207
16208 *,cl*)
16209 # Native MSVC
16210 libname_spec='$name'
16211 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16212 library_names_spec='${libname}.dll.lib'
16213
16214 case $build_os in
16215 mingw*)
16216 sys_lib_search_path_spec=
16217 lt_save_ifs=$IFS
16218 IFS=';'
16219 for lt_path in $LIB
16220 do
16221 IFS=$lt_save_ifs
16222 # Let DOS variable expansion print the short 8.3 style file name.
16223 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16224 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16225 done
16226 IFS=$lt_save_ifs
16227 # Convert to MSYS style.
16228 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16229 ;;
16230 cygwin*)
16231 # Convert to unix form, then to dos form, then back to unix form
16232 # but this time dos style (no spaces!) so that the unix form looks
16233 # like /cygdrive/c/PROGRA~1:/cygdr...
16234 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16235 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16236 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16237 ;;
16238 *)
16239 sys_lib_search_path_spec="$LIB"
16240 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16241 # It is most probably a Windows format PATH.
16242 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16243 else
16244 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16245 fi
16246 # FIXME: find the short name or the path components, as spaces are
16247 # common. (e.g. "Program Files" -> "PROGRA~1")
16248 ;;
16249 esac
16250
16251 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16252 postinstall_cmds='base_file=`basename \${file}`~
16253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16254 dldir=$destdir/`dirname \$dlpath`~
16255 test -d \$dldir || mkdir -p \$dldir~
16256 $install_prog $dir/$dlname \$dldir/$dlname'
16257 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16258 dlpath=$dir/\$dldll~
16259 $RM \$dlpath'
16260 shlibpath_overrides_runpath=yes
16261 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016262 ;;
16263
16264 *)
cristyda16f162011-02-19 23:52:17 +000016265 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016266 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016267 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016268 ;;
16269 esac
cristy73bd4a52010-10-05 11:24:23 +000016270 # FIXME: first we should search . and the directory the executable is in
16271 shlibpath_var=PATH
16272 ;;
16273
16274darwin* | rhapsody*)
16275 dynamic_linker="$host_os dyld"
16276 version_type=darwin
16277 need_lib_prefix=no
16278 need_version=no
16279 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16280 soname_spec='${libname}${release}${major}$shared_ext'
16281 shlibpath_overrides_runpath=yes
16282 shlibpath_var=DYLD_LIBRARY_PATH
16283 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16284
16285 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16286 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16287 ;;
16288
16289dgux*)
cristy99bd5232011-12-07 14:38:20 +000016290 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016291 need_lib_prefix=no
16292 need_version=no
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 shlibpath_var=LD_LIBRARY_PATH
16296 ;;
16297
cristy73bd4a52010-10-05 11:24:23 +000016298freebsd* | dragonfly*)
16299 # DragonFly does not have aout. When/if they implement a new
16300 # versioning mechanism, adjust this.
16301 if test -x /usr/bin/objformat; then
16302 objformat=`/usr/bin/objformat`
16303 else
16304 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016305 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016306 *) objformat=elf ;;
16307 esac
16308 fi
16309 version_type=freebsd-$objformat
16310 case $version_type in
16311 freebsd-elf*)
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16313 need_version=no
16314 need_lib_prefix=no
16315 ;;
16316 freebsd-*)
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16318 need_version=yes
16319 ;;
16320 esac
16321 shlibpath_var=LD_LIBRARY_PATH
16322 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016323 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016324 shlibpath_overrides_runpath=yes
16325 ;;
16326 freebsd3.[01]* | freebsdelf3.[01]*)
16327 shlibpath_overrides_runpath=yes
16328 hardcode_into_libs=yes
16329 ;;
16330 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16331 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16332 shlibpath_overrides_runpath=no
16333 hardcode_into_libs=yes
16334 ;;
16335 *) # from 4.6 on, and DragonFly
16336 shlibpath_overrides_runpath=yes
16337 hardcode_into_libs=yes
16338 ;;
16339 esac
16340 ;;
16341
16342gnu*)
cristy99bd5232011-12-07 14:38:20 +000016343 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016344 need_lib_prefix=no
16345 need_version=no
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016349 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016350 hardcode_into_libs=yes
16351 ;;
16352
cristy0c60a692010-11-04 01:09:47 +000016353haiku*)
cristy99bd5232011-12-07 14:38:20 +000016354 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016355 need_lib_prefix=no
16356 need_version=no
16357 dynamic_linker="$host_os runtime_loader"
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16359 soname_spec='${libname}${release}${shared_ext}$major'
16360 shlibpath_var=LIBRARY_PATH
16361 shlibpath_overrides_runpath=yes
16362 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16363 hardcode_into_libs=yes
16364 ;;
16365
cristy73bd4a52010-10-05 11:24:23 +000016366hpux9* | hpux10* | hpux11*)
16367 # Give a soname corresponding to the major version so that dld.sl refuses to
16368 # link against other versions.
16369 version_type=sunos
16370 need_lib_prefix=no
16371 need_version=no
16372 case $host_cpu in
16373 ia64*)
16374 shrext_cmds='.so'
16375 hardcode_into_libs=yes
16376 dynamic_linker="$host_os dld.so"
16377 shlibpath_var=LD_LIBRARY_PATH
16378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380 soname_spec='${libname}${release}${shared_ext}$major'
16381 if test "X$HPUX_IA64_MODE" = X32; then
16382 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16383 else
16384 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16385 fi
16386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16387 ;;
16388 hppa*64*)
16389 shrext_cmds='.sl'
16390 hardcode_into_libs=yes
16391 dynamic_linker="$host_os dld.sl"
16392 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395 soname_spec='${libname}${release}${shared_ext}$major'
16396 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16398 ;;
16399 *)
16400 shrext_cmds='.sl'
16401 dynamic_linker="$host_os dld.sl"
16402 shlibpath_var=SHLIB_PATH
16403 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16405 soname_spec='${libname}${release}${shared_ext}$major'
16406 ;;
16407 esac
cristy0c60a692010-11-04 01:09:47 +000016408 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016409 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016410 # or fails outright, so override atomically:
16411 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016412 ;;
16413
16414interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016415 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016416 need_lib_prefix=no
16417 need_version=no
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16419 soname_spec='${libname}${release}${shared_ext}$major'
16420 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16421 shlibpath_var=LD_LIBRARY_PATH
16422 shlibpath_overrides_runpath=no
16423 hardcode_into_libs=yes
16424 ;;
16425
16426irix5* | irix6* | nonstopux*)
16427 case $host_os in
16428 nonstopux*) version_type=nonstopux ;;
16429 *)
16430 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016431 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016432 else
16433 version_type=irix
16434 fi ;;
16435 esac
16436 need_lib_prefix=no
16437 need_version=no
16438 soname_spec='${libname}${release}${shared_ext}$major'
16439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16440 case $host_os in
16441 irix5* | nonstopux*)
16442 libsuff= shlibsuff=
16443 ;;
16444 *)
16445 case $LD in # libtool.m4 will add one of these switches to LD
16446 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16447 libsuff= shlibsuff= libmagic=32-bit;;
16448 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16449 libsuff=32 shlibsuff=N32 libmagic=N32;;
16450 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16451 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16452 *) libsuff= shlibsuff= libmagic=never-match;;
16453 esac
16454 ;;
16455 esac
16456 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16457 shlibpath_overrides_runpath=no
16458 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16459 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16460 hardcode_into_libs=yes
16461 ;;
16462
16463# No shared lib support for Linux oldld, aout, or coff.
16464linux*oldld* | linux*aout* | linux*coff*)
16465 dynamic_linker=no
16466 ;;
16467
cristy99bd5232011-12-07 14:38:20 +000016468# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016469linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016470 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016471 need_lib_prefix=no
16472 need_version=no
16473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474 soname_spec='${libname}${release}${shared_ext}$major'
16475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16476 shlibpath_var=LD_LIBRARY_PATH
16477 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016478
cristy73bd4a52010-10-05 11:24:23 +000016479 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016480 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016481 $as_echo_n "(cached) " >&6
16482else
16483 lt_cv_shlibpath_overrides_runpath=no
16484 save_LDFLAGS=$LDFLAGS
16485 save_libdir=$libdir
16486 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16487 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016489/* end confdefs.h. */
16490
16491int
16492main ()
16493{
16494
16495 ;
16496 return 0;
16497}
16498_ACEOF
16499if ac_fn_c_try_link "$LINENO"; then :
16500 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016501 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016502fi
16503fi
16504rm -f core conftest.err conftest.$ac_objext \
16505 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016506 LDFLAGS=$save_LDFLAGS
16507 libdir=$save_libdir
16508
16509fi
16510
16511 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016512
16513 # This implies no fast_install, which is unacceptable.
16514 # Some rework will be needed to allow for fast_install
16515 # before this can be enabled.
16516 hardcode_into_libs=yes
16517
16518 # Add ABI-specific directories to the system library path.
16519 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16520
16521 # Append ld.so.conf contents to the search path
16522 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016523 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 +000016524 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016525
cristy73bd4a52010-10-05 11:24:23 +000016526 fi
16527
16528 # We used to test for /lib/ld.so.1 and disable shared libraries on
16529 # powerpc, because MkLinux only supported shared libraries with the
16530 # GNU dynamic linker. Since this was broken with cross compilers,
16531 # most powerpc-linux boxes support dynamic linking these days and
16532 # people can always --disable-shared, the test was removed, and we
16533 # assume the GNU/Linux dynamic linker is in use.
16534 dynamic_linker='GNU/Linux ld.so'
16535 ;;
16536
16537netbsd*)
16538 version_type=sunos
16539 need_lib_prefix=no
16540 need_version=no
16541 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16544 dynamic_linker='NetBSD (a.out) ld.so'
16545 else
16546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16547 soname_spec='${libname}${release}${shared_ext}$major'
16548 dynamic_linker='NetBSD ld.elf_so'
16549 fi
16550 shlibpath_var=LD_LIBRARY_PATH
16551 shlibpath_overrides_runpath=yes
16552 hardcode_into_libs=yes
16553 ;;
16554
16555newsos6)
cristy99bd5232011-12-07 14:38:20 +000016556 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16558 shlibpath_var=LD_LIBRARY_PATH
16559 shlibpath_overrides_runpath=yes
16560 ;;
16561
16562*nto* | *qnx*)
16563 version_type=qnx
16564 need_lib_prefix=no
16565 need_version=no
16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567 soname_spec='${libname}${release}${shared_ext}$major'
16568 shlibpath_var=LD_LIBRARY_PATH
16569 shlibpath_overrides_runpath=no
16570 hardcode_into_libs=yes
16571 dynamic_linker='ldqnx.so'
16572 ;;
16573
16574openbsd*)
16575 version_type=sunos
16576 sys_lib_dlsearch_path_spec="/usr/lib"
16577 need_lib_prefix=no
16578 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16579 case $host_os in
16580 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16581 *) need_version=no ;;
16582 esac
16583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16585 shlibpath_var=LD_LIBRARY_PATH
16586 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16587 case $host_os in
16588 openbsd2.[89] | openbsd2.[89].*)
16589 shlibpath_overrides_runpath=no
16590 ;;
16591 *)
16592 shlibpath_overrides_runpath=yes
16593 ;;
16594 esac
16595 else
16596 shlibpath_overrides_runpath=yes
16597 fi
16598 ;;
16599
16600os2*)
16601 libname_spec='$name'
16602 shrext_cmds=".dll"
16603 need_lib_prefix=no
16604 library_names_spec='$libname${shared_ext} $libname.a'
16605 dynamic_linker='OS/2 ld.exe'
16606 shlibpath_var=LIBPATH
16607 ;;
16608
16609osf3* | osf4* | osf5*)
16610 version_type=osf
16611 need_lib_prefix=no
16612 need_version=no
16613 soname_spec='${libname}${release}${shared_ext}$major'
16614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16615 shlibpath_var=LD_LIBRARY_PATH
16616 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16617 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16618 ;;
16619
16620rdos*)
16621 dynamic_linker=no
16622 ;;
16623
16624solaris*)
cristy99bd5232011-12-07 14:38:20 +000016625 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016626 need_lib_prefix=no
16627 need_version=no
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16629 soname_spec='${libname}${release}${shared_ext}$major'
16630 shlibpath_var=LD_LIBRARY_PATH
16631 shlibpath_overrides_runpath=yes
16632 hardcode_into_libs=yes
16633 # ldd complains unless libraries are executable
16634 postinstall_cmds='chmod +x $lib'
16635 ;;
16636
16637sunos4*)
16638 version_type=sunos
16639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16640 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16641 shlibpath_var=LD_LIBRARY_PATH
16642 shlibpath_overrides_runpath=yes
16643 if test "$with_gnu_ld" = yes; then
16644 need_lib_prefix=no
16645 fi
16646 need_version=yes
16647 ;;
16648
16649sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016650 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16652 soname_spec='${libname}${release}${shared_ext}$major'
16653 shlibpath_var=LD_LIBRARY_PATH
16654 case $host_vendor in
16655 sni)
16656 shlibpath_overrides_runpath=no
16657 need_lib_prefix=no
16658 runpath_var=LD_RUN_PATH
16659 ;;
16660 siemens)
16661 need_lib_prefix=no
16662 ;;
16663 motorola)
16664 need_lib_prefix=no
16665 need_version=no
16666 shlibpath_overrides_runpath=no
16667 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16668 ;;
16669 esac
16670 ;;
16671
16672sysv4*MP*)
16673 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016674 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016675 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16676 soname_spec='$libname${shared_ext}.$major'
16677 shlibpath_var=LD_LIBRARY_PATH
16678 fi
16679 ;;
16680
16681sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16682 version_type=freebsd-elf
16683 need_lib_prefix=no
16684 need_version=no
16685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16686 soname_spec='${libname}${release}${shared_ext}$major'
16687 shlibpath_var=LD_LIBRARY_PATH
16688 shlibpath_overrides_runpath=yes
16689 hardcode_into_libs=yes
16690 if test "$with_gnu_ld" = yes; then
16691 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16692 else
16693 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16694 case $host_os in
16695 sco3.2v5*)
16696 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16697 ;;
16698 esac
16699 fi
16700 sys_lib_dlsearch_path_spec='/usr/lib'
16701 ;;
16702
16703tpf*)
16704 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016705 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016706 need_lib_prefix=no
16707 need_version=no
16708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709 shlibpath_var=LD_LIBRARY_PATH
16710 shlibpath_overrides_runpath=no
16711 hardcode_into_libs=yes
16712 ;;
16713
16714uts4*)
cristy99bd5232011-12-07 14:38:20 +000016715 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16717 soname_spec='${libname}${release}${shared_ext}$major'
16718 shlibpath_var=LD_LIBRARY_PATH
16719 ;;
16720
16721*)
16722 dynamic_linker=no
16723 ;;
16724esac
16725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16726$as_echo "$dynamic_linker" >&6; }
16727test "$dynamic_linker" = no && can_build_shared=no
16728
16729variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16730if test "$GCC" = yes; then
16731 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16732fi
16733
16734if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16735 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16736fi
16737if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16738 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16739fi
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
16825
16826
cristy0c60a692010-11-04 01:09:47 +000016827
16828
16829
16830
16831
cristy73bd4a52010-10-05 11:24:23 +000016832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16833$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16834hardcode_action=
16835if test -n "$hardcode_libdir_flag_spec" ||
16836 test -n "$runpath_var" ||
16837 test "X$hardcode_automatic" = "Xyes" ; then
16838
16839 # We can hardcode non-existent directories.
16840 if test "$hardcode_direct" != no &&
16841 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16842 # have to relink, otherwise we might link with an installed library
16843 # when we should be linking with a yet-to-be-installed one
16844 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16845 test "$hardcode_minus_L" != no; then
16846 # Linking always hardcodes the temporary library directory.
16847 hardcode_action=relink
16848 else
16849 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16850 hardcode_action=immediate
16851 fi
16852else
16853 # We cannot hardcode anything, or else we can only hardcode existing
16854 # directories.
16855 hardcode_action=unsupported
16856fi
16857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16858$as_echo "$hardcode_action" >&6; }
16859
16860if test "$hardcode_action" = relink ||
16861 test "$inherit_rpath" = yes; then
16862 # Fast installation is not supported
16863 enable_fast_install=no
16864elif test "$shlibpath_overrides_runpath" = yes ||
16865 test "$enable_shared" = no; then
16866 # Fast installation is not necessary
16867 enable_fast_install=needless
16868fi
16869
16870
16871
16872
16873
16874
16875 if test "x$enable_dlopen" != xyes; then
16876 enable_dlopen=unknown
16877 enable_dlopen_self=unknown
16878 enable_dlopen_self_static=unknown
16879else
16880 lt_cv_dlopen=no
16881 lt_cv_dlopen_libs=
16882
16883 case $host_os in
16884 beos*)
16885 lt_cv_dlopen="load_add_on"
16886 lt_cv_dlopen_libs=
16887 lt_cv_dlopen_self=yes
16888 ;;
16889
16890 mingw* | pw32* | cegcc*)
16891 lt_cv_dlopen="LoadLibrary"
16892 lt_cv_dlopen_libs=
16893 ;;
16894
16895 cygwin*)
16896 lt_cv_dlopen="dlopen"
16897 lt_cv_dlopen_libs=
16898 ;;
16899
16900 darwin*)
16901 # if libdl is installed we need to link against it
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16903$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016904if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016905 $as_echo_n "(cached) " >&6
16906else
16907 ac_check_lib_save_LIBS=$LIBS
16908LIBS="-ldl $LIBS"
16909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910/* end confdefs.h. */
16911
16912/* Override any GCC internal prototype to avoid an error.
16913 Use char because int might match the return type of a GCC
16914 builtin and then its argument prototype would still apply. */
16915#ifdef __cplusplus
16916extern "C"
16917#endif
16918char dlopen ();
16919int
16920main ()
16921{
16922return dlopen ();
16923 ;
16924 return 0;
16925}
16926_ACEOF
16927if ac_fn_c_try_link "$LINENO"; then :
16928 ac_cv_lib_dl_dlopen=yes
16929else
16930 ac_cv_lib_dl_dlopen=no
16931fi
16932rm -f core conftest.err conftest.$ac_objext \
16933 conftest$ac_exeext conftest.$ac_ext
16934LIBS=$ac_check_lib_save_LIBS
16935fi
16936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16937$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016938if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016939 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16940else
16941
16942 lt_cv_dlopen="dyld"
16943 lt_cv_dlopen_libs=
16944 lt_cv_dlopen_self=yes
16945
16946fi
16947
16948 ;;
16949
16950 *)
16951 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016952if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016953 lt_cv_dlopen="shl_load"
16954else
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16956$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016957if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016958 $as_echo_n "(cached) " >&6
16959else
16960 ac_check_lib_save_LIBS=$LIBS
16961LIBS="-ldld $LIBS"
16962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963/* end confdefs.h. */
16964
16965/* Override any GCC internal prototype to avoid an error.
16966 Use char because int might match the return type of a GCC
16967 builtin and then its argument prototype would still apply. */
16968#ifdef __cplusplus
16969extern "C"
16970#endif
16971char shl_load ();
16972int
16973main ()
16974{
16975return shl_load ();
16976 ;
16977 return 0;
16978}
16979_ACEOF
16980if ac_fn_c_try_link "$LINENO"; then :
16981 ac_cv_lib_dld_shl_load=yes
16982else
16983 ac_cv_lib_dld_shl_load=no
16984fi
16985rm -f core conftest.err conftest.$ac_objext \
16986 conftest$ac_exeext conftest.$ac_ext
16987LIBS=$ac_check_lib_save_LIBS
16988fi
16989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16990$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016991if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016992 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16993else
16994 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016995if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016996 lt_cv_dlopen="dlopen"
16997else
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16999$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017000if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017001 $as_echo_n "(cached) " >&6
17002else
17003 ac_check_lib_save_LIBS=$LIBS
17004LIBS="-ldl $LIBS"
17005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17006/* end confdefs.h. */
17007
17008/* Override any GCC internal prototype to avoid an error.
17009 Use char because int might match the return type of a GCC
17010 builtin and then its argument prototype would still apply. */
17011#ifdef __cplusplus
17012extern "C"
17013#endif
17014char dlopen ();
17015int
17016main ()
17017{
17018return dlopen ();
17019 ;
17020 return 0;
17021}
17022_ACEOF
17023if ac_fn_c_try_link "$LINENO"; then :
17024 ac_cv_lib_dl_dlopen=yes
17025else
17026 ac_cv_lib_dl_dlopen=no
17027fi
17028rm -f core conftest.err conftest.$ac_objext \
17029 conftest$ac_exeext conftest.$ac_ext
17030LIBS=$ac_check_lib_save_LIBS
17031fi
17032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17033$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017034if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017035 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17036else
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17038$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017039if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017040 $as_echo_n "(cached) " >&6
17041else
17042 ac_check_lib_save_LIBS=$LIBS
17043LIBS="-lsvld $LIBS"
17044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17045/* end confdefs.h. */
17046
17047/* Override any GCC internal prototype to avoid an error.
17048 Use char because int might match the return type of a GCC
17049 builtin and then its argument prototype would still apply. */
17050#ifdef __cplusplus
17051extern "C"
17052#endif
17053char dlopen ();
17054int
17055main ()
17056{
17057return dlopen ();
17058 ;
17059 return 0;
17060}
17061_ACEOF
17062if ac_fn_c_try_link "$LINENO"; then :
17063 ac_cv_lib_svld_dlopen=yes
17064else
17065 ac_cv_lib_svld_dlopen=no
17066fi
17067rm -f core conftest.err conftest.$ac_objext \
17068 conftest$ac_exeext conftest.$ac_ext
17069LIBS=$ac_check_lib_save_LIBS
17070fi
17071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17072$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017073if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17075else
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17077$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017078if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017079 $as_echo_n "(cached) " >&6
17080else
17081 ac_check_lib_save_LIBS=$LIBS
17082LIBS="-ldld $LIBS"
17083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084/* end confdefs.h. */
17085
17086/* Override any GCC internal prototype to avoid an error.
17087 Use char because int might match the return type of a GCC
17088 builtin and then its argument prototype would still apply. */
17089#ifdef __cplusplus
17090extern "C"
17091#endif
17092char dld_link ();
17093int
17094main ()
17095{
17096return dld_link ();
17097 ;
17098 return 0;
17099}
17100_ACEOF
17101if ac_fn_c_try_link "$LINENO"; then :
17102 ac_cv_lib_dld_dld_link=yes
17103else
17104 ac_cv_lib_dld_dld_link=no
17105fi
17106rm -f core conftest.err conftest.$ac_objext \
17107 conftest$ac_exeext conftest.$ac_ext
17108LIBS=$ac_check_lib_save_LIBS
17109fi
17110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17111$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017112if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017113 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17114fi
17115
17116
17117fi
17118
17119
17120fi
17121
17122
17123fi
17124
17125
17126fi
17127
17128
17129fi
17130
17131 ;;
17132 esac
17133
17134 if test "x$lt_cv_dlopen" != xno; then
17135 enable_dlopen=yes
17136 else
17137 enable_dlopen=no
17138 fi
17139
17140 case $lt_cv_dlopen in
17141 dlopen)
17142 save_CPPFLAGS="$CPPFLAGS"
17143 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17144
17145 save_LDFLAGS="$LDFLAGS"
17146 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17147
17148 save_LIBS="$LIBS"
17149 LIBS="$lt_cv_dlopen_libs $LIBS"
17150
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17152$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017153if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017154 $as_echo_n "(cached) " >&6
17155else
17156 if test "$cross_compiling" = yes; then :
17157 lt_cv_dlopen_self=cross
17158else
17159 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17160 lt_status=$lt_dlunknown
17161 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017162#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017163#include "confdefs.h"
17164
17165#if HAVE_DLFCN_H
17166#include <dlfcn.h>
17167#endif
17168
17169#include <stdio.h>
17170
17171#ifdef RTLD_GLOBAL
17172# define LT_DLGLOBAL RTLD_GLOBAL
17173#else
17174# ifdef DL_GLOBAL
17175# define LT_DLGLOBAL DL_GLOBAL
17176# else
17177# define LT_DLGLOBAL 0
17178# endif
17179#endif
17180
17181/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17182 find out it does not work in some platform. */
17183#ifndef LT_DLLAZY_OR_NOW
17184# ifdef RTLD_LAZY
17185# define LT_DLLAZY_OR_NOW RTLD_LAZY
17186# else
17187# ifdef DL_LAZY
17188# define LT_DLLAZY_OR_NOW DL_LAZY
17189# else
17190# ifdef RTLD_NOW
17191# define LT_DLLAZY_OR_NOW RTLD_NOW
17192# else
17193# ifdef DL_NOW
17194# define LT_DLLAZY_OR_NOW DL_NOW
17195# else
17196# define LT_DLLAZY_OR_NOW 0
17197# endif
17198# endif
17199# endif
17200# endif
17201#endif
17202
cristy0c60a692010-11-04 01:09:47 +000017203/* When -fvisbility=hidden is used, assume the code has been annotated
17204 correspondingly for the symbols needed. */
17205#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017206int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017207#endif
17208
cristyda16f162011-02-19 23:52:17 +000017209int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017210int main ()
17211{
17212 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17213 int status = $lt_dlunknown;
17214
17215 if (self)
17216 {
17217 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017218 else
17219 {
17220 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17221 else puts (dlerror ());
17222 }
cristy73bd4a52010-10-05 11:24:23 +000017223 /* dlclose (self); */
17224 }
17225 else
17226 puts (dlerror ());
17227
17228 return status;
17229}
17230_LT_EOF
17231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17232 (eval $ac_link) 2>&5
17233 ac_status=$?
17234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17235 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17236 (./conftest; exit; ) >&5 2>/dev/null
17237 lt_status=$?
17238 case x$lt_status in
17239 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17240 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17241 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17242 esac
17243 else :
17244 # compilation failed
17245 lt_cv_dlopen_self=no
17246 fi
17247fi
17248rm -fr conftest*
17249
17250
17251fi
17252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17253$as_echo "$lt_cv_dlopen_self" >&6; }
17254
17255 if test "x$lt_cv_dlopen_self" = xyes; then
17256 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17258$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017259if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017260 $as_echo_n "(cached) " >&6
17261else
17262 if test "$cross_compiling" = yes; then :
17263 lt_cv_dlopen_self_static=cross
17264else
17265 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17266 lt_status=$lt_dlunknown
17267 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017268#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017269#include "confdefs.h"
17270
17271#if HAVE_DLFCN_H
17272#include <dlfcn.h>
17273#endif
17274
17275#include <stdio.h>
17276
17277#ifdef RTLD_GLOBAL
17278# define LT_DLGLOBAL RTLD_GLOBAL
17279#else
17280# ifdef DL_GLOBAL
17281# define LT_DLGLOBAL DL_GLOBAL
17282# else
17283# define LT_DLGLOBAL 0
17284# endif
17285#endif
17286
17287/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17288 find out it does not work in some platform. */
17289#ifndef LT_DLLAZY_OR_NOW
17290# ifdef RTLD_LAZY
17291# define LT_DLLAZY_OR_NOW RTLD_LAZY
17292# else
17293# ifdef DL_LAZY
17294# define LT_DLLAZY_OR_NOW DL_LAZY
17295# else
17296# ifdef RTLD_NOW
17297# define LT_DLLAZY_OR_NOW RTLD_NOW
17298# else
17299# ifdef DL_NOW
17300# define LT_DLLAZY_OR_NOW DL_NOW
17301# else
17302# define LT_DLLAZY_OR_NOW 0
17303# endif
17304# endif
17305# endif
17306# endif
17307#endif
17308
cristy0c60a692010-11-04 01:09:47 +000017309/* When -fvisbility=hidden is used, assume the code has been annotated
17310 correspondingly for the symbols needed. */
17311#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017312int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017313#endif
17314
cristyda16f162011-02-19 23:52:17 +000017315int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017316int main ()
17317{
17318 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17319 int status = $lt_dlunknown;
17320
17321 if (self)
17322 {
17323 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017324 else
17325 {
17326 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17327 else puts (dlerror ());
17328 }
cristy73bd4a52010-10-05 11:24:23 +000017329 /* dlclose (self); */
17330 }
17331 else
17332 puts (dlerror ());
17333
17334 return status;
17335}
17336_LT_EOF
17337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17338 (eval $ac_link) 2>&5
17339 ac_status=$?
17340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17341 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17342 (./conftest; exit; ) >&5 2>/dev/null
17343 lt_status=$?
17344 case x$lt_status in
17345 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17346 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17347 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17348 esac
17349 else :
17350 # compilation failed
17351 lt_cv_dlopen_self_static=no
17352 fi
17353fi
17354rm -fr conftest*
17355
17356
17357fi
17358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17359$as_echo "$lt_cv_dlopen_self_static" >&6; }
17360 fi
17361
17362 CPPFLAGS="$save_CPPFLAGS"
17363 LDFLAGS="$save_LDFLAGS"
17364 LIBS="$save_LIBS"
17365 ;;
17366 esac
17367
17368 case $lt_cv_dlopen_self in
17369 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17370 *) enable_dlopen_self=unknown ;;
17371 esac
17372
17373 case $lt_cv_dlopen_self_static in
17374 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17375 *) enable_dlopen_self_static=unknown ;;
17376 esac
17377fi
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395striplib=
17396old_striplib=
17397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17398$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17399if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17400 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17401 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17403$as_echo "yes" >&6; }
17404else
17405# FIXME - insert some real tests, host_os isn't really good enough
17406 case $host_os in
17407 darwin*)
17408 if test -n "$STRIP" ; then
17409 striplib="$STRIP -x"
17410 old_striplib="$STRIP -S"
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17412$as_echo "yes" >&6; }
17413 else
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17415$as_echo "no" >&6; }
17416 fi
17417 ;;
17418 *)
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17420$as_echo "no" >&6; }
17421 ;;
17422 esac
17423fi
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436 # Report which library types will actually be built
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17438$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17440$as_echo "$can_build_shared" >&6; }
17441
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17443$as_echo_n "checking whether to build shared libraries... " >&6; }
17444 test "$can_build_shared" = "no" && enable_shared=no
17445
17446 # On AIX, shared libraries and static libraries use the same namespace, and
17447 # are all built from PIC.
17448 case $host_os in
17449 aix3*)
17450 test "$enable_shared" = yes && enable_static=no
17451 if test -n "$RANLIB"; then
17452 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17453 postinstall_cmds='$RANLIB $lib'
17454 fi
17455 ;;
17456
17457 aix[4-9]*)
17458 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17459 test "$enable_shared" = yes && enable_static=no
17460 fi
17461 ;;
17462 esac
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17464$as_echo "$enable_shared" >&6; }
17465
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17467$as_echo_n "checking whether to build static libraries... " >&6; }
17468 # Make sure either enable_shared or enable_static is yes.
17469 test "$enable_shared" = yes || enable_static=yes
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17471$as_echo "$enable_static" >&6; }
17472
17473
17474
17475
17476fi
17477ac_ext=c
17478ac_cpp='$CPP $CPPFLAGS'
17479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17481ac_compiler_gnu=$ac_cv_c_compiler_gnu
17482
17483CC="$lt_save_CC"
17484
cristy0c60a692010-11-04 01:09:47 +000017485 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17486 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17487 (test "X$CXX" != "Xg++"))) ; then
17488 ac_ext=cpp
17489ac_cpp='$CXXCPP $CPPFLAGS'
17490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17494$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17495if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017496 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017497 $as_echo_n "(cached) " >&6
17498else
17499 # Double quotes because CXXCPP needs to be expanded
17500 for CXXCPP in "$CXX -E" "/lib/cpp"
17501 do
17502 ac_preproc_ok=false
17503for ac_cxx_preproc_warn_flag in '' yes
17504do
17505 # Use a header file that comes with gcc, so configuring glibc
17506 # with a fresh cross-compiler works.
17507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17508 # <limits.h> exists even on freestanding compilers.
17509 # On the NeXT, cc -E runs the code through the compiler's parser,
17510 # not just through cpp. "Syntax error" is here to catch this case.
17511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17512/* end confdefs.h. */
17513#ifdef __STDC__
17514# include <limits.h>
17515#else
17516# include <assert.h>
17517#endif
17518 Syntax error
17519_ACEOF
17520if ac_fn_cxx_try_cpp "$LINENO"; then :
17521
17522else
17523 # Broken: fails on valid input.
17524continue
17525fi
cristyda16f162011-02-19 23:52:17 +000017526rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017527
17528 # OK, works on sane cases. Now check whether nonexistent headers
17529 # can be detected and how.
17530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531/* end confdefs.h. */
17532#include <ac_nonexistent.h>
17533_ACEOF
17534if ac_fn_cxx_try_cpp "$LINENO"; then :
17535 # Broken: success on invalid input.
17536continue
17537else
17538 # Passes both tests.
17539ac_preproc_ok=:
17540break
17541fi
cristyda16f162011-02-19 23:52:17 +000017542rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017543
17544done
17545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017546rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017547if $ac_preproc_ok; then :
17548 break
17549fi
17550
17551 done
17552 ac_cv_prog_CXXCPP=$CXXCPP
17553
17554fi
17555 CXXCPP=$ac_cv_prog_CXXCPP
17556else
17557 ac_cv_prog_CXXCPP=$CXXCPP
17558fi
17559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17560$as_echo "$CXXCPP" >&6; }
17561ac_preproc_ok=false
17562for ac_cxx_preproc_warn_flag in '' yes
17563do
17564 # Use a header file that comes with gcc, so configuring glibc
17565 # with a fresh cross-compiler works.
17566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17567 # <limits.h> exists even on freestanding compilers.
17568 # On the NeXT, cc -E runs the code through the compiler's parser,
17569 # not just through cpp. "Syntax error" is here to catch this case.
17570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571/* end confdefs.h. */
17572#ifdef __STDC__
17573# include <limits.h>
17574#else
17575# include <assert.h>
17576#endif
17577 Syntax error
17578_ACEOF
17579if ac_fn_cxx_try_cpp "$LINENO"; then :
17580
17581else
17582 # Broken: fails on valid input.
17583continue
17584fi
cristyda16f162011-02-19 23:52:17 +000017585rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017586
17587 # OK, works on sane cases. Now check whether nonexistent headers
17588 # can be detected and how.
17589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17590/* end confdefs.h. */
17591#include <ac_nonexistent.h>
17592_ACEOF
17593if ac_fn_cxx_try_cpp "$LINENO"; then :
17594 # Broken: success on invalid input.
17595continue
17596else
17597 # Passes both tests.
17598ac_preproc_ok=:
17599break
17600fi
cristyda16f162011-02-19 23:52:17 +000017601rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017602
17603done
17604# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017605rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017606if $ac_preproc_ok; then :
17607
17608else
17609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17611as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17612See \`config.log' for more details" "$LINENO" 5; }
17613fi
17614
17615ac_ext=c
17616ac_cpp='$CPP $CPPFLAGS'
17617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17619ac_compiler_gnu=$ac_cv_c_compiler_gnu
17620
17621else
17622 _lt_caught_CXX_error=yes
17623fi
cristy73bd4a52010-10-05 11:24:23 +000017624
17625ac_ext=cpp
17626ac_cpp='$CXXCPP $CPPFLAGS'
17627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17630
17631archive_cmds_need_lc_CXX=no
17632allow_undefined_flag_CXX=
17633always_export_symbols_CXX=no
17634archive_expsym_cmds_CXX=
17635compiler_needs_object_CXX=no
17636export_dynamic_flag_spec_CXX=
17637hardcode_direct_CXX=no
17638hardcode_direct_absolute_CXX=no
17639hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017640hardcode_libdir_separator_CXX=
17641hardcode_minus_L_CXX=no
17642hardcode_shlibpath_var_CXX=unsupported
17643hardcode_automatic_CXX=no
17644inherit_rpath_CXX=no
17645module_cmds_CXX=
17646module_expsym_cmds_CXX=
17647link_all_deplibs_CXX=unknown
17648old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017649reload_flag_CXX=$reload_flag
17650reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017651no_undefined_flag_CXX=
17652whole_archive_flag_spec_CXX=
17653enable_shared_with_static_runtimes_CXX=no
17654
17655# Source file extension for C++ test sources.
17656ac_ext=cpp
17657
17658# Object file extension for compiled C++ test sources.
17659objext=o
17660objext_CXX=$objext
17661
17662# No sense in running all these tests if we already determined that
17663# the CXX compiler isn't working. Some variables (like enable_shared)
17664# are currently assumed to apply to all compilers on this platform,
17665# and will be corrupted by setting them based on a non-working compiler.
17666if test "$_lt_caught_CXX_error" != yes; then
17667 # Code to be used in simple compile tests
17668 lt_simple_compile_test_code="int some_variable = 0;"
17669
17670 # Code to be used in simple link tests
17671 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17672
17673 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17674
17675
17676
17677
17678
17679
17680# If no C compiler was specified, use CC.
17681LTCC=${LTCC-"$CC"}
17682
17683# If no C compiler flags were specified, use CFLAGS.
17684LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17685
17686# Allow CC to be a program name with arguments.
17687compiler=$CC
17688
17689
17690 # save warnings/boilerplate of simple test code
17691 ac_outfile=conftest.$ac_objext
17692echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17693eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17694_lt_compiler_boilerplate=`cat conftest.err`
17695$RM conftest*
17696
17697 ac_outfile=conftest.$ac_objext
17698echo "$lt_simple_link_test_code" >conftest.$ac_ext
17699eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17700_lt_linker_boilerplate=`cat conftest.err`
17701$RM -r conftest*
17702
17703
17704 # Allow CC to be a program name with arguments.
17705 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017706 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017707 lt_save_LD=$LD
17708 lt_save_GCC=$GCC
17709 GCC=$GXX
17710 lt_save_with_gnu_ld=$with_gnu_ld
17711 lt_save_path_LD=$lt_cv_path_LD
17712 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17713 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17714 else
17715 $as_unset lt_cv_prog_gnu_ld
17716 fi
17717 if test -n "${lt_cv_path_LDCXX+set}"; then
17718 lt_cv_path_LD=$lt_cv_path_LDCXX
17719 else
17720 $as_unset lt_cv_path_LD
17721 fi
17722 test -z "${LDCXX+set}" || LD=$LDCXX
17723 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017724 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017725 compiler=$CC
17726 compiler_CXX=$CC
17727 for cc_temp in $compiler""; do
17728 case $cc_temp in
17729 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17730 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17731 \-*) ;;
17732 *) break;;
17733 esac
17734done
cristy0c60a692010-11-04 01:09:47 +000017735cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017736
17737
17738 if test -n "$compiler"; then
17739 # We don't want -fno-exception when compiling C++ code, so set the
17740 # no_builtin_flag separately
17741 if test "$GXX" = yes; then
17742 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17743 else
17744 lt_prog_compiler_no_builtin_flag_CXX=
17745 fi
17746
17747 if test "$GXX" = yes; then
17748 # Set up default GNU C++ configuration
17749
17750
17751
17752# Check whether --with-gnu-ld was given.
17753if test "${with_gnu_ld+set}" = set; then :
17754 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17755else
17756 with_gnu_ld=no
17757fi
17758
17759ac_prog=ld
17760if test "$GCC" = yes; then
17761 # Check if gcc -print-prog-name=ld gives a path.
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17763$as_echo_n "checking for ld used by $CC... " >&6; }
17764 case $host in
17765 *-*-mingw*)
17766 # gcc leaves a trailing carriage return which upsets mingw
17767 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17768 *)
17769 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17770 esac
17771 case $ac_prog in
17772 # Accept absolute paths.
17773 [\\/]* | ?:[\\/]*)
17774 re_direlt='/[^/][^/]*/\.\./'
17775 # Canonicalize the pathname of ld
17776 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17777 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17778 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17779 done
17780 test -z "$LD" && LD="$ac_prog"
17781 ;;
17782 "")
17783 # If it fails, then pretend we aren't using GCC.
17784 ac_prog=ld
17785 ;;
17786 *)
17787 # If it is relative, then search for the first ld in PATH.
17788 with_gnu_ld=unknown
17789 ;;
17790 esac
17791elif test "$with_gnu_ld" = yes; then
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17793$as_echo_n "checking for GNU ld... " >&6; }
17794else
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17796$as_echo_n "checking for non-GNU ld... " >&6; }
17797fi
cristyda16f162011-02-19 23:52:17 +000017798if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017799 $as_echo_n "(cached) " >&6
17800else
17801 if test -z "$LD"; then
17802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17803 for ac_dir in $PATH; do
17804 IFS="$lt_save_ifs"
17805 test -z "$ac_dir" && ac_dir=.
17806 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17807 lt_cv_path_LD="$ac_dir/$ac_prog"
17808 # Check to see if the program is GNU ld. I'd rather use --version,
17809 # but apparently some variants of GNU ld only accept -v.
17810 # Break only if it was the GNU/non-GNU ld that we prefer.
17811 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17812 *GNU* | *'with BFD'*)
17813 test "$with_gnu_ld" != no && break
17814 ;;
17815 *)
17816 test "$with_gnu_ld" != yes && break
17817 ;;
17818 esac
17819 fi
17820 done
17821 IFS="$lt_save_ifs"
17822else
17823 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17824fi
17825fi
17826
17827LD="$lt_cv_path_LD"
17828if test -n "$LD"; then
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17830$as_echo "$LD" >&6; }
17831else
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17833$as_echo "no" >&6; }
17834fi
cristy98dddb52010-11-04 00:30:15 +000017835test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17837$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017838if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017839 $as_echo_n "(cached) " >&6
17840else
17841 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17842case `$LD -v 2>&1 </dev/null` in
17843*GNU* | *'with BFD'*)
17844 lt_cv_prog_gnu_ld=yes
17845 ;;
17846*)
17847 lt_cv_prog_gnu_ld=no
17848 ;;
17849esac
17850fi
17851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17852$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17853with_gnu_ld=$lt_cv_prog_gnu_ld
17854
17855
17856
17857
17858
17859
17860
17861 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17862 # archiving commands below assume that GNU ld is being used.
17863 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017864 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17865 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 +000017866
17867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17868 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17869
17870 # If archive_cmds runs LD, not CC, wlarc should be empty
17871 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17872 # investigate it a little bit more. (MM)
17873 wlarc='${wl}'
17874
17875 # ancient GNU ld didn't support --whole-archive et. al.
17876 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17877 $GREP 'no-whole-archive' > /dev/null; then
17878 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17879 else
17880 whole_archive_flag_spec_CXX=
17881 fi
17882 else
17883 with_gnu_ld=no
17884 wlarc=
17885
17886 # A generic and very simple default shared library creation
17887 # command for GNU C++ for the case where it uses the native
17888 # linker, instead of GNU ld. If possible, this setting should
17889 # overridden to take advantage of the native linker features on
17890 # the platform it is being used on.
17891 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17892 fi
17893
17894 # Commands to make compiler produce verbose output that lists
17895 # what "hidden" libraries, object files and flags are used when
17896 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017897 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017898
17899 else
17900 GXX=no
17901 with_gnu_ld=no
17902 wlarc=
17903 fi
17904
17905 # PORTME: fill in a description of your system's C++ link characteristics
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17907$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17908 ld_shlibs_CXX=yes
17909 case $host_os in
17910 aix3*)
17911 # FIXME: insert proper C++ library support
17912 ld_shlibs_CXX=no
17913 ;;
17914 aix[4-9]*)
17915 if test "$host_cpu" = ia64; then
17916 # On IA64, the linker does run time linking by default, so we don't
17917 # have to do anything special.
17918 aix_use_runtimelinking=no
17919 exp_sym_flag='-Bexport'
17920 no_entry_flag=""
17921 else
17922 aix_use_runtimelinking=no
17923
17924 # Test if we are trying to use run time linking or normal
17925 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17926 # need to do runtime linking.
17927 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17928 for ld_flag in $LDFLAGS; do
17929 case $ld_flag in
17930 *-brtl*)
17931 aix_use_runtimelinking=yes
17932 break
17933 ;;
17934 esac
17935 done
17936 ;;
17937 esac
17938
17939 exp_sym_flag='-bexport'
17940 no_entry_flag='-bnoentry'
17941 fi
17942
17943 # When large executables or shared objects are built, AIX ld can
17944 # have problems creating the table of contents. If linking a library
17945 # or program results in "error TOC overflow" add -mminimal-toc to
17946 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17947 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17948
17949 archive_cmds_CXX=''
17950 hardcode_direct_CXX=yes
17951 hardcode_direct_absolute_CXX=yes
17952 hardcode_libdir_separator_CXX=':'
17953 link_all_deplibs_CXX=yes
17954 file_list_spec_CXX='${wl}-f,'
17955
17956 if test "$GXX" = yes; then
17957 case $host_os in aix4.[012]|aix4.[012].*)
17958 # We only want to do this on AIX 4.2 and lower, the check
17959 # below for broken collect2 doesn't work under 4.3+
17960 collect2name=`${CC} -print-prog-name=collect2`
17961 if test -f "$collect2name" &&
17962 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17963 then
17964 # We have reworked collect2
17965 :
17966 else
17967 # We have old collect2
17968 hardcode_direct_CXX=unsupported
17969 # It fails to find uninstalled libraries when the uninstalled
17970 # path is not listed in the libpath. Setting hardcode_minus_L
17971 # to unsupported forces relinking
17972 hardcode_minus_L_CXX=yes
17973 hardcode_libdir_flag_spec_CXX='-L$libdir'
17974 hardcode_libdir_separator_CXX=
17975 fi
17976 esac
17977 shared_flag='-shared'
17978 if test "$aix_use_runtimelinking" = yes; then
17979 shared_flag="$shared_flag "'${wl}-G'
17980 fi
17981 else
17982 # not using gcc
17983 if test "$host_cpu" = ia64; then
17984 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17985 # chokes on -Wl,-G. The following line is correct:
17986 shared_flag='-G'
17987 else
17988 if test "$aix_use_runtimelinking" = yes; then
17989 shared_flag='${wl}-G'
17990 else
17991 shared_flag='${wl}-bM:SRE'
17992 fi
17993 fi
17994 fi
17995
17996 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17997 # It seems that -bexpall does not export symbols beginning with
17998 # underscore (_), so it is better to generate a list of symbols to
17999 # export.
18000 always_export_symbols_CXX=yes
18001 if test "$aix_use_runtimelinking" = yes; then
18002 # Warning - without using the other runtime loading flags (-brtl),
18003 # -berok will link without error, but may produce a broken library.
18004 allow_undefined_flag_CXX='-berok'
18005 # Determine the default libpath from the value encoded in an empty
18006 # executable.
cristyda16f162011-02-19 23:52:17 +000018007 if test "${lt_cv_aix_libpath+set}" = set; then
18008 aix_libpath=$lt_cv_aix_libpath
18009else
18010 if ${lt_cv_aix_libpath__CXX+:} false; then :
18011 $as_echo_n "(cached) " >&6
18012else
18013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018014/* end confdefs.h. */
18015
18016int
18017main ()
18018{
18019
18020 ;
18021 return 0;
18022}
18023_ACEOF
18024if ac_fn_cxx_try_link "$LINENO"; then :
18025
cristyda16f162011-02-19 23:52:17 +000018026 lt_aix_libpath_sed='
18027 /Import File Strings/,/^$/ {
18028 /^0/ {
18029 s/^0 *\([^ ]*\) *$/\1/
18030 p
18031 }
18032 }'
18033 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18034 # Check for a 64-bit object if we didn't find anything.
18035 if test -z "$lt_cv_aix_libpath__CXX"; then
18036 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18037 fi
cristy73bd4a52010-10-05 11:24:23 +000018038fi
18039rm -f core conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018041 if test -z "$lt_cv_aix_libpath__CXX"; then
18042 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18043 fi
18044
18045fi
18046
18047 aix_libpath=$lt_cv_aix_libpath__CXX
18048fi
cristy73bd4a52010-10-05 11:24:23 +000018049
18050 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18051
cristy0c60a692010-11-04 01:09:47 +000018052 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 +000018053 else
18054 if test "$host_cpu" = ia64; then
18055 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18056 allow_undefined_flag_CXX="-z nodefs"
18057 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"
18058 else
18059 # Determine the default libpath from the value encoded in an
18060 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018061 if test "${lt_cv_aix_libpath+set}" = set; then
18062 aix_libpath=$lt_cv_aix_libpath
18063else
18064 if ${lt_cv_aix_libpath__CXX+:} false; then :
18065 $as_echo_n "(cached) " >&6
18066else
18067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018068/* end confdefs.h. */
18069
18070int
18071main ()
18072{
18073
18074 ;
18075 return 0;
18076}
18077_ACEOF
18078if ac_fn_cxx_try_link "$LINENO"; then :
18079
cristyda16f162011-02-19 23:52:17 +000018080 lt_aix_libpath_sed='
18081 /Import File Strings/,/^$/ {
18082 /^0/ {
18083 s/^0 *\([^ ]*\) *$/\1/
18084 p
18085 }
18086 }'
18087 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18088 # Check for a 64-bit object if we didn't find anything.
18089 if test -z "$lt_cv_aix_libpath__CXX"; then
18090 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18091 fi
cristy73bd4a52010-10-05 11:24:23 +000018092fi
18093rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018095 if test -z "$lt_cv_aix_libpath__CXX"; then
18096 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18097 fi
18098
18099fi
18100
18101 aix_libpath=$lt_cv_aix_libpath__CXX
18102fi
cristy73bd4a52010-10-05 11:24:23 +000018103
18104 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18105 # Warning - without using the other run time loading flags,
18106 # -berok will link without error, but may produce a broken library.
18107 no_undefined_flag_CXX=' ${wl}-bernotok'
18108 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018109 if test "$with_gnu_ld" = yes; then
18110 # We only use this code for GNU lds that support --whole-archive.
18111 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18112 else
18113 # Exported symbols can be pulled into shared objects from archives
18114 whole_archive_flag_spec_CXX='$convenience'
18115 fi
cristy73bd4a52010-10-05 11:24:23 +000018116 archive_cmds_need_lc_CXX=yes
18117 # This is similar to how AIX traditionally builds its shared
18118 # libraries.
18119 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'
18120 fi
18121 fi
18122 ;;
18123
18124 beos*)
18125 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18126 allow_undefined_flag_CXX=unsupported
18127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18128 # support --undefined. This deserves some investigation. FIXME
18129 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18130 else
18131 ld_shlibs_CXX=no
18132 fi
18133 ;;
18134
18135 chorus*)
18136 case $cc_basename in
18137 *)
18138 # FIXME: insert proper C++ library support
18139 ld_shlibs_CXX=no
18140 ;;
18141 esac
18142 ;;
18143
18144 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018145 case $GXX,$cc_basename in
18146 ,cl* | no,cl*)
18147 # Native MSVC
18148 # hardcode_libdir_flag_spec is actually meaningless, as there is
18149 # no search path for DLLs.
18150 hardcode_libdir_flag_spec_CXX=' '
18151 allow_undefined_flag_CXX=unsupported
18152 always_export_symbols_CXX=yes
18153 file_list_spec_CXX='@'
18154 # Tell ltmain to make .lib files, not .a files.
18155 libext=lib
18156 # Tell ltmain to make .dll files, not .so files.
18157 shrext_cmds=".dll"
18158 # FIXME: Setting linknames here is a bad hack.
18159 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18160 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18161 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18162 else
18163 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18164 fi~
18165 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18166 linknames='
18167 # The linker will not automatically build a static lib if we build a DLL.
18168 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18169 enable_shared_with_static_runtimes_CXX=yes
18170 # Don't use ranlib
18171 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18172 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18173 lt_tool_outputfile="@TOOL_OUTPUT@"~
18174 case $lt_outputfile in
18175 *.exe|*.EXE) ;;
18176 *)
18177 lt_outputfile="$lt_outputfile.exe"
18178 lt_tool_outputfile="$lt_tool_outputfile.exe"
18179 ;;
18180 esac~
18181 func_to_tool_file "$lt_outputfile"~
18182 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18183 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18184 $RM "$lt_outputfile.manifest";
18185 fi'
18186 ;;
18187 *)
18188 # g++
18189 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18190 # as there is no search path for DLLs.
18191 hardcode_libdir_flag_spec_CXX='-L$libdir'
18192 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18193 allow_undefined_flag_CXX=unsupported
18194 always_export_symbols_CXX=no
18195 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018196
cristyda16f162011-02-19 23:52:17 +000018197 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18198 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'
18199 # If the export-symbols file already is a .def file (1st line
18200 # is EXPORTS), use it as is; otherwise, prepend...
18201 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18202 cp $export_symbols $output_objdir/$soname.def;
18203 else
18204 echo EXPORTS > $output_objdir/$soname.def;
18205 cat $export_symbols >> $output_objdir/$soname.def;
18206 fi~
18207 $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'
18208 else
18209 ld_shlibs_CXX=no
18210 fi
18211 ;;
18212 esac
18213 ;;
cristy73bd4a52010-10-05 11:24:23 +000018214 darwin* | rhapsody*)
18215
18216
18217 archive_cmds_need_lc_CXX=no
18218 hardcode_direct_CXX=no
18219 hardcode_automatic_CXX=yes
18220 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018221 if test "$lt_cv_ld_force_load" = "yes"; then
18222 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 +000018223
cristy0c60a692010-11-04 01:09:47 +000018224 else
18225 whole_archive_flag_spec_CXX=''
18226 fi
cristy73bd4a52010-10-05 11:24:23 +000018227 link_all_deplibs_CXX=yes
18228 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18229 case $cc_basename in
18230 ifort*) _lt_dar_can_shared=yes ;;
18231 *) _lt_dar_can_shared=$GCC ;;
18232 esac
18233 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018234 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018235 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}"
18236 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18237 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}"
18238 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}"
18239 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18240 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}"
18241 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}"
18242 fi
18243
18244 else
18245 ld_shlibs_CXX=no
18246 fi
18247
18248 ;;
18249
18250 dgux*)
18251 case $cc_basename in
18252 ec++*)
18253 # FIXME: insert proper C++ library support
18254 ld_shlibs_CXX=no
18255 ;;
18256 ghcx*)
18257 # Green Hills C++ Compiler
18258 # FIXME: insert proper C++ library support
18259 ld_shlibs_CXX=no
18260 ;;
18261 *)
18262 # FIXME: insert proper C++ library support
18263 ld_shlibs_CXX=no
18264 ;;
18265 esac
18266 ;;
18267
cristy99bd5232011-12-07 14:38:20 +000018268 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018269 # C++ shared libraries reported to be fairly broken before
18270 # switch to ELF
18271 ld_shlibs_CXX=no
18272 ;;
18273
18274 freebsd-elf*)
18275 archive_cmds_need_lc_CXX=no
18276 ;;
18277
18278 freebsd* | dragonfly*)
18279 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18280 # conventions
18281 ld_shlibs_CXX=yes
18282 ;;
18283
18284 gnu*)
18285 ;;
18286
cristy0c60a692010-11-04 01:09:47 +000018287 haiku*)
18288 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18289 link_all_deplibs_CXX=yes
18290 ;;
18291
cristy73bd4a52010-10-05 11:24:23 +000018292 hpux9*)
18293 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18294 hardcode_libdir_separator_CXX=:
18295 export_dynamic_flag_spec_CXX='${wl}-E'
18296 hardcode_direct_CXX=yes
18297 hardcode_minus_L_CXX=yes # Not in the search PATH,
18298 # but as the default
18299 # location of the library.
18300
18301 case $cc_basename in
18302 CC*)
18303 # FIXME: insert proper C++ library support
18304 ld_shlibs_CXX=no
18305 ;;
18306 aCC*)
18307 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'
18308 # Commands to make compiler produce verbose output that lists
18309 # what "hidden" libraries, object files and flags are used when
18310 # linking a shared library.
18311 #
18312 # There doesn't appear to be a way to prevent this compiler from
18313 # explicitly linking system object files so we need to strip them
18314 # from the output so that they don't get included in the library
18315 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018316 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 +000018317 ;;
18318 *)
18319 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018320 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 +000018321 else
18322 # FIXME: insert proper C++ library support
18323 ld_shlibs_CXX=no
18324 fi
18325 ;;
18326 esac
18327 ;;
18328
18329 hpux10*|hpux11*)
18330 if test $with_gnu_ld = no; then
18331 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18332 hardcode_libdir_separator_CXX=:
18333
18334 case $host_cpu in
18335 hppa*64*|ia64*)
18336 ;;
18337 *)
18338 export_dynamic_flag_spec_CXX='${wl}-E'
18339 ;;
18340 esac
18341 fi
18342 case $host_cpu in
18343 hppa*64*|ia64*)
18344 hardcode_direct_CXX=no
18345 hardcode_shlibpath_var_CXX=no
18346 ;;
18347 *)
18348 hardcode_direct_CXX=yes
18349 hardcode_direct_absolute_CXX=yes
18350 hardcode_minus_L_CXX=yes # Not in the search PATH,
18351 # but as the default
18352 # location of the library.
18353 ;;
18354 esac
18355
18356 case $cc_basename in
18357 CC*)
18358 # FIXME: insert proper C++ library support
18359 ld_shlibs_CXX=no
18360 ;;
18361 aCC*)
18362 case $host_cpu in
18363 hppa*64*)
18364 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18365 ;;
18366 ia64*)
18367 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18368 ;;
18369 *)
18370 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18371 ;;
18372 esac
18373 # Commands to make compiler produce verbose output that lists
18374 # what "hidden" libraries, object files and flags are used when
18375 # linking a shared library.
18376 #
18377 # There doesn't appear to be a way to prevent this compiler from
18378 # explicitly linking system object files so we need to strip them
18379 # from the output so that they don't get included in the library
18380 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018381 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 +000018382 ;;
18383 *)
18384 if test "$GXX" = yes; then
18385 if test $with_gnu_ld = no; then
18386 case $host_cpu in
18387 hppa*64*)
18388 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18389 ;;
18390 ia64*)
cristyda16f162011-02-19 23:52:17 +000018391 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 +000018392 ;;
18393 *)
cristyda16f162011-02-19 23:52:17 +000018394 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 +000018395 ;;
18396 esac
18397 fi
18398 else
18399 # FIXME: insert proper C++ library support
18400 ld_shlibs_CXX=no
18401 fi
18402 ;;
18403 esac
18404 ;;
18405
18406 interix[3-9]*)
18407 hardcode_direct_CXX=no
18408 hardcode_shlibpath_var_CXX=no
18409 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18410 export_dynamic_flag_spec_CXX='${wl}-E'
18411 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18412 # Instead, shared libraries are loaded at an image base (0x10000000 by
18413 # default) and relocated if they conflict, which is a slow very memory
18414 # consuming and fragmenting process. To avoid this, we pick a random,
18415 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18416 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18417 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'
18418 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'
18419 ;;
18420 irix5* | irix6*)
18421 case $cc_basename in
18422 CC*)
18423 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018424 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 +000018425
18426 # Archives containing C++ object files must be created using
18427 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18428 # necessary to make sure instantiated templates are included
18429 # in the archive.
18430 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18431 ;;
18432 *)
18433 if test "$GXX" = yes; then
18434 if test "$with_gnu_ld" = no; then
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"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018436 else
cristyda16f162011-02-19 23:52:17 +000018437 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 +000018438 fi
18439 fi
18440 link_all_deplibs_CXX=yes
18441 ;;
18442 esac
18443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18444 hardcode_libdir_separator_CXX=:
18445 inherit_rpath_CXX=yes
18446 ;;
18447
cristy0c60a692010-11-04 01:09:47 +000018448 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018449 case $cc_basename in
18450 KCC*)
18451 # Kuck and Associates, Inc. (KAI) C++ Compiler
18452
18453 # KCC will only create a shared library if the output file
18454 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18455 # to its proper name (with version) after linking.
18456 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'
18457 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'
18458 # Commands to make compiler produce verbose output that lists
18459 # what "hidden" libraries, object files and flags are used when
18460 # linking a shared library.
18461 #
18462 # There doesn't appear to be a way to prevent this compiler from
18463 # explicitly linking system object files so we need to strip them
18464 # from the output so that they don't get included in the library
18465 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018466 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 +000018467
18468 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18469 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18470
18471 # Archives containing C++ object files must be created using
18472 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18473 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18474 ;;
18475 icpc* | ecpc* )
18476 # Intel C++
18477 with_gnu_ld=yes
18478 # version 8.0 and above of icpc choke on multiply defined symbols
18479 # if we add $predep_objects and $postdep_objects, however 7.1 and
18480 # earlier do not add the objects themselves.
18481 case `$CC -V 2>&1` in
18482 *"Version 7."*)
18483 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18484 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'
18485 ;;
18486 *) # Version 8.0 or newer
18487 tmp_idyn=
18488 case $host_cpu in
18489 ia64*) tmp_idyn=' -i_dynamic';;
18490 esac
18491 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18492 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'
18493 ;;
18494 esac
18495 archive_cmds_need_lc_CXX=no
18496 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18497 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18498 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18499 ;;
18500 pgCC* | pgcpp*)
18501 # Portland Group C++ compiler
18502 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018503 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018504 prelink_cmds_CXX='tpldir=Template.dir~
18505 rm -rf $tpldir~
18506 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018507 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018508 old_archive_cmds_CXX='tpldir=Template.dir~
18509 rm -rf $tpldir~
18510 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018511 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018512 $RANLIB $oldlib'
18513 archive_cmds_CXX='tpldir=Template.dir~
18514 rm -rf $tpldir~
18515 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018516 $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 +000018517 archive_expsym_cmds_CXX='tpldir=Template.dir~
18518 rm -rf $tpldir~
18519 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018520 $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 +000018521 ;;
cristy0c60a692010-11-04 01:09:47 +000018522 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018523 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18524 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'
18525 ;;
18526 esac
18527
18528 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18529 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018530 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 +000018531 ;;
18532 cxx*)
18533 # Compaq C++
18534 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18535 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'
18536
18537 runpath_var=LD_RUN_PATH
18538 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18539 hardcode_libdir_separator_CXX=:
18540
18541 # Commands to make compiler produce verbose output that lists
18542 # what "hidden" libraries, object files and flags are used when
18543 # linking a shared library.
18544 #
18545 # There doesn't appear to be a way to prevent this compiler from
18546 # explicitly linking system object files so we need to strip them
18547 # from the output so that they don't get included in the library
18548 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018549 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 +000018550 ;;
cristy0c60a692010-11-04 01:09:47 +000018551 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018552 # IBM XL 8.0 on PPC, with GNU ld
18553 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18554 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18555 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18556 if test "x$supports_anon_versioning" = xyes; then
18557 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18558 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18559 echo "local: *; };" >> $output_objdir/$libname.ver~
18560 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18561 fi
18562 ;;
18563 *)
18564 case `$CC -V 2>&1 | sed 5q` in
18565 *Sun\ C*)
18566 # Sun C++ 5.9
18567 no_undefined_flag_CXX=' -zdefs'
18568 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18569 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'
18570 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018571 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 +000018572 compiler_needs_object_CXX=yes
18573
18574 # Not sure whether something based on
18575 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18576 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018577 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018578
18579 # Archives containing C++ object files must be created using
18580 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18581 # necessary to make sure instantiated templates are included
18582 # in the archive.
18583 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18584 ;;
18585 esac
18586 ;;
18587 esac
18588 ;;
18589
18590 lynxos*)
18591 # FIXME: insert proper C++ library support
18592 ld_shlibs_CXX=no
18593 ;;
18594
18595 m88k*)
18596 # FIXME: insert proper C++ library support
18597 ld_shlibs_CXX=no
18598 ;;
18599
18600 mvs*)
18601 case $cc_basename in
18602 cxx*)
18603 # FIXME: insert proper C++ library support
18604 ld_shlibs_CXX=no
18605 ;;
18606 *)
18607 # FIXME: insert proper C++ library support
18608 ld_shlibs_CXX=no
18609 ;;
18610 esac
18611 ;;
18612
18613 netbsd*)
18614 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18615 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18616 wlarc=
18617 hardcode_libdir_flag_spec_CXX='-R$libdir'
18618 hardcode_direct_CXX=yes
18619 hardcode_shlibpath_var_CXX=no
18620 fi
18621 # Workaround some broken pre-1.5 toolchains
18622 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18623 ;;
18624
18625 *nto* | *qnx*)
18626 ld_shlibs_CXX=yes
18627 ;;
18628
18629 openbsd2*)
18630 # C++ shared libraries are fairly broken
18631 ld_shlibs_CXX=no
18632 ;;
18633
18634 openbsd*)
18635 if test -f /usr/libexec/ld.so; then
18636 hardcode_direct_CXX=yes
18637 hardcode_shlibpath_var_CXX=no
18638 hardcode_direct_absolute_CXX=yes
18639 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18640 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18642 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18643 export_dynamic_flag_spec_CXX='${wl}-E'
18644 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18645 fi
cristy0c60a692010-11-04 01:09:47 +000018646 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018647 else
18648 ld_shlibs_CXX=no
18649 fi
18650 ;;
18651
18652 osf3* | osf4* | osf5*)
18653 case $cc_basename in
18654 KCC*)
18655 # Kuck and Associates, Inc. (KAI) C++ Compiler
18656
18657 # KCC will only create a shared library if the output file
18658 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18659 # to its proper name (with version) after linking.
18660 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'
18661
18662 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18663 hardcode_libdir_separator_CXX=:
18664
18665 # Archives containing C++ object files must be created using
18666 # the KAI C++ compiler.
18667 case $host in
18668 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18669 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18670 esac
18671 ;;
18672 RCC*)
18673 # Rational C++ 2.4.1
18674 # FIXME: insert proper C++ library support
18675 ld_shlibs_CXX=no
18676 ;;
18677 cxx*)
18678 case $host in
18679 osf3*)
18680 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018681 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 +000018682 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18683 ;;
18684 *)
18685 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018686 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 +000018687 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18688 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018689 $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 +000018690 $RM $lib.exp'
18691 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18692 ;;
18693 esac
18694
18695 hardcode_libdir_separator_CXX=:
18696
18697 # Commands to make compiler produce verbose output that lists
18698 # what "hidden" libraries, object files and flags are used when
18699 # linking a shared library.
18700 #
18701 # There doesn't appear to be a way to prevent this compiler from
18702 # explicitly linking system object files so we need to strip them
18703 # from the output so that they don't get included in the library
18704 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018705 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 +000018706 ;;
18707 *)
18708 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18709 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18710 case $host in
18711 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018712 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 +000018713 ;;
18714 *)
cristyda16f162011-02-19 23:52:17 +000018715 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 +000018716 ;;
18717 esac
18718
18719 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18720 hardcode_libdir_separator_CXX=:
18721
18722 # Commands to make compiler produce verbose output that lists
18723 # what "hidden" libraries, object files and flags are used when
18724 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018725 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018726
18727 else
18728 # FIXME: insert proper C++ library support
18729 ld_shlibs_CXX=no
18730 fi
18731 ;;
18732 esac
18733 ;;
18734
18735 psos*)
18736 # FIXME: insert proper C++ library support
18737 ld_shlibs_CXX=no
18738 ;;
18739
18740 sunos4*)
18741 case $cc_basename in
18742 CC*)
18743 # Sun C++ 4.x
18744 # FIXME: insert proper C++ library support
18745 ld_shlibs_CXX=no
18746 ;;
18747 lcc*)
18748 # Lucid
18749 # FIXME: insert proper C++ library support
18750 ld_shlibs_CXX=no
18751 ;;
18752 *)
18753 # FIXME: insert proper C++ library support
18754 ld_shlibs_CXX=no
18755 ;;
18756 esac
18757 ;;
18758
18759 solaris*)
18760 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018761 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018762 # Sun C++ 4.2, 5.x and Centerline C++
18763 archive_cmds_need_lc_CXX=yes
18764 no_undefined_flag_CXX=' -zdefs'
18765 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18766 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18767 $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'
18768
18769 hardcode_libdir_flag_spec_CXX='-R$libdir'
18770 hardcode_shlibpath_var_CXX=no
18771 case $host_os in
18772 solaris2.[0-5] | solaris2.[0-5].*) ;;
18773 *)
18774 # The compiler driver will combine and reorder linker options,
18775 # but understands `-z linker_flag'.
18776 # Supported since Solaris 2.6 (maybe 2.5.1?)
18777 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18778 ;;
18779 esac
18780 link_all_deplibs_CXX=yes
18781
cristy0c60a692010-11-04 01:09:47 +000018782 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018783
18784 # Archives containing C++ object files must be created using
18785 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18786 # necessary to make sure instantiated templates are included
18787 # in the archive.
18788 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18789 ;;
18790 gcx*)
18791 # Green Hills C++ Compiler
18792 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18793
18794 # The C++ compiler must be used to create the archive.
18795 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18796 ;;
18797 *)
18798 # GNU C++ compiler with Solaris linker
18799 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18800 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18801 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018802 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 +000018803 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 +000018804 $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 +000018805
18806 # Commands to make compiler produce verbose output that lists
18807 # what "hidden" libraries, object files and flags are used when
18808 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018809 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018810 else
18811 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18812 # platform.
18813 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18814 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18815 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18816
18817 # Commands to make compiler produce verbose output that lists
18818 # what "hidden" libraries, object files and flags are used when
18819 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018820 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018821 fi
18822
18823 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18824 case $host_os in
18825 solaris2.[0-5] | solaris2.[0-5].*) ;;
18826 *)
18827 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18828 ;;
18829 esac
18830 fi
18831 ;;
18832 esac
18833 ;;
18834
18835 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18836 no_undefined_flag_CXX='${wl}-z,text'
18837 archive_cmds_need_lc_CXX=no
18838 hardcode_shlibpath_var_CXX=no
18839 runpath_var='LD_RUN_PATH'
18840
18841 case $cc_basename in
18842 CC*)
18843 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18844 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18845 ;;
18846 *)
18847 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18848 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18849 ;;
18850 esac
18851 ;;
18852
18853 sysv5* | sco3.2v5* | sco5v6*)
18854 # Note: We can NOT use -z defs as we might desire, because we do not
18855 # link with -lc, and that would cause any symbols used from libc to
18856 # always be unresolved, which means just about no library would
18857 # ever link correctly. If we're not using GNU ld we use -z text
18858 # though, which does catch some bad symbols but isn't as heavy-handed
18859 # as -z defs.
18860 no_undefined_flag_CXX='${wl}-z,text'
18861 allow_undefined_flag_CXX='${wl}-z,nodefs'
18862 archive_cmds_need_lc_CXX=no
18863 hardcode_shlibpath_var_CXX=no
18864 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18865 hardcode_libdir_separator_CXX=':'
18866 link_all_deplibs_CXX=yes
18867 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18868 runpath_var='LD_RUN_PATH'
18869
18870 case $cc_basename in
18871 CC*)
18872 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18873 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 +000018874 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18875 '"$old_archive_cmds_CXX"
18876 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18877 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018878 ;;
18879 *)
18880 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18881 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18882 ;;
18883 esac
18884 ;;
18885
18886 tandem*)
18887 case $cc_basename in
18888 NCC*)
18889 # NonStop-UX NCC 3.20
18890 # FIXME: insert proper C++ library support
18891 ld_shlibs_CXX=no
18892 ;;
18893 *)
18894 # FIXME: insert proper C++ library support
18895 ld_shlibs_CXX=no
18896 ;;
18897 esac
18898 ;;
18899
18900 vxworks*)
18901 # FIXME: insert proper C++ library support
18902 ld_shlibs_CXX=no
18903 ;;
18904
18905 *)
18906 # FIXME: insert proper C++ library support
18907 ld_shlibs_CXX=no
18908 ;;
18909 esac
18910
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18912$as_echo "$ld_shlibs_CXX" >&6; }
18913 test "$ld_shlibs_CXX" = no && can_build_shared=no
18914
18915 GCC_CXX="$GXX"
18916 LD_CXX="$LD"
18917
18918 ## CAVEAT EMPTOR:
18919 ## There is no encapsulation within the following macros, do not change
18920 ## the running order or otherwise move them around unless you know exactly
18921 ## what you are doing...
18922 # Dependencies to place before and after the object being linked:
18923predep_objects_CXX=
18924postdep_objects_CXX=
18925predeps_CXX=
18926postdeps_CXX=
18927compiler_lib_search_path_CXX=
18928
18929cat > conftest.$ac_ext <<_LT_EOF
18930class Foo
18931{
18932public:
18933 Foo (void) { a = 0; }
18934private:
18935 int a;
18936};
18937_LT_EOF
18938
cristyda16f162011-02-19 23:52:17 +000018939
18940_lt_libdeps_save_CFLAGS=$CFLAGS
18941case "$CC $CFLAGS " in #(
18942*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18943*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018944*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018945esac
18946
cristy73bd4a52010-10-05 11:24:23 +000018947if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18948 (eval $ac_compile) 2>&5
18949 ac_status=$?
18950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18951 test $ac_status = 0; }; then
18952 # Parse the compiler output and extract the necessary
18953 # objects, libraries and library flags.
18954
18955 # Sentinel used to keep track of whether or not we are before
18956 # the conftest object file.
18957 pre_test_object_deps_done=no
18958
18959 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018960 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018961
18962 -L* | -R* | -l*)
18963 # Some compilers place space between "-{L,R}" and the path.
18964 # Remove the space.
18965 if test $p = "-L" ||
18966 test $p = "-R"; then
18967 prev=$p
18968 continue
cristy73bd4a52010-10-05 11:24:23 +000018969 fi
18970
cristyda16f162011-02-19 23:52:17 +000018971 # Expand the sysroot to ease extracting the directories later.
18972 if test -z "$prev"; then
18973 case $p in
18974 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18975 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18976 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18977 esac
18978 fi
18979 case $p in
18980 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18981 esac
cristy73bd4a52010-10-05 11:24:23 +000018982 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018983 case ${prev} in
18984 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018985 # Internal compiler library paths should come after those
18986 # provided the user. The postdeps already come after the
18987 # user supplied libs so there is no need to process them.
18988 if test -z "$compiler_lib_search_path_CXX"; then
18989 compiler_lib_search_path_CXX="${prev}${p}"
18990 else
18991 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18992 fi
18993 ;;
18994 # The "-l" case would never come before the object being
18995 # linked, so don't bother handling this case.
18996 esac
18997 else
18998 if test -z "$postdeps_CXX"; then
18999 postdeps_CXX="${prev}${p}"
19000 else
19001 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19002 fi
19003 fi
cristyda16f162011-02-19 23:52:17 +000019004 prev=
cristy73bd4a52010-10-05 11:24:23 +000019005 ;;
19006
cristyda16f162011-02-19 23:52:17 +000019007 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019008 *.$objext)
19009 # This assumes that the test object file only shows up
19010 # once in the compiler output.
19011 if test "$p" = "conftest.$objext"; then
19012 pre_test_object_deps_done=yes
19013 continue
19014 fi
19015
19016 if test "$pre_test_object_deps_done" = no; then
19017 if test -z "$predep_objects_CXX"; then
19018 predep_objects_CXX="$p"
19019 else
19020 predep_objects_CXX="$predep_objects_CXX $p"
19021 fi
19022 else
19023 if test -z "$postdep_objects_CXX"; then
19024 postdep_objects_CXX="$p"
19025 else
19026 postdep_objects_CXX="$postdep_objects_CXX $p"
19027 fi
19028 fi
19029 ;;
19030
19031 *) ;; # Ignore the rest.
19032
19033 esac
19034 done
19035
19036 # Clean up.
19037 rm -f a.out a.exe
19038else
19039 echo "libtool.m4: error: problem compiling CXX test program"
19040fi
19041
19042$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019043CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019044
19045# PORTME: override above test on systems where it is broken
19046case $host_os in
19047interix[3-9]*)
19048 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19049 # hack all around it, let's just trust "g++" to DTRT.
19050 predep_objects_CXX=
19051 postdep_objects_CXX=
19052 postdeps_CXX=
19053 ;;
19054
19055linux*)
19056 case `$CC -V 2>&1 | sed 5q` in
19057 *Sun\ C*)
19058 # Sun C++ 5.9
19059
19060 # The more standards-conforming stlport4 library is
19061 # incompatible with the Cstd library. Avoid specifying
19062 # it if it's in CXXFLAGS. Ignore libCrun as
19063 # -library=stlport4 depends on it.
19064 case " $CXX $CXXFLAGS " in
19065 *" -library=stlport4 "*)
19066 solaris_use_stlport4=yes
19067 ;;
19068 esac
19069
19070 if test "$solaris_use_stlport4" != yes; then
19071 postdeps_CXX='-library=Cstd -library=Crun'
19072 fi
19073 ;;
19074 esac
19075 ;;
19076
19077solaris*)
19078 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019079 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019080 # The more standards-conforming stlport4 library is
19081 # incompatible with the Cstd library. Avoid specifying
19082 # it if it's in CXXFLAGS. Ignore libCrun as
19083 # -library=stlport4 depends on it.
19084 case " $CXX $CXXFLAGS " in
19085 *" -library=stlport4 "*)
19086 solaris_use_stlport4=yes
19087 ;;
19088 esac
19089
19090 # Adding this requires a known-good setup of shared libraries for
19091 # Sun compiler versions before 5.6, else PIC objects from an old
19092 # archive will be linked into the output, leading to subtle bugs.
19093 if test "$solaris_use_stlport4" != yes; then
19094 postdeps_CXX='-library=Cstd -library=Crun'
19095 fi
19096 ;;
19097 esac
19098 ;;
19099esac
19100
19101
19102case " $postdeps_CXX " in
19103*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19104esac
19105 compiler_lib_search_dirs_CXX=
19106if test -n "${compiler_lib_search_path_CXX}"; then
19107 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19108fi
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
19139
19140 lt_prog_compiler_wl_CXX=
19141lt_prog_compiler_pic_CXX=
19142lt_prog_compiler_static_CXX=
19143
cristy73bd4a52010-10-05 11:24:23 +000019144
19145 # C++ specific cases for pic, static, wl, etc.
19146 if test "$GXX" = yes; then
19147 lt_prog_compiler_wl_CXX='-Wl,'
19148 lt_prog_compiler_static_CXX='-static'
19149
19150 case $host_os in
19151 aix*)
19152 # All AIX code is PIC.
19153 if test "$host_cpu" = ia64; then
19154 # AIX 5 now supports IA64 processor
19155 lt_prog_compiler_static_CXX='-Bstatic'
19156 fi
19157 ;;
19158
19159 amigaos*)
19160 case $host_cpu in
19161 powerpc)
19162 # see comment about AmigaOS4 .so support
19163 lt_prog_compiler_pic_CXX='-fPIC'
19164 ;;
19165 m68k)
19166 # FIXME: we need at least 68020 code to build shared libraries, but
19167 # adding the `-m68020' flag to GCC prevents building anything better,
19168 # like `-m68040'.
19169 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19170 ;;
19171 esac
19172 ;;
19173
19174 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19175 # PIC is the default for these OSes.
19176 ;;
19177 mingw* | cygwin* | os2* | pw32* | cegcc*)
19178 # This hack is so that the source file can tell whether it is being
19179 # built for inclusion in a dll (and should export symbols for example).
19180 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19181 # (--disable-auto-import) libraries
19182 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19183 ;;
19184 darwin* | rhapsody*)
19185 # PIC is the default on this platform
19186 # Common symbols not allowed in MH_DYLIB files
19187 lt_prog_compiler_pic_CXX='-fno-common'
19188 ;;
19189 *djgpp*)
19190 # DJGPP does not support shared libraries at all
19191 lt_prog_compiler_pic_CXX=
19192 ;;
cristy0c60a692010-11-04 01:09:47 +000019193 haiku*)
19194 # PIC is the default for Haiku.
19195 # The "-static" flag exists, but is broken.
19196 lt_prog_compiler_static_CXX=
19197 ;;
cristy73bd4a52010-10-05 11:24:23 +000019198 interix[3-9]*)
19199 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19200 # Instead, we relocate shared libraries at runtime.
19201 ;;
19202 sysv4*MP*)
19203 if test -d /usr/nec; then
19204 lt_prog_compiler_pic_CXX=-Kconform_pic
19205 fi
19206 ;;
19207 hpux*)
19208 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19209 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19210 # sets the default TLS model and affects inlining.
19211 case $host_cpu in
19212 hppa*64*)
19213 ;;
19214 *)
19215 lt_prog_compiler_pic_CXX='-fPIC'
19216 ;;
19217 esac
19218 ;;
19219 *qnx* | *nto*)
19220 # QNX uses GNU C++, but need to define -shared option too, otherwise
19221 # it will coredump.
19222 lt_prog_compiler_pic_CXX='-fPIC -shared'
19223 ;;
19224 *)
19225 lt_prog_compiler_pic_CXX='-fPIC'
19226 ;;
19227 esac
19228 else
19229 case $host_os in
19230 aix[4-9]*)
19231 # All AIX code is PIC.
19232 if test "$host_cpu" = ia64; then
19233 # AIX 5 now supports IA64 processor
19234 lt_prog_compiler_static_CXX='-Bstatic'
19235 else
19236 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19237 fi
19238 ;;
19239 chorus*)
19240 case $cc_basename in
19241 cxch68*)
19242 # Green Hills C++ Compiler
19243 # _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"
19244 ;;
19245 esac
19246 ;;
cristyda16f162011-02-19 23:52:17 +000019247 mingw* | cygwin* | os2* | pw32* | cegcc*)
19248 # This hack is so that the source file can tell whether it is being
19249 # built for inclusion in a dll (and should export symbols for example).
19250 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19251 ;;
cristy73bd4a52010-10-05 11:24:23 +000019252 dgux*)
19253 case $cc_basename in
19254 ec++*)
19255 lt_prog_compiler_pic_CXX='-KPIC'
19256 ;;
19257 ghcx*)
19258 # Green Hills C++ Compiler
19259 lt_prog_compiler_pic_CXX='-pic'
19260 ;;
19261 *)
19262 ;;
19263 esac
19264 ;;
19265 freebsd* | dragonfly*)
19266 # FreeBSD uses GNU C++
19267 ;;
19268 hpux9* | hpux10* | hpux11*)
19269 case $cc_basename in
19270 CC*)
19271 lt_prog_compiler_wl_CXX='-Wl,'
19272 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19273 if test "$host_cpu" != ia64; then
19274 lt_prog_compiler_pic_CXX='+Z'
19275 fi
19276 ;;
19277 aCC*)
19278 lt_prog_compiler_wl_CXX='-Wl,'
19279 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19280 case $host_cpu in
19281 hppa*64*|ia64*)
19282 # +Z the default
19283 ;;
19284 *)
19285 lt_prog_compiler_pic_CXX='+Z'
19286 ;;
19287 esac
19288 ;;
19289 *)
19290 ;;
19291 esac
19292 ;;
19293 interix*)
19294 # This is c89, which is MS Visual C++ (no shared libs)
19295 # Anyone wants to do a port?
19296 ;;
19297 irix5* | irix6* | nonstopux*)
19298 case $cc_basename in
19299 CC*)
19300 lt_prog_compiler_wl_CXX='-Wl,'
19301 lt_prog_compiler_static_CXX='-non_shared'
19302 # CC pic flag -KPIC is the default.
19303 ;;
19304 *)
19305 ;;
19306 esac
19307 ;;
cristy0c60a692010-11-04 01:09:47 +000019308 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019309 case $cc_basename in
19310 KCC*)
19311 # KAI C++ Compiler
19312 lt_prog_compiler_wl_CXX='--backend -Wl,'
19313 lt_prog_compiler_pic_CXX='-fPIC'
19314 ;;
19315 ecpc* )
19316 # old Intel C++ for x86_64 which still supported -KPIC.
19317 lt_prog_compiler_wl_CXX='-Wl,'
19318 lt_prog_compiler_pic_CXX='-KPIC'
19319 lt_prog_compiler_static_CXX='-static'
19320 ;;
19321 icpc* )
19322 # Intel C++, used to be incompatible with GCC.
19323 # ICC 10 doesn't accept -KPIC any more.
19324 lt_prog_compiler_wl_CXX='-Wl,'
19325 lt_prog_compiler_pic_CXX='-fPIC'
19326 lt_prog_compiler_static_CXX='-static'
19327 ;;
19328 pgCC* | pgcpp*)
19329 # Portland Group C++ compiler
19330 lt_prog_compiler_wl_CXX='-Wl,'
19331 lt_prog_compiler_pic_CXX='-fpic'
19332 lt_prog_compiler_static_CXX='-Bstatic'
19333 ;;
19334 cxx*)
19335 # Compaq C++
19336 # Make sure the PIC flag is empty. It appears that all Alpha
19337 # Linux and Compaq Tru64 Unix objects are PIC.
19338 lt_prog_compiler_pic_CXX=
19339 lt_prog_compiler_static_CXX='-non_shared'
19340 ;;
cristy0c60a692010-11-04 01:09:47 +000019341 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19342 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019343 lt_prog_compiler_wl_CXX='-Wl,'
19344 lt_prog_compiler_pic_CXX='-qpic'
19345 lt_prog_compiler_static_CXX='-qstaticlink'
19346 ;;
19347 *)
19348 case `$CC -V 2>&1 | sed 5q` in
19349 *Sun\ C*)
19350 # Sun C++ 5.9
19351 lt_prog_compiler_pic_CXX='-KPIC'
19352 lt_prog_compiler_static_CXX='-Bstatic'
19353 lt_prog_compiler_wl_CXX='-Qoption ld '
19354 ;;
19355 esac
19356 ;;
19357 esac
19358 ;;
19359 lynxos*)
19360 ;;
19361 m88k*)
19362 ;;
19363 mvs*)
19364 case $cc_basename in
19365 cxx*)
19366 lt_prog_compiler_pic_CXX='-W c,exportall'
19367 ;;
19368 *)
19369 ;;
19370 esac
19371 ;;
19372 netbsd*)
19373 ;;
19374 *qnx* | *nto*)
19375 # QNX uses GNU C++, but need to define -shared option too, otherwise
19376 # it will coredump.
19377 lt_prog_compiler_pic_CXX='-fPIC -shared'
19378 ;;
19379 osf3* | osf4* | osf5*)
19380 case $cc_basename in
19381 KCC*)
19382 lt_prog_compiler_wl_CXX='--backend -Wl,'
19383 ;;
19384 RCC*)
19385 # Rational C++ 2.4.1
19386 lt_prog_compiler_pic_CXX='-pic'
19387 ;;
19388 cxx*)
19389 # Digital/Compaq C++
19390 lt_prog_compiler_wl_CXX='-Wl,'
19391 # Make sure the PIC flag is empty. It appears that all Alpha
19392 # Linux and Compaq Tru64 Unix objects are PIC.
19393 lt_prog_compiler_pic_CXX=
19394 lt_prog_compiler_static_CXX='-non_shared'
19395 ;;
19396 *)
19397 ;;
19398 esac
19399 ;;
19400 psos*)
19401 ;;
19402 solaris*)
19403 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019404 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019405 # Sun C++ 4.2, 5.x and Centerline C++
19406 lt_prog_compiler_pic_CXX='-KPIC'
19407 lt_prog_compiler_static_CXX='-Bstatic'
19408 lt_prog_compiler_wl_CXX='-Qoption ld '
19409 ;;
19410 gcx*)
19411 # Green Hills C++ Compiler
19412 lt_prog_compiler_pic_CXX='-PIC'
19413 ;;
19414 *)
19415 ;;
19416 esac
19417 ;;
19418 sunos4*)
19419 case $cc_basename in
19420 CC*)
19421 # Sun C++ 4.x
19422 lt_prog_compiler_pic_CXX='-pic'
19423 lt_prog_compiler_static_CXX='-Bstatic'
19424 ;;
19425 lcc*)
19426 # Lucid
19427 lt_prog_compiler_pic_CXX='-pic'
19428 ;;
19429 *)
19430 ;;
19431 esac
19432 ;;
19433 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19434 case $cc_basename in
19435 CC*)
19436 lt_prog_compiler_wl_CXX='-Wl,'
19437 lt_prog_compiler_pic_CXX='-KPIC'
19438 lt_prog_compiler_static_CXX='-Bstatic'
19439 ;;
19440 esac
19441 ;;
19442 tandem*)
19443 case $cc_basename in
19444 NCC*)
19445 # NonStop-UX NCC 3.20
19446 lt_prog_compiler_pic_CXX='-KPIC'
19447 ;;
19448 *)
19449 ;;
19450 esac
19451 ;;
19452 vxworks*)
19453 ;;
19454 *)
19455 lt_prog_compiler_can_build_shared_CXX=no
19456 ;;
19457 esac
19458 fi
19459
19460case $host_os in
19461 # For platforms which do not support PIC, -DPIC is meaningless:
19462 *djgpp*)
19463 lt_prog_compiler_pic_CXX=
19464 ;;
19465 *)
19466 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19467 ;;
19468esac
cristy73bd4a52010-10-05 11:24:23 +000019469
cristyda16f162011-02-19 23:52:17 +000019470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19471$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19472if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19473 $as_echo_n "(cached) " >&6
19474else
19475 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19476fi
19477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19478$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19479lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019480
19481#
19482# Check to make sure the PIC flag actually works.
19483#
19484if test -n "$lt_prog_compiler_pic_CXX"; then
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19486$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019487if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019488 $as_echo_n "(cached) " >&6
19489else
19490 lt_cv_prog_compiler_pic_works_CXX=no
19491 ac_outfile=conftest.$ac_objext
19492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19493 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19494 # Insert the option either (1) after the last *FLAGS variable, or
19495 # (2) before a word containing "conftest.", or (3) at the end.
19496 # Note that $ac_compile itself does not contain backslashes and begins
19497 # with a dollar sign (not a hyphen), so the echo should work correctly.
19498 # The option is referenced via a variable to avoid confusing sed.
19499 lt_compile=`echo "$ac_compile" | $SED \
19500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19502 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019503 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019504 (eval "$lt_compile" 2>conftest.err)
19505 ac_status=$?
19506 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019508 if (exit $ac_status) && test -s "$ac_outfile"; then
19509 # The compiler can only warn and ignore the option if not recognized
19510 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19514 lt_cv_prog_compiler_pic_works_CXX=yes
19515 fi
19516 fi
19517 $RM conftest*
19518
19519fi
19520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19521$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19522
19523if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19524 case $lt_prog_compiler_pic_CXX in
19525 "" | " "*) ;;
19526 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19527 esac
19528else
19529 lt_prog_compiler_pic_CXX=
19530 lt_prog_compiler_can_build_shared_CXX=no
19531fi
19532
19533fi
19534
19535
19536
cristyda16f162011-02-19 23:52:17 +000019537
19538
cristy73bd4a52010-10-05 11:24:23 +000019539#
19540# Check to make sure the static flag actually works.
19541#
19542wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19544$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019545if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019546 $as_echo_n "(cached) " >&6
19547else
19548 lt_cv_prog_compiler_static_works_CXX=no
19549 save_LDFLAGS="$LDFLAGS"
19550 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19551 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19552 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19553 # The linker can only warn and ignore the option if not recognized
19554 # So say no if there are warnings
19555 if test -s conftest.err; then
19556 # Append any errors to the config.log.
19557 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019558 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19560 if diff conftest.exp conftest.er2 >/dev/null; then
19561 lt_cv_prog_compiler_static_works_CXX=yes
19562 fi
19563 else
19564 lt_cv_prog_compiler_static_works_CXX=yes
19565 fi
19566 fi
19567 $RM -r conftest*
19568 LDFLAGS="$save_LDFLAGS"
19569
19570fi
19571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19572$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19573
19574if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19575 :
19576else
19577 lt_prog_compiler_static_CXX=
19578fi
19579
19580
19581
19582
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19584$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019585if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019586 $as_echo_n "(cached) " >&6
19587else
19588 lt_cv_prog_compiler_c_o_CXX=no
19589 $RM -r conftest 2>/dev/null
19590 mkdir conftest
19591 cd conftest
19592 mkdir out
19593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19594
19595 lt_compiler_flag="-o out/conftest2.$ac_objext"
19596 # Insert the option either (1) after the last *FLAGS variable, or
19597 # (2) before a word containing "conftest.", or (3) at the end.
19598 # Note that $ac_compile itself does not contain backslashes and begins
19599 # with a dollar sign (not a hyphen), so the echo should work correctly.
19600 lt_compile=`echo "$ac_compile" | $SED \
19601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19603 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019605 (eval "$lt_compile" 2>out/conftest.err)
19606 ac_status=$?
19607 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019609 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19610 then
19611 # The compiler can only warn and ignore the option if not recognized
19612 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019613 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019614 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19615 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19616 lt_cv_prog_compiler_c_o_CXX=yes
19617 fi
19618 fi
19619 chmod u+w . 2>&5
19620 $RM conftest*
19621 # SGI C++ compiler will create directory out/ii_files/ for
19622 # template instantiation
19623 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19624 $RM out/* && rmdir out
19625 cd ..
19626 $RM -r conftest
19627 $RM conftest*
19628
19629fi
19630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19631$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19632
19633
19634
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19636$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019637if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019638 $as_echo_n "(cached) " >&6
19639else
19640 lt_cv_prog_compiler_c_o_CXX=no
19641 $RM -r conftest 2>/dev/null
19642 mkdir conftest
19643 cd conftest
19644 mkdir out
19645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19646
19647 lt_compiler_flag="-o out/conftest2.$ac_objext"
19648 # Insert the option either (1) after the last *FLAGS variable, or
19649 # (2) before a word containing "conftest.", or (3) at the end.
19650 # Note that $ac_compile itself does not contain backslashes and begins
19651 # with a dollar sign (not a hyphen), so the echo should work correctly.
19652 lt_compile=`echo "$ac_compile" | $SED \
19653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19655 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019657 (eval "$lt_compile" 2>out/conftest.err)
19658 ac_status=$?
19659 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19662 then
19663 # The compiler can only warn and ignore the option if not recognized
19664 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019666 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19667 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19668 lt_cv_prog_compiler_c_o_CXX=yes
19669 fi
19670 fi
19671 chmod u+w . 2>&5
19672 $RM conftest*
19673 # SGI C++ compiler will create directory out/ii_files/ for
19674 # template instantiation
19675 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19676 $RM out/* && rmdir out
19677 cd ..
19678 $RM -r conftest
19679 $RM conftest*
19680
19681fi
19682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19683$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19684
19685
19686
19687
19688hard_links="nottested"
19689if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19690 # do not overwrite the value of need_locks provided by the user
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19692$as_echo_n "checking if we can lock with hard links... " >&6; }
19693 hard_links=yes
19694 $RM conftest*
19695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19696 touch conftest.a
19697 ln conftest.a conftest.b 2>&5 || hard_links=no
19698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19700$as_echo "$hard_links" >&6; }
19701 if test "$hard_links" = no; then
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19703$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19704 need_locks=warn
19705 fi
19706else
19707 need_locks=no
19708fi
19709
19710
19711
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19713$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19714
19715 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019716 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019717 case $host_os in
19718 aix[4-9]*)
19719 # If we're using GNU nm, then we don't want the "-C" option.
19720 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019721 # Also, AIX nm treats weak defined symbols like other global defined
19722 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019723 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019724 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 +000019725 else
19726 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'
19727 fi
19728 ;;
19729 pw32*)
19730 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019731 ;;
cristy73bd4a52010-10-05 11:24:23 +000019732 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019733 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019734 cl*)
19735 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19736 ;;
cristyda16f162011-02-19 23:52:17 +000019737 *)
19738 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'
19739 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19740 ;;
19741 esac
19742 ;;
cristy73bd4a52010-10-05 11:24:23 +000019743 *)
19744 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019745 ;;
cristy73bd4a52010-10-05 11:24:23 +000019746 esac
cristy73bd4a52010-10-05 11:24:23 +000019747
19748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19749$as_echo "$ld_shlibs_CXX" >&6; }
19750test "$ld_shlibs_CXX" = no && can_build_shared=no
19751
19752with_gnu_ld_CXX=$with_gnu_ld
19753
19754
19755
19756
19757
19758
19759#
19760# Do we need to explicitly link libc?
19761#
19762case "x$archive_cmds_need_lc_CXX" in
19763x|xyes)
19764 # Assume -lc should be added
19765 archive_cmds_need_lc_CXX=yes
19766
19767 if test "$enable_shared" = yes && test "$GCC" = yes; then
19768 case $archive_cmds_CXX in
19769 *'~'*)
19770 # FIXME: we may have to deal with multi-command sequences.
19771 ;;
19772 '$CC '*)
19773 # Test whether the compiler implicitly links with -lc since on some
19774 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19775 # to ld, don't add -lc before -lgcc.
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19777$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019778if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019779 $as_echo_n "(cached) " >&6
19780else
19781 $RM conftest*
19782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019783
cristy0c60a692010-11-04 01:09:47 +000019784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019785 (eval $ac_compile) 2>&5
19786 ac_status=$?
19787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19788 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019789 soname=conftest
19790 lib=conftest
19791 libobjs=conftest.$ac_objext
19792 deplibs=
19793 wl=$lt_prog_compiler_wl_CXX
19794 pic_flag=$lt_prog_compiler_pic_CXX
19795 compiler_flags=-v
19796 linker_flags=-v
19797 verstring=
19798 output_objdir=.
19799 libname=conftest
19800 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19801 allow_undefined_flag_CXX=
19802 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 +000019803 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19804 ac_status=$?
19805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19806 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019807 then
19808 lt_cv_archive_cmds_need_lc_CXX=no
19809 else
19810 lt_cv_archive_cmds_need_lc_CXX=yes
19811 fi
19812 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19813 else
19814 cat conftest.err 1>&5
19815 fi
19816 $RM conftest*
19817
19818fi
19819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19820$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19821 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019822 ;;
19823 esac
19824 fi
19825 ;;
19826esac
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
19887
19888
cristy73bd4a52010-10-05 11:24:23 +000019889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19890$as_echo_n "checking dynamic linker characteristics... " >&6; }
19891
19892library_names_spec=
19893libname_spec='lib$name'
19894soname_spec=
19895shrext_cmds=".so"
19896postinstall_cmds=
19897postuninstall_cmds=
19898finish_cmds=
19899finish_eval=
19900shlibpath_var=
19901shlibpath_overrides_runpath=unknown
19902version_type=none
19903dynamic_linker="$host_os ld.so"
19904sys_lib_dlsearch_path_spec="/lib /usr/lib"
19905need_lib_prefix=unknown
19906hardcode_into_libs=no
19907
19908# when you set need_version to no, make sure it does not cause -set_version
19909# flags to be left without arguments
19910need_version=unknown
19911
19912case $host_os in
19913aix3*)
cristy99bd5232011-12-07 14:38:20 +000019914 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19916 shlibpath_var=LIBPATH
19917
19918 # AIX 3 has no versioning support, so we append a major version to the name.
19919 soname_spec='${libname}${release}${shared_ext}$major'
19920 ;;
19921
19922aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019923 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019924 need_lib_prefix=no
19925 need_version=no
19926 hardcode_into_libs=yes
19927 if test "$host_cpu" = ia64; then
19928 # AIX 5 supports IA64
19929 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19930 shlibpath_var=LD_LIBRARY_PATH
19931 else
19932 # With GCC up to 2.95.x, collect2 would create an import file
19933 # for dependence libraries. The import file would start with
19934 # the line `#! .'. This would cause the generated library to
19935 # depend on `.', always an invalid library. This was fixed in
19936 # development snapshots of GCC prior to 3.0.
19937 case $host_os in
19938 aix4 | aix4.[01] | aix4.[01].*)
19939 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19940 echo ' yes '
19941 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19942 :
19943 else
19944 can_build_shared=no
19945 fi
19946 ;;
19947 esac
19948 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19949 # soname into executable. Probably we can add versioning support to
19950 # collect2, so additional links can be useful in future.
19951 if test "$aix_use_runtimelinking" = yes; then
19952 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19953 # instead of lib<name>.a to let people know that these are not
19954 # typical AIX shared libraries.
19955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19956 else
19957 # We preserve .a as extension for shared libraries through AIX4.2
19958 # and later when we are not doing run time linking.
19959 library_names_spec='${libname}${release}.a $libname.a'
19960 soname_spec='${libname}${release}${shared_ext}$major'
19961 fi
19962 shlibpath_var=LIBPATH
19963 fi
19964 ;;
19965
19966amigaos*)
19967 case $host_cpu in
19968 powerpc)
19969 # Since July 2007 AmigaOS4 officially supports .so libraries.
19970 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19972 ;;
19973 m68k)
19974 library_names_spec='$libname.ixlibrary $libname.a'
19975 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019976 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 +000019977 ;;
19978 esac
19979 ;;
19980
19981beos*)
19982 library_names_spec='${libname}${shared_ext}'
19983 dynamic_linker="$host_os ld.so"
19984 shlibpath_var=LIBRARY_PATH
19985 ;;
19986
19987bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019988 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019989 need_version=no
19990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19991 soname_spec='${libname}${release}${shared_ext}$major'
19992 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19993 shlibpath_var=LD_LIBRARY_PATH
19994 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19995 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19996 # the default ld.so.conf also contains /usr/contrib/lib and
19997 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19998 # libtool to hard-code these into programs
19999 ;;
20000
20001cygwin* | mingw* | pw32* | cegcc*)
20002 version_type=windows
20003 shrext_cmds=".dll"
20004 need_version=no
20005 need_lib_prefix=no
20006
cristyda16f162011-02-19 23:52:17 +000020007 case $GCC,$cc_basename in
20008 yes,*)
20009 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020010 library_names_spec='$libname.dll.a'
20011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20012 postinstall_cmds='base_file=`basename \${file}`~
20013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20014 dldir=$destdir/`dirname \$dlpath`~
20015 test -d \$dldir || mkdir -p \$dldir~
20016 $install_prog $dir/$dlname \$dldir/$dlname~
20017 chmod a+x \$dldir/$dlname~
20018 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20019 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20020 fi'
20021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20022 dlpath=$dir/\$dldll~
20023 $RM \$dlpath'
20024 shlibpath_overrides_runpath=yes
20025
20026 case $host_os in
20027 cygwin*)
20028 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20029 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020030
cristy73bd4a52010-10-05 11:24:23 +000020031 ;;
20032 mingw* | cegcc*)
20033 # MinGW DLLs use traditional 'lib' prefix
20034 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020035 ;;
20036 pw32*)
20037 # pw32 DLLs use 'pw' prefix rather than 'lib'
20038 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20039 ;;
20040 esac
cristyda16f162011-02-19 23:52:17 +000020041 dynamic_linker='Win32 ld.exe'
20042 ;;
20043
20044 *,cl*)
20045 # Native MSVC
20046 libname_spec='$name'
20047 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20048 library_names_spec='${libname}.dll.lib'
20049
20050 case $build_os in
20051 mingw*)
20052 sys_lib_search_path_spec=
20053 lt_save_ifs=$IFS
20054 IFS=';'
20055 for lt_path in $LIB
20056 do
20057 IFS=$lt_save_ifs
20058 # Let DOS variable expansion print the short 8.3 style file name.
20059 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20060 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20061 done
20062 IFS=$lt_save_ifs
20063 # Convert to MSYS style.
20064 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20065 ;;
20066 cygwin*)
20067 # Convert to unix form, then to dos form, then back to unix form
20068 # but this time dos style (no spaces!) so that the unix form looks
20069 # like /cygdrive/c/PROGRA~1:/cygdr...
20070 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20071 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20072 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20073 ;;
20074 *)
20075 sys_lib_search_path_spec="$LIB"
20076 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20077 # It is most probably a Windows format PATH.
20078 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20079 else
20080 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20081 fi
20082 # FIXME: find the short name or the path components, as spaces are
20083 # common. (e.g. "Program Files" -> "PROGRA~1")
20084 ;;
20085 esac
20086
20087 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20088 postinstall_cmds='base_file=`basename \${file}`~
20089 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20090 dldir=$destdir/`dirname \$dlpath`~
20091 test -d \$dldir || mkdir -p \$dldir~
20092 $install_prog $dir/$dlname \$dldir/$dlname'
20093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20094 dlpath=$dir/\$dldll~
20095 $RM \$dlpath'
20096 shlibpath_overrides_runpath=yes
20097 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020098 ;;
20099
20100 *)
cristyda16f162011-02-19 23:52:17 +000020101 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020102 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020103 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020104 ;;
20105 esac
cristy73bd4a52010-10-05 11:24:23 +000020106 # FIXME: first we should search . and the directory the executable is in
20107 shlibpath_var=PATH
20108 ;;
20109
20110darwin* | rhapsody*)
20111 dynamic_linker="$host_os dyld"
20112 version_type=darwin
20113 need_lib_prefix=no
20114 need_version=no
20115 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20116 soname_spec='${libname}${release}${major}$shared_ext'
20117 shlibpath_overrides_runpath=yes
20118 shlibpath_var=DYLD_LIBRARY_PATH
20119 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20120
20121 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20122 ;;
20123
20124dgux*)
cristy99bd5232011-12-07 14:38:20 +000020125 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020126 need_lib_prefix=no
20127 need_version=no
20128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20129 soname_spec='${libname}${release}${shared_ext}$major'
20130 shlibpath_var=LD_LIBRARY_PATH
20131 ;;
20132
cristy73bd4a52010-10-05 11:24:23 +000020133freebsd* | dragonfly*)
20134 # DragonFly does not have aout. When/if they implement a new
20135 # versioning mechanism, adjust this.
20136 if test -x /usr/bin/objformat; then
20137 objformat=`/usr/bin/objformat`
20138 else
20139 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020140 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020141 *) objformat=elf ;;
20142 esac
20143 fi
20144 version_type=freebsd-$objformat
20145 case $version_type in
20146 freebsd-elf*)
20147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20148 need_version=no
20149 need_lib_prefix=no
20150 ;;
20151 freebsd-*)
20152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20153 need_version=yes
20154 ;;
20155 esac
20156 shlibpath_var=LD_LIBRARY_PATH
20157 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020158 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020159 shlibpath_overrides_runpath=yes
20160 ;;
20161 freebsd3.[01]* | freebsdelf3.[01]*)
20162 shlibpath_overrides_runpath=yes
20163 hardcode_into_libs=yes
20164 ;;
20165 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20166 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20167 shlibpath_overrides_runpath=no
20168 hardcode_into_libs=yes
20169 ;;
20170 *) # from 4.6 on, and DragonFly
20171 shlibpath_overrides_runpath=yes
20172 hardcode_into_libs=yes
20173 ;;
20174 esac
20175 ;;
20176
20177gnu*)
cristy99bd5232011-12-07 14:38:20 +000020178 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020179 need_lib_prefix=no
20180 need_version=no
20181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20182 soname_spec='${libname}${release}${shared_ext}$major'
20183 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020184 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020185 hardcode_into_libs=yes
20186 ;;
20187
cristy0c60a692010-11-04 01:09:47 +000020188haiku*)
cristy99bd5232011-12-07 14:38:20 +000020189 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020190 need_lib_prefix=no
20191 need_version=no
20192 dynamic_linker="$host_os runtime_loader"
20193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20194 soname_spec='${libname}${release}${shared_ext}$major'
20195 shlibpath_var=LIBRARY_PATH
20196 shlibpath_overrides_runpath=yes
20197 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20198 hardcode_into_libs=yes
20199 ;;
20200
cristy73bd4a52010-10-05 11:24:23 +000020201hpux9* | hpux10* | hpux11*)
20202 # Give a soname corresponding to the major version so that dld.sl refuses to
20203 # link against other versions.
20204 version_type=sunos
20205 need_lib_prefix=no
20206 need_version=no
20207 case $host_cpu in
20208 ia64*)
20209 shrext_cmds='.so'
20210 hardcode_into_libs=yes
20211 dynamic_linker="$host_os dld.so"
20212 shlibpath_var=LD_LIBRARY_PATH
20213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20215 soname_spec='${libname}${release}${shared_ext}$major'
20216 if test "X$HPUX_IA64_MODE" = X32; then
20217 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20218 else
20219 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20220 fi
20221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20222 ;;
20223 hppa*64*)
20224 shrext_cmds='.sl'
20225 hardcode_into_libs=yes
20226 dynamic_linker="$host_os dld.sl"
20227 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20230 soname_spec='${libname}${release}${shared_ext}$major'
20231 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20232 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20233 ;;
20234 *)
20235 shrext_cmds='.sl'
20236 dynamic_linker="$host_os dld.sl"
20237 shlibpath_var=SHLIB_PATH
20238 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20240 soname_spec='${libname}${release}${shared_ext}$major'
20241 ;;
20242 esac
cristy0c60a692010-11-04 01:09:47 +000020243 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020244 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020245 # or fails outright, so override atomically:
20246 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020247 ;;
20248
20249interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020250 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020251 need_lib_prefix=no
20252 need_version=no
20253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20254 soname_spec='${libname}${release}${shared_ext}$major'
20255 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20256 shlibpath_var=LD_LIBRARY_PATH
20257 shlibpath_overrides_runpath=no
20258 hardcode_into_libs=yes
20259 ;;
20260
20261irix5* | irix6* | nonstopux*)
20262 case $host_os in
20263 nonstopux*) version_type=nonstopux ;;
20264 *)
20265 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020266 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020267 else
20268 version_type=irix
20269 fi ;;
20270 esac
20271 need_lib_prefix=no
20272 need_version=no
20273 soname_spec='${libname}${release}${shared_ext}$major'
20274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20275 case $host_os in
20276 irix5* | nonstopux*)
20277 libsuff= shlibsuff=
20278 ;;
20279 *)
20280 case $LD in # libtool.m4 will add one of these switches to LD
20281 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20282 libsuff= shlibsuff= libmagic=32-bit;;
20283 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20284 libsuff=32 shlibsuff=N32 libmagic=N32;;
20285 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20286 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20287 *) libsuff= shlibsuff= libmagic=never-match;;
20288 esac
20289 ;;
20290 esac
20291 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20292 shlibpath_overrides_runpath=no
20293 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20294 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20295 hardcode_into_libs=yes
20296 ;;
20297
20298# No shared lib support for Linux oldld, aout, or coff.
20299linux*oldld* | linux*aout* | linux*coff*)
20300 dynamic_linker=no
20301 ;;
20302
cristy99bd5232011-12-07 14:38:20 +000020303# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020304linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020305 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020306 need_lib_prefix=no
20307 need_version=no
20308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20309 soname_spec='${libname}${release}${shared_ext}$major'
20310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20311 shlibpath_var=LD_LIBRARY_PATH
20312 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020313
cristy73bd4a52010-10-05 11:24:23 +000020314 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020315 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020316 $as_echo_n "(cached) " >&6
20317else
20318 lt_cv_shlibpath_overrides_runpath=no
20319 save_LDFLAGS=$LDFLAGS
20320 save_libdir=$libdir
20321 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20322 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020324/* end confdefs.h. */
20325
20326int
20327main ()
20328{
20329
20330 ;
20331 return 0;
20332}
20333_ACEOF
20334if ac_fn_cxx_try_link "$LINENO"; then :
20335 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020336 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020337fi
20338fi
20339rm -f core conftest.err conftest.$ac_objext \
20340 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020341 LDFLAGS=$save_LDFLAGS
20342 libdir=$save_libdir
20343
20344fi
20345
20346 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020347
20348 # This implies no fast_install, which is unacceptable.
20349 # Some rework will be needed to allow for fast_install
20350 # before this can be enabled.
20351 hardcode_into_libs=yes
20352
20353 # Add ABI-specific directories to the system library path.
20354 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20355
20356 # Append ld.so.conf contents to the search path
20357 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020358 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 +000020359 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020360
cristy73bd4a52010-10-05 11:24:23 +000020361 fi
20362
20363 # We used to test for /lib/ld.so.1 and disable shared libraries on
20364 # powerpc, because MkLinux only supported shared libraries with the
20365 # GNU dynamic linker. Since this was broken with cross compilers,
20366 # most powerpc-linux boxes support dynamic linking these days and
20367 # people can always --disable-shared, the test was removed, and we
20368 # assume the GNU/Linux dynamic linker is in use.
20369 dynamic_linker='GNU/Linux ld.so'
20370 ;;
20371
20372netbsd*)
20373 version_type=sunos
20374 need_lib_prefix=no
20375 need_version=no
20376 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20379 dynamic_linker='NetBSD (a.out) ld.so'
20380 else
20381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20382 soname_spec='${libname}${release}${shared_ext}$major'
20383 dynamic_linker='NetBSD ld.elf_so'
20384 fi
20385 shlibpath_var=LD_LIBRARY_PATH
20386 shlibpath_overrides_runpath=yes
20387 hardcode_into_libs=yes
20388 ;;
20389
20390newsos6)
cristy99bd5232011-12-07 14:38:20 +000020391 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20393 shlibpath_var=LD_LIBRARY_PATH
20394 shlibpath_overrides_runpath=yes
20395 ;;
20396
20397*nto* | *qnx*)
20398 version_type=qnx
20399 need_lib_prefix=no
20400 need_version=no
20401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20402 soname_spec='${libname}${release}${shared_ext}$major'
20403 shlibpath_var=LD_LIBRARY_PATH
20404 shlibpath_overrides_runpath=no
20405 hardcode_into_libs=yes
20406 dynamic_linker='ldqnx.so'
20407 ;;
20408
20409openbsd*)
20410 version_type=sunos
20411 sys_lib_dlsearch_path_spec="/usr/lib"
20412 need_lib_prefix=no
20413 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20414 case $host_os in
20415 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20416 *) need_version=no ;;
20417 esac
20418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20420 shlibpath_var=LD_LIBRARY_PATH
20421 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20422 case $host_os in
20423 openbsd2.[89] | openbsd2.[89].*)
20424 shlibpath_overrides_runpath=no
20425 ;;
20426 *)
20427 shlibpath_overrides_runpath=yes
20428 ;;
20429 esac
20430 else
20431 shlibpath_overrides_runpath=yes
20432 fi
20433 ;;
20434
20435os2*)
20436 libname_spec='$name'
20437 shrext_cmds=".dll"
20438 need_lib_prefix=no
20439 library_names_spec='$libname${shared_ext} $libname.a'
20440 dynamic_linker='OS/2 ld.exe'
20441 shlibpath_var=LIBPATH
20442 ;;
20443
20444osf3* | osf4* | osf5*)
20445 version_type=osf
20446 need_lib_prefix=no
20447 need_version=no
20448 soname_spec='${libname}${release}${shared_ext}$major'
20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20450 shlibpath_var=LD_LIBRARY_PATH
20451 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20452 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20453 ;;
20454
20455rdos*)
20456 dynamic_linker=no
20457 ;;
20458
20459solaris*)
cristy99bd5232011-12-07 14:38:20 +000020460 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020461 need_lib_prefix=no
20462 need_version=no
20463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20464 soname_spec='${libname}${release}${shared_ext}$major'
20465 shlibpath_var=LD_LIBRARY_PATH
20466 shlibpath_overrides_runpath=yes
20467 hardcode_into_libs=yes
20468 # ldd complains unless libraries are executable
20469 postinstall_cmds='chmod +x $lib'
20470 ;;
20471
20472sunos4*)
20473 version_type=sunos
20474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20475 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20476 shlibpath_var=LD_LIBRARY_PATH
20477 shlibpath_overrides_runpath=yes
20478 if test "$with_gnu_ld" = yes; then
20479 need_lib_prefix=no
20480 fi
20481 need_version=yes
20482 ;;
20483
20484sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020485 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20487 soname_spec='${libname}${release}${shared_ext}$major'
20488 shlibpath_var=LD_LIBRARY_PATH
20489 case $host_vendor in
20490 sni)
20491 shlibpath_overrides_runpath=no
20492 need_lib_prefix=no
20493 runpath_var=LD_RUN_PATH
20494 ;;
20495 siemens)
20496 need_lib_prefix=no
20497 ;;
20498 motorola)
20499 need_lib_prefix=no
20500 need_version=no
20501 shlibpath_overrides_runpath=no
20502 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20503 ;;
20504 esac
20505 ;;
20506
20507sysv4*MP*)
20508 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020509 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020510 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20511 soname_spec='$libname${shared_ext}.$major'
20512 shlibpath_var=LD_LIBRARY_PATH
20513 fi
20514 ;;
20515
20516sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20517 version_type=freebsd-elf
20518 need_lib_prefix=no
20519 need_version=no
20520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20521 soname_spec='${libname}${release}${shared_ext}$major'
20522 shlibpath_var=LD_LIBRARY_PATH
20523 shlibpath_overrides_runpath=yes
20524 hardcode_into_libs=yes
20525 if test "$with_gnu_ld" = yes; then
20526 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20527 else
20528 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20529 case $host_os in
20530 sco3.2v5*)
20531 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20532 ;;
20533 esac
20534 fi
20535 sys_lib_dlsearch_path_spec='/usr/lib'
20536 ;;
20537
20538tpf*)
20539 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020540 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020541 need_lib_prefix=no
20542 need_version=no
20543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20544 shlibpath_var=LD_LIBRARY_PATH
20545 shlibpath_overrides_runpath=no
20546 hardcode_into_libs=yes
20547 ;;
20548
20549uts4*)
cristy99bd5232011-12-07 14:38:20 +000020550 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20552 soname_spec='${libname}${release}${shared_ext}$major'
20553 shlibpath_var=LD_LIBRARY_PATH
20554 ;;
20555
20556*)
20557 dynamic_linker=no
20558 ;;
20559esac
20560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20561$as_echo "$dynamic_linker" >&6; }
20562test "$dynamic_linker" = no && can_build_shared=no
20563
20564variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20565if test "$GCC" = yes; then
20566 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20567fi
20568
20569if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20570 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20571fi
20572if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20573 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20574fi
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
20609
20610
cristy0c60a692010-11-04 01:09:47 +000020611
20612
cristy73bd4a52010-10-05 11:24:23 +000020613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20614$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20615hardcode_action_CXX=
20616if test -n "$hardcode_libdir_flag_spec_CXX" ||
20617 test -n "$runpath_var_CXX" ||
20618 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20619
20620 # We can hardcode non-existent directories.
20621 if test "$hardcode_direct_CXX" != no &&
20622 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20623 # have to relink, otherwise we might link with an installed library
20624 # when we should be linking with a yet-to-be-installed one
20625 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20626 test "$hardcode_minus_L_CXX" != no; then
20627 # Linking always hardcodes the temporary library directory.
20628 hardcode_action_CXX=relink
20629 else
20630 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20631 hardcode_action_CXX=immediate
20632 fi
20633else
20634 # We cannot hardcode anything, or else we can only hardcode existing
20635 # directories.
20636 hardcode_action_CXX=unsupported
20637fi
20638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20639$as_echo "$hardcode_action_CXX" >&6; }
20640
20641if test "$hardcode_action_CXX" = relink ||
20642 test "$inherit_rpath_CXX" = yes; then
20643 # Fast installation is not supported
20644 enable_fast_install=no
20645elif test "$shlibpath_overrides_runpath" = yes ||
20646 test "$enable_shared" = no; then
20647 # Fast installation is not necessary
20648 enable_fast_install=needless
20649fi
20650
20651
20652
20653
20654
20655
20656
20657 fi # test -n "$compiler"
20658
20659 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020660 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020661 LDCXX=$LD
20662 LD=$lt_save_LD
20663 GCC=$lt_save_GCC
20664 with_gnu_ld=$lt_save_with_gnu_ld
20665 lt_cv_path_LDCXX=$lt_cv_path_LD
20666 lt_cv_path_LD=$lt_save_path_LD
20667 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20668 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20669fi # test "$_lt_caught_CXX_error" != yes
20670
20671ac_ext=c
20672ac_cpp='$CPP $CPPFLAGS'
20673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20675ac_compiler_gnu=$ac_cv_c_compiler_gnu
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
cristy99bd5232011-12-07 14:38:20 +000020689
20690
cristy73bd4a52010-10-05 11:24:23 +000020691 ac_config_commands="$ac_config_commands libtool"
20692
20693
20694
20695
20696# Only expand once:
20697
20698
20699
cristy3ed852e2009-09-05 21:47:34 +000020700
20701
cristy3ed852e2009-09-05 21:47:34 +000020702# Check to see if building shared libraries
20703libtool_build_shared_libs='no'
20704if test "$enable_shared" = 'yes'; then
20705 libtool_build_shared_libs='yes'
20706fi
20707
20708# Check to see if building static libraries
20709libtool_build_static_libs='no'
20710if test "$enable_static" = 'yes'; then
20711 libtool_build_static_libs='yes'
20712fi
20713
cristy73bd4a52010-10-05 11:24:23 +000020714 if test "${libtool_build_shared_libs}" = 'yes'; then
20715 WITH_SHARED_LIBS_TRUE=
20716 WITH_SHARED_LIBS_FALSE='#'
20717else
20718 WITH_SHARED_LIBS_TRUE='#'
20719 WITH_SHARED_LIBS_FALSE=
20720fi
20721
cristy3ed852e2009-09-05 21:47:34 +000020722#
20723# Enable support for building loadable modules
20724#
cristyaf4cbf32012-10-16 23:47:41 +000020725build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020726
20727# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020728if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020729 withval=$with_modules; with_modules=$withval
20730else
cristy5a1cefd2010-01-06 20:42:35 +000020731 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020732fi
20733
20734
20735# Only allow building loadable modules if we are building shared libraries
20736if test "$with_modules" != 'no' ; then
20737 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020738 { $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 +000020739$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020740 build_modules='no'
20741 else
20742 build_modules='yes'
20743 fi
cristy3ed852e2009-09-05 21:47:34 +000020744fi
cristyc6722092012-10-14 00:19:31 +000020745if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020746
cristy8b350f62009-11-15 23:12:43 +000020747$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020748
cristyfa161182012-12-19 15:45:28 +000020749 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020750fi
cristyc6722092012-10-14 00:19:31 +000020751 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020752 WITH_MODULES_TRUE=
20753 WITH_MODULES_FALSE='#'
20754else
20755 WITH_MODULES_TRUE='#'
20756 WITH_MODULES_FALSE=
20757fi
20758
cristy3ed852e2009-09-05 21:47:34 +000020759
cristy3ed852e2009-09-05 21:47:34 +000020760# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020761# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020762# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020763if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020764 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20765else
20766 enable_delegate_build='no'
20767fi
20768
20769
20770# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020771if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020772 enableval=$enable_deprecated; enable_deprecated=$enableval
20773else
20774 enable_deprecated='no'
20775fi
20776
20777
20778if test "$enable_deprecated" = 'yes'; then
20779
cristy8b350f62009-11-15 23:12:43 +000020780$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020781
20782else
20783 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20784fi
20785
20786# Build a version of ImageMagick which operates uninstalled.
20787# Used to build distributions located via MAGICK_HOME / executable path
20788# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020789if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020790 enableval=$enable_installed; enable_installed=$enableval
20791else
20792 enable_installed='yes'
20793fi
20794
20795
20796if test "$enable_installed" = 'yes'; then
20797
cristy8b350f62009-11-15 23:12:43 +000020798$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020799
20800else
20801 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20802fi
20803
20804# Permit enciphering and deciphering image pixels.
20805# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020806if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020807 enableval=$enable_cipher; enable_cipher=$enableval
20808else
20809 enable_cipher='yes'
20810fi
20811
20812
20813if test "$enable_cipher" = 'yes'; then
20814
cristy8b350f62009-11-15 23:12:43 +000020815$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020816
20817fi
20818
cristy6e3607c2011-09-13 13:59:17 +000020819# Build a zero-configuration version of ImageMagick.
20820# Check whether --enable-zero-configuration was given.
20821if test "${enable_zero_configuration+set}" = set; then :
20822 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020823else
cristy6e3607c2011-09-13 13:59:17 +000020824 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020825fi
20826
20827
cristy6e3607c2011-09-13 13:59:17 +000020828if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020829
cristy6e3607c2011-09-13 13:59:17 +000020830$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020831
cristy81af5702011-09-13 14:20:58 +000020832 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020833fi
20834
20835# Build a high dynamic range version of ImageMagick.
20836# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020837if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020838 enableval=$enable_hdri; enable_hdri=$enableval
20839else
cristy191c0b72012-08-12 16:29:52 +000020840 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020841fi
20842
20843
20844MAGICK_HDRI=""
20845if test "$enable_hdri" = 'yes'; then
20846 MAGICK_HDRI="HDRI"
20847
cristy8b350f62009-11-15 23:12:43 +000020848$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020849
cristyfd9dcd42010-08-08 18:07:02 +000020850 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020851fi
20852
cristy3ed852e2009-09-05 21:47:34 +000020853# Build a version of ImageMagick with assert statements.
20854# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020855if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020856 enableval=$enable_assert; enable_assert=$enableval
20857else
20858 enable_assert='yes'
20859fi
20860
20861
20862if test "$enable_assert" = 'no'; then
20863
cristy8b350f62009-11-15 23:12:43 +000020864$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020865
20866fi
20867
cristya448bd22011-10-14 12:38:13 +000020868# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000020869
20870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20871$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20872 # Check whether --enable-maintainer-mode was given.
20873if test "${enable_maintainer_mode+set}" = set; then :
20874 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20875else
20876 USE_MAINTAINER_MODE=no
20877fi
20878
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20880$as_echo "$USE_MAINTAINER_MODE" >&6; }
20881 if test $USE_MAINTAINER_MODE = yes; then
20882 MAINTAINER_MODE_TRUE=
20883 MAINTAINER_MODE_FALSE='#'
20884else
20885 MAINTAINER_MODE_TRUE='#'
20886 MAINTAINER_MODE_FALSE=
20887fi
20888
20889 MAINT=$MAINTAINER_MODE_TRUE
20890
20891
cristy3ed852e2009-09-05 21:47:34 +000020892
cristy3ed852e2009-09-05 21:47:34 +000020893# Enable ccmalloc memory debugging support
20894# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020895if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020896 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20897else
20898 enable_ccmalloc='no'
20899fi
20900
20901
20902# Enable Electric Fence memory debugging support
20903# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020904if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020905 enableval=$enable_efence; enable_efence=$enableval
20906else
20907 enable_efence='no'
20908fi
20909
20910
20911# Enable prof-based profiling support
20912# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020913if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020914 enableval=$enable_prof; enable_prof=$enableval
20915else
20916 enable_prof='no'
20917fi
20918
20919
20920# Enable gprof-based profiling support
20921# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020922if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020923 enableval=$enable_gprof; enable_gprof=$enableval
20924else
20925 enable_gprof='no'
20926fi
20927
20928
20929# Enable gcov-based profiling support
20930# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020931if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020932 enableval=$enable_gcov; enable_gcov=$enableval
20933else
20934 enable_gcov='no'
20935fi
20936
20937
20938enable_profiling='no'
20939if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20940 enable_profiling='yes'
20941 if test "$libtool_build_shared_libs" = 'yes'; then
20942 echo "Warning: Can not profile code using shared libraries"
20943 fi
20944fi
20945
20946# Magick API method prefix
20947
20948# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020949if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000020950 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000020951else
cristyfc3d0222012-02-07 15:05:57 +000020952 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000020953fi
20954
20955
cristyfc3d0222012-02-07 15:05:57 +000020956if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000020957
20958cat >>confdefs.h <<_ACEOF
20959#define NAMESPACE_PREFIX $with_method_prefix
20960_ACEOF
20961
cristyfc3d0222012-02-07 15:05:57 +000020962 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000020963fi
20964
cristy71d8c202012-03-20 17:05:01 +000020965# Enable legacy support (default no)
20966# Check whether --enable-legacy-support was given.
20967if test "${enable_legacy_support+set}" = set; then :
20968 enableval=$enable_legacy_support; with_legacy_support=$enableval
20969else
20970 with_legacy_support='no'
20971fi
20972
20973 if test "$with_legacy_support" != 'no'; then
20974 LEGACY_SUPPORT_TRUE=
20975 LEGACY_SUPPORT_FALSE='#'
20976else
20977 LEGACY_SUPPORT_TRUE='#'
20978 LEGACY_SUPPORT_FALSE=
20979fi
20980
20981
cristy3ed852e2009-09-05 21:47:34 +000020982# Number of bits in a Quantum
20983
20984# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020985if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020986 withval=$with_quantum_depth; with_quantum_depth=$withval
20987else
20988 with_quantum_depth=16
20989fi
20990
20991
20992if test "$with_quantum_depth" != '8'; then
20993 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20994fi
20995
20996case "${with_quantum_depth}" in
20997 8 ) ;;
20998 16 ) ;;
20999 32 ) ;;
21000 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021001 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021002esac
21003QUANTUM_DEPTH="$with_quantum_depth"
21004
21005cat >>confdefs.h <<_ACEOF
21006#define QUANTUM_DEPTH $QUANTUM_DEPTH
21007_ACEOF
21008
21009
cristy01ff9f32012-12-01 18:15:29 +000021010# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021011MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021012if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021013 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021014fi
cristy01ff9f32012-12-01 18:15:29 +000021015
21016
cristy3ed852e2009-09-05 21:47:34 +000021017# Set pixel cache threshold
21018
21019# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021020if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021021 withval=$with_cache; with_cache=$withval
21022else
21023 with_cache=''
21024fi
21025
21026
21027if test "$with_cache" != ''; then
21028
21029cat >>confdefs.h <<_ACEOF
21030#define PixelCacheThreshold $with_cache
21031_ACEOF
21032
21033 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21034fi
21035
21036# Disable/Enable support for full delegate paths
21037
21038# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021039if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021040 withval=$with_frozenpaths; with_frozenpaths=$withval
21041else
21042 with_frozenpaths='no'
21043fi
21044
21045
21046# Enable build/install of Magick++
21047
21048# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021049if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021050 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21051else
21052 with_magick_plus_plus='yes'
21053fi
21054
21055
cristy3a75f062012-09-08 23:29:40 +000021056# Encode the this name into the shared library.
21057
21058# Check whether --with-package-release-name was given.
21059if test "${with_package_release_name+set}" = set; then :
21060 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21061fi
21062
21063
21064
cristy3ed852e2009-09-05 21:47:34 +000021065# Disable build/install of PerlMagick.
21066
21067# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021068if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021069 withval=$with_perl; with_perl=$withval
21070else
cristyb5f4e2f2010-04-25 00:49:11 +000021071 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021072fi
21073
21074
21075# Options to pass when configuring PerlMagick
21076
21077# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021078if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021079 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021080fi
21081
21082
cristy3ed852e2009-09-05 21:47:34 +000021083
21084# Enable umem, object-caching memory allocation library.
21085
21086# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021087if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021088 withval=$with_umem; with_umem=$withval
21089else
21090 with_umem='no'
21091fi
21092
21093if test "$with_umem" != 'yes' ; then
21094 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21095fi
21096
21097#
21098# Specify path to shared libstdc++ if not in normal location
21099#
21100
21101# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021102if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021103 withval=$with_libstdc; with_libstdc=$withval
21104else
21105 with_libstdc=''
21106fi
21107
21108
21109if test "$with_libstdc" != ''; then
21110 if test -d "$with_libstdc"; then
21111 LIBSTDCLDFLAGS="-L$with_libstdc"
21112 fi
21113fi
21114
21115
21116# Does gcc required -traditional?
21117if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021119$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021120if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021121 $as_echo_n "(cached) " >&6
21122else
21123 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021125/* end confdefs.h. */
21126#include <sgtty.h>
21127Autoconf TIOCGETP
21128_ACEOF
21129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021130 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021131 ac_cv_prog_gcc_traditional=yes
21132else
21133 ac_cv_prog_gcc_traditional=no
21134fi
21135rm -f conftest*
21136
21137
21138 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021140/* end confdefs.h. */
21141#include <termio.h>
21142Autoconf TCGETA
21143_ACEOF
21144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021145 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021146 ac_cv_prog_gcc_traditional=yes
21147fi
21148rm -f conftest*
21149
21150 fi
21151fi
cristy8b350f62009-11-15 23:12:43 +000021152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021153$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21154 if test $ac_cv_prog_gcc_traditional = yes; then
21155 CC="$CC -traditional"
21156 fi
21157fi
21158
21159
21160########
21161#
21162# Set defines required to build DLLs and modules using MinGW
21163#
21164########
21165# These options are set for multi-thread DLL module build
21166# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21167# module: _DLL
21168# executable/Magick++: _DLL _MAGICKMOD_
21169MODULE_EXTRA_CPPFLAGS=''
21170LIBRARY_EXTRA_CPPFLAGS=''
21171if test "${native_win32_build}" = 'yes'; then
21172 if test "${libtool_build_shared_libs}" = 'yes'; then
21173 CPPFLAGS="$CPPFLAGS -D_DLL"
21174 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21175 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21176 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021177 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021178 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21179 else
21180 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21181 fi
21182 else
21183 CPPFLAGS="$CPPFLAGS -D_LIB"
21184 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21185 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21186 fi
21187 if test "$with_threads" = 'yes'; then
21188 CPPFLAGS="$CPPFLAGS -D_MT"
21189 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21190 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21191 fi
21192fi
21193
21194
21195
21196# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021198$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021199if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021200 $as_echo_n "(cached) " >&6
21201else
cristy8b350f62009-11-15 23:12:43 +000021202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021203/* end confdefs.h. */
21204#include <stdlib.h>
21205#include <stdarg.h>
21206#include <string.h>
21207#include <float.h>
21208
21209int
21210main ()
21211{
21212
21213 ;
21214 return 0;
21215}
21216_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021217if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021218 ac_cv_header_stdc=yes
21219else
cristy8b350f62009-11-15 23:12:43 +000021220 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021221fi
cristy3ed852e2009-09-05 21:47:34 +000021222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21223
21224if test $ac_cv_header_stdc = yes; then
21225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021227/* end confdefs.h. */
21228#include <string.h>
21229
21230_ACEOF
21231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021232 $EGREP "memchr" >/dev/null 2>&1; then :
21233
cristy3ed852e2009-09-05 21:47:34 +000021234else
21235 ac_cv_header_stdc=no
21236fi
21237rm -f conftest*
21238
21239fi
21240
21241if test $ac_cv_header_stdc = yes; then
21242 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021244/* end confdefs.h. */
21245#include <stdlib.h>
21246
21247_ACEOF
21248if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021249 $EGREP "free" >/dev/null 2>&1; then :
21250
cristy3ed852e2009-09-05 21:47:34 +000021251else
21252 ac_cv_header_stdc=no
21253fi
21254rm -f conftest*
21255
21256fi
21257
21258if test $ac_cv_header_stdc = yes; then
21259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021260 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021261 :
21262else
cristy8b350f62009-11-15 23:12:43 +000021263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021264/* end confdefs.h. */
21265#include <ctype.h>
21266#include <stdlib.h>
21267#if ((' ' & 0x0FF) == 0x020)
21268# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21269# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21270#else
21271# define ISLOWER(c) \
21272 (('a' <= (c) && (c) <= 'i') \
21273 || ('j' <= (c) && (c) <= 'r') \
21274 || ('s' <= (c) && (c) <= 'z'))
21275# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21276#endif
21277
21278#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21279int
21280main ()
21281{
21282 int i;
21283 for (i = 0; i < 256; i++)
21284 if (XOR (islower (i), ISLOWER (i))
21285 || toupper (i) != TOUPPER (i))
21286 return 2;
21287 return 0;
21288}
21289_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021290if ac_fn_c_try_run "$LINENO"; then :
21291
cristy3ed852e2009-09-05 21:47:34 +000021292else
cristy8b350f62009-11-15 23:12:43 +000021293 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021294fi
cristy8b350f62009-11-15 23:12:43 +000021295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21296 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021297fi
21298
cristy3ed852e2009-09-05 21:47:34 +000021299fi
21300fi
cristy8b350f62009-11-15 23:12:43 +000021301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021302$as_echo "$ac_cv_header_stdc" >&6; }
21303if test $ac_cv_header_stdc = yes; then
21304
cristy8b350f62009-11-15 23:12:43 +000021305$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021306
21307fi
21308
21309if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021310 { $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 +000021311 header files. Compilation cannot proceed. Please install the ANSI C
21312 headers and rerun this script." >&5
21313$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21314 header files. Compilation cannot proceed. Please install the ANSI C
21315 headers and rerun this script." >&2;};
21316fi
cristya0b81c32010-01-22 02:54:33 +000021317
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21319$as_echo_n "checking whether to enable assertions... " >&6; }
21320 # Check whether --enable-assert was given.
21321if test "${enable_assert+set}" = set; then :
21322 enableval=$enable_assert; ac_enable_assert=$enableval
21323 if test "x$enableval" = xno; then :
21324
21325$as_echo "#define NDEBUG 1" >>confdefs.h
21326
21327elif test "x$enableval" != xyes; then :
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21329$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21330 ac_enable_assert=yes
21331fi
21332else
21333 ac_enable_assert=yes
21334fi
21335
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21337$as_echo "$ac_enable_assert" >&6; }
21338
cristy3ed852e2009-09-05 21:47:34 +000021339ac_header_dirent=no
21340for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21341 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021343$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021344if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021345 $as_echo_n "(cached) " >&6
21346else
cristy8b350f62009-11-15 23:12:43 +000021347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021348/* end confdefs.h. */
21349#include <sys/types.h>
21350#include <$ac_hdr>
21351
21352int
21353main ()
21354{
21355if ((DIR *) 0)
21356return 0;
21357 ;
21358 return 0;
21359}
21360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021361if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021362 eval "$as_ac_Header=yes"
21363else
cristy8b350f62009-11-15 23:12:43 +000021364 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021365fi
cristy3ed852e2009-09-05 21:47:34 +000021366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21367fi
cristy8b350f62009-11-15 23:12:43 +000021368eval ac_res=\$$as_ac_Header
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021370$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021371if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021372 cat >>confdefs.h <<_ACEOF
21373#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21374_ACEOF
21375
21376ac_header_dirent=$ac_hdr; break
21377fi
21378
21379done
21380# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21381if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021383$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021384if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021385 $as_echo_n "(cached) " >&6
21386else
21387 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021389/* end confdefs.h. */
21390
21391/* Override any GCC internal prototype to avoid an error.
21392 Use char because int might match the return type of a GCC
21393 builtin and then its argument prototype would still apply. */
21394#ifdef __cplusplus
21395extern "C"
21396#endif
21397char opendir ();
21398int
21399main ()
21400{
21401return opendir ();
21402 ;
21403 return 0;
21404}
21405_ACEOF
21406for ac_lib in '' dir; do
21407 if test -z "$ac_lib"; then
21408 ac_res="none required"
21409 else
21410 ac_res=-l$ac_lib
21411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21412 fi
cristy8b350f62009-11-15 23:12:43 +000021413 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021414 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021415fi
cristy8b350f62009-11-15 23:12:43 +000021416rm -f core conftest.err conftest.$ac_objext \
21417 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021418 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021419 break
21420fi
21421done
cristyda16f162011-02-19 23:52:17 +000021422if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021423
cristy3ed852e2009-09-05 21:47:34 +000021424else
21425 ac_cv_search_opendir=no
21426fi
21427rm conftest.$ac_ext
21428LIBS=$ac_func_search_save_LIBS
21429fi
cristy8b350f62009-11-15 23:12:43 +000021430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021431$as_echo "$ac_cv_search_opendir" >&6; }
21432ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021433if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21435
21436fi
21437
21438else
cristy8b350f62009-11-15 23:12:43 +000021439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021440$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021441if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021442 $as_echo_n "(cached) " >&6
21443else
21444 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021446/* end confdefs.h. */
21447
21448/* Override any GCC internal prototype to avoid an error.
21449 Use char because int might match the return type of a GCC
21450 builtin and then its argument prototype would still apply. */
21451#ifdef __cplusplus
21452extern "C"
21453#endif
21454char opendir ();
21455int
21456main ()
21457{
21458return opendir ();
21459 ;
21460 return 0;
21461}
21462_ACEOF
21463for ac_lib in '' x; do
21464 if test -z "$ac_lib"; then
21465 ac_res="none required"
21466 else
21467 ac_res=-l$ac_lib
21468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21469 fi
cristy8b350f62009-11-15 23:12:43 +000021470 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021471 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021472fi
cristy8b350f62009-11-15 23:12:43 +000021473rm -f core conftest.err conftest.$ac_objext \
21474 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021475 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021476 break
21477fi
21478done
cristyda16f162011-02-19 23:52:17 +000021479if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021480
cristy3ed852e2009-09-05 21:47:34 +000021481else
21482 ac_cv_search_opendir=no
21483fi
21484rm conftest.$ac_ext
21485LIBS=$ac_func_search_save_LIBS
21486fi
cristy8b350f62009-11-15 23:12:43 +000021487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021488$as_echo "$ac_cv_search_opendir" >&6; }
21489ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021490if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21492
21493fi
21494
21495fi
21496
21497
21498# Check additional headers
cristy58945e42012-09-04 14:33:54 +000021499for 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 +000021500do :
21501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21502ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021503if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021504 cat >>confdefs.h <<_ACEOF
21505#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21506_ACEOF
21507
21508fi
21509
21510done
21511
21512
21513########
21514#
21515# Checks for typedefs, structures, and compiler characteristics.
21516#
21517########
21518
cristy8b350f62009-11-15 23:12:43 +000021519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021520$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021521if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021522 $as_echo_n "(cached) " >&6
21523else
cristy8b350f62009-11-15 23:12:43 +000021524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021525/* end confdefs.h. */
21526
cristy14fefe52012-05-21 00:59:18 +000021527 #include <stdbool.h>
21528 #ifndef bool
21529 "error: bool is not defined"
21530 #endif
21531 #ifndef false
21532 "error: false is not defined"
21533 #endif
21534 #if false
21535 "error: false is not 0"
21536 #endif
21537 #ifndef true
21538 "error: true is not defined"
21539 #endif
21540 #if true != 1
21541 "error: true is not 1"
21542 #endif
21543 #ifndef __bool_true_false_are_defined
21544 "error: __bool_true_false_are_defined is not defined"
21545 #endif
cristy3ed852e2009-09-05 21:47:34 +000021546
cristy14fefe52012-05-21 00:59:18 +000021547 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021548
cristy14fefe52012-05-21 00:59:18 +000021549 char a[true == 1 ? 1 : -1];
21550 char b[false == 0 ? 1 : -1];
21551 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21552 char d[(bool) 0.5 == true ? 1 : -1];
21553 /* See body of main program for 'e'. */
21554 char f[(_Bool) 0.0 == false ? 1 : -1];
21555 char g[true];
21556 char h[sizeof (_Bool)];
21557 char i[sizeof s.t];
21558 enum { j = false, k = true, l = false * true, m = true * 256 };
21559 /* The following fails for
21560 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21561 _Bool n[m];
21562 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21563 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21564 /* Catch a bug in an HP-UX C compiler. See
21565 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21566 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21567 */
21568 _Bool q = true;
21569 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021570
21571int
21572main ()
21573{
21574
cristy14fefe52012-05-21 00:59:18 +000021575 bool e = &s;
21576 *pq |= q;
21577 *pq |= ! q;
21578 /* Refer to every declared value, to avoid compiler optimizations. */
21579 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21580 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021581
21582 ;
21583 return 0;
21584}
21585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021586if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021587 ac_cv_header_stdbool_h=yes
21588else
cristy8b350f62009-11-15 23:12:43 +000021589 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021590fi
cristy3ed852e2009-09-05 21:47:34 +000021591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21592fi
cristy8b350f62009-11-15 23:12:43 +000021593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021594$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021595 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021596if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021597
21598cat >>confdefs.h <<_ACEOF
21599#define HAVE__BOOL 1
21600_ACEOF
21601
21602
21603fi
21604
cristy14fefe52012-05-21 00:59:18 +000021605
cristy3ed852e2009-09-05 21:47:34 +000021606if test $ac_cv_header_stdbool_h = yes; then
21607
cristy8b350f62009-11-15 23:12:43 +000021608$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021609
21610fi
21611
cristy8b350f62009-11-15 23:12:43 +000021612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021613$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021614if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021615 $as_echo_n "(cached) " >&6
21616else
cristy8b350f62009-11-15 23:12:43 +000021617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021618/* end confdefs.h. */
21619
21620int
21621main ()
21622{
21623
21624volatile int x;
21625int * volatile y = (int *) 0;
21626return !x && !y;
21627 ;
21628 return 0;
21629}
21630_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021631if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021632 ac_cv_c_volatile=yes
21633else
cristy8b350f62009-11-15 23:12:43 +000021634 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021635fi
cristy3ed852e2009-09-05 21:47:34 +000021636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21637fi
cristy8b350f62009-11-15 23:12:43 +000021638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021639$as_echo "$ac_cv_c_volatile" >&6; }
21640if test $ac_cv_c_volatile = no; then
21641
cristy8b350f62009-11-15 23:12:43 +000021642$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021643
21644fi
21645
cristy8b350f62009-11-15 23:12:43 +000021646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021647$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021648if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021649 $as_echo_n "(cached) " >&6
21650else
cristy8b350f62009-11-15 23:12:43 +000021651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021652/* end confdefs.h. */
21653#define x(y) #y
21654
21655char *s = x(teststring);
21656_ACEOF
21657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021658 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021659 ac_cv_c_stringize=no
21660else
21661 ac_cv_c_stringize=yes
21662fi
21663rm -f conftest*
21664
21665fi
cristy8b350f62009-11-15 23:12:43 +000021666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021667$as_echo "$ac_cv_c_stringize" >&6; }
21668if test $ac_cv_c_stringize = yes; then
21669
cristy8b350f62009-11-15 23:12:43 +000021670$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021671
21672fi
21673
cristy8b350f62009-11-15 23:12:43 +000021674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021675$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021676if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021677 $as_echo_n "(cached) " >&6
21678else
cristy8b350f62009-11-15 23:12:43 +000021679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021680/* end confdefs.h. */
21681#include <sys/types.h>
21682#include <sys/stat.h>
21683
21684#if defined S_ISBLK && defined S_IFDIR
21685extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21686#endif
21687
21688#if defined S_ISBLK && defined S_IFCHR
21689extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21690#endif
21691
21692#if defined S_ISLNK && defined S_IFREG
21693extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21694#endif
21695
21696#if defined S_ISSOCK && defined S_IFREG
21697extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21698#endif
21699
21700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021701if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021702 ac_cv_header_stat_broken=no
21703else
cristy8b350f62009-11-15 23:12:43 +000021704 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021705fi
cristy3ed852e2009-09-05 21:47:34 +000021706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21707fi
cristy8b350f62009-11-15 23:12:43 +000021708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021709$as_echo "$ac_cv_header_stat_broken" >&6; }
21710if test $ac_cv_header_stat_broken = yes; then
21711
cristy8b350f62009-11-15 23:12:43 +000021712$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021713
21714fi
21715
cristy8b350f62009-11-15 23:12:43 +000021716{ $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 +000021717$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021718if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021719 $as_echo_n "(cached) " >&6
21720else
cristy8b350f62009-11-15 23:12:43 +000021721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021722/* end confdefs.h. */
21723#include <sys/types.h>
21724#include <sys/time.h>
21725#include <time.h>
21726
21727int
21728main ()
21729{
21730if ((struct tm *) 0)
21731return 0;
21732 ;
21733 return 0;
21734}
21735_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021736if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021737 ac_cv_header_time=yes
21738else
cristy8b350f62009-11-15 23:12:43 +000021739 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021740fi
cristy3ed852e2009-09-05 21:47:34 +000021741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21742fi
cristy8b350f62009-11-15 23:12:43 +000021743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021744$as_echo "$ac_cv_header_time" >&6; }
21745if test $ac_cv_header_time = yes; then
21746
cristy8b350f62009-11-15 23:12:43 +000021747$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021748
21749fi
21750
cristy8b350f62009-11-15 23:12:43 +000021751{ $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 +000021752$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021753if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021754 $as_echo_n "(cached) " >&6
21755else
cristy8b350f62009-11-15 23:12:43 +000021756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021757/* end confdefs.h. */
21758#include <sys/types.h>
21759#include <time.h>
21760
21761int
21762main ()
21763{
21764struct tm tm;
21765 int *p = &tm.tm_sec;
21766 return !p;
21767 ;
21768 return 0;
21769}
21770_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021771if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021772 ac_cv_struct_tm=time.h
21773else
cristy8b350f62009-11-15 23:12:43 +000021774 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021775fi
cristy3ed852e2009-09-05 21:47:34 +000021776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21777fi
cristy8b350f62009-11-15 23:12:43 +000021778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021779$as_echo "$ac_cv_struct_tm" >&6; }
21780if test $ac_cv_struct_tm = sys/time.h; then
21781
cristy8b350f62009-11-15 23:12:43 +000021782$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021783
21784fi
21785
cristy92703d82010-04-26 00:18:18 +000021786ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21787#include <$ac_cv_struct_tm>
21788
21789"
cristyda16f162011-02-19 23:52:17 +000021790if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021791
21792cat >>confdefs.h <<_ACEOF
21793#define HAVE_STRUCT_TM_TM_ZONE 1
21794_ACEOF
21795
21796
21797fi
21798
21799if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21800
21801$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21802
21803else
21804 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21805"
cristyda16f162011-02-19 23:52:17 +000021806if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021807 ac_have_decl=1
21808else
21809 ac_have_decl=0
21810fi
21811
21812cat >>confdefs.h <<_ACEOF
21813#define HAVE_DECL_TZNAME $ac_have_decl
21814_ACEOF
21815
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21817$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021818if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021819 $as_echo_n "(cached) " >&6
21820else
21821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21822/* end confdefs.h. */
21823#include <time.h>
21824#if !HAVE_DECL_TZNAME
21825extern char *tzname[];
21826#endif
21827
21828int
21829main ()
21830{
21831return tzname[0][0];
21832 ;
21833 return 0;
21834}
21835_ACEOF
21836if ac_fn_c_try_link "$LINENO"; then :
21837 ac_cv_var_tzname=yes
21838else
21839 ac_cv_var_tzname=no
21840fi
21841rm -f core conftest.err conftest.$ac_objext \
21842 conftest$ac_exeext conftest.$ac_ext
21843fi
21844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21845$as_echo "$ac_cv_var_tzname" >&6; }
21846 if test $ac_cv_var_tzname = yes; then
21847
21848$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21849
21850 fi
21851fi
21852
cristy8b350f62009-11-15 23:12:43 +000021853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021854$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021855if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021856 $as_echo_n "(cached) " >&6
21857else
21858 echo '#! /bin/cat
21859exit 69
21860' >conftest
21861chmod u+x conftest
21862(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21863if test $? -ne 69; then
21864 ac_cv_sys_interpreter=yes
21865else
21866 ac_cv_sys_interpreter=no
21867fi
21868rm -f conftest
21869fi
cristy8b350f62009-11-15 23:12:43 +000021870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021871$as_echo "$ac_cv_sys_interpreter" >&6; }
21872interpval=$ac_cv_sys_interpreter
21873
21874
cristy3ed852e2009-09-05 21:47:34 +000021875# If the C compiler supports the keyword inline, do nothing. Otherwise
21876# define inline to __inline__ or __inline if it accepts one of those,
21877# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021879$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021880if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021881 $as_echo_n "(cached) " >&6
21882else
21883 ac_cv_c_inline=no
21884for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021886/* end confdefs.h. */
21887#ifndef __cplusplus
21888typedef int foo_t;
21889static $ac_kw foo_t static_foo () {return 0; }
21890$ac_kw foo_t foo () {return 0; }
21891#endif
21892
21893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021894if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021895 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021896fi
cristy3ed852e2009-09-05 21:47:34 +000021897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21898 test "$ac_cv_c_inline" != no && break
21899done
21900
21901fi
cristy8b350f62009-11-15 23:12:43 +000021902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021903$as_echo "$ac_cv_c_inline" >&6; }
21904
cristy3ed852e2009-09-05 21:47:34 +000021905case $ac_cv_c_inline in
21906 inline | yes) ;;
21907 *)
21908 case $ac_cv_c_inline in
21909 no) ac_val=;;
21910 *) ac_val=$ac_cv_c_inline;;
21911 esac
21912 cat >>confdefs.h <<_ACEOF
21913#ifndef __cplusplus
21914#define inline $ac_val
21915#endif
21916_ACEOF
21917 ;;
21918esac
21919
21920
21921# If the C compiler supports the keyword restrict, do nothing. Otherwise
21922# define restrict to __restrict__ or __restrict if it accepts one of those,
21923# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021925$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021926if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021927 $as_echo_n "(cached) " >&6
21928else
21929 ac_cv_c_restrict=no
21930 # The order here caters to the fact that C++ does not require restrict.
21931 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021933/* end confdefs.h. */
21934typedef int * int_ptr;
21935 int foo (int_ptr $ac_kw ip) {
21936 return ip[0];
21937 }
21938int
21939main ()
21940{
21941int s[1];
21942 int * $ac_kw t = s;
21943 t[0] = 0;
21944 return foo(t)
21945 ;
21946 return 0;
21947}
21948_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021949if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021950 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021951fi
cristy3ed852e2009-09-05 21:47:34 +000021952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21953 test "$ac_cv_c_restrict" != no && break
21954 done
21955
21956fi
cristy8b350f62009-11-15 23:12:43 +000021957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021958$as_echo "$ac_cv_c_restrict" >&6; }
21959
cristy3ed852e2009-09-05 21:47:34 +000021960 case $ac_cv_c_restrict in
21961 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021962 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021963 ;;
21964 *) cat >>confdefs.h <<_ACEOF
21965#define restrict $ac_cv_c_restrict
21966_ACEOF
21967 ;;
21968 esac
21969
21970
21971# If words are stored with the most significant byte first (like
21972# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021974$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021975if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021976 $as_echo_n "(cached) " >&6
21977else
21978 ac_cv_c_bigendian=unknown
21979 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021981/* end confdefs.h. */
21982#ifndef __APPLE_CC__
21983 not a universal capable compiler
21984 #endif
21985 typedef int dummy;
21986
21987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021988if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021989
21990 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021991 # there are at least two -arch flags with different values.
21992 ac_arch=
21993 ac_prev=
21994 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21995 if test -n "$ac_prev"; then
21996 case $ac_word in
21997 i?86 | x86_64 | ppc | ppc64)
21998 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21999 ac_arch=$ac_word
22000 else
22001 ac_cv_c_bigendian=universal
22002 break
22003 fi
22004 ;;
22005 esac
22006 ac_prev=
22007 elif test "x$ac_word" = "x-arch"; then
22008 ac_prev=arch
22009 fi
22010 done
cristy3ed852e2009-09-05 21:47:34 +000022011fi
cristy3ed852e2009-09-05 21:47:34 +000022012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013 if test $ac_cv_c_bigendian = unknown; then
22014 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022016/* end confdefs.h. */
22017#include <sys/types.h>
22018 #include <sys/param.h>
22019
22020int
22021main ()
22022{
22023#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22024 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22025 && LITTLE_ENDIAN)
22026 bogus endian macros
22027 #endif
22028
22029 ;
22030 return 0;
22031}
22032_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022033if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022034 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022036/* end confdefs.h. */
22037#include <sys/types.h>
22038 #include <sys/param.h>
22039
22040int
22041main ()
22042{
22043#if BYTE_ORDER != BIG_ENDIAN
22044 not big endian
22045 #endif
22046
22047 ;
22048 return 0;
22049}
22050_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022051if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022052 ac_cv_c_bigendian=yes
22053else
cristy8b350f62009-11-15 23:12:43 +000022054 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022055fi
cristy3ed852e2009-09-05 21:47:34 +000022056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022057fi
cristy3ed852e2009-09-05 21:47:34 +000022058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22059 fi
22060 if test $ac_cv_c_bigendian = unknown; then
22061 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022063/* end confdefs.h. */
22064#include <limits.h>
22065
22066int
22067main ()
22068{
22069#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22070 bogus endian macros
22071 #endif
22072
22073 ;
22074 return 0;
22075}
22076_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022077if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022078 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022080/* end confdefs.h. */
22081#include <limits.h>
22082
22083int
22084main ()
22085{
22086#ifndef _BIG_ENDIAN
22087 not big endian
22088 #endif
22089
22090 ;
22091 return 0;
22092}
22093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022094if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022095 ac_cv_c_bigendian=yes
22096else
cristy8b350f62009-11-15 23:12:43 +000022097 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022098fi
cristy3ed852e2009-09-05 21:47:34 +000022099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022100fi
cristy3ed852e2009-09-05 21:47:34 +000022101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22102 fi
22103 if test $ac_cv_c_bigendian = unknown; then
22104 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022105 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022106 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022108/* end confdefs.h. */
22109short int ascii_mm[] =
22110 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22111 short int ascii_ii[] =
22112 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22113 int use_ascii (int i) {
22114 return ascii_mm[i] + ascii_ii[i];
22115 }
22116 short int ebcdic_ii[] =
22117 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22118 short int ebcdic_mm[] =
22119 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22120 int use_ebcdic (int i) {
22121 return ebcdic_mm[i] + ebcdic_ii[i];
22122 }
22123 extern int foo;
22124
22125int
22126main ()
22127{
22128return use_ascii (foo) == use_ebcdic (foo);
22129 ;
22130 return 0;
22131}
22132_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022133if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022134 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22135 ac_cv_c_bigendian=yes
22136 fi
22137 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22138 if test "$ac_cv_c_bigendian" = unknown; then
22139 ac_cv_c_bigendian=no
22140 else
22141 # finding both strings is unlikely to happen, but who knows?
22142 ac_cv_c_bigendian=unknown
22143 fi
22144 fi
cristy3ed852e2009-09-05 21:47:34 +000022145fi
cristy3ed852e2009-09-05 21:47:34 +000022146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147else
cristy8b350f62009-11-15 23:12:43 +000022148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022149/* end confdefs.h. */
22150$ac_includes_default
22151int
22152main ()
22153{
22154
22155 /* Are we little or big endian? From Harbison&Steele. */
22156 union
22157 {
22158 long int l;
22159 char c[sizeof (long int)];
22160 } u;
22161 u.l = 1;
22162 return u.c[sizeof (long int) - 1] == 1;
22163
22164 ;
22165 return 0;
22166}
22167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022168if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022169 ac_cv_c_bigendian=no
22170else
cristy8b350f62009-11-15 23:12:43 +000022171 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022172fi
cristy8b350f62009-11-15 23:12:43 +000022173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22174 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022175fi
22176
cristy3ed852e2009-09-05 21:47:34 +000022177 fi
22178fi
cristy8b350f62009-11-15 23:12:43 +000022179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022180$as_echo "$ac_cv_c_bigendian" >&6; }
22181 case $ac_cv_c_bigendian in #(
22182 yes)
cristy8b350f62009-11-15 23:12:43 +000022183 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022184;; #(
22185 no)
22186 ;; #(
22187 universal)
22188
cristy8b350f62009-11-15 23:12:43 +000022189$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022190
22191 ;; #(
22192 *)
cristy98dddb52010-11-04 00:30:15 +000022193 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022194 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022195 esac
22196
22197
cristy501c8042011-05-26 17:46:28 +000022198# Define to a suitable type, if standard headers do not define it.
22199ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22200case $ac_cv_c_int8_t in #(
22201 no|yes) ;; #(
22202 *)
cristy3ed852e2009-09-05 21:47:34 +000022203
22204cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022205#define int8_t $ac_cv_c_int8_t
22206_ACEOF
22207;;
22208esac
22209
22210ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22211case $ac_cv_c_int16_t in #(
22212 no|yes) ;; #(
22213 *)
22214
22215cat >>confdefs.h <<_ACEOF
22216#define int16_t $ac_cv_c_int16_t
22217_ACEOF
22218;;
22219esac
22220
22221ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22222case $ac_cv_c_int32_t in #(
22223 no|yes) ;; #(
22224 *)
22225
22226cat >>confdefs.h <<_ACEOF
22227#define int32_t $ac_cv_c_int32_t
22228_ACEOF
22229;;
22230esac
22231
22232ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22233case $ac_cv_c_int64_t in #(
22234 no|yes) ;; #(
22235 *)
22236
22237cat >>confdefs.h <<_ACEOF
22238#define int64_t $ac_cv_c_int64_t
22239_ACEOF
22240;;
22241esac
22242
22243
cristycc22d1d2012-12-10 13:03:25 +000022244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22245$as_echo_n "checking for unsigned long long int... " >&6; }
22246if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022247 $as_echo_n "(cached) " >&6
22248else
cristycc22d1d2012-12-10 13:03:25 +000022249 ac_cv_type_unsigned_long_long_int=yes
22250 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022252/* end confdefs.h. */
22253
22254 /* For now, do not test the preprocessor; as of 2007 there are too many
cristycc22d1d2012-12-10 13:03:25 +000022255 implementations with broken preprocessors. Perhaps this can
22256 be revisited in 2012. In the meantime, code should not expect
22257 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022258 /* Test literals. */
22259 long long int ll = 9223372036854775807ll;
22260 long long int nll = -9223372036854775807LL;
22261 unsigned long long int ull = 18446744073709551615ULL;
22262 /* Test constant expressions. */
22263 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristycc22d1d2012-12-10 13:03:25 +000022264 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022265 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristycc22d1d2012-12-10 13:03:25 +000022266 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022267 int i = 63;
22268int
22269main ()
22270{
22271/* Test availability of runtime routines for shift and division. */
22272 long long int llmax = 9223372036854775807ll;
22273 unsigned long long int ullmax = 18446744073709551615ull;
22274 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristycc22d1d2012-12-10 13:03:25 +000022275 | (llmax / ll) | (llmax % ll)
22276 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22277 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022278 ;
22279 return 0;
22280}
22281
22282_ACEOF
22283if ac_fn_c_try_link "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022284
22285else
22286 ac_cv_type_unsigned_long_long_int=no
22287fi
22288rm -f core conftest.err conftest.$ac_objext \
22289 conftest$ac_exeext conftest.$ac_ext
22290 fi
22291fi
22292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22293$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22294 if test $ac_cv_type_unsigned_long_long_int = yes; then
22295
22296$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22297
22298 fi
22299
22300
22301
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22303$as_echo_n "checking for long long int... " >&6; }
22304if ${ac_cv_type_long_long_int+:} false; then :
22305 $as_echo_n "(cached) " >&6
22306else
cristy501c8042011-05-26 17:46:28 +000022307 ac_cv_type_long_long_int=yes
cristycc22d1d2012-12-10 13:03:25 +000022308 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22309 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22310 if test $ac_cv_type_long_long_int = yes; then
22311 if test "$cross_compiling" = yes; then :
22312 :
cristy501c8042011-05-26 17:46:28 +000022313else
22314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22315/* end confdefs.h. */
22316#include <limits.h>
cristycc22d1d2012-12-10 13:03:25 +000022317 #ifndef LLONG_MAX
22318 # define HALF \
22319 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22320 # define LLONG_MAX (HALF - 1 + HALF)
22321 #endif
cristy501c8042011-05-26 17:46:28 +000022322int
22323main ()
22324{
22325long long int n = 1;
cristycc22d1d2012-12-10 13:03:25 +000022326 int i;
22327 for (i = 0; ; i++)
22328 {
22329 long long int m = n << i;
22330 if (m >> i != n)
22331 return 1;
22332 if (LLONG_MAX / 2 < m)
22333 break;
22334 }
22335 return 0;
cristy501c8042011-05-26 17:46:28 +000022336 ;
22337 return 0;
22338}
22339_ACEOF
22340if ac_fn_c_try_run "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022341
cristy501c8042011-05-26 17:46:28 +000022342else
22343 ac_cv_type_long_long_int=no
22344fi
22345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22346 conftest.$ac_objext conftest.beam conftest.$ac_ext
22347fi
22348
cristycc22d1d2012-12-10 13:03:25 +000022349 fi
22350 fi
cristy501c8042011-05-26 17:46:28 +000022351fi
22352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22353$as_echo "$ac_cv_type_long_long_int" >&6; }
22354 if test $ac_cv_type_long_long_int = yes; then
22355
22356$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22357
22358 fi
22359
22360
22361
22362 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22363if test "x$ac_cv_type_intmax_t" = xyes; then :
22364
22365$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22366
22367else
22368 test $ac_cv_type_long_long_int = yes \
22369 && ac_type='long long int' \
22370 || ac_type='long int'
22371
22372cat >>confdefs.h <<_ACEOF
22373#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022374_ACEOF
22375
22376fi
22377
22378
cristy501c8042011-05-26 17:46:28 +000022379
22380 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22381if test "x$ac_cv_type_intptr_t" = xyes; then :
22382
22383$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022384
cristy3ed852e2009-09-05 21:47:34 +000022385else
cristy501c8042011-05-26 17:46:28 +000022386 for ac_type in 'int' 'long int' 'long long int'; do
22387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22388/* end confdefs.h. */
22389$ac_includes_default
22390int
22391main ()
22392{
22393static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022394test_array [0] = 0;
22395return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022396
22397 ;
22398 return 0;
22399}
22400_ACEOF
22401if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022402
22403cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022404#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022405_ACEOF
22406
cristy501c8042011-05-26 17:46:28 +000022407 ac_type=
22408fi
22409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22410 test -z "$ac_type" && break
22411 done
cristy3ed852e2009-09-05 21:47:34 +000022412fi
22413
22414
cristy3ed852e2009-09-05 21:47:34 +000022415
cristy501c8042011-05-26 17:46:28 +000022416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22417$as_echo_n "checking for long double... " >&6; }
22418if ${ac_cv_type_long_double+:} false; then :
22419 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022420else
cristy501c8042011-05-26 17:46:28 +000022421 if test "$GCC" = yes; then
22422 ac_cv_type_long_double=yes
22423 else
22424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22425/* end confdefs.h. */
22426/* The Stardent Vistra knows sizeof (long double), but does
22427 not support it. */
22428 long double foo = 0.0L;
22429int
22430main ()
22431{
22432static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22433 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022434test_array [0] = 0;
22435return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022436
cristy501c8042011-05-26 17:46:28 +000022437 ;
22438 return 0;
22439}
cristy3ed852e2009-09-05 21:47:34 +000022440_ACEOF
cristy501c8042011-05-26 17:46:28 +000022441if ac_fn_c_try_compile "$LINENO"; then :
22442 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022443else
cristy501c8042011-05-26 17:46:28 +000022444 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022445fi
cristy501c8042011-05-26 17:46:28 +000022446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22447 fi
cristy3ed852e2009-09-05 21:47:34 +000022448fi
cristy501c8042011-05-26 17:46:28 +000022449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22450$as_echo "$ac_cv_type_long_double" >&6; }
22451 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022452
cristy501c8042011-05-26 17:46:28 +000022453$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022454
cristy501c8042011-05-26 17:46:28 +000022455 fi
22456
cristy3ed852e2009-09-05 21:47:34 +000022457
cristy8b350f62009-11-15 23:12:43 +000022458 { $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 +000022459$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022460if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022461 $as_echo_n "(cached) " >&6
22462else
cristy8b350f62009-11-15 23:12:43 +000022463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022464/* end confdefs.h. */
22465#include <float.h>
22466 long double const a[] =
22467 {
22468 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22469 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22470 };
22471 long double
22472 f (long double x)
22473 {
22474 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22475 + (x ? f (x) : 'c'));
22476 }
22477
22478int
22479main ()
22480{
22481static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22482 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22483 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22484 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22485 && (int) LDBL_EPSILON == 0
22486 )];
cristy14fefe52012-05-21 00:59:18 +000022487test_array [0] = 0;
22488return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022489
22490 ;
22491 return 0;
22492}
22493_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022494if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022495 ac_cv_type_long_double_wider=yes
22496else
cristy8b350f62009-11-15 23:12:43 +000022497 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022498fi
cristy3ed852e2009-09-05 21:47:34 +000022499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22500fi
cristy8b350f62009-11-15 23:12:43 +000022501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022502$as_echo "$ac_cv_type_long_double_wider" >&6; }
22503 if test $ac_cv_type_long_double_wider = yes; then
22504
cristy8b350f62009-11-15 23:12:43 +000022505$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022506
22507 fi
22508
22509
cristycc22d1d2012-12-10 13:03:25 +000022510
cristy501c8042011-05-26 17:46:28 +000022511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22512$as_echo_n "checking for long long int... " >&6; }
22513if ${ac_cv_type_long_long_int+:} false; then :
22514 $as_echo_n "(cached) " >&6
22515else
cristy501c8042011-05-26 17:46:28 +000022516 ac_cv_type_long_long_int=yes
cristycc22d1d2012-12-10 13:03:25 +000022517 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22518 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22519 if test $ac_cv_type_long_long_int = yes; then
22520 if test "$cross_compiling" = yes; then :
22521 :
cristy501c8042011-05-26 17:46:28 +000022522else
22523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22524/* end confdefs.h. */
22525#include <limits.h>
cristycc22d1d2012-12-10 13:03:25 +000022526 #ifndef LLONG_MAX
22527 # define HALF \
22528 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22529 # define LLONG_MAX (HALF - 1 + HALF)
22530 #endif
cristy501c8042011-05-26 17:46:28 +000022531int
22532main ()
22533{
22534long long int n = 1;
cristycc22d1d2012-12-10 13:03:25 +000022535 int i;
22536 for (i = 0; ; i++)
22537 {
22538 long long int m = n << i;
22539 if (m >> i != n)
22540 return 1;
22541 if (LLONG_MAX / 2 < m)
22542 break;
22543 }
22544 return 0;
cristy501c8042011-05-26 17:46:28 +000022545 ;
22546 return 0;
22547}
22548_ACEOF
22549if ac_fn_c_try_run "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022550
cristy501c8042011-05-26 17:46:28 +000022551else
22552 ac_cv_type_long_long_int=no
22553fi
22554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22555 conftest.$ac_objext conftest.beam conftest.$ac_ext
22556fi
22557
cristycc22d1d2012-12-10 13:03:25 +000022558 fi
22559 fi
cristy501c8042011-05-26 17:46:28 +000022560fi
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
cristy501c8042011-05-26 17:46:28 +000022744
22745 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22746if test "x$ac_cv_type_uintmax_t" = xyes; then :
22747
22748$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22749
22750else
22751 test $ac_cv_type_unsigned_long_long_int = yes \
22752 && ac_type='unsigned long long int' \
22753 || ac_type='unsigned long int'
22754
22755cat >>confdefs.h <<_ACEOF
22756#define uintmax_t $ac_type
22757_ACEOF
22758
22759fi
22760
22761
22762
22763 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22764if test "x$ac_cv_type_uintptr_t" = xyes; then :
22765
22766$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
22767
22768else
22769 for ac_type in 'unsigned int' 'unsigned long int' \
22770 'unsigned long long int'; do
22771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22772/* end confdefs.h. */
22773$ac_includes_default
22774int
22775main ()
22776{
22777static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022778test_array [0] = 0;
22779return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022780
22781 ;
22782 return 0;
22783}
22784_ACEOF
22785if ac_fn_c_try_compile "$LINENO"; then :
22786
22787cat >>confdefs.h <<_ACEOF
22788#define uintptr_t $ac_type
22789_ACEOF
22790
22791 ac_type=
22792fi
22793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22794 test -z "$ac_type" && break
22795 done
22796fi
22797
22798
22799
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22801$as_echo_n "checking for unsigned long long int... " >&6; }
22802if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22803 $as_echo_n "(cached) " >&6
22804else
cristycc22d1d2012-12-10 13:03:25 +000022805 ac_cv_type_unsigned_long_long_int=yes
22806 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022808/* end confdefs.h. */
22809
22810 /* For now, do not test the preprocessor; as of 2007 there are too many
cristycc22d1d2012-12-10 13:03:25 +000022811 implementations with broken preprocessors. Perhaps this can
22812 be revisited in 2012. In the meantime, code should not expect
22813 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022814 /* Test literals. */
22815 long long int ll = 9223372036854775807ll;
22816 long long int nll = -9223372036854775807LL;
22817 unsigned long long int ull = 18446744073709551615ULL;
22818 /* Test constant expressions. */
22819 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristycc22d1d2012-12-10 13:03:25 +000022820 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022821 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristycc22d1d2012-12-10 13:03:25 +000022822 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022823 int i = 63;
22824int
22825main ()
22826{
22827/* Test availability of runtime routines for shift and division. */
22828 long long int llmax = 9223372036854775807ll;
22829 unsigned long long int ullmax = 18446744073709551615ull;
22830 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristycc22d1d2012-12-10 13:03:25 +000022831 | (llmax / ll) | (llmax % ll)
22832 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22833 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022834 ;
22835 return 0;
22836}
22837
22838_ACEOF
22839if ac_fn_c_try_link "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022840
cristy501c8042011-05-26 17:46:28 +000022841else
22842 ac_cv_type_unsigned_long_long_int=no
22843fi
22844rm -f core conftest.err conftest.$ac_objext \
22845 conftest$ac_exeext conftest.$ac_ext
cristycc22d1d2012-12-10 13:03:25 +000022846 fi
cristy501c8042011-05-26 17:46:28 +000022847fi
22848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22849$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22850 if test $ac_cv_type_unsigned_long_long_int = yes; then
22851
22852$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22853
22854 fi
22855
22856
cristy3ed852e2009-09-05 21:47:34 +000022857# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22858# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022860$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022861if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022862 $as_echo_n "(cached) " >&6
22863else
cristy8b350f62009-11-15 23:12:43 +000022864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022865/* end confdefs.h. */
22866$ac_includes_default
22867int
22868main ()
22869{
22870static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000022871test_array [0] = 0;
22872return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022873
22874 ;
22875 return 0;
22876}
22877_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022878if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022879 ac_cv_c_char_unsigned=no
22880else
cristy8b350f62009-11-15 23:12:43 +000022881 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022882fi
cristy3ed852e2009-09-05 21:47:34 +000022883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22884fi
cristy8b350f62009-11-15 23:12:43 +000022885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022886$as_echo "$ac_cv_c_char_unsigned" >&6; }
22887if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022888 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022889
22890fi
22891
22892
cristy9b86f202012-11-28 21:55:35 +000022893# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000022894ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
22895"
22896if test "x$ac_cv_type_float_t" = xyes; then :
22897
22898cat >>confdefs.h <<_ACEOF
22899#define HAVE_FLOAT_T 1
22900_ACEOF
22901
22902
22903fi
22904
22905ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
22906"
22907if test "x$ac_cv_type_double_t" = xyes; then :
22908
22909cat >>confdefs.h <<_ACEOF
22910#define HAVE_DOUBLE_T 1
22911_ACEOF
22912
22913
22914fi
22915
cristy9b86f202012-11-28 21:55:35 +000022916# The cast to long int works around a bug in the HP C Compiler
22917# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22918# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22919# This bug is HP SR number 8606223364.
22920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
22921$as_echo_n "checking size of float_t... " >&6; }
22922if ${ac_cv_sizeof_float_t+:} false; then :
22923 $as_echo_n "(cached) " >&6
22924else
22925 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
22926"; then :
22927
22928else
22929 if test "$ac_cv_type_float_t" = yes; then
22930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22932as_fn_error 77 "cannot compute sizeof (float_t)
22933See \`config.log' for more details" "$LINENO" 5; }
22934 else
22935 ac_cv_sizeof_float_t=0
22936 fi
22937fi
22938
22939fi
22940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
22941$as_echo "$ac_cv_sizeof_float_t" >&6; }
22942
22943
22944
22945cat >>confdefs.h <<_ACEOF
22946#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
22947_ACEOF
22948
22949
22950# The cast to long int works around a bug in the HP C Compiler
22951# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22952# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22953# This bug is HP SR number 8606223364.
22954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
22955$as_echo_n "checking size of double_t... " >&6; }
22956if ${ac_cv_sizeof_double_t+:} false; then :
22957 $as_echo_n "(cached) " >&6
22958else
22959 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
22960"; then :
22961
22962else
22963 if test "$ac_cv_type_double_t" = yes; then
22964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22966as_fn_error 77 "cannot compute sizeof (double_t)
22967See \`config.log' for more details" "$LINENO" 5; }
22968 else
22969 ac_cv_sizeof_double_t=0
22970 fi
22971fi
22972
22973fi
22974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
22975$as_echo "$ac_cv_sizeof_double_t" >&6; }
22976
22977
22978
22979cat >>confdefs.h <<_ACEOF
22980#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
22981_ACEOF
22982
22983
22984
22985# Get size of float, double and long double for comparaison.
22986# The cast to long int works around a bug in the HP C Compiler
22987# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22988# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22989# This bug is HP SR number 8606223364.
22990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
22991$as_echo_n "checking size of float... " >&6; }
22992if ${ac_cv_sizeof_float+:} false; then :
22993 $as_echo_n "(cached) " >&6
22994else
22995 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
22996
22997else
22998 if test "$ac_cv_type_float" = yes; then
22999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23001as_fn_error 77 "cannot compute sizeof (float)
23002See \`config.log' for more details" "$LINENO" 5; }
23003 else
23004 ac_cv_sizeof_float=0
23005 fi
23006fi
23007
23008fi
23009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23010$as_echo "$ac_cv_sizeof_float" >&6; }
23011
23012
23013
23014cat >>confdefs.h <<_ACEOF
23015#define SIZEOF_FLOAT $ac_cv_sizeof_float
23016_ACEOF
23017
23018
23019# The cast to long int works around a bug in the HP C Compiler
23020# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23021# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23022# This bug is HP SR number 8606223364.
23023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23024$as_echo_n "checking size of double... " >&6; }
23025if ${ac_cv_sizeof_double+:} false; then :
23026 $as_echo_n "(cached) " >&6
23027else
23028 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23029
23030else
23031 if test "$ac_cv_type_double" = yes; then
23032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23034as_fn_error 77 "cannot compute sizeof (double)
23035See \`config.log' for more details" "$LINENO" 5; }
23036 else
23037 ac_cv_sizeof_double=0
23038 fi
23039fi
23040
23041fi
23042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23043$as_echo "$ac_cv_sizeof_double" >&6; }
23044
23045
23046
23047cat >>confdefs.h <<_ACEOF
23048#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23049_ACEOF
23050
23051
23052# The cast to long int works around a bug in the HP C Compiler
23053# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23054# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23055# This bug is HP SR number 8606223364.
23056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23057$as_echo_n "checking size of long double... " >&6; }
23058if ${ac_cv_sizeof_long_double+:} false; then :
23059 $as_echo_n "(cached) " >&6
23060else
23061 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23062
23063else
23064 if test "$ac_cv_type_long_double" = yes; then
23065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23067as_fn_error 77 "cannot compute sizeof (long double)
23068See \`config.log' for more details" "$LINENO" 5; }
23069 else
23070 ac_cv_sizeof_long_double=0
23071 fi
23072fi
23073
23074fi
23075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23076$as_echo "$ac_cv_sizeof_long_double" >&6; }
23077
23078
23079
23080cat >>confdefs.h <<_ACEOF
23081#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23082_ACEOF
23083
23084
cristyf0cf9a22012-10-24 12:05:01 +000023085
cristy3ed852e2009-09-05 21:47:34 +000023086# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23087# The cast to long int works around a bug in the HP C Compiler
23088# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23089# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23090# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023092$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023093if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023094 $as_echo_n "(cached) " >&6
23095else
cristy8b350f62009-11-15 23:12:43 +000023096 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 +000023097
cristy3ed852e2009-09-05 21:47:34 +000023098else
cristy8b350f62009-11-15 23:12:43 +000023099 if test "$ac_cv_type_signed_short" = yes; then
23100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023102as_fn_error 77 "cannot compute sizeof (signed short)
23103See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023104 else
23105 ac_cv_sizeof_signed_short=0
23106 fi
23107fi
cristy8b350f62009-11-15 23:12:43 +000023108
cristy3ed852e2009-09-05 21:47:34 +000023109fi
cristy8b350f62009-11-15 23:12:43 +000023110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023111$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23112
23113
23114
23115cat >>confdefs.h <<_ACEOF
23116#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23117_ACEOF
23118
23119
23120
23121# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23122# The cast to long int works around a bug in the HP C Compiler
23123# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23124# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23125# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023127$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023128if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023129 $as_echo_n "(cached) " >&6
23130else
cristy8b350f62009-11-15 23:12:43 +000023131 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 +000023132
cristy3ed852e2009-09-05 21:47:34 +000023133else
cristy8b350f62009-11-15 23:12:43 +000023134 if test "$ac_cv_type_unsigned_short" = yes; then
23135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023137as_fn_error 77 "cannot compute sizeof (unsigned short)
23138See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023139 else
23140 ac_cv_sizeof_unsigned_short=0
23141 fi
23142fi
cristy8b350f62009-11-15 23:12:43 +000023143
cristy3ed852e2009-09-05 21:47:34 +000023144fi
cristy8b350f62009-11-15 23:12:43 +000023145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023146$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23147
23148
23149
23150cat >>confdefs.h <<_ACEOF
23151#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23152_ACEOF
23153
23154
23155
23156# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23157# The cast to long int works around a bug in the HP C Compiler
23158# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23159# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23160# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023162$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023163if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023164 $as_echo_n "(cached) " >&6
23165else
cristy8b350f62009-11-15 23:12:43 +000023166 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 +000023167
cristy3ed852e2009-09-05 21:47:34 +000023168else
cristy8b350f62009-11-15 23:12:43 +000023169 if test "$ac_cv_type_signed_int" = yes; then
23170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023172as_fn_error 77 "cannot compute sizeof (signed int)
23173See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023174 else
23175 ac_cv_sizeof_signed_int=0
23176 fi
23177fi
cristy8b350f62009-11-15 23:12:43 +000023178
cristy3ed852e2009-09-05 21:47:34 +000023179fi
cristy8b350f62009-11-15 23:12:43 +000023180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023181$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23182
23183
23184
23185cat >>confdefs.h <<_ACEOF
23186#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23187_ACEOF
23188
23189
23190
23191# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23192# The cast to long int works around a bug in the HP C Compiler
23193# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23194# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23195# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023197$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023198if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023199 $as_echo_n "(cached) " >&6
23200else
cristy8b350f62009-11-15 23:12:43 +000023201 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 +000023202
cristy3ed852e2009-09-05 21:47:34 +000023203else
cristy8b350f62009-11-15 23:12:43 +000023204 if test "$ac_cv_type_unsigned_int" = yes; then
23205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023207as_fn_error 77 "cannot compute sizeof (unsigned int)
23208See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023209 else
23210 ac_cv_sizeof_unsigned_int=0
23211 fi
23212fi
cristy8b350f62009-11-15 23:12:43 +000023213
cristy3ed852e2009-09-05 21:47:34 +000023214fi
cristy8b350f62009-11-15 23:12:43 +000023215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023216$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23217
23218
23219
23220cat >>confdefs.h <<_ACEOF
23221#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23222_ACEOF
23223
23224
23225
23226# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23227# The cast to long int works around a bug in the HP C Compiler
23228# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23229# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23230# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023232$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023233if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023234 $as_echo_n "(cached) " >&6
23235else
cristy8b350f62009-11-15 23:12:43 +000023236 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 +000023237
cristy3ed852e2009-09-05 21:47:34 +000023238else
cristy8b350f62009-11-15 23:12:43 +000023239 if test "$ac_cv_type_signed_long" = yes; then
23240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023242as_fn_error 77 "cannot compute sizeof (signed long)
23243See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023244 else
23245 ac_cv_sizeof_signed_long=0
23246 fi
23247fi
cristy8b350f62009-11-15 23:12:43 +000023248
cristy3ed852e2009-09-05 21:47:34 +000023249fi
cristy8b350f62009-11-15 23:12:43 +000023250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023251$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23252
23253
23254
23255cat >>confdefs.h <<_ACEOF
23256#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23257_ACEOF
23258
23259
23260
23261# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23262# The cast to long int works around a bug in the HP C Compiler
23263# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23264# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23265# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023267$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023268if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023269 $as_echo_n "(cached) " >&6
23270else
cristy8b350f62009-11-15 23:12:43 +000023271 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 +000023272
cristy3ed852e2009-09-05 21:47:34 +000023273else
cristy8b350f62009-11-15 23:12:43 +000023274 if test "$ac_cv_type_unsigned_long" = yes; then
23275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023277as_fn_error 77 "cannot compute sizeof (unsigned long)
23278See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023279 else
23280 ac_cv_sizeof_unsigned_long=0
23281 fi
23282fi
cristy8b350f62009-11-15 23:12:43 +000023283
cristy3ed852e2009-09-05 21:47:34 +000023284fi
cristy8b350f62009-11-15 23:12:43 +000023285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023286$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23287
23288
23289
23290cat >>confdefs.h <<_ACEOF
23291#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23292_ACEOF
23293
23294
23295
23296# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23297# 'signed long long' is not supported then the value defined is zero.
23298# The cast to long int works around a bug in the HP C Compiler
23299# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23300# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23301# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023303$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023304if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023305 $as_echo_n "(cached) " >&6
23306else
cristy8b350f62009-11-15 23:12:43 +000023307 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 +000023308
cristy3ed852e2009-09-05 21:47:34 +000023309else
cristy8b350f62009-11-15 23:12:43 +000023310 if test "$ac_cv_type_signed_long_long" = yes; then
23311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023313as_fn_error 77 "cannot compute sizeof (signed long long)
23314See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023315 else
23316 ac_cv_sizeof_signed_long_long=0
23317 fi
23318fi
cristy8b350f62009-11-15 23:12:43 +000023319
cristy3ed852e2009-09-05 21:47:34 +000023320fi
cristy8b350f62009-11-15 23:12:43 +000023321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023322$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23323
23324
23325
23326cat >>confdefs.h <<_ACEOF
23327#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23328_ACEOF
23329
23330
23331
23332# Obtain size of a 'unsigned long long' and define as
23333# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23334# supported then the value defined is zero.
23335# The cast to long int works around a bug in the HP C Compiler
23336# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23337# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23338# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023340$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023341if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023342 $as_echo_n "(cached) " >&6
23343else
cristy8b350f62009-11-15 23:12:43 +000023344 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 +000023345
cristy3ed852e2009-09-05 21:47:34 +000023346else
cristy8b350f62009-11-15 23:12:43 +000023347 if test "$ac_cv_type_unsigned_long_long" = yes; then
23348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023350as_fn_error 77 "cannot compute sizeof (unsigned long long)
23351See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023352 else
23353 ac_cv_sizeof_unsigned_long_long=0
23354 fi
23355fi
cristy8b350f62009-11-15 23:12:43 +000023356
cristy3ed852e2009-09-05 21:47:34 +000023357fi
cristy8b350f62009-11-15 23:12:43 +000023358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023359$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23360
23361
23362
23363cat >>confdefs.h <<_ACEOF
23364#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23365_ACEOF
23366
23367
23368
23369# Obtain size of off_t and define as SIZEOF_OFF_T
23370# The cast to long int works around a bug in the HP C Compiler
23371# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23372# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23373# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023375$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023376if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023377 $as_echo_n "(cached) " >&6
23378else
cristy8b350f62009-11-15 23:12:43 +000023379 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 +000023380
cristy3ed852e2009-09-05 21:47:34 +000023381else
cristy8b350f62009-11-15 23:12:43 +000023382 if test "$ac_cv_type_off_t" = yes; then
23383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023385as_fn_error 77 "cannot compute sizeof (off_t)
23386See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023387 else
23388 ac_cv_sizeof_off_t=0
23389 fi
23390fi
cristy8b350f62009-11-15 23:12:43 +000023391
cristy3ed852e2009-09-05 21:47:34 +000023392fi
cristy8b350f62009-11-15 23:12:43 +000023393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023394$as_echo "$ac_cv_sizeof_off_t" >&6; }
23395
23396
23397
23398cat >>confdefs.h <<_ACEOF
23399#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23400_ACEOF
23401
23402
23403
23404# Obtain size of size_t and define as SIZEOF_SIZE_T
23405# The cast to long int works around a bug in the HP C Compiler
23406# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23407# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23408# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023410$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023411if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023412 $as_echo_n "(cached) " >&6
23413else
cristy8b350f62009-11-15 23:12:43 +000023414 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 +000023415
cristy3ed852e2009-09-05 21:47:34 +000023416else
cristy8b350f62009-11-15 23:12:43 +000023417 if test "$ac_cv_type_size_t" = yes; then
23418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023420as_fn_error 77 "cannot compute sizeof (size_t)
23421See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023422 else
23423 ac_cv_sizeof_size_t=0
23424 fi
23425fi
cristy8b350f62009-11-15 23:12:43 +000023426
cristy3ed852e2009-09-05 21:47:34 +000023427fi
cristy8b350f62009-11-15 23:12:43 +000023428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023429$as_echo "$ac_cv_sizeof_size_t" >&6; }
23430
23431
23432
23433cat >>confdefs.h <<_ACEOF
23434#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23435_ACEOF
23436
23437
23438
cristy330e9352010-06-01 18:42:49 +000023439# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23440# The cast to long int works around a bug in the HP C Compiler
23441# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23442# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23443# This bug is HP SR number 8606223364.
23444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23445$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023446if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023447 $as_echo_n "(cached) " >&6
23448else
23449 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23450
23451else
23452 if test "$ac_cv_type_ssize_t" = yes; then
23453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023455as_fn_error 77 "cannot compute sizeof (ssize_t)
23456See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023457 else
23458 ac_cv_sizeof_ssize_t=0
23459 fi
23460fi
23461
23462fi
23463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23464$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23465
23466
23467
23468cat >>confdefs.h <<_ACEOF
23469#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23470_ACEOF
23471
23472
23473
cristy3ed852e2009-09-05 21:47:34 +000023474# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23475# The cast to long int works around a bug in the HP C Compiler
23476# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23477# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23478# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023480$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023481if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023482 $as_echo_n "(cached) " >&6
23483else
cristy8b350f62009-11-15 23:12:43 +000023484 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 +000023485
cristy3ed852e2009-09-05 21:47:34 +000023486else
cristy8b350f62009-11-15 23:12:43 +000023487 if test "$ac_cv_type_unsigned_intp" = yes; then
23488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023490as_fn_error 77 "cannot compute sizeof (unsigned int*)
23491See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023492 else
23493 ac_cv_sizeof_unsigned_intp=0
23494 fi
23495fi
cristy8b350f62009-11-15 23:12:43 +000023496
cristy3ed852e2009-09-05 21:47:34 +000023497fi
cristy8b350f62009-11-15 23:12:43 +000023498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023499$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23500
23501
23502
23503cat >>confdefs.h <<_ACEOF
23504#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23505_ACEOF
23506
23507
23508
23509#
23510# Compute sized types for current CPU and compiler options.
23511#
23512
cristy8b350f62009-11-15 23:12:43 +000023513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023514$as_echo_n "checking for signed 8-bit type... " >&6; }
23515INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23517$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023518
23519
cristy8b350f62009-11-15 23:12:43 +000023520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023521$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23522UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23524$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023525
23526
cristy8b350f62009-11-15 23:12:43 +000023527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023528$as_echo_n "checking for signed 16-bit type... " >&6; }
23529INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23531$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023532
23533
cristy8b350f62009-11-15 23:12:43 +000023534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023535$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23536UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23538$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023539
23540
cristy8b350f62009-11-15 23:12:43 +000023541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023542$as_echo_n "checking for signed 32-bit type... " >&6; }
23543INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023544INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023545if test $ac_cv_sizeof_signed_int -eq 4; then
23546 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023547 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023548elif test $ac_cv_sizeof_signed_long -eq 4; then
23549 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023550 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023551fi
cristyad38abe2012-12-23 23:03:21 +000023552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23553$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023554
23555
cristy6d5e20f2011-04-25 13:48:54 +000023556
cristy8b350f62009-11-15 23:12:43 +000023557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023558$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23559UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023560UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023561if test $ac_cv_sizeof_unsigned_int -eq 4; then
23562 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023563 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023564elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23565 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023566 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023567fi
cristyad38abe2012-12-23 23:03:21 +000023568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23569$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023570
23571
cristy6d5e20f2011-04-25 13:48:54 +000023572
cristy8b350f62009-11-15 23:12:43 +000023573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023574$as_echo_n "checking for signed 64-bit type... " >&6; }
23575INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023576INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023577if test $ac_cv_sizeof_signed_long -eq 8; then
23578 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023579 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023580elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23581 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023582 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023583fi
cristy3a99dcf2011-12-17 01:29:40 +000023584case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023585 mingw* )
23586 INT64_F='"I64"'
23587 ;;
23588esac
cristyad38abe2012-12-23 23:03:21 +000023589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23590$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023591
23592
cristy6d5e20f2011-04-25 13:48:54 +000023593
cristy8b350f62009-11-15 23:12:43 +000023594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023595$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23596UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023597UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023598if test $ac_cv_sizeof_unsigned_long -eq 8; then
23599 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023600 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023601elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23602 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023603 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023604fi
cristy3a99dcf2011-12-17 01:29:40 +000023605case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023606 mingw* )
23607 UINT64_F='"I64"'
23608 ;;
23609esac
cristyad38abe2012-12-23 23:03:21 +000023610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23611$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023612
23613
cristy6d5e20f2011-04-25 13:48:54 +000023614
cristy8b350f62009-11-15 23:12:43 +000023615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023616$as_echo_n "checking for unsigned maximum type... " >&6; }
23617UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023618UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023619if test "$UINT64_T" != 'none'; then
23620 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023621 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023622elif test "$UINT32_T" != 'none'; then
23623 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023624 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023625fi
cristyad38abe2012-12-23 23:03:21 +000023626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23627$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023628
23629
cristy6d5e20f2011-04-25 13:48:54 +000023630
cristy8b350f62009-11-15 23:12:43 +000023631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023632$as_echo_n "checking for pointer difference type... " >&6; }
23633UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023634UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023635if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23636 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023637 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023638elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23639 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023640 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023641fi
cristyad38abe2012-12-23 23:03:21 +000023642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23643$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023644
23645
cristy6d5e20f2011-04-25 13:48:54 +000023646
cristy8b350f62009-11-15 23:12:43 +000023647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023648$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023650/* end confdefs.h. */
23651
23652int
23653main ()
23654{
23655{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23656 ;
23657 return 0;
23658}
23659_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023660if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23662$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023663else
cristyad38abe2012-12-23 23:03:21 +000023664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23665$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023667$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023669/* end confdefs.h. */
23670
23671int
23672main ()
23673{
23674{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23675 ;
23676 return 0;
23677}
23678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023679if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23681$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023682
cristy8b350f62009-11-15 23:12:43 +000023683$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023684
23685else
cristyad38abe2012-12-23 23:03:21 +000023686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23687$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023688
cristy8b350f62009-11-15 23:12:43 +000023689$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023690
23691fi
cristy3ed852e2009-09-05 21:47:34 +000023692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23693fi
cristy3ed852e2009-09-05 21:47:34 +000023694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23695
23696########
23697#
23698# Check for functions
23699#
23700########
cristy73bd4a52010-10-05 11:24:23 +000023701for ac_header in stdlib.h unistd.h
23702do :
23703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23704ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023705if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023706 cat >>confdefs.h <<_ACEOF
23707#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23708_ACEOF
23709
23710fi
23711
23712done
23713
23714for ac_func in getpagesize
23715do :
23716 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023717if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023718 cat >>confdefs.h <<_ACEOF
23719#define HAVE_GETPAGESIZE 1
23720_ACEOF
23721
23722fi
23723done
23724
23725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23726$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023727if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023728 $as_echo_n "(cached) " >&6
23729else
23730 if test "$cross_compiling" = yes; then :
23731 magick_cv_func_mmap_fileio=no
23732else
23733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23734/* end confdefs.h. */
23735$ac_includes_default
23736/* malloc might have been renamed as rpl_malloc. */
23737#undef malloc
23738
23739/*
23740 This test is derived from GNU Autoconf's similar macro.
23741 The purpose of this test is to verify that files may be memory
23742 mapped, and that memory mapping and file I/O are coherent.
23743
23744 The test creates a test file, memory maps the file, updates
23745 the file using the memory map, and then reads the file using
23746 file I/O to verify that the file contains the updates.
23747*/
23748
23749#include <fcntl.h>
23750#include <sys/mman.h>
23751
23752#if !STDC_HEADERS && !HAVE_STDLIB_H
23753char *malloc ();
23754#endif
23755
23756/* This mess was copied from the GNU getpagesize.h. */
23757#if !HAVE_GETPAGESIZE
23758/* Assume that all systems that can run configure have sys/param.h. */
23759# if !HAVE_SYS_PARAM_H
23760# define HAVE_SYS_PARAM_H 1
23761# endif
23762
23763# ifdef _SC_PAGESIZE
23764# define getpagesize() sysconf(_SC_PAGESIZE)
23765# else /* no _SC_PAGESIZE */
23766# if HAVE_SYS_PARAM_H
23767# include <sys/param.h>
23768# ifdef EXEC_PAGESIZE
23769# define getpagesize() EXEC_PAGESIZE
23770# else /* no EXEC_PAGESIZE */
23771# ifdef NBPG
23772# define getpagesize() NBPG * CLSIZE
23773# ifndef CLSIZE
23774# define CLSIZE 1
23775# endif /* no CLSIZE */
23776# else /* no NBPG */
23777# ifdef NBPC
23778# define getpagesize() NBPC
23779# else /* no NBPC */
23780# ifdef PAGESIZE
23781# define getpagesize() PAGESIZE
23782# endif /* PAGESIZE */
23783# endif /* no NBPC */
23784# endif /* no NBPG */
23785# endif /* no EXEC_PAGESIZE */
23786# else /* no HAVE_SYS_PARAM_H */
23787# define getpagesize() 8192 /* punt totally */
23788# endif /* no HAVE_SYS_PARAM_H */
23789# endif /* no _SC_PAGESIZE */
23790
23791#endif /* no HAVE_GETPAGESIZE */
23792
23793int
23794main ()
23795{
23796 char *data, *data2, *data3;
23797 int i, pagesize;
23798 int fd;
23799
23800 pagesize = getpagesize ();
23801
23802 /* First, make a file with some known garbage in it. */
23803 data = (char *) malloc (pagesize);
23804 if (!data)
23805 exit (1);
23806 for (i = 0; i < pagesize; ++i)
23807 *(data + i) = rand ();
23808 umask (0);
23809 fd = creat ("conftest.mmap", 0600);
23810 if (fd < 0)
23811 exit (1);
23812 if (write (fd, data, pagesize) != pagesize)
23813 exit (1);
23814 close (fd);
23815
23816 /* Mmap the file as read/write/shared and verify that we see the
23817 same garbage. */
23818 fd = open ("conftest.mmap", O_RDWR);
23819 if (fd < 0)
23820 exit (1);
23821 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23822 if (data2 == 0)
23823 exit (1);
23824 for (i = 0; i < pagesize; ++i)
23825 if (*(data + i) != *(data2 + i))
23826 exit (1);
23827
23828 /* Finally, make sure that changes to the mapped area
23829 percolate back to the file as seen by read(). */
23830 for (i = 0; i < pagesize; ++i)
23831 *(data2 + i) = *(data2 + i) + 1;
23832 data3 = (char *) malloc (pagesize);
23833 if (!data3)
23834 exit (1);
23835 if (read (fd, data3, pagesize) != pagesize)
23836 exit (1);
23837 for (i = 0; i < pagesize; ++i)
23838 if (*(data2 + i) != *(data3 + i))
23839 exit (1);
23840 close (fd);
23841 exit (0);
23842}
23843_ACEOF
23844if ac_fn_c_try_run "$LINENO"; then :
23845 magick_cv_func_mmap_fileio=yes
23846else
23847 magick_cv_func_mmap_fileio=no
23848fi
23849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23850 conftest.$ac_objext conftest.beam conftest.$ac_ext
23851fi
23852
23853fi
23854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23855$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23856if test $magick_cv_func_mmap_fileio = yes; then
23857
23858$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23859
23860fi
23861rm -f conftest.mmap
23862
cristy8b350f62009-11-15 23:12:43 +000023863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023864$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023865if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023866 $as_echo_n "(cached) " >&6
23867else
cristy8b350f62009-11-15 23:12:43 +000023868 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023869 ac_cv_func_closedir_void=yes
23870else
cristy8b350f62009-11-15 23:12:43 +000023871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023872/* end confdefs.h. */
23873$ac_includes_default
23874#include <$ac_header_dirent>
23875#ifndef __cplusplus
23876int closedir ();
23877#endif
23878
23879int
23880main ()
23881{
23882return closedir (opendir (".")) != 0;
23883 ;
23884 return 0;
23885}
23886_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023887if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023888 ac_cv_func_closedir_void=no
23889else
cristy8b350f62009-11-15 23:12:43 +000023890 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023891fi
cristy8b350f62009-11-15 23:12:43 +000023892rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23893 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023894fi
23895
cristy3ed852e2009-09-05 21:47:34 +000023896fi
cristy8b350f62009-11-15 23:12:43 +000023897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023898$as_echo "$ac_cv_func_closedir_void" >&6; }
23899if test $ac_cv_func_closedir_void = yes; then
23900
cristy8b350f62009-11-15 23:12:43 +000023901$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023902
23903fi
23904
cristycd4c5312009-11-22 01:19:08 +000023905
23906
23907
23908 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023909do :
23910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023911ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23912"
cristy98dddb52010-11-04 00:30:15 +000023913if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023914 cat >>confdefs.h <<_ACEOF
23915#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23916_ACEOF
23917
23918fi
23919
23920done
23921
cristycd4c5312009-11-22 01:19:08 +000023922
23923
23924
23925
23926
23927
23928
cristy3ed852e2009-09-05 21:47:34 +000023929for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023930do :
23931 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023932if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023933 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023934#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023935_ACEOF
23936
23937fi
23938done
23939
cristy8b350f62009-11-15 23:12:43 +000023940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023941$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023942if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023943 $as_echo_n "(cached) " >&6
23944else
cristy8b350f62009-11-15 23:12:43 +000023945 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023946 ac_cv_func_mmap_fixed_mapped=no
23947else
cristy8b350f62009-11-15 23:12:43 +000023948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023949/* end confdefs.h. */
23950$ac_includes_default
23951/* malloc might have been renamed as rpl_malloc. */
23952#undef malloc
23953
23954/* Thanks to Mike Haertel and Jim Avera for this test.
23955 Here is a matrix of mmap possibilities:
23956 mmap private not fixed
23957 mmap private fixed at somewhere currently unmapped
23958 mmap private fixed at somewhere already mapped
23959 mmap shared not fixed
23960 mmap shared fixed at somewhere currently unmapped
23961 mmap shared fixed at somewhere already mapped
23962 For private mappings, we should verify that changes cannot be read()
23963 back from the file, nor mmap's back from the file at a different
23964 address. (There have been systems where private was not correctly
23965 implemented like the infamous i386 svr4.0, and systems where the
23966 VM page cache was not coherent with the file system buffer cache
23967 like early versions of FreeBSD and possibly contemporary NetBSD.)
23968 For shared mappings, we should conversely verify that changes get
23969 propagated back to all the places they're supposed to be.
23970
23971 Grep wants private fixed already mapped.
23972 The main things grep needs to know about mmap are:
23973 * does it exist and is it safe to write into the mmap'd area
23974 * how to use it (BSD variants) */
23975
23976#include <fcntl.h>
23977#include <sys/mman.h>
23978
23979#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23980char *malloc ();
23981#endif
23982
23983/* This mess was copied from the GNU getpagesize.h. */
23984#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000023985# ifdef _SC_PAGESIZE
23986# define getpagesize() sysconf(_SC_PAGESIZE)
23987# else /* no _SC_PAGESIZE */
23988# ifdef HAVE_SYS_PARAM_H
23989# include <sys/param.h>
23990# ifdef EXEC_PAGESIZE
23991# define getpagesize() EXEC_PAGESIZE
23992# else /* no EXEC_PAGESIZE */
23993# ifdef NBPG
23994# define getpagesize() NBPG * CLSIZE
23995# ifndef CLSIZE
23996# define CLSIZE 1
23997# endif /* no CLSIZE */
23998# else /* no NBPG */
23999# ifdef NBPC
24000# define getpagesize() NBPC
24001# else /* no NBPC */
24002# ifdef PAGESIZE
24003# define getpagesize() PAGESIZE
24004# endif /* PAGESIZE */
24005# endif /* no NBPC */
24006# endif /* no NBPG */
24007# endif /* no EXEC_PAGESIZE */
24008# else /* no HAVE_SYS_PARAM_H */
24009# define getpagesize() 8192 /* punt totally */
24010# endif /* no HAVE_SYS_PARAM_H */
24011# endif /* no _SC_PAGESIZE */
24012
24013#endif /* no HAVE_GETPAGESIZE */
24014
24015int
24016main ()
24017{
24018 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024019 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024020 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024021 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024022
24023 pagesize = getpagesize ();
24024
24025 /* First, make a file with some known garbage in it. */
24026 data = (char *) malloc (pagesize);
24027 if (!data)
24028 return 1;
24029 for (i = 0; i < pagesize; ++i)
24030 *(data + i) = rand ();
24031 umask (0);
24032 fd = creat ("conftest.mmap", 0600);
24033 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024034 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024035 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024036 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024037 close (fd);
24038
cristycd4c5312009-11-22 01:19:08 +000024039 /* Next, check that the tail of a page is zero-filled. File must have
24040 non-zero length, otherwise we risk SIGBUS for entire page. */
24041 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24042 if (fd2 < 0)
24043 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024044 cdata2 = "";
24045 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024046 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024047 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024048 if (data2 == MAP_FAILED)
24049 return 6;
24050 for (i = 0; i < pagesize; ++i)
24051 if (*(data2 + i))
24052 return 7;
24053 close (fd2);
24054 if (munmap (data2, pagesize))
24055 return 8;
24056
cristy3ed852e2009-09-05 21:47:34 +000024057 /* Next, try to mmap the file at a fixed address which already has
24058 something else allocated at it. If we can, also make sure that
24059 we see the same garbage. */
24060 fd = open ("conftest.mmap", O_RDWR);
24061 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024062 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024063 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24064 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024065 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024066 for (i = 0; i < pagesize; ++i)
24067 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024068 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024069
24070 /* Finally, make sure that changes to the mapped area do not
24071 percolate back to the file as seen by read(). (This is a bug on
24072 some variants of i386 svr4.0.) */
24073 for (i = 0; i < pagesize; ++i)
24074 *(data2 + i) = *(data2 + i) + 1;
24075 data3 = (char *) malloc (pagesize);
24076 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024077 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024078 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024079 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024080 for (i = 0; i < pagesize; ++i)
24081 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024082 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024083 close (fd);
24084 return 0;
24085}
24086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024087if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024088 ac_cv_func_mmap_fixed_mapped=yes
24089else
cristy8b350f62009-11-15 23:12:43 +000024090 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024091fi
cristy8b350f62009-11-15 23:12:43 +000024092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24093 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024094fi
24095
cristy3ed852e2009-09-05 21:47:34 +000024096fi
cristy8b350f62009-11-15 23:12:43 +000024097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024098$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24099if test $ac_cv_func_mmap_fixed_mapped = yes; then
24100
cristy8b350f62009-11-15 23:12:43 +000024101$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024102
24103fi
cristycd4c5312009-11-22 01:19:08 +000024104rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024105
cristy3ed852e2009-09-05 21:47:34 +000024106for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024107do :
24108 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024109if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024110 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024111#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024112_ACEOF
24113
24114fi
24115
24116done
24117
cristy3ed852e2009-09-05 21:47:34 +000024118for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024119do :
24120 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24121ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024122if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024123 cat >>confdefs.h <<_ACEOF
24124#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24125_ACEOF
24126
24127fi
24128done
24129
24130if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024132$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024133if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024134 $as_echo_n "(cached) " >&6
24135else
cristy8b350f62009-11-15 23:12:43 +000024136 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024137 ac_cv_func_fork_works=cross
24138else
cristy8b350f62009-11-15 23:12:43 +000024139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024140/* end confdefs.h. */
24141$ac_includes_default
24142int
24143main ()
24144{
24145
24146 /* By Ruediger Kuhlmann. */
24147 return fork () < 0;
24148
24149 ;
24150 return 0;
24151}
24152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024153if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024154 ac_cv_func_fork_works=yes
24155else
cristy8b350f62009-11-15 23:12:43 +000024156 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024157fi
cristy8b350f62009-11-15 23:12:43 +000024158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24159 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024160fi
24161
cristy3ed852e2009-09-05 21:47:34 +000024162fi
cristy8b350f62009-11-15 23:12:43 +000024163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024164$as_echo "$ac_cv_func_fork_works" >&6; }
24165
24166else
24167 ac_cv_func_fork_works=$ac_cv_func_fork
24168fi
24169if test "x$ac_cv_func_fork_works" = xcross; then
24170 case $host in
24171 *-*-amigaos* | *-*-msdosdjgpp*)
24172 # Override, as these systems have only a dummy fork() stub
24173 ac_cv_func_fork_works=no
24174 ;;
24175 *)
24176 ac_cv_func_fork_works=yes
24177 ;;
24178 esac
cristy8b350f62009-11-15 23:12:43 +000024179 { $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 +000024180$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24181fi
24182ac_cv_func_vfork_works=$ac_cv_func_vfork
24183if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024185$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024186if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024187 $as_echo_n "(cached) " >&6
24188else
cristy8b350f62009-11-15 23:12:43 +000024189 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024190 ac_cv_func_vfork_works=cross
24191else
cristy8b350f62009-11-15 23:12:43 +000024192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024193/* end confdefs.h. */
24194/* Thanks to Paul Eggert for this test. */
24195$ac_includes_default
24196#include <sys/wait.h>
24197#ifdef HAVE_VFORK_H
24198# include <vfork.h>
24199#endif
24200/* On some sparc systems, changes by the child to local and incoming
24201 argument registers are propagated back to the parent. The compiler
24202 is told about this with #include <vfork.h>, but some compilers
24203 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24204 static variable whose address is put into a register that is
24205 clobbered by the vfork. */
24206static void
24207#ifdef __cplusplus
24208sparc_address_test (int arg)
24209# else
24210sparc_address_test (arg) int arg;
24211#endif
24212{
24213 static pid_t child;
24214 if (!child) {
24215 child = vfork ();
24216 if (child < 0) {
24217 perror ("vfork");
24218 _exit(2);
24219 }
24220 if (!child) {
24221 arg = getpid();
24222 write(-1, "", 0);
24223 _exit (arg);
24224 }
24225 }
24226}
24227
24228int
24229main ()
24230{
24231 pid_t parent = getpid ();
24232 pid_t child;
24233
24234 sparc_address_test (0);
24235
24236 child = vfork ();
24237
24238 if (child == 0) {
24239 /* Here is another test for sparc vfork register problems. This
24240 test uses lots of local variables, at least as many local
24241 variables as main has allocated so far including compiler
24242 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24243 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24244 reuse the register of parent for one of the local variables,
24245 since it will think that parent can't possibly be used any more
24246 in this routine. Assigning to the local variable will thus
24247 munge parent in the parent process. */
24248 pid_t
24249 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24250 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24251 /* Convince the compiler that p..p7 are live; otherwise, it might
24252 use the same hardware register for all 8 local variables. */
24253 if (p != p1 || p != p2 || p != p3 || p != p4
24254 || p != p5 || p != p6 || p != p7)
24255 _exit(1);
24256
24257 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24258 from child file descriptors. If the child closes a descriptor
24259 before it execs or exits, this munges the parent's descriptor
24260 as well. Test for this by closing stdout in the child. */
24261 _exit(close(fileno(stdout)) != 0);
24262 } else {
24263 int status;
24264 struct stat st;
24265
24266 while (wait(&status) != child)
24267 ;
24268 return (
24269 /* Was there some problem with vforking? */
24270 child < 0
24271
24272 /* Did the child fail? (This shouldn't happen.) */
24273 || status
24274
24275 /* Did the vfork/compiler bug occur? */
24276 || parent != getpid()
24277
24278 /* Did the file descriptor bug occur? */
24279 || fstat(fileno(stdout), &st) != 0
24280 );
24281 }
24282}
24283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024284if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024285 ac_cv_func_vfork_works=yes
24286else
cristy8b350f62009-11-15 23:12:43 +000024287 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024288fi
cristy8b350f62009-11-15 23:12:43 +000024289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24290 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024291fi
24292
cristy3ed852e2009-09-05 21:47:34 +000024293fi
cristy8b350f62009-11-15 23:12:43 +000024294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024295$as_echo "$ac_cv_func_vfork_works" >&6; }
24296
24297fi;
24298if test "x$ac_cv_func_fork_works" = xcross; then
24299 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024300 { $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 +000024301$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24302fi
24303
24304if test "x$ac_cv_func_vfork_works" = xyes; then
24305
cristy8b350f62009-11-15 23:12:43 +000024306$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024307
24308else
24309
cristy8b350f62009-11-15 23:12:43 +000024310$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024311
24312fi
24313if test "x$ac_cv_func_fork_works" = xyes; then
24314
cristy8b350f62009-11-15 23:12:43 +000024315$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024316
24317fi
24318
cristy8b350f62009-11-15 23:12:43 +000024319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024320$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024321if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024322 $as_echo_n "(cached) " >&6
24323else
cristy8b350f62009-11-15 23:12:43 +000024324 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024325 ac_cv_func_memcmp_working=no
24326else
cristy8b350f62009-11-15 23:12:43 +000024327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024328/* end confdefs.h. */
24329$ac_includes_default
24330int
24331main ()
24332{
24333
24334 /* Some versions of memcmp are not 8-bit clean. */
24335 char c0 = '\100', c1 = '\200', c2 = '\201';
24336 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24337 return 1;
24338
24339 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24340 or more and with at least one buffer not starting on a 4-byte boundary.
24341 William Lewis provided this test program. */
24342 {
24343 char foo[21];
24344 char bar[21];
24345 int i;
24346 for (i = 0; i < 4; i++)
24347 {
24348 char *a = foo + i;
24349 char *b = bar + i;
24350 strcpy (a, "--------01111111");
24351 strcpy (b, "--------10000000");
24352 if (memcmp (a, b, 16) >= 0)
24353 return 1;
24354 }
24355 return 0;
24356 }
24357
24358 ;
24359 return 0;
24360}
24361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024362if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024363 ac_cv_func_memcmp_working=yes
24364else
cristy8b350f62009-11-15 23:12:43 +000024365 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024366fi
cristy8b350f62009-11-15 23:12:43 +000024367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24368 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024369fi
24370
cristy3ed852e2009-09-05 21:47:34 +000024371fi
cristy8b350f62009-11-15 23:12:43 +000024372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024373$as_echo "$ac_cv_func_memcmp_working" >&6; }
24374test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24375 *" memcmp.$ac_objext "* ) ;;
24376 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24377 ;;
24378esac
24379
24380
cristy3ed852e2009-09-05 21:47:34 +000024381for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024382do :
24383 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24384ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024385if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024386 cat >>confdefs.h <<_ACEOF
24387#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24388_ACEOF
24389
24390fi
24391
24392done
24393
cristy8b350f62009-11-15 23:12:43 +000024394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024395$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024396if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024397 $as_echo_n "(cached) " >&6
24398else
24399 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24400 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24401 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024403/* end confdefs.h. */
24404$ac_includes_default
24405#ifdef HAVE_SYS_SELECT_H
24406# include <sys/select.h>
24407#endif
24408#ifdef HAVE_SYS_SOCKET_H
24409# include <sys/socket.h>
24410#endif
24411
24412int
24413main ()
24414{
24415extern int select ($ac_arg1,
24416 $ac_arg234, $ac_arg234, $ac_arg234,
24417 $ac_arg5);
24418 ;
24419 return 0;
24420}
24421_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024422if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024423 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024424fi
cristy3ed852e2009-09-05 21:47:34 +000024425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24426 done
24427 done
24428done
24429# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024430: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024431
24432fi
cristy8b350f62009-11-15 23:12:43 +000024433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024434$as_echo "$ac_cv_func_select_args" >&6; }
24435ac_save_IFS=$IFS; IFS=','
24436set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24437IFS=$ac_save_IFS
24438shift
24439
24440cat >>confdefs.h <<_ACEOF
24441#define SELECT_TYPE_ARG1 $1
24442_ACEOF
24443
24444
24445cat >>confdefs.h <<_ACEOF
24446#define SELECT_TYPE_ARG234 ($2)
24447_ACEOF
24448
24449
24450cat >>confdefs.h <<_ACEOF
24451#define SELECT_TYPE_ARG5 ($3)
24452_ACEOF
24453
24454rm -f conftest*
24455
cristyda16f162011-02-19 23:52:17 +000024456if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024457 $as_echo_n "(cached) " >&6
24458else
24459 ac_cv_func_setvbuf_reversed=no
24460fi
24461
24462
cristy8b350f62009-11-15 23:12:43 +000024463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024464$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024465if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024466 $as_echo_n "(cached) " >&6
24467else
cristy8b350f62009-11-15 23:12:43 +000024468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024469/* end confdefs.h. */
24470#include <sys/types.h>
24471#include <signal.h>
24472
24473int
24474main ()
24475{
24476return *(signal (0, 0)) (0) == 1;
24477 ;
24478 return 0;
24479}
24480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024481if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024482 ac_cv_type_signal=int
24483else
cristy8b350f62009-11-15 23:12:43 +000024484 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024485fi
cristy3ed852e2009-09-05 21:47:34 +000024486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24487fi
cristy8b350f62009-11-15 23:12:43 +000024488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024489$as_echo "$ac_cv_type_signal" >&6; }
24490
24491cat >>confdefs.h <<_ACEOF
24492#define RETSIGTYPE $ac_cv_type_signal
24493_ACEOF
24494
24495
cristy8b350f62009-11-15 23:12:43 +000024496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024497$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024498if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024499 $as_echo_n "(cached) " >&6
24500else
cristy8b350f62009-11-15 23:12:43 +000024501 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024502 ac_cv_func_strtod=no
24503else
cristy8b350f62009-11-15 23:12:43 +000024504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024505/* end confdefs.h. */
24506
24507$ac_includes_default
24508#ifndef strtod
24509double strtod ();
24510#endif
24511int
24512main()
24513{
24514 {
24515 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24516 char *string = " +69";
24517 char *term;
24518 double value;
24519 value = strtod (string, &term);
24520 if (value != 69 || term != (string + 4))
24521 return 1;
24522 }
24523
24524 {
24525 /* Under Solaris 2.4, strtod returns the wrong value for the
24526 terminating character under some conditions. */
24527 char *string = "NaN";
24528 char *term;
24529 strtod (string, &term);
24530 if (term != string && *(term - 1) == 0)
24531 return 1;
24532 }
24533 return 0;
24534}
24535
24536_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024537if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024538 ac_cv_func_strtod=yes
24539else
cristy8b350f62009-11-15 23:12:43 +000024540 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024541fi
cristy8b350f62009-11-15 23:12:43 +000024542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24543 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024544fi
24545
cristy3ed852e2009-09-05 21:47:34 +000024546fi
cristy8b350f62009-11-15 23:12:43 +000024547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024548$as_echo "$ac_cv_func_strtod" >&6; }
24549if test $ac_cv_func_strtod = no; then
24550 case " $LIBOBJS " in
24551 *" strtod.$ac_objext "* ) ;;
24552 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24553 ;;
24554esac
24555
cristy8b350f62009-11-15 23:12:43 +000024556ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024557if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024558
cristy3ed852e2009-09-05 21:47:34 +000024559fi
24560
cristy3ed852e2009-09-05 21:47:34 +000024561if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024563$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024564if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024565 $as_echo_n "(cached) " >&6
24566else
24567 ac_check_lib_save_LIBS=$LIBS
24568LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024570/* end confdefs.h. */
24571
24572/* Override any GCC internal prototype to avoid an error.
24573 Use char because int might match the return type of a GCC
24574 builtin and then its argument prototype would still apply. */
24575#ifdef __cplusplus
24576extern "C"
24577#endif
24578char pow ();
24579int
24580main ()
24581{
24582return pow ();
24583 ;
24584 return 0;
24585}
24586_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024587if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024588 ac_cv_lib_m_pow=yes
24589else
cristy8b350f62009-11-15 23:12:43 +000024590 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024591fi
cristy8b350f62009-11-15 23:12:43 +000024592rm -f core conftest.err conftest.$ac_objext \
24593 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024594LIBS=$ac_check_lib_save_LIBS
24595fi
cristy8b350f62009-11-15 23:12:43 +000024596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024597$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024598if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024599 POW_LIB=-lm
24600else
cristy8b350f62009-11-15 23:12:43 +000024601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024602$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24603fi
24604
24605fi
24606
24607fi
24608
cristy7d4a1d62011-10-13 15:54:12 +000024609ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24610if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24611 ac_have_decl=1
24612else
24613 ac_have_decl=0
24614fi
24615
24616cat >>confdefs.h <<_ACEOF
24617#define HAVE_DECL_STRERROR_R $ac_have_decl
24618_ACEOF
24619
24620for ac_func in strerror_r
24621do :
24622 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24623if test "x$ac_cv_func_strerror_r" = xyes; then :
24624 cat >>confdefs.h <<_ACEOF
24625#define HAVE_STRERROR_R 1
24626_ACEOF
24627
24628fi
24629done
24630
24631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24632$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24633if ${ac_cv_func_strerror_r_char_p+:} false; then :
24634 $as_echo_n "(cached) " >&6
24635else
24636
24637 ac_cv_func_strerror_r_char_p=no
24638 if test $ac_cv_have_decl_strerror_r = yes; then
24639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24640/* end confdefs.h. */
24641$ac_includes_default
24642int
24643main ()
24644{
24645
24646 char buf[100];
24647 char x = *strerror_r (0, buf, sizeof buf);
24648 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024649 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024650
24651 ;
24652 return 0;
24653}
24654_ACEOF
24655if ac_fn_c_try_compile "$LINENO"; then :
24656 ac_cv_func_strerror_r_char_p=yes
24657fi
24658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24659 else
24660 # strerror_r is not declared. Choose between
24661 # systems that have relatively inaccessible declarations for the
24662 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24663 # former has a strerror_r that returns char*, while the latter
24664 # has a strerror_r that returns `int'.
24665 # This test should segfault on the DEC system.
24666 if test "$cross_compiling" = yes; then :
24667 :
24668else
24669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24670/* end confdefs.h. */
24671$ac_includes_default
24672 extern char *strerror_r ();
24673int
24674main ()
24675{
24676char buf[100];
24677 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024678 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024679 ;
24680 return 0;
24681}
24682_ACEOF
24683if ac_fn_c_try_run "$LINENO"; then :
24684 ac_cv_func_strerror_r_char_p=yes
24685fi
24686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24687 conftest.$ac_objext conftest.beam conftest.$ac_ext
24688fi
24689
24690 fi
24691
24692fi
24693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24694$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24695if test $ac_cv_func_strerror_r_char_p = yes; then
24696
24697$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24698
24699fi
24700
cristy3ed852e2009-09-05 21:47:34 +000024701for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024702do :
24703 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024704if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024705 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024706#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024707_ACEOF
24708
cristy8b350f62009-11-15 23:12:43 +000024709ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024710if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024711
cristy8b350f62009-11-15 23:12:43 +000024712$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024713
24714fi
24715
24716fi
24717done
24718
24719
24720
cristy161b9262010-03-20 19:34:32 +000024721#
24722# Find math library
24723#
24724MATH_LIBS=''
24725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24726$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024727if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024728 $as_echo_n "(cached) " >&6
24729else
24730 ac_check_lib_save_LIBS=$LIBS
24731LIBS="-lm $LIBS"
24732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24733/* end confdefs.h. */
24734
24735/* Override any GCC internal prototype to avoid an error.
24736 Use char because int might match the return type of a GCC
24737 builtin and then its argument prototype would still apply. */
24738#ifdef __cplusplus
24739extern "C"
24740#endif
24741char sqrt ();
24742int
24743main ()
24744{
24745return sqrt ();
24746 ;
24747 return 0;
24748}
24749_ACEOF
24750if ac_fn_c_try_link "$LINENO"; then :
24751 ac_cv_lib_m_sqrt=yes
24752else
24753 ac_cv_lib_m_sqrt=no
24754fi
24755rm -f core conftest.err conftest.$ac_objext \
24756 conftest$ac_exeext conftest.$ac_ext
24757LIBS=$ac_check_lib_save_LIBS
24758fi
24759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24760$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024761if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024762 MATH_LIBS="-lm"
24763fi
24764
24765LIBS="$MATH_LIBS $LIBS"
24766
24767
cristy568c2d42012-07-27 01:41:20 +000024768for 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 +000024769do :
24770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24771ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024772if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024773 cat >>confdefs.h <<_ACEOF
24774#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24775_ACEOF
24776
24777fi
24778done
24779
24780
cristye43a45e2009-09-28 14:49:00 +000024781#
24782# Check for clock_gettime().
24783#
cristy8b350f62009-11-15 23:12:43 +000024784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024785$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024786if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024787 $as_echo_n "(cached) " >&6
24788else
24789 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024791/* end confdefs.h. */
24792
24793/* Override any GCC internal prototype to avoid an error.
24794 Use char because int might match the return type of a GCC
24795 builtin and then its argument prototype would still apply. */
24796#ifdef __cplusplus
24797extern "C"
24798#endif
24799char clock_gettime ();
24800int
24801main ()
24802{
24803return clock_gettime ();
24804 ;
24805 return 0;
24806}
24807_ACEOF
24808for ac_lib in '' rt; do
24809 if test -z "$ac_lib"; then
24810 ac_res="none required"
24811 else
24812 ac_res=-l$ac_lib
24813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24814 fi
cristy8b350f62009-11-15 23:12:43 +000024815 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024816 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024817fi
cristy8b350f62009-11-15 23:12:43 +000024818rm -f core conftest.err conftest.$ac_objext \
24819 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024820 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024821 break
24822fi
24823done
cristyda16f162011-02-19 23:52:17 +000024824if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024825
cristye43a45e2009-09-28 14:49:00 +000024826else
24827 ac_cv_search_clock_gettime=no
24828fi
24829rm conftest.$ac_ext
24830LIBS=$ac_func_search_save_LIBS
24831fi
cristy8b350f62009-11-15 23:12:43 +000024832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024833$as_echo "$ac_cv_search_clock_gettime" >&6; }
24834ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024835if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24837
24838
cristy8b350f62009-11-15 23:12:43 +000024839$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024840
cristy8b350f62009-11-15 23:12:43 +000024841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024842$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024844/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024845
24846 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024847int
24848main ()
24849{
24850clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024851 ;
24852 return 0;
24853}
24854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024855if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024856
cristyad38abe2012-12-23 23:03:21 +000024857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24858$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000024859
cristy8b350f62009-11-15 23:12:43 +000024860$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024861
24862
24863else
cristyad38abe2012-12-23 23:03:21 +000024864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24865$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000024866
24867fi
cristye43a45e2009-09-28 14:49:00 +000024868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24869
24870else
24871
cristy8b350f62009-11-15 23:12:43 +000024872 for ac_func in gettimeofday ftime
24873do :
24874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24875ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024876if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024877 cat >>confdefs.h <<_ACEOF
24878#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24879_ACEOF
24880 break
24881fi
24882done
24883
24884
24885
24886fi
24887
24888
cristy3ed852e2009-09-05 21:47:34 +000024889########
24890#
24891# Check for function prototypes
24892#
24893########
24894
cristy8b350f62009-11-15 23:12:43 +000024895ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024896#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024897"
cristyda16f162011-02-19 23:52:17 +000024898if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024899 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024900else
cristy8b350f62009-11-15 23:12:43 +000024901 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024902fi
24903
cristy3ed852e2009-09-05 21:47:34 +000024904cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024905#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024907ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024908#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024909"
cristyda16f162011-02-19 23:52:17 +000024910if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024911 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024912else
cristy8b350f62009-11-15 23:12:43 +000024913 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024914fi
24915
cristy3ed852e2009-09-05 21:47:34 +000024916cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024917#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024918_ACEOF
24919
24920
cristy8b350f62009-11-15 23:12:43 +000024921ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024922#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024923"
cristyda16f162011-02-19 23:52:17 +000024924if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024925 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024926else
cristy8b350f62009-11-15 23:12:43 +000024927 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024928fi
24929
cristy3ed852e2009-09-05 21:47:34 +000024930cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024931#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024932_ACEOF
24933
24934
cristy8b350f62009-11-15 23:12:43 +000024935ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024936#include <stdio.h>
24937#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024938"
cristyda16f162011-02-19 23:52:17 +000024939if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024940 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024941else
cristy8b350f62009-11-15 23:12:43 +000024942 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024943fi
24944
cristy3ed852e2009-09-05 21:47:34 +000024945cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024946#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024947_ACEOF
24948
24949
cristy3ed852e2009-09-05 21:47:34 +000024950########
24951#
24952# C++ Support Tests (For Magick++)
24953#
24954########
24955have_magick_plus_plus='no'
24956if test "$with_magick_plus_plus" = 'yes'; then
24957 OLIBS="$LIBS"
24958 LIBS=''
24959 ac_ext=cpp
24960ac_cpp='$CXXCPP $CPPFLAGS'
24961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24964
24965
24966 # Full set of headers used...
24967 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24968 # functional iomanip iosfwd iostream iterator list string strstream utility
24969 ac_ext=cpp
24970ac_cpp='$CXXCPP $CPPFLAGS'
24971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24974
24975 ac_ext=cpp
24976ac_cpp='$CXXCPP $CPPFLAGS'
24977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24980if test -z "$CXX"; then
24981 if test -n "$CCC"; then
24982 CXX=$CCC
24983 else
24984 if test -n "$ac_tool_prefix"; then
24985 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24986 do
24987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24988set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024991if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024992 $as_echo_n "(cached) " >&6
24993else
24994 if test -n "$CXX"; then
24995 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24996else
24997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24998for as_dir in $PATH
24999do
25000 IFS=$as_save_IFS
25001 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025004 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025006 break 2
25007 fi
25008done
cristy8b350f62009-11-15 23:12:43 +000025009 done
cristy3ed852e2009-09-05 21:47:34 +000025010IFS=$as_save_IFS
25011
25012fi
25013fi
25014CXX=$ac_cv_prog_CXX
25015if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025017$as_echo "$CXX" >&6; }
25018else
cristy8b350f62009-11-15 23:12:43 +000025019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025020$as_echo "no" >&6; }
25021fi
25022
25023
25024 test -n "$CXX" && break
25025 done
25026fi
25027if test -z "$CXX"; then
25028 ac_ct_CXX=$CXX
25029 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25030do
25031 # Extract the first word of "$ac_prog", so it can be a program name with args.
25032set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025035if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025036 $as_echo_n "(cached) " >&6
25037else
25038 if test -n "$ac_ct_CXX"; then
25039 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25040else
25041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25042for as_dir in $PATH
25043do
25044 IFS=$as_save_IFS
25045 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025046 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025048 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025050 break 2
25051 fi
25052done
cristy8b350f62009-11-15 23:12:43 +000025053 done
cristy3ed852e2009-09-05 21:47:34 +000025054IFS=$as_save_IFS
25055
25056fi
25057fi
25058ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25059if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025061$as_echo "$ac_ct_CXX" >&6; }
25062else
cristy8b350f62009-11-15 23:12:43 +000025063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025064$as_echo "no" >&6; }
25065fi
25066
25067
25068 test -n "$ac_ct_CXX" && break
25069done
25070
25071 if test "x$ac_ct_CXX" = x; then
25072 CXX="g++"
25073 else
25074 case $cross_compiling:$ac_tool_warned in
25075yes:)
cristy8b350f62009-11-15 23:12:43 +000025076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25078ac_tool_warned=yes ;;
25079esac
25080 CXX=$ac_ct_CXX
25081 fi
25082fi
25083
25084 fi
25085fi
25086# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025087$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025088set X $ac_compile
25089ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025090for ac_option in --version -v -V -qversion; do
25091 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025092case "(($ac_try" in
25093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25094 *) ac_try_echo=$ac_try;;
25095esac
cristy8b350f62009-11-15 23:12:43 +000025096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25097$as_echo "$ac_try_echo"; } >&5
25098 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025099 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025100 if test -s conftest.err; then
25101 sed '10a\
25102... rest of stderr output deleted ...
25103 10q' conftest.err >conftest.er1
25104 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025105 fi
cristycd4c5312009-11-22 01:19:08 +000025106 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25108 test $ac_status = 0; }
25109done
cristy3ed852e2009-09-05 21:47:34 +000025110
cristy8b350f62009-11-15 23:12:43 +000025111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025112$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025113if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025114 $as_echo_n "(cached) " >&6
25115else
cristy8b350f62009-11-15 23:12:43 +000025116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025117/* end confdefs.h. */
25118
25119int
25120main ()
25121{
25122#ifndef __GNUC__
25123 choke me
25124#endif
25125
25126 ;
25127 return 0;
25128}
25129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025130if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025131 ac_compiler_gnu=yes
25132else
cristy8b350f62009-11-15 23:12:43 +000025133 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025134fi
cristy3ed852e2009-09-05 21:47:34 +000025135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25136ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25137
25138fi
cristy8b350f62009-11-15 23:12:43 +000025139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025140$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25141if test $ac_compiler_gnu = yes; then
25142 GXX=yes
25143else
25144 GXX=
25145fi
25146ac_test_CXXFLAGS=${CXXFLAGS+set}
25147ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025149$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025150if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025151 $as_echo_n "(cached) " >&6
25152else
25153 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25154 ac_cxx_werror_flag=yes
25155 ac_cv_prog_cxx_g=no
25156 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025158/* end confdefs.h. */
25159
25160int
25161main ()
25162{
25163
25164 ;
25165 return 0;
25166}
25167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025168if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025169 ac_cv_prog_cxx_g=yes
25170else
cristy8b350f62009-11-15 23:12:43 +000025171 CXXFLAGS=""
25172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025173/* end confdefs.h. */
25174
25175int
25176main ()
25177{
25178
25179 ;
25180 return 0;
25181}
25182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025183if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025184
cristy8b350f62009-11-15 23:12:43 +000025185else
25186 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025187 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025189/* end confdefs.h. */
25190
25191int
25192main ()
25193{
25194
25195 ;
25196 return 0;
25197}
25198_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025199if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025200 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025201fi
cristy3ed852e2009-09-05 21:47:34 +000025202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25203fi
cristy3ed852e2009-09-05 21:47:34 +000025204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25205fi
cristy3ed852e2009-09-05 21:47:34 +000025206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25207 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25208fi
cristy8b350f62009-11-15 23:12:43 +000025209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025210$as_echo "$ac_cv_prog_cxx_g" >&6; }
25211if test "$ac_test_CXXFLAGS" = set; then
25212 CXXFLAGS=$ac_save_CXXFLAGS
25213elif test $ac_cv_prog_cxx_g = yes; then
25214 if test "$GXX" = yes; then
25215 CXXFLAGS="-g -O2"
25216 else
25217 CXXFLAGS="-g"
25218 fi
25219else
25220 if test "$GXX" = yes; then
25221 CXXFLAGS="-O2"
25222 else
25223 CXXFLAGS=
25224 fi
25225fi
25226ac_ext=cpp
25227ac_cpp='$CXXCPP $CPPFLAGS'
25228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25231
cristy73bd4a52010-10-05 11:24:23 +000025232depcc="$CXX" am_compiler_list=
25233
25234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25235$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025236if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025237 $as_echo_n "(cached) " >&6
25238else
25239 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25240 # We make a subdir and do the tests there. Otherwise we can end up
25241 # making bogus files that we don't know about and never remove. For
25242 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025243 # making a dummy file named 'D' -- because '-MD' means "put the output
25244 # in D".
cristy7247bba2012-02-05 16:37:27 +000025245 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025246 mkdir conftest.dir
25247 # Copy depcomp to subdir because otherwise we won't find it if we're
25248 # using a relative directory.
25249 cp "$am_depcomp" conftest.dir
25250 cd conftest.dir
25251 # We will build objects and dependencies in a subdirectory because
25252 # it helps to detect inapplicable dependency modes. For instance
25253 # both Tru64's cc and ICC support -MD to output dependencies as a
25254 # side effect of compilation, but ICC will put the dependencies in
25255 # the current directory while Tru64 will put them in the object
25256 # directory.
25257 mkdir sub
25258
25259 am_cv_CXX_dependencies_compiler_type=none
25260 if test "$am_compiler_list" = ""; then
25261 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25262 fi
25263 am__universal=false
25264 case " $depcc " in #(
25265 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25266 esac
25267
25268 for depmode in $am_compiler_list; do
25269 # Setup a source with many dependencies, because some compilers
25270 # like to wrap large dependency lists on column 80 (with \), and
25271 # we should not choose a depcomp mode which is confused by this.
25272 #
25273 # We need to recreate these files for each test, as the compiler may
25274 # overwrite some of them when testing with obscure command lines.
25275 # This happens at least with the AIX C compiler.
25276 : > sub/conftest.c
25277 for i in 1 2 3 4 5 6; do
25278 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025279 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25280 # Solaris 10 /bin/sh.
25281 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025282 done
25283 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25284
cristyc0890a62012-07-19 00:18:20 +000025285 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025286 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025287 # handle '-M -o', and we need to detect this. Also, some Intel
25288 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025289 am__obj=sub/conftest.${OBJEXT-o}
25290 am__minus_obj="-o $am__obj"
25291 case $depmode in
25292 gcc)
25293 # This depmode causes a compiler race in universal mode.
25294 test "$am__universal" = false || continue
25295 ;;
25296 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025297 # After this tag, mechanisms are not by side-effect, so they'll
25298 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025299 if test "x$enable_dependency_tracking" = xyes; then
25300 continue
25301 else
25302 break
25303 fi
25304 ;;
cristy7247bba2012-02-05 16:37:27 +000025305 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025306 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025307 # not run yet. These depmodes are late enough in the game, and
25308 # so weak that their functioning should not be impacted.
25309 am__obj=conftest.${OBJEXT-o}
25310 am__minus_obj=
25311 ;;
25312 none) break ;;
25313 esac
25314 if depmode=$depmode \
25315 source=sub/conftest.c object=$am__obj \
25316 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25317 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25318 >/dev/null 2>conftest.err &&
25319 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25320 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25321 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25322 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25323 # icc doesn't choke on unknown options, it will just issue warnings
25324 # or remarks (even with -Werror). So we grep stderr for any message
25325 # that says an option was ignored or not supported.
25326 # When given -MP, icc 7.0 and 7.1 complain thusly:
25327 # icc: Command line warning: ignoring option '-M'; no argument required
25328 # The diagnosis changed in icc 8.0:
25329 # icc: Command line remark: option '-MP' not supported
25330 if (grep 'ignoring option' conftest.err ||
25331 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25332 am_cv_CXX_dependencies_compiler_type=$depmode
25333 break
25334 fi
25335 fi
25336 done
25337
25338 cd ..
25339 rm -rf conftest.dir
25340else
25341 am_cv_CXX_dependencies_compiler_type=none
25342fi
25343
25344fi
25345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25346$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25347CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25348
25349 if
25350 test "x$enable_dependency_tracking" != xno \
25351 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25352 am__fastdepCXX_TRUE=
25353 am__fastdepCXX_FALSE='#'
25354else
25355 am__fastdepCXX_TRUE='#'
25356 am__fastdepCXX_FALSE=
25357fi
25358
25359
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25361$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025362if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025363 $as_echo_n "(cached) " >&6
25364else
25365
25366 ac_ext=cpp
25367ac_cpp='$CXXCPP $CPPFLAGS'
25368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25371
25372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25373/* end confdefs.h. */
25374
25375int f(int x){return 1;}
25376int f(char x){return 1;}
25377int f(bool x){return 1;}
25378
25379int
25380main ()
25381{
25382bool b = true; return f(b);
25383 ;
25384 return 0;
25385}
25386_ACEOF
25387if ac_fn_cxx_try_compile "$LINENO"; then :
25388 ax_cv_cxx_bool=yes
25389else
25390 ax_cv_cxx_bool=no
25391fi
25392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25393 ac_ext=cpp
25394ac_cpp='$CXXCPP $CPPFLAGS'
25395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25398
25399
25400fi
25401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25402$as_echo "$ax_cv_cxx_bool" >&6; }
25403if test "$ax_cv_cxx_bool" = yes; then
25404
25405$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25406
25407fi
25408
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25410$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025411if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025412 $as_echo_n "(cached) " >&6
25413else
25414
25415 ac_ext=cpp
25416ac_cpp='$CXXCPP $CPPFLAGS'
25417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25420
25421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25422/* end confdefs.h. */
25423namespace Outer { namespace Inner { int i = 0; }}
25424int
25425main ()
25426{
25427using namespace Outer::Inner; return i;
25428 ;
25429 return 0;
25430}
25431_ACEOF
25432if ac_fn_cxx_try_compile "$LINENO"; then :
25433 ax_cv_cxx_namespaces=yes
25434else
25435 ax_cv_cxx_namespaces=no
25436fi
25437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25438 ac_ext=cpp
25439ac_cpp='$CXXCPP $CPPFLAGS'
25440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25443
25444
25445fi
25446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25447$as_echo "$ax_cv_cxx_namespaces" >&6; }
25448if test "$ax_cv_cxx_namespaces" = yes; then
25449
25450$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25451
25452fi
25453
25454
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25456$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025457if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025458 $as_echo_n "(cached) " >&6
25459else
25460
25461 ac_ext=cpp
25462ac_cpp='$CXXCPP $CPPFLAGS'
25463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25466
25467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25468/* end confdefs.h. */
25469#include <iostream>
25470 std::istream& is = std::cin;
25471int
25472main ()
25473{
25474
25475 ;
25476 return 0;
25477}
25478_ACEOF
25479if ac_fn_cxx_try_compile "$LINENO"; then :
25480 ax_cv_cxx_have_std_namespace=yes
25481else
25482 ax_cv_cxx_have_std_namespace=no
25483fi
25484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25485 ac_ext=cpp
25486ac_cpp='$CXXCPP $CPPFLAGS'
25487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25490
25491
25492fi
25493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25494$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25495 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25496
25497$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25498
25499 fi
25500
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25502$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025503if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025504 $as_echo_n "(cached) " >&6
25505else
25506
25507
25508 ac_ext=cpp
25509ac_cpp='$CXXCPP $CPPFLAGS'
25510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25513
25514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25515/* end confdefs.h. */
25516#include <iostream>
25517#include <map>
25518#include <iomanip>
25519#include <cmath>
25520#ifdef HAVE_NAMESPACES
25521using namespace std;
25522#endif
25523int
25524main ()
25525{
25526return 0;
25527 ;
25528 return 0;
25529}
25530_ACEOF
25531if ac_fn_cxx_try_compile "$LINENO"; then :
25532 ac_cv_cxx_have_std_libs=yes
25533else
25534 ac_cv_cxx_have_std_libs=no
25535fi
25536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25537 ac_ext=cpp
25538ac_cpp='$CXXCPP $CPPFLAGS'
25539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25542
25543
25544fi
25545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25546$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25547if test "$ac_cv_cxx_have_std_libs" = yes; then
25548
25549$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25550
25551fi
25552
cristy3ed852e2009-09-05 21:47:34 +000025553
25554 OPENMP_CXXFLAGS=
25555 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025556if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025557 enableval=$enable_openmp;
25558fi
25559
25560 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25562$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025563if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025564 $as_echo_n "(cached) " >&6
25565else
cristy8b350f62009-11-15 23:12:43 +000025566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25567/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025568
25569#ifndef _OPENMP
25570 choke me
25571#endif
25572#include <omp.h>
25573int main () { return omp_get_num_threads (); }
25574
25575_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025576if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025577 ac_cv_prog_cxx_openmp='none needed'
25578else
cristy8b350f62009-11-15 23:12:43 +000025579 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025580 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25581 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025582 ac_save_CXXFLAGS=$CXXFLAGS
25583 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25585/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025586
25587#ifndef _OPENMP
25588 choke me
25589#endif
25590#include <omp.h>
25591int main () { return omp_get_num_threads (); }
25592
25593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025594if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025595 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025596fi
cristy8b350f62009-11-15 23:12:43 +000025597rm -f core conftest.err conftest.$ac_objext \
25598 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025599 CXXFLAGS=$ac_save_CXXFLAGS
25600 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25601 break
25602 fi
25603 done
25604fi
cristy8b350f62009-11-15 23:12:43 +000025605rm -f core conftest.err conftest.$ac_objext \
25606 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025607fi
cristy8b350f62009-11-15 23:12:43 +000025608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025609$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25610 case $ac_cv_prog_cxx_openmp in #(
25611 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025612 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025613 *)
cristy8b350f62009-11-15 23:12:43 +000025614 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025615 esac
25616 fi
25617
25618
25619 ac_ext=c
25620ac_cpp='$CPP $CPPFLAGS'
25621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25623ac_compiler_gnu=$ac_cv_c_compiler_gnu
25624
25625
cristy8b350f62009-11-15 23:12:43 +000025626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025627$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25628 if \
cristy964cb7f2010-04-25 23:18:00 +000025629 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025630 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025631 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025632 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025633 have_magick_plus_plus='yes'
25634 else
25635 have_magick_plus_plus='no (failed tests)'
25636 fi
cristyad38abe2012-12-23 23:03:21 +000025637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25638$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025639 LIBS="$OLIBS"
25640fi
cristy73bd4a52010-10-05 11:24:23 +000025641 if test "$have_magick_plus_plus" = 'yes'; then
25642 WITH_MAGICK_PLUS_PLUS_TRUE=
25643 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25644else
25645 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25646 WITH_MAGICK_PLUS_PLUS_FALSE=
25647fi
25648
cristy3ed852e2009-09-05 21:47:34 +000025649
25650# Only check for delegate libraries in subdirectories if requested.
25651if test "$enable_delegate_build" != 'no'; then
25652 # Check for delegate sub-directories and add -I & -L options as required.
25653 # This presumes that delegates are installed as detailed in the ImageMagick
25654 # README. If delegates are installed in a standard location where the
25655 # compiler will automatically find them then these options should not be
25656 # required.
25657
25658 #
25659 # Most delegates have includes in the same directory as the library, but not all...
25660 #
25661 # Includes
cristy2542fc62011-12-06 17:50:25 +000025662 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 +000025663 if test -d "$builddir/$dir"; then
25664 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25665 else
25666 if test -d "$srcdirfull/$dir"; then
25667 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25668 fi
25669 fi
25670 done
25671
25672 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025673 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 +000025674 if test -d "$builddir/$dir/.libs"; then
25675 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25676 else
25677 if test -d "$srcdirfull/$dir/.libs"; then
25678 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25679 fi
25680 fi
25681 if test -d "$builddir/$dir"; then
25682 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25683 else
25684 if test -d "$srcdirfull/$dir"; then
25685 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25686 fi
25687 fi
25688 done
25689fi
25690
25691# Assume that delegate headers reside under same directory as ImageMagick
25692# installation prefix.
25693MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25694
25695#
25696# Find the X11 RGB database
25697#
cristy8b350f62009-11-15 23:12:43 +000025698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025699$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025700if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025701 $as_echo_n "(cached) " >&6
25702else
25703 # Look for the header file in a standard set of common directories.
25704# Check X11 before X11Rn because it is often a symlink to the current release.
25705 for ac_dir in \
25706 /lib/usr/lib/X11 \
25707 /usr/X11/lib \
25708 /usr/X11R4/lib \
25709 /usr/X11R5/lib \
25710 /usr/X11R6/lib \
25711 /usr/X11R7/lib \
25712 /usr/X386/lib \
25713 /usr/XFree86/lib/X11 \
25714 /usr/athena/lib \
25715 /usr/lib \
25716 /usr/lib/X11 \
25717 /usr/lib/X11R4 \
25718 /usr/lib/X11R5 \
25719 /usr/lib/X11R6 \
25720 /usr/lib/X11R7 \
25721 /usr/local/X11/lib \
25722 /usr/local/X11R4/lib \
25723 /usr/local/X11R5/lib \
25724 /usr/local/X11R6/lib \
25725 /usr/local/lib \
25726 /usr/local/lib/X11 \
25727 /usr/local/lib/X11R4 \
25728 /usr/local/lib/X11R5 \
25729 /usr/local/lib/X11R6 \
25730 /usr/local/lib/X11R7 \
25731 /usr/local/x11r5/lib \
25732 /usr/lpp/Xamples/lib \
25733 /usr/openwin/lib \
25734 /usr/openwin/share/lib \
25735 /usr/unsupported/lib \
25736 /usr/x386/lib \
25737 ; do
25738 if test -f "$ac_dir/X11/rgb.txt"; then
25739 im_cv_x_configure="$ac_dir/X11/"
25740 break
25741 elif test -f "$ac_dir/rgb.txt"; then
25742 im_cv_x_configure="$ac_dir/"
25743 break
25744 fi
25745
25746 done
25747fi
cristy8b350f62009-11-15 23:12:43 +000025748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025749$as_echo "$im_cv_x_configure" >&6; }
25750X11_CONFIGURE_PATH="$im_cv_x_configure"
25751case "${build_os}" in
25752 mingw* )
25753 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25754 ;;
25755esac
25756
25757cat >>confdefs.h <<_ACEOF
25758#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25759_ACEOF
25760
25761
25762#
25763# Find OpenMP library
25764#
25765GOMP_LIBS=''
25766if test "$enable_openmp" != 'no'; then
25767 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000025768 # Open64 (passes for GCC but uses different OpenMP implementation)
25769 if test "x$GOMP_LIBS" = x ; then
25770 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
25772$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
25773if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
25774 $as_echo_n "(cached) " >&6
25775else
25776 ac_check_lib_save_LIBS=$LIBS
25777LIBS="-lopenmp $LIBS"
25778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25779/* end confdefs.h. */
25780
25781/* Override any GCC internal prototype to avoid an error.
25782 Use char because int might match the return type of a GCC
25783 builtin and then its argument prototype would still apply. */
25784#ifdef __cplusplus
25785extern "C"
25786#endif
25787char omp_get_num_procs ();
25788int
25789main ()
25790{
25791return omp_get_num_procs ();
25792 ;
25793 return 0;
25794}
25795_ACEOF
25796if ac_fn_c_try_link "$LINENO"; then :
25797 ac_cv_lib_openmp_omp_get_num_procs=yes
25798else
25799 ac_cv_lib_openmp_omp_get_num_procs=no
25800fi
25801rm -f core conftest.err conftest.$ac_objext \
25802 conftest$ac_exeext conftest.$ac_ext
25803LIBS=$ac_check_lib_save_LIBS
25804fi
25805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
25806$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
25807if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
25808 GOMP_LIBS="-lopenmp"
25809fi
25810
25811 fi
25812 fi
25813 # GCC
25814 if test "x$GOMP_LIBS" = x ; then
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025816$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025817if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025818 $as_echo_n "(cached) " >&6
25819else
25820 ac_check_lib_save_LIBS=$LIBS
25821LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025823/* end confdefs.h. */
25824
25825/* Override any GCC internal prototype to avoid an error.
25826 Use char because int might match the return type of a GCC
25827 builtin and then its argument prototype would still apply. */
25828#ifdef __cplusplus
25829extern "C"
25830#endif
25831char GOMP_parallel_start ();
25832int
25833main ()
25834{
25835return GOMP_parallel_start ();
25836 ;
25837 return 0;
25838}
25839_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025840if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025841 ac_cv_lib_gomp_GOMP_parallel_start=yes
25842else
cristy8b350f62009-11-15 23:12:43 +000025843 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025844fi
cristy8b350f62009-11-15 23:12:43 +000025845rm -f core conftest.err conftest.$ac_objext \
25846 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025847LIBS=$ac_check_lib_save_LIBS
25848fi
cristy8b350f62009-11-15 23:12:43 +000025849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025850$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025851if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025852 GOMP_LIBS="-lgomp"
25853fi
cristy18307f12011-12-30 01:20:16 +000025854
25855 fi
cristy3ed852e2009-09-05 21:47:34 +000025856 else
cristy18307f12011-12-30 01:20:16 +000025857 # Sun CC
25858 if test "x$GOMP_LIBS" = x ; then
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025860$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025861if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025862 $as_echo_n "(cached) " >&6
25863else
25864 ac_check_lib_save_LIBS=$LIBS
25865LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025867/* end confdefs.h. */
25868
25869/* Override any GCC internal prototype to avoid an error.
25870 Use char because int might match the return type of a GCC
25871 builtin and then its argument prototype would still apply. */
25872#ifdef __cplusplus
25873extern "C"
25874#endif
25875char sunw_mp_register_warn ();
25876int
25877main ()
25878{
25879return sunw_mp_register_warn ();
25880 ;
25881 return 0;
25882}
25883_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025884if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025885 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25886else
cristy8b350f62009-11-15 23:12:43 +000025887 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025888fi
cristy8b350f62009-11-15 23:12:43 +000025889rm -f core conftest.err conftest.$ac_objext \
25890 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025891LIBS=$ac_check_lib_save_LIBS
25892fi
cristy8b350f62009-11-15 23:12:43 +000025893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025894$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025895if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025896 GOMP_LIBS="-lmtsk"
25897fi
cristy18307f12011-12-30 01:20:16 +000025898
25899 fi
25900 # AIX xlc
25901 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000025902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025903$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025904if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025905 $as_echo_n "(cached) " >&6
25906else
25907 ac_check_lib_save_LIBS=$LIBS
25908LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025910/* end confdefs.h. */
25911
25912/* Override any GCC internal prototype to avoid an error.
25913 Use char because int might match the return type of a GCC
25914 builtin and then its argument prototype would still apply. */
25915#ifdef __cplusplus
25916extern "C"
25917#endif
25918char _xlsmpFlush ();
25919int
25920main ()
25921{
25922return _xlsmpFlush ();
25923 ;
25924 return 0;
25925}
25926_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025927if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025928 ac_cv_lib_xlsmp__xlsmpFlush=yes
25929else
cristy8b350f62009-11-15 23:12:43 +000025930 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025931fi
cristy8b350f62009-11-15 23:12:43 +000025932rm -f core conftest.err conftest.$ac_objext \
25933 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025934LIBS=$ac_check_lib_save_LIBS
25935fi
cristy8b350f62009-11-15 23:12:43 +000025936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025937$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025938if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025939 GOMP_LIBS="-lxlsmp"
25940fi
cristy18307f12011-12-30 01:20:16 +000025941
25942 fi
25943 # SGI IRIX 6.5 MIPSpro C/C++
25944 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000025945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025946$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025947if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025948 $as_echo_n "(cached) " >&6
25949else
25950 ac_check_lib_save_LIBS=$LIBS
25951LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025953/* end confdefs.h. */
25954
25955/* Override any GCC internal prototype to avoid an error.
25956 Use char because int might match the return type of a GCC
25957 builtin and then its argument prototype would still apply. */
25958#ifdef __cplusplus
25959extern "C"
25960#endif
25961char mp_destroy ();
25962int
25963main ()
25964{
25965return mp_destroy ();
25966 ;
25967 return 0;
25968}
25969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025970if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025971 ac_cv_lib_mp_mp_destroy=yes
25972else
cristy8b350f62009-11-15 23:12:43 +000025973 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025974fi
cristy8b350f62009-11-15 23:12:43 +000025975rm -f core conftest.err conftest.$ac_objext \
25976 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025977LIBS=$ac_check_lib_save_LIBS
25978fi
cristy8b350f62009-11-15 23:12:43 +000025979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025980$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025981if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025982 GOMP_LIBS="-lmp"
25983fi
cristy18307f12011-12-30 01:20:16 +000025984
25985 fi
cristy3ed852e2009-09-05 21:47:34 +000025986 fi
25987 LIBS="$GOMP_LIBS $LIBS"
25988fi
25989
25990
25991#
25992# Find Posix threads library
25993#
25994THREAD_LIBS=''
25995if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25996
25997 if test "x$PTHREAD_LIBS" = "x"; then
25998 case "${host_cpu}-${host_os}" in
25999 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026000
26001
26002
26003ac_ext=c
26004ac_cpp='$CPP $CPPFLAGS'
26005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26007ac_compiler_gnu=$ac_cv_c_compiler_gnu
26008
26009magick_pthread_lib_ok=no
26010
26011LIB=-lc_r
26012save_LIBS="$LIBS"
26013LIBS="$LIBS $LIB"
26014
26015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26016$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26018/* end confdefs.h. */
26019#include <pthread.h>
26020int
26021main ()
26022{
26023 pthread_t th;
26024 pthread_join(th, 0);
26025 pthread_attr_init(0);
26026 pthread_cleanup_push(0, 0);
26027 pthread_create(0,0,0,0);
26028 pthread_cleanup_pop(0);
26029 ;
26030 return 0;
26031}
26032_ACEOF
26033if ac_fn_c_try_link "$LINENO"; then :
26034 magick_pthread_lib_ok=yes
26035fi
26036rm -f core conftest.err conftest.$ac_objext \
26037 conftest$ac_exeext conftest.$ac_ext
26038
26039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26040$as_echo "${magick_pthread_lib_ok}" >&6; }
26041if test "$magick_pthread_lib_ok" = yes
26042then
26043 PTHREAD_LIBS=-lc_r
26044 :
26045else
26046
26047 :
26048fi
26049
26050LIBS="$save_LIBS"
26051
26052ac_ext=c
26053ac_cpp='$CPP $CPPFLAGS'
26054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26056ac_compiler_gnu=$ac_cv_c_compiler_gnu
26057
26058 ;;
cristy3ed852e2009-09-05 21:47:34 +000026059 esac
26060 fi
26061
26062 for lib in pthread pthreads; do
26063 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026064
26065
26066
26067ac_ext=c
26068ac_cpp='$CPP $CPPFLAGS'
26069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26071ac_compiler_gnu=$ac_cv_c_compiler_gnu
26072
26073magick_pthread_lib_ok=no
26074
26075LIB=-l$lib
26076save_LIBS="$LIBS"
26077LIBS="$LIBS $LIB"
26078
26079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26080$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26082/* end confdefs.h. */
26083#include <pthread.h>
26084int
26085main ()
26086{
26087 pthread_t th;
26088 pthread_join(th, 0);
26089 pthread_attr_init(0);
26090 pthread_cleanup_push(0, 0);
26091 pthread_create(0,0,0,0);
26092 pthread_cleanup_pop(0);
26093 ;
26094 return 0;
26095}
26096_ACEOF
26097if ac_fn_c_try_link "$LINENO"; then :
26098 magick_pthread_lib_ok=yes
26099fi
26100rm -f core conftest.err conftest.$ac_objext \
26101 conftest$ac_exeext conftest.$ac_ext
26102
26103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26104$as_echo "${magick_pthread_lib_ok}" >&6; }
26105if test "$magick_pthread_lib_ok" = yes
26106then
26107 PTHREAD_LIBS=-l$lib
26108 :
26109else
26110
26111 :
26112fi
26113
26114LIBS="$save_LIBS"
26115
26116ac_ext=c
26117ac_cpp='$CPP $CPPFLAGS'
26118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26120ac_compiler_gnu=$ac_cv_c_compiler_gnu
26121
26122
cristy3ed852e2009-09-05 21:47:34 +000026123 fi
26124 done
26125
26126 THREAD_LIBS="$PTHREAD_LIBS"
26127 LIBS="$LIBS $THREAD_LIBS"
26128fi
26129
26130
26131#
26132# Check for umem.
26133#
26134have_umem='no'
26135UMEM_LIBS=''
26136if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026138$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26140$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026141 failed=0
26142 passed=0
cristy8b350f62009-11-15 23:12:43 +000026143 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026144if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026145 passed=`expr $passed + 1`
26146else
26147 failed=`expr $failed + 1`
26148fi
26149
26150
cristy8b350f62009-11-15 23:12:43 +000026151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026152$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026153if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026154 $as_echo_n "(cached) " >&6
26155else
26156 ac_check_lib_save_LIBS=$LIBS
26157LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026159/* end confdefs.h. */
26160
26161/* Override any GCC internal prototype to avoid an error.
26162 Use char because int might match the return type of a GCC
26163 builtin and then its argument prototype would still apply. */
26164#ifdef __cplusplus
26165extern "C"
26166#endif
26167char umem_alloc ();
26168int
26169main ()
26170{
26171return umem_alloc ();
26172 ;
26173 return 0;
26174}
26175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026176if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026177 ac_cv_lib_umem_umem_alloc=yes
26178else
cristy8b350f62009-11-15 23:12:43 +000026179 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026180fi
cristy8b350f62009-11-15 23:12:43 +000026181rm -f core conftest.err conftest.$ac_objext \
26182 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026183LIBS=$ac_check_lib_save_LIBS
26184fi
cristy8b350f62009-11-15 23:12:43 +000026185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026186$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026187if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026188 passed=`expr $passed + 1`
26189else
26190 failed=`expr $failed + 1`
26191fi
26192
cristy8b350f62009-11-15 23:12:43 +000026193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026194$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026195if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026196 $as_echo_n "(cached) " >&6
26197else
26198 ac_check_lib_save_LIBS=$LIBS
26199LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026201/* end confdefs.h. */
26202
26203/* Override any GCC internal prototype to avoid an error.
26204 Use char because int might match the return type of a GCC
26205 builtin and then its argument prototype would still apply. */
26206#ifdef __cplusplus
26207extern "C"
26208#endif
26209char umem_free ();
26210int
26211main ()
26212{
26213return umem_free ();
26214 ;
26215 return 0;
26216}
26217_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026218if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026219 ac_cv_lib_umem_umem_free=yes
26220else
cristy8b350f62009-11-15 23:12:43 +000026221 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026222fi
cristy8b350f62009-11-15 23:12:43 +000026223rm -f core conftest.err conftest.$ac_objext \
26224 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026225LIBS=$ac_check_lib_save_LIBS
26226fi
cristy8b350f62009-11-15 23:12:43 +000026227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026228$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026229if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026230 passed=`expr $passed + 1`
26231else
26232 failed=`expr $failed + 1`
26233fi
26234
cristy8b350f62009-11-15 23:12:43 +000026235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026236$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26237 if test $passed -gt 0; then
26238 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26240$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026241 have_umem='no (failed tests)'
26242 else
26243 UMEM_LIBS='-lumem'
26244 LIBS="$UMEM_LIBS $LIBS"
26245
cristy8b350f62009-11-15 23:12:43 +000026246$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026247
cristyad38abe2012-12-23 23:03:21 +000026248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26249$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026250 have_umem='yes'
26251 fi
26252 else
cristyad38abe2012-12-23 23:03:21 +000026253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26254$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026255 fi
26256fi
cristy73bd4a52010-10-05 11:24:23 +000026257 if test "$have_umem" = 'yes'; then
26258 HasUMEM_TRUE=
26259 HasUMEM_FALSE='#'
26260else
26261 HasUMEM_TRUE='#'
26262 HasUMEM_FALSE=
26263fi
26264
cristy3ed852e2009-09-05 21:47:34 +000026265
26266
26267#
26268# Add support for ccmalloc memory debugging library if requested
26269#
26270have_ccmalloc='no'
26271CCMALLOC_LIBS=''
26272if test "$enable_ccmalloc" = 'yes'; then
26273 # Extract the first word of "ccmalloc", so it can be a program name with args.
26274set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026276$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026277if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026278 $as_echo_n "(cached) " >&6
26279else
26280 case $CCMALLOCDelegate in
26281 [\\/]* | ?:[\\/]*)
26282 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26283 ;;
26284 *)
26285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26286for as_dir in $PATH
26287do
26288 IFS=$as_save_IFS
26289 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026290 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026292 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026294 break 2
26295 fi
26296done
cristy8b350f62009-11-15 23:12:43 +000026297 done
cristy3ed852e2009-09-05 21:47:34 +000026298IFS=$as_save_IFS
26299
26300 ;;
26301esac
26302fi
26303CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26304if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026306$as_echo "$CCMALLOCDelegate" >&6; }
26307else
cristy8b350f62009-11-15 23:12:43 +000026308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026309$as_echo "no" >&6; }
26310fi
26311
26312
26313 if test -n "$CCMALLOCDelegate"; then
26314 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26315 OLIBS="$LIBS"
26316 # Assume that gcc is used with ccmalloc.
26317 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026319$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026320if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026321 $as_echo_n "(cached) " >&6
26322else
26323 ac_check_lib_save_LIBS=$LIBS
26324LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026326/* end confdefs.h. */
26327
26328/* Override any GCC internal prototype to avoid an error.
26329 Use char because int might match the return type of a GCC
26330 builtin and then its argument prototype would still apply. */
26331#ifdef __cplusplus
26332extern "C"
26333#endif
26334char ccmalloc_malloc ();
26335int
26336main ()
26337{
26338return ccmalloc_malloc ();
26339 ;
26340 return 0;
26341}
26342_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026343if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026344 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26345else
cristy8b350f62009-11-15 23:12:43 +000026346 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026347fi
cristy8b350f62009-11-15 23:12:43 +000026348rm -f core conftest.err conftest.$ac_objext \
26349 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026350LIBS=$ac_check_lib_save_LIBS
26351fi
cristy8b350f62009-11-15 23:12:43 +000026352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026353$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026354if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026355 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26356fi
26357
26358 if test -n "$CCMALLOC_LIBS"; then
26359 LIBS="$OLIBS"
26360 LIBS="$LIBS $CCMALLOC_LIBS"
26361 have_ccmalloc='yes'
26362 else
26363 LIBS="$OLIBS"
26364 fi
26365 fi
26366fi
26367
26368#
26369# Add support for efence memory debugging library if requested
26370#
26371if test "$enable_efence" = 'yes'; then
26372 EFENCE_LIBS='-lefence'
26373 LIBS="$EFENCE_LIBS $LIBS"
26374fi
26375
cristy3ed852e2009-09-05 21:47:34 +000026376
26377#
26378# Check for BZLIB
26379#
26380
26381
26382# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026383if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026384 withval=$with_bzlib; with_bzlib=$withval
26385else
26386 with_bzlib='yes'
26387fi
26388
26389
26390if test "$with_bzlib" != 'yes'; then
26391 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26392fi
26393
26394have_bzlib='no'
26395if test "$with_bzlib" != 'no'; then
26396 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26398$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026400$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26402$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026403 failed=0
26404 passed=0
26405 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026406 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026407if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026408 passed=`expr $passed + 1`
26409else
26410 failed=`expr $failed + 1`
26411fi
26412
26413
cristy8b350f62009-11-15 23:12:43 +000026414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026415$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026416if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026417 $as_echo_n "(cached) " >&6
26418else
26419 ac_check_lib_save_LIBS=$LIBS
26420LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026422/* end confdefs.h. */
26423
26424/* Override any GCC internal prototype to avoid an error.
26425 Use char because int might match the return type of a GCC
26426 builtin and then its argument prototype would still apply. */
26427#ifdef __cplusplus
26428extern "C"
26429#endif
26430char BZ2_bzDecompress ();
26431int
26432main ()
26433{
26434return BZ2_bzDecompress ();
26435 ;
26436 return 0;
26437}
26438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026439if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026440 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26441else
cristy8b350f62009-11-15 23:12:43 +000026442 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026443fi
cristy8b350f62009-11-15 23:12:43 +000026444rm -f core conftest.err conftest.$ac_objext \
26445 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026446LIBS=$ac_check_lib_save_LIBS
26447fi
cristy8b350f62009-11-15 23:12:43 +000026448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026449$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026450if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026451 found_libbz=`expr $found_libbz + 1`
26452fi
26453
26454 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026456$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026457if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026458 $as_echo_n "(cached) " >&6
26459else
26460 ac_check_lib_save_LIBS=$LIBS
26461LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026463/* end confdefs.h. */
26464
26465/* Override any GCC internal prototype to avoid an error.
26466 Use char because int might match the return type of a GCC
26467 builtin and then its argument prototype would still apply. */
26468#ifdef __cplusplus
26469extern "C"
26470#endif
26471char _imp__BZ2_decompress ();
26472int
26473main ()
26474{
26475return _imp__BZ2_decompress ();
26476 ;
26477 return 0;
26478}
26479_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026480if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026481 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26482else
cristy8b350f62009-11-15 23:12:43 +000026483 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026484fi
cristy8b350f62009-11-15 23:12:43 +000026485rm -f core conftest.err conftest.$ac_objext \
26486 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026487LIBS=$ac_check_lib_save_LIBS
26488fi
cristy8b350f62009-11-15 23:12:43 +000026489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026490$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026491if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026492 found_libbz=`expr $found_libbz + 1`
26493fi
26494
26495 fi
26496 if test $found_libbz -gt 0; then
26497 passed=`expr $passed + 1`
26498 else
26499 failed=`expr $failed + 1`
26500 fi
cristy8b350f62009-11-15 23:12:43 +000026501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026502$as_echo_n "checking if BZLIB package is complete... " >&6; }
26503 if test $passed -gt 0; then
26504 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26506$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026507 have_bzlib='no (failed tests)'
26508 else
26509 BZLIB_LIBS='-lbz2'
26510 LIBS="$BZLIB_LIBS $LIBS"
26511
cristy8b350f62009-11-15 23:12:43 +000026512$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026513
cristyad38abe2012-12-23 23:03:21 +000026514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26515$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026516 have_bzlib='yes'
26517 fi
26518 else
cristyad38abe2012-12-23 23:03:21 +000026519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26520$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026521 fi
26522fi
cristy73bd4a52010-10-05 11:24:23 +000026523 if test "$have_bzlib" = 'yes'; then
26524 BZLIB_DELEGATE_TRUE=
26525 BZLIB_DELEGATE_FALSE='#'
26526else
26527 BZLIB_DELEGATE_TRUE='#'
26528 BZLIB_DELEGATE_FALSE=
26529fi
26530
cristy3ed852e2009-09-05 21:47:34 +000026531
26532
26533#
26534# Find the X11 include and library directories.
26535#
26536IPC_LIBS=''
26537X11_LIBS=''
26538XEXT_LIBS=''
26539XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026541$as_echo_n "checking for X... " >&6; }
26542
26543
26544# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026545if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026546 withval=$with_x;
26547fi
26548
26549# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26550if test "x$with_x" = xno; then
26551 # The user explicitly disabled X.
26552 have_x=disabled
26553else
26554 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026555 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026556 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026557 $as_echo_n "(cached) " >&6
26558else
26559 # One or both of the vars are not set, and there is no cached value.
26560ac_x_includes=no ac_x_libraries=no
26561rm -f -r conftest.dir
26562if mkdir conftest.dir; then
26563 cd conftest.dir
26564 cat >Imakefile <<'_ACEOF'
26565incroot:
26566 @echo incroot='${INCROOT}'
26567usrlibdir:
26568 @echo usrlibdir='${USRLIBDIR}'
26569libdir:
26570 @echo libdir='${LIBDIR}'
26571_ACEOF
26572 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026573 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026574 for ac_var in incroot usrlibdir libdir; do
26575 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26576 done
26577 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26578 for ac_extension in a so sl dylib la dll; do
26579 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26580 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26581 ac_im_usrlibdir=$ac_im_libdir; break
26582 fi
26583 done
26584 # Screen out bogus values from the imake configuration. They are
26585 # bogus both because they are the default anyway, and because
26586 # using them would break gcc on systems where it needs fixed includes.
26587 case $ac_im_incroot in
26588 /usr/include) ac_x_includes= ;;
26589 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26590 esac
26591 case $ac_im_usrlibdir in
26592 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26593 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26594 esac
26595 fi
26596 cd ..
26597 rm -f -r conftest.dir
26598fi
26599
26600# Standard set of common directories for X headers.
26601# Check X11 before X11Rn because it is often a symlink to the current release.
26602ac_x_header_dirs='
26603/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026604/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026605/usr/X11R6/include
26606/usr/X11R5/include
26607/usr/X11R4/include
26608
26609/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026610/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026611/usr/include/X11R6
26612/usr/include/X11R5
26613/usr/include/X11R4
26614
26615/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026616/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026617/usr/local/X11R6/include
26618/usr/local/X11R5/include
26619/usr/local/X11R4/include
26620
26621/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026622/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026623/usr/local/include/X11R6
26624/usr/local/include/X11R5
26625/usr/local/include/X11R4
26626
26627/usr/X386/include
26628/usr/x386/include
26629/usr/XFree86/include/X11
26630
26631/usr/include
26632/usr/local/include
26633/usr/unsupported/include
26634/usr/athena/include
26635/usr/local/x11r5/include
26636/usr/lpp/Xamples/include
26637
26638/usr/openwin/include
26639/usr/openwin/share/include'
26640
26641if test "$ac_x_includes" = no; then
26642 # Guess where to find include files, by looking for Xlib.h.
26643 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026645/* end confdefs.h. */
26646#include <X11/Xlib.h>
26647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026648if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026649 # We can compile using X headers with no special include directory.
26650ac_x_includes=
26651else
cristyc7083c12009-10-14 03:16:55 +000026652 for ac_dir in $ac_x_header_dirs; do
26653 if test -r "$ac_dir/X11/Xlib.h"; then
26654 ac_x_includes=$ac_dir
26655 break
26656 fi
26657done
26658fi
cristyda16f162011-02-19 23:52:17 +000026659rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026660fi # $ac_x_includes = no
26661
26662if test "$ac_x_libraries" = no; then
26663 # Check for the libraries.
26664 # See if we find them without any special options.
26665 # Don't add to $LIBS permanently.
26666 ac_save_LIBS=$LIBS
26667 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026669/* end confdefs.h. */
26670#include <X11/Xlib.h>
26671int
26672main ()
26673{
26674XrmInitialize ()
26675 ;
26676 return 0;
26677}
26678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026679if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026680 LIBS=$ac_save_LIBS
26681# We can link X programs with no special library path.
26682ac_x_libraries=
26683else
cristy8b350f62009-11-15 23:12:43 +000026684 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026685for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26686do
26687 # Don't even attempt the hair of trying to link an X program!
26688 for ac_extension in a so sl dylib la dll; do
26689 if test -r "$ac_dir/libX11.$ac_extension"; then
26690 ac_x_libraries=$ac_dir
26691 break 2
26692 fi
26693 done
26694done
26695fi
cristy8b350f62009-11-15 23:12:43 +000026696rm -f core conftest.err conftest.$ac_objext \
26697 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026698fi # $ac_x_libraries = no
26699
26700case $ac_x_includes,$ac_x_libraries in #(
26701 no,* | *,no | *\'*)
26702 # Didn't find X, or a directory has "'" in its name.
26703 ac_cv_have_x="have_x=no";; #(
26704 *)
26705 # Record where we found X for the cache.
26706 ac_cv_have_x="have_x=yes\
26707 ac_x_includes='$ac_x_includes'\
26708 ac_x_libraries='$ac_x_libraries'"
26709esac
26710fi
26711;; #(
26712 *) have_x=yes;;
26713 esac
26714 eval "$ac_cv_have_x"
26715fi # $with_x != no
26716
26717if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026719$as_echo "$have_x" >&6; }
26720 no_x=yes
26721else
26722 # If each of the values was on the command line, it overrides each guess.
26723 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26724 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26725 # Update the cache value to reflect the command line values.
26726 ac_cv_have_x="have_x=yes\
26727 ac_x_includes='$x_includes'\
26728 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026730$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26731fi
26732
cristy3ed852e2009-09-05 21:47:34 +000026733if test "$no_x" = yes; then
26734 # Not all programs may use this symbol, but it does not hurt to define it.
26735
cristy8b350f62009-11-15 23:12:43 +000026736$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026737
26738 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26739else
26740 if test -n "$x_includes"; then
26741 X_CFLAGS="$X_CFLAGS -I$x_includes"
26742 fi
26743
26744 # It would also be nice to do this for all -L options, not just this one.
26745 if test -n "$x_libraries"; then
26746 X_LIBS="$X_LIBS -L$x_libraries"
26747 # For Solaris; some versions of Sun CC require a space after -R and
26748 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026750$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26751 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26752 ac_xsave_c_werror_flag=$ac_c_werror_flag
26753 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026755/* end confdefs.h. */
26756
26757int
26758main ()
26759{
26760
26761 ;
26762 return 0;
26763}
26764_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026765if ac_fn_c_try_link "$LINENO"; then :
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026767$as_echo "no" >&6; }
26768 X_LIBS="$X_LIBS -R$x_libraries"
26769else
cristy8b350f62009-11-15 23:12:43 +000026770 LIBS="$ac_xsave_LIBS -R $x_libraries"
26771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026772/* end confdefs.h. */
26773
26774int
26775main ()
26776{
26777
26778 ;
26779 return 0;
26780}
26781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026782if ac_fn_c_try_link "$LINENO"; then :
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026784$as_echo "yes" >&6; }
26785 X_LIBS="$X_LIBS -R $x_libraries"
26786else
cristy8b350f62009-11-15 23:12:43 +000026787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026788$as_echo "neither works" >&6; }
26789fi
cristy8b350f62009-11-15 23:12:43 +000026790rm -f core conftest.err conftest.$ac_objext \
26791 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026792fi
cristy8b350f62009-11-15 23:12:43 +000026793rm -f core conftest.err conftest.$ac_objext \
26794 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026795 ac_c_werror_flag=$ac_xsave_c_werror_flag
26796 LIBS=$ac_xsave_LIBS
26797 fi
26798
26799 # Check for system-dependent libraries X programs must link with.
26800 # Do this before checking for the system-independent R6 libraries
26801 # (-lICE), since we may need -lsocket or whatever for X linking.
26802
26803 if test "$ISC" = yes; then
26804 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26805 else
26806 # Martyn Johnson says this is needed for Ultrix, if the X
26807 # libraries were built with DECnet support. And Karl Berry says
26808 # the Alpha needs dnet_stub (dnet does not exist).
26809 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026811/* end confdefs.h. */
26812
26813/* Override any GCC internal prototype to avoid an error.
26814 Use char because int might match the return type of a GCC
26815 builtin and then its argument prototype would still apply. */
26816#ifdef __cplusplus
26817extern "C"
26818#endif
26819char XOpenDisplay ();
26820int
26821main ()
26822{
26823return XOpenDisplay ();
26824 ;
26825 return 0;
26826}
26827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026828if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026829
cristy8b350f62009-11-15 23:12:43 +000026830else
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026832$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026833if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026834 $as_echo_n "(cached) " >&6
26835else
26836 ac_check_lib_save_LIBS=$LIBS
26837LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026839/* end confdefs.h. */
26840
26841/* Override any GCC internal prototype to avoid an error.
26842 Use char because int might match the return type of a GCC
26843 builtin and then its argument prototype would still apply. */
26844#ifdef __cplusplus
26845extern "C"
26846#endif
26847char dnet_ntoa ();
26848int
26849main ()
26850{
26851return dnet_ntoa ();
26852 ;
26853 return 0;
26854}
26855_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026856if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026857 ac_cv_lib_dnet_dnet_ntoa=yes
26858else
cristy8b350f62009-11-15 23:12:43 +000026859 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026860fi
cristy8b350f62009-11-15 23:12:43 +000026861rm -f core conftest.err conftest.$ac_objext \
26862 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026863LIBS=$ac_check_lib_save_LIBS
26864fi
cristy8b350f62009-11-15 23:12:43 +000026865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026866$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026867if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026868 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26869fi
26870
26871 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026873$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026874if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026875 $as_echo_n "(cached) " >&6
26876else
26877 ac_check_lib_save_LIBS=$LIBS
26878LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026880/* end confdefs.h. */
26881
26882/* Override any GCC internal prototype to avoid an error.
26883 Use char because int might match the return type of a GCC
26884 builtin and then its argument prototype would still apply. */
26885#ifdef __cplusplus
26886extern "C"
26887#endif
26888char dnet_ntoa ();
26889int
26890main ()
26891{
26892return dnet_ntoa ();
26893 ;
26894 return 0;
26895}
26896_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026897if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026898 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26899else
cristy8b350f62009-11-15 23:12:43 +000026900 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026901fi
cristy8b350f62009-11-15 23:12:43 +000026902rm -f core conftest.err conftest.$ac_objext \
26903 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026904LIBS=$ac_check_lib_save_LIBS
26905fi
cristy8b350f62009-11-15 23:12:43 +000026906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026907$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026908if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026909 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26910fi
26911
26912 fi
26913fi
cristy8b350f62009-11-15 23:12:43 +000026914rm -f core conftest.err conftest.$ac_objext \
26915 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026916 LIBS="$ac_xsave_LIBS"
26917
26918 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26919 # to get the SysV transport functions.
26920 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26921 # needs -lnsl.
26922 # The nsl library prevents programs from opening the X display
26923 # on Irix 5.2, according to T.E. Dickey.
26924 # The functions gethostbyname, getservbyname, and inet_addr are
26925 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026926 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026927if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026928
cristy3ed852e2009-09-05 21:47:34 +000026929fi
26930
cristy3ed852e2009-09-05 21:47:34 +000026931 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026933$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026934if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026935 $as_echo_n "(cached) " >&6
26936else
26937 ac_check_lib_save_LIBS=$LIBS
26938LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026940/* end confdefs.h. */
26941
26942/* Override any GCC internal prototype to avoid an error.
26943 Use char because int might match the return type of a GCC
26944 builtin and then its argument prototype would still apply. */
26945#ifdef __cplusplus
26946extern "C"
26947#endif
26948char gethostbyname ();
26949int
26950main ()
26951{
26952return gethostbyname ();
26953 ;
26954 return 0;
26955}
26956_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026957if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026958 ac_cv_lib_nsl_gethostbyname=yes
26959else
cristy8b350f62009-11-15 23:12:43 +000026960 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026961fi
cristy8b350f62009-11-15 23:12:43 +000026962rm -f core conftest.err conftest.$ac_objext \
26963 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026964LIBS=$ac_check_lib_save_LIBS
26965fi
cristy8b350f62009-11-15 23:12:43 +000026966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026967$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026968if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026969 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26970fi
26971
26972 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026974$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026975if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026976 $as_echo_n "(cached) " >&6
26977else
26978 ac_check_lib_save_LIBS=$LIBS
26979LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026981/* end confdefs.h. */
26982
26983/* Override any GCC internal prototype to avoid an error.
26984 Use char because int might match the return type of a GCC
26985 builtin and then its argument prototype would still apply. */
26986#ifdef __cplusplus
26987extern "C"
26988#endif
26989char gethostbyname ();
26990int
26991main ()
26992{
26993return gethostbyname ();
26994 ;
26995 return 0;
26996}
26997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026998if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026999 ac_cv_lib_bsd_gethostbyname=yes
27000else
cristy8b350f62009-11-15 23:12:43 +000027001 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027002fi
cristy8b350f62009-11-15 23:12:43 +000027003rm -f core conftest.err conftest.$ac_objext \
27004 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027005LIBS=$ac_check_lib_save_LIBS
27006fi
cristy8b350f62009-11-15 23:12:43 +000027007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027008$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027009if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027010 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27011fi
27012
27013 fi
27014 fi
27015
27016 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27017 # socket/setsockopt and other routines are undefined under SCO ODT
27018 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27019 # on later versions), says Simon Leinen: it contains gethostby*
27020 # variants that don't use the name server (or something). -lsocket
27021 # must be given before -lnsl if both are needed. We assume that
27022 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027023 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027024if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027025
cristy3ed852e2009-09-05 21:47:34 +000027026fi
27027
cristy3ed852e2009-09-05 21:47:34 +000027028 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027030$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027031if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027032 $as_echo_n "(cached) " >&6
27033else
27034 ac_check_lib_save_LIBS=$LIBS
27035LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027037/* end confdefs.h. */
27038
27039/* Override any GCC internal prototype to avoid an error.
27040 Use char because int might match the return type of a GCC
27041 builtin and then its argument prototype would still apply. */
27042#ifdef __cplusplus
27043extern "C"
27044#endif
27045char connect ();
27046int
27047main ()
27048{
27049return connect ();
27050 ;
27051 return 0;
27052}
27053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027054if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027055 ac_cv_lib_socket_connect=yes
27056else
cristy8b350f62009-11-15 23:12:43 +000027057 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027058fi
cristy8b350f62009-11-15 23:12:43 +000027059rm -f core conftest.err conftest.$ac_objext \
27060 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027061LIBS=$ac_check_lib_save_LIBS
27062fi
cristy8b350f62009-11-15 23:12:43 +000027063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027064$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027065if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027066 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27067fi
27068
27069 fi
27070
27071 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027072 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027073if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027074
cristy3ed852e2009-09-05 21:47:34 +000027075fi
27076
cristy3ed852e2009-09-05 21:47:34 +000027077 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027079$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027080if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027081 $as_echo_n "(cached) " >&6
27082else
27083 ac_check_lib_save_LIBS=$LIBS
27084LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027086/* end confdefs.h. */
27087
27088/* Override any GCC internal prototype to avoid an error.
27089 Use char because int might match the return type of a GCC
27090 builtin and then its argument prototype would still apply. */
27091#ifdef __cplusplus
27092extern "C"
27093#endif
27094char remove ();
27095int
27096main ()
27097{
27098return remove ();
27099 ;
27100 return 0;
27101}
27102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027103if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027104 ac_cv_lib_posix_remove=yes
27105else
cristy8b350f62009-11-15 23:12:43 +000027106 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027107fi
cristy8b350f62009-11-15 23:12:43 +000027108rm -f core conftest.err conftest.$ac_objext \
27109 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027110LIBS=$ac_check_lib_save_LIBS
27111fi
cristy8b350f62009-11-15 23:12:43 +000027112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027113$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027114if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027115 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27116fi
27117
27118 fi
27119
27120 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027121 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027122if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027123
cristy3ed852e2009-09-05 21:47:34 +000027124fi
27125
cristy3ed852e2009-09-05 21:47:34 +000027126 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027128$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027129if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027130 $as_echo_n "(cached) " >&6
27131else
27132 ac_check_lib_save_LIBS=$LIBS
27133LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027135/* end confdefs.h. */
27136
27137/* Override any GCC internal prototype to avoid an error.
27138 Use char because int might match the return type of a GCC
27139 builtin and then its argument prototype would still apply. */
27140#ifdef __cplusplus
27141extern "C"
27142#endif
27143char shmat ();
27144int
27145main ()
27146{
27147return shmat ();
27148 ;
27149 return 0;
27150}
27151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027152if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027153 ac_cv_lib_ipc_shmat=yes
27154else
cristy8b350f62009-11-15 23:12:43 +000027155 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027156fi
cristy8b350f62009-11-15 23:12:43 +000027157rm -f core conftest.err conftest.$ac_objext \
27158 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027159LIBS=$ac_check_lib_save_LIBS
27160fi
cristy8b350f62009-11-15 23:12:43 +000027161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027162$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027163if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027164 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27165fi
27166
27167 fi
27168 fi
27169
27170 # Check for libraries that X11R6 Xt/Xaw programs need.
27171 ac_save_LDFLAGS=$LDFLAGS
27172 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27173 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27174 # check for ICE first), but we must link in the order -lSM -lICE or
27175 # we get undefined symbols. So assume we have SM if we have ICE.
27176 # These have to be linked with before -lX11, unlike the other
27177 # libraries we check for below, so use a different variable.
27178 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027180$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027181if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027182 $as_echo_n "(cached) " >&6
27183else
27184 ac_check_lib_save_LIBS=$LIBS
27185LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027187/* end confdefs.h. */
27188
27189/* Override any GCC internal prototype to avoid an error.
27190 Use char because int might match the return type of a GCC
27191 builtin and then its argument prototype would still apply. */
27192#ifdef __cplusplus
27193extern "C"
27194#endif
27195char IceConnectionNumber ();
27196int
27197main ()
27198{
27199return IceConnectionNumber ();
27200 ;
27201 return 0;
27202}
27203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027204if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027205 ac_cv_lib_ICE_IceConnectionNumber=yes
27206else
cristy8b350f62009-11-15 23:12:43 +000027207 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027208fi
cristy8b350f62009-11-15 23:12:43 +000027209rm -f core conftest.err conftest.$ac_objext \
27210 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027211LIBS=$ac_check_lib_save_LIBS
27212fi
cristy8b350f62009-11-15 23:12:43 +000027213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027214$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027215if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027216 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27217fi
27218
27219 LDFLAGS=$ac_save_LDFLAGS
27220
27221fi
27222
27223if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27225$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027227$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27229$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027230 LDFLAGS="$LDFLAGS $X_LIBS"
27231 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27232 LIBS="$X11_LIBS $LIBS"
27233 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27234
27235
cristy8b350f62009-11-15 23:12:43 +000027236$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027237
27238 #
27239 # Check for X11 shared memory extension
27240 #
27241 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027242 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027243if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027244 have_shmctl='yes'
27245fi
27246
27247 if test "$have_shmctl" != 'yes'; then
27248 PERSIST_LIBS=$LIBS
27249 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027251/* end confdefs.h. */
27252
27253/* Override any GCC internal prototype to avoid an error.
27254 Use char because int might match the return type of a GCC
27255 builtin and then its argument prototype would still apply. */
27256#ifdef __cplusplus
27257extern "C"
27258#endif
27259char shmctl ();
27260int
27261main ()
27262{
27263return shmctl ();
27264 ;
27265 return 0;
27266}
27267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027268if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027269 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027270fi
cristy8b350f62009-11-15 23:12:43 +000027271rm -f core conftest.err conftest.$ac_objext \
27272 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027273 LIBS=$PERSIST_LIBS
27274 fi
27275
27276 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027278$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027279if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027280 $as_echo_n "(cached) " >&6
27281else
27282 ac_check_lib_save_LIBS=$LIBS
27283LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027285/* end confdefs.h. */
27286
27287/* Override any GCC internal prototype to avoid an error.
27288 Use char because int might match the return type of a GCC
27289 builtin and then its argument prototype would still apply. */
27290#ifdef __cplusplus
27291extern "C"
27292#endif
27293char XShmAttach ();
27294int
27295main ()
27296{
27297return XShmAttach ();
27298 ;
27299 return 0;
27300}
27301_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027302if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027303 ac_cv_lib_Xext_XShmAttach=yes
27304else
cristy8b350f62009-11-15 23:12:43 +000027305 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027306fi
cristy8b350f62009-11-15 23:12:43 +000027307rm -f core conftest.err conftest.$ac_objext \
27308 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027309LIBS=$ac_check_lib_save_LIBS
27310fi
cristy8b350f62009-11-15 23:12:43 +000027311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027312$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027313if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027314 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027315$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027316
27317fi
27318
27319 fi
27320
27321 #
27322 # Check for X11 shape extension
27323 #
cristy8b350f62009-11-15 23:12:43 +000027324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027325$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027326if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027327 $as_echo_n "(cached) " >&6
27328else
27329 ac_check_lib_save_LIBS=$LIBS
27330LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027332/* end confdefs.h. */
27333
27334/* Override any GCC internal prototype to avoid an error.
27335 Use char because int might match the return type of a GCC
27336 builtin and then its argument prototype would still apply. */
27337#ifdef __cplusplus
27338extern "C"
27339#endif
27340char XShapeCombineMask ();
27341int
27342main ()
27343{
27344return XShapeCombineMask ();
27345 ;
27346 return 0;
27347}
27348_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027349if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027350 ac_cv_lib_Xext_XShapeCombineMask=yes
27351else
cristy8b350f62009-11-15 23:12:43 +000027352 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027353fi
cristy8b350f62009-11-15 23:12:43 +000027354rm -f core conftest.err conftest.$ac_objext \
27355 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027356LIBS=$ac_check_lib_save_LIBS
27357fi
cristy8b350f62009-11-15 23:12:43 +000027358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027359$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027360if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027361 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027362$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027363
27364fi
27365
cristy8b350f62009-11-15 23:12:43 +000027366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027367$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027368if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027369 $as_echo_n "(cached) " >&6
27370else
27371 ac_check_lib_save_LIBS=$LIBS
27372LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027374/* end confdefs.h. */
27375
27376/* Override any GCC internal prototype to avoid an error.
27377 Use char because int might match the return type of a GCC
27378 builtin and then its argument prototype would still apply. */
27379#ifdef __cplusplus
27380extern "C"
27381#endif
27382char XtSetEventDispatcher ();
27383int
27384main ()
27385{
27386return XtSetEventDispatcher ();
27387 ;
27388 return 0;
27389}
27390_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027391if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027392 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27393else
cristy8b350f62009-11-15 23:12:43 +000027394 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027395fi
cristy8b350f62009-11-15 23:12:43 +000027396rm -f core conftest.err conftest.$ac_objext \
27397 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027398LIBS=$ac_check_lib_save_LIBS
27399fi
cristy8b350f62009-11-15 23:12:43 +000027400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027401$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027402if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027403 XT_LIBS='-lXt'
27404fi
27405
27406 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27407fi
27408if test "$no_x" != 'yes'; then
27409 have_x='yes'
27410else
27411 have_x='no'
27412fi
cristy73bd4a52010-10-05 11:24:23 +000027413 if test "$have_x" = 'yes'; then
27414 X11_DELEGATE_TRUE=
27415 X11_DELEGATE_FALSE='#'
27416else
27417 X11_DELEGATE_TRUE='#'
27418 X11_DELEGATE_FALSE=
27419fi
27420
cristy3ed852e2009-09-05 21:47:34 +000027421
27422
27423
27424
27425#
27426# Check for ZLIB
27427#
27428
27429# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027430if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027431 withval=$with_zlib; with_zlib=$withval
27432else
27433 with_zlib='yes'
27434fi
27435
27436
27437if test "$with_zlib" != 'yes'; then
27438 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27439fi
27440
27441have_zlib='no'
27442ZLIB_LIBS=''
27443if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27445$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027447$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27449$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027450 ZLIB_LIBS=''
27451 failed=0
27452 passed=0
cristy8b350f62009-11-15 23:12:43 +000027453 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027454if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027455 passed=`expr $passed + 1`
27456else
27457 failed=`expr $failed + 1`
27458fi
27459
27460
cristy8b350f62009-11-15 23:12:43 +000027461 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027462if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027463 passed=`expr $passed + 1`
27464else
27465 failed=`expr $failed + 1`
27466fi
27467
27468
cristy8b350f62009-11-15 23:12:43 +000027469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027470$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027471if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027472 $as_echo_n "(cached) " >&6
27473else
27474 ac_check_lib_save_LIBS=$LIBS
27475LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027477/* end confdefs.h. */
27478
27479/* Override any GCC internal prototype to avoid an error.
27480 Use char because int might match the return type of a GCC
27481 builtin and then its argument prototype would still apply. */
27482#ifdef __cplusplus
27483extern "C"
27484#endif
27485char compress ();
27486int
27487main ()
27488{
27489return compress ();
27490 ;
27491 return 0;
27492}
27493_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027494if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027495 ac_cv_lib_z_compress=yes
27496else
cristy8b350f62009-11-15 23:12:43 +000027497 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027498fi
cristy8b350f62009-11-15 23:12:43 +000027499rm -f core conftest.err conftest.$ac_objext \
27500 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027501LIBS=$ac_check_lib_save_LIBS
27502fi
cristy8b350f62009-11-15 23:12:43 +000027503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027504$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027505if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027506 passed=`expr $passed + 1`
27507else
27508 failed=`expr $failed + 1`
27509fi
27510
cristy8b350f62009-11-15 23:12:43 +000027511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027512$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027513if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027514 $as_echo_n "(cached) " >&6
27515else
27516 ac_check_lib_save_LIBS=$LIBS
27517LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027519/* end confdefs.h. */
27520
27521/* Override any GCC internal prototype to avoid an error.
27522 Use char because int might match the return type of a GCC
27523 builtin and then its argument prototype would still apply. */
27524#ifdef __cplusplus
27525extern "C"
27526#endif
27527char uncompress ();
27528int
27529main ()
27530{
27531return uncompress ();
27532 ;
27533 return 0;
27534}
27535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027536if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027537 ac_cv_lib_z_uncompress=yes
27538else
cristy8b350f62009-11-15 23:12:43 +000027539 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027540fi
cristy8b350f62009-11-15 23:12:43 +000027541rm -f core conftest.err conftest.$ac_objext \
27542 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027543LIBS=$ac_check_lib_save_LIBS
27544fi
cristy8b350f62009-11-15 23:12:43 +000027545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027546$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027547if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027548 passed=`expr $passed + 1`
27549else
27550 failed=`expr $failed + 1`
27551fi
27552
cristy8b350f62009-11-15 23:12:43 +000027553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027554$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027555if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027556 $as_echo_n "(cached) " >&6
27557else
27558 ac_check_lib_save_LIBS=$LIBS
27559LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027561/* end confdefs.h. */
27562
27563/* Override any GCC internal prototype to avoid an error.
27564 Use char because int might match the return type of a GCC
27565 builtin and then its argument prototype would still apply. */
27566#ifdef __cplusplus
27567extern "C"
27568#endif
27569char deflate ();
27570int
27571main ()
27572{
27573return deflate ();
27574 ;
27575 return 0;
27576}
27577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027578if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027579 ac_cv_lib_z_deflate=yes
27580else
cristy8b350f62009-11-15 23:12:43 +000027581 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027582fi
cristy8b350f62009-11-15 23:12:43 +000027583rm -f core conftest.err conftest.$ac_objext \
27584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027585LIBS=$ac_check_lib_save_LIBS
27586fi
cristy8b350f62009-11-15 23:12:43 +000027587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027588$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027589if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027590 passed=`expr $passed + 1`
27591else
27592 failed=`expr $failed + 1`
27593fi
27594
cristy8b350f62009-11-15 23:12:43 +000027595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027596$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027597if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027598 $as_echo_n "(cached) " >&6
27599else
27600 ac_check_lib_save_LIBS=$LIBS
27601LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027603/* end confdefs.h. */
27604
27605/* Override any GCC internal prototype to avoid an error.
27606 Use char because int might match the return type of a GCC
27607 builtin and then its argument prototype would still apply. */
27608#ifdef __cplusplus
27609extern "C"
27610#endif
27611char inflate ();
27612int
27613main ()
27614{
27615return inflate ();
27616 ;
27617 return 0;
27618}
27619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027620if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027621 ac_cv_lib_z_inflate=yes
27622else
cristy8b350f62009-11-15 23:12:43 +000027623 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027624fi
cristy8b350f62009-11-15 23:12:43 +000027625rm -f core conftest.err conftest.$ac_objext \
27626 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027627LIBS=$ac_check_lib_save_LIBS
27628fi
cristy8b350f62009-11-15 23:12:43 +000027629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027630$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027631if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027632 passed=`expr $passed + 1`
27633else
27634 failed=`expr $failed + 1`
27635fi
27636
cristy8b350f62009-11-15 23:12:43 +000027637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027638$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027639if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027640 $as_echo_n "(cached) " >&6
27641else
27642 ac_check_lib_save_LIBS=$LIBS
27643LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027645/* end confdefs.h. */
27646
27647/* Override any GCC internal prototype to avoid an error.
27648 Use char because int might match the return type of a GCC
27649 builtin and then its argument prototype would still apply. */
27650#ifdef __cplusplus
27651extern "C"
27652#endif
27653char gzseek ();
27654int
27655main ()
27656{
27657return gzseek ();
27658 ;
27659 return 0;
27660}
27661_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027662if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027663 ac_cv_lib_z_gzseek=yes
27664else
cristy8b350f62009-11-15 23:12:43 +000027665 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027666fi
cristy8b350f62009-11-15 23:12:43 +000027667rm -f core conftest.err conftest.$ac_objext \
27668 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027669LIBS=$ac_check_lib_save_LIBS
27670fi
cristy8b350f62009-11-15 23:12:43 +000027671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027672$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027673if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027674 passed=`expr $passed + 1`
27675else
27676 failed=`expr $failed + 1`
27677fi
27678
cristy8b350f62009-11-15 23:12:43 +000027679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027680$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027681if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027682 $as_echo_n "(cached) " >&6
27683else
27684 ac_check_lib_save_LIBS=$LIBS
27685LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027687/* end confdefs.h. */
27688
27689/* Override any GCC internal prototype to avoid an error.
27690 Use char because int might match the return type of a GCC
27691 builtin and then its argument prototype would still apply. */
27692#ifdef __cplusplus
27693extern "C"
27694#endif
27695char gztell ();
27696int
27697main ()
27698{
27699return gztell ();
27700 ;
27701 return 0;
27702}
27703_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027704if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027705 ac_cv_lib_z_gztell=yes
27706else
cristy8b350f62009-11-15 23:12:43 +000027707 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027708fi
cristy8b350f62009-11-15 23:12:43 +000027709rm -f core conftest.err conftest.$ac_objext \
27710 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027711LIBS=$ac_check_lib_save_LIBS
27712fi
cristy8b350f62009-11-15 23:12:43 +000027713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027714$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027715if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027716 passed=`expr $passed + 1`
27717else
27718 failed=`expr $failed + 1`
27719fi
27720
cristy8b350f62009-11-15 23:12:43 +000027721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027722$as_echo_n "checking if ZLIB package is complete... " >&6; }
27723 if test $passed -gt 0; then
27724 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27726$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027727 have_zlib='no (failed tests)'
27728 else
27729 ZLIB_LIBS='-lz'
27730 LIBS="$ZLIB_LIBS $LIBS"
27731
cristy8b350f62009-11-15 23:12:43 +000027732$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027733
cristyad38abe2012-12-23 23:03:21 +000027734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27735$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027736 have_zlib='yes'
27737 fi
27738 else
cristyad38abe2012-12-23 23:03:21 +000027739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27740$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027741 fi
27742fi
cristy73bd4a52010-10-05 11:24:23 +000027743 if test "$have_zlib" = 'yes'; then
27744 ZLIB_DELEGATE_TRUE=
27745 ZLIB_DELEGATE_FALSE='#'
27746else
27747 ZLIB_DELEGATE_TRUE='#'
27748 ZLIB_DELEGATE_FALSE=
27749fi
27750
cristy3ed852e2009-09-05 21:47:34 +000027751
27752
cristy5eef09f2012-10-16 12:08:28 +000027753# whether modules are built or not.
27754with_ltdl='yes'
27755have_ltdl='no'
27756LTDL_LIBS=''
27757if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000027758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27759$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000027760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
27761$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27763$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000027764 failed=0
27765 passed=0
27766 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
27767if test "x$ac_cv_header_ltdl_h" = xyes; then :
27768 passed=`expr $passed + 1`
27769else
27770 failed=`expr $failed + 1`
27771fi
27772
27773
27774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
27775$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
27776if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
27777 $as_echo_n "(cached) " >&6
27778else
27779 ac_check_lib_save_LIBS=$LIBS
27780LIBS="-lltdl $LIBS"
27781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27782/* end confdefs.h. */
27783
27784/* Override any GCC internal prototype to avoid an error.
27785 Use char because int might match the return type of a GCC
27786 builtin and then its argument prototype would still apply. */
27787#ifdef __cplusplus
27788extern "C"
27789#endif
27790char lt_dlinit ();
27791int
27792main ()
27793{
27794return lt_dlinit ();
27795 ;
27796 return 0;
27797}
27798_ACEOF
27799if ac_fn_c_try_link "$LINENO"; then :
27800 ac_cv_lib_ltdl_lt_dlinit=yes
27801else
27802 ac_cv_lib_ltdl_lt_dlinit=no
27803fi
27804rm -f core conftest.err conftest.$ac_objext \
27805 conftest$ac_exeext conftest.$ac_ext
27806LIBS=$ac_check_lib_save_LIBS
27807fi
27808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
27809$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
27810if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
27811 passed=`expr $passed + 1`
27812else
27813 failed=`expr $failed + 1`
27814fi
27815
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
27817$as_echo_n "checking if libltdl package is complete... " >&6; }
27818 if test $passed -gt 0 ; then
27819 if test $failed -gt 0 ; then
27820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27821$as_echo "no -- some components failed test" >&6; }
27822 have_ltdl='no (failed tests)'
27823 else
27824 LTDL_LIBS='-lltdl'
27825 LIBS="$LTDL_LIBS $LIBS"
27826
27827$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
27828
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27830$as_echo "yes" >&6; }
27831 have_ltdl='yes'
27832 fi
27833 else
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27835$as_echo "no" >&6; }
27836 fi
cristyaf4cbf32012-10-16 23:47:41 +000027837 if test "$have_ltdl" != 'yes' ; then
27838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27840as_fn_error 1 "libltdl is required for modules build
27841See \`config.log' for more details" "$LINENO" 5; }
27842 fi
cristy5eef09f2012-10-16 12:08:28 +000027843fi
27844 if test "$have_ltdl" != 'no'; then
27845 WITH_LTDL_TRUE=
27846 WITH_LTDL_FALSE='#'
27847else
27848 WITH_LTDL_TRUE='#'
27849 WITH_LTDL_FALSE=
27850fi
27851
27852
cristy3ed852e2009-09-05 21:47:34 +000027853#
27854# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27855#
27856LIB_DL=''
27857if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027859$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027860if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027861 $as_echo_n "(cached) " >&6
27862else
27863 ac_check_lib_save_LIBS=$LIBS
27864LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027866/* end confdefs.h. */
27867
27868/* Override any GCC internal prototype to avoid an error.
27869 Use char because int might match the return type of a GCC
27870 builtin and then its argument prototype would still apply. */
27871#ifdef __cplusplus
27872extern "C"
27873#endif
27874char dlopen ();
27875int
27876main ()
27877{
27878return dlopen ();
27879 ;
27880 return 0;
27881}
27882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027883if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027884 ac_cv_lib_dl_dlopen=yes
27885else
cristy8b350f62009-11-15 23:12:43 +000027886 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027887fi
cristy8b350f62009-11-15 23:12:43 +000027888rm -f core conftest.err conftest.$ac_objext \
27889 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027890LIBS=$ac_check_lib_save_LIBS
27891fi
cristy8b350f62009-11-15 23:12:43 +000027892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027893$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027894if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027895 LIB_DL='-ldl'
27896fi
27897
27898 LIBS="$LIB_DL $LIBS"
27899fi
27900
27901
27902
27903#
27904# Check for Autotrace delegate library.
27905#
27906
27907# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027908if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027909 withval=$with_autotrace; with_autotrace=$withval
27910else
27911 with_autotrace='no'
27912fi
27913
27914
27915if test "$with_autotrace" != 'yes'; then
27916 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27917fi
27918
27919have_autotrace='no'
27920AUTOTRACE_CFLAGS=""
27921AUTOTRACE_LIBS=""
27922AUTOTRACE_PKG=""
27923if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000027924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27925$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027926
27927pkg_failed=no
27928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27929$as_echo_n "checking for AUTOTRACE... " >&6; }
27930
27931if test -n "$AUTOTRACE_CFLAGS"; then
27932 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27933 elif test -n "$PKG_CONFIG"; then
27934 if test -n "$PKG_CONFIG" && \
27935 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27936 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27937 ac_status=$?
27938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27939 test $ac_status = 0; }; then
27940 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27941else
27942 pkg_failed=yes
27943fi
27944 else
27945 pkg_failed=untried
27946fi
27947if test -n "$AUTOTRACE_LIBS"; then
27948 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27949 elif test -n "$PKG_CONFIG"; then
27950 if test -n "$PKG_CONFIG" && \
27951 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27952 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27953 ac_status=$?
27954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27955 test $ac_status = 0; }; then
27956 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27957else
27958 pkg_failed=yes
27959fi
27960 else
27961 pkg_failed=untried
27962fi
27963
27964
27965
27966if test $pkg_failed = yes; then
27967
27968if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27969 _pkg_short_errors_supported=yes
27970else
27971 _pkg_short_errors_supported=no
27972fi
27973 if test $_pkg_short_errors_supported = yes; then
27974 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27975 else
27976 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27977 fi
27978 # Put the nasty error message in config.log where it belongs
27979 echo "$AUTOTRACE_PKG_ERRORS" >&5
27980
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27982$as_echo "no" >&6; }
27983 have_autotrace=no
27984elif test $pkg_failed = untried; then
27985 have_autotrace=no
27986else
27987 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27988 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27990$as_echo "yes" >&6; }
27991 have_autotrace=yes
27992fi
cristyad38abe2012-12-23 23:03:21 +000027993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27994$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027995fi
27996
27997if test "$have_autotrace" = 'yes'; then
27998 failed=0
27999
cristy8b350f62009-11-15 23:12:43 +000028000$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028001
cristyc6722092012-10-14 00:19:31 +000028002 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028003 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028004 fi
28005fi
28006
cristy73bd4a52010-10-05 11:24:23 +000028007 if test "$have_autotrace" = 'yes'; then
28008 AUTOTRACE_DELEGATE_TRUE=
28009 AUTOTRACE_DELEGATE_FALSE='#'
28010else
28011 AUTOTRACE_DELEGATE_TRUE='#'
28012 AUTOTRACE_DELEGATE_FALSE=
28013fi
28014
cristy3ed852e2009-09-05 21:47:34 +000028015
28016
28017
28018
28019#
28020# Check for Display Postscript delegate library.
28021#
28022
28023# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028024if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028025 withval=$with_dps; with_dps=$withval
28026else
28027 with_dps='yes'
28028fi
28029
28030
28031if test "$with_dps" != 'yes'; then
28032 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28033fi
28034
28035have_dps='no'
28036DPS_LIBS=''
28037if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28039$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028041$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28043$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028044 failed=0
28045 passed=0
28046 PERSIST_CPPFLAGS="$CPPFLAGS"
28047 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028048 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 +000028049if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028050 passed=`expr $passed + 1`
28051else
28052 failed=`expr $failed + 1`
28053fi
28054
28055
28056 # DPS issues:
28057 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28058 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28059 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28060 # ImageMagick itself doesn't use -lXt.
28061 have_libdps='no'
28062 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028064$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028065if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028066 $as_echo_n "(cached) " >&6
28067else
28068 ac_check_lib_save_LIBS=$LIBS
28069LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028071/* end confdefs.h. */
28072
28073/* Override any GCC internal prototype to avoid an error.
28074 Use char because int might match the return type of a GCC
28075 builtin and then its argument prototype would still apply. */
28076#ifdef __cplusplus
28077extern "C"
28078#endif
28079char DPSInitialize ();
28080int
28081main ()
28082{
28083return DPSInitialize ();
28084 ;
28085 return 0;
28086}
28087_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028088if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028089 ac_cv_lib_dps_DPSInitialize=yes
28090else
cristy8b350f62009-11-15 23:12:43 +000028091 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028092fi
cristy8b350f62009-11-15 23:12:43 +000028093rm -f core conftest.err conftest.$ac_objext \
28094 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028095LIBS=$ac_check_lib_save_LIBS
28096fi
cristy8b350f62009-11-15 23:12:43 +000028097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028098$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028099if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028100 have_libdps='yes'
28101else
28102 have_libdps='no'
28103fi
28104
28105 if test "$have_libdps" != 'yes'; then
28106 # Unset cache variable so we can try again.
28107 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028109$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028110if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028111 $as_echo_n "(cached) " >&6
28112else
28113 ac_check_lib_save_LIBS=$LIBS
28114LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028116/* end confdefs.h. */
28117
28118/* Override any GCC internal prototype to avoid an error.
28119 Use char because int might match the return type of a GCC
28120 builtin and then its argument prototype would still apply. */
28121#ifdef __cplusplus
28122extern "C"
28123#endif
28124char DPSInitialize ();
28125int
28126main ()
28127{
28128return DPSInitialize ();
28129 ;
28130 return 0;
28131}
28132_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028133if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028134 ac_cv_lib_dps_DPSInitialize=yes
28135else
cristy8b350f62009-11-15 23:12:43 +000028136 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028137fi
cristy8b350f62009-11-15 23:12:43 +000028138rm -f core conftest.err conftest.$ac_objext \
28139 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028140LIBS=$ac_check_lib_save_LIBS
28141fi
cristy8b350f62009-11-15 23:12:43 +000028142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028143$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028144if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028145 have_libdps='yes'
28146else
28147 have_libdps='no'
28148fi
28149
28150 if test "$have_libdps" = 'yes'; then
28151 LIBDPS_XT='-lXt'
28152 fi
28153 fi
28154 if test "$have_libdps" = 'yes'; then
28155 passed=`expr $passed + 1`
28156 else
28157 failed=`expr $failed + 1`
28158 fi
cristy8b350f62009-11-15 23:12:43 +000028159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028160$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028161if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028162 $as_echo_n "(cached) " >&6
28163else
28164 ac_check_lib_save_LIBS=$LIBS
28165LIBS="-ldpstk -ldps $LIBDPS_XT $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 XDPSPixelsPerPoint ();
28176int
28177main ()
28178{
28179return XDPSPixelsPerPoint ();
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_dpstk_XDPSPixelsPerPoint=yes
28186else
cristy8b350f62009-11-15 23:12:43 +000028187 ac_cv_lib_dpstk_XDPSPixelsPerPoint=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_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028194$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028195if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028196 passed=`expr $passed + 1`
28197else
28198 failed=`expr $failed + 1`
28199fi
28200
cristy8b350f62009-11-15 23:12:43 +000028201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028202$as_echo_n "checking if DPS package is complete... " >&6; }
28203 if test $passed -gt 0; then
28204 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28206$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028207 have_dps='no (failed tests)'
28208 CPPFLAGS="$PERSIST_CPPFLAGS"
28209 else
28210 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28211 LIBS="$DPS_LIBS $LIBS"
28212
cristy8b350f62009-11-15 23:12:43 +000028213$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028214
cristyad38abe2012-12-23 23:03:21 +000028215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28216$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028217 have_dps='yes'
28218 fi
28219 else
cristyad38abe2012-12-23 23:03:21 +000028220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28221$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028222 CPPFLAGS=$PERSIST_CPPFLAGS
28223 fi
28224fi
cristy73bd4a52010-10-05 11:24:23 +000028225 if test "$have_dps" = 'yes'; then
28226 DPS_DELEGATE_TRUE=
28227 DPS_DELEGATE_FALSE='#'
28228else
28229 DPS_DELEGATE_TRUE='#'
28230 DPS_DELEGATE_FALSE=
28231fi
28232
cristy3ed852e2009-09-05 21:47:34 +000028233
28234
28235
28236#
28237# Check for DJVU delegate library.
28238#
28239
28240# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028241if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028242 withval=$with_djvu; with_djvu=$withval
28243else
28244 with_djvu='yes'
28245fi
28246
28247
28248if test "$with_djvu" != 'yes'; then
28249 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28250fi
28251
28252have_djvu='no'
28253DJVU_LIBS=''
28254if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28256$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028258$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28260$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028261 failed=0
28262 passed=0
cristy8b350f62009-11-15 23:12:43 +000028263 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 +000028264if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028265 passed=`expr $passed + 1`
28266else
28267 failed=`expr $failed + 1`
28268fi
28269
28270
cristy8b350f62009-11-15 23:12:43 +000028271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028272$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028273if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028274 $as_echo_n "(cached) " >&6
28275else
28276 ac_check_lib_save_LIBS=$LIBS
28277LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028279/* end confdefs.h. */
28280
28281/* Override any GCC internal prototype to avoid an error.
28282 Use char because int might match the return type of a GCC
28283 builtin and then its argument prototype would still apply. */
28284#ifdef __cplusplus
28285extern "C"
28286#endif
28287char ddjvu_context_create ();
28288int
28289main ()
28290{
28291return ddjvu_context_create ();
28292 ;
28293 return 0;
28294}
28295_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028296if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028297 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28298else
cristy8b350f62009-11-15 23:12:43 +000028299 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028300fi
cristy8b350f62009-11-15 23:12:43 +000028301rm -f core conftest.err conftest.$ac_objext \
28302 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028303LIBS=$ac_check_lib_save_LIBS
28304fi
cristy8b350f62009-11-15 23:12:43 +000028305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028306$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028307if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028308 passed=`expr $passed + 1`
28309else
28310 failed=`expr $failed + 1`
28311fi
28312
cristy8b350f62009-11-15 23:12:43 +000028313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028314$as_echo_n "checking if DJVU package is complete... " >&6; }
28315 if test $passed -gt 0; then
28316 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28318$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028319 have_djvu='no (failed tests)'
28320 else
28321 DJVU_LIBS='-ldjvulibre'
28322 LIBS="$DJVU_LIBS $LIBS"
28323
cristy8b350f62009-11-15 23:12:43 +000028324$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028325
cristyad38abe2012-12-23 23:03:21 +000028326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28327$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028328 have_djvu='yes'
28329 fi
28330 else
cristyad38abe2012-12-23 23:03:21 +000028331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28332$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028333 fi
28334fi
cristy73bd4a52010-10-05 11:24:23 +000028335 if test "$have_djvu" = 'yes'; then
28336 DJVU_DELEGATE_TRUE=
28337 DJVU_DELEGATE_FALSE='#'
28338else
28339 DJVU_DELEGATE_TRUE='#'
28340 DJVU_DELEGATE_FALSE=
28341fi
28342
cristy3ed852e2009-09-05 21:47:34 +000028343
28344
28345
28346#
cristy430a7312010-01-21 20:44:04 +000028347# Set DejaVu font directory.
28348#
28349
28350# Check whether --with-dejavu-font-dir was given.
28351if test "${with_dejavu_font_dir+set}" = set; then :
28352 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28353else
28354 with_dejavu_font_dir='default'
28355fi
28356
28357
28358if test "$with_dejavu_font_dir" != 'default'; then
28359 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28360fi
28361
28362
28363#
cristy3ed852e2009-09-05 21:47:34 +000028364# Check for FFTW delegate library.
28365#
28366
28367# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028368if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028369 withval=$with_fftw; with_fftw=$withval
28370else
28371 with_fftw='yes'
28372fi
28373
28374
28375if test "$with_fftw" != 'yes'; then
28376 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28377fi
28378
cristy81beccd2011-10-03 18:17:24 +000028379have_fftw='no'
28380FFTW_LIBS=''
28381if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28383$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28385$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28387$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028388 failed=0
28389 passed=0
28390 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28391if test "x$ac_cv_header_fftw3_h" = xyes; then :
28392 passed=`expr $passed + 1`
28393else
28394 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028395fi
28396
cristy81beccd2011-10-03 18:17:24 +000028397
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28399$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28400if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28401 $as_echo_n "(cached) " >&6
28402else
28403 ac_check_lib_save_LIBS=$LIBS
28404LIBS="-lfftw3 $LIBS"
28405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28406/* end confdefs.h. */
28407
28408/* Override any GCC internal prototype to avoid an error.
28409 Use char because int might match the return type of a GCC
28410 builtin and then its argument prototype would still apply. */
28411#ifdef __cplusplus
28412extern "C"
28413#endif
28414char fftw_execute ();
28415int
28416main ()
28417{
28418return fftw_execute ();
28419 ;
28420 return 0;
28421}
28422_ACEOF
28423if ac_fn_c_try_link "$LINENO"; then :
28424 ac_cv_lib_fftw3_fftw_execute=yes
28425else
28426 ac_cv_lib_fftw3_fftw_execute=no
28427fi
28428rm -f core conftest.err conftest.$ac_objext \
28429 conftest$ac_exeext conftest.$ac_ext
28430LIBS=$ac_check_lib_save_LIBS
28431fi
28432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28433$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28434if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28435 passed=`expr $passed + 1`
28436else
28437 failed=`expr $failed + 1`
28438fi
28439
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28441$as_echo_n "checking if FFTW package is complete... " >&6; }
28442 if test $passed -gt 0; then
28443 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28445$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028446 have_fftw='no (failed tests)'
28447 else
28448 FFTW_LIBS='-lfftw3'
28449 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028450
cristy8b350f62009-11-15 23:12:43 +000028451$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028452
cristyad38abe2012-12-23 23:03:21 +000028453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28454$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028455 have_fftw='yes'
28456 fi
28457 else
cristyad38abe2012-12-23 23:03:21 +000028458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28459$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028460 fi
28461fi
cristy73bd4a52010-10-05 11:24:23 +000028462 if test "$have_fftw" = 'yes'; then
28463 FFTW_DELEGATE_TRUE=
28464 FFTW_DELEGATE_FALSE='#'
28465else
28466 FFTW_DELEGATE_TRUE='#'
28467 FFTW_DELEGATE_FALSE=
28468fi
28469
cristy3ed852e2009-09-05 21:47:34 +000028470
28471
28472
28473#
28474# Check for FlashPIX delegate library.
28475#
28476
28477# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028478if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028479 withval=$with_fpx; with_fpx=$withval
28480else
28481 with_fpx='yes'
28482fi
28483
28484
28485if test "$with_fpx" != 'yes'; then
28486 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28487fi
28488
28489have_fpx='no'
28490FPX_LIBS=''
28491if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28493$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028495$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28497$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028498 failed=0
28499 passed=0
28500 ac_ext=cpp
28501ac_cpp='$CXXCPP $CPPFLAGS'
28502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28505
28506
cristy8b350f62009-11-15 23:12:43 +000028507ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028508if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028509 passed=`expr $passed + 1`
28510else
28511 failed=`expr $failed + 1`
28512fi
28513
28514
cristy8b350f62009-11-15 23:12:43 +000028515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028516$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028517if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028518 $as_echo_n "(cached) " >&6
28519else
28520 ac_check_lib_save_LIBS=$LIBS
28521LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028523/* end confdefs.h. */
28524
28525/* Override any GCC internal prototype to avoid an error.
28526 Use char because int might match the return type of a GCC
28527 builtin and then its argument prototype would still apply. */
28528#ifdef __cplusplus
28529extern "C"
28530#endif
28531char FPX_OpenImageByFilename ();
28532int
28533main ()
28534{
28535return FPX_OpenImageByFilename ();
28536 ;
28537 return 0;
28538}
28539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028540if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028541 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28542else
cristy8b350f62009-11-15 23:12:43 +000028543 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028544fi
cristy8b350f62009-11-15 23:12:43 +000028545rm -f core conftest.err conftest.$ac_objext \
28546 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028547LIBS=$ac_check_lib_save_LIBS
28548fi
cristy8b350f62009-11-15 23:12:43 +000028549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028550$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028551if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028552 passed=`expr $passed + 1`
28553else
28554 failed=`expr $failed + 1`
28555fi
28556
28557 ac_ext=c
28558ac_cpp='$CPP $CPPFLAGS'
28559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28561ac_compiler_gnu=$ac_cv_c_compiler_gnu
28562
cristy8b350f62009-11-15 23:12:43 +000028563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028564$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28565 if test $passed -gt 0; then
28566 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28568$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028569 have_fpx='no (failed tests)'
28570 else
28571 FPX_LIBS='-lfpx'
28572
cristy8b350f62009-11-15 23:12:43 +000028573$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028574
cristyad38abe2012-12-23 23:03:21 +000028575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28576$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028577 have_fpx='yes'
28578 PERLMAINCC="$CXX"
28579 fi
28580 else
cristyad38abe2012-12-23 23:03:21 +000028581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28582$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028583 fi
28584fi
cristy73bd4a52010-10-05 11:24:23 +000028585 if test "$have_fpx" = 'yes'; then
28586 FPX_DELEGATE_TRUE=
28587 FPX_DELEGATE_FALSE='#'
28588else
28589 FPX_DELEGATE_TRUE='#'
28590 FPX_DELEGATE_FALSE=
28591fi
28592
cristy3ed852e2009-09-05 21:47:34 +000028593
28594
28595
28596#
28597# Check for fontconfig delegate library.
28598#
28599
28600# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028601if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028602 withval=$with_fontconfig; with_fontconfig=$withval
28603else
cristyfc3d0222012-02-07 15:05:57 +000028604 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028605fi
28606
28607
28608if test "$with_fontconfig" != 'yes'; then
28609 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28610fi
28611
28612have_fontconfig='no'
28613FONTCONFIG_CFLAGS=""
28614FONTCONFIG_LIBS=""
28615FONTCONFIG_PKG=""
28616if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28618$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028619
28620pkg_failed=no
28621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28622$as_echo_n "checking for FONTCONFIG... " >&6; }
28623
28624if test -n "$FONTCONFIG_CFLAGS"; then
28625 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28626 elif test -n "$PKG_CONFIG"; then
28627 if test -n "$PKG_CONFIG" && \
28628 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28629 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28630 ac_status=$?
28631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28632 test $ac_status = 0; }; then
28633 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28634else
28635 pkg_failed=yes
28636fi
28637 else
28638 pkg_failed=untried
28639fi
28640if test -n "$FONTCONFIG_LIBS"; then
28641 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28642 elif test -n "$PKG_CONFIG"; then
28643 if test -n "$PKG_CONFIG" && \
28644 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28645 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28646 ac_status=$?
28647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28648 test $ac_status = 0; }; then
28649 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28650else
28651 pkg_failed=yes
28652fi
28653 else
28654 pkg_failed=untried
28655fi
28656
28657
28658
28659if test $pkg_failed = yes; then
28660
28661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28662 _pkg_short_errors_supported=yes
28663else
28664 _pkg_short_errors_supported=no
28665fi
28666 if test $_pkg_short_errors_supported = yes; then
28667 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28668 else
28669 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28670 fi
28671 # Put the nasty error message in config.log where it belongs
28672 echo "$FONTCONFIG_PKG_ERRORS" >&5
28673
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28675$as_echo "no" >&6; }
28676 have_fontconfig=no
28677elif test $pkg_failed = untried; then
28678 have_fontconfig=no
28679else
28680 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28681 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28683$as_echo "yes" >&6; }
28684 have_fontconfig=yes
28685fi
cristyad38abe2012-12-23 23:03:21 +000028686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28687$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028688fi
28689
28690if test "$have_fontconfig" = 'yes'; then
28691
cristy8b350f62009-11-15 23:12:43 +000028692$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028693
cristyc6722092012-10-14 00:19:31 +000028694 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028695 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028696 fi
cristy3ed852e2009-09-05 21:47:34 +000028697fi
28698
cristy73bd4a52010-10-05 11:24:23 +000028699 if test "$have_fontconfig" = 'yes'; then
28700 FONTCONFIG_DELEGATE_TRUE=
28701 FONTCONFIG_DELEGATE_FALSE='#'
28702else
28703 FONTCONFIG_DELEGATE_TRUE='#'
28704 FONTCONFIG_DELEGATE_FALSE=
28705fi
28706
cristy3ed852e2009-09-05 21:47:34 +000028707
28708
28709
28710
28711#
cristy81beccd2011-10-03 18:17:24 +000028712# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028713#
28714
28715# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028716if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028717 withval=$with_freetype; with_freetype=$withval
28718else
28719 with_freetype='yes'
28720fi
28721
28722
cristy81beccd2011-10-03 18:17:24 +000028723
cristy3ed852e2009-09-05 21:47:34 +000028724if test "$with_freetype" != 'yes'; then
28725 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28726fi
28727
cristy81beccd2011-10-03 18:17:24 +000028728have_freetype='no'
28729FREETYPE_LIBS=''
28730if test "$with_freetype" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28732$as_echo "-------------------------------------------------------------" >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28734$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28736$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028737 failed=0
28738 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028739 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028740 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028741 freetype_config=''
28742 # Allow the user to specify the location of freetype.
28743 if test "$with_freetype" != 'yes'; then
28744 if test -x "${with_freetype}/bin/freetype-config"; then
28745 freetype_config="${with_freetype}/bin/freetype-config"
28746 elif test -x "${with_freetype}"; then
28747 freetype_config=${with_freetype}
28748 fi
28749 fi
28750 if test -z "$freetype_config"; then
28751 # Extract the first word of "freetype-config", so it can be a program name with args.
28752set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28754$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028755if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028756 $as_echo_n "(cached) " >&6
28757else
cristy98ca0f52011-10-08 23:19:10 +000028758 case $freetype_config in
28759 [\\/]* | ?:[\\/]*)
28760 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28761 ;;
28762 *)
28763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028764for as_dir in $PATH
28765do
28766 IFS=$as_save_IFS
28767 test -z "$as_dir" && as_dir=.
28768 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000028769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000028770 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28772 break 2
28773 fi
28774done
28775 done
28776IFS=$as_save_IFS
28777
cristy98ca0f52011-10-08 23:19:10 +000028778 ;;
28779esac
cristy81beccd2011-10-03 18:17:24 +000028780fi
cristy98ca0f52011-10-08 23:19:10 +000028781freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028782if test -n "$freetype_config"; then
28783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28784$as_echo "$freetype_config" >&6; }
28785else
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28787$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028788fi
28789
cristy98ca0f52011-10-08 23:19:10 +000028790 fi
28791 if test -n "$freetype_config"; then
28792 freetype_prefix=`${freetype_config} --prefix`
28793 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28794 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28795 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028796 fi
28797
28798 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028800$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28801if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28802 $as_echo_n "(cached) " >&6
28803else
28804 ac_check_lib_save_LIBS=$LIBS
28805LIBS="-lfreetype $LIBS"
28806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28807/* end confdefs.h. */
28808
28809/* Override any GCC internal prototype to avoid an error.
28810 Use char because int might match the return type of a GCC
28811 builtin and then its argument prototype would still apply. */
28812#ifdef __cplusplus
28813extern "C"
28814#endif
28815char FT_Init_FreeType ();
28816int
28817main ()
28818{
28819return FT_Init_FreeType ();
28820 ;
28821 return 0;
28822}
28823_ACEOF
28824if ac_fn_c_try_link "$LINENO"; then :
28825 ac_cv_lib_freetype_FT_Init_FreeType=yes
28826else
28827 ac_cv_lib_freetype_FT_Init_FreeType=no
28828fi
28829rm -f core conftest.err conftest.$ac_objext \
28830 conftest$ac_exeext conftest.$ac_ext
28831LIBS=$ac_check_lib_save_LIBS
28832fi
28833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28834$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28835if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28836 FREETYPE_LIBS='-lfreetype'
28837fi
28838
cristy98ca0f52011-10-08 23:19:10 +000028839 if test "$FREETYPE_LIBS" != ''; then
28840 passed=`expr $passed + 1`
28841 else
28842 failed=`expr $failed + 1`
28843 LDFLAGS="$PERSIST_LDFLAGS"
28844 fi
cristy81beccd2011-10-03 18:17:24 +000028845 fi
28846
28847 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28848if test "x$ac_cv_header_ft2build_h" = xyes; then :
28849 FT2BUILD_H='#include <ft2build.h>'
28850else
28851 ft2build=''
28852fi
28853
28854
28855 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28856"
28857if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28858 have_freetype_h='yes'
28859else
28860 have_freetype_h='no'
28861fi
28862
28863
cristy98ca0f52011-10-08 23:19:10 +000028864 if test "$have_freetype_h" = 'yes'; then
28865 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028866 else
cristy98ca0f52011-10-08 23:19:10 +000028867 failed=`expr $failed + 1`
28868 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028869 fi
28870
28871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28872$as_echo_n "checking if FreeType package is complete... " >&6; }
28873 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028874 if test $failed -gt 0; then
28875 FREETYPE_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000028876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28877$as_echo "no -- some components failed test" >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028878 have_freetype='no (failed tests)'
28879 else
28880 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028881
cristy8b350f62009-11-15 23:12:43 +000028882$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028883
cristy98ca0f52011-10-08 23:19:10 +000028884 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028885
28886$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28887
cristy81beccd2011-10-03 18:17:24 +000028888 fi
cristyad38abe2012-12-23 23:03:21 +000028889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28890$as_echo "yes" >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028891 have_freetype='yes'
28892 fi
cristy81beccd2011-10-03 18:17:24 +000028893 else
cristyad38abe2012-12-23 23:03:21 +000028894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28895$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028896 fi
28897fi
cristy73bd4a52010-10-05 11:24:23 +000028898 if test "$have_freetype" = 'yes'; then
28899 FREETYPE_DELEGATE_TRUE=
28900 FREETYPE_DELEGATE_FALSE='#'
28901else
28902 FREETYPE_DELEGATE_TRUE='#'
28903 FREETYPE_DELEGATE_FALSE=
28904fi
28905
cristy3ed852e2009-09-05 21:47:34 +000028906
28907
28908
cristy3ed852e2009-09-05 21:47:34 +000028909#
28910# Check for Ghostscript library or framework.
28911#
28912# Test for iapi.h & test for gsapi_new_instance in -lgs
28913# or -framework Ghostscript
28914
28915
28916# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028917if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028918 withval=$with_gslib; with_gslib=$withval
28919else
28920 with_gslib='no'
28921fi
28922
28923
cristyb7931f12009-09-25 10:22:21 +000028924gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028925if test "$with_gslib" != 'yes'; then
28926 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28927fi
28928
28929have_gslib='no'
28930GS_LIBS=''
28931if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28933$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028935$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28937$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000028938 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028939 failed=0
28940 passed=0
cristy8b350f62009-11-15 23:12:43 +000028941 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 +000028942if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028943 passed=`expr $passed + 1`
28944else
28945 failed=`expr $failed + 1`
28946fi
28947
28948
cristy8b350f62009-11-15 23:12:43 +000028949 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 +000028950if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028951 passed=`expr $passed + 1`
28952else
28953 failed=`expr $failed + 1`
28954fi
28955
28956
cristy73bd4a52010-10-05 11:24:23 +000028957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28958$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028959if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028960 $as_echo_n "(cached) " >&6
28961else
28962 ac_check_framework_save_LIBS=$LIBS
28963LIBS="-framework Ghostscript $LIBS"
28964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28965/* end confdefs.h. */
28966
28967/* Override any GCC internal prototype to avoid an error.
28968 Use char because int might match the return type of a GCC
28969 builtin and then its argument prototype would still apply. */
28970#ifdef __cplusplus
28971extern "C"
28972#endif
28973char gsapi_new_instance ();
28974int
28975main ()
28976{
28977return gsapi_new_instance ();
28978 ;
28979 return 0;
28980}
28981_ACEOF
28982if ac_fn_c_try_link "$LINENO"; then :
28983 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28984else
28985 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28986fi
28987rm -f core conftest.err conftest.$ac_objext \
28988 conftest$ac_exeext conftest.$ac_ext
28989LIBS=$ac_check_framework_save_LIBS
28990fi
28991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28992$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28993if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28994 framework=`expr $framework + 1`
28995else
28996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028997$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028998if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028999 $as_echo_n "(cached) " >&6
29000else
29001 ac_check_lib_save_LIBS=$LIBS
29002LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029004/* end confdefs.h. */
29005
29006/* Override any GCC internal prototype to avoid an error.
29007 Use char because int might match the return type of a GCC
29008 builtin and then its argument prototype would still apply. */
29009#ifdef __cplusplus
29010extern "C"
29011#endif
29012char gsapi_new_instance ();
29013int
29014main ()
29015{
29016return gsapi_new_instance ();
29017 ;
29018 return 0;
29019}
29020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029021if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029022 ac_cv_lib_gs_gsapi_new_instance=yes
29023else
cristy8b350f62009-11-15 23:12:43 +000029024 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029025fi
cristy8b350f62009-11-15 23:12:43 +000029026rm -f core conftest.err conftest.$ac_objext \
29027 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029028LIBS=$ac_check_lib_save_LIBS
29029fi
cristy8b350f62009-11-15 23:12:43 +000029030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029031$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029032if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029033 passed=`expr $passed + 1`
29034else
29035 failed=`expr $failed + 1`
29036fi
cristy73bd4a52010-10-05 11:24:23 +000029037
29038fi
cristy8b350f62009-11-15 23:12:43 +000029039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029040$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29041 if test $passed -gt 0; then
29042 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29044$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029045 have_gslib='no (failed tests)'
29046 else
29047 if test $framework -gt 0; then
29048 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029049 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29051$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029052 else
cristyad38abe2012-12-23 23:03:21 +000029053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29054$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029055 GS_LIBS='-lgs'
29056 fi
29057 LIBS="$GS_LIBS $LIBS"
29058
cristy8b350f62009-11-15 23:12:43 +000029059$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029060
29061 have_gslib='yes'
29062 fi
29063 else
cristyad38abe2012-12-23 23:03:21 +000029064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29065$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029066 fi
29067fi
cristy73bd4a52010-10-05 11:24:23 +000029068 if test "$have_gslib" = 'yes'; then
29069 GS_DELEGATE_TRUE=
29070 GS_DELEGATE_FALSE='#'
29071else
29072 GS_DELEGATE_TRUE='#'
29073 GS_DELEGATE_FALSE=
29074fi
29075
cristy3ed852e2009-09-05 21:47:34 +000029076
29077
29078# Set default font search path
29079
29080# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029081if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029082 withval=$with_fontpath; with_fontpath=$withval
29083else
29084 with_fontpath=''
29085fi
29086
29087
29088if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29089 with_fontpath=''
29090else
29091
29092cat >>confdefs.h <<_ACEOF
29093#define MAGICK_FONT_PATH "$with_fontpath"
29094_ACEOF
29095
29096fi
29097if test "$with_fontpath=" != ''; then
29098 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29099fi
29100
29101# Set Ghostscript font directory
29102
29103# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029104if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029105 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29106else
29107 with_gs_font_dir='default'
29108fi
29109
29110
29111if test "$with_gs_font_dir" != 'default'; then
29112 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29113fi
29114
29115
29116#
29117# Check for GVC delegate library.
29118#
29119
29120# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029121if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029122 withval=$with_gvc; with_gvc=$withval
29123else
cristy1b70dc82012-07-01 23:15:05 +000029124 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029125fi
29126
29127
29128if test "$with_gvc" != 'yes'; then
29129 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29130fi
29131
29132GVC_PKG=""
29133if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29135$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029136
29137pkg_failed=no
29138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29139$as_echo_n "checking for GVC... " >&6; }
29140
29141if test -n "$GVC_CFLAGS"; then
29142 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29143 elif test -n "$PKG_CONFIG"; then
29144 if test -n "$PKG_CONFIG" && \
29145 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29146 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29147 ac_status=$?
29148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29149 test $ac_status = 0; }; then
29150 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29151else
29152 pkg_failed=yes
29153fi
29154 else
29155 pkg_failed=untried
29156fi
29157if test -n "$GVC_LIBS"; then
29158 pkg_cv_GVC_LIBS="$GVC_LIBS"
29159 elif test -n "$PKG_CONFIG"; then
29160 if test -n "$PKG_CONFIG" && \
29161 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29162 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29163 ac_status=$?
29164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29165 test $ac_status = 0; }; then
29166 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29167else
29168 pkg_failed=yes
29169fi
29170 else
29171 pkg_failed=untried
29172fi
29173
29174
29175
29176if test $pkg_failed = yes; then
29177
29178if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29179 _pkg_short_errors_supported=yes
29180else
29181 _pkg_short_errors_supported=no
29182fi
29183 if test $_pkg_short_errors_supported = yes; then
29184 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29185 else
29186 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29187 fi
29188 # Put the nasty error message in config.log where it belongs
29189 echo "$GVC_PKG_ERRORS" >&5
29190
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29192$as_echo "no" >&6; }
29193 have_gvc=no
29194elif test $pkg_failed = untried; then
29195 have_gvc=no
29196else
29197 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29198 GVC_LIBS=$pkg_cv_GVC_LIBS
29199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29200$as_echo "yes" >&6; }
29201 have_gvc=yes
29202fi
cristyad38abe2012-12-23 23:03:21 +000029203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29204$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029205fi
29206
29207if test "$have_gvc" = 'yes'; then
29208
cristy8b350f62009-11-15 23:12:43 +000029209$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029210
cristyc6722092012-10-14 00:19:31 +000029211 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029212 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29213 fi
29214fi
29215
cristy73bd4a52010-10-05 11:24:23 +000029216 if test "$have_gvc" = 'yes'; then
29217 GVC_DELEGATE_TRUE=
29218 GVC_DELEGATE_FALSE='#'
29219else
29220 GVC_DELEGATE_TRUE='#'
29221 GVC_DELEGATE_FALSE=
29222fi
29223
cristy3ed852e2009-09-05 21:47:34 +000029224
29225
29226
29227
29228#
29229# Check for JBIG delegate library.
29230#
29231
29232
29233# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029234if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029235 withval=$with_jbig; with_jbig=$withval
29236else
29237 with_jbig='yes'
29238fi
29239
29240
29241have_jbig='no'
29242JBIG_LIBS=''
29243if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29245$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029247$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29249$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029250 failed=0
29251 passed=0
cristy8b350f62009-11-15 23:12:43 +000029252 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029253if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029254 passed=`expr $passed + 1`
29255else
29256 failed=`expr $failed + 1`
29257fi
29258
29259
cristy8b350f62009-11-15 23:12:43 +000029260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029261$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029262if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029263 $as_echo_n "(cached) " >&6
29264else
29265 ac_check_lib_save_LIBS=$LIBS
29266LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029268/* end confdefs.h. */
29269
29270/* Override any GCC internal prototype to avoid an error.
29271 Use char because int might match the return type of a GCC
29272 builtin and then its argument prototype would still apply. */
29273#ifdef __cplusplus
29274extern "C"
29275#endif
29276char jbg_dec_init ();
29277int
29278main ()
29279{
29280return jbg_dec_init ();
29281 ;
29282 return 0;
29283}
29284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029285if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029286 ac_cv_lib_jbig_jbg_dec_init=yes
29287else
cristy8b350f62009-11-15 23:12:43 +000029288 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029289fi
cristy8b350f62009-11-15 23:12:43 +000029290rm -f core conftest.err conftest.$ac_objext \
29291 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029292LIBS=$ac_check_lib_save_LIBS
29293fi
cristy8b350f62009-11-15 23:12:43 +000029294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029295$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029296if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029297 passed=`expr $passed + 1`
29298else
29299 failed=`expr $failed + 1`
29300fi
29301
cristy8b350f62009-11-15 23:12:43 +000029302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029303$as_echo_n "checking if JBIG package is complete... " >&6; }
29304 if test $passed -gt 0; then
29305 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29307$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029308 have_jbig='no (failed tests)'
29309 else
29310 JBIG_LIBS='-ljbig'
29311 LIBS="$JBIG_LIBS $LIBS"
29312
cristy8b350f62009-11-15 23:12:43 +000029313$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029314
cristyad38abe2012-12-23 23:03:21 +000029315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29316$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029317 have_jbig='yes'
29318 fi
29319 else
cristyad38abe2012-12-23 23:03:21 +000029320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29321$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029322 fi
29323fi
cristy73bd4a52010-10-05 11:24:23 +000029324 if test "$have_jbig" = 'yes'; then
29325 JBIG_DELEGATE_TRUE=
29326 JBIG_DELEGATE_FALSE='#'
29327else
29328 JBIG_DELEGATE_TRUE='#'
29329 JBIG_DELEGATE_FALSE=
29330fi
29331
cristy3ed852e2009-09-05 21:47:34 +000029332
29333
29334
29335#
29336# Check for JPEG delegate library.
29337#
29338
29339# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029340if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029341 withval=$with_jpeg; with_jpeg=$withval
29342else
29343 with_jpeg='yes'
29344fi
29345
29346
29347if test "$with_jpeg" != 'yes'; then
29348 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29349fi
29350
29351have_jpeg='no'
29352JPEG_LIBS=''
29353if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29355$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029357$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29359$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029360 failed=0
29361 passed=0
cristy8b350f62009-11-15 23:12:43 +000029362 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029363if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029364 passed=`expr $passed + 1`
29365else
29366 failed=`expr $failed + 1`
29367fi
29368
29369
cristy8b350f62009-11-15 23:12:43 +000029370 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029371if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029372 passed=`expr $passed + 1`
29373else
29374 failed=`expr $failed + 1`
29375fi
29376
29377
cristy8b350f62009-11-15 23:12:43 +000029378 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029379if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029380 passed=`expr $passed + 1`
29381else
29382 failed=`expr $failed + 1`
29383fi
29384
29385
cristy8b350f62009-11-15 23:12:43 +000029386 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029387if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029388 passed=`expr $passed + 1`
29389else
29390 failed=`expr $failed + 1`
29391fi
29392
29393
cristy8b350f62009-11-15 23:12:43 +000029394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029395$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029396if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029397 $as_echo_n "(cached) " >&6
29398else
29399 ac_check_lib_save_LIBS=$LIBS
29400LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029402/* end confdefs.h. */
29403
29404/* Override any GCC internal prototype to avoid an error.
29405 Use char because int might match the return type of a GCC
29406 builtin and then its argument prototype would still apply. */
29407#ifdef __cplusplus
29408extern "C"
29409#endif
29410char jpeg_read_header ();
29411int
29412main ()
29413{
29414return jpeg_read_header ();
29415 ;
29416 return 0;
29417}
29418_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029419if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029420 ac_cv_lib_jpeg_jpeg_read_header=yes
29421else
cristy8b350f62009-11-15 23:12:43 +000029422 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029423fi
cristy8b350f62009-11-15 23:12:43 +000029424rm -f core conftest.err conftest.$ac_objext \
29425 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029426LIBS=$ac_check_lib_save_LIBS
29427fi
cristy8b350f62009-11-15 23:12:43 +000029428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029429$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029430if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029431 passed=`expr $passed + 1`
29432else
29433 failed=`expr $failed + 1`
29434fi
29435
29436
29437# Test for compatible JPEG library
29438if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029440$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029441if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029442 $as_echo_n "(cached) " >&6
29443else
cristy8b350f62009-11-15 23:12:43 +000029444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029445/* end confdefs.h. */
29446#include <stdio.h>
29447#include <stdlib.h>
29448#include <jpeglib.h>
29449
29450int
29451main ()
29452{
29453
29454#if JPEG_LIB_VERSION < 62
29455#error IJG JPEG library must be version 6b or newer!
29456#endif
29457return 0;
29458
29459 ;
29460 return 0;
29461}
29462_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029463if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029464 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29465else
cristy8b350f62009-11-15 23:12:43 +000029466 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029467fi
cristy3ed852e2009-09-05 21:47:34 +000029468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29469fi
cristy8b350f62009-11-15 23:12:43 +000029470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029471$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29472fi
cristy8b350f62009-11-15 23:12:43 +000029473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029474$as_echo_n "checking if JPEG package is complete... " >&6; }
29475 if test $passed -gt 0; then
29476 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29478$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029479 have_jpeg='no (failed tests)'
29480 else
29481 JPEG_LIBS='-ljpeg'
29482 LIBS="$JPEG_LIBS $LIBS"
29483
cristy8b350f62009-11-15 23:12:43 +000029484$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029485
cristyad38abe2012-12-23 23:03:21 +000029486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29487$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029488 have_jpeg='yes'
29489 fi
29490 else
cristyad38abe2012-12-23 23:03:21 +000029491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29492$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029493 fi
29494fi
cristy73bd4a52010-10-05 11:24:23 +000029495 if test "$have_jpeg" = 'yes'; then
29496 JPEG_DELEGATE_TRUE=
29497 JPEG_DELEGATE_FALSE='#'
29498else
29499 JPEG_DELEGATE_TRUE='#'
29500 JPEG_DELEGATE_FALSE=
29501fi
29502
cristy3ed852e2009-09-05 21:47:34 +000029503
29504
29505
29506#
29507# Check for JPEG Version 2 delegate library.
29508#
29509
29510# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029511if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029512 withval=$with_jp2; with_jp2=$withval
29513else
29514 with_jp2='yes'
29515fi
29516
29517
29518if test "$with_jp2" != 'yes'; then
29519 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29520fi
29521
29522have_jp2='no'
29523JP2_LIBS=''
29524if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29526$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029528$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29530$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029531 failed=0
29532 passed=0
cristy8b350f62009-11-15 23:12:43 +000029533 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 +000029534if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029535 passed=`expr $passed + 1`
29536else
29537 failed=`expr $failed + 1`
29538fi
29539
29540
cristy8b350f62009-11-15 23:12:43 +000029541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029542$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029543if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029544 $as_echo_n "(cached) " >&6
29545else
29546 ac_check_lib_save_LIBS=$LIBS
29547LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029549/* end confdefs.h. */
29550
29551/* Override any GCC internal prototype to avoid an error.
29552 Use char because int might match the return type of a GCC
29553 builtin and then its argument prototype would still apply. */
29554#ifdef __cplusplus
29555extern "C"
29556#endif
29557char jas_stream_fopen ();
29558int
29559main ()
29560{
29561return jas_stream_fopen ();
29562 ;
29563 return 0;
29564}
29565_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029566if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029567 ac_cv_lib_jasper_jas_stream_fopen=yes
29568else
cristy8b350f62009-11-15 23:12:43 +000029569 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029570fi
cristy8b350f62009-11-15 23:12:43 +000029571rm -f core conftest.err conftest.$ac_objext \
29572 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029573LIBS=$ac_check_lib_save_LIBS
29574fi
cristy8b350f62009-11-15 23:12:43 +000029575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029576$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029577if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029578 passed=`expr $passed + 1`
29579else
29580 failed=`expr $failed + 1`
29581fi
29582
cristy8b350f62009-11-15 23:12:43 +000029583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029584$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29585 if test $passed -gt 0; then
29586 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29588$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029589 have_jp2='no (failed tests)'
29590 else
29591 JP2_LIBS='-ljasper'
29592 LIBS="$JP2_LIBS $LIBS"
29593
cristy8b350f62009-11-15 23:12:43 +000029594$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029595
cristyad38abe2012-12-23 23:03:21 +000029596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29597$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029598 have_jp2='yes'
29599 fi
29600 else
cristyad38abe2012-12-23 23:03:21 +000029601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29602$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029603 fi
29604fi
cristy73bd4a52010-10-05 11:24:23 +000029605 if test "$have_jp2" = 'yes'; then
29606 JP2_DELEGATE_TRUE=
29607 JP2_DELEGATE_FALSE='#'
29608else
29609 JP2_DELEGATE_TRUE='#'
29610 JP2_DELEGATE_FALSE=
29611fi
29612
cristy3ed852e2009-09-05 21:47:34 +000029613
29614
29615
29616#
29617# Check for LCMS delegate library.
29618#
cristy71203402010-06-18 13:12:03 +000029619# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029620
29621# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029622if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029623 withval=$with_lcms; with_lcms=$withval
29624else
29625 with_lcms='yes'
29626fi
29627
cristy71203402010-06-18 13:12:03 +000029628if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029629 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29630fi
29631
cristy71203402010-06-18 13:12:03 +000029632# Disable LCMS2.
29633
29634# Check whether --with-lcms2 was given.
29635if test "${with_lcms2+set}" = set; then :
29636 withval=$with_lcms2; with_lcms2=$withval
29637else
29638 with_lcms2='yes'
29639fi
29640
29641if test "$with_lcms2" != 'yes' ; then
29642 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29643fi
29644
29645have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029646LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029647if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29649$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29651$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29653$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029654 failed=0
29655 passed=0
29656 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029657
29658 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029659 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029660if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029661 have_lcms_header='yes'
29662fi
29663
29664
29665 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029666
29667$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29668
cristy71203402010-06-18 13:12:03 +000029669 passed=`expr $passed + 1`
29670 fi
29671
29672 # Check for <lcms2/lcms2.h)
29673 if test "$have_lcms_header" != 'yes'; then
29674 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 +000029675if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029676 have_lcms_header='yes'
29677fi
29678
29679
cristy71203402010-06-18 13:12:03 +000029680 if test "$have_lcms_header" = 'yes'; then
29681 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029682
cristy71203402010-06-18 13:12:03 +000029683$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029684
cristy71203402010-06-18 13:12:03 +000029685 fi
cristyd09bcf92010-03-25 03:04:45 +000029686 fi
cristy71203402010-06-18 13:12:03 +000029687
29688 # Failed to find lcms header?
29689 if test "$have_lcms_header" != 'yes'; then
29690 failed=`expr $failed + 1`
29691 fi
29692
29693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29694$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029695if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029696 $as_echo_n "(cached) " >&6
29697else
29698 ac_check_lib_save_LIBS=$LIBS
29699LIBS="-llcms2 $LIBS"
29700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29701/* end confdefs.h. */
29702
29703/* Override any GCC internal prototype to avoid an error.
29704 Use char because int might match the return type of a GCC
29705 builtin and then its argument prototype would still apply. */
29706#ifdef __cplusplus
29707extern "C"
29708#endif
cristy71203402010-06-18 13:12:03 +000029709char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029710int
29711main ()
29712{
cristy71203402010-06-18 13:12:03 +000029713return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029714 ;
29715 return 0;
29716}
29717_ACEOF
29718if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029719 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029720else
cristy71203402010-06-18 13:12:03 +000029721 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029722fi
29723rm -f core conftest.err conftest.$ac_objext \
29724 conftest$ac_exeext conftest.$ac_ext
29725LIBS=$ac_check_lib_save_LIBS
29726fi
cristy71203402010-06-18 13:12:03 +000029727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29728$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029729if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029730 passed=`expr $passed + 1`
29731else
29732 failed=`expr $failed + 1`
29733fi
29734
cristy71203402010-06-18 13:12:03 +000029735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29736$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029737 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029738 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29740$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029741 have_lcms2='no (failed tests)'
29742 else
29743 LCMS_LIBS='-llcms2'
29744 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29746$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029747 have_lcms2='yes'
29748 fi
cristyd09bcf92010-03-25 03:04:45 +000029749 else
cristyad38abe2012-12-23 23:03:21 +000029750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29751$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029752 fi
29753fi
29754
cristy71203402010-06-18 13:12:03 +000029755#
29756# Check for LCMS v1 (1.11 or later)
29757#
29758if test $have_lcms2 = 'yes'; then
29759 with_lcms='no'
29760fi
29761
29762have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029763if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29765$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29767$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29769$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029770 failed=0
29771 passed=0
29772 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029773
29774 # Check for <lcms.h>
29775 if test "$have_lcms_header" != 'yes'; then
29776 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029777if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029778 have_lcms_header='yes'
29779fi
29780
29781
cristy71203402010-06-18 13:12:03 +000029782 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029783 passed=`expr $passed + 1`
29784
cristy8b350f62009-11-15 23:12:43 +000029785$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029786
cristy71203402010-06-18 13:12:03 +000029787 fi
29788 fi
29789
29790 # Check for <lcms/lcms.h>
29791 if test "$have_lcms_header" != 'yes'; then
29792 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 +000029793if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029794 have_lcms_header='yes'
29795fi
29796
29797
cristy71203402010-06-18 13:12:03 +000029798 if test "$have_lcms_header" = 'yes'; then
29799 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029800
cristy8b350f62009-11-15 23:12:43 +000029801$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029802
cristy71203402010-06-18 13:12:03 +000029803 fi
cristy3ed852e2009-09-05 21:47:34 +000029804 fi
cristy71203402010-06-18 13:12:03 +000029805
29806 # Failed to find lcms header?
29807 if test "$have_lcms_header" != 'yes'; then
29808 failed=`expr $failed + 1`
29809 fi
29810
29811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29812$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029813if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029814 $as_echo_n "(cached) " >&6
29815else
29816 ac_check_lib_save_LIBS=$LIBS
29817LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029819/* end confdefs.h. */
29820
29821/* Override any GCC internal prototype to avoid an error.
29822 Use char because int might match the return type of a GCC
29823 builtin and then its argument prototype would still apply. */
29824#ifdef __cplusplus
29825extern "C"
29826#endif
cristy71203402010-06-18 13:12:03 +000029827char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029828int
29829main ()
29830{
cristy71203402010-06-18 13:12:03 +000029831return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029832 ;
29833 return 0;
29834}
29835_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029836if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029837 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029838else
cristy71203402010-06-18 13:12:03 +000029839 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029840fi
cristy8b350f62009-11-15 23:12:43 +000029841rm -f core conftest.err conftest.$ac_objext \
29842 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029843LIBS=$ac_check_lib_save_LIBS
29844fi
cristy71203402010-06-18 13:12:03 +000029845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29846$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029847if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029848 passed=`expr $passed + 1`
29849else
29850 failed=`expr $failed + 1`
29851fi
29852
cristy8b350f62009-11-15 23:12:43 +000029853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029854$as_echo_n "checking if LCMS package is complete... " >&6; }
29855 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029856 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29858$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029859 have_lcms='no (failed tests)'
29860 else
29861 LCMS_LIBS='-llcms'
29862 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29864$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029865 have_lcms='yes'
29866 fi
cristy3ed852e2009-09-05 21:47:34 +000029867 else
cristyad38abe2012-12-23 23:03:21 +000029868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29869$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029870 fi
29871fi
cristy71203402010-06-18 13:12:03 +000029872
cristy73bd4a52010-10-05 11:24:23 +000029873 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29874 LCMS_DELEGATE_TRUE=
29875 LCMS_DELEGATE_FALSE='#'
29876else
29877 LCMS_DELEGATE_TRUE='#'
29878 LCMS_DELEGATE_FALSE=
29879fi
29880
cristy71203402010-06-18 13:12:03 +000029881if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29882
29883$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29884
29885fi
29886
cristy3ed852e2009-09-05 21:47:34 +000029887
29888
29889
29890#
29891# Check for the LQR (Liquid Rescale) delegate library.
29892#
29893
29894# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029895if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029896 withval=$with_lqr; with_lqr=$withval
29897else
29898 with_lqr='yes'
29899fi
29900
29901
29902if test "$with_lqr" != 'yes'; then
29903 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29904fi
29905
29906have_lqr='no'
29907LQR_CFLAGS=""
29908LQR_LIBS=""
29909LQR_PKG=""
29910if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29912$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029913
29914pkg_failed=no
29915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29916$as_echo_n "checking for LQR... " >&6; }
29917
29918if test -n "$LQR_CFLAGS"; then
29919 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29920 elif test -n "$PKG_CONFIG"; then
29921 if test -n "$PKG_CONFIG" && \
29922 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29923 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29924 ac_status=$?
29925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29926 test $ac_status = 0; }; then
29927 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29928else
29929 pkg_failed=yes
29930fi
29931 else
29932 pkg_failed=untried
29933fi
29934if test -n "$LQR_LIBS"; then
29935 pkg_cv_LQR_LIBS="$LQR_LIBS"
29936 elif test -n "$PKG_CONFIG"; then
29937 if test -n "$PKG_CONFIG" && \
29938 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29939 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29940 ac_status=$?
29941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29942 test $ac_status = 0; }; then
29943 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29944else
29945 pkg_failed=yes
29946fi
29947 else
29948 pkg_failed=untried
29949fi
29950
29951
29952
29953if test $pkg_failed = yes; then
29954
29955if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29956 _pkg_short_errors_supported=yes
29957else
29958 _pkg_short_errors_supported=no
29959fi
29960 if test $_pkg_short_errors_supported = yes; then
29961 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29962 else
29963 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29964 fi
29965 # Put the nasty error message in config.log where it belongs
29966 echo "$LQR_PKG_ERRORS" >&5
29967
29968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29969$as_echo "no" >&6; }
29970 have_lqr=no
29971elif test $pkg_failed = untried; then
29972 have_lqr=no
29973else
29974 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29975 LQR_LIBS=$pkg_cv_LQR_LIBS
29976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29977$as_echo "yes" >&6; }
29978 have_lqr=yes
29979fi
cristyad38abe2012-12-23 23:03:21 +000029980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29981$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029982fi
29983
29984if test "$have_lqr" = 'yes'; then
29985
cristy8b350f62009-11-15 23:12:43 +000029986$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029987
29988 CFLAGS="$LQR_CFLAGS $CFLAGS"
29989fi
29990
cristy73bd4a52010-10-05 11:24:23 +000029991 if test "$have_lqr" = 'yes'; then
29992 LQR_DELEGATE_TRUE=
29993 LQR_DELEGATE_FALSE='#'
29994else
29995 LQR_DELEGATE_TRUE='#'
29996 LQR_DELEGATE_FALSE=
29997fi
29998
cristy3ed852e2009-09-05 21:47:34 +000029999
30000
30001
30002
cristy81beccd2011-10-03 18:17:24 +000030003# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030004
30005# Check whether --with-lzma was given.
30006if test "${with_lzma+set}" = set; then :
30007 withval=$with_lzma; with_lzma=$withval
30008else
30009 with_lzma='yes'
30010fi
30011
cristy81beccd2011-10-03 18:17:24 +000030012if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030013 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30014fi
30015
cristyb94e5002011-11-14 13:20:10 +000030016LZMA_PKG=""
30017if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30019$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030020
30021pkg_failed=no
30022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030023$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030024
30025if test -n "$LZMA_CFLAGS"; then
30026 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30027 elif test -n "$PKG_CONFIG"; then
30028 if test -n "$PKG_CONFIG" && \
30029 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30030 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30031 ac_status=$?
30032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30033 test $ac_status = 0; }; then
30034 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30035else
30036 pkg_failed=yes
30037fi
30038 else
30039 pkg_failed=untried
30040fi
30041if test -n "$LZMA_LIBS"; then
30042 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30043 elif test -n "$PKG_CONFIG"; then
30044 if test -n "$PKG_CONFIG" && \
30045 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30046 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30047 ac_status=$?
30048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30049 test $ac_status = 0; }; then
30050 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30051else
30052 pkg_failed=yes
30053fi
30054 else
30055 pkg_failed=untried
30056fi
30057
30058
30059
30060if test $pkg_failed = yes; then
30061
30062if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30063 _pkg_short_errors_supported=yes
30064else
30065 _pkg_short_errors_supported=no
30066fi
30067 if test $_pkg_short_errors_supported = yes; then
30068 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30069 else
30070 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30071 fi
30072 # Put the nasty error message in config.log where it belongs
30073 echo "$LZMA_PKG_ERRORS" >&5
30074
30075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30076$as_echo "no" >&6; }
30077 have_lzma=no
30078elif test $pkg_failed = untried; then
30079 have_lzma=no
30080else
30081 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30082 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30084$as_echo "yes" >&6; }
30085 have_lzma=yes
30086fi
cristyad38abe2012-12-23 23:03:21 +000030087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30088$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030089fi
30090
cristyb94e5002011-11-14 13:20:10 +000030091if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030092
30093$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30094
cristyc6722092012-10-14 00:19:31 +000030095 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030096 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030097 fi
cristyfbb0ef02010-12-19 02:32:11 +000030098fi
cristyb94e5002011-11-14 13:20:10 +000030099
cristyfbb0ef02010-12-19 02:32:11 +000030100 if test "$have_lzma" = 'yes'; then
30101 LZMA_DELEGATE_TRUE=
30102 LZMA_DELEGATE_FALSE='#'
30103else
30104 LZMA_DELEGATE_TRUE='#'
30105 LZMA_DELEGATE_FALSE=
30106fi
30107
30108
30109
30110
cristyb94e5002011-11-14 13:20:10 +000030111
cristy3ed852e2009-09-05 21:47:34 +000030112#
30113# Check for the OpenEXR delegate library.
30114#
30115
30116# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030117if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030118 withval=$with_openexr; with_openexr=$withval
30119else
30120 with_openexr='yes'
30121fi
30122
30123
30124if test "$with_openexr" != 'yes'; then
30125 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30126fi
30127
30128have_openexr='no'
30129OPENEXR_CFLAGS=""
30130OPENEXR_LIBS=""
30131OPENEXR_PKG=""
30132if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30134$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030135
30136pkg_failed=no
30137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30138$as_echo_n "checking for OPENEXR... " >&6; }
30139
30140if test -n "$OPENEXR_CFLAGS"; then
30141 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30142 elif test -n "$PKG_CONFIG"; then
30143 if test -n "$PKG_CONFIG" && \
30144 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30145 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30146 ac_status=$?
30147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30148 test $ac_status = 0; }; then
30149 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30150else
30151 pkg_failed=yes
30152fi
30153 else
30154 pkg_failed=untried
30155fi
30156if test -n "$OPENEXR_LIBS"; then
30157 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30158 elif test -n "$PKG_CONFIG"; then
30159 if test -n "$PKG_CONFIG" && \
30160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30161 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30162 ac_status=$?
30163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30164 test $ac_status = 0; }; then
30165 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30166else
30167 pkg_failed=yes
30168fi
30169 else
30170 pkg_failed=untried
30171fi
30172
30173
30174
30175if test $pkg_failed = yes; then
30176
30177if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30178 _pkg_short_errors_supported=yes
30179else
30180 _pkg_short_errors_supported=no
30181fi
30182 if test $_pkg_short_errors_supported = yes; then
30183 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30184 else
30185 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30186 fi
30187 # Put the nasty error message in config.log where it belongs
30188 echo "$OPENEXR_PKG_ERRORS" >&5
30189
30190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30191$as_echo "no" >&6; }
30192 have_openexr=no
30193elif test $pkg_failed = untried; then
30194 have_openexr=no
30195else
30196 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30197 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30199$as_echo "yes" >&6; }
30200 have_openexr=yes
30201fi
cristyad38abe2012-12-23 23:03:21 +000030202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30203$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030204fi
30205
30206if test "$have_openexr" = 'yes'; then
30207
cristy8b350f62009-11-15 23:12:43 +000030208$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030209
cristyc6722092012-10-14 00:19:31 +000030210 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030211 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30212 fi
30213fi
30214
cristy73bd4a52010-10-05 11:24:23 +000030215 if test "$have_openexr" = 'yes'; then
30216 OPENEXR_DELEGATE_TRUE=
30217 OPENEXR_DELEGATE_FALSE='#'
30218else
30219 OPENEXR_DELEGATE_TRUE='#'
30220 OPENEXR_DELEGATE_FALSE=
30221fi
30222
cristy3ed852e2009-09-05 21:47:34 +000030223
30224
30225
30226
30227#
cristy41cbe8a2011-10-27 01:35:18 +000030228# Check for PANGO delegate library.
30229#
30230
30231# Check whether --with-pango was given.
30232if test "${with_pango+set}" = set; then :
30233 withval=$with_pango; with_pango=$withval
30234else
cristyfc3d0222012-02-07 15:05:57 +000030235 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030236fi
30237
30238
30239if test "$with_pango" != 'yes'; then
30240 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30241fi
30242
30243have_pango='no'
cristya054b762012-03-26 23:16:00 +000030244have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030245PANGO_CFLAGS=""
30246PANGO_LIBS=""
30247PANGO_PKG=""
30248if test "x$with_pango" = "xyes"; then
30249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30250$as_echo "-------------------------------------------------------------" >&6; }
30251
30252pkg_failed=no
30253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30254$as_echo_n "checking for PANGO... " >&6; }
30255
30256if test -n "$PANGO_CFLAGS"; then
30257 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30258 elif test -n "$PKG_CONFIG"; then
30259 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30261 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030262 ac_status=$?
30263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30264 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030265 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030266else
30267 pkg_failed=yes
30268fi
30269 else
30270 pkg_failed=untried
30271fi
30272if test -n "$PANGO_LIBS"; then
30273 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30274 elif test -n "$PKG_CONFIG"; then
30275 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030276 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30277 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030278 ac_status=$?
30279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30280 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030281 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030282else
30283 pkg_failed=yes
30284fi
30285 else
30286 pkg_failed=untried
30287fi
30288
30289
30290
30291if test $pkg_failed = yes; then
30292
30293if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30294 _pkg_short_errors_supported=yes
30295else
30296 _pkg_short_errors_supported=no
30297fi
30298 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030299 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030300 else
cristya054b762012-03-26 23:16:00 +000030301 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030302 fi
30303 # Put the nasty error message in config.log where it belongs
30304 echo "$PANGO_PKG_ERRORS" >&5
30305
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30307$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030308 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030309elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030310 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030311else
30312 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30313 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30315$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030316 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030317fi
30318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30319$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030320
30321pkg_failed=no
30322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30323$as_echo_n "checking for PANGO... " >&6; }
30324
30325if test -n "$PANGO_CFLAGS"; then
30326 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30327 elif test -n "$PKG_CONFIG"; then
30328 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030329 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30330 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030331 ac_status=$?
30332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30333 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030334 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030335else
30336 pkg_failed=yes
30337fi
30338 else
30339 pkg_failed=untried
30340fi
30341if test -n "$PANGO_LIBS"; then
30342 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30343 elif test -n "$PKG_CONFIG"; then
30344 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030345 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30346 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030347 ac_status=$?
30348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30349 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030350 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030351else
30352 pkg_failed=yes
30353fi
30354 else
30355 pkg_failed=untried
30356fi
30357
30358
30359
30360if test $pkg_failed = yes; then
30361
30362if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30363 _pkg_short_errors_supported=yes
30364else
30365 _pkg_short_errors_supported=no
30366fi
30367 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030368 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030369 else
cristy2542fc62011-12-06 17:50:25 +000030370 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030371 fi
30372 # Put the nasty error message in config.log where it belongs
30373 echo "$PANGO_PKG_ERRORS" >&5
30374
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30376$as_echo "no" >&6; }
30377 have_pango=no
30378elif test $pkg_failed = untried; then
30379 have_pango=no
30380else
30381 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30382 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30384$as_echo "yes" >&6; }
30385 have_pango=yes
30386fi
30387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30388$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030389fi
30390
30391if test "$have_pango" = 'yes'; then
30392
30393$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30394
cristyc6722092012-10-14 00:19:31 +000030395 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030396 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30397 fi
30398fi
30399
cristya054b762012-03-26 23:16:00 +000030400if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030401
cristya054b762012-03-26 23:16:00 +000030402$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030403
cristyc6722092012-10-14 00:19:31 +000030404 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030405 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030406 fi
30407fi
30408
30409 if test "$have_pango" = 'yes'; then
30410 PANGO_DELEGATE_TRUE=
30411 PANGO_DELEGATE_FALSE='#'
30412else
30413 PANGO_DELEGATE_TRUE='#'
30414 PANGO_DELEGATE_FALSE=
30415fi
30416
cristya054b762012-03-26 23:16:00 +000030417 if test "$have_pangocairo" = 'yes'; then
30418 PANGOCAIRO_DELEGATE_TRUE=
30419 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030420else
cristya054b762012-03-26 23:16:00 +000030421 PANGOCAIRO_DELEGATE_TRUE='#'
30422 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030423fi
30424
30425
30426
30427
30428
30429#
cristy3ed852e2009-09-05 21:47:34 +000030430# Check for PNG delegate library.
30431#
30432
30433# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030434if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030435 withval=$with_png; with_png=$withval
30436else
30437 with_png='yes'
30438fi
30439
30440
30441if test "$with_png" != 'yes'; then
30442 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30443fi
30444
cristy81beccd2011-10-03 18:17:24 +000030445have_png='no'
30446PNG_LIBS=''
30447
30448if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30450$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30452$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30454$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030455 failed=0
30456 passed=0
30457 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30458if test "x$ac_cv_header_png_h" = xyes; then :
30459 passed=`expr $passed + 1`
30460else
30461 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030462fi
30463
cristy81beccd2011-10-03 18:17:24 +000030464
30465
30466 if test $passed -gt 0; then
30467 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030468 if test "$have_png" = 'no' ; then
30469 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030470 pnglib='png'
30471 else
30472 pnglib="png1${var}"
30473 fi
30474
30475# Test for compatible LIBPNG library
30476 failed=0
30477 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030478 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030479 if test "${pnglib}" != 'png' ; then
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30481$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30483/* end confdefs.h. */
30484#include <stdio.h>
30485#include <stdlib.h>
30486#include <png.h>
30487
30488int
30489main ()
30490{
30491
30492#if PNG_LIBPNG_VER_MINOR != ${var}
30493#error LIBPNG library must be version 1${var}!
30494Kaboom, Kaboom
30495#endif
30496return 0;
30497
30498 ;
30499 return 0;
30500}
30501_ACEOF
30502if ac_fn_c_try_compile "$LINENO"; then :
30503 ac_cv_libpng_ok='yes'
30504else
30505 ac_cv_libpng_ok='no'
30506fi
30507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30508 if test "$ac_cv_libpng_ok" = 'yes' ; then
30509 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30511$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030512 else
30513 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30515$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030516 fi
30517 else
30518 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30520$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030521 fi
30522 fi
30523
30524 if test $passed -gt 0 -a $failed -le 0; then
30525 if test "1${var}" = '15' ; then
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30527$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30528if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30529 $as_echo_n "(cached) " >&6
30530else
30531 ac_check_lib_save_LIBS=$LIBS
30532LIBS="-lpng15 $LIBS"
30533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30534/* end confdefs.h. */
30535
30536/* Override any GCC internal prototype to avoid an error.
30537 Use char because int might match the return type of a GCC
30538 builtin and then its argument prototype would still apply. */
30539#ifdef __cplusplus
30540extern "C"
30541#endif
30542char png_get_io_ptr ();
30543int
30544main ()
30545{
30546return png_get_io_ptr ();
30547 ;
30548 return 0;
30549}
30550_ACEOF
30551if ac_fn_c_try_link "$LINENO"; then :
30552 ac_cv_lib_png15_png_get_io_ptr=yes
30553else
30554 ac_cv_lib_png15_png_get_io_ptr=no
30555fi
30556rm -f core conftest.err conftest.$ac_objext \
30557 conftest$ac_exeext conftest.$ac_ext
30558LIBS=$ac_check_lib_save_LIBS
30559fi
30560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30561$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30562if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30563 passed=`expr $passed + 1`
30564else
30565 failed=`expr $failed + 1`
30566fi
30567
30568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30569$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30570if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30571 $as_echo_n "(cached) " >&6
30572else
30573 ac_check_lib_save_LIBS=$LIBS
30574LIBS="-lpng15 $LIBS"
30575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30576/* end confdefs.h. */
30577
30578/* Override any GCC internal prototype to avoid an error.
30579 Use char because int might match the return type of a GCC
30580 builtin and then its argument prototype would still apply. */
30581#ifdef __cplusplus
30582extern "C"
30583#endif
30584char png_longjmp ();
30585int
30586main ()
30587{
30588return png_longjmp ();
30589 ;
30590 return 0;
30591}
30592_ACEOF
30593if ac_fn_c_try_link "$LINENO"; then :
30594 ac_cv_lib_png15_png_longjmp=yes
30595else
30596 ac_cv_lib_png15_png_longjmp=no
30597fi
30598rm -f core conftest.err conftest.$ac_objext \
30599 conftest$ac_exeext conftest.$ac_ext
30600LIBS=$ac_check_lib_save_LIBS
30601fi
30602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30603$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30604if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30605 passed=`expr $passed + 1`
30606else
30607 failed=`expr $failed + 1`
30608fi
30609
30610 fi
30611 if test "1${var}" = '14' ; then
30612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30613$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30614if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30615 $as_echo_n "(cached) " >&6
30616else
30617 ac_check_lib_save_LIBS=$LIBS
30618LIBS="-lpng14 $LIBS"
30619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30620/* end confdefs.h. */
30621
30622/* Override any GCC internal prototype to avoid an error.
30623 Use char because int might match the return type of a GCC
30624 builtin and then its argument prototype would still apply. */
30625#ifdef __cplusplus
30626extern "C"
30627#endif
30628char png_get_io_ptr ();
30629int
30630main ()
30631{
30632return png_get_io_ptr ();
30633 ;
30634 return 0;
30635}
30636_ACEOF
30637if ac_fn_c_try_link "$LINENO"; then :
30638 ac_cv_lib_png14_png_get_io_ptr=yes
30639else
30640 ac_cv_lib_png14_png_get_io_ptr=no
30641fi
30642rm -f core conftest.err conftest.$ac_objext \
30643 conftest$ac_exeext conftest.$ac_ext
30644LIBS=$ac_check_lib_save_LIBS
30645fi
30646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30647$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30648if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30649 passed=`expr $passed + 1`
30650else
30651 failed=`expr $failed + 1`
30652fi
30653
30654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30655$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30656if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30657 $as_echo_n "(cached) " >&6
30658else
30659 ac_check_lib_save_LIBS=$LIBS
30660LIBS="-lpng14 $LIBS"
30661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30662/* end confdefs.h. */
30663
30664/* Override any GCC internal prototype to avoid an error.
30665 Use char because int might match the return type of a GCC
30666 builtin and then its argument prototype would still apply. */
30667#ifdef __cplusplus
30668extern "C"
30669#endif
30670char png_get_io_state ();
30671int
30672main ()
30673{
30674return png_get_io_state ();
30675 ;
30676 return 0;
30677}
30678_ACEOF
30679if ac_fn_c_try_link "$LINENO"; then :
30680 ac_cv_lib_png14_png_get_io_state=yes
30681else
30682 ac_cv_lib_png14_png_get_io_state=no
30683fi
30684rm -f core conftest.err conftest.$ac_objext \
30685 conftest$ac_exeext conftest.$ac_ext
30686LIBS=$ac_check_lib_save_LIBS
30687fi
30688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30689$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30690if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30691 passed=`expr $passed + 1`
30692else
30693 failed=`expr $failed + 1`
30694fi
30695
30696 fi
30697 if test "1${var}" = '12' ; then
30698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30699$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30700if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30701 $as_echo_n "(cached) " >&6
30702else
30703 ac_check_lib_save_LIBS=$LIBS
30704LIBS="-lpng12 $LIBS"
30705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30706/* end confdefs.h. */
30707
30708/* Override any GCC internal prototype to avoid an error.
30709 Use char because int might match the return type of a GCC
30710 builtin and then its argument prototype would still apply. */
30711#ifdef __cplusplus
30712extern "C"
30713#endif
30714char png_get_io_ptr ();
30715int
30716main ()
30717{
30718return png_get_io_ptr ();
30719 ;
30720 return 0;
30721}
30722_ACEOF
30723if ac_fn_c_try_link "$LINENO"; then :
30724 ac_cv_lib_png12_png_get_io_ptr=yes
30725else
30726 ac_cv_lib_png12_png_get_io_ptr=no
30727fi
30728rm -f core conftest.err conftest.$ac_objext \
30729 conftest$ac_exeext conftest.$ac_ext
30730LIBS=$ac_check_lib_save_LIBS
30731fi
30732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30733$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30734if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30735 passed=`expr $passed + 1`
30736else
30737 failed=`expr $failed + 1`
30738fi
30739
30740 fi
30741 if test "1${var}" = '1' ; then
30742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30743$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30744if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30745 $as_echo_n "(cached) " >&6
30746else
30747 ac_check_lib_save_LIBS=$LIBS
30748LIBS="-lpng $LIBS"
30749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30750/* end confdefs.h. */
30751
30752/* Override any GCC internal prototype to avoid an error.
30753 Use char because int might match the return type of a GCC
30754 builtin and then its argument prototype would still apply. */
30755#ifdef __cplusplus
30756extern "C"
30757#endif
30758char png_get_io_ptr ();
30759int
30760main ()
30761{
30762return png_get_io_ptr ();
30763 ;
30764 return 0;
30765}
30766_ACEOF
30767if ac_fn_c_try_link "$LINENO"; then :
30768 ac_cv_lib_png_png_get_io_ptr=yes
30769else
30770 ac_cv_lib_png_png_get_io_ptr=no
30771fi
30772rm -f core conftest.err conftest.$ac_objext \
30773 conftest$ac_exeext conftest.$ac_ext
30774LIBS=$ac_check_lib_save_LIBS
30775fi
30776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30777$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30778if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30779 passed=`expr $passed + 1`
30780else
30781 failed=`expr $failed + 1`
30782fi
30783
30784 fi
30785 if test $passed -gt 0 -a $failed -le 0 ; then
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30787$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30788 if test $passed -gt 0 ; then
30789 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000030790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30791$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030792 have_png='no (failed tests)'
30793 else
30794 PNG_LIBS="-l${pnglib}"
30795 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030796
cristy8b350f62009-11-15 23:12:43 +000030797$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030798
cristyad38abe2012-12-23 23:03:21 +000030799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30800$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030801 have_png='yes'
30802 fi
30803 fi
30804 fi
30805 fi
30806 fi
30807 done
30808 fi
cristy3ed852e2009-09-05 21:47:34 +000030809fi
cristy64877302011-08-23 19:10:31 +000030810
cristy73bd4a52010-10-05 11:24:23 +000030811 if test "$have_png" = 'yes'; then
30812 PNG_DELEGATE_TRUE=
30813 PNG_DELEGATE_FALSE='#'
30814else
30815 PNG_DELEGATE_TRUE='#'
30816 PNG_DELEGATE_FALSE=
30817fi
30818
cristy3ed852e2009-09-05 21:47:34 +000030819
cristy50d3f5c2011-09-10 20:09:06 +000030820
cristy3ed852e2009-09-05 21:47:34 +000030821
30822
30823#
30824# Check for RSVG delegate library.
30825#
30826
30827# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030828if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030829 withval=$with_rsvg; with_rsvg=$withval
30830else
cristy1164d5f2012-08-15 00:58:25 +000030831 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000030832fi
30833
30834
30835if test "$with_rsvg" != 'yes'; then
30836 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30837fi
30838
30839have_rsvg='no'
30840have_cairo='no'
30841RSVG_CFLAGS=""
30842RSVG_LIBS=""
30843RSVG_PKG=""
30844if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30846$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030847
30848pkg_failed=no
30849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30850$as_echo_n "checking for RSVG... " >&6; }
30851
30852if test -n "$RSVG_CFLAGS"; then
30853 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30854 elif test -n "$PKG_CONFIG"; then
30855 if test -n "$PKG_CONFIG" && \
30856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30857 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30858 ac_status=$?
30859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30860 test $ac_status = 0; }; then
30861 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30862else
30863 pkg_failed=yes
30864fi
30865 else
30866 pkg_failed=untried
30867fi
30868if test -n "$RSVG_LIBS"; then
30869 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30870 elif test -n "$PKG_CONFIG"; then
30871 if test -n "$PKG_CONFIG" && \
30872 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30873 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30874 ac_status=$?
30875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30876 test $ac_status = 0; }; then
30877 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30878else
30879 pkg_failed=yes
30880fi
30881 else
30882 pkg_failed=untried
30883fi
30884
30885
30886
30887if test $pkg_failed = yes; then
30888
30889if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30890 _pkg_short_errors_supported=yes
30891else
30892 _pkg_short_errors_supported=no
30893fi
30894 if test $_pkg_short_errors_supported = yes; then
30895 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30896 else
30897 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30898 fi
30899 # Put the nasty error message in config.log where it belongs
30900 echo "$RSVG_PKG_ERRORS" >&5
30901
30902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30903$as_echo "no" >&6; }
30904 have_rsvg=no
30905elif test $pkg_failed = untried; then
30906 have_rsvg=no
30907else
30908 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30909 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30911$as_echo "yes" >&6; }
30912 have_rsvg=yes
30913fi
cristyad38abe2012-12-23 23:03:21 +000030914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30915$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030916
30917pkg_failed=no
30918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30919$as_echo_n "checking for CAIRO_SVG... " >&6; }
30920
30921if test -n "$CAIRO_SVG_CFLAGS"; then
30922 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30923 elif test -n "$PKG_CONFIG"; then
30924 if test -n "$PKG_CONFIG" && \
30925 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30926 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30927 ac_status=$?
30928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30929 test $ac_status = 0; }; then
30930 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30931else
30932 pkg_failed=yes
30933fi
30934 else
30935 pkg_failed=untried
30936fi
30937if test -n "$CAIRO_SVG_LIBS"; then
30938 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30939 elif test -n "$PKG_CONFIG"; then
30940 if test -n "$PKG_CONFIG" && \
30941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30942 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30943 ac_status=$?
30944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30945 test $ac_status = 0; }; then
30946 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30947else
30948 pkg_failed=yes
30949fi
30950 else
30951 pkg_failed=untried
30952fi
30953
30954
30955
30956if test $pkg_failed = yes; then
30957
30958if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30959 _pkg_short_errors_supported=yes
30960else
30961 _pkg_short_errors_supported=no
30962fi
30963 if test $_pkg_short_errors_supported = yes; then
30964 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30965 else
30966 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30967 fi
30968 # Put the nasty error message in config.log where it belongs
30969 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30970
30971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30972$as_echo "no" >&6; }
30973 have_cairo=no
30974elif test $pkg_failed = untried; then
30975 have_cairo=no
30976else
30977 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30978 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30980$as_echo "yes" >&6; }
30981 have_cairo=yes
30982fi
cristyad38abe2012-12-23 23:03:21 +000030983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30984$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030985fi
30986
30987if test "$have_rsvg" = 'yes'; then
30988
cristy8b350f62009-11-15 23:12:43 +000030989$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030990
cristyc6722092012-10-14 00:19:31 +000030991 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030992 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30993 fi
30994fi
30995
30996if test "$have_cairo" = 'yes'; then
30997
cristy8b350f62009-11-15 23:12:43 +000030998$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030999
cristyc6722092012-10-14 00:19:31 +000031000 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031001 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31002 fi
31003fi
31004
cristy73bd4a52010-10-05 11:24:23 +000031005 if test "$have_rsvg" = 'yes'; then
31006 RSVG_DELEGATE_TRUE=
31007 RSVG_DELEGATE_FALSE='#'
31008else
31009 RSVG_DELEGATE_TRUE='#'
31010 RSVG_DELEGATE_FALSE=
31011fi
31012
31013 if test "$have_cairo" = 'yes'; then
31014 CAIRO_DELEGATE_TRUE=
31015 CAIRO_DELEGATE_FALSE='#'
31016else
31017 CAIRO_DELEGATE_TRUE='#'
31018 CAIRO_DELEGATE_FALSE=
31019fi
31020
cristy3ed852e2009-09-05 21:47:34 +000031021
31022
31023
31024
31025#
31026# Check for TIFF delegate library.
31027#
31028
31029# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031030if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031031 withval=$with_tiff; with_tiff=$withval
31032else
31033 with_tiff='yes'
31034fi
31035
31036
31037if test "$with_tiff" != 'yes'; then
31038 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31039fi
31040
31041have_tiff='no'
31042TIFF_LIBS=''
31043if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31045$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031047$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31049$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031050 failed=0
31051 passed=0
cristy8b350f62009-11-15 23:12:43 +000031052 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031053if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031054 passed=`expr $passed + 1`
31055else
31056 failed=`expr $failed + 1`
31057fi
31058
31059
cristy8b350f62009-11-15 23:12:43 +000031060 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031061if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031062 passed=`expr $passed + 1`
31063else
31064 failed=`expr $failed + 1`
31065fi
31066
31067
cristy8b350f62009-11-15 23:12:43 +000031068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031069$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031070if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031071 $as_echo_n "(cached) " >&6
31072else
31073 ac_check_lib_save_LIBS=$LIBS
31074LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031076/* end confdefs.h. */
31077
31078/* Override any GCC internal prototype to avoid an error.
31079 Use char because int might match the return type of a GCC
31080 builtin and then its argument prototype would still apply. */
31081#ifdef __cplusplus
31082extern "C"
31083#endif
31084char TIFFOpen ();
31085int
31086main ()
31087{
31088return TIFFOpen ();
31089 ;
31090 return 0;
31091}
31092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031093if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031094 ac_cv_lib_tiff_TIFFOpen=yes
31095else
cristy8b350f62009-11-15 23:12:43 +000031096 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031097fi
cristy8b350f62009-11-15 23:12:43 +000031098rm -f core conftest.err conftest.$ac_objext \
31099 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031100LIBS=$ac_check_lib_save_LIBS
31101fi
cristy8b350f62009-11-15 23:12:43 +000031102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031103$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031104if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031105 passed=`expr $passed + 1`
31106else
31107 failed=`expr $failed + 1`
31108fi
31109
cristy8b350f62009-11-15 23:12:43 +000031110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031111$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031112if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031113 $as_echo_n "(cached) " >&6
31114else
31115 ac_check_lib_save_LIBS=$LIBS
31116LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031118/* end confdefs.h. */
31119
31120/* Override any GCC internal prototype to avoid an error.
31121 Use char because int might match the return type of a GCC
31122 builtin and then its argument prototype would still apply. */
31123#ifdef __cplusplus
31124extern "C"
31125#endif
31126char TIFFClientOpen ();
31127int
31128main ()
31129{
31130return TIFFClientOpen ();
31131 ;
31132 return 0;
31133}
31134_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031135if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031136 ac_cv_lib_tiff_TIFFClientOpen=yes
31137else
cristy8b350f62009-11-15 23:12:43 +000031138 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031139fi
cristy8b350f62009-11-15 23:12:43 +000031140rm -f core conftest.err conftest.$ac_objext \
31141 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031142LIBS=$ac_check_lib_save_LIBS
31143fi
cristy8b350f62009-11-15 23:12:43 +000031144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031145$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031146if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031147 passed=`expr $passed + 1`
31148else
31149 failed=`expr $failed + 1`
31150fi
31151
cristy8b350f62009-11-15 23:12:43 +000031152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031153$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031154if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031155 $as_echo_n "(cached) " >&6
31156else
31157 ac_check_lib_save_LIBS=$LIBS
31158LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031160/* end confdefs.h. */
31161
31162/* Override any GCC internal prototype to avoid an error.
31163 Use char because int might match the return type of a GCC
31164 builtin and then its argument prototype would still apply. */
31165#ifdef __cplusplus
31166extern "C"
31167#endif
31168char TIFFIsByteSwapped ();
31169int
31170main ()
31171{
31172return TIFFIsByteSwapped ();
31173 ;
31174 return 0;
31175}
31176_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031177if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031178 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31179else
cristy8b350f62009-11-15 23:12:43 +000031180 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031181fi
cristy8b350f62009-11-15 23:12:43 +000031182rm -f core conftest.err conftest.$ac_objext \
31183 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031184LIBS=$ac_check_lib_save_LIBS
31185fi
cristy8b350f62009-11-15 23:12:43 +000031186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031187$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031188if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031189 passed=`expr $passed + 1`
31190else
31191 failed=`expr $failed + 1`
31192fi
31193
cristy8b350f62009-11-15 23:12:43 +000031194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031195$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031196if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031197 $as_echo_n "(cached) " >&6
31198else
31199 ac_check_lib_save_LIBS=$LIBS
31200LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031202/* end confdefs.h. */
31203
31204/* Override any GCC internal prototype to avoid an error.
31205 Use char because int might match the return type of a GCC
31206 builtin and then its argument prototype would still apply. */
31207#ifdef __cplusplus
31208extern "C"
31209#endif
31210char TIFFReadRGBATile ();
31211int
31212main ()
31213{
31214return TIFFReadRGBATile ();
31215 ;
31216 return 0;
31217}
31218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031219if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031220 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31221else
cristy8b350f62009-11-15 23:12:43 +000031222 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031223fi
cristy8b350f62009-11-15 23:12:43 +000031224rm -f core conftest.err conftest.$ac_objext \
31225 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031226LIBS=$ac_check_lib_save_LIBS
31227fi
cristy8b350f62009-11-15 23:12:43 +000031228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031229$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031230if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031231 passed=`expr $passed + 1`
31232else
31233 failed=`expr $failed + 1`
31234fi
31235
cristy8b350f62009-11-15 23:12:43 +000031236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031237$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031238if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031239 $as_echo_n "(cached) " >&6
31240else
31241 ac_check_lib_save_LIBS=$LIBS
31242LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031244/* end confdefs.h. */
31245
31246/* Override any GCC internal prototype to avoid an error.
31247 Use char because int might match the return type of a GCC
31248 builtin and then its argument prototype would still apply. */
31249#ifdef __cplusplus
31250extern "C"
31251#endif
31252char TIFFReadRGBAStrip ();
31253int
31254main ()
31255{
31256return TIFFReadRGBAStrip ();
31257 ;
31258 return 0;
31259}
31260_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031261if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031262 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31263else
cristy8b350f62009-11-15 23:12:43 +000031264 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031265fi
cristy8b350f62009-11-15 23:12:43 +000031266rm -f core conftest.err conftest.$ac_objext \
31267 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031268LIBS=$ac_check_lib_save_LIBS
31269fi
cristy8b350f62009-11-15 23:12:43 +000031270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031271$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031272if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031273 passed=`expr $passed + 1`
31274else
31275 failed=`expr $failed + 1`
31276fi
31277
cristy8b350f62009-11-15 23:12:43 +000031278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031279$as_echo_n "checking if TIFF package is complete... " >&6; }
31280 if test $passed -gt 0; then
31281 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31283$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031284 have_tiff='no (failed tests)'
31285 else
31286 TIFF_LIBS='-ltiff'
31287 LIBS="$TIFF_LIBS $LIBS"
31288
cristy8b350f62009-11-15 23:12:43 +000031289$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031290
cristyad38abe2012-12-23 23:03:21 +000031291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31292$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031293 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031294 for ac_header in tiffconf.h
31295do :
31296 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031297if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031298 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031299#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031300_ACEOF
31301
31302fi
31303
31304done
31305
cristy8b350f62009-11-15 23:12:43 +000031306 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031307 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31308 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31309 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031310do :
31311 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31312ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031313if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031314 cat >>confdefs.h <<_ACEOF
31315#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31316_ACEOF
31317
31318fi
31319done
31320
31321 fi
31322 else
cristyad38abe2012-12-23 23:03:21 +000031323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31324$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031325 fi
31326fi
cristy73bd4a52010-10-05 11:24:23 +000031327 if test "$have_tiff" = 'yes'; then
31328 TIFF_DELEGATE_TRUE=
31329 TIFF_DELEGATE_FALSE='#'
31330else
31331 TIFF_DELEGATE_TRUE='#'
31332 TIFF_DELEGATE_FALSE=
31333fi
31334
cristy3ed852e2009-09-05 21:47:34 +000031335
31336
31337
31338#
cristyb1860752011-03-14 00:27:46 +000031339# Check for WEBP delegate library.
31340#
31341
31342# Check whether --with-webp was given.
31343if test "${with_webp+set}" = set; then :
31344 withval=$with_webp; with_webp=$withval
31345else
31346 with_webp='yes'
31347fi
31348
31349
31350if test "$with_webp" != 'yes'; then
31351 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31352fi
31353
31354have_webp='no'
31355WEBP_LIBS=''
31356if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31358$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31360$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31362$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031363 failed=0
31364 passed=0
31365 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31366if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31367 passed=`expr $passed + 1`
31368else
31369 failed=`expr $failed + 1`
31370fi
31371
31372
31373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31374$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31375if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31376 $as_echo_n "(cached) " >&6
31377else
31378 ac_check_lib_save_LIBS=$LIBS
31379LIBS="-lwebp $LIBS"
31380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31381/* end confdefs.h. */
31382
31383/* Override any GCC internal prototype to avoid an error.
31384 Use char because int might match the return type of a GCC
31385 builtin and then its argument prototype would still apply. */
31386#ifdef __cplusplus
31387extern "C"
31388#endif
31389char WebPDecodeRGB ();
31390int
31391main ()
31392{
31393return WebPDecodeRGB ();
31394 ;
31395 return 0;
31396}
31397_ACEOF
31398if ac_fn_c_try_link "$LINENO"; then :
31399 ac_cv_lib_webp_WebPDecodeRGB=yes
31400else
31401 ac_cv_lib_webp_WebPDecodeRGB=no
31402fi
31403rm -f core conftest.err conftest.$ac_objext \
31404 conftest$ac_exeext conftest.$ac_ext
31405LIBS=$ac_check_lib_save_LIBS
31406fi
31407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31408$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31409if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31410 passed=`expr $passed + 1`
31411else
31412 failed=`expr $failed + 1`
31413fi
31414
31415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31416$as_echo_n "checking if WEBP package is complete... " >&6; }
31417 if test $passed -gt 0; then
31418 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31420$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031421 have_webp='no (failed tests)'
31422 else
31423 WEBP_LIBS='-lwebp'
31424 LIBS="$WEBP_LIBS $LIBS"
31425
31426$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31427
cristyad38abe2012-12-23 23:03:21 +000031428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31429$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031430 have_webp='yes'
31431 fi
31432 else
cristyad38abe2012-12-23 23:03:21 +000031433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31434$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031435 fi
31436fi
31437 if test "$have_webp" = 'yes'; then
31438 WEBP_DELEGATE_TRUE=
31439 WEBP_DELEGATE_FALSE='#'
31440else
31441 WEBP_DELEGATE_TRUE='#'
31442 WEBP_DELEGATE_FALSE=
31443fi
31444
31445
31446
31447
31448#
cristy3ed852e2009-09-05 21:47:34 +000031449# Set Windows font directory.
31450#
31451
31452# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031453if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031454 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31455else
31456 with_windows_font_dir=''
31457fi
31458
31459if test "$with_windows_font_dir" != '' ; then
31460 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31461fi
31462
31463
31464#
31465# Check for WMF delegate library.
31466#
31467
31468# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031469if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031470 withval=$with_wmf; with_wmf=$withval
31471else
cristyfc3d0222012-02-07 15:05:57 +000031472 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031473fi
31474
31475
31476if test "$with_wmf" != 'yes'; then
31477 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31478fi
31479
31480have_wmf='no'
31481WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031482WMF_LIBS_DEPS=''
31483OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031484if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31486$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031488$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31490$as_echo "" >&6; }
31491 have_libwmf='no'
31492 have_libwmflite='no'
31493 have_libwmf_ipa_h='no'
31494
31495 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31496"
31497if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31498 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031499fi
31500
31501
cristy03f7cf92011-12-15 01:40:41 +000031502 if test "$have_libwmf_ipa_h" = 'yes'; then
31503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31504$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31505if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031506 $as_echo_n "(cached) " >&6
31507else
31508 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031509LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031511/* end confdefs.h. */
31512
31513/* Override any GCC internal prototype to avoid an error.
31514 Use char because int might match the return type of a GCC
31515 builtin and then its argument prototype would still apply. */
31516#ifdef __cplusplus
31517extern "C"
31518#endif
cristy03f7cf92011-12-15 01:40:41 +000031519char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031520int
31521main ()
31522{
cristy03f7cf92011-12-15 01:40:41 +000031523return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031524 ;
31525 return 0;
31526}
31527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031528if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031529 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031530else
cristy03f7cf92011-12-15 01:40:41 +000031531 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031532fi
cristy8b350f62009-11-15 23:12:43 +000031533rm -f core conftest.err conftest.$ac_objext \
31534 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031535LIBS=$ac_check_lib_save_LIBS
31536fi
cristy03f7cf92011-12-15 01:40:41 +000031537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31538$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31539if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31540 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031541fi
31542
cristy03f7cf92011-12-15 01:40:41 +000031543 if test "$have_libwmflite" = 'yes'; then
31544
31545$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31546
31547 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031548 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031549 have_wmf='yes'
31550 else
31551 WMF_LIBS_DEPS=''
31552 WMF_CONFIG_LIBS=`libwmf-config --libs`
31553 for lib in xml2 expat freetype jpeg png z; do
31554 testlib="-l${lib}"
31555 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31556 done
31557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31558$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31559if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31560 $as_echo_n "(cached) " >&6
31561else
31562 ac_check_lib_save_LIBS=$LIBS
31563LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31565/* end confdefs.h. */
31566
31567/* Override any GCC internal prototype to avoid an error.
31568 Use char because int might match the return type of a GCC
31569 builtin and then its argument prototype would still apply. */
31570#ifdef __cplusplus
31571extern "C"
31572#endif
31573char wmf_api_create ();
31574int
31575main ()
31576{
31577return wmf_api_create ();
31578 ;
31579 return 0;
31580}
31581_ACEOF
31582if ac_fn_c_try_link "$LINENO"; then :
31583 ac_cv_lib_wmf_wmf_api_create=yes
31584else
31585 ac_cv_lib_wmf_wmf_api_create=no
31586fi
31587rm -f core conftest.err conftest.$ac_objext \
31588 conftest$ac_exeext conftest.$ac_ext
31589LIBS=$ac_check_lib_save_LIBS
31590fi
31591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31592$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31593if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31594 have_libwmf='yes'
31595fi
31596
31597 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031598
cristy8b350f62009-11-15 23:12:43 +000031599$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031600
cristy03f7cf92011-12-15 01:40:41 +000031601 WMF_LIBS='-lwmf'
31602 LIBS="$WMF_LIBS $LIBS"
31603 have_wmf='yes'
31604 else
31605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31606$as_echo "no -- some components failed test" >&6; }
31607 have_wmf='no (failed tests)'
31608 have_wmflite='no (failed tests)'
31609 LIBS="$OLIBS"
31610 WMF_LIBS=''
31611 fi
glennrp33e524b2011-08-24 17:41:57 +000031612 fi
cristy03f7cf92011-12-15 01:40:41 +000031613 fi
31614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31615$as_echo_n "checking if WMF package is complete... " >&6; }
31616 if test "$have_wmf" = 'yes'; then
31617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31618$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031619 else
cristy03f7cf92011-12-15 01:40:41 +000031620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31621$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031622 fi
cristy3ed852e2009-09-05 21:47:34 +000031623fi
cristy73bd4a52010-10-05 11:24:23 +000031624 if test "$have_wmf" = 'yes'; then
31625 WMF_DELEGATE_TRUE=
31626 WMF_DELEGATE_FALSE='#'
31627else
31628 WMF_DELEGATE_TRUE='#'
31629 WMF_DELEGATE_FALSE=
31630fi
31631
cristy3ed852e2009-09-05 21:47:34 +000031632
31633
31634
cristy81beccd2011-10-03 18:17:24 +000031635
31636
cristy3ed852e2009-09-05 21:47:34 +000031637#
31638# Check for XML delegate library.
31639#
31640
31641# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031642if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031643 withval=$with_xml; with_xml=$withval
31644else
cristyfc3d0222012-02-07 15:05:57 +000031645 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031646fi
31647
31648
cristy81beccd2011-10-03 18:17:24 +000031649if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031650 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31651fi
31652
cristy81beccd2011-10-03 18:17:24 +000031653have_xml='no'
31654XML_LIBS=''
31655if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31657$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31659$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31661$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031662 PERSIST_LDFLAGS=$LDFLAGS
31663 PERSIST_CPPFLAGS=$CPPFLAGS
31664 xml2_config=''
31665 # Extract the first word of "xml2-config", so it can be a program name with args.
31666set dummy xml2-config; ac_word=$2
31667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31668$as_echo_n "checking for $ac_word... " >&6; }
31669if ${ac_cv_path_xml2_config+:} false; then :
31670 $as_echo_n "(cached) " >&6
31671else
31672 case $xml2_config in
31673 [\\/]* | ?:[\\/]*)
31674 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31675 ;;
31676 *)
31677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31678for as_dir in $PATH
31679do
31680 IFS=$as_save_IFS
31681 test -z "$as_dir" && as_dir=.
31682 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000031684 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31686 break 2
31687 fi
31688done
31689 done
31690IFS=$as_save_IFS
31691
31692 ;;
31693esac
31694fi
31695xml2_config=$ac_cv_path_xml2_config
31696if test -n "$xml2_config"; then
31697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31698$as_echo "$xml2_config" >&6; }
31699else
31700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31701$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031702fi
31703
cristy81beccd2011-10-03 18:17:24 +000031704 if test -n "$xml2_config"; then
31705 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31706 # the shared library installed under /usr/lib, whereas the package
31707 # installs itself under $prefix/libxml and $prefix/lib.
31708 xml2_prefix=`xml2-config --prefix`
31709 if test -d "${xml2_prefix}/include/libxml2"; then
31710 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31711 fi
31712 if test "${xml2_prefix}" != '/usr'; then
31713 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31714 fi
31715 fi
31716 failed=0
31717 passed=0
31718 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31719if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31720 passed=`expr $passed + 1`
31721else
31722 failed=`expr $failed + 1`
31723fi
31724
31725
31726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31727$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31728if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31729 $as_echo_n "(cached) " >&6
31730else
31731 ac_check_lib_save_LIBS=$LIBS
31732LIBS="-lxml2 $LIBS"
31733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31734/* end confdefs.h. */
31735
31736/* Override any GCC internal prototype to avoid an error.
31737 Use char because int might match the return type of a GCC
31738 builtin and then its argument prototype would still apply. */
31739#ifdef __cplusplus
31740extern "C"
31741#endif
31742char xmlSAXVersion ();
31743int
31744main ()
31745{
31746return xmlSAXVersion ();
31747 ;
31748 return 0;
31749}
31750_ACEOF
31751if ac_fn_c_try_link "$LINENO"; then :
31752 ac_cv_lib_xml2_xmlSAXVersion=yes
31753else
31754 ac_cv_lib_xml2_xmlSAXVersion=no
31755fi
31756rm -f core conftest.err conftest.$ac_objext \
31757 conftest$ac_exeext conftest.$ac_ext
31758LIBS=$ac_check_lib_save_LIBS
31759fi
31760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31761$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31762if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31763 passed=`expr $passed + 1`
31764else
31765 failed=`expr $failed + 1`
31766fi
31767
31768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31769$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31770if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31771 $as_echo_n "(cached) " >&6
31772else
31773 ac_check_lib_save_LIBS=$LIBS
31774LIBS="-lxml2 $LIBS"
31775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31776/* end confdefs.h. */
31777
31778/* Override any GCC internal prototype to avoid an error.
31779 Use char because int might match the return type of a GCC
31780 builtin and then its argument prototype would still apply. */
31781#ifdef __cplusplus
31782extern "C"
31783#endif
31784char xmlParseChunk ();
31785int
31786main ()
31787{
31788return xmlParseChunk ();
31789 ;
31790 return 0;
31791}
31792_ACEOF
31793if ac_fn_c_try_link "$LINENO"; then :
31794 ac_cv_lib_xml2_xmlParseChunk=yes
31795else
31796 ac_cv_lib_xml2_xmlParseChunk=no
31797fi
31798rm -f core conftest.err conftest.$ac_objext \
31799 conftest$ac_exeext conftest.$ac_ext
31800LIBS=$ac_check_lib_save_LIBS
31801fi
31802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31803$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31804if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31805 passed=`expr $passed + 1`
31806else
31807 failed=`expr $failed + 1`
31808fi
31809
31810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31811$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31812if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31813 $as_echo_n "(cached) " >&6
31814else
31815 ac_check_lib_save_LIBS=$LIBS
31816LIBS="-lxml2 $LIBS"
31817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31818/* end confdefs.h. */
31819
31820/* Override any GCC internal prototype to avoid an error.
31821 Use char because int might match the return type of a GCC
31822 builtin and then its argument prototype would still apply. */
31823#ifdef __cplusplus
31824extern "C"
31825#endif
31826char xmlCreatePushParserCtxt ();
31827int
31828main ()
31829{
31830return xmlCreatePushParserCtxt ();
31831 ;
31832 return 0;
31833}
31834_ACEOF
31835if ac_fn_c_try_link "$LINENO"; then :
31836 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31837else
31838 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31839fi
31840rm -f core conftest.err conftest.$ac_objext \
31841 conftest$ac_exeext conftest.$ac_ext
31842LIBS=$ac_check_lib_save_LIBS
31843fi
31844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31845$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31846if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31847 passed=`expr $passed + 1`
31848else
31849 failed=`expr $failed + 1`
31850fi
31851
31852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31853$as_echo_n "checking if XML package is complete... " >&6; }
31854 if test $passed -gt 0; then
31855 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31857$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031858 have_xml='no (failed tests)'
31859 LDFLAGS="$PERSIST_LDFLAGS"
31860 CPPFLAGS="$PERSIST_CPPFLAGS"
31861 else
31862 XML_LIBS='-lxml2'
31863 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031864
cristy8b350f62009-11-15 23:12:43 +000031865$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031866
cristyad38abe2012-12-23 23:03:21 +000031867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31868$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031869 have_xml='yes'
31870 fi
31871 else
cristyad38abe2012-12-23 23:03:21 +000031872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31873$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031874 fi
31875fi
cristy73bd4a52010-10-05 11:24:23 +000031876 if test "$have_xml" = 'yes'; then
31877 XML_DELEGATE_TRUE=
31878 XML_DELEGATE_FALSE='#'
31879else
31880 XML_DELEGATE_TRUE='#'
31881 XML_DELEGATE_FALSE=
31882fi
31883
cristy3ed852e2009-09-05 21:47:34 +000031884
31885
31886
31887# Substitute compiler name to build/link PerlMagick
31888#
31889
31890
31891#
31892# Configure install Paths
31893#
cristy7def36a2011-10-28 19:04:41 +000031894
cristy2a11bef2011-10-28 18:33:11 +000031895# Path to ImageMagick header files
31896INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000031897INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
31898DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000031899case "${build_os}" in
31900 mingw* )
31901 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
31902 ;;
31903esac
31904
31905cat >>confdefs.h <<_ACEOF
31906#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
31907_ACEOF
31908
31909
cristy3ed852e2009-09-05 21:47:34 +000031910
31911# Subdirectory under lib to place ImageMagick lib files
31912LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31913
31914cat >>confdefs.h <<_ACEOF
31915#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31916_ACEOF
31917
31918
31919# Path to ImageMagick bin directory
31920EXECUTABLE_PATH="${BIN_DIR}"
31921DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31922case "${build_os}" in
31923 mingw* )
31924 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31925 ;;
31926esac
31927
31928cat >>confdefs.h <<_ACEOF
31929#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31930_ACEOF
31931
31932
31933
31934# Path to ImageMagick lib
31935LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31936DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31937case "${build_os}" in
31938 mingw* )
31939 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31940 ;;
31941esac
31942
31943cat >>confdefs.h <<_ACEOF
31944#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31945_ACEOF
31946
31947
31948
cristy3ed852e2009-09-05 21:47:34 +000031949#
cristy01ff9f32012-12-01 18:15:29 +000031950# path to modules lib
31951if test "x$MODULES_BASEDIRNAME" = "x"; then
31952 MODULES_BASEDIRNAME="modules"
31953fi
cristy3ed852e2009-09-05 21:47:34 +000031954
31955cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000031956#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000031957_ACEOF
31958
cristy01ff9f32012-12-01 18:15:29 +000031959
31960
31961if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000031962 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
31963else
cristy3ed852e2009-09-05 21:47:34 +000031964
31965cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000031966#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000031967_ACEOF
31968
cristycf4a3c22012-12-02 21:47:25 +000031969fi
cristy01ff9f32012-12-01 18:15:29 +000031970
31971
cristy371d4812012-12-01 19:48:10 +000031972MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000031973
31974MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
31975
31976
31977#
31978# path to coders lib
31979if test "x$CODER_DIRNAME" = "x"; then
31980 CODER_DIRNAME="coders"
31981fi
31982
31983cat >>confdefs.h <<_ACEOF
31984#define CODER_DIRNAME "$CODER_DIRNAME"
31985_ACEOF
31986
31987
31988
cristy371d4812012-12-01 19:48:10 +000031989CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000031990CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000031991
31992
31993#
31994# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000031995#
31996# path to coders lib
31997if test "x$FILTER_DIRNAME" = "x"; then
31998 FILTER_DIRNAME="filters"
31999fi
cristy3ed852e2009-09-05 21:47:34 +000032000
32001cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032002#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032003_ACEOF
32004
cristy3ed852e2009-09-05 21:47:34 +000032005
cristy3ed852e2009-09-05 21:47:34 +000032006
cristy371d4812012-12-01 19:48:10 +000032007FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032008FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032009
32010
32011#
32012# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032013DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032014DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32015DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032016case "${build_os}" in
32017 mingw* )
32018 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32019 ;;
32020esac
32021
32022cat >>confdefs.h <<_ACEOF
32023#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32024_ACEOF
32025
32026
32027
cristy2a11bef2011-10-28 18:33:11 +000032028# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032029CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032030
32031cat >>confdefs.h <<_ACEOF
32032#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32033_ACEOF
32034
cristy7def36a2011-10-28 19:04:41 +000032035CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032036DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32037case "${build_os}" in
32038 mingw* )
32039 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32040 ;;
32041esac
32042
32043cat >>confdefs.h <<_ACEOF
32044#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32045_ACEOF
32046
32047
32048
cristy2a11bef2011-10-28 18:33:11 +000032049# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032050SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032051
32052cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032053#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032054_ACEOF
32055
cristy670aa3c2011-11-03 00:54:00 +000032056SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032057DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032058case "${build_os}" in
32059 mingw* )
cristy4f820712011-04-01 12:35:43 +000032060 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032061 ;;
32062esac
32063
32064cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032065#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032066_ACEOF
32067
32068
32069
cristy54378032012-12-04 15:52:20 +000032070#
32071# Subdirectory to place architecture-dependent configuration files.
32072if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32073 SHAREARCH_BASEDIRNAME="config"
32074fi
cristy670aa3c2011-11-03 00:54:00 +000032075
32076cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032077#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032078_ACEOF
32079
cristy54378032012-12-04 15:52:20 +000032080
32081
32082if test "x$SHAREARCH_DIRNAME" = "x"; then
32083 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32084else
cristy670aa3c2011-11-03 00:54:00 +000032085
32086cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032087#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032088_ACEOF
32089
cristy54378032012-12-04 15:52:20 +000032090fi
32091
32092
32093SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32094
32095SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032096
32097
cristy3ed852e2009-09-05 21:47:34 +000032098#
32099# program_transform_name is formed for use in a Makefile, so create a
32100# modified version for use in a shell script.
32101configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32102
32103# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32105$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032107$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32109$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032110AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032111BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032112BZIPDelegateDefault='bzip2'
32113BrowseDelegateDefault='xdg-open'
32114CGMDecodeDelegateDefault='ralcgm'
32115CatDelegateDefault='cat'
32116DNGDecodeDelegateDefault='ufraw-batch'
32117GVCDecodeDelegateDefault='dot'
32118DVIDecodeDelegateDefault='dvips'
32119EchoDelegateDefault='echo'
32120EditorDelegateDefault='xterm'
32121FIGDecodeDelegateDefault='fig2dev'
32122ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32123DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32124MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32125GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032126HPGLDecodeDelegateDefault='hp2xx'
32127HTMLDecodeDelegateDefault='html2ps'
32128ILBMDecodeDelegateDefault='ilbmtoppm'
32129ILBMEncodeDelegateDefault='ppmtoilbm'
32130LPDelegateDefault='lp'
32131LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032132LaunchDelegateDefault='gimp'
32133MANDelegateDefault='groff'
32134MPEGDecodeDelegateDefault='ffmpeg'
32135MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032136MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032137MVDelegateDefault='mv'
32138PCLDelegateDefault='pcl6'
32139PGPDecodeDelegateDefault='pgpv'
32140POVDelegateDefault='povray'
32141if test "$native_win32_build" = 'yes'; then
32142 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032143elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032144 PSDelegateDefault='gsc'
32145else
32146 PSDelegateDefault='gs'
32147fi
32148RLEEncodeDelegateDefault='rawtorle'
32149RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032150RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032151SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032152SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032153TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032154UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032155WMFDecodeDelegateDefault='wmf2eps'
32156WWWDecodeDelegateDefault='curl'
32157XPSDelegateDefault='gxps'
32158ZipDelegateDefault='gzip'
32159
32160# Search for delegates
32161# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32162set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032164$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032165if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032166 $as_echo_n "(cached) " >&6
32167else
32168 case $AutotraceDecodeDelegate in
32169 [\\/]* | ?:[\\/]*)
32170 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32171 ;;
32172 *)
32173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32174for as_dir in $PATH
32175do
32176 IFS=$as_save_IFS
32177 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032178 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032180 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032182 break 2
32183 fi
32184done
cristy8b350f62009-11-15 23:12:43 +000032185 done
cristy3ed852e2009-09-05 21:47:34 +000032186IFS=$as_save_IFS
32187
32188 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32189 ;;
32190esac
32191fi
32192AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32193if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032195$as_echo "$AutotraceDecodeDelegate" >&6; }
32196else
cristy8b350f62009-11-15 23:12:43 +000032197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032198$as_echo "no" >&6; }
32199fi
32200
32201
cristy3ed852e2009-09-05 21:47:34 +000032202# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32203set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032205$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032206if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032207 $as_echo_n "(cached) " >&6
32208else
32209 case $BlenderDecodeDelegate in
32210 [\\/]* | ?:[\\/]*)
32211 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32212 ;;
32213 *)
32214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32215for as_dir in $PATH
32216do
32217 IFS=$as_save_IFS
32218 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032219 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032221 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032223 break 2
32224 fi
32225done
cristy8b350f62009-11-15 23:12:43 +000032226 done
cristy3ed852e2009-09-05 21:47:34 +000032227IFS=$as_save_IFS
32228
32229 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32230 ;;
32231esac
32232fi
32233BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32234if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032236$as_echo "$BlenderDecodeDelegate" >&6; }
32237else
cristy8b350f62009-11-15 23:12:43 +000032238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032239$as_echo "no" >&6; }
32240fi
32241
32242
32243# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32244set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032246$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032247if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032248 $as_echo_n "(cached) " >&6
32249else
32250 case $BZIPDelegate in
32251 [\\/]* | ?:[\\/]*)
32252 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32253 ;;
32254 *)
32255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32256for as_dir in $PATH
32257do
32258 IFS=$as_save_IFS
32259 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032260 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032262 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032264 break 2
32265 fi
32266done
cristy8b350f62009-11-15 23:12:43 +000032267 done
cristy3ed852e2009-09-05 21:47:34 +000032268IFS=$as_save_IFS
32269
32270 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32271 ;;
32272esac
32273fi
32274BZIPDelegate=$ac_cv_path_BZIPDelegate
32275if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032277$as_echo "$BZIPDelegate" >&6; }
32278else
cristy8b350f62009-11-15 23:12:43 +000032279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032280$as_echo "no" >&6; }
32281fi
32282
32283
cristyc59f0e72012-08-27 12:59:33 +000032284for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32285do
32286 # Extract the first word of "$ac_prog", so it can be a program name with args.
32287set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032289$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032290if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032291 $as_echo_n "(cached) " >&6
32292else
32293 case $BrowseDelegate in
32294 [\\/]* | ?:[\\/]*)
32295 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32296 ;;
32297 *)
32298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32299for as_dir in $PATH
32300do
32301 IFS=$as_save_IFS
32302 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032303 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032305 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032307 break 2
32308 fi
32309done
cristy8b350f62009-11-15 23:12:43 +000032310 done
cristy3ed852e2009-09-05 21:47:34 +000032311IFS=$as_save_IFS
32312
cristy3ed852e2009-09-05 21:47:34 +000032313 ;;
32314esac
32315fi
32316BrowseDelegate=$ac_cv_path_BrowseDelegate
32317if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032319$as_echo "$BrowseDelegate" >&6; }
32320else
cristy8b350f62009-11-15 23:12:43 +000032321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032322$as_echo "no" >&6; }
32323fi
32324
32325
cristyc59f0e72012-08-27 12:59:33 +000032326 test -n "$BrowseDelegate" && break
32327done
32328test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32329
cristy3ed852e2009-09-05 21:47:34 +000032330# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32331set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032333$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032334if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032335 $as_echo_n "(cached) " >&6
32336else
32337 case $CGMDecodeDelegate in
32338 [\\/]* | ?:[\\/]*)
32339 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32340 ;;
32341 *)
32342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32343for as_dir in $PATH
32344do
32345 IFS=$as_save_IFS
32346 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032349 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032351 break 2
32352 fi
32353done
cristy8b350f62009-11-15 23:12:43 +000032354 done
cristy3ed852e2009-09-05 21:47:34 +000032355IFS=$as_save_IFS
32356
32357 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32358 ;;
32359esac
32360fi
32361CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32362if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032364$as_echo "$CGMDecodeDelegate" >&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
32371# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32372set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032374$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032375if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032376 $as_echo_n "(cached) " >&6
32377else
32378 case $CatDelegate in
32379 [\\/]* | ?:[\\/]*)
32380 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32381 ;;
32382 *)
32383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32384for as_dir in $PATH
32385do
32386 IFS=$as_save_IFS
32387 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032390 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032392 break 2
32393 fi
32394done
cristy8b350f62009-11-15 23:12:43 +000032395 done
cristy3ed852e2009-09-05 21:47:34 +000032396IFS=$as_save_IFS
32397
32398 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32399 ;;
32400esac
32401fi
32402CatDelegate=$ac_cv_path_CatDelegate
32403if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032405$as_echo "$CatDelegate" >&6; }
32406else
cristy8b350f62009-11-15 23:12:43 +000032407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032408$as_echo "no" >&6; }
32409fi
32410
32411
32412# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32413set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032415$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032416if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032417 $as_echo_n "(cached) " >&6
32418else
32419 case $DNGDecodeDelegate in
32420 [\\/]* | ?:[\\/]*)
32421 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32422 ;;
32423 *)
32424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32425for as_dir in $PATH
32426do
32427 IFS=$as_save_IFS
32428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032431 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032433 break 2
32434 fi
32435done
cristy8b350f62009-11-15 23:12:43 +000032436 done
cristy3ed852e2009-09-05 21:47:34 +000032437IFS=$as_save_IFS
32438
32439 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32440 ;;
32441esac
32442fi
32443DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32444if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032446$as_echo "$DNGDecodeDelegate" >&6; }
32447else
cristy8b350f62009-11-15 23:12:43 +000032448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032449$as_echo "no" >&6; }
32450fi
32451
32452
32453# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32454set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032457if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032458 $as_echo_n "(cached) " >&6
32459else
32460 case $GVCDecodeDelegate in
32461 [\\/]* | ?:[\\/]*)
32462 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32463 ;;
32464 *)
32465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32466for as_dir in $PATH
32467do
32468 IFS=$as_save_IFS
32469 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032470 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032472 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032474 break 2
32475 fi
32476done
cristy8b350f62009-11-15 23:12:43 +000032477 done
cristy3ed852e2009-09-05 21:47:34 +000032478IFS=$as_save_IFS
32479
32480 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32481 ;;
32482esac
32483fi
32484GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32485if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032487$as_echo "$GVCDecodeDelegate" >&6; }
32488else
cristy8b350f62009-11-15 23:12:43 +000032489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032490$as_echo "no" >&6; }
32491fi
32492
32493
32494# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32495set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032498if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032499 $as_echo_n "(cached) " >&6
32500else
32501 case $DVIDecodeDelegate in
32502 [\\/]* | ?:[\\/]*)
32503 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32504 ;;
32505 *)
32506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32507for as_dir in $PATH
32508do
32509 IFS=$as_save_IFS
32510 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032511 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032513 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032515 break 2
32516 fi
32517done
cristy8b350f62009-11-15 23:12:43 +000032518 done
cristy3ed852e2009-09-05 21:47:34 +000032519IFS=$as_save_IFS
32520
32521 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32522 ;;
32523esac
32524fi
32525DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32526if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032528$as_echo "$DVIDecodeDelegate" >&6; }
32529else
cristy8b350f62009-11-15 23:12:43 +000032530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032531$as_echo "no" >&6; }
32532fi
32533
32534
32535# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32536set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032539if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032540 $as_echo_n "(cached) " >&6
32541else
32542 case $EchoDelegate in
32543 [\\/]* | ?:[\\/]*)
32544 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32545 ;;
32546 *)
32547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32548for as_dir in $PATH
32549do
32550 IFS=$as_save_IFS
32551 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032554 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032556 break 2
32557 fi
32558done
cristy8b350f62009-11-15 23:12:43 +000032559 done
cristy3ed852e2009-09-05 21:47:34 +000032560IFS=$as_save_IFS
32561
32562 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32563 ;;
32564esac
32565fi
32566EchoDelegate=$ac_cv_path_EchoDelegate
32567if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032569$as_echo "$EchoDelegate" >&6; }
32570else
cristy8b350f62009-11-15 23:12:43 +000032571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032572$as_echo "no" >&6; }
32573fi
32574
32575
32576# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32577set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032579$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032580if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032581 $as_echo_n "(cached) " >&6
32582else
32583 case $EditorDelegate in
32584 [\\/]* | ?:[\\/]*)
32585 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32586 ;;
32587 *)
32588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32589for as_dir in $PATH
32590do
32591 IFS=$as_save_IFS
32592 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032593 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032595 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032597 break 2
32598 fi
32599done
cristy8b350f62009-11-15 23:12:43 +000032600 done
cristy3ed852e2009-09-05 21:47:34 +000032601IFS=$as_save_IFS
32602
32603 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32604 ;;
32605esac
32606fi
32607EditorDelegate=$ac_cv_path_EditorDelegate
32608if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032610$as_echo "$EditorDelegate" >&6; }
32611else
cristy8b350f62009-11-15 23:12:43 +000032612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032613$as_echo "no" >&6; }
32614fi
32615
32616
32617# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32618set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032620$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032621if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032622 $as_echo_n "(cached) " >&6
32623else
32624 case $FIGDecodeDelegate in
32625 [\\/]* | ?:[\\/]*)
32626 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32627 ;;
32628 *)
32629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32630for as_dir in $PATH
32631do
32632 IFS=$as_save_IFS
32633 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032634 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032636 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032638 break 2
32639 fi
32640done
cristy8b350f62009-11-15 23:12:43 +000032641 done
cristy3ed852e2009-09-05 21:47:34 +000032642IFS=$as_save_IFS
32643
32644 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32645 ;;
32646esac
32647fi
32648FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32649if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032651$as_echo "$FIGDecodeDelegate" >&6; }
32652else
cristy8b350f62009-11-15 23:12:43 +000032653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032654$as_echo "no" >&6; }
32655fi
32656
32657
32658# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32659set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032661$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032662if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032663 $as_echo_n "(cached) " >&6
32664else
32665 case $ConvertDelegate in
32666 [\\/]* | ?:[\\/]*)
32667 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32668 ;;
32669 *)
32670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32671for as_dir in $PATH
32672do
32673 IFS=$as_save_IFS
32674 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032675 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032677 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032679 break 2
32680 fi
32681done
cristy8b350f62009-11-15 23:12:43 +000032682 done
cristy3ed852e2009-09-05 21:47:34 +000032683IFS=$as_save_IFS
32684
32685 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32686 ;;
32687esac
32688fi
32689ConvertDelegate=$ac_cv_path_ConvertDelegate
32690if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032692$as_echo "$ConvertDelegate" >&6; }
32693else
cristy8b350f62009-11-15 23:12:43 +000032694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032695$as_echo "no" >&6; }
32696fi
32697
32698
32699# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32700set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032702$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032703if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032704 $as_echo_n "(cached) " >&6
32705else
32706 case $DisplayDelegate in
32707 [\\/]* | ?:[\\/]*)
32708 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32709 ;;
32710 *)
32711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32712for as_dir in $PATH
32713do
32714 IFS=$as_save_IFS
32715 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032716 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032718 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032720 break 2
32721 fi
32722done
cristy8b350f62009-11-15 23:12:43 +000032723 done
cristy3ed852e2009-09-05 21:47:34 +000032724IFS=$as_save_IFS
32725
32726 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32727 ;;
32728esac
32729fi
32730DisplayDelegate=$ac_cv_path_DisplayDelegate
32731if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032733$as_echo "$DisplayDelegate" >&6; }
32734else
cristy8b350f62009-11-15 23:12:43 +000032735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032736$as_echo "no" >&6; }
32737fi
32738
32739
32740# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32741set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032743$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032744if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032745 $as_echo_n "(cached) " >&6
32746else
32747 case $MogrifyDelegate in
32748 [\\/]* | ?:[\\/]*)
32749 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32750 ;;
32751 *)
32752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32753for as_dir in $PATH
32754do
32755 IFS=$as_save_IFS
32756 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032759 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032761 break 2
32762 fi
32763done
cristy8b350f62009-11-15 23:12:43 +000032764 done
cristy3ed852e2009-09-05 21:47:34 +000032765IFS=$as_save_IFS
32766
32767 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32768 ;;
32769esac
32770fi
32771MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32772if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032774$as_echo "$MogrifyDelegate" >&6; }
32775else
cristy8b350f62009-11-15 23:12:43 +000032776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032777$as_echo "no" >&6; }
32778fi
32779
32780
32781# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32782set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032785if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032786 $as_echo_n "(cached) " >&6
32787else
32788 case $GnuplotDecodeDelegate in
32789 [\\/]* | ?:[\\/]*)
32790 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32791 ;;
32792 *)
32793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32794for as_dir in $PATH
32795do
32796 IFS=$as_save_IFS
32797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032800 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032802 break 2
32803 fi
32804done
cristy8b350f62009-11-15 23:12:43 +000032805 done
cristy3ed852e2009-09-05 21:47:34 +000032806IFS=$as_save_IFS
32807
32808 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32809 ;;
32810esac
32811fi
32812GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32813if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032815$as_echo "$GnuplotDecodeDelegate" >&6; }
32816else
cristy8b350f62009-11-15 23:12:43 +000032817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032818$as_echo "no" >&6; }
32819fi
32820
32821
cristy3ed852e2009-09-05 21:47:34 +000032822# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32823set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032826if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032827 $as_echo_n "(cached) " >&6
32828else
32829 case $HPGLDecodeDelegate in
32830 [\\/]* | ?:[\\/]*)
32831 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32832 ;;
32833 *)
32834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32835for as_dir in $PATH
32836do
32837 IFS=$as_save_IFS
32838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032841 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032843 break 2
32844 fi
32845done
cristy8b350f62009-11-15 23:12:43 +000032846 done
cristy3ed852e2009-09-05 21:47:34 +000032847IFS=$as_save_IFS
32848
32849 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32850 ;;
32851esac
32852fi
32853HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32854if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032856$as_echo "$HPGLDecodeDelegate" >&6; }
32857else
cristy8b350f62009-11-15 23:12:43 +000032858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032859$as_echo "no" >&6; }
32860fi
32861
32862
32863# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32864set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032866$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032867if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032868 $as_echo_n "(cached) " >&6
32869else
32870 case $HTMLDecodeDelegate in
32871 [\\/]* | ?:[\\/]*)
32872 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32873 ;;
32874 *)
32875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32876for as_dir in $PATH
32877do
32878 IFS=$as_save_IFS
32879 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032882 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032884 break 2
32885 fi
32886done
cristy8b350f62009-11-15 23:12:43 +000032887 done
cristy3ed852e2009-09-05 21:47:34 +000032888IFS=$as_save_IFS
32889
32890 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32891 ;;
32892esac
32893fi
32894HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32895if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032897$as_echo "$HTMLDecodeDelegate" >&6; }
32898else
cristy8b350f62009-11-15 23:12:43 +000032899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032900$as_echo "no" >&6; }
32901fi
32902
32903
32904# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32905set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032907$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032908if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032909 $as_echo_n "(cached) " >&6
32910else
32911 case $ILBMDecodeDelegate in
32912 [\\/]* | ?:[\\/]*)
32913 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32914 ;;
32915 *)
32916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32917for as_dir in $PATH
32918do
32919 IFS=$as_save_IFS
32920 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032923 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032925 break 2
32926 fi
32927done
cristy8b350f62009-11-15 23:12:43 +000032928 done
cristy3ed852e2009-09-05 21:47:34 +000032929IFS=$as_save_IFS
32930
32931 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32932 ;;
32933esac
32934fi
32935ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32936if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032938$as_echo "$ILBMDecodeDelegate" >&6; }
32939else
cristy8b350f62009-11-15 23:12:43 +000032940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032941$as_echo "no" >&6; }
32942fi
32943
32944
32945# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32946set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032948$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032949if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032950 $as_echo_n "(cached) " >&6
32951else
32952 case $ILBMEncodeDelegate in
32953 [\\/]* | ?:[\\/]*)
32954 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32955 ;;
32956 *)
32957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32958for as_dir in $PATH
32959do
32960 IFS=$as_save_IFS
32961 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032964 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032966 break 2
32967 fi
32968done
cristy8b350f62009-11-15 23:12:43 +000032969 done
cristy3ed852e2009-09-05 21:47:34 +000032970IFS=$as_save_IFS
32971
32972 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32973 ;;
32974esac
32975fi
32976ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32977if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032979$as_echo "$ILBMEncodeDelegate" >&6; }
32980else
cristy8b350f62009-11-15 23:12:43 +000032981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032982$as_echo "no" >&6; }
32983fi
32984
32985
32986# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32987set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032989$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032990if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032991 $as_echo_n "(cached) " >&6
32992else
32993 case $LPDelegate in
32994 [\\/]* | ?:[\\/]*)
32995 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32996 ;;
32997 *)
32998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32999for as_dir in $PATH
33000do
33001 IFS=$as_save_IFS
33002 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033003 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033005 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033007 break 2
33008 fi
33009done
cristy8b350f62009-11-15 23:12:43 +000033010 done
cristy3ed852e2009-09-05 21:47:34 +000033011IFS=$as_save_IFS
33012
33013 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33014 ;;
33015esac
33016fi
33017LPDelegate=$ac_cv_path_LPDelegate
33018if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033020$as_echo "$LPDelegate" >&6; }
33021else
cristy8b350f62009-11-15 23:12:43 +000033022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033023$as_echo "no" >&6; }
33024fi
33025
33026
33027# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33028set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033031if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033032 $as_echo_n "(cached) " >&6
33033else
33034 case $LPRDelegate in
33035 [\\/]* | ?:[\\/]*)
33036 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33037 ;;
33038 *)
33039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33040for as_dir in $PATH
33041do
33042 IFS=$as_save_IFS
33043 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033044 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033046 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033048 break 2
33049 fi
33050done
cristy8b350f62009-11-15 23:12:43 +000033051 done
cristy3ed852e2009-09-05 21:47:34 +000033052IFS=$as_save_IFS
33053
33054 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33055 ;;
33056esac
33057fi
33058LPRDelegate=$ac_cv_path_LPRDelegate
33059if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033061$as_echo "$LPRDelegate" >&6; }
33062else
cristy8b350f62009-11-15 23:12:43 +000033063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033064$as_echo "no" >&6; }
33065fi
33066
33067
cristy3ed852e2009-09-05 21:47:34 +000033068# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33069set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033071$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033072if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033073 $as_echo_n "(cached) " >&6
33074else
33075 case $LaunchDelegate in
33076 [\\/]* | ?:[\\/]*)
33077 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33078 ;;
33079 *)
33080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33081for as_dir in $PATH
33082do
33083 IFS=$as_save_IFS
33084 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033085 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033087 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033089 break 2
33090 fi
33091done
cristy8b350f62009-11-15 23:12:43 +000033092 done
cristy3ed852e2009-09-05 21:47:34 +000033093IFS=$as_save_IFS
33094
33095 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33096 ;;
33097esac
33098fi
33099LaunchDelegate=$ac_cv_path_LaunchDelegate
33100if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033102$as_echo "$LaunchDelegate" >&6; }
33103else
cristy8b350f62009-11-15 23:12:43 +000033104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033105$as_echo "no" >&6; }
33106fi
33107
33108
33109# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33110set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033112$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033113if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033114 $as_echo_n "(cached) " >&6
33115else
33116 case $MANDelegate in
33117 [\\/]* | ?:[\\/]*)
33118 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33119 ;;
33120 *)
33121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33122for as_dir in $PATH
33123do
33124 IFS=$as_save_IFS
33125 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033126 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033128 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033130 break 2
33131 fi
33132done
cristy8b350f62009-11-15 23:12:43 +000033133 done
cristy3ed852e2009-09-05 21:47:34 +000033134IFS=$as_save_IFS
33135
33136 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33137 ;;
33138esac
33139fi
33140MANDelegate=$ac_cv_path_MANDelegate
33141if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033143$as_echo "$MANDelegate" >&6; }
33144else
cristy8b350f62009-11-15 23:12:43 +000033145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033146$as_echo "no" >&6; }
33147fi
33148
33149
33150# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33151set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033153$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033154if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033155 $as_echo_n "(cached) " >&6
33156else
33157 case $MPEGDecodeDelegate in
33158 [\\/]* | ?:[\\/]*)
33159 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33160 ;;
33161 *)
33162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33163for as_dir in $PATH
33164do
33165 IFS=$as_save_IFS
33166 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033167 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033169 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033171 break 2
33172 fi
33173done
cristy8b350f62009-11-15 23:12:43 +000033174 done
cristy3ed852e2009-09-05 21:47:34 +000033175IFS=$as_save_IFS
33176
33177 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33178 ;;
33179esac
33180fi
33181MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33182if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033184$as_echo "$MPEGDecodeDelegate" >&6; }
33185else
cristy8b350f62009-11-15 23:12:43 +000033186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033187$as_echo "no" >&6; }
33188fi
33189
33190
33191# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33192set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033194$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033195if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033196 $as_echo_n "(cached) " >&6
33197else
33198 case $MPEGEncodeDelegate in
33199 [\\/]* | ?:[\\/]*)
33200 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33201 ;;
33202 *)
33203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33204for as_dir in $PATH
33205do
33206 IFS=$as_save_IFS
33207 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033210 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033212 break 2
33213 fi
33214done
cristy8b350f62009-11-15 23:12:43 +000033215 done
cristy3ed852e2009-09-05 21:47:34 +000033216IFS=$as_save_IFS
33217
33218 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33219 ;;
33220esac
33221fi
33222MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33223if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033225$as_echo "$MPEGEncodeDelegate" >&6; }
33226else
cristy8b350f62009-11-15 23:12:43 +000033227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033228$as_echo "no" >&6; }
33229fi
33230
33231
cristy935c86e2010-06-05 23:50:07 +000033232# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33233set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33235$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033236if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033237 $as_echo_n "(cached) " >&6
33238else
33239 case $MrSIDDecodeDelegate in
33240 [\\/]* | ?:[\\/]*)
33241 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33242 ;;
33243 *)
33244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33245for as_dir in $PATH
33246do
33247 IFS=$as_save_IFS
33248 test -z "$as_dir" && as_dir=.
33249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033251 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33253 break 2
33254 fi
33255done
33256 done
33257IFS=$as_save_IFS
33258
33259 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33260 ;;
33261esac
33262fi
33263MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33264if test -n "$MrSIDDecodeDelegate"; then
33265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33266$as_echo "$MrSIDDecodeDelegate" >&6; }
33267else
33268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33269$as_echo "no" >&6; }
33270fi
33271
33272
cristy3ed852e2009-09-05 21:47:34 +000033273# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33274set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033276$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033277if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033278 $as_echo_n "(cached) " >&6
33279else
33280 case $MVDelegate in
33281 [\\/]* | ?:[\\/]*)
33282 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33283 ;;
33284 *)
33285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33286for as_dir in $PATH
33287do
33288 IFS=$as_save_IFS
33289 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033290 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033292 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033294 break 2
33295 fi
33296done
cristy8b350f62009-11-15 23:12:43 +000033297 done
cristy3ed852e2009-09-05 21:47:34 +000033298IFS=$as_save_IFS
33299
33300 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33301 ;;
33302esac
33303fi
33304MVDelegate=$ac_cv_path_MVDelegate
33305if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033307$as_echo "$MVDelegate" >&6; }
33308else
cristy8b350f62009-11-15 23:12:43 +000033309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033310$as_echo "no" >&6; }
33311fi
33312
33313
33314# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33315set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033317$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033318if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033319 $as_echo_n "(cached) " >&6
33320else
33321 case $PCLDelegate in
33322 [\\/]* | ?:[\\/]*)
33323 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33324 ;;
33325 *)
33326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33327for as_dir in $PATH
33328do
33329 IFS=$as_save_IFS
33330 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033333 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033335 break 2
33336 fi
33337done
cristy8b350f62009-11-15 23:12:43 +000033338 done
cristy3ed852e2009-09-05 21:47:34 +000033339IFS=$as_save_IFS
33340
33341 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33342 ;;
33343esac
33344fi
33345PCLDelegate=$ac_cv_path_PCLDelegate
33346if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033348$as_echo "$PCLDelegate" >&6; }
33349else
cristy8b350f62009-11-15 23:12:43 +000033350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033351$as_echo "no" >&6; }
33352fi
33353
33354
33355# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33356set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033358$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033359if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033360 $as_echo_n "(cached) " >&6
33361else
33362 case $PGPDecodeDelegate in
33363 [\\/]* | ?:[\\/]*)
33364 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33365 ;;
33366 *)
33367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33368for as_dir in $PATH
33369do
33370 IFS=$as_save_IFS
33371 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033372 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033374 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033376 break 2
33377 fi
33378done
cristy8b350f62009-11-15 23:12:43 +000033379 done
cristy3ed852e2009-09-05 21:47:34 +000033380IFS=$as_save_IFS
33381
33382 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33383 ;;
33384esac
33385fi
33386PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33387if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033389$as_echo "$PGPDecodeDelegate" >&6; }
33390else
cristy8b350f62009-11-15 23:12:43 +000033391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033392$as_echo "no" >&6; }
33393fi
33394
33395
33396# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33397set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033399$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033400if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033401 $as_echo_n "(cached) " >&6
33402else
33403 case $POVDelegate in
33404 [\\/]* | ?:[\\/]*)
33405 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33406 ;;
33407 *)
33408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33409for as_dir in $PATH
33410do
33411 IFS=$as_save_IFS
33412 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033413 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033415 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033417 break 2
33418 fi
33419done
cristy8b350f62009-11-15 23:12:43 +000033420 done
cristy3ed852e2009-09-05 21:47:34 +000033421IFS=$as_save_IFS
33422
33423 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33424 ;;
33425esac
33426fi
33427POVDelegate=$ac_cv_path_POVDelegate
33428if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033430$as_echo "$POVDelegate" >&6; }
33431else
cristy8b350f62009-11-15 23:12:43 +000033432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033433$as_echo "no" >&6; }
33434fi
33435
33436
33437for ac_prog in gsx gsc "$PSDelegateDefault"
33438do
33439 # Extract the first word of "$ac_prog", so it can be a program name with args.
33440set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033442$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033443if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033444 $as_echo_n "(cached) " >&6
33445else
33446 case $PSDelegate in
33447 [\\/]* | ?:[\\/]*)
33448 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33449 ;;
33450 *)
33451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33452for as_dir in $PATH
33453do
33454 IFS=$as_save_IFS
33455 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033456 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033458 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033460 break 2
33461 fi
33462done
cristy8b350f62009-11-15 23:12:43 +000033463 done
cristy3ed852e2009-09-05 21:47:34 +000033464IFS=$as_save_IFS
33465
33466 ;;
33467esac
33468fi
33469PSDelegate=$ac_cv_path_PSDelegate
33470if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033472$as_echo "$PSDelegate" >&6; }
33473else
cristy8b350f62009-11-15 23:12:43 +000033474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033475$as_echo "no" >&6; }
33476fi
33477
33478
33479 test -n "$PSDelegate" && break
33480done
33481test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33482
33483# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33484set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033486$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033487if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033488 $as_echo_n "(cached) " >&6
33489else
33490 case $RLEEncodeDelegate in
33491 [\\/]* | ?:[\\/]*)
33492 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33493 ;;
33494 *)
33495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33496for as_dir in $PATH
33497do
33498 IFS=$as_save_IFS
33499 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033502 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033504 break 2
33505 fi
33506done
cristy8b350f62009-11-15 23:12:43 +000033507 done
cristy3ed852e2009-09-05 21:47:34 +000033508IFS=$as_save_IFS
33509
33510 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33511 ;;
33512esac
33513fi
33514RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33515if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033517$as_echo "$RLEEncodeDelegate" >&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# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33525set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033527$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033528if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033529 $as_echo_n "(cached) " >&6
33530else
33531 case $RMDelegate in
33532 [\\/]* | ?:[\\/]*)
33533 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33534 ;;
33535 *)
33536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33537for as_dir in $PATH
33538do
33539 IFS=$as_save_IFS
33540 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033543 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033545 break 2
33546 fi
33547done
cristy8b350f62009-11-15 23:12:43 +000033548 done
cristy3ed852e2009-09-05 21:47:34 +000033549IFS=$as_save_IFS
33550
33551 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33552 ;;
33553esac
33554fi
33555RMDelegate=$ac_cv_path_RMDelegate
33556if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033558$as_echo "$RMDelegate" >&6; }
33559else
cristy8b350f62009-11-15 23:12:43 +000033560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033561$as_echo "no" >&6; }
33562fi
33563
33564
cristy4689cf02010-02-17 21:15:45 +000033565# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33566set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33568$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033569if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033570 $as_echo_n "(cached) " >&6
33571else
33572 case $RSVGDecodeDelegate in
33573 [\\/]* | ?:[\\/]*)
33574 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33575 ;;
33576 *)
33577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33578for as_dir in $PATH
33579do
33580 IFS=$as_save_IFS
33581 test -z "$as_dir" && as_dir=.
33582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033584 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33586 break 2
33587 fi
33588done
33589 done
33590IFS=$as_save_IFS
33591
33592 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33593 ;;
33594esac
33595fi
33596RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33597if test -n "$RSVGDecodeDelegate"; then
33598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33599$as_echo "$RSVGDecodeDelegate" >&6; }
33600else
33601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33602$as_echo "no" >&6; }
33603fi
33604
33605
cristy3ed852e2009-09-05 21:47:34 +000033606# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33607set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033609$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033610if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033611 $as_echo_n "(cached) " >&6
33612else
33613 case $SCANDecodeDelegate in
33614 [\\/]* | ?:[\\/]*)
33615 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33616 ;;
33617 *)
33618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33619for as_dir in $PATH
33620do
33621 IFS=$as_save_IFS
33622 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033625 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033627 break 2
33628 fi
33629done
cristy8b350f62009-11-15 23:12:43 +000033630 done
cristy3ed852e2009-09-05 21:47:34 +000033631IFS=$as_save_IFS
33632
33633 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33634 ;;
33635esac
33636fi
33637SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33638if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033640$as_echo "$SCANDecodeDelegate" >&6; }
33641else
cristy8b350f62009-11-15 23:12:43 +000033642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033643$as_echo "no" >&6; }
33644fi
33645
33646
cristyec6934f2012-08-14 18:38:40 +000033647# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
33648set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
33649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33650$as_echo_n "checking for $ac_word... " >&6; }
33651if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
33652 $as_echo_n "(cached) " >&6
33653else
33654 case $SVGDecodeDelegate in
33655 [\\/]* | ?:[\\/]*)
33656 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
33657 ;;
33658 *)
33659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33660for as_dir in $PATH
33661do
33662 IFS=$as_save_IFS
33663 test -z "$as_dir" && as_dir=.
33664 for ac_exec_ext in '' $ac_executable_extensions; do
33665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33666 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33668 break 2
33669 fi
33670done
33671 done
33672IFS=$as_save_IFS
33673
33674 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
33675 ;;
33676esac
33677fi
33678SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
33679if test -n "$SVGDecodeDelegate"; then
33680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
33681$as_echo "$SVGDecodeDelegate" >&6; }
33682else
33683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33684$as_echo "no" >&6; }
33685fi
33686
33687
cristy3ed852e2009-09-05 21:47:34 +000033688# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33689set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033691$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033692if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033693 $as_echo_n "(cached) " >&6
33694else
33695 case $TXTDelegate in
33696 [\\/]* | ?:[\\/]*)
33697 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33698 ;;
33699 *)
33700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33701for as_dir in $PATH
33702do
33703 IFS=$as_save_IFS
33704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033707 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033709 break 2
33710 fi
33711done
cristy8b350f62009-11-15 23:12:43 +000033712 done
cristy3ed852e2009-09-05 21:47:34 +000033713IFS=$as_save_IFS
33714
33715 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33716 ;;
33717esac
33718fi
33719TXTDelegate=$ac_cv_path_TXTDelegate
33720if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033722$as_echo "$TXTDelegate" >&6; }
33723else
cristy8b350f62009-11-15 23:12:43 +000033724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033725$as_echo "no" >&6; }
33726fi
33727
33728
cristy5ac9ac82010-07-29 13:24:24 +000033729# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33730set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33732$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033733if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033734 $as_echo_n "(cached) " >&6
33735else
33736 case $UniconvertorDelegate in
33737 [\\/]* | ?:[\\/]*)
33738 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33739 ;;
33740 *)
33741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33742for as_dir in $PATH
33743do
33744 IFS=$as_save_IFS
33745 test -z "$as_dir" && as_dir=.
33746 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000033748 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33750 break 2
33751 fi
33752done
33753 done
33754IFS=$as_save_IFS
33755
33756 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33757 ;;
33758esac
33759fi
33760UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33761if test -n "$UniconvertorDelegate"; then
33762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33763$as_echo "$UniconvertorDelegate" >&6; }
33764else
33765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33766$as_echo "no" >&6; }
33767fi
33768
33769
cristy3ed852e2009-09-05 21:47:34 +000033770# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33771set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033773$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033774if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033775 $as_echo_n "(cached) " >&6
33776else
33777 case $WMFDecodeDelegate in
33778 [\\/]* | ?:[\\/]*)
33779 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33780 ;;
33781 *)
33782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33783for as_dir in $PATH
33784do
33785 IFS=$as_save_IFS
33786 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033787 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033789 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033791 break 2
33792 fi
33793done
cristy8b350f62009-11-15 23:12:43 +000033794 done
cristy3ed852e2009-09-05 21:47:34 +000033795IFS=$as_save_IFS
33796
33797 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33798 ;;
33799esac
33800fi
33801WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33802if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033804$as_echo "$WMFDecodeDelegate" >&6; }
33805else
cristy8b350f62009-11-15 23:12:43 +000033806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033807$as_echo "no" >&6; }
33808fi
33809
33810
33811# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33812set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033814$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033815if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033816 $as_echo_n "(cached) " >&6
33817else
33818 case $WWWDecodeDelegate in
33819 [\\/]* | ?:[\\/]*)
33820 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33821 ;;
33822 *)
33823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33824for as_dir in $PATH
33825do
33826 IFS=$as_save_IFS
33827 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033830 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033832 break 2
33833 fi
33834done
cristy8b350f62009-11-15 23:12:43 +000033835 done
cristy3ed852e2009-09-05 21:47:34 +000033836IFS=$as_save_IFS
33837
33838 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33839 ;;
33840esac
33841fi
33842WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33843if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033845$as_echo "$WWWDecodeDelegate" >&6; }
33846else
cristy8b350f62009-11-15 23:12:43 +000033847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033848$as_echo "no" >&6; }
33849fi
33850
33851
33852# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33853set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033856if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033857 $as_echo_n "(cached) " >&6
33858else
33859 case $XPSDelegate in
33860 [\\/]* | ?:[\\/]*)
33861 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33862 ;;
33863 *)
33864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33865for as_dir in $PATH
33866do
33867 IFS=$as_save_IFS
33868 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033871 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033873 break 2
33874 fi
33875done
cristy8b350f62009-11-15 23:12:43 +000033876 done
cristy3ed852e2009-09-05 21:47:34 +000033877IFS=$as_save_IFS
33878
33879 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33880 ;;
33881esac
33882fi
33883XPSDelegate=$ac_cv_path_XPSDelegate
33884if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033886$as_echo "$XPSDelegate" >&6; }
33887else
cristy8b350f62009-11-15 23:12:43 +000033888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033889$as_echo "no" >&6; }
33890fi
33891
33892
33893# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33894set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033896$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033897if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033898 $as_echo_n "(cached) " >&6
33899else
33900 case $ZipDelegate in
33901 [\\/]* | ?:[\\/]*)
33902 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33903 ;;
33904 *)
33905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33906for as_dir in $PATH
33907do
33908 IFS=$as_save_IFS
33909 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033912 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033914 break 2
33915 fi
33916done
cristy8b350f62009-11-15 23:12:43 +000033917 done
cristy3ed852e2009-09-05 21:47:34 +000033918IFS=$as_save_IFS
33919
33920 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33921 ;;
33922esac
33923fi
33924ZipDelegate=$ac_cv_path_ZipDelegate
33925if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033927$as_echo "$ZipDelegate" >&6; }
33928else
cristy8b350f62009-11-15 23:12:43 +000033929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033930$as_echo "no" >&6; }
33931fi
33932
33933
33934
33935# Prefer lpr to lp; lp needs options tacked on.
33936if test "$LPRDelegate" != no; then
33937 PrintDelegate="$LPRDelegate"
33938else
33939 PrintDelegate="$LPDelegate -c -s"
33940fi
33941
33942
33943# Installed ImageMagick utiltity paths
33944ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33945DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33946MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33947
33948# Set delegate booleans
33949have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33950have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33951have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33952have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33953have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033954have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033955have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33956have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033957have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33958have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33959
33960#
33961# Test for font directories
33962#
33963type_include_files=''
33964
cristy430a7312010-01-21 20:44:04 +000033965# Dejavu fonts.
33966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33967$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33968dejavu_font_dir=''
33969if test "${with_dejavu_font_dir}" != 'default'; then
33970 dejavu_font_dir="${with_dejavu_font_dir}/"
33971else
33972 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33973 if test -f "${font_dir}DejaVuSerif.ttf"; then
33974 dejavu_font_dir="${font_dir}"
33975 break 1
33976 fi
33977 done
33978fi
33979if test "${dejavu_font_dir}x" != 'x'; then
33980 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000033981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
33982$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000033983else
cristyad38abe2012-12-23 23:03:21 +000033984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33985$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000033986fi
33987
33988
cristy3ed852e2009-09-05 21:47:34 +000033989# Windows
33990windows_font_dir=''
33991if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33992 windows_font_dir="${with_windows_font_dir}/"
33993fi
cristy430a7312010-01-21 20:44:04 +000033994if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033995 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33996 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33997 fi
33998 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33999 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34000 fi
34001 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34002 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34003 fi
34004fi
cristy430a7312010-01-21 20:44:04 +000034005if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034006 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34007fi
34008
34009
34010# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034012$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34013ghostscript_font_dir=''
34014if test "${with_gs_font_dir}" != 'default'; then
34015 ghostscript_font_dir="${with_gs_font_dir}/"
34016else
34017 if test "${native_win32_build}" = 'yes'; then
34018 # Native Windows Build
34019 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34020 if test -f "${font_dir}a010013l.pfb"; then
34021 ghostscript_font_dir="$font_dir"
34022 break 1
34023 fi
34024 done
34025 if test "${PSDelegate}" != 'gswin32c'; then
34026 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34027 fi
34028 else
34029 # Linux / Mac OS X / Unix Build
34030 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
34031 if test -f "${font_dir}a010013l.pfb"; then
34032 ghostscript_font_dir="${font_dir}"
34033 break 1
34034 fi
34035 done
34036 if test "${ghostscript_font_dir}x" = 'x'; then
34037 if test "$PSDelegate" != 'gs'; then
34038 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34039 fi
34040 fi
34041 fi
34042fi
34043if test "${ghostscript_font_dir}x" != 'x'; then
34044 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34046$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034047else
cristyad38abe2012-12-23 23:03:21 +000034048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34049$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034050fi
34051
34052case "${build_os}" in
34053 mingw* )
34054 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34055 ;;
34056esac
34057
34058
34059
34060#
34061# Handle case where user doesn't want frozen paths
34062#
34063if test "$with_frozenpaths" != 'yes'; then
34064 # Re-set delegate definitions to default (no paths)
34065 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034066 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34067 BZIPDelegate="$BZIPDelegateDefault"
34068 BrowseDelegate="$BrowseDelegateDefault"
34069 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34070 CatDelegate="$CatDelegateDefault"
34071 ConvertDelegate="$ConvertDelegateDefault"
34072 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34073 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34074 EchoDelegate="$EchoDelegateDefault"
34075 EditorDelegate="$EditorDelegateDefault"
34076 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34077 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34078 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34079 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34080 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34081 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34082 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034083 LaunchDelegate="$LaunchDelegateDefault"
34084 MANDelegate="$MANDelegateDefault"
34085 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34086 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034087 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034088 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34089 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034090 PCLDelegate="$PCLDelegateDefault"
34091 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34092 POVDelegate="$POVDelegateDefault"
34093 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034094 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34095 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034096 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034097 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034098 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034099 ShowImageDelegate="$ShowImageDelegateDefault"
34100 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034101 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034102 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34103 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34104 XPSDelegate="$XPSDelegateDefault"
34105 ZipDelegate="$ZipDelegateDefault"
34106fi
34107
34108# Delegate substitutions
34109
34110
34111
34112
34113
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136
34137
34138
34139
34140
34141
34142
34143
34144
34145
34146
34147
34148
cristy3ed852e2009-09-05 21:47:34 +000034149#
34150# RPM support.
34151#
34152RPM=''
34153for ac_prog in gnutar gtar tar
34154do
34155 # Extract the first word of "$ac_prog", so it can be a program name with args.
34156set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034158$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034159if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034160 $as_echo_n "(cached) " >&6
34161else
34162 if test -n "$TAR"; then
34163 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34164else
34165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34166for as_dir in $PATH
34167do
34168 IFS=$as_save_IFS
34169 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034172 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034174 break 2
34175 fi
34176done
cristy8b350f62009-11-15 23:12:43 +000034177 done
cristy3ed852e2009-09-05 21:47:34 +000034178IFS=$as_save_IFS
34179
34180fi
34181fi
34182TAR=$ac_cv_prog_TAR
34183if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034185$as_echo "$TAR" >&6; }
34186else
cristy8b350f62009-11-15 23:12:43 +000034187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034188$as_echo "no" >&6; }
34189fi
34190
34191
34192 test -n "$TAR" && break
34193done
34194
34195for ac_prog in perl
34196do
34197 # Extract the first word of "$ac_prog", so it can be a program name with args.
34198set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034200$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034201if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034202 $as_echo_n "(cached) " >&6
34203else
34204 if test -n "$PERL"; then
34205 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34206else
34207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34208for as_dir in $PATH
34209do
34210 IFS=$as_save_IFS
34211 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034212 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034214 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034216 break 2
34217 fi
34218done
cristy8b350f62009-11-15 23:12:43 +000034219 done
cristy3ed852e2009-09-05 21:47:34 +000034220IFS=$as_save_IFS
34221
34222fi
34223fi
34224PERL=$ac_cv_prog_PERL
34225if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034227$as_echo "$PERL" >&6; }
34228else
cristy8b350f62009-11-15 23:12:43 +000034229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034230$as_echo "no" >&6; }
34231fi
34232
34233
34234 test -n "$PERL" && break
34235done
34236
34237for ac_prog in rpmbuild rpm
34238do
34239 # Extract the first word of "$ac_prog", so it can be a program name with args.
34240set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034242$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034243if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034244 $as_echo_n "(cached) " >&6
34245else
34246 if test -n "$RPM"; then
34247 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34248else
34249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34250for as_dir in $PATH
34251do
34252 IFS=$as_save_IFS
34253 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034254 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034256 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034258 break 2
34259 fi
34260done
cristy8b350f62009-11-15 23:12:43 +000034261 done
cristy3ed852e2009-09-05 21:47:34 +000034262IFS=$as_save_IFS
34263
34264fi
34265fi
34266RPM=$ac_cv_prog_RPM
34267if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034269$as_echo "$RPM" >&6; }
34270else
cristy8b350f62009-11-15 23:12:43 +000034271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034272$as_echo "no" >&6; }
34273fi
34274
34275
34276 test -n "$RPM" && break
34277done
34278
34279
cristy73bd4a52010-10-05 11:24:23 +000034280ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34281
34282
34283AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34284
34285
34286AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34287
34288
34289AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34290
34291
34292 if test "x$RPM" != "x" ; then
34293 RPM_DELEGATE_TRUE=
34294 RPM_DELEGATE_FALSE='#'
34295else
34296 RPM_DELEGATE_TRUE='#'
34297 RPM_DELEGATE_FALSE=
34298fi
34299
cristy3ed852e2009-09-05 21:47:34 +000034300
34301#
34302# 7ZIP support (http://p7zip.sourceforge.net/)
34303#
34304P7ZIP=''
34305for ac_prog in 7za
34306do
34307 # Extract the first word of "$ac_prog", so it can be a program name with args.
34308set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034310$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034311if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034312 $as_echo_n "(cached) " >&6
34313else
34314 if test -n "$P7ZIP"; then
34315 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34316else
34317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34318for as_dir in $PATH
34319do
34320 IFS=$as_save_IFS
34321 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034324 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034326 break 2
34327 fi
34328done
cristy8b350f62009-11-15 23:12:43 +000034329 done
cristy3ed852e2009-09-05 21:47:34 +000034330IFS=$as_save_IFS
34331
34332fi
34333fi
34334P7ZIP=$ac_cv_prog_P7ZIP
34335if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034337$as_echo "$P7ZIP" >&6; }
34338else
cristy8b350f62009-11-15 23:12:43 +000034339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034340$as_echo "no" >&6; }
34341fi
34342
34343
34344 test -n "$P7ZIP" && break
34345done
34346
34347
cristy73bd4a52010-10-05 11:24:23 +000034348 if test "x$P7ZIP" != "x" ; then
34349 P7ZIP_DELEGATE_TRUE=
34350 P7ZIP_DELEGATE_FALSE='#'
34351else
34352 P7ZIP_DELEGATE_TRUE='#'
34353 P7ZIP_DELEGATE_FALSE=
34354fi
34355
cristy3ed852e2009-09-05 21:47:34 +000034356
34357#
34358# ZIP support (http://www.info-zip.org/Zip.html)
34359#
34360ZIP=''
34361for ac_prog in zip
34362do
34363 # Extract the first word of "$ac_prog", so it can be a program name with args.
34364set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034366$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034367if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034368 $as_echo_n "(cached) " >&6
34369else
34370 if test -n "$ZIP"; then
34371 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34372else
34373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34374for as_dir in $PATH
34375do
34376 IFS=$as_save_IFS
34377 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034380 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034382 break 2
34383 fi
34384done
cristy8b350f62009-11-15 23:12:43 +000034385 done
cristy3ed852e2009-09-05 21:47:34 +000034386IFS=$as_save_IFS
34387
34388fi
34389fi
34390ZIP=$ac_cv_prog_ZIP
34391if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034393$as_echo "$ZIP" >&6; }
34394else
cristy8b350f62009-11-15 23:12:43 +000034395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034396$as_echo "no" >&6; }
34397fi
34398
34399
34400 test -n "$ZIP" && break
34401done
34402
34403
cristy73bd4a52010-10-05 11:24:23 +000034404 if test "x$ZIP" != "x" ; then
34405 ZIP_DELEGATE_TRUE=
34406 ZIP_DELEGATE_FALSE='#'
34407else
34408 ZIP_DELEGATE_TRUE='#'
34409 ZIP_DELEGATE_FALSE=
34410fi
34411
cristy3ed852e2009-09-05 21:47:34 +000034412
34413#
34414# GhostPCL related configuration.
34415#
34416PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034417PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034418PCLMonoDevice=pbmraw
34419if test -z "$PCLVersion"; then
34420 PCLVersion='unknown'
34421fi
34422if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34424$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034426$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34428$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034429 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034431$as_echo_n "checking for pcl color device... " >&6; }
34432 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34433 :
34434 else
34435 PCLColorDevice=ppmraw
34436 fi
cristyad38abe2012-12-23 23:03:21 +000034437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34438$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034439
34440 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034442$as_echo_n "checking for pcl CMYK device... " >&6; }
34443 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34444 :
34445 else
34446 PCLCMYKDevice=$PCLColorDevice
34447 fi
cristyad38abe2012-12-23 23:03:21 +000034448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34449$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034450
34451 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034453$as_echo_n "checking for pcl mono device... " >&6; }
34454 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34455 :
34456 else
34457 PCLMonoDevice=$PCLColorDevice
34458 fi
cristyad38abe2012-12-23 23:03:21 +000034459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34460$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034461fi
34462
34463
34464
34465
34466
34467
34468#
34469# GhostXPS related configuration.
34470#
34471XPSColorDevice=ppmraw
34472XPSCMYKDevice=bmpsep8
34473XPSMonoDevice=pbmraw
34474if test -z "$XPSVersion"; then
34475 XPSVersion='unknown'
34476fi
34477if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34479$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034481$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34483$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034484 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034486$as_echo_n "checking for xps color device... " >&6; }
34487 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34488 :
34489 else
34490 XPSColorDevice=ppmraw
34491 fi
cristyad38abe2012-12-23 23:03:21 +000034492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
34493$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034494
34495 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034497$as_echo_n "checking for xps CMYK device... " >&6; }
34498 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34499 :
34500 else
34501 XPSCMYKDevice=$XPSColorDevice
34502 fi
cristyad38abe2012-12-23 23:03:21 +000034503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
34504$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034505
34506 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034508$as_echo_n "checking for xps mono device... " >&6; }
34509 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34510 :
34511 else
34512 XPSMonoDevice=$XPSColorDevice
34513 fi
cristyad38abe2012-12-23 23:03:21 +000034514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
34515$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034516fi
34517
34518
34519
34520
34521
34522
34523#
34524# Ghostscript related configuration.
34525#
cristya97426c2011-02-04 01:41:27 +000034526GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034527GSColorDevice=pnmraw
34528GSCMYKDevice=pam
34529GSMonoDevice=pbmraw
34530GSPDFDevice=pdfwrite
34531GSPSDevice=pswrite
34532GSEPSDevice=epswrite
34533GSVersion='unknown'
34534if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34536$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034538$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34540$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034542$as_echo_n "checking for Ghostscript version... " >&6; }
34543 if GSVersion=`$PSDelegate --version`; then
34544 :
34545 else
34546 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34547 fi
cristyad38abe2012-12-23 23:03:21 +000034548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
34549$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034550
34551 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034553$as_echo_n "checking for gs alpha device... " >&6; }
34554 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34555 :
34556 else
34557 GSAlphaDevice=pnmraw
34558 fi
cristyad38abe2012-12-23 23:03:21 +000034559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
34560$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034561
34562 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034564$as_echo_n "checking for gs color device... " >&6; }
34565 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34566 :
34567 else
34568 GSColorDevice=pnmraw
34569 fi
cristyad38abe2012-12-23 23:03:21 +000034570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
34571$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034572
34573 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034575$as_echo_n "checking for gs CMYK device... " >&6; }
34576 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34577 :
34578 else
34579 GSCMYKDevice=bmpsep8
34580 fi
cristyad38abe2012-12-23 23:03:21 +000034581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
34582$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034583
34584 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034586$as_echo_n "checking for gs mono device... " >&6; }
34587 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34588 :
34589 else
34590 GSMonoDevice=$GSColorDevice
34591 fi
cristyad38abe2012-12-23 23:03:21 +000034592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
34593$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034594
34595 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034597$as_echo_n "checking for gs PDF writing device... " >&6; }
34598 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34599 :
34600 else
34601 GSPDFDevice=nodevice
34602 fi
cristyad38abe2012-12-23 23:03:21 +000034603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
34604$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034605
34606 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034608$as_echo_n "checking for gs PS writing device... " >&6; }
34609 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34610 :
34611 else
34612 GSPSDevice=nodevice
34613 fi
cristyad38abe2012-12-23 23:03:21 +000034614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
34615$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034616
34617 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034619$as_echo_n "checking for gs EPS writing device... " >&6; }
34620 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34621 :
34622 else
34623 GSEPSDevice=nodevice
34624 fi
cristyad38abe2012-12-23 23:03:21 +000034625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
34626$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034627fi
34628
34629
34630
34631
34632
34633
34634
34635
34636
34637
34638#
34639# PerlMagick-related configuration
34640#
34641
34642# Look for PERL if PerlMagick requested
34643# If name/path of desired PERL interpreter is specified, look for that one first
34644have_perl='no'
34645if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000034646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34647$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034649$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34651$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034652 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034654$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034655if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034656 $as_echo_n "(cached) " >&6
34657else
34658 ac_cv_path_PERL="$with_perl"
34659fi
cristy8b350f62009-11-15 23:12:43 +000034660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034661$as_echo "$ac_cv_path_PERL" >&6; };
34662 PERL=$ac_cv_path_PERL
34663 have_perl="$ac_cv_path_PERL"
34664 else
34665 for ac_prog in perl perl5
34666do
34667 # Extract the first word of "$ac_prog", so it can be a program name with args.
34668set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034670$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034671if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034672 $as_echo_n "(cached) " >&6
34673else
34674 case $PERL in
34675 [\\/]* | ?:[\\/]*)
34676 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34677 ;;
34678 *)
34679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34680for as_dir in $PATH
34681do
34682 IFS=$as_save_IFS
34683 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034686 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034688 break 2
34689 fi
34690done
cristy8b350f62009-11-15 23:12:43 +000034691 done
cristy3ed852e2009-09-05 21:47:34 +000034692IFS=$as_save_IFS
34693
34694 ;;
34695esac
34696fi
34697PERL=$ac_cv_path_PERL
34698if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034700$as_echo "$PERL" >&6; }
34701else
cristy8b350f62009-11-15 23:12:43 +000034702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034703$as_echo "no" >&6; }
34704fi
34705
34706
34707 test -n "$PERL" && break
34708done
34709 if test "$ac_cv_path_PERL"; then
34710 have_perl="$ac_cv_path_PERL"
34711 fi
34712 fi
34713fi
34714
cristy949301e2010-01-06 01:38:40 +000034715if test "$with_perl" != 'yes' ; then
34716 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34717fi
34718
34719PERL_SUPPORTS_DESTDIR='no'
34720
cristy3ed852e2009-09-05 21:47:34 +000034721with_perl_static='no'
34722with_perl_dynamic='no'
34723if test "$have_perl" != 'no'; then
34724 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34725 with_perl_static='yes'
34726 fi
34727 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34728 with_perl_dynamic='yes'
34729 fi
34730 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034731
34732
34733
34734
34735 if test -n "$PERL"; then :
34736
34737 ax_perl_version="5.8.1"
34738
34739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34740$as_echo_n "checking for perl version... " >&6; }
34741
34742 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34743
34744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34745$as_echo "$perl_version" >&6; }
34746
34747 PERL_VERSION=$perl_version
34748
34749
34750
34751
34752
34753 # Used to indicate true or false condition
34754 ax_compare_version=false
34755
34756 # Convert the two version strings to be compared into a format that
34757 # allows a simple string comparison. The end result is that a version
34758 # string of the form 1.12.5-r617 will be converted to the form
34759 # 0001001200050617. In other words, each number is zero padded to four
34760 # digits, and non digits are removed.
34761
34762 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34763 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34764 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34765 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34766 -e 's/[^0-9]//g'`
34767
34768
34769 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34770 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34771 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34772 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34773 -e 's/[^0-9]//g'`
34774
34775
34776 ax_compare_version=`echo "x$ax_compare_version_A
34777x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34778
34779
34780
34781 if test "$ax_compare_version" = "true" ; then
34782
34783 :
34784 PERL_SUPPORTS_DESTDIR='yes'
34785
34786 else
34787 :
34788 PERL_SUPPORTS_DESTDIR='no'
34789
34790 fi
34791
34792
34793else
34794
34795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34796$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34797 PERL_SUPPORTS_DESTDIR='no'
34798
cristy3ed852e2009-09-05 21:47:34 +000034799fi
cristy73bd4a52010-10-05 11:24:23 +000034800
34801fi
34802 if test "$have_perl" != 'no'; then
34803 WITH_PERL_TRUE=
34804 WITH_PERL_FALSE='#'
34805else
34806 WITH_PERL_TRUE='#'
34807 WITH_PERL_FALSE=
34808fi
34809
34810 if test $with_perl_static = 'yes'; then
34811 WITH_PERL_STATIC_TRUE=
34812 WITH_PERL_STATIC_FALSE='#'
34813else
34814 WITH_PERL_STATIC_TRUE='#'
34815 WITH_PERL_STATIC_FALSE=
34816fi
34817
34818 if test $with_perl_dynamic = 'yes'; then
34819 WITH_PERL_DYNAMIC_TRUE=
34820 WITH_PERL_DYNAMIC_FALSE='#'
34821else
34822 WITH_PERL_DYNAMIC_TRUE='#'
34823 WITH_PERL_DYNAMIC_FALSE=
34824fi
34825
cristy3ed852e2009-09-05 21:47:34 +000034826
34827
34828# Determine path to pick up MagickCore library from for use with building PerlMagick
34829MAGICKCORE_PATH="${LIB_DIR}"
34830if test $with_perl_static = 'yes'; then
34831 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34832 libtool_objdir=$objdir
34833
34834 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034835 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034836fi
34837
34838
cristy2a3eb392012-12-17 13:39:20 +000034839# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000034840MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000034841if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034842 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000034843fi
cristy2a3eb392012-12-17 13:39:20 +000034844if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034845 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000034846fi
34847if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034848 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000034849fi
34850if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034851 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000034852fi
34853if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034854 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000034855fi
34856if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034857 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000034858fi
34859if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034860 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000034861fi
34862if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034863 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000034864fi
34865if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034866 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000034867fi
34868if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034869 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000034870fi
34871if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034872 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000034873fi
34874if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034875 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000034876fi
34877if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000034878 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000034879fi
34880if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034881 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000034882fi
34883if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034884 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000034885fi
34886if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034887 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000034888fi
34889if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034890 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000034891fi
34892if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034893 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000034894fi
34895if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034896 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000034897fi
34898if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034899 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000034900fi
34901if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034902 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000034903fi
34904have_ps='no'
34905if test "$have_dps" = 'yes' || \
34906 test "$have_gs" = 'yes' || \
34907 test "${native_win32_build}" = 'yes' ; then
34908 have_ps='yes'
34909fi
34910if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034911 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000034912fi
34913if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034914 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000034915fi
34916if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034917 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000034918fi
34919if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034920 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000034921fi
34922if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034923 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000034924fi
34925if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034926 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000034927fi
34928if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034929 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000034930fi
34931if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034932 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000034933fi
34934if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034935 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000034936fi
34937if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034938 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000034939fi
cristy2a3eb392012-12-17 13:39:20 +000034940# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000034941MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000034942MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000034943
34944
cristyfa161182012-12-19 15:45:28 +000034945
cristy3ed852e2009-09-05 21:47:34 +000034946#
34947# Handle special compiler flags
34948#
34949
34950# Add '-p' if prof source profiling support enabled
34951if test "$enable_prof" = 'yes'; then
34952 CFLAGS="-p $CFLAGS"
34953 CXXFLAGS="-p $CXXFLAGS"
34954 LDFLAGS="-p $LDFLAGS"
34955fi
34956
34957# Add '-pg' if gprof source profiling support enabled
34958if test "$enable_gprof" = 'yes'; then
34959 CFLAGS="-pg $CFLAGS"
34960 CXXFLAGS="-pg $CXXFLAGS"
34961 LDFLAGS="-pg $LDFLAGS"
34962fi
34963
34964# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34965# This is a gcc-specific feature
34966if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034968$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034969if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034970 $as_echo_n "(cached) " >&6
34971else
34972 ac_check_lib_save_LIBS=$LIBS
34973LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034975/* end confdefs.h. */
34976
34977/* Override any GCC internal prototype to avoid an error.
34978 Use char because int might match the return type of a GCC
34979 builtin and then its argument prototype would still apply. */
34980#ifdef __cplusplus
34981extern "C"
34982#endif
34983char _gcov_init ();
34984int
34985main ()
34986{
34987return _gcov_init ();
34988 ;
34989 return 0;
34990}
34991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034992if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034993 ac_cv_lib_gcov__gcov_init=yes
34994else
cristy8b350f62009-11-15 23:12:43 +000034995 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034996fi
cristy8b350f62009-11-15 23:12:43 +000034997rm -f core conftest.err conftest.$ac_objext \
34998 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034999LIBS=$ac_check_lib_save_LIBS
35000fi
cristy8b350f62009-11-15 23:12:43 +000035001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035002$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035003if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035004 cat >>confdefs.h <<_ACEOF
35005#define HAVE_LIBGCOV 1
35006_ACEOF
35007
35008 LIBS="-lgcov $LIBS"
35009
35010fi
35011
cristy8b350f62009-11-15 23:12:43 +000035012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035013$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035014if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035015 $as_echo_n "(cached) " >&6
35016else
35017 ac_check_lib_save_LIBS=$LIBS
35018LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035020/* end confdefs.h. */
35021
35022/* Override any GCC internal prototype to avoid an error.
35023 Use char because int might match the return type of a GCC
35024 builtin and then its argument prototype would still apply. */
35025#ifdef __cplusplus
35026extern "C"
35027#endif
35028char __gcov_init ();
35029int
35030main ()
35031{
35032return __gcov_init ();
35033 ;
35034 return 0;
35035}
35036_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035037if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035038 ac_cv_lib_gcov___gcov_init=yes
35039else
cristy8b350f62009-11-15 23:12:43 +000035040 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035041fi
cristy8b350f62009-11-15 23:12:43 +000035042rm -f core conftest.err conftest.$ac_objext \
35043 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035044LIBS=$ac_check_lib_save_LIBS
35045fi
cristy8b350f62009-11-15 23:12:43 +000035046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035047$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035048if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035049 cat >>confdefs.h <<_ACEOF
35050#define HAVE_LIBGCOV 1
35051_ACEOF
35052
35053 LIBS="-lgcov $LIBS"
35054
35055fi
35056
35057 case "$target_os" in
35058 darwin*)
35059 OSX_GCOV_LDFLAG="-Wl,-single_module"
35060 ;;
35061 *)
35062 OSX_GCOV_LDFLAG=""
35063 ;;
35064 esac
35065
35066 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35067 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35068 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35069fi
35070
35071#
35072# Build library dependency list for libMagickCore
35073#
35074
cristyc6722092012-10-14 00:19:31 +000035075if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035076 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 +000035077else
cristy3a75f062012-09-08 23:29:40 +000035078 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 +000035079fi
35080
35081
35082#
35083# Remove extraneous spaces from output variables (asthetic)
35084#
35085X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35086X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35087X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35088X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35089
35090CC=`echo $CC | sed -e 's/ */ /g'`
35091CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35092CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35093CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035094DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35095LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35096TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35097MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35098#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35099
35100# Pass only user-provided LIBS as "global" libraries
35101LIBS=$USER_LIBS
35102
35103#AC_SUBST(CPPFLAGS)
35104
35105#AC_SUBST(LDFLAGS)
35106#AC_SUBST(X_PRE_LIBS)
35107#AC_SUBST(X_LIBS)
35108#AC_SUBST(X_EXTRA_LIBS)
35109
35110MAGICK_CFLAGS=$CFLAGS
35111MAGICK_CXXFLAGS="$CXXFLAGS"
35112MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35113MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35114MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035115MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035116
35117
35118
35119
35120
35121
35122
35123
35124# Set configured scripts to executable.
35125ac_config_commands="$ac_config_commands default"
35126
cristy2bd4b6e2012-07-22 15:29:11 +000035127ac_config_commands="$ac_config_commands magick.sh.in"
35128
cristy3ed852e2009-09-05 21:47:34 +000035129ac_config_commands="$ac_config_commands MagickCore-config.in"
35130
cristy3ed852e2009-09-05 21:47:34 +000035131ac_config_commands="$ac_config_commands MagickWand-config.in"
35132
cristy3ed852e2009-09-05 21:47:34 +000035133ac_config_commands="$ac_config_commands Magick++-config.in"
35134
35135ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35136
35137
cristyad38abe2012-12-23 23:03:21 +000035138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35139$as_echo "-------------------------------------------------------------" >&6; }
35140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35141$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035142cat >confcache <<\_ACEOF
35143# This file is a shell script that caches the results of configure
35144# tests run on this system so they can be shared between configure
35145# scripts and configure runs, see configure's option --config-cache.
35146# It is not useful on other systems. If it contains results you don't
35147# want to keep, you may remove or edit it.
35148#
35149# config.status only pays attention to the cache file if you give it
35150# the --recheck option to rerun configure.
35151#
35152# `ac_cv_env_foo' variables (set or unset) will be overridden when
35153# loading this file, other *unset* `ac_cv_foo' will be assigned the
35154# following values.
35155
35156_ACEOF
35157
35158# The following way of writing the cache mishandles newlines in values,
35159# but we know of no workaround that is simple, portable, and efficient.
35160# So, we kill variables containing newlines.
35161# Ultrix sh set writes to stderr and can't be redirected directly,
35162# and sets the high bit in the cache file unless we assign to the vars.
35163(
35164 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35165 eval ac_val=\$$ac_var
35166 case $ac_val in #(
35167 *${as_nl}*)
35168 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035169 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035170$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35171 esac
35172 case $ac_var in #(
35173 _ | IFS | as_nl) ;; #(
35174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035175 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035176 esac ;;
35177 esac
35178 done
35179
35180 (set) 2>&1 |
35181 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35182 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035183 # `set' does not quote correctly, so add quotes: double-quote
35184 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035185 sed -n \
35186 "s/'/'\\\\''/g;
35187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35188 ;; #(
35189 *)
35190 # `set' quotes correctly as required by POSIX, so do not add quotes.
35191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35192 ;;
35193 esac |
35194 sort
35195) |
35196 sed '
35197 /^ac_cv_env_/b end
35198 t clear
35199 :clear
35200 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35201 t end
35202 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35203 :end' >>confcache
35204if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35205 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035206 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035207 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035208$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035209 if test ! -f "$cache_file" || test -h "$cache_file"; then
35210 cat confcache >"$cache_file"
35211 else
35212 case $cache_file in #(
35213 */* | ?:*)
35214 mv -f confcache "$cache_file"$$ &&
35215 mv -f "$cache_file"$$ "$cache_file" ;; #(
35216 *)
35217 mv -f confcache "$cache_file" ;;
35218 esac
35219 fi
35220 fi
cristy3ed852e2009-09-05 21:47:34 +000035221 else
cristy8b350f62009-11-15 23:12:43 +000035222 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035223$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35224 fi
35225fi
35226rm -f confcache
35227
35228test "x$prefix" = xNONE && prefix=$ac_default_prefix
35229# Let make expand exec_prefix.
35230test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35231
35232DEFS=-DHAVE_CONFIG_H
35233
35234ac_libobjs=
35235ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035236U=
cristy3ed852e2009-09-05 21:47:34 +000035237for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35238 # 1. Remove the extension, and $U if already installed.
35239 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35240 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35241 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35242 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035243 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35244 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035245done
35246LIBOBJS=$ac_libobjs
35247
35248LTLIBOBJS=$ac_ltlibobjs
35249
35250
cristyc0890a62012-07-19 00:18:20 +000035251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35252$as_echo_n "checking that generated files are newer than configure... " >&6; }
35253 if test -n "$am_sleep_pid"; then
35254 # Hide warnings about reused PIDs.
35255 wait $am_sleep_pid 2>/dev/null
35256 fi
35257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35258$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035259 if test -n "$EXEEXT"; then
35260 am__EXEEXT_TRUE=
35261 am__EXEEXT_FALSE='#'
35262else
35263 am__EXEEXT_TRUE='#'
35264 am__EXEEXT_FALSE=
35265fi
cristy3ed852e2009-09-05 21:47:34 +000035266
cristy73bd4a52010-10-05 11:24:23 +000035267if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035268 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035269Usually this means the macro was only invoked conditionally." "$LINENO" 5
35270fi
35271if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035272 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035273Usually this means the macro was only invoked conditionally." "$LINENO" 5
35274fi
35275if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035276 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035277Usually this means the macro was only invoked conditionally." "$LINENO" 5
35278fi
35279if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035280 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035281Usually this means the macro was only invoked conditionally." "$LINENO" 5
35282fi
cristy9b86f202012-11-28 21:55:35 +000035283if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35284 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35285Usually this means the macro was only invoked conditionally." "$LINENO" 5
35286fi
cristy73bd4a52010-10-05 11:24:23 +000035287if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035288 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035289Usually this means the macro was only invoked conditionally." "$LINENO" 5
35290fi
35291if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035292 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035293Usually this means the macro was only invoked conditionally." "$LINENO" 5
35294fi
35295if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035296 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035297Usually this means the macro was only invoked conditionally." "$LINENO" 5
35298fi
35299if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035300 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035301Usually this means the macro was only invoked conditionally." "$LINENO" 5
35302fi
cristy73bd4a52010-10-05 11:24:23 +000035303if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035304 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035305Usually this means the macro was only invoked conditionally." "$LINENO" 5
35306fi
35307if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035308 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035309Usually this means the macro was only invoked conditionally." "$LINENO" 5
35310fi
cristy73bd4a52010-10-05 11:24:23 +000035311if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035312 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035313Usually this means the macro was only invoked conditionally." "$LINENO" 5
35314fi
cristy71d8c202012-03-20 17:05:01 +000035315if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35316 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35317Usually this means the macro was only invoked conditionally." "$LINENO" 5
35318fi
cristy73bd4a52010-10-05 11:24:23 +000035319
35320if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035321 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035322Usually this means the macro was only invoked conditionally." "$LINENO" 5
35323fi
35324if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035325 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035326Usually this means the macro was only invoked conditionally." "$LINENO" 5
35327fi
35328if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035329 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035330Usually this means the macro was only invoked conditionally." "$LINENO" 5
35331fi
35332if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035333 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035334Usually this means the macro was only invoked conditionally." "$LINENO" 5
35335fi
35336if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035337 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035338Usually this means the macro was only invoked conditionally." "$LINENO" 5
35339fi
35340if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035341 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035342Usually this means the macro was only invoked conditionally." "$LINENO" 5
35343fi
cristy5eef09f2012-10-16 12:08:28 +000035344if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35345 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35346Usually this means the macro was only invoked conditionally." "$LINENO" 5
35347fi
cristy73bd4a52010-10-05 11:24:23 +000035348if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035349 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035350Usually this means the macro was only invoked conditionally." "$LINENO" 5
35351fi
35352if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035353 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035354Usually this means the macro was only invoked conditionally." "$LINENO" 5
35355fi
35356if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035357 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035358Usually this means the macro was only invoked conditionally." "$LINENO" 5
35359fi
35360if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035361 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035362Usually this means the macro was only invoked conditionally." "$LINENO" 5
35363fi
35364if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035365 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035366Usually this means the macro was only invoked conditionally." "$LINENO" 5
35367fi
35368if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035369 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035370Usually this means the macro was only invoked conditionally." "$LINENO" 5
35371fi
35372if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035373 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035374Usually this means the macro was only invoked conditionally." "$LINENO" 5
35375fi
35376if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035377 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035378Usually this means the macro was only invoked conditionally." "$LINENO" 5
35379fi
35380if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035381 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035382Usually this means the macro was only invoked conditionally." "$LINENO" 5
35383fi
35384if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035385 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035386Usually this means the macro was only invoked conditionally." "$LINENO" 5
35387fi
35388if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035389 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035390Usually this means the macro was only invoked conditionally." "$LINENO" 5
35391fi
35392if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035393 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035394Usually this means the macro was only invoked conditionally." "$LINENO" 5
35395fi
35396if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035397 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035398Usually this means the macro was only invoked conditionally." "$LINENO" 5
35399fi
35400if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035401 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035402Usually this means the macro was only invoked conditionally." "$LINENO" 5
35403fi
cristyfbb0ef02010-12-19 02:32:11 +000035404if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35405 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35406Usually this means the macro was only invoked conditionally." "$LINENO" 5
35407fi
cristy73bd4a52010-10-05 11:24:23 +000035408if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035409 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035410Usually this means the macro was only invoked conditionally." "$LINENO" 5
35411fi
cristy41cbe8a2011-10-27 01:35:18 +000035412if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35413 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35414Usually this means the macro was only invoked conditionally." "$LINENO" 5
35415fi
cristya054b762012-03-26 23:16:00 +000035416if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35417 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035418Usually this means the macro was only invoked conditionally." "$LINENO" 5
35419fi
cristy73bd4a52010-10-05 11:24:23 +000035420if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035421 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035422Usually this means the macro was only invoked conditionally." "$LINENO" 5
35423fi
35424if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035425 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035426Usually this means the macro was only invoked conditionally." "$LINENO" 5
35427fi
35428if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035429 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035430Usually this means the macro was only invoked conditionally." "$LINENO" 5
35431fi
35432if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035433 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035434Usually this means the macro was only invoked conditionally." "$LINENO" 5
35435fi
cristyb1860752011-03-14 00:27:46 +000035436if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35437 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35438Usually this means the macro was only invoked conditionally." "$LINENO" 5
35439fi
cristy73bd4a52010-10-05 11:24:23 +000035440if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035441 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035442Usually this means the macro was only invoked conditionally." "$LINENO" 5
35443fi
35444if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035445 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035446Usually this means the macro was only invoked conditionally." "$LINENO" 5
35447fi
35448if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035449 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035450Usually this means the macro was only invoked conditionally." "$LINENO" 5
35451fi
35452if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035453 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035454Usually this means the macro was only invoked conditionally." "$LINENO" 5
35455fi
35456if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035457 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035458Usually this means the macro was only invoked conditionally." "$LINENO" 5
35459fi
35460if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035461 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035462Usually this means the macro was only invoked conditionally." "$LINENO" 5
35463fi
35464if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035465 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035466Usually this means the macro was only invoked conditionally." "$LINENO" 5
35467fi
35468if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035469 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035470Usually this means the macro was only invoked conditionally." "$LINENO" 5
35471fi
cristy3ed852e2009-09-05 21:47:34 +000035472
cristyda16f162011-02-19 23:52:17 +000035473: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035474ac_write_fail=0
35475ac_clean_files_save=$ac_clean_files
35476ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035477{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035478$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035479as_write_fail=0
35480cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035481#! $SHELL
35482# Generated by $as_me.
35483# Run this file to recreate the current configuration.
35484# Compiler output produced by configure, useful for debugging
35485# configure, is in config.log if it exists.
35486
35487debug=false
35488ac_cs_recheck=false
35489ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035490
cristy8b350f62009-11-15 23:12:43 +000035491SHELL=\${CONFIG_SHELL-$SHELL}
35492export SHELL
35493_ASEOF
35494cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35495## -------------------- ##
35496## M4sh Initialization. ##
35497## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035498
35499# Be more Bourne compatible
35500DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035501if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035502 emulate sh
35503 NULLCMD=:
35504 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35505 # is contrary to our usage. Disable this feature.
35506 alias -g '${1+"$@"}'='"$@"'
35507 setopt NO_GLOB_SUBST
35508else
cristy8b350f62009-11-15 23:12:43 +000035509 case `(set -o) 2>/dev/null` in #(
35510 *posix*) :
35511 set -o posix ;; #(
35512 *) :
35513 ;;
cristy3ed852e2009-09-05 21:47:34 +000035514esac
cristy3ed852e2009-09-05 21:47:34 +000035515fi
35516
35517
cristy3ed852e2009-09-05 21:47:34 +000035518as_nl='
35519'
35520export as_nl
35521# Printing a long string crashes Solaris 7 /usr/bin/printf.
35522as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35523as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35524as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035525# Prefer a ksh shell builtin over an external printf program on Solaris,
35526# but without wasting forks for bash or zsh.
35527if test -z "$BASH_VERSION$ZSH_VERSION" \
35528 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35529 as_echo='print -r --'
35530 as_echo_n='print -rn --'
35531elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035532 as_echo='printf %s\n'
35533 as_echo_n='printf %s'
35534else
35535 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35536 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35537 as_echo_n='/usr/ucb/echo -n'
35538 else
35539 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35540 as_echo_n_body='eval
35541 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035542 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035543 *"$as_nl"*)
35544 expr "X$arg" : "X\\(.*\\)$as_nl";
35545 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35546 esac;
35547 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35548 '
35549 export as_echo_n_body
35550 as_echo_n='sh -c $as_echo_n_body as_echo'
35551 fi
35552 export as_echo_body
35553 as_echo='sh -c $as_echo_body as_echo'
35554fi
35555
35556# The user is always right.
35557if test "${PATH_SEPARATOR+set}" != set; then
35558 PATH_SEPARATOR=:
35559 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35560 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35561 PATH_SEPARATOR=';'
35562 }
35563fi
35564
cristy3ed852e2009-09-05 21:47:34 +000035565
35566# IFS
35567# We need space, tab and new line, in precisely that order. Quoting is
35568# there to prevent editors from complaining about space-tab.
35569# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35570# splitting by setting IFS to empty value.)
35571IFS=" "" $as_nl"
35572
35573# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035574as_myself=
cristy8b350f62009-11-15 23:12:43 +000035575case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035576 *[\\/]* ) as_myself=$0 ;;
35577 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35578for as_dir in $PATH
35579do
35580 IFS=$as_save_IFS
35581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035582 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35583 done
cristy3ed852e2009-09-05 21:47:34 +000035584IFS=$as_save_IFS
35585
35586 ;;
35587esac
35588# We did not find ourselves, most probably we were run as `sh COMMAND'
35589# in which case we are not to be found in the path.
35590if test "x$as_myself" = x; then
35591 as_myself=$0
35592fi
35593if test ! -f "$as_myself"; then
35594 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035595 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035596fi
35597
cristy8b350f62009-11-15 23:12:43 +000035598# Unset variables that we do not need and which cause bugs (e.g. in
35599# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35600# suppresses any "Segmentation fault" message there. '((' could
35601# trigger a bug in pdksh 5.2.14.
35602for as_var in BASH_ENV ENV MAIL MAILPATH
35603do eval test x\${$as_var+set} = xset \
35604 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035605done
35606PS1='$ '
35607PS2='> '
35608PS4='+ '
35609
35610# NLS nuisances.
35611LC_ALL=C
35612export LC_ALL
35613LANGUAGE=C
35614export LANGUAGE
35615
cristy8b350f62009-11-15 23:12:43 +000035616# CDPATH.
35617(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35618
35619
cristy98dddb52010-11-04 00:30:15 +000035620# as_fn_error STATUS ERROR [LINENO LOG_FD]
35621# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035622# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35623# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035624# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035625as_fn_error ()
35626{
cristy98dddb52010-11-04 00:30:15 +000035627 as_status=$1; test $as_status -eq 0 && as_status=1
35628 if test "$4"; then
35629 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35630 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035631 fi
cristy98dddb52010-11-04 00:30:15 +000035632 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035633 as_fn_exit $as_status
35634} # as_fn_error
35635
35636
35637# as_fn_set_status STATUS
35638# -----------------------
35639# Set $? to STATUS, without forking.
35640as_fn_set_status ()
35641{
35642 return $1
35643} # as_fn_set_status
35644
35645# as_fn_exit STATUS
35646# -----------------
35647# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35648as_fn_exit ()
35649{
35650 set +e
35651 as_fn_set_status $1
35652 exit $1
35653} # as_fn_exit
35654
35655# as_fn_unset VAR
35656# ---------------
35657# Portably unset VAR.
35658as_fn_unset ()
35659{
35660 { eval $1=; unset $1;}
35661}
35662as_unset=as_fn_unset
35663# as_fn_append VAR VALUE
35664# ----------------------
35665# Append the text in VALUE to the end of the definition contained in VAR. Take
35666# advantage of any shell optimizations that allow amortized linear growth over
35667# repeated appends, instead of the typical quadratic growth present in naive
35668# implementations.
35669if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35670 eval 'as_fn_append ()
35671 {
35672 eval $1+=\$2
35673 }'
35674else
35675 as_fn_append ()
35676 {
35677 eval $1=\$$1\$2
35678 }
35679fi # as_fn_append
35680
35681# as_fn_arith ARG...
35682# ------------------
35683# Perform arithmetic evaluation on the ARGs, and store the result in the
35684# global $as_val. Take advantage of shells that can avoid forks. The arguments
35685# must be portable across $(()) and expr.
35686if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35687 eval 'as_fn_arith ()
35688 {
35689 as_val=$(( $* ))
35690 }'
35691else
35692 as_fn_arith ()
35693 {
35694 as_val=`expr "$@" || test $? -eq 1`
35695 }
35696fi # as_fn_arith
35697
35698
cristy3ed852e2009-09-05 21:47:34 +000035699if expr a : '\(a\)' >/dev/null 2>&1 &&
35700 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35701 as_expr=expr
35702else
35703 as_expr=false
35704fi
35705
35706if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35707 as_basename=basename
35708else
35709 as_basename=false
35710fi
35711
cristy8b350f62009-11-15 23:12:43 +000035712if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35713 as_dirname=dirname
35714else
35715 as_dirname=false
35716fi
cristy3ed852e2009-09-05 21:47:34 +000035717
cristy3ed852e2009-09-05 21:47:34 +000035718as_me=`$as_basename -- "$0" ||
35719$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35720 X"$0" : 'X\(//\)$' \| \
35721 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35722$as_echo X/"$0" |
35723 sed '/^.*\/\([^/][^/]*\)\/*$/{
35724 s//\1/
35725 q
35726 }
35727 /^X\/\(\/\/\)$/{
35728 s//\1/
35729 q
35730 }
35731 /^X\/\(\/\).*/{
35732 s//\1/
35733 q
35734 }
35735 s/.*/./; q'`
35736
cristy8b350f62009-11-15 23:12:43 +000035737# Avoid depending upon Character Ranges.
35738as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35739as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35740as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35741as_cr_digits='0123456789'
35742as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035743
35744ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035745case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035746-n*)
cristy8b350f62009-11-15 23:12:43 +000035747 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035748 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035749 xy) ECHO_C='\c';;
35750 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35751 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035752 esac;;
35753*)
35754 ECHO_N='-n';;
35755esac
cristy3ed852e2009-09-05 21:47:34 +000035756
35757rm -f conf$$ conf$$.exe conf$$.file
35758if test -d conf$$.dir; then
35759 rm -f conf$$.dir/conf$$.file
35760else
35761 rm -f conf$$.dir
35762 mkdir conf$$.dir 2>/dev/null
35763fi
35764if (echo >conf$$.file) 2>/dev/null; then
35765 if ln -s conf$$.file conf$$ 2>/dev/null; then
35766 as_ln_s='ln -s'
35767 # ... but there are two gotchas:
35768 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35769 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000035770 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000035771 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000035772 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035773 elif ln conf$$.file conf$$ 2>/dev/null; then
35774 as_ln_s=ln
35775 else
cristy14fefe52012-05-21 00:59:18 +000035776 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035777 fi
35778else
cristy14fefe52012-05-21 00:59:18 +000035779 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035780fi
35781rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35782rmdir conf$$.dir 2>/dev/null
35783
cristy8b350f62009-11-15 23:12:43 +000035784
35785# as_fn_mkdir_p
35786# -------------
35787# Create "$as_dir" as a directory, including parents if necessary.
35788as_fn_mkdir_p ()
35789{
35790
35791 case $as_dir in #(
35792 -*) as_dir=./$as_dir;;
35793 esac
35794 test -d "$as_dir" || eval $as_mkdir_p || {
35795 as_dirs=
35796 while :; do
35797 case $as_dir in #(
35798 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35799 *) as_qdir=$as_dir;;
35800 esac
35801 as_dirs="'$as_qdir' $as_dirs"
35802 as_dir=`$as_dirname -- "$as_dir" ||
35803$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35804 X"$as_dir" : 'X\(//\)[^/]' \| \
35805 X"$as_dir" : 'X\(//\)$' \| \
35806 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35807$as_echo X"$as_dir" |
35808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35809 s//\1/
35810 q
35811 }
35812 /^X\(\/\/\)[^/].*/{
35813 s//\1/
35814 q
35815 }
35816 /^X\(\/\/\)$/{
35817 s//\1/
35818 q
35819 }
35820 /^X\(\/\).*/{
35821 s//\1/
35822 q
35823 }
35824 s/.*/./; q'`
35825 test -d "$as_dir" && break
35826 done
35827 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035828 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035829
35830
35831} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035832if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035833 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035834else
35835 test -d ./-p && rmdir ./-p
35836 as_mkdir_p=false
35837fi
35838
cristy14fefe52012-05-21 00:59:18 +000035839
35840# as_fn_executable_p FILE
35841# -----------------------
35842# Test if FILE is an executable regular file.
35843as_fn_executable_p ()
35844{
35845 test -f "$1" && test -x "$1"
35846} # as_fn_executable_p
35847as_test_x='test -x'
35848as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000035849
35850# Sed expression to map a string onto a valid CPP name.
35851as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35852
35853# Sed expression to map a string onto a valid variable name.
35854as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35855
35856
35857exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035858## ----------------------------------- ##
35859## Main body of $CONFIG_STATUS script. ##
35860## ----------------------------------- ##
35861_ASEOF
35862test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035863
cristy8b350f62009-11-15 23:12:43 +000035864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35865# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035866# report actual input values of CONFIG_FILES etc. instead of their
35867# values after options handling.
35868ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035869This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000035870generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035871
35872 CONFIG_FILES = $CONFIG_FILES
35873 CONFIG_HEADERS = $CONFIG_HEADERS
35874 CONFIG_LINKS = $CONFIG_LINKS
35875 CONFIG_COMMANDS = $CONFIG_COMMANDS
35876 $ $0 $@
35877
35878on `(hostname || uname -n) 2>/dev/null | sed 1q`
35879"
35880
35881_ACEOF
35882
35883case $ac_config_files in *"
35884"*) set x $ac_config_files; shift; ac_config_files=$*;;
35885esac
35886
35887case $ac_config_headers in *"
35888"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35889esac
35890
35891
35892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35893# Files that config.status was made for.
35894config_files="$ac_config_files"
35895config_headers="$ac_config_headers"
35896config_commands="$ac_config_commands"
35897
35898_ACEOF
35899
35900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35901ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035902\`$as_me' instantiates files and other configuration actions
35903from templates according to the current configuration. Unless the files
35904and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035905
cristy8b350f62009-11-15 23:12:43 +000035906Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035907
35908 -h, --help print this help, then exit
35909 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035910 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035911 -q, --quiet, --silent
35912 do not print progress messages
35913 -d, --debug don't remove temporary files
35914 --recheck update $as_me by reconfiguring in the same conditions
35915 --file=FILE[:TEMPLATE]
35916 instantiate the configuration file FILE
35917 --header=FILE[:TEMPLATE]
35918 instantiate the configuration header FILE
35919
35920Configuration files:
35921$config_files
35922
35923Configuration headers:
35924$config_headers
35925
35926Configuration commands:
35927$config_commands
35928
cristy8b350f62009-11-15 23:12:43 +000035929Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035930
35931_ACEOF
35932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035933ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035934ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035935ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000035936configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000035937 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035938
cristy14fefe52012-05-21 00:59:18 +000035939Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035940This config.status script is free software; the Free Software Foundation
35941gives unlimited permission to copy, distribute and modify it."
35942
35943ac_pwd='$ac_pwd'
35944srcdir='$srcdir'
35945INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035946MKDIR_P='$MKDIR_P'
35947AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035948test -n "\$AWK" || AWK=awk
35949_ACEOF
35950
35951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35952# The default lists apply if the user does not specify any file.
35953ac_need_defaults=:
35954while test $# != 0
35955do
35956 case $1 in
cristyda16f162011-02-19 23:52:17 +000035957 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035958 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35959 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35960 ac_shift=:
35961 ;;
cristyda16f162011-02-19 23:52:17 +000035962 --*=)
35963 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35964 ac_optarg=
35965 ac_shift=:
35966 ;;
cristy3ed852e2009-09-05 21:47:34 +000035967 *)
35968 ac_option=$1
35969 ac_optarg=$2
35970 ac_shift=shift
35971 ;;
35972 esac
35973
35974 case $ac_option in
35975 # Handling of the options.
35976 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35977 ac_cs_recheck=: ;;
35978 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35979 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035980 --config | --confi | --conf | --con | --co | --c )
35981 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035982 --debug | --debu | --deb | --de | --d | -d )
35983 debug=: ;;
35984 --file | --fil | --fi | --f )
35985 $ac_shift
35986 case $ac_optarg in
35987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035988 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035989 esac
cristy8b350f62009-11-15 23:12:43 +000035990 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035991 ac_need_defaults=false;;
35992 --header | --heade | --head | --hea )
35993 $ac_shift
35994 case $ac_optarg in
35995 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35996 esac
cristy8b350f62009-11-15 23:12:43 +000035997 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035998 ac_need_defaults=false;;
35999 --he | --h)
36000 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036001 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036002Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036003 --help | --hel | -h )
36004 $as_echo "$ac_cs_usage"; exit ;;
36005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36006 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36007 ac_cs_silent=: ;;
36008
36009 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036010 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036011Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036012
cristy8b350f62009-11-15 23:12:43 +000036013 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036014 ac_need_defaults=false ;;
36015
36016 esac
36017 shift
36018done
36019
36020ac_configure_extra_args=
36021
36022if $ac_cs_silent; then
36023 exec 6>/dev/null
36024 ac_configure_extra_args="$ac_configure_extra_args --silent"
36025fi
36026
36027_ACEOF
36028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36029if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036030 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036031 shift
36032 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36033 CONFIG_SHELL='$SHELL'
36034 export CONFIG_SHELL
36035 exec "\$@"
36036fi
36037
36038_ACEOF
36039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36040exec 5>>config.log
36041{
36042 echo
36043 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36044## Running $as_me. ##
36045_ASBOX
36046 $as_echo "$ac_log"
36047} >&5
36048
36049_ACEOF
36050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036051#
36052# INIT-COMMANDS
36053#
36054PACKAGE="$PACKAGE"
36055AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36056
36057
36058# The HP-UX ksh and POSIX shell print the target directory to stdout
36059# if CDPATH is set.
36060(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36061
36062sed_quote_subst='$sed_quote_subst'
36063double_quote_subst='$double_quote_subst'
36064delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036065SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36066Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36067GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36068EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36069FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36070SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36071ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36072LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36073macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36074macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36075AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36076DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36077OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36078enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36079enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36080pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36081enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036082PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036083host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36084host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36085host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36086build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36087build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36088build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36089NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36090LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36091max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36092ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36093exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36094lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36095lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36096lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036097lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36098lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036099reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36100reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36101deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36102file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036103file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36104want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36105sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036106AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36107AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036108archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036109STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36110RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36111old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36112old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36113old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36114lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36115CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36116CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36117compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36118GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36119lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36120lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36121lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36122lt_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 +000036123nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36124lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036125objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36126MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36127lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036128lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036129lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036130lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36131lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36132need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036133MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036134DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36135NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36136LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36137OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36138OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36139libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36140shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36141extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36142archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36143enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36144export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36145whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36146compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36147old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36148old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36149archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36150archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36151module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36152module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36153with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36154allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36155no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36156hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036157hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36158hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36159hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36160hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36161hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36162hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36163inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36164link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036165always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36166export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36167exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36168include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36169prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036170postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036171file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36172variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36173need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36174need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36175version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36176runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36177shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36178shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36179libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36180library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36181soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36182install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36183postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36184postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36185finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36186finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36187hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36188sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36189sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36190hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36191enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36192enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36193enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36194old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36195striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36196compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36197predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36198postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36199predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36200postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36201compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36202LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36203reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36204reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36205old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36206compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36207GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36208lt_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 +000036209lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036210lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036211lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36212lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36213archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36214enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36215export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36216whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36217compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36218old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36219old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36220archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36221archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36222module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36223module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36224with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36225allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36226no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36227hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036228hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36229hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36230hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36231hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36232hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36233hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36234inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36235link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036236always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36237export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36238exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36239include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36240prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036241postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036242file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36243hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36244compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36245predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36246postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36247predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36248postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36249compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036250
36251LTCC='$LTCC'
36252LTCFLAGS='$LTCFLAGS'
36253compiler='$compiler_DEFAULT'
36254
cristy0c60a692010-11-04 01:09:47 +000036255# A function that is used when there is no print builtin or printf.
36256func_fallback_echo ()
36257{
36258 eval 'cat <<_LTECHO_EOF
36259\$1
36260_LTECHO_EOF'
36261}
36262
cristy73bd4a52010-10-05 11:24:23 +000036263# Quote evaled strings.
36264for var in SED \
36265GREP \
36266EGREP \
36267FGREP \
cristy0c60a692010-11-04 01:09:47 +000036268SHELL \
36269ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036270LD \
cristy0c60a692010-11-04 01:09:47 +000036271AS \
36272DLLTOOL \
36273OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036274PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036275NM \
36276LN_S \
36277lt_SP2NL \
36278lt_NL2SP \
36279reload_flag \
36280deplibs_check_method \
36281file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036282file_magic_glob \
36283want_nocaseglob \
36284sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036285AR \
36286AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036287archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036288STRIP \
36289RANLIB \
36290CC \
36291CFLAGS \
36292compiler \
36293lt_cv_sys_global_symbol_pipe \
36294lt_cv_sys_global_symbol_to_cdecl \
36295lt_cv_sys_global_symbol_to_c_name_address \
36296lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036297nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036298lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036299lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036300lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036301lt_prog_compiler_static \
36302lt_cv_prog_compiler_c_o \
36303need_locks \
cristyda16f162011-02-19 23:52:17 +000036304MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036305DSYMUTIL \
36306NMEDIT \
36307LIPO \
36308OTOOL \
36309OTOOL64 \
36310shrext_cmds \
36311export_dynamic_flag_spec \
36312whole_archive_flag_spec \
36313compiler_needs_object \
36314with_gnu_ld \
36315allow_undefined_flag \
36316no_undefined_flag \
36317hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036318hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036319exclude_expsyms \
36320include_expsyms \
36321file_list_spec \
36322variables_saved_for_relink \
36323libname_spec \
36324library_names_spec \
36325soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036326install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036327finish_eval \
36328old_striplib \
36329striplib \
36330compiler_lib_search_dirs \
36331predep_objects \
36332postdep_objects \
36333predeps \
36334postdeps \
36335compiler_lib_search_path \
36336LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036337reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036338compiler_CXX \
36339lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036340lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036341lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036342lt_prog_compiler_static_CXX \
36343lt_cv_prog_compiler_c_o_CXX \
36344export_dynamic_flag_spec_CXX \
36345whole_archive_flag_spec_CXX \
36346compiler_needs_object_CXX \
36347with_gnu_ld_CXX \
36348allow_undefined_flag_CXX \
36349no_undefined_flag_CXX \
36350hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036351hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036352exclude_expsyms_CXX \
36353include_expsyms_CXX \
36354file_list_spec_CXX \
36355compiler_lib_search_dirs_CXX \
36356predep_objects_CXX \
36357postdep_objects_CXX \
36358predeps_CXX \
36359postdeps_CXX \
36360compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036361 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036362 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036363 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036364 ;;
36365 *)
36366 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36367 ;;
36368 esac
36369done
36370
36371# Double-quote double-evaled strings.
36372for var in reload_cmds \
36373old_postinstall_cmds \
36374old_postuninstall_cmds \
36375old_archive_cmds \
36376extract_expsyms_cmds \
36377old_archive_from_new_cmds \
36378old_archive_from_expsyms_cmds \
36379archive_cmds \
36380archive_expsym_cmds \
36381module_cmds \
36382module_expsym_cmds \
36383export_symbols_cmds \
36384prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036385postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036386postinstall_cmds \
36387postuninstall_cmds \
36388finish_cmds \
36389sys_lib_search_path_spec \
36390sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036391reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036392old_archive_cmds_CXX \
36393old_archive_from_new_cmds_CXX \
36394old_archive_from_expsyms_cmds_CXX \
36395archive_cmds_CXX \
36396archive_expsym_cmds_CXX \
36397module_cmds_CXX \
36398module_expsym_cmds_CXX \
36399export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036400prelink_cmds_CXX \
36401postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036402 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036403 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036404 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036405 ;;
36406 *)
36407 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36408 ;;
36409 esac
36410done
36411
cristy73bd4a52010-10-05 11:24:23 +000036412ac_aux_dir='$ac_aux_dir'
36413xsi_shell='$xsi_shell'
36414lt_shell_append='$lt_shell_append'
36415
36416# See if we are running on zsh, and set the options which allow our
36417# commands through without removal of \ escapes INIT.
36418if test -n "\${ZSH_VERSION+set}" ; then
36419 setopt NO_GLOB_SUBST
36420fi
36421
36422
36423 PACKAGE='$PACKAGE'
36424 VERSION='$VERSION'
36425 TIMESTAMP='$TIMESTAMP'
36426 RM='$RM'
36427 ofile='$ofile'
36428
36429
36430
36431
36432
36433
cristy3ed852e2009-09-05 21:47:34 +000036434_ACEOF
36435
36436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36437
36438# Handling of arguments.
36439for ac_config_target in $ac_config_targets
36440do
36441 case $ac_config_target in
36442 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036443 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036444 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036445 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36446 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36447 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36448 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36449 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036450 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036451 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036452 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36453 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36454 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36455 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36456 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036457 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036458 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36459 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036460 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36461 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36462 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036463 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36464 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36465 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36466 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36467 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36468 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36469 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36470 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36471 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36472 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36473 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36474 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36475 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36476 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36477 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36478 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36479 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036480 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36481 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036482 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36483 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036484 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036485 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036486 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036487 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036488 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36489 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36490
cristy98dddb52010-11-04 00:30:15 +000036491 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036492 esac
36493done
36494
36495
36496# If the user did not use the arguments to specify the items to instantiate,
36497# then the envvar interface is used. Set only those that are not.
36498# We use the long form for the default assignment because of an extremely
36499# bizarre bug on SunOS 4.1.3.
36500if $ac_need_defaults; then
36501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36502 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36504fi
36505
36506# Have a temporary directory for convenience. Make it in the build tree
36507# simply because there is no reason against having it here, and in addition,
36508# creating and moving files from /tmp can sometimes cause problems.
36509# Hook for its removal unless debugging.
36510# Note that there is a small window in which the directory will not be cleaned:
36511# after its creation but before its name has been assigned to `$tmp'.
36512$debug ||
36513{
cristyda16f162011-02-19 23:52:17 +000036514 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036515 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036516 : "${ac_tmp:=$tmp}"
36517 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036518' 0
cristy8b350f62009-11-15 23:12:43 +000036519 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036520}
36521# Create a (secure) tmp directory for tmp files.
36522
36523{
36524 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036525 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036526} ||
36527{
36528 tmp=./conf$$-$RANDOM
36529 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036530} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036531ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036532
36533# Set up the scripts for CONFIG_FILES section.
36534# No need to generate them if there are no CONFIG_FILES.
36535# This happens for instance with `./config.status config.h'.
36536if test -n "$CONFIG_FILES"; then
36537
36538
cristy8b350f62009-11-15 23:12:43 +000036539ac_cr=`echo X | tr X '\015'`
36540# On cygwin, bash can eat \r inside `` if the user requested igncr.
36541# But we know of no other shell where ac_cr would be empty at this
36542# point, so we can use a bashism as a fallback.
36543if test "x$ac_cr" = x; then
36544 eval ac_cr=\$\'\\r\'
36545fi
cristy3ed852e2009-09-05 21:47:34 +000036546ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36547if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036548 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036549else
36550 ac_cs_awk_cr=$ac_cr
36551fi
36552
cristyda16f162011-02-19 23:52:17 +000036553echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036554_ACEOF
36555
36556
36557{
36558 echo "cat >conf$$subs.awk <<_ACEOF" &&
36559 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36560 echo "_ACEOF"
36561} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036562 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36563ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036564ac_delim='%!_!# '
36565for ac_last_try in false false false false false :; do
36566 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036567 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036568
36569 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36570 if test $ac_delim_n = $ac_delim_num; then
36571 break
36572 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036573 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036574 else
36575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36576 fi
36577done
36578rm -f conf$$subs.sh
36579
36580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036581cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036582_ACEOF
36583sed -n '
36584h
36585s/^/S["/; s/!.*/"]=/
36586p
36587g
36588s/^[^!]*!//
36589:repl
36590t repl
36591s/'"$ac_delim"'$//
36592t delim
36593:nl
36594h
cristycd4c5312009-11-22 01:19:08 +000036595s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036596t more1
36597s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36598p
36599n
36600b repl
36601:more1
36602s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36603p
36604g
36605s/.\{148\}//
36606t nl
36607:delim
36608h
cristycd4c5312009-11-22 01:19:08 +000036609s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036610t more2
36611s/["\\]/\\&/g; s/^/"/; s/$/"/
36612p
36613b
36614:more2
36615s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36616p
36617g
36618s/.\{148\}//
36619t delim
36620' <conf$$subs.awk | sed '
36621/^[^""]/{
36622 N
36623 s/\n//
36624}
36625' >>$CONFIG_STATUS || ac_write_fail=1
36626rm -f conf$$subs.awk
36627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36628_ACAWK
cristyda16f162011-02-19 23:52:17 +000036629cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036630 for (key in S) S_is_set[key] = 1
36631 FS = ""
36632
36633}
36634{
36635 line = $ 0
36636 nfields = split(line, field, "@")
36637 substed = 0
36638 len = length(field[1])
36639 for (i = 2; i < nfields; i++) {
36640 key = field[i]
36641 keylen = length(key)
36642 if (S_is_set[key]) {
36643 value = S[key]
36644 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36645 len += length(value) + length(field[++i])
36646 substed = 1
36647 } else
36648 len += 1 + keylen
36649 }
36650
36651 print line
36652}
36653
36654_ACAWK
36655_ACEOF
36656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36657if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36658 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36659else
36660 cat
cristyda16f162011-02-19 23:52:17 +000036661fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036662 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036663_ACEOF
36664
cristy98dddb52010-11-04 00:30:15 +000036665# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36666# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036667# trailing colons and then remove the whole line if VPATH becomes empty
36668# (actually we leave an empty line to preserve line numbers).
36669if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036670 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36671h
36672s///
36673s/^/:/
36674s/[ ]*$/:/
36675s/:\$(srcdir):/:/g
36676s/:\${srcdir}:/:/g
36677s/:@srcdir@:/:/g
36678s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036679s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036680x
36681s/\(=[ ]*\).*/\1/
36682G
36683s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036684s/^[^=]*=[ ]*$//
36685}'
36686fi
36687
36688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36689fi # test -n "$CONFIG_FILES"
36690
36691# Set up the scripts for CONFIG_HEADERS section.
36692# No need to generate them if there are no CONFIG_HEADERS.
36693# This happens for instance with `./config.status Makefile'.
36694if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036695cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036696BEGIN {
36697_ACEOF
36698
36699# Transform confdefs.h into an awk script `defines.awk', embedded as
36700# here-document in config.status, that substitutes the proper values into
36701# config.h.in to produce config.h.
36702
36703# Create a delimiter string that does not exist in confdefs.h, to ease
36704# handling of long lines.
36705ac_delim='%!_!# '
36706for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036707 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36708 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036709 break
36710 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036711 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036712 else
36713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36714 fi
36715done
36716
36717# For the awk script, D is an array of macro values keyed by name,
36718# likewise P contains macro parameters if any. Preserve backslash
36719# newline sequences.
36720
36721ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36722sed -n '
36723s/.\{148\}/&'"$ac_delim"'/g
36724t rset
36725:rset
36726s/^[ ]*#[ ]*define[ ][ ]*/ /
36727t def
36728d
36729:def
36730s/\\$//
36731t bsnl
36732s/["\\]/\\&/g
36733s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36734D["\1"]=" \3"/p
36735s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36736d
36737:bsnl
36738s/["\\]/\\&/g
36739s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36740D["\1"]=" \3\\\\\\n"\\/p
36741t cont
36742s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36743t cont
36744d
36745:cont
36746n
36747s/.\{148\}/&'"$ac_delim"'/g
36748t clear
36749:clear
36750s/\\$//
36751t bsnlc
36752s/["\\]/\\&/g; s/^/"/; s/$/"/p
36753d
36754:bsnlc
36755s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36756b cont
36757' <confdefs.h | sed '
36758s/'"$ac_delim"'/"\\\
36759"/g' >>$CONFIG_STATUS || ac_write_fail=1
36760
36761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36762 for (key in D) D_is_set[key] = 1
36763 FS = ""
36764}
36765/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36766 line = \$ 0
36767 split(line, arg, " ")
36768 if (arg[1] == "#") {
36769 defundef = arg[2]
36770 mac1 = arg[3]
36771 } else {
36772 defundef = substr(arg[1], 2)
36773 mac1 = arg[2]
36774 }
36775 split(mac1, mac2, "(") #)
36776 macro = mac2[1]
36777 prefix = substr(line, 1, index(line, defundef) - 1)
36778 if (D_is_set[macro]) {
36779 # Preserve the white space surrounding the "#".
36780 print prefix "define", macro P[macro] D[macro]
36781 next
36782 } else {
36783 # Replace #undef with comments. This is necessary, for example,
36784 # in the case of _POSIX_SOURCE, which is predefined and required
36785 # on some systems where configure will not decide to define it.
36786 if (defundef == "undef") {
36787 print "/*", prefix defundef, macro, "*/"
36788 next
36789 }
36790 }
36791}
36792{ print }
36793_ACAWK
36794_ACEOF
36795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036796 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036797fi # test -n "$CONFIG_HEADERS"
36798
36799
36800eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36801shift
36802for ac_tag
36803do
36804 case $ac_tag in
36805 :[FHLC]) ac_mode=$ac_tag; continue;;
36806 esac
36807 case $ac_mode$ac_tag in
36808 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036809 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036810 :[FH]-) ac_tag=-:-;;
36811 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36812 esac
36813 ac_save_IFS=$IFS
36814 IFS=:
36815 set x $ac_tag
36816 IFS=$ac_save_IFS
36817 shift
36818 ac_file=$1
36819 shift
36820
36821 case $ac_mode in
36822 :L) ac_source=$1;;
36823 :[FH])
36824 ac_file_inputs=
36825 for ac_f
36826 do
36827 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036828 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036829 *) # Look for the file first in the build tree, then in the source tree
36830 # (if the path is not absolute). The absolute path cannot be DOS-style,
36831 # because $ac_f cannot contain `:'.
36832 test -f "$ac_f" ||
36833 case $ac_f in
36834 [\\/$]*) false;;
36835 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36836 esac ||
cristy98dddb52010-11-04 00:30:15 +000036837 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036838 esac
36839 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036840 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036841 done
36842
36843 # Let's still pretend it is `configure' which instantiates (i.e., don't
36844 # use $as_me), people would be surprised to read:
36845 # /* config.h. Generated by config.status. */
36846 configure_input='Generated from '`
36847 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36848 `' by configure.'
36849 if test x"$ac_file" != x-; then
36850 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036851 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036852$as_echo "$as_me: creating $ac_file" >&6;}
36853 fi
36854 # Neutralize special characters interpreted by sed in replacement strings.
36855 case $configure_input in #(
36856 *\&* | *\|* | *\\* )
36857 ac_sed_conf_input=`$as_echo "$configure_input" |
36858 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36859 *) ac_sed_conf_input=$configure_input;;
36860 esac
36861
36862 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036863 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036865 esac
36866 ;;
36867 esac
36868
36869 ac_dir=`$as_dirname -- "$ac_file" ||
36870$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36871 X"$ac_file" : 'X\(//\)[^/]' \| \
36872 X"$ac_file" : 'X\(//\)$' \| \
36873 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36874$as_echo X"$ac_file" |
36875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36876 s//\1/
36877 q
36878 }
36879 /^X\(\/\/\)[^/].*/{
36880 s//\1/
36881 q
36882 }
36883 /^X\(\/\/\)$/{
36884 s//\1/
36885 q
36886 }
36887 /^X\(\/\).*/{
36888 s//\1/
36889 q
36890 }
36891 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036892 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036893 ac_builddir=.
36894
36895case "$ac_dir" in
36896.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36897*)
36898 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36899 # A ".." for each directory in $ac_dir_suffix.
36900 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36901 case $ac_top_builddir_sub in
36902 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36903 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36904 esac ;;
36905esac
36906ac_abs_top_builddir=$ac_pwd
36907ac_abs_builddir=$ac_pwd$ac_dir_suffix
36908# for backward compatibility:
36909ac_top_builddir=$ac_top_build_prefix
36910
36911case $srcdir in
36912 .) # We are building in place.
36913 ac_srcdir=.
36914 ac_top_srcdir=$ac_top_builddir_sub
36915 ac_abs_top_srcdir=$ac_pwd ;;
36916 [\\/]* | ?:[\\/]* ) # Absolute name.
36917 ac_srcdir=$srcdir$ac_dir_suffix;
36918 ac_top_srcdir=$srcdir
36919 ac_abs_top_srcdir=$srcdir ;;
36920 *) # Relative name.
36921 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36922 ac_top_srcdir=$ac_top_build_prefix$srcdir
36923 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36924esac
36925ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36926
36927
36928 case $ac_mode in
36929 :F)
36930 #
36931 # CONFIG_FILE
36932 #
36933
36934 case $INSTALL in
36935 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36936 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36937 esac
cristy73bd4a52010-10-05 11:24:23 +000036938 ac_MKDIR_P=$MKDIR_P
36939 case $MKDIR_P in
36940 [\\/$]* | ?:[\\/]* ) ;;
36941 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36942 esac
cristy3ed852e2009-09-05 21:47:34 +000036943_ACEOF
36944
36945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36946# If the template does not know about datarootdir, expand it.
36947# FIXME: This hack should be removed a few years after 2.60.
36948ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036949ac_sed_dataroot='
36950/datarootdir/ {
36951 p
36952 q
36953}
36954/@datadir@/p
36955/@docdir@/p
36956/@infodir@/p
36957/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036958/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036959case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36960*datarootdir*) ac_datarootdir_seen=yes;;
36961*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036963$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36964_ACEOF
36965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36966 ac_datarootdir_hack='
36967 s&@datadir@&$datadir&g
36968 s&@docdir@&$docdir&g
36969 s&@infodir@&$infodir&g
36970 s&@localedir@&$localedir&g
36971 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036972 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036973esac
36974_ACEOF
36975
36976# Neutralize VPATH when `$srcdir' = `.'.
36977# Shell code in configure.ac might set extrasub.
36978# FIXME: do we really want to maintain this feature?
36979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36980ac_sed_extra="$ac_vpsub
36981$extrasub
36982_ACEOF
36983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36984:t
36985/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36986s|@configure_input@|$ac_sed_conf_input|;t t
36987s&@top_builddir@&$ac_top_builddir_sub&;t t
36988s&@top_build_prefix@&$ac_top_build_prefix&;t t
36989s&@srcdir@&$ac_srcdir&;t t
36990s&@abs_srcdir@&$ac_abs_srcdir&;t t
36991s&@top_srcdir@&$ac_top_srcdir&;t t
36992s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36993s&@builddir@&$ac_builddir&;t t
36994s&@abs_builddir@&$ac_abs_builddir&;t t
36995s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36996s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036997s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036998$ac_datarootdir_hack
36999"
cristyda16f162011-02-19 23:52:17 +000037000eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37001 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037002
37003test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037004 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37005 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37006 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037008which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037009$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037010which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037011
cristyda16f162011-02-19 23:52:17 +000037012 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037013 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037014 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37015 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037016 esac \
cristy98dddb52010-11-04 00:30:15 +000037017 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037018 ;;
37019 :H)
37020 #
37021 # CONFIG_HEADER
37022 #
37023 if test x"$ac_file" != x-; then
37024 {
37025 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037026 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37027 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037029 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037030 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037031$as_echo "$as_me: $ac_file is unchanged" >&6;}
37032 else
37033 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037034 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037036 fi
37037 else
37038 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037039 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037040 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037041 fi
cristy73bd4a52010-10-05 11:24:23 +000037042# Compute "$ac_file"'s index in $config_headers.
37043_am_arg="$ac_file"
37044_am_stamp_count=1
37045for _am_header in $config_headers :; do
37046 case $_am_header in
37047 $_am_arg | $_am_arg:* )
37048 break ;;
37049 * )
37050 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37051 esac
37052done
37053echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37054$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37055 X"$_am_arg" : 'X\(//\)[^/]' \| \
37056 X"$_am_arg" : 'X\(//\)$' \| \
37057 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37058$as_echo X"$_am_arg" |
37059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37060 s//\1/
37061 q
37062 }
37063 /^X\(\/\/\)[^/].*/{
37064 s//\1/
37065 q
37066 }
37067 /^X\(\/\/\)$/{
37068 s//\1/
37069 q
37070 }
37071 /^X\(\/\).*/{
37072 s//\1/
37073 q
37074 }
37075 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037076 ;;
37077
cristy8b350f62009-11-15 23:12:43 +000037078 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037079$as_echo "$as_me: executing $ac_file commands" >&6;}
37080 ;;
37081 esac
37082
37083
37084 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037085 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037086ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37087ac_prefix_conf_PKG=`echo MagickCore`
37088ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37089ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37090ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37091if test ".$ac_prefix_conf_INP" = "."; then
37092 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37093 case "$ac_file" in
37094 *.h) ac_prefix_conf_INP=$ac_file ;;
37095 *)
37096 esac
37097 test ".$ac_prefix_conf_INP" != "." && break
37098 done
37099fi
37100if test ".$ac_prefix_conf_INP" = "."; then
37101 case "$ac_prefix_conf_OUT" in
37102 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37103 ;;
37104 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37105 ;;
37106 *) ac_prefix_conf_INP=config.h
37107 ;;
37108 esac
37109fi
37110if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037111 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037112else
37113 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37114 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37115 fi fi
37116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37117$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37118 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037119 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37120 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37121 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37122 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37123 $as_echo "#endif/" >> conftest.prefix
37124 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37125 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37126 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037127 # now executing _script on _DEF input to create _OUT output file
37128 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37129 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37130 echo ' ' >>$tmp/pconfig.h
37131 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37132
37133 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37134 echo ' ' >>$tmp/pconfig.h
37135 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37136 echo "#endif" >>$tmp/pconfig.h
37137 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37138 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37139$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37140 else
37141 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37142$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37143 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37144 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37145 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37146$as_echo X"$ac_prefix_conf_OUT" |
37147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37148 s//\1/
37149 q
37150 }
37151 /^X\(\/\/\)[^/].*/{
37152 s//\1/
37153 q
37154 }
37155 /^X\(\/\/\)$/{
37156 s//\1/
37157 q
37158 }
37159 /^X\(\/\).*/{
37160 s//\1/
37161 q
37162 }
37163 s/.*/./; q'`
37164 as_dir="$ac_dir"; as_fn_mkdir_p
37165 rm -f "$ac_prefix_conf_OUT"
37166 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37167 fi
37168 cp conftest.prefix _configs.sed
37169 else
cristy98dddb52010-11-04 00:30:15 +000037170 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 +000037171 fi
37172 rm -f conftest.*
37173fi
37174 ;;
37175 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37176 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37177 # are listed without --file. Let's play safe and only enable the eval
37178 # if we detect the quoting.
37179 case $CONFIG_FILES in
37180 *\'*) eval set x "$CONFIG_FILES" ;;
37181 *) set x $CONFIG_FILES ;;
37182 esac
37183 shift
37184 for mf
37185 do
37186 # Strip MF so we end up with the name of the file.
37187 mf=`echo "$mf" | sed -e 's/:.*$//'`
37188 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037189 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037190 # some people rename them; so instead we look at the file content.
37191 # Grep'ing the first line is not enough: some people post-process
37192 # each Makefile.in and add a new line on top of each file to say so.
37193 # Grep'ing the whole file is not good either: AIX grep has a line
37194 # limit of 2048, but all sed's we know have understand at least 4000.
37195 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37196 dirpart=`$as_dirname -- "$mf" ||
37197$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37198 X"$mf" : 'X\(//\)[^/]' \| \
37199 X"$mf" : 'X\(//\)$' \| \
37200 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37201$as_echo X"$mf" |
37202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37203 s//\1/
37204 q
37205 }
37206 /^X\(\/\/\)[^/].*/{
37207 s//\1/
37208 q
37209 }
37210 /^X\(\/\/\)$/{
37211 s//\1/
37212 q
37213 }
37214 /^X\(\/\).*/{
37215 s//\1/
37216 q
37217 }
37218 s/.*/./; q'`
37219 else
37220 continue
37221 fi
37222 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037223 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037224 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37225 test -z "$DEPDIR" && continue
37226 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37227 test -z "am__include" && continue
37228 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037229 # Find all dependency output files, they are included files with
37230 # $(DEPDIR) in their names. We invoke sed twice because it is the
37231 # simplest approach to changing $(DEPDIR) to its actual value in the
37232 # expansion.
37233 for file in `sed -n "
37234 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037235 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037236 # Make sure the directory exists.
37237 test -f "$dirpart/$file" && continue
37238 fdir=`$as_dirname -- "$file" ||
37239$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37240 X"$file" : 'X\(//\)[^/]' \| \
37241 X"$file" : 'X\(//\)$' \| \
37242 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37243$as_echo X"$file" |
37244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37245 s//\1/
37246 q
37247 }
37248 /^X\(\/\/\)[^/].*/{
37249 s//\1/
37250 q
37251 }
37252 /^X\(\/\/\)$/{
37253 s//\1/
37254 q
37255 }
37256 /^X\(\/\).*/{
37257 s//\1/
37258 q
37259 }
37260 s/.*/./; q'`
37261 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37262 # echo "creating $dirpart/$file"
37263 echo '# dummy' > "$dirpart/$file"
37264 done
37265 done
37266}
37267 ;;
37268 "libtool":C)
37269
37270 # See if we are running on zsh, and set the options which allow our
37271 # commands through without removal of \ escapes.
37272 if test -n "${ZSH_VERSION+set}" ; then
37273 setopt NO_GLOB_SUBST
37274 fi
37275
37276 cfgfile="${ofile}T"
37277 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37278 $RM "$cfgfile"
37279
37280 cat <<_LT_EOF >> "$cfgfile"
37281#! $SHELL
37282
37283# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37284# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37285# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37286# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37287#
37288# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037289# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37290# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037291# Written by Gordon Matzigkeit, 1996
37292#
37293# This file is part of GNU Libtool.
37294#
37295# GNU Libtool is free software; you can redistribute it and/or
37296# modify it under the terms of the GNU General Public License as
37297# published by the Free Software Foundation; either version 2 of
37298# the License, or (at your option) any later version.
37299#
37300# As a special exception to the GNU General Public License,
37301# if you distribute this file as part of a program or library that
37302# is built using GNU Libtool, you may include this file under the
37303# same distribution terms that you use for the rest of that program.
37304#
37305# GNU Libtool is distributed in the hope that it will be useful,
37306# but WITHOUT ANY WARRANTY; without even the implied warranty of
37307# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37308# GNU General Public License for more details.
37309#
37310# You should have received a copy of the GNU General Public License
37311# along with GNU Libtool; see the file COPYING. If not, a copy
37312# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37313# obtained by writing to the Free Software Foundation, Inc.,
37314# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37315
37316
37317# The names of the tagged configurations supported by this script.
37318available_tags="CXX "
37319
37320# ### BEGIN LIBTOOL CONFIG
37321
37322# A sed program that does not truncate output.
37323SED=$lt_SED
37324
37325# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37326Xsed="\$SED -e 1s/^X//"
37327
37328# A grep program that handles long lines.
37329GREP=$lt_GREP
37330
37331# An ERE matcher.
37332EGREP=$lt_EGREP
37333
37334# A literal string matcher.
37335FGREP=$lt_FGREP
37336
cristy0c60a692010-11-04 01:09:47 +000037337# Shell to use when invoking shell scripts.
37338SHELL=$lt_SHELL
37339
37340# An echo program that protects backslashes.
37341ECHO=$lt_ECHO
37342
cristy73bd4a52010-10-05 11:24:23 +000037343# Which release of libtool.m4 was used?
37344macro_version=$macro_version
37345macro_revision=$macro_revision
37346
37347# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037348AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037349
37350# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037351DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037352
37353# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037354OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037355
37356# Whether or not to build shared libraries.
37357build_libtool_libs=$enable_shared
37358
37359# Whether or not to build static libraries.
37360build_old_libs=$enable_static
37361
37362# What type of objects to build.
37363pic_mode=$pic_mode
37364
37365# Whether or not to optimize for fast installation.
37366fast_install=$enable_fast_install
37367
cristy99bd5232011-12-07 14:38:20 +000037368# The PATH separator for the build system.
37369PATH_SEPARATOR=$lt_PATH_SEPARATOR
37370
cristy73bd4a52010-10-05 11:24:23 +000037371# The host system.
37372host_alias=$host_alias
37373host=$host
37374host_os=$host_os
37375
37376# The build system.
37377build_alias=$build_alias
37378build=$build
37379build_os=$build_os
37380
37381# A BSD- or MS-compatible name lister.
37382NM=$lt_NM
37383
37384# Whether we need soft or hard links.
37385LN_S=$lt_LN_S
37386
37387# What is the maximum length of a command?
37388max_cmd_len=$max_cmd_len
37389
37390# Object file suffix (normally "o").
37391objext=$ac_objext
37392
37393# Executable file suffix (normally "").
37394exeext=$exeext
37395
37396# whether the shell understands "unset".
37397lt_unset=$lt_unset
37398
37399# turn spaces into newlines.
37400SP2NL=$lt_lt_SP2NL
37401
37402# turn newlines into spaces.
37403NL2SP=$lt_lt_NL2SP
37404
cristyda16f162011-02-19 23:52:17 +000037405# convert \$build file names to \$host format.
37406to_host_file_cmd=$lt_cv_to_host_file_cmd
37407
37408# convert \$build files to toolchain format.
37409to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37410
cristy73bd4a52010-10-05 11:24:23 +000037411# Method to check whether dependent libraries are shared objects.
37412deplibs_check_method=$lt_deplibs_check_method
37413
cristyda16f162011-02-19 23:52:17 +000037414# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037415file_magic_cmd=$lt_file_magic_cmd
37416
cristyda16f162011-02-19 23:52:17 +000037417# How to find potential files when deplibs_check_method = "file_magic".
37418file_magic_glob=$lt_file_magic_glob
37419
37420# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37421want_nocaseglob=$lt_want_nocaseglob
37422
37423# Command to associate shared and link libraries.
37424sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37425
cristy73bd4a52010-10-05 11:24:23 +000037426# The archiver.
37427AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037428
37429# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037430AR_FLAGS=$lt_AR_FLAGS
37431
cristyda16f162011-02-19 23:52:17 +000037432# How to feed a file listing to the archiver.
37433archiver_list_spec=$lt_archiver_list_spec
37434
cristy73bd4a52010-10-05 11:24:23 +000037435# A symbol stripping program.
37436STRIP=$lt_STRIP
37437
37438# Commands used to install an old-style archive.
37439RANLIB=$lt_RANLIB
37440old_postinstall_cmds=$lt_old_postinstall_cmds
37441old_postuninstall_cmds=$lt_old_postuninstall_cmds
37442
cristy0c60a692010-11-04 01:09:47 +000037443# Whether to use a lock for old archive extraction.
37444lock_old_archive_extraction=$lock_old_archive_extraction
37445
cristy73bd4a52010-10-05 11:24:23 +000037446# A C compiler.
37447LTCC=$lt_CC
37448
37449# LTCC compiler flags.
37450LTCFLAGS=$lt_CFLAGS
37451
37452# Take the output of nm and produce a listing of raw symbols and C names.
37453global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37454
37455# Transform the output of nm in a proper C declaration.
37456global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37457
37458# Transform the output of nm in a C name address pair.
37459global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37460
37461# Transform the output of nm in a C name address pair when lib prefix is needed.
37462global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37463
cristyda16f162011-02-19 23:52:17 +000037464# Specify filename containing input files for \$NM.
37465nm_file_list_spec=$lt_nm_file_list_spec
37466
37467# The root where to search for dependent libraries,and in which our libraries should be installed.
37468lt_sysroot=$lt_sysroot
37469
cristy73bd4a52010-10-05 11:24:23 +000037470# The name of the directory that contains temporary libtool files.
37471objdir=$objdir
37472
cristy73bd4a52010-10-05 11:24:23 +000037473# Used to examine libraries when file_magic_cmd begins with "file".
37474MAGIC_CMD=$MAGIC_CMD
37475
37476# Must we lock files when doing compilation?
37477need_locks=$lt_need_locks
37478
cristyda16f162011-02-19 23:52:17 +000037479# Manifest tool.
37480MANIFEST_TOOL=$lt_MANIFEST_TOOL
37481
cristy73bd4a52010-10-05 11:24:23 +000037482# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37483DSYMUTIL=$lt_DSYMUTIL
37484
37485# Tool to change global to local symbols on Mac OS X.
37486NMEDIT=$lt_NMEDIT
37487
37488# Tool to manipulate fat objects and archives on Mac OS X.
37489LIPO=$lt_LIPO
37490
37491# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37492OTOOL=$lt_OTOOL
37493
37494# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37495OTOOL64=$lt_OTOOL64
37496
37497# Old archive suffix (normally "a").
37498libext=$libext
37499
37500# Shared library suffix (normally ".so").
37501shrext_cmds=$lt_shrext_cmds
37502
37503# The commands to extract the exported symbol list from a shared archive.
37504extract_expsyms_cmds=$lt_extract_expsyms_cmds
37505
37506# Variables whose values should be saved in libtool wrapper scripts and
37507# restored at link time.
37508variables_saved_for_relink=$lt_variables_saved_for_relink
37509
37510# Do we need the "lib" prefix for modules?
37511need_lib_prefix=$need_lib_prefix
37512
37513# Do we need a version for libraries?
37514need_version=$need_version
37515
37516# Library versioning type.
37517version_type=$version_type
37518
37519# Shared library runtime path variable.
37520runpath_var=$runpath_var
37521
37522# Shared library path variable.
37523shlibpath_var=$shlibpath_var
37524
37525# Is shlibpath searched before the hard-coded library search path?
37526shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37527
37528# Format of library name prefix.
37529libname_spec=$lt_libname_spec
37530
37531# List of archive names. First name is the real one, the rest are links.
37532# The last name is the one that the linker finds with -lNAME
37533library_names_spec=$lt_library_names_spec
37534
37535# The coded name of the library, if different from the real name.
37536soname_spec=$lt_soname_spec
37537
cristy0c60a692010-11-04 01:09:47 +000037538# Permission mode override for installation of shared libraries.
37539install_override_mode=$lt_install_override_mode
37540
cristy73bd4a52010-10-05 11:24:23 +000037541# Command to use after installation of a shared archive.
37542postinstall_cmds=$lt_postinstall_cmds
37543
37544# Command to use after uninstallation of a shared archive.
37545postuninstall_cmds=$lt_postuninstall_cmds
37546
37547# Commands used to finish a libtool library installation in a directory.
37548finish_cmds=$lt_finish_cmds
37549
37550# As "finish_cmds", except a single script fragment to be evaled but
37551# not shown.
37552finish_eval=$lt_finish_eval
37553
37554# Whether we should hardcode library paths into libraries.
37555hardcode_into_libs=$hardcode_into_libs
37556
37557# Compile-time system search path for libraries.
37558sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37559
37560# Run-time system search path for libraries.
37561sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37562
37563# Whether dlopen is supported.
37564dlopen_support=$enable_dlopen
37565
37566# Whether dlopen of programs is supported.
37567dlopen_self=$enable_dlopen_self
37568
37569# Whether dlopen of statically linked programs is supported.
37570dlopen_self_static=$enable_dlopen_self_static
37571
37572# Commands to strip libraries.
37573old_striplib=$lt_old_striplib
37574striplib=$lt_striplib
37575
37576
37577# The linker used to build libraries.
37578LD=$lt_LD
37579
cristy0c60a692010-11-04 01:09:47 +000037580# How to create reloadable object files.
37581reload_flag=$lt_reload_flag
37582reload_cmds=$lt_reload_cmds
37583
cristy73bd4a52010-10-05 11:24:23 +000037584# Commands used to build an old-style archive.
37585old_archive_cmds=$lt_old_archive_cmds
37586
37587# A language specific compiler.
37588CC=$lt_compiler
37589
37590# Is the compiler the GNU compiler?
37591with_gcc=$GCC
37592
37593# Compiler flag to turn off builtin functions.
37594no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37595
cristy73bd4a52010-10-05 11:24:23 +000037596# Additional compiler flags for building library objects.
37597pic_flag=$lt_lt_prog_compiler_pic
37598
cristyda16f162011-02-19 23:52:17 +000037599# How to pass a linker flag through the compiler.
37600wl=$lt_lt_prog_compiler_wl
37601
cristy73bd4a52010-10-05 11:24:23 +000037602# Compiler flag to prevent dynamic linking.
37603link_static_flag=$lt_lt_prog_compiler_static
37604
37605# Does compiler simultaneously support -c and -o options?
37606compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37607
37608# Whether or not to add -lc for building shared libraries.
37609build_libtool_need_lc=$archive_cmds_need_lc
37610
37611# Whether or not to disallow shared libs when runtime libs are static.
37612allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37613
37614# Compiler flag to allow reflexive dlopens.
37615export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37616
37617# Compiler flag to generate shared objects directly from archives.
37618whole_archive_flag_spec=$lt_whole_archive_flag_spec
37619
37620# Whether the compiler copes with passing no objects directly.
37621compiler_needs_object=$lt_compiler_needs_object
37622
37623# Create an old-style archive from a shared archive.
37624old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37625
37626# Create a temporary old-style archive to link instead of a shared archive.
37627old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37628
37629# Commands used to build a shared archive.
37630archive_cmds=$lt_archive_cmds
37631archive_expsym_cmds=$lt_archive_expsym_cmds
37632
37633# Commands used to build a loadable module if different from building
37634# a shared archive.
37635module_cmds=$lt_module_cmds
37636module_expsym_cmds=$lt_module_expsym_cmds
37637
37638# Whether we are building with GNU ld or not.
37639with_gnu_ld=$lt_with_gnu_ld
37640
37641# Flag that allows shared libraries with undefined symbols to be built.
37642allow_undefined_flag=$lt_allow_undefined_flag
37643
37644# Flag that enforces no undefined symbols.
37645no_undefined_flag=$lt_no_undefined_flag
37646
37647# Flag to hardcode \$libdir into a binary during linking.
37648# This must work even if \$libdir does not exist
37649hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37650
cristy73bd4a52010-10-05 11:24:23 +000037651# Whether we need a single "-rpath" flag with a separated argument.
37652hardcode_libdir_separator=$lt_hardcode_libdir_separator
37653
37654# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37655# DIR into the resulting binary.
37656hardcode_direct=$hardcode_direct
37657
37658# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37659# DIR into the resulting binary and the resulting library dependency is
37660# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37661# library is relocated.
37662hardcode_direct_absolute=$hardcode_direct_absolute
37663
37664# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37665# into the resulting binary.
37666hardcode_minus_L=$hardcode_minus_L
37667
37668# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37669# into the resulting binary.
37670hardcode_shlibpath_var=$hardcode_shlibpath_var
37671
37672# Set to "yes" if building a shared library automatically hardcodes DIR
37673# into the library and all subsequent libraries and executables linked
37674# against it.
37675hardcode_automatic=$hardcode_automatic
37676
37677# Set to yes if linker adds runtime paths of dependent libraries
37678# to runtime path list.
37679inherit_rpath=$inherit_rpath
37680
37681# Whether libtool must link a program against all its dependency libraries.
37682link_all_deplibs=$link_all_deplibs
37683
cristy73bd4a52010-10-05 11:24:23 +000037684# Set to "yes" if exported symbols are required.
37685always_export_symbols=$always_export_symbols
37686
37687# The commands to list exported symbols.
37688export_symbols_cmds=$lt_export_symbols_cmds
37689
37690# Symbols that should not be listed in the preloaded symbols.
37691exclude_expsyms=$lt_exclude_expsyms
37692
37693# Symbols that must always be exported.
37694include_expsyms=$lt_include_expsyms
37695
37696# Commands necessary for linking programs (against libraries) with templates.
37697prelink_cmds=$lt_prelink_cmds
37698
cristyda16f162011-02-19 23:52:17 +000037699# Commands necessary for finishing linking programs.
37700postlink_cmds=$lt_postlink_cmds
37701
cristy73bd4a52010-10-05 11:24:23 +000037702# Specify filename containing input files.
37703file_list_spec=$lt_file_list_spec
37704
37705# How to hardcode a shared library path into an executable.
37706hardcode_action=$hardcode_action
37707
37708# The directories searched by this compiler when creating a shared library.
37709compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37710
37711# Dependencies to place before and after the objects being linked to
37712# create a shared library.
37713predep_objects=$lt_predep_objects
37714postdep_objects=$lt_postdep_objects
37715predeps=$lt_predeps
37716postdeps=$lt_postdeps
37717
37718# The library search path used internally by the compiler when linking
37719# a shared library.
37720compiler_lib_search_path=$lt_compiler_lib_search_path
37721
37722# ### END LIBTOOL CONFIG
37723
37724_LT_EOF
37725
37726 case $host_os in
37727 aix3*)
37728 cat <<\_LT_EOF >> "$cfgfile"
37729# AIX sometimes has problems with the GCC collect2 program. For some
37730# reason, if we set the COLLECT_NAMES environment variable, the problems
37731# vanish in a puff of smoke.
37732if test "X${COLLECT_NAMES+set}" != Xset; then
37733 COLLECT_NAMES=
37734 export COLLECT_NAMES
37735fi
37736_LT_EOF
37737 ;;
37738 esac
37739
37740
37741ltmain="$ac_aux_dir/ltmain.sh"
37742
37743
37744 # We use sed instead of cat because bash on DJGPP gets confused if
37745 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37746 # text mode, it properly converts lines to CR/LF. This bash problem
37747 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037748 sed '$q' "$ltmain" >> "$cfgfile" \
37749 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037750
cristyda16f162011-02-19 23:52:17 +000037751 if test x"$xsi_shell" = xyes; then
37752 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37753func_dirname ()\
37754{\
37755\ case ${1} in\
37756\ */*) func_dirname_result="${1%/*}${2}" ;;\
37757\ * ) func_dirname_result="${3}" ;;\
37758\ esac\
37759} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37760 && mv -f "$cfgfile.tmp" "$cfgfile" \
37761 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37762test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037763
37764
cristyda16f162011-02-19 23:52:17 +000037765 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37766func_basename ()\
37767{\
37768\ func_basename_result="${1##*/}"\
37769} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37770 && mv -f "$cfgfile.tmp" "$cfgfile" \
37771 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37772test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037773
37774
cristyda16f162011-02-19 23:52:17 +000037775 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37776func_dirname_and_basename ()\
37777{\
37778\ case ${1} in\
37779\ */*) func_dirname_result="${1%/*}${2}" ;;\
37780\ * ) func_dirname_result="${3}" ;;\
37781\ esac\
37782\ func_basename_result="${1##*/}"\
37783} # Extended-shell func_dirname_and_basename 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=:
cristy73bd4a52010-10-05 11:24:23 +000037787
cristyda16f162011-02-19 23:52:17 +000037788
37789 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37790func_stripname ()\
37791{\
37792\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37793\ # positional parameters, so assign one to ordinary parameter first.\
37794\ func_stripname_result=${3}\
37795\ func_stripname_result=${func_stripname_result#"${1}"}\
37796\ func_stripname_result=${func_stripname_result%"${2}"}\
37797} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37798 && mv -f "$cfgfile.tmp" "$cfgfile" \
37799 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37800test 0 -eq $? || _lt_function_replace_fail=:
37801
37802
37803 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37804func_split_long_opt ()\
37805{\
37806\ func_split_long_opt_name=${1%%=*}\
37807\ func_split_long_opt_arg=${1#*=}\
37808} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37809 && mv -f "$cfgfile.tmp" "$cfgfile" \
37810 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37811test 0 -eq $? || _lt_function_replace_fail=:
37812
37813
37814 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37815func_split_short_opt ()\
37816{\
37817\ func_split_short_opt_arg=${1#??}\
37818\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37819} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37820 && mv -f "$cfgfile.tmp" "$cfgfile" \
37821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37822test 0 -eq $? || _lt_function_replace_fail=:
37823
37824
37825 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37826func_lo2o ()\
37827{\
37828\ case ${1} in\
37829\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37830\ *) func_lo2o_result=${1} ;;\
37831\ esac\
37832} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37833 && mv -f "$cfgfile.tmp" "$cfgfile" \
37834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37835test 0 -eq $? || _lt_function_replace_fail=:
37836
37837
37838 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37839func_xform ()\
37840{\
37841 func_xform_result=${1%.*}.lo\
37842} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37843 && mv -f "$cfgfile.tmp" "$cfgfile" \
37844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37845test 0 -eq $? || _lt_function_replace_fail=:
37846
37847
37848 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37849func_arith ()\
37850{\
37851 func_arith_result=$(( $* ))\
37852} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37853 && mv -f "$cfgfile.tmp" "$cfgfile" \
37854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37855test 0 -eq $? || _lt_function_replace_fail=:
37856
37857
37858 sed -e '/^func_len ()$/,/^} # func_len /c\
37859func_len ()\
37860{\
37861 func_len_result=${#1}\
37862} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37863 && mv -f "$cfgfile.tmp" "$cfgfile" \
37864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37865test 0 -eq $? || _lt_function_replace_fail=:
37866
37867fi
37868
37869if test x"$lt_shell_append" = xyes; then
37870 sed -e '/^func_append ()$/,/^} # func_append /c\
37871func_append ()\
37872{\
37873 eval "${1}+=\\${2}"\
37874} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37875 && mv -f "$cfgfile.tmp" "$cfgfile" \
37876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37877test 0 -eq $? || _lt_function_replace_fail=:
37878
37879
37880 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37881func_append_quoted ()\
37882{\
37883\ func_quote_for_eval "${2}"\
37884\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37885} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37886 && mv -f "$cfgfile.tmp" "$cfgfile" \
37887 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37888test 0 -eq $? || _lt_function_replace_fail=:
37889
37890
37891 # Save a `func_append' function call where possible by direct use of '+='
37892 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37893 && mv -f "$cfgfile.tmp" "$cfgfile" \
37894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37895 test 0 -eq $? || _lt_function_replace_fail=:
37896else
37897 # Save a `func_append' function call even when '+=' is not available
37898 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37899 && mv -f "$cfgfile.tmp" "$cfgfile" \
37900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37901 test 0 -eq $? || _lt_function_replace_fail=:
37902fi
37903
37904if test x"$_lt_function_replace_fail" = x":"; then
37905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37906$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37907fi
37908
37909
37910 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037911 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37912 chmod +x "$ofile"
37913
37914
37915 cat <<_LT_EOF >> "$ofile"
37916
37917# ### BEGIN LIBTOOL TAG CONFIG: CXX
37918
37919# The linker used to build libraries.
37920LD=$lt_LD_CXX
37921
cristy0c60a692010-11-04 01:09:47 +000037922# How to create reloadable object files.
37923reload_flag=$lt_reload_flag_CXX
37924reload_cmds=$lt_reload_cmds_CXX
37925
cristy73bd4a52010-10-05 11:24:23 +000037926# Commands used to build an old-style archive.
37927old_archive_cmds=$lt_old_archive_cmds_CXX
37928
37929# A language specific compiler.
37930CC=$lt_compiler_CXX
37931
37932# Is the compiler the GNU compiler?
37933with_gcc=$GCC_CXX
37934
37935# Compiler flag to turn off builtin functions.
37936no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37937
cristy73bd4a52010-10-05 11:24:23 +000037938# Additional compiler flags for building library objects.
37939pic_flag=$lt_lt_prog_compiler_pic_CXX
37940
cristyda16f162011-02-19 23:52:17 +000037941# How to pass a linker flag through the compiler.
37942wl=$lt_lt_prog_compiler_wl_CXX
37943
cristy73bd4a52010-10-05 11:24:23 +000037944# Compiler flag to prevent dynamic linking.
37945link_static_flag=$lt_lt_prog_compiler_static_CXX
37946
37947# Does compiler simultaneously support -c and -o options?
37948compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37949
37950# Whether or not to add -lc for building shared libraries.
37951build_libtool_need_lc=$archive_cmds_need_lc_CXX
37952
37953# Whether or not to disallow shared libs when runtime libs are static.
37954allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37955
37956# Compiler flag to allow reflexive dlopens.
37957export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37958
37959# Compiler flag to generate shared objects directly from archives.
37960whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37961
37962# Whether the compiler copes with passing no objects directly.
37963compiler_needs_object=$lt_compiler_needs_object_CXX
37964
37965# Create an old-style archive from a shared archive.
37966old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37967
37968# Create a temporary old-style archive to link instead of a shared archive.
37969old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37970
37971# Commands used to build a shared archive.
37972archive_cmds=$lt_archive_cmds_CXX
37973archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37974
37975# Commands used to build a loadable module if different from building
37976# a shared archive.
37977module_cmds=$lt_module_cmds_CXX
37978module_expsym_cmds=$lt_module_expsym_cmds_CXX
37979
37980# Whether we are building with GNU ld or not.
37981with_gnu_ld=$lt_with_gnu_ld_CXX
37982
37983# Flag that allows shared libraries with undefined symbols to be built.
37984allow_undefined_flag=$lt_allow_undefined_flag_CXX
37985
37986# Flag that enforces no undefined symbols.
37987no_undefined_flag=$lt_no_undefined_flag_CXX
37988
37989# Flag to hardcode \$libdir into a binary during linking.
37990# This must work even if \$libdir does not exist
37991hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37992
cristy73bd4a52010-10-05 11:24:23 +000037993# Whether we need a single "-rpath" flag with a separated argument.
37994hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37995
37996# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37997# DIR into the resulting binary.
37998hardcode_direct=$hardcode_direct_CXX
37999
38000# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38001# DIR into the resulting binary and the resulting library dependency is
38002# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38003# library is relocated.
38004hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38005
38006# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38007# into the resulting binary.
38008hardcode_minus_L=$hardcode_minus_L_CXX
38009
38010# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38011# into the resulting binary.
38012hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38013
38014# Set to "yes" if building a shared library automatically hardcodes DIR
38015# into the library and all subsequent libraries and executables linked
38016# against it.
38017hardcode_automatic=$hardcode_automatic_CXX
38018
38019# Set to yes if linker adds runtime paths of dependent libraries
38020# to runtime path list.
38021inherit_rpath=$inherit_rpath_CXX
38022
38023# Whether libtool must link a program against all its dependency libraries.
38024link_all_deplibs=$link_all_deplibs_CXX
38025
cristy73bd4a52010-10-05 11:24:23 +000038026# Set to "yes" if exported symbols are required.
38027always_export_symbols=$always_export_symbols_CXX
38028
38029# The commands to list exported symbols.
38030export_symbols_cmds=$lt_export_symbols_cmds_CXX
38031
38032# Symbols that should not be listed in the preloaded symbols.
38033exclude_expsyms=$lt_exclude_expsyms_CXX
38034
38035# Symbols that must always be exported.
38036include_expsyms=$lt_include_expsyms_CXX
38037
38038# Commands necessary for linking programs (against libraries) with templates.
38039prelink_cmds=$lt_prelink_cmds_CXX
38040
cristyda16f162011-02-19 23:52:17 +000038041# Commands necessary for finishing linking programs.
38042postlink_cmds=$lt_postlink_cmds_CXX
38043
cristy73bd4a52010-10-05 11:24:23 +000038044# Specify filename containing input files.
38045file_list_spec=$lt_file_list_spec_CXX
38046
38047# How to hardcode a shared library path into an executable.
38048hardcode_action=$hardcode_action_CXX
38049
38050# The directories searched by this compiler when creating a shared library.
38051compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38052
38053# Dependencies to place before and after the objects being linked to
38054# create a shared library.
38055predep_objects=$lt_predep_objects_CXX
38056postdep_objects=$lt_postdep_objects_CXX
38057predeps=$lt_predeps_CXX
38058postdeps=$lt_postdeps_CXX
38059
38060# The library search path used internally by the compiler when linking
38061# a shared library.
38062compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38063
38064# ### END LIBTOOL TAG CONFIG: CXX
38065_LT_EOF
38066
38067 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038068 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038069 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038070 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038071 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38072 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38073
38074 esac
38075done # for ac_tag
38076
38077
cristy8b350f62009-11-15 23:12:43 +000038078as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038079_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038080ac_clean_files=$ac_clean_files_save
38081
38082test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038083 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038084
38085
38086# configure is writing to config.log, and then calls config.status.
38087# config.status does its own redirection, appending to config.log.
38088# Unfortunately, on DOS this fails, as config.log is still kept open
38089# by configure, so config.status won't be able to write to it; its
38090# output is simply discarded. So we exec the FD to /dev/null,
38091# effectively closing config.log, so it can be properly (re)opened and
38092# appended to by config.status. When coming back to configure, we
38093# need to make the FD available again.
38094if test "$no_create" != yes; then
38095 ac_cs_success=:
38096 ac_config_status_args=
38097 test "$silent" = yes &&
38098 ac_config_status_args="$ac_config_status_args --quiet"
38099 exec 5>/dev/null
38100 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38101 exec 5>>config.log
38102 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38103 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038104 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038105fi
38106if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038108$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38109fi
38110
38111
38112rm -f magick-version
38113
cristy430a7312010-01-21 20:44:04 +000038114result_dejavu_font_dir='none'
38115if test "${dejavu_font_dir}x" != 'x'; then
38116 result_dejavu_font_dir=$dejavu_font_dir
38117fi
38118
cristy3ed852e2009-09-05 21:47:34 +000038119result_ghostscript_font_dir='none'
38120if test "${ghostscript_font_dir}x" != 'x'; then
38121 result_ghostscript_font_dir=$ghostscript_font_dir
38122fi
38123
38124result_windows_font_dir='none'
38125if test "${windows_font_dir}x" != 'x'; then
38126 result_windows_font_dir=${windows_font_dir}
38127fi
38128
cristyad38abe2012-12-23 23:03:21 +000038129{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038130ImageMagick is configured as follows. Please verify that this configuration
38131matches your expectations.
38132
38133Host system type: $host
38134Build system type: $build
38135
38136 Option Value
38137-------------------------------------------------------------------------------
38138Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38139Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038140Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038141GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38142Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38143High Dynamic Range Imagery
38144 --enable-hdri=$enable_hdri $enable_hdri
38145
38146Delegate Configuration:
38147BZLIB --with-bzlib=$with_bzlib $have_bzlib
38148Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038149Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038150DJVU --with-djvu=$with_djvu $have_djvu
38151DPS --with-dps=$with_dps $have_dps
38152FFTW --with-fftw=$with_fftw $have_fftw
38153FlashPIX --with-fpx=$with_fpx $have_fpx
38154FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38155FreeType --with-freetype=$with_freetype $have_freetype
38156GhostPCL None $PCLDelegate ($PCLVersion)
38157GhostXPS None $XPSDelegate ($XPSVersion)
38158Ghostscript None $PSDelegate ($GSVersion)
38159Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38160Ghostscript lib --with-gslib=$with_gslib $have_gslib
38161Graphviz --with-gvc=$with_gvc $have_gvc
38162JBIG --with-jbig=$with_jbig $have_jbig
38163JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38164JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038165LCMS v1 --with-lcms=$with_lcms $have_lcms
38166LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038167LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038168LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038169LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038170Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38171OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038172PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038173PERL --with-perl=$with_perl $have_perl
38174PNG --with-png=$with_png $have_png
38175RSVG --with-rsvg=$with_rsvg $have_rsvg
38176TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038177WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038178Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038179WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038180X11 --with-x=$with_x $have_x
38181XML --with-xml=$with_xml $have_xml
38182ZLIB --with-zlib=$with_zlib $have_zlib
38183
38184X11 Configuration:
38185 X_CFLAGS = $X_CFLAGS
38186 X_PRE_LIBS = $X_PRE_LIBS
38187 X_LIBS = $X_LIBS
38188 X_EXTRA_LIBS = $X_EXTRA_LIBS
38189
38190Options used to compile and link:
38191 PREFIX = $PREFIX_DIR
38192 EXEC-PREFIX = $EXEC_PREFIX_DIR
38193 VERSION = $PACKAGE_VERSION
38194 CC = $CC
38195 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038196 CPPFLAGS = $MAGICK_CPPFLAGS
38197 PCFLAGS = $MAGICK_PCFLAGS
38198 DEFS = $DEFS
38199 LDFLAGS = $LDFLAGS
38200 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38201 LIBS = $MAGICK_LIBS
38202 CXX = $CXX
38203 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038204 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038205 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038206" >&5
cristyad38abe2012-12-23 23:03:21 +000038207$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038208ImageMagick is configured as follows. Please verify that this configuration
38209matches your expectations.
38210
38211Host system type: $host
38212Build system type: $build
38213
38214 Option Value
38215-------------------------------------------------------------------------------
38216Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38217Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038218Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038219GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38220Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38221High Dynamic Range Imagery
38222 --enable-hdri=$enable_hdri $enable_hdri
38223
38224Delegate Configuration:
38225BZLIB --with-bzlib=$with_bzlib $have_bzlib
38226Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038227Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038228DJVU --with-djvu=$with_djvu $have_djvu
38229DPS --with-dps=$with_dps $have_dps
38230FFTW --with-fftw=$with_fftw $have_fftw
38231FlashPIX --with-fpx=$with_fpx $have_fpx
38232FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38233FreeType --with-freetype=$with_freetype $have_freetype
38234GhostPCL None $PCLDelegate ($PCLVersion)
38235GhostXPS None $XPSDelegate ($XPSVersion)
38236Ghostscript None $PSDelegate ($GSVersion)
38237Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38238Ghostscript lib --with-gslib=$with_gslib $have_gslib
38239Graphviz --with-gvc=$with_gvc $have_gvc
38240JBIG --with-jbig=$with_jbig $have_jbig
38241JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38242JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038243LCMS v1 --with-lcms=$with_lcms $have_lcms
38244LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038245LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038246LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038247LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038248Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38249OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038250PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038251PERL --with-perl=$with_perl $have_perl
38252PNG --with-png=$with_png $have_png
38253RSVG --with-rsvg=$with_rsvg $have_rsvg
38254TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038255WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038256Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038257WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038258X11 --with-x=$with_x $have_x
38259XML --with-xml=$with_xml $have_xml
38260ZLIB --with-zlib=$with_zlib $have_zlib
38261
38262X11 Configuration:
38263 X_CFLAGS = $X_CFLAGS
38264 X_PRE_LIBS = $X_PRE_LIBS
38265 X_LIBS = $X_LIBS
38266 X_EXTRA_LIBS = $X_EXTRA_LIBS
38267
38268Options used to compile and link:
38269 PREFIX = $PREFIX_DIR
38270 EXEC-PREFIX = $EXEC_PREFIX_DIR
38271 VERSION = $PACKAGE_VERSION
38272 CC = $CC
38273 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038274 CPPFLAGS = $MAGICK_CPPFLAGS
38275 PCFLAGS = $MAGICK_PCFLAGS
38276 DEFS = $DEFS
38277 LDFLAGS = $LDFLAGS
38278 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38279 LIBS = $MAGICK_LIBS
38280 CXX = $CXX
38281 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038282 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038283 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038284" >&6; }