blob: 89631e6a879fa88d9288abbf0dd90bb3276fc0c9 [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
cristyc8aff842012-12-24 16:59:46 +00003652MAGICK_SVN_REVISION=10388M
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
cristycc22d1d2012-12-10 13:03:25 +00007968AX_COMPILER_VENDOR
cristya0b81c32010-01-22 02:54:33 +00007969
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7971$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7972set x ${MAKE-make}
7973ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007974if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007975 $as_echo_n "(cached) " >&6
7976else
7977 cat >conftest.make <<\_ACEOF
7978SHELL = /bin/sh
7979all:
7980 @echo '@@@%%%=$(MAKE)=@@@%%%'
7981_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007982# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007983case `${MAKE-make} -f conftest.make 2>/dev/null` in
7984 *@@@%%%=?*=@@@%%%*)
7985 eval ac_cv_prog_make_${ac_make}_set=yes;;
7986 *)
7987 eval ac_cv_prog_make_${ac_make}_set=no;;
7988esac
7989rm -f conftest.make
7990fi
7991if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7993$as_echo "yes" >&6; }
7994 SET_MAKE=
7995else
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997$as_echo "no" >&6; }
7998 SET_MAKE="MAKE=${MAKE-make}"
7999fi
8000
cristy8b350f62009-11-15 23:12:43 +00008001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008002$as_echo_n "checking whether ln -s works... " >&6; }
8003LN_S=$as_ln_s
8004if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008006$as_echo "yes" >&6; }
8007else
cristy8b350f62009-11-15 23:12:43 +00008008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008009$as_echo "no, using $LN_S" >&6; }
8010fi
8011
cristybc556452012-08-17 19:44:03 +00008012for ac_prog in gawk mawk nawk awk
8013do
8014 # Extract the first word of "$ac_prog", so it can be a program name with args.
8015set dummy $ac_prog; ac_word=$2
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017$as_echo_n "checking for $ac_word... " >&6; }
8018if ${ac_cv_prog_AWK+:} false; then :
8019 $as_echo_n "(cached) " >&6
8020else
8021 if test -n "$AWK"; then
8022 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8023else
8024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025for as_dir in $PATH
8026do
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_AWK="$ac_prog"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8034 fi
8035done
8036 done
8037IFS=$as_save_IFS
8038
8039fi
8040fi
8041AWK=$ac_cv_prog_AWK
8042if test -n "$AWK"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8044$as_echo "$AWK" >&6; }
8045else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047$as_echo "no" >&6; }
8048fi
8049
8050
8051 test -n "$AWK" && break
8052done
8053
cristy73bd4a52010-10-05 11:24:23 +00008054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8055$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8056
8057# Check whether --with-dmalloc was given.
8058if test "${with_dmalloc+set}" = set; then :
8059 withval=$with_dmalloc; if test "$withval" = yes; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8061$as_echo "yes" >&6; }
8062
8063$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8064
8065 LIBS="$LIBS -ldmalloc"
8066 LDFLAGS="$LDFLAGS -g"
8067else
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069$as_echo "no" >&6; }
8070fi
8071else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073$as_echo "no" >&6; }
8074fi
8075
8076
8077
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8079$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008080if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008081 $as_echo_n "(cached) " >&6
8082else
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084/* end confdefs.h. */
8085#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008086 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008087 static void
8088 foo(void) {
8089 exit(1);
8090 }
8091
8092int
8093main ()
8094{
8095
8096 ;
8097 return 0;
8098}
8099_ACEOF
8100if ac_fn_c_try_compile "$LINENO"; then :
8101 ax_cv___attribute__=yes
8102else
8103 ax_cv___attribute__=no
8104
8105fi
8106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107
8108fi
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8110$as_echo "$ax_cv___attribute__" >&6; }
8111 if test "$ax_cv___attribute__" = "yes"; then
8112
8113$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8114
8115 fi
8116
8117
8118
cristy37110d62012-03-01 18:38:20 +00008119
8120
8121# Check whether --with-gcc-arch was given.
8122if test "${with_gcc_arch+set}" = set; then :
8123 withval=$with_gcc_arch; ax_gcc_arch=$withval
8124else
cristya32d1812012-03-02 19:24:21 +00008125 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008126fi
8127
8128
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8130$as_echo_n "checking for gcc architecture flag... " >&6; }
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8132$as_echo "" >&6; }
8133if ${ax_cv_gcc_archflag+:} false; then :
8134 $as_echo_n "(cached) " >&6
8135else
8136
8137ax_cv_gcc_archflag="unknown"
8138
8139if test "$GCC" = yes; then
8140
8141if test "x$ax_gcc_arch" = xyes; then
8142ax_gcc_arch=""
8143if test "$cross_compiling" = no; then
8144case $host_cpu in
8145 i[3456]86*|x86_64*) # use cpuid codes
8146
8147ac_ext=c
8148ac_cpp='$CPP $CPPFLAGS'
8149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8151ac_compiler_gnu=$ac_cv_c_compiler_gnu
8152
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8154$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8155if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8156 $as_echo_n "(cached) " >&6
8157else
8158 if test "$cross_compiling" = yes; then :
8159 ax_cv_gcc_x86_cpuid_0=unknown
8160else
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162/* end confdefs.h. */
8163#include <stdio.h>
8164int
8165main ()
8166{
8167
8168 int op = 0, eax, ebx, ecx, edx;
8169 FILE *f;
8170 __asm__("cpuid"
8171 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8172 : "a" (op));
8173 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8174 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8175 fclose(f);
8176 return 0;
8177
8178 ;
8179 return 0;
8180}
8181_ACEOF
8182if ac_fn_c_try_run "$LINENO"; then :
8183 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8184else
8185 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8186fi
8187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8188 conftest.$ac_objext conftest.beam conftest.$ac_ext
8189fi
8190
8191fi
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8193$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8194ac_ext=c
8195ac_cpp='$CPP $CPPFLAGS'
8196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8198ac_compiler_gnu=$ac_cv_c_compiler_gnu
8199
8200
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 1 output" >&5
8209$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8210if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8211 $as_echo_n "(cached) " >&6
8212else
8213 if test "$cross_compiling" = yes; then :
8214 ax_cv_gcc_x86_cpuid_1=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 = 1, 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_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8239else
8240 ax_cv_gcc_x86_cpuid_1=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_1" >&5
8248$as_echo "$ax_cv_gcc_x86_cpuid_1" >&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 case $ax_cv_gcc_x86_cpuid_0 in
8257 *:756e6547:*:*) # Intel
8258 case $ax_cv_gcc_x86_cpuid_1 in
8259 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8260 *5??:*:*:*) ax_gcc_arch=pentium ;;
8261 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8262 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8263 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8264 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8265 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8266 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8267 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8268 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8269 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8270 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8271 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8272 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8273 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8274 case $host_cpu in
8275 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8276 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8277 esac ;;
8278 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8279 esac ;;
8280 *:68747541:*:*) # AMD
8281 case $ax_cv_gcc_x86_cpuid_1 in
8282 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8283 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8284 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8285 *60?:*:*:*) ax_gcc_arch=k7 ;;
8286 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8287 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8288 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8289 *6[68a]?:*:*:*)
8290
8291ac_ext=c
8292ac_cpp='$CPP $CPPFLAGS'
8293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8295ac_compiler_gnu=$ac_cv_c_compiler_gnu
8296
8297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8298$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8299if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301else
8302 if test "$cross_compiling" = yes; then :
8303 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8304else
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306/* end confdefs.h. */
8307#include <stdio.h>
8308int
8309main ()
8310{
8311
8312 int op = 0x80000006, eax, ebx, ecx, edx;
8313 FILE *f;
8314 __asm__("cpuid"
8315 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8316 : "a" (op));
8317 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8318 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8319 fclose(f);
8320 return 0;
8321
8322 ;
8323 return 0;
8324}
8325_ACEOF
8326if ac_fn_c_try_run "$LINENO"; then :
8327 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8328else
8329 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8330fi
8331rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8332 conftest.$ac_objext conftest.beam conftest.$ac_ext
8333fi
8334
8335fi
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8337$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8338ac_ext=c
8339ac_cpp='$CPP $CPPFLAGS'
8340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8342ac_compiler_gnu=$ac_cv_c_compiler_gnu
8343
8344 # L2 cache size
8345 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8346 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8347 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8348 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8349 esac ;;
8350 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8351 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8352 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8353 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8354 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8355 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8356 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8357 esac ;;
8358 *:746e6543:*:*) # IDT
8359 case $ax_cv_gcc_x86_cpuid_1 in
8360 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8361 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8362 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8363 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8364 esac ;;
8365 esac
8366 if test x"$ax_gcc_arch" = x; then # fallback
8367 case $host_cpu in
8368 i586*) ax_gcc_arch=pentium ;;
8369 i686*) ax_gcc_arch=pentiumpro ;;
8370 esac
8371 fi
8372 ;;
8373
8374 sparc*)
8375 # Extract the first word of "prtdiag", so it can be a program name with args.
8376set dummy prtdiag; ac_word=$2
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378$as_echo_n "checking for $ac_word... " >&6; }
8379if ${ac_cv_path_PRTDIAG+:} false; then :
8380 $as_echo_n "(cached) " >&6
8381else
8382 case $PRTDIAG in
8383 [\\/]* | ?:[\\/]*)
8384 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8385 ;;
8386 *)
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8389for as_dir in $as_dummy
8390do
8391 IFS=$as_save_IFS
8392 test -z "$as_dir" && as_dir=.
8393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008395 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8397 break 2
8398 fi
8399done
8400 done
8401IFS=$as_save_IFS
8402
8403 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8404 ;;
8405esac
8406fi
8407PRTDIAG=$ac_cv_path_PRTDIAG
8408if test -n "$PRTDIAG"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8410$as_echo "$PRTDIAG" >&6; }
8411else
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413$as_echo "no" >&6; }
8414fi
8415
8416
8417 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`
8418 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8419 case $cputype in
8420 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8421 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8422 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8423 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8424 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8425 *cypress*) ax_gcc_arch=cypress ;;
8426 esac ;;
8427
8428 alphaev5) ax_gcc_arch=ev5 ;;
8429 alphaev56) ax_gcc_arch=ev56 ;;
8430 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8431 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8432 alphaev6) ax_gcc_arch=ev6 ;;
8433 alphaev67) ax_gcc_arch=ev67 ;;
8434 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8435 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8436 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8437 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8438
8439 powerpc*)
8440 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`
8441 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8442 case $cputype in
8443 *750*) ax_gcc_arch="750 G3" ;;
8444 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8445 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8446 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8447 *970*) ax_gcc_arch="970 G5 power4";;
8448 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8449 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8450 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8451 *) ax_gcc_arch=$cputype ;;
8452 esac
8453 ax_gcc_arch="$ax_gcc_arch powerpc"
8454 ;;
8455esac
8456fi # not cross-compiling
8457fi # guess arch
8458
8459if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8460for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008461 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008462 flags="-mtune=$arch"
8463 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8464 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8465 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8466 else
8467 flags="-march=$arch -mcpu=$arch -m$arch"
8468 fi
8469 for flag in $flags; do
8470 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8472$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8473if eval \${$as_CACHEVAR+:} false; then :
8474 $as_echo_n "(cached) " >&6
8475else
8476
8477 ax_check_save_flags=$CFLAGS
8478 CFLAGS="$CFLAGS $flag"
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480/* end confdefs.h. */
8481
8482int
8483main ()
8484{
8485
8486 ;
8487 return 0;
8488}
8489_ACEOF
8490if ac_fn_c_try_compile "$LINENO"; then :
8491 eval "$as_CACHEVAR=yes"
8492else
8493 eval "$as_CACHEVAR=no"
8494fi
8495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496 CFLAGS=$ax_check_save_flags
8497fi
8498eval ac_res=\$$as_CACHEVAR
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8500$as_echo "$ac_res" >&6; }
8501if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8502 ax_cv_gcc_archflag=$flag; break
8503else
8504 :
8505fi
8506
8507 done
8508 test "x$ax_cv_gcc_archflag" = xunknown || break
8509done
8510fi
8511
8512fi # $GCC=yes
8513
8514fi
8515
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8517$as_echo_n "checking for gcc architecture flag... " >&6; }
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8519$as_echo "$ax_cv_gcc_archflag" >&6; }
8520if test "x$ax_cv_gcc_archflag" = xunknown; then
8521 :
8522else
8523 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8524fi
8525
8526
8527
cristy73bd4a52010-10-05 11:24:23 +00008528if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8529 if test -n "$ac_tool_prefix"; then
8530 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8531set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008534if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008535 $as_echo_n "(cached) " >&6
8536else
8537 case $PKG_CONFIG in
8538 [\\/]* | ?:[\\/]*)
8539 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8540 ;;
8541 *)
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543for as_dir in $PATH
8544do
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008549 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 break 2
8552 fi
8553done
8554 done
8555IFS=$as_save_IFS
8556
8557 ;;
8558esac
8559fi
8560PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8561if test -n "$PKG_CONFIG"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8563$as_echo "$PKG_CONFIG" >&6; }
8564else
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566$as_echo "no" >&6; }
8567fi
8568
8569
8570fi
8571if test -z "$ac_cv_path_PKG_CONFIG"; then
8572 ac_pt_PKG_CONFIG=$PKG_CONFIG
8573 # Extract the first word of "pkg-config", so it can be a program name with args.
8574set dummy pkg-config; ac_word=$2
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008577if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008578 $as_echo_n "(cached) " >&6
8579else
8580 case $ac_pt_PKG_CONFIG in
8581 [\\/]* | ?:[\\/]*)
8582 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8583 ;;
8584 *)
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586for as_dir in $PATH
8587do
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008592 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8595 fi
8596done
8597 done
8598IFS=$as_save_IFS
8599
8600 ;;
8601esac
8602fi
8603ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8604if test -n "$ac_pt_PKG_CONFIG"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8606$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8607else
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609$as_echo "no" >&6; }
8610fi
8611
8612 if test "x$ac_pt_PKG_CONFIG" = x; then
8613 PKG_CONFIG=""
8614 else
8615 case $cross_compiling:$ac_tool_warned in
8616yes:)
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8619ac_tool_warned=yes ;;
8620esac
8621 PKG_CONFIG=$ac_pt_PKG_CONFIG
8622 fi
8623else
8624 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8625fi
8626
8627fi
8628if test -n "$PKG_CONFIG"; then
8629 _pkg_min_version=0.9.0
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8631$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8632 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8634$as_echo "yes" >&6; }
8635 else
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637$as_echo "no" >&6; }
8638 PKG_CONFIG=""
8639 fi
8640
8641fi
cristy3ed852e2009-09-05 21:47:34 +00008642
cristy9b86f202012-11-28 21:55:35 +00008643# Check for linker script support
8644
8645 # Check whether --enable-ld-version-script was given.
8646if test "${enable_ld_version_script+set}" = set; then :
8647 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8648fi
8649
8650 if test -z "$have_ld_version_script"; then
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8652$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8653 save_LDFLAGS="$LDFLAGS"
8654 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8655 cat > conftest.map <<EOF
8656foo
8657EOF
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659/* end confdefs.h. */
8660
8661int
8662main ()
8663{
8664
8665 ;
8666 return 0;
8667}
8668_ACEOF
8669if ac_fn_c_try_link "$LINENO"; then :
8670 accepts_syntax_errors=yes
8671else
8672 accepts_syntax_errors=no
8673fi
8674rm -f core conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 if test "$accepts_syntax_errors" = no; then
8677 cat > conftest.map <<EOF
8678VERS_1 {
8679 global: sym;
8680};
8681
8682VERS_2 {
8683 global: sym;
8684} VERS_1;
8685EOF
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687/* end confdefs.h. */
8688
8689int
8690main ()
8691{
8692
8693 ;
8694 return 0;
8695}
8696_ACEOF
8697if ac_fn_c_try_link "$LINENO"; then :
8698 have_ld_version_script=yes
8699else
8700 have_ld_version_script=no
8701fi
8702rm -f core conftest.err conftest.$ac_objext \
8703 conftest$ac_exeext conftest.$ac_ext
8704 else
8705 have_ld_version_script=no
8706 fi
8707 rm -f conftest.map
8708 LDFLAGS="$save_LDFLAGS"
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8710$as_echo "$have_ld_version_script" >&6; }
8711 fi
8712 if test "$have_ld_version_script" = "yes"; then
8713 HAVE_LD_VERSION_SCRIPT_TRUE=
8714 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8715else
8716 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8717 HAVE_LD_VERSION_SCRIPT_FALSE=
8718fi
8719
8720
8721
cristy3ed852e2009-09-05 21:47:34 +00008722#
cristy3ed852e2009-09-05 21:47:34 +00008723# Enable run-time checking.
8724#
8725# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008726if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008727 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8728else
8729 enable_bounds_checking='no'
8730fi
8731
8732
8733if test "$enable_bounds_checking" = yes; then
8734
cristy8b350f62009-11-15 23:12:43 +00008735$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008736
8737fi
8738
8739#
8740# Tests for Windows
8741#
8742
8743
8744
8745GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008746native_win32_build='no'
8747cygwin_build='no'
8748case "${host_os}" in
8749 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008750 cygwin_build='yes'
8751 GDI32_LIBS='-lgdi32'
8752 ;;
8753 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008754 native_win32_build='yes'
8755 GDI32_LIBS='-lgdi32'
8756 ;;
8757esac
8758if test "${GDI32_LIBS}x" != 'x'; then
8759
cristy8b350f62009-11-15 23:12:43 +00008760$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008761
8762fi
8763
cristy73bd4a52010-10-05 11:24:23 +00008764 if test "${GDI32_LIBS}x" != 'x' ; then
8765 WINGDI32_DELEGATE_TRUE=
8766 WINGDI32_DELEGATE_FALSE='#'
8767else
8768 WINGDI32_DELEGATE_TRUE='#'
8769 WINGDI32_DELEGATE_FALSE=
8770fi
8771
8772 if test "${native_win32_build}" = 'yes' ; then
8773 WIN32_NATIVE_BUILD_TRUE=
8774 WIN32_NATIVE_BUILD_FALSE='#'
8775else
8776 WIN32_NATIVE_BUILD_TRUE='#'
8777 WIN32_NATIVE_BUILD_FALSE=
8778fi
8779
8780 if test "${cygwin_build}" = 'yes' ; then
8781 CYGWIN_BUILD_TRUE=
8782 CYGWIN_BUILD_FALSE='#'
8783else
8784 CYGWIN_BUILD_TRUE='#'
8785 CYGWIN_BUILD_FALSE=
8786fi
8787
8788 if test "x${CC}" = 'xcl.exe' ; then
8789 USING_CL_TRUE=
8790 USING_CL_FALSE='#'
8791else
8792 USING_CL_TRUE='#'
8793 USING_CL_FALSE=
8794fi
8795
cristy3ed852e2009-09-05 21:47:34 +00008796
8797WinPathScript="${srcdirfull}/winpath.sh"
8798
8799
8800#
8801# Compiler flags tweaks
8802#
8803if test "${GCC}" != "yes"; then
8804 case "${host}" in
8805 *-*-hpux* )
8806 # aCC: HP ANSI C++ B3910B A.03.34
8807 CFLAGS="${CFLAGS} -Wp,-H30000"
8808 if test -n "${CXXFLAGS}"; then
8809 CXXFLAGS='-AA'
8810 else
8811 CXXFLAGS="${CXXFLAGS} -AA"
8812 fi
8813 ;;
8814 *-dec-osf5.* )
8815 # Compaq alphaev68-dec-osf5.1 compiler
8816 if test -n "${CXXFLAGS}"; then
8817 CXXFLAGS='-std strict_ansi -noimplicit_include'
8818 else
8819 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8820 fi
8821 esac
8822fi
8823
8824# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008826$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008827if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008828 $as_echo_n "(cached) " >&6
8829else
8830
8831im_cv_ld_lazyload='none'
8832case "${host}" in
8833 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8834 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8835 im_cv_ld_lazyload='-Wl,-zlazyload'
8836 fi
8837 ;;
8838esac
8839
8840fi
cristy8b350f62009-11-15 23:12:43 +00008841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008842$as_echo "$im_cv_ld_lazyload" >&6; }
8843if test "${im_cv_ld_lazyload}" != 'none' ; then
8844 if test -z "${LDFLAGS}" ; then
8845 LDFLAGS="${im_cv_ld_lazyload}"
8846 else
8847 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8848 fi
8849fi
8850
8851case "$host" in
8852*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008853 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008854if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008855 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8856else
8857 build_osxuniversal=no
8858fi
8859
8860
8861 if test "${build_osxuniversal}" != no ; then
8862 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008863 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008864Please re-run configure with these options:
8865 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008866 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008867 fi
8868 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8869 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8870 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8871 fi
8872 ;;
8873esac
8874
cristy0151ae12011-10-28 16:32:29 +00008875#
8876# ARCH specific include directory
8877#
8878
cristy670aa3c2011-11-03 00:54:00 +00008879# Check whether --with-includearch-dir was given.
8880if test "${with_includearch_dir+set}" = set; then :
8881 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008882else
cristy670aa3c2011-11-03 00:54:00 +00008883 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008884fi
8885
8886
cristy670aa3c2011-11-03 00:54:00 +00008887eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008888
cristy0151ae12011-10-28 16:32:29 +00008889
8890#
8891# ARCH specific configuration directory
8892#
8893
cristy670aa3c2011-11-03 00:54:00 +00008894# Check whether --with-sharearch-dir was given.
8895if test "${with_sharearch_dir+set}" = set; then :
8896 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008897else
cristy408ebcd2011-11-14 01:36:57 +00008898 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008899fi
8900
8901
cristy670aa3c2011-11-03 00:54:00 +00008902eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008903
cristy0151ae12011-10-28 16:32:29 +00008904
8905#
cristy3ed852e2009-09-05 21:47:34 +00008906# Enable support for threads
8907
8908# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008909if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008910 withval=$with_threads; with_threads=$withval
8911else
8912 with_threads='yes'
8913fi
8914
8915
8916have_threads=no
8917if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008918
8919
cristy73bd4a52010-10-05 11:24:23 +00008920ac_ext=c
8921ac_cpp='$CPP $CPPFLAGS'
8922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8924ac_compiler_gnu=$ac_cv_c_compiler_gnu
8925
8926ax_pthread_ok=no
8927
8928# We used to check for pthread.h first, but this fails if pthread.h
8929# requires special compiler flags (e.g. on True64 or Sequent).
8930# It gets checked for in the link test anyway.
8931
8932# First of all, check if the user has set any of the PTHREAD_LIBS,
8933# etcetera environment variables, and if threads linking works using
8934# them:
8935if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8936 save_CFLAGS="$CFLAGS"
8937 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8938 save_LIBS="$LIBS"
8939 LIBS="$PTHREAD_LIBS $LIBS"
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8941$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943/* end confdefs.h. */
8944
8945/* Override any GCC internal prototype to avoid an error.
8946 Use char because int might match the return type of a GCC
8947 builtin and then its argument prototype would still apply. */
8948#ifdef __cplusplus
8949extern "C"
8950#endif
8951char pthread_join ();
8952int
8953main ()
8954{
8955return pthread_join ();
8956 ;
8957 return 0;
8958}
8959_ACEOF
8960if ac_fn_c_try_link "$LINENO"; then :
8961 ax_pthread_ok=yes
8962fi
8963rm -f core conftest.err conftest.$ac_objext \
8964 conftest$ac_exeext conftest.$ac_ext
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8966$as_echo "$ax_pthread_ok" >&6; }
8967 if test x"$ax_pthread_ok" = xno; then
8968 PTHREAD_LIBS=""
8969 PTHREAD_CFLAGS=""
8970 fi
8971 LIBS="$save_LIBS"
8972 CFLAGS="$save_CFLAGS"
8973fi
8974
8975# We must check for the threads library under a number of different
8976# names; the ordering is very important because some systems
8977# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8978# libraries is broken (non-POSIX).
8979
8980# Create a list of thread flags to try. Items starting with a "-" are
8981# C compiler flags, and other items are library names, except for "none"
8982# which indicates that we try without any flags at all, and "pthread-config"
8983# which is a program returning the flags for the Pth emulation library.
8984
cristy18307f12011-12-30 01:20:16 +00008985ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008986
8987# The ordering *is* (sometimes) important. Some notes on the
8988# individual items follow:
8989
8990# pthreads: AIX (must check this before -lpthread)
8991# none: in case threads are in libc; should be tried before -Kthread and
8992# other compiler flags to prevent continual compiler warnings
8993# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8994# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8995# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8996# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8997# -pthreads: Solaris/gcc
8998# -mthreads: Mingw32/gcc, Lynx/gcc
8999# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9000# doesn't hurt to check since this sometimes defines pthreads too;
9001# also defines -D_REENTRANT)
9002# ... -mt is also the pthreads flag for HP/aCC
9003# pthread: Linux, etcetera
9004# --thread-safe: KAI C++
9005# pthread-config: use pthread-config program (for GNU Pth library)
9006
9007case "${host_cpu}-${host_os}" in
9008 *solaris*)
9009
9010 # On Solaris (at least, for some versions), libc contains stubbed
9011 # (non-functional) versions of the pthreads routines, so link-based
9012 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9013 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9014 # a function called by this macro, so we could check for that, but
9015 # who knows whether they'll stub that too in a future libc.) So,
9016 # we'll just look for -pthreads and -lpthread first:
9017
9018 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9019 ;;
9020
cristya316db12011-10-24 00:49:45 +00009021 *-darwin*)
9022 ax_pthread_flags="-pthread $ax_pthread_flags"
9023 ;;
cristy73bd4a52010-10-05 11:24:23 +00009024esac
9025
9026if test x"$ax_pthread_ok" = xno; then
9027for flag in $ax_pthread_flags; do
9028
9029 case $flag in
9030 none)
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9032$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9033 ;;
9034
9035 -*)
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9037$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9038 PTHREAD_CFLAGS="$flag"
9039 ;;
9040
cristya316db12011-10-24 00:49:45 +00009041 pthread-config)
9042 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009043set dummy pthread-config; ac_word=$2
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009046if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009047 $as_echo_n "(cached) " >&6
9048else
9049 if test -n "$ax_pthread_config"; then
9050 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9051else
9052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053for as_dir in $PATH
9054do
9055 IFS=$as_save_IFS
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009059 ac_cv_prog_ax_pthread_config="yes"
9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9061 break 2
9062 fi
9063done
9064 done
9065IFS=$as_save_IFS
9066
9067 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9068fi
9069fi
9070ax_pthread_config=$ac_cv_prog_ax_pthread_config
9071if test -n "$ax_pthread_config"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9073$as_echo "$ax_pthread_config" >&6; }
9074else
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076$as_echo "no" >&6; }
9077fi
9078
9079
cristya316db12011-10-24 00:49:45 +00009080 if test x"$ax_pthread_config" = xno; then continue; fi
9081 PTHREAD_CFLAGS="`pthread-config --cflags`"
9082 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9083 ;;
cristy73bd4a52010-10-05 11:24:23 +00009084
9085 *)
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9087$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9088 PTHREAD_LIBS="-l$flag"
9089 ;;
9090 esac
9091
9092 save_LIBS="$LIBS"
9093 save_CFLAGS="$CFLAGS"
9094 LIBS="$PTHREAD_LIBS $LIBS"
9095 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9096
9097 # Check for various functions. We must include pthread.h,
9098 # since some functions may be macros. (On the Sequent, we
9099 # need a special flag -Kthread to make this header compile.)
9100 # We check for pthread_join because it is in -lpthread on IRIX
9101 # while pthread_create is in libc. We check for pthread_attr_init
9102 # due to DEC craziness with -lpthreads. We check for
9103 # pthread_cleanup_push because it is one of the few pthread
9104 # functions on Solaris that doesn't have a non-functional libc stub.
9105 # We try pthread_create on general principles.
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107/* end confdefs.h. */
9108#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009109 static void routine(void *a) { a = 0; }
9110 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009111int
9112main ()
9113{
9114pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009115 pthread_create(&th, 0, start_routine, 0);
9116 pthread_join(th, 0);
9117 pthread_attr_init(&attr);
9118 pthread_cleanup_push(routine, 0);
9119 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009120 ;
9121 return 0;
9122}
9123_ACEOF
9124if ac_fn_c_try_link "$LINENO"; then :
9125 ax_pthread_ok=yes
9126fi
9127rm -f core conftest.err conftest.$ac_objext \
9128 conftest$ac_exeext conftest.$ac_ext
9129
9130 LIBS="$save_LIBS"
9131 CFLAGS="$save_CFLAGS"
9132
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9134$as_echo "$ax_pthread_ok" >&6; }
9135 if test "x$ax_pthread_ok" = xyes; then
9136 break;
9137 fi
9138
9139 PTHREAD_LIBS=""
9140 PTHREAD_CFLAGS=""
9141done
9142fi
9143
9144# Various other checks:
9145if test "x$ax_pthread_ok" = xyes; then
9146 save_LIBS="$LIBS"
9147 LIBS="$PTHREAD_LIBS $LIBS"
9148 save_CFLAGS="$CFLAGS"
9149 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9150
9151 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009153$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009154 attr_name=unknown
9155 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009157/* end confdefs.h. */
9158#include <pthread.h>
9159int
9160main ()
9161{
cristya316db12011-10-24 00:49:45 +00009162int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009163 ;
9164 return 0;
9165}
9166_ACEOF
9167if ac_fn_c_try_link "$LINENO"; then :
9168 attr_name=$attr; break
9169fi
9170rm -f core conftest.err conftest.$ac_objext \
9171 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009172 done
cristy73bd4a52010-10-05 11:24:23 +00009173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9174$as_echo "$attr_name" >&6; }
9175 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9176
9177cat >>confdefs.h <<_ACEOF
9178#define PTHREAD_CREATE_JOINABLE $attr_name
9179_ACEOF
9180
9181 fi
9182
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9184$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9185 flag=no
9186 case "${host_cpu}-${host_os}" in
9187 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9188 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9189 esac
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9191$as_echo "${flag}" >&6; }
9192 if test "x$flag" != xno; then
9193 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9194 fi
9195
cristya316db12011-10-24 00:49:45 +00009196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9197$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9198if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9199 $as_echo_n "(cached) " >&6
9200else
9201
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203/* end confdefs.h. */
9204
9205 #include <pthread.h>
9206int
9207main ()
9208{
9209int i = PTHREAD_PRIO_INHERIT;
9210 ;
9211 return 0;
9212}
9213_ACEOF
9214if ac_fn_c_try_link "$LINENO"; then :
9215 ax_cv_PTHREAD_PRIO_INHERIT=yes
9216else
9217 ax_cv_PTHREAD_PRIO_INHERIT=no
9218fi
9219rm -f core conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
9221
9222fi
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9224$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9225 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9226
9227$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9228
9229fi
9230
cristy73bd4a52010-10-05 11:24:23 +00009231 LIBS="$save_LIBS"
9232 CFLAGS="$save_CFLAGS"
9233
9234 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009235 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009236 for ac_prog in xlc_r cc_r
9237do
9238 # Extract the first word of "$ac_prog", so it can be a program name with args.
9239set dummy $ac_prog; ac_word=$2
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009242if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009243 $as_echo_n "(cached) " >&6
9244else
9245 if test -n "$PTHREAD_CC"; then
9246 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9247else
9248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249for as_dir in $PATH
9250do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009255 ac_cv_prog_PTHREAD_CC="$ac_prog"
9256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9257 break 2
9258 fi
9259done
9260 done
9261IFS=$as_save_IFS
9262
9263fi
9264fi
9265PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9266if test -n "$PTHREAD_CC"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9268$as_echo "$PTHREAD_CC" >&6; }
9269else
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271$as_echo "no" >&6; }
9272fi
9273
9274
9275 test -n "$PTHREAD_CC" && break
9276done
9277test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9278
9279 else
9280 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009281 fi
cristy73bd4a52010-10-05 11:24:23 +00009282else
9283 PTHREAD_CC="$CC"
9284fi
9285
9286
9287
9288
9289
9290# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9291if test x"$ax_pthread_ok" = xyes; then
9292
9293$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9294
9295 :
9296else
9297 ax_pthread_ok=no
9298
9299fi
9300ac_ext=c
9301ac_cpp='$CPP $CPPFLAGS'
9302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9304ac_compiler_gnu=$ac_cv_c_compiler_gnu
9305
9306
cristy7acf8fb2010-09-23 19:58:53 +00009307 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009308 have_threads=yes
9309 DEF_THREAD="$PTHREAD_CFLAGS"
9310 CFLAGS="$CFLAGS $DEF_THREAD"
9311 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9312 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009313 { $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 +00009314$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9315 CC="$PTHREAD_CC"
9316 fi
cristy55bf91c2010-09-24 00:29:41 +00009317
9318$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9319
cristy3ed852e2009-09-05 21:47:34 +00009320 fi
9321fi
9322
9323# Enable support for OpenMP
9324if test "$have_threads" != 'yes'; then
9325 ac_cv_prog_c_openmp=unsupported
9326fi
9327
9328 OPENMP_CFLAGS=
9329 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009330if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009331 enableval=$enable_openmp;
9332fi
9333
9334 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009336$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009337if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009338 $as_echo_n "(cached) " >&6
9339else
cristy8b350f62009-11-15 23:12:43 +00009340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009342
9343#ifndef _OPENMP
9344 choke me
9345#endif
9346#include <omp.h>
9347int main () { return omp_get_num_threads (); }
9348
9349_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009351 ac_cv_prog_c_openmp='none needed'
9352else
cristy8b350f62009-11-15 23:12:43 +00009353 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009354 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9355 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009356 ac_save_CFLAGS=$CFLAGS
9357 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009360
9361#ifndef _OPENMP
9362 choke me
9363#endif
9364#include <omp.h>
9365int main () { return omp_get_num_threads (); }
9366
9367_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009368if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009369 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009370fi
cristy8b350f62009-11-15 23:12:43 +00009371rm -f core conftest.err conftest.$ac_objext \
9372 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009373 CFLAGS=$ac_save_CFLAGS
9374 if test "$ac_cv_prog_c_openmp" != unsupported; then
9375 break
9376 fi
9377 done
9378fi
cristy8b350f62009-11-15 23:12:43 +00009379rm -f core conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009381fi
cristy8b350f62009-11-15 23:12:43 +00009382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009383$as_echo "$ac_cv_prog_c_openmp" >&6; }
9384 case $ac_cv_prog_c_openmp in #(
9385 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009386 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009387 *)
cristy8b350f62009-11-15 23:12:43 +00009388 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009389 esac
9390 fi
9391
9392
9393CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9394MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9395
cristy391f1ce2010-09-09 17:23:28 +00009396if test "$enable_openmp" != no; then
9397 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9398 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9399 fi
9400fi
cristy3ed852e2009-09-05 21:47:34 +00009401
cristy736173a2009-09-20 21:18:22 +00009402# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009403
9404
cristy73bd4a52010-10-05 11:24:23 +00009405ac_ext=c
9406ac_cpp='$CPP $CPPFLAGS'
9407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9409ac_compiler_gnu=$ac_cv_c_compiler_gnu
9410
9411ax_pthread_ok=no
9412
9413# We used to check for pthread.h first, but this fails if pthread.h
9414# requires special compiler flags (e.g. on True64 or Sequent).
9415# It gets checked for in the link test anyway.
9416
9417# First of all, check if the user has set any of the PTHREAD_LIBS,
9418# etcetera environment variables, and if threads linking works using
9419# them:
9420if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9421 save_CFLAGS="$CFLAGS"
9422 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9423 save_LIBS="$LIBS"
9424 LIBS="$PTHREAD_LIBS $LIBS"
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9426$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428/* end confdefs.h. */
9429
9430/* Override any GCC internal prototype to avoid an error.
9431 Use char because int might match the return type of a GCC
9432 builtin and then its argument prototype would still apply. */
9433#ifdef __cplusplus
9434extern "C"
9435#endif
9436char pthread_join ();
9437int
9438main ()
9439{
9440return pthread_join ();
9441 ;
9442 return 0;
9443}
9444_ACEOF
9445if ac_fn_c_try_link "$LINENO"; then :
9446 ax_pthread_ok=yes
9447fi
9448rm -f core conftest.err conftest.$ac_objext \
9449 conftest$ac_exeext conftest.$ac_ext
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9451$as_echo "$ax_pthread_ok" >&6; }
9452 if test x"$ax_pthread_ok" = xno; then
9453 PTHREAD_LIBS=""
9454 PTHREAD_CFLAGS=""
9455 fi
9456 LIBS="$save_LIBS"
9457 CFLAGS="$save_CFLAGS"
9458fi
9459
9460# We must check for the threads library under a number of different
9461# names; the ordering is very important because some systems
9462# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9463# libraries is broken (non-POSIX).
9464
9465# Create a list of thread flags to try. Items starting with a "-" are
9466# C compiler flags, and other items are library names, except for "none"
9467# which indicates that we try without any flags at all, and "pthread-config"
9468# which is a program returning the flags for the Pth emulation library.
9469
cristy18307f12011-12-30 01:20:16 +00009470ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009471
9472# The ordering *is* (sometimes) important. Some notes on the
9473# individual items follow:
9474
9475# pthreads: AIX (must check this before -lpthread)
9476# none: in case threads are in libc; should be tried before -Kthread and
9477# other compiler flags to prevent continual compiler warnings
9478# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9479# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9480# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9481# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9482# -pthreads: Solaris/gcc
9483# -mthreads: Mingw32/gcc, Lynx/gcc
9484# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9485# doesn't hurt to check since this sometimes defines pthreads too;
9486# also defines -D_REENTRANT)
9487# ... -mt is also the pthreads flag for HP/aCC
9488# pthread: Linux, etcetera
9489# --thread-safe: KAI C++
9490# pthread-config: use pthread-config program (for GNU Pth library)
9491
9492case "${host_cpu}-${host_os}" in
9493 *solaris*)
9494
9495 # On Solaris (at least, for some versions), libc contains stubbed
9496 # (non-functional) versions of the pthreads routines, so link-based
9497 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9498 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9499 # a function called by this macro, so we could check for that, but
9500 # who knows whether they'll stub that too in a future libc.) So,
9501 # we'll just look for -pthreads and -lpthread first:
9502
9503 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9504 ;;
9505
cristya316db12011-10-24 00:49:45 +00009506 *-darwin*)
9507 ax_pthread_flags="-pthread $ax_pthread_flags"
9508 ;;
cristy73bd4a52010-10-05 11:24:23 +00009509esac
9510
9511if test x"$ax_pthread_ok" = xno; then
9512for flag in $ax_pthread_flags; do
9513
9514 case $flag in
9515 none)
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9517$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9518 ;;
9519
9520 -*)
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9522$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9523 PTHREAD_CFLAGS="$flag"
9524 ;;
9525
cristya316db12011-10-24 00:49:45 +00009526 pthread-config)
9527 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009528set dummy pthread-config; ac_word=$2
9529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009531if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009532 $as_echo_n "(cached) " >&6
9533else
9534 if test -n "$ax_pthread_config"; then
9535 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9536else
9537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538for as_dir in $PATH
9539do
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
9542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009544 ac_cv_prog_ax_pthread_config="yes"
9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546 break 2
9547 fi
9548done
9549 done
9550IFS=$as_save_IFS
9551
9552 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9553fi
9554fi
9555ax_pthread_config=$ac_cv_prog_ax_pthread_config
9556if test -n "$ax_pthread_config"; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9558$as_echo "$ax_pthread_config" >&6; }
9559else
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561$as_echo "no" >&6; }
9562fi
9563
9564
cristya316db12011-10-24 00:49:45 +00009565 if test x"$ax_pthread_config" = xno; then continue; fi
9566 PTHREAD_CFLAGS="`pthread-config --cflags`"
9567 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9568 ;;
cristy73bd4a52010-10-05 11:24:23 +00009569
9570 *)
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9572$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9573 PTHREAD_LIBS="-l$flag"
9574 ;;
9575 esac
9576
9577 save_LIBS="$LIBS"
9578 save_CFLAGS="$CFLAGS"
9579 LIBS="$PTHREAD_LIBS $LIBS"
9580 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9581
9582 # Check for various functions. We must include pthread.h,
9583 # since some functions may be macros. (On the Sequent, we
9584 # need a special flag -Kthread to make this header compile.)
9585 # We check for pthread_join because it is in -lpthread on IRIX
9586 # while pthread_create is in libc. We check for pthread_attr_init
9587 # due to DEC craziness with -lpthreads. We check for
9588 # pthread_cleanup_push because it is one of the few pthread
9589 # functions on Solaris that doesn't have a non-functional libc stub.
9590 # We try pthread_create on general principles.
9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592/* end confdefs.h. */
9593#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009594 static void routine(void *a) { a = 0; }
9595 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009596int
9597main ()
9598{
9599pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009600 pthread_create(&th, 0, start_routine, 0);
9601 pthread_join(th, 0);
9602 pthread_attr_init(&attr);
9603 pthread_cleanup_push(routine, 0);
9604 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009605 ;
9606 return 0;
9607}
9608_ACEOF
9609if ac_fn_c_try_link "$LINENO"; then :
9610 ax_pthread_ok=yes
9611fi
9612rm -f core conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9614
9615 LIBS="$save_LIBS"
9616 CFLAGS="$save_CFLAGS"
9617
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9619$as_echo "$ax_pthread_ok" >&6; }
9620 if test "x$ax_pthread_ok" = xyes; then
9621 break;
9622 fi
9623
9624 PTHREAD_LIBS=""
9625 PTHREAD_CFLAGS=""
9626done
9627fi
9628
9629# Various other checks:
9630if test "x$ax_pthread_ok" = xyes; then
9631 save_LIBS="$LIBS"
9632 LIBS="$PTHREAD_LIBS $LIBS"
9633 save_CFLAGS="$CFLAGS"
9634 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9635
9636 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009638$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009639 attr_name=unknown
9640 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009642/* end confdefs.h. */
9643#include <pthread.h>
9644int
9645main ()
9646{
cristya316db12011-10-24 00:49:45 +00009647int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009648 ;
9649 return 0;
9650}
9651_ACEOF
9652if ac_fn_c_try_link "$LINENO"; then :
9653 attr_name=$attr; break
9654fi
9655rm -f core conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009657 done
cristy73bd4a52010-10-05 11:24:23 +00009658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9659$as_echo "$attr_name" >&6; }
9660 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9661
9662cat >>confdefs.h <<_ACEOF
9663#define PTHREAD_CREATE_JOINABLE $attr_name
9664_ACEOF
9665
9666 fi
9667
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9669$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9670 flag=no
9671 case "${host_cpu}-${host_os}" in
9672 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9673 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9674 esac
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9676$as_echo "${flag}" >&6; }
9677 if test "x$flag" != xno; then
9678 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9679 fi
9680
cristya316db12011-10-24 00:49:45 +00009681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9682$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9683if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9684 $as_echo_n "(cached) " >&6
9685else
9686
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688/* end confdefs.h. */
9689
9690 #include <pthread.h>
9691int
9692main ()
9693{
9694int i = PTHREAD_PRIO_INHERIT;
9695 ;
9696 return 0;
9697}
9698_ACEOF
9699if ac_fn_c_try_link "$LINENO"; then :
9700 ax_cv_PTHREAD_PRIO_INHERIT=yes
9701else
9702 ax_cv_PTHREAD_PRIO_INHERIT=no
9703fi
9704rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext conftest.$ac_ext
9706
9707fi
9708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9709$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9710 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9711
9712$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9713
9714fi
9715
cristy73bd4a52010-10-05 11:24:23 +00009716 LIBS="$save_LIBS"
9717 CFLAGS="$save_CFLAGS"
9718
9719 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009720 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009721 for ac_prog in xlc_r cc_r
9722do
9723 # Extract the first word of "$ac_prog", so it can be a program name with args.
9724set dummy $ac_prog; ac_word=$2
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9726$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009727if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009728 $as_echo_n "(cached) " >&6
9729else
9730 if test -n "$PTHREAD_CC"; then
9731 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9732else
9733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734for as_dir in $PATH
9735do
9736 IFS=$as_save_IFS
9737 test -z "$as_dir" && as_dir=.
9738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009740 ac_cv_prog_PTHREAD_CC="$ac_prog"
9741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 break 2
9743 fi
9744done
9745 done
9746IFS=$as_save_IFS
9747
9748fi
9749fi
9750PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9751if test -n "$PTHREAD_CC"; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9753$as_echo "$PTHREAD_CC" >&6; }
9754else
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756$as_echo "no" >&6; }
9757fi
9758
9759
9760 test -n "$PTHREAD_CC" && break
9761done
9762test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9763
9764 else
9765 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009766 fi
cristy73bd4a52010-10-05 11:24:23 +00009767else
9768 PTHREAD_CC="$CC"
9769fi
9770
9771
9772
9773
9774
9775# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9776if test x"$ax_pthread_ok" = xyes; then
9777
9778$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9779
9780 :
9781else
9782 ax_pthread_ok=no
9783
9784fi
9785ac_ext=c
9786ac_cpp='$CPP $CPPFLAGS'
9787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9789ac_compiler_gnu=$ac_cv_c_compiler_gnu
9790
9791
9792
9793# Check whether --enable-opencl was given.
9794if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009795 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009796else
cristy48794642012-09-02 15:19:08 +00009797 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009798fi
9799
9800
cristy48794642012-09-02 15:19:08 +00009801if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009802 ac_ext=c
9803ac_cpp='$CPP $CPPFLAGS'
9804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9806ac_compiler_gnu=$ac_cv_c_compiler_gnu
9807
cristy75314cc2012-09-15 23:08:29 +00009808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9809$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9810if ${ax_cv_c_compiler_ms+:} false; then :
9811 $as_echo_n "(cached) " >&6
9812else
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814/* end confdefs.h. */
9815
9816int
9817main ()
9818{
9819#ifndef _MSC_VER
9820 choke me
9821#endif
9822
9823 ;
9824 return 0;
9825}
9826_ACEOF
9827if ac_fn_c_try_compile "$LINENO"; then :
9828 ax_compiler_ms=yes
9829else
9830 ax_compiler_ms=no
9831fi
9832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833ax_cv_c_compiler_ms=$ax_compiler_ms
9834
9835fi
9836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9837$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009838 if test X$ax_compiler_ms = Xno; then :
9839 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9840fi
9841
9842 ax_save_CPPFLAGS=$CPPFLAGS
9843 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9844 for ac_header in CL/cl.h OpenCL/cl.h
9845do :
9846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9847ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009848if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009849 cat >>confdefs.h <<_ACEOF
9850#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9851_ACEOF
9852
9853fi
9854
9855done
9856
9857 CPPFLAGS=$ax_save_CPPFLAGS
9858
9859 for ac_header in windows.h
9860do :
9861 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009862if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009863 cat >>confdefs.h <<_ACEOF
9864#define HAVE_WINDOWS_H 1
9865_ACEOF
9866
9867fi
9868
9869done
9870
9871
9872
9873
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9875$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009876if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009877 $as_echo_n "(cached) " >&6
9878else
9879 ax_cv_check_cl_libcl=no
9880 case $host_cpu in
9881 x86_64) ax_check_cl_libdir=lib64 ;;
9882 *) ax_check_cl_libdir=lib ;;
9883 esac
9884 ax_save_CPPFLAGS=$CPPFLAGS
9885 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9886 ax_save_LIBS=$LIBS
9887 LIBS=""
9888 ax_check_libs="-lOpenCL -lCL -lclparser"
9889 for ax_lib in $ax_check_libs; do
9890 if test X$ax_compiler_ms = Xyes; then :
9891 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9892else
9893 ax_try_lib=$ax_lib
9894fi
9895 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897/* end confdefs.h. */
9898
9899 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9900 # include <windows.h>
9901 # endif
9902 # ifdef HAVE_CL_CL_H
9903 # include <CL/cl.h>
9904 # elif defined(HAVE_OPENCL_CL_H)
9905 # include <OpenCL/cl.h>
9906 # else
9907 # error no CL.h
9908 # endif
9909int
9910main ()
9911{
9912clCreateContextFromType(0,0,0,0,0)
9913 ;
9914 return 0;
9915}
9916_ACEOF
9917if ac_fn_c_try_link "$LINENO"; then :
9918 ax_cv_check_cl_libcl=$ax_try_lib; break
9919else
9920 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"
9921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922/* end confdefs.h. */
9923
9924 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9925 # include <windows.h>
9926 # endif
9927 # ifdef HAVE_CL_CL_H
9928 # include <CL/cl.h>
9929 # elif defined(HAVE_OPENCL_CL_H)
9930 # include <OpenCL/cl.h>
9931 # else
9932 # error no CL.h
9933 # endif
9934int
9935main ()
9936{
9937clCreateContextFromType(0,0,0,0,0)
9938 ;
9939 return 0;
9940}
9941_ACEOF
9942if ac_fn_c_try_link "$LINENO"; then :
9943 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9944else
cristy78c5a0c2010-12-04 20:00:59 +00009945 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 +00009946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947/* end confdefs.h. */
9948
9949 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9950 # include <windows.h>
9951 # endif
9952 # ifdef HAVE_CL_CL_H
9953 # include <CL/cl.h>
9954 # elif defined(HAVE_OPENCL_CL_H)
9955 # include <OpenCL/cl.h>
9956 # else
9957 # error no CL.h
9958 # endif
9959int
9960main ()
9961{
9962clCreateContextFromType(0,0,0,0,0)
9963 ;
9964 return 0;
9965}
9966_ACEOF
9967if ac_fn_c_try_link "$LINENO"; then :
9968 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9969fi
9970rm -f core conftest.err conftest.$ac_objext \
9971 conftest$ac_exeext conftest.$ac_ext
9972fi
9973rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975fi
9976rm -f core conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9978 done
9979
cristyc3f8b8e2011-12-22 14:55:16 +00009980 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009981 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983/* end confdefs.h. */
9984
9985 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9986 # include <windows.h>
9987 # endif
9988 # ifdef HAVE_CL_CL_H
9989 # include <CL/cl.h>
9990 # elif defined(HAVE_OPENCL_CL_H)
9991 # include <OpenCL/cl.h>
9992 # else
9993 # error no CL.h
9994 # endif
9995int
9996main ()
9997{
9998clCreateContextFromType(0,0,0,0,0)
9999 ;
10000 return 0;
10001}
10002_ACEOF
10003if ac_fn_c_try_link "$LINENO"; then :
10004 ax_cv_check_cl_libcl=$LIBS
10005fi
10006rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008fi
10009
10010 LIBS=$ax_save_LIBS
10011 CPPFLAGS=$ax_save_CPPFLAGS
10012fi
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10014$as_echo "$ax_cv_check_cl_libcl" >&6; }
10015
10016 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10017 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10018else
10019 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10020$as_echo "#define _OPENCL 1" >>confdefs.h
10021
10022fi
10023 ac_ext=c
10024ac_cpp='$CPP $CPPFLAGS'
10025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10027ac_compiler_gnu=$ac_cv_c_compiler_gnu
10028
10029fi
10030
10031
10032
10033
cristyc7083c12009-10-14 03:16:55 +000010034CFLAGS="$CL_CFLAGS $CFLAGS"
10035LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010036
cristy391f1ce2010-09-09 17:23:28 +000010037if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010038 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010039 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10040 fi
cristyfd9dcd42010-08-08 18:07:02 +000010041fi
cristy2e8b51d2009-10-17 18:26:15 +000010042
cristy3ed852e2009-09-05 21:47:34 +000010043########
10044#
10045# Check for large file support
10046#
10047########
10048# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010049if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010050 enableval=$enable_largefile;
10051fi
10052
10053if test "$enable_largefile" != no; then
10054
cristy8b350f62009-11-15 23:12:43 +000010055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010056$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010057if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010058 $as_echo_n "(cached) " >&6
10059else
10060 ac_cv_sys_largefile_CC=no
10061 if test "$GCC" != yes; then
10062 ac_save_CC=$CC
10063 while :; do
10064 # IRIX 6.2 and later do not support large files by default,
10065 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010067/* end confdefs.h. */
10068#include <sys/types.h>
10069 /* Check that off_t can represent 2**63 - 1 correctly.
10070 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10071 since some C++ compilers masquerading as C compilers
10072 incorrectly reject 9223372036854775807. */
10073#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10074 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10075 && LARGE_OFF_T % 2147483647 == 1)
10076 ? 1 : -1];
10077int
10078main ()
10079{
10080
10081 ;
10082 return 0;
10083}
10084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010085 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010086 break
cristy3ed852e2009-09-05 21:47:34 +000010087fi
cristy3ed852e2009-09-05 21:47:34 +000010088rm -f core conftest.err conftest.$ac_objext
10089 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010090 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010091 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010092fi
cristy3ed852e2009-09-05 21:47:34 +000010093rm -f core conftest.err conftest.$ac_objext
10094 break
10095 done
10096 CC=$ac_save_CC
10097 rm -f conftest.$ac_ext
10098 fi
10099fi
cristy8b350f62009-11-15 23:12:43 +000010100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010101$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10102 if test "$ac_cv_sys_largefile_CC" != no; then
10103 CC=$CC$ac_cv_sys_largefile_CC
10104 fi
10105
cristy8b350f62009-11-15 23:12:43 +000010106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010107$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010108if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010109 $as_echo_n "(cached) " >&6
10110else
10111 while :; do
cristy8b350f62009-11-15 23:12:43 +000010112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010113/* end confdefs.h. */
10114#include <sys/types.h>
10115 /* Check that off_t can represent 2**63 - 1 correctly.
10116 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10117 since some C++ compilers masquerading as C compilers
10118 incorrectly reject 9223372036854775807. */
10119#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10121 && LARGE_OFF_T % 2147483647 == 1)
10122 ? 1 : -1];
10123int
10124main ()
10125{
10126
10127 ;
10128 return 0;
10129}
10130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010131if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010132 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010133fi
cristy3ed852e2009-09-05 21:47:34 +000010134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010136/* end confdefs.h. */
10137#define _FILE_OFFSET_BITS 64
10138#include <sys/types.h>
10139 /* Check that off_t can represent 2**63 - 1 correctly.
10140 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10141 since some C++ compilers masquerading as C compilers
10142 incorrectly reject 9223372036854775807. */
10143#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10144 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10145 && LARGE_OFF_T % 2147483647 == 1)
10146 ? 1 : -1];
10147int
10148main ()
10149{
10150
10151 ;
10152 return 0;
10153}
10154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010155if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010156 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010157fi
cristy3ed852e2009-09-05 21:47:34 +000010158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 ac_cv_sys_file_offset_bits=unknown
10160 break
10161done
10162fi
cristy8b350f62009-11-15 23:12:43 +000010163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010164$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10165case $ac_cv_sys_file_offset_bits in #(
10166 no | unknown) ;;
10167 *)
10168cat >>confdefs.h <<_ACEOF
10169#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10170_ACEOF
10171;;
10172esac
10173rm -rf conftest*
10174 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010176$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010177if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010178 $as_echo_n "(cached) " >&6
10179else
10180 while :; do
cristy8b350f62009-11-15 23:12:43 +000010181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010182/* end confdefs.h. */
10183#include <sys/types.h>
10184 /* Check that off_t can represent 2**63 - 1 correctly.
10185 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10186 since some C++ compilers masquerading as C compilers
10187 incorrectly reject 9223372036854775807. */
10188#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10189 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10190 && LARGE_OFF_T % 2147483647 == 1)
10191 ? 1 : -1];
10192int
10193main ()
10194{
10195
10196 ;
10197 return 0;
10198}
10199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010200if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010201 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010202fi
cristy3ed852e2009-09-05 21:47:34 +000010203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010205/* end confdefs.h. */
10206#define _LARGE_FILES 1
10207#include <sys/types.h>
10208 /* Check that off_t can represent 2**63 - 1 correctly.
10209 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10210 since some C++ compilers masquerading as C compilers
10211 incorrectly reject 9223372036854775807. */
10212#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10213 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10214 && LARGE_OFF_T % 2147483647 == 1)
10215 ? 1 : -1];
10216int
10217main ()
10218{
10219
10220 ;
10221 return 0;
10222}
10223_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010224if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010225 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010226fi
cristy3ed852e2009-09-05 21:47:34 +000010227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 ac_cv_sys_large_files=unknown
10229 break
10230done
10231fi
cristy8b350f62009-11-15 23:12:43 +000010232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010233$as_echo "$ac_cv_sys_large_files" >&6; }
10234case $ac_cv_sys_large_files in #(
10235 no | unknown) ;;
10236 *)
10237cat >>confdefs.h <<_ACEOF
10238#define _LARGE_FILES $ac_cv_sys_large_files
10239_ACEOF
10240;;
10241esac
10242rm -rf conftest*
10243 fi
cristy14fefe52012-05-21 00:59:18 +000010244
10245
cristy3ed852e2009-09-05 21:47:34 +000010246fi
10247
cristy8b350f62009-11-15 23:12:43 +000010248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010249$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010250if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010251 $as_echo_n "(cached) " >&6
10252else
10253 while :; do
cristy8b350f62009-11-15 23:12:43 +000010254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010255/* end confdefs.h. */
10256#include <sys/types.h> /* for off_t */
10257 #include <stdio.h>
10258int
10259main ()
10260{
10261int (*fp) (FILE *, off_t, int) = fseeko;
10262 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10263 ;
10264 return 0;
10265}
10266_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010267if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010268 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010269fi
cristy8b350f62009-11-15 23:12:43 +000010270rm -f core conftest.err conftest.$ac_objext \
10271 conftest$ac_exeext conftest.$ac_ext
10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010273/* end confdefs.h. */
10274#define _LARGEFILE_SOURCE 1
10275#include <sys/types.h> /* for off_t */
10276 #include <stdio.h>
10277int
10278main ()
10279{
10280int (*fp) (FILE *, off_t, int) = fseeko;
10281 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10282 ;
10283 return 0;
10284}
10285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010286if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010287 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010288fi
cristy8b350f62009-11-15 23:12:43 +000010289rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010291 ac_cv_sys_largefile_source=unknown
10292 break
10293done
10294fi
cristy8b350f62009-11-15 23:12:43 +000010295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010296$as_echo "$ac_cv_sys_largefile_source" >&6; }
10297case $ac_cv_sys_largefile_source in #(
10298 no | unknown) ;;
10299 *)
10300cat >>confdefs.h <<_ACEOF
10301#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10302_ACEOF
10303;;
10304esac
10305rm -rf conftest*
10306
10307# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10308# in glibc 2.1.3, but that breaks too many other things.
10309# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10310if test $ac_cv_sys_largefile_source != unknown; then
10311
cristy8b350f62009-11-15 23:12:43 +000010312$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010313
10314fi
10315
10316LFS_CPPFLAGS=''
10317if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010318 case $ac_cv_sys_file_offset_bits in
10319 no)
10320 # nothing to do here as the host supports LFS fine
10321 ;;
10322 unknown)
cristy8b350f62009-11-15 23:12:43 +000010323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010324$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010325 if test "$cross_compiling" = yes; then :
10326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010328as_fn_error $? "cannot run test program while cross compiling
10329See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010330else
cristy8b350f62009-11-15 23:12:43 +000010331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010333#include <unistd.h>
10334 main () {
10335 exit(!(sizeof(off_t) == 8));
10336 }
cristyda16f162011-02-19 23:52:17 +000010337int
10338main ()
10339{
10340
10341 ;
10342 return 0;
10343}
cristy3ed852e2009-09-05 21:47:34 +000010344_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010345if ac_fn_c_try_run "$LINENO"; then :
10346 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010347
cristyad38abe2012-12-23 23:03:21 +000010348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10349$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010350else
cristyad38abe2012-12-23 23:03:21 +000010351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010353fi
cristy8b350f62009-11-15 23:12:43 +000010354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10355 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010356fi
10357
cristyc1e0cc12011-09-21 16:41:16 +000010358 ;;
10359 *)
10360 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10361 ;;
10362 esac
cristy3ed852e2009-09-05 21:47:34 +000010363 if test "$ac_cv_sys_large_files" != 'no'; then
10364 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10365 fi
10366 if test "$ac_cv_sys_largefile_source" != 'no'; then
10367 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10368 fi
10369fi
10370
10371
cristy3ed852e2009-09-05 21:47:34 +000010372# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010373enable_dlopen=yes
10374
10375
10376
10377case `pwd` in
10378 *\ * | *\ *)
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10380$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10381esac
10382
10383
10384
cristy99bd5232011-12-07 14:38:20 +000010385macro_version='2.4.2'
10386macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400ltmain="$ac_aux_dir/ltmain.sh"
10401
cristy0c60a692010-11-04 01:09:47 +000010402# Backslashify metacharacters that are still active within
10403# double-quoted strings.
10404sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10405
10406# Same as above, but do not quote variable references.
10407double_quote_subst='s/\(["`\\]\)/\\\1/g'
10408
10409# Sed substitution to delay expansion of an escaped shell variable in a
10410# double_quote_subst'ed string.
10411delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10412
10413# Sed substitution to delay expansion of an escaped single quote.
10414delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10415
10416# Sed substitution to avoid accidental globbing in evaled expressions
10417no_glob_subst='s/\*/\\\*/g'
10418
cristy73bd4a52010-10-05 11:24:23 +000010419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10420$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010421if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010422 $as_echo_n "(cached) " >&6
10423else
10424 if test -n "$NM"; then
10425 # Let the user override the test.
10426 lt_cv_path_NM="$NM"
10427else
10428 lt_nm_to_check="${ac_tool_prefix}nm"
10429 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10430 lt_nm_to_check="$lt_nm_to_check nm"
10431 fi
10432 for lt_tmp_nm in $lt_nm_to_check; do
10433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10434 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10435 IFS="$lt_save_ifs"
10436 test -z "$ac_dir" && ac_dir=.
10437 tmp_nm="$ac_dir/$lt_tmp_nm"
10438 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10439 # Check to see if the nm accepts a BSD-compat flag.
10440 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10441 # nm: unknown option "B" ignored
10442 # Tru64's nm complains that /dev/null is an invalid object file
10443 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10444 */dev/null* | *'Invalid file or object type'*)
10445 lt_cv_path_NM="$tmp_nm -B"
10446 break
10447 ;;
10448 *)
10449 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10450 */dev/null*)
10451 lt_cv_path_NM="$tmp_nm -p"
10452 break
10453 ;;
10454 *)
10455 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10456 continue # so that we can try to find one that supports BSD flags
10457 ;;
10458 esac
10459 ;;
10460 esac
10461 fi
10462 done
10463 IFS="$lt_save_ifs"
10464 done
10465 : ${lt_cv_path_NM=no}
10466fi
10467fi
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10469$as_echo "$lt_cv_path_NM" >&6; }
10470if test "$lt_cv_path_NM" != "no"; then
10471 NM="$lt_cv_path_NM"
10472else
10473 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010474 if test -n "$DUMPBIN"; then :
10475 # Let the user override the test.
10476 else
10477 if test -n "$ac_tool_prefix"; then
10478 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010479 do
10480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10481set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010484if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010485 $as_echo_n "(cached) " >&6
10486else
10487 if test -n "$DUMPBIN"; then
10488 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10489else
10490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491for as_dir in $PATH
10492do
10493 IFS=$as_save_IFS
10494 test -z "$as_dir" && as_dir=.
10495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010497 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10499 break 2
10500 fi
10501done
10502 done
10503IFS=$as_save_IFS
10504
10505fi
10506fi
10507DUMPBIN=$ac_cv_prog_DUMPBIN
10508if test -n "$DUMPBIN"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10510$as_echo "$DUMPBIN" >&6; }
10511else
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513$as_echo "no" >&6; }
10514fi
10515
10516
10517 test -n "$DUMPBIN" && break
10518 done
10519fi
10520if test -z "$DUMPBIN"; then
10521 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010522 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010523do
10524 # Extract the first word of "$ac_prog", so it can be a program name with args.
10525set dummy $ac_prog; ac_word=$2
10526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10527$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010528if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010529 $as_echo_n "(cached) " >&6
10530else
10531 if test -n "$ac_ct_DUMPBIN"; then
10532 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10533else
10534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535for as_dir in $PATH
10536do
10537 IFS=$as_save_IFS
10538 test -z "$as_dir" && as_dir=.
10539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010541 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543 break 2
10544 fi
10545done
10546 done
10547IFS=$as_save_IFS
10548
10549fi
10550fi
10551ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10552if test -n "$ac_ct_DUMPBIN"; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10554$as_echo "$ac_ct_DUMPBIN" >&6; }
10555else
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557$as_echo "no" >&6; }
10558fi
10559
10560
10561 test -n "$ac_ct_DUMPBIN" && break
10562done
10563
10564 if test "x$ac_ct_DUMPBIN" = x; then
10565 DUMPBIN=":"
10566 else
10567 case $cross_compiling:$ac_tool_warned in
10568yes:)
10569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10571ac_tool_warned=yes ;;
10572esac
10573 DUMPBIN=$ac_ct_DUMPBIN
10574 fi
10575fi
10576
cristy0c60a692010-11-04 01:09:47 +000010577 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10578 *COFF*)
10579 DUMPBIN="$DUMPBIN -symbols"
10580 ;;
10581 *)
10582 DUMPBIN=:
10583 ;;
10584 esac
10585 fi
cristy73bd4a52010-10-05 11:24:23 +000010586
10587 if test "$DUMPBIN" != ":"; then
10588 NM="$DUMPBIN"
10589 fi
10590fi
10591test -z "$NM" && NM=nm
10592
10593
10594
10595
10596
10597
10598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10599$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010600if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010601 $as_echo_n "(cached) " >&6
10602else
10603 lt_cv_nm_interface="BSD nm"
10604 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010605 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010606 (eval "$ac_compile" 2>conftest.err)
10607 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010608 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010609 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10610 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010611 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010612 cat conftest.out >&5
10613 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10614 lt_cv_nm_interface="MS dumpbin"
10615 fi
10616 rm -f conftest*
10617fi
10618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10619$as_echo "$lt_cv_nm_interface" >&6; }
10620
10621# find the maximum length of command line arguments
10622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10623$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010624if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010625 $as_echo_n "(cached) " >&6
10626else
10627 i=0
10628 teststring="ABCD"
10629
10630 case $build_os in
10631 msdosdjgpp*)
10632 # On DJGPP, this test can blow up pretty badly due to problems in libc
10633 # (any single argument exceeding 2000 bytes causes a buffer overrun
10634 # during glob expansion). Even if it were fixed, the result of this
10635 # check would be larger than it should be.
10636 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10637 ;;
10638
10639 gnu*)
10640 # Under GNU Hurd, this test is not required because there is
10641 # no limit to the length of command line arguments.
10642 # Libtool will interpret -1 as no limit whatsoever
10643 lt_cv_sys_max_cmd_len=-1;
10644 ;;
10645
10646 cygwin* | mingw* | cegcc*)
10647 # On Win9x/ME, this test blows up -- it succeeds, but takes
10648 # about 5 minutes as the teststring grows exponentially.
10649 # Worse, since 9x/ME are not pre-emptively multitasking,
10650 # you end up with a "frozen" computer, even though with patience
10651 # the test eventually succeeds (with a max line length of 256k).
10652 # Instead, let's just punt: use the minimum linelength reported by
10653 # all of the supported platforms: 8192 (on NT/2K/XP).
10654 lt_cv_sys_max_cmd_len=8192;
10655 ;;
10656
cristy0c60a692010-11-04 01:09:47 +000010657 mint*)
10658 # On MiNT this can take a long time and run out of memory.
10659 lt_cv_sys_max_cmd_len=8192;
10660 ;;
10661
cristy73bd4a52010-10-05 11:24:23 +000010662 amigaos*)
10663 # On AmigaOS with pdksh, this test takes hours, literally.
10664 # So we just punt and use a minimum line length of 8192.
10665 lt_cv_sys_max_cmd_len=8192;
10666 ;;
10667
10668 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10669 # This has been around since 386BSD, at least. Likely further.
10670 if test -x /sbin/sysctl; then
10671 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10672 elif test -x /usr/sbin/sysctl; then
10673 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10674 else
10675 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10676 fi
10677 # And add a safety zone
10678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10680 ;;
10681
10682 interix*)
10683 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10684 lt_cv_sys_max_cmd_len=196608
10685 ;;
10686
cristy99bd5232011-12-07 14:38:20 +000010687 os2*)
10688 # The test takes a long time on OS/2.
10689 lt_cv_sys_max_cmd_len=8192
10690 ;;
10691
cristy73bd4a52010-10-05 11:24:23 +000010692 osf*)
10693 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10694 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10695 # nice to cause kernel panics so lets avoid the loop below.
10696 # First set a reasonable default.
10697 lt_cv_sys_max_cmd_len=16384
10698 #
10699 if test -x /sbin/sysconfig; then
10700 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10701 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10702 esac
10703 fi
10704 ;;
10705 sco3.2v5*)
10706 lt_cv_sys_max_cmd_len=102400
10707 ;;
10708 sysv5* | sco5v6* | sysv4.2uw2*)
10709 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10710 if test -n "$kargmax"; then
10711 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10712 else
10713 lt_cv_sys_max_cmd_len=32768
10714 fi
10715 ;;
10716 *)
10717 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10718 if test -n "$lt_cv_sys_max_cmd_len"; then
10719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10721 else
10722 # Make teststring a little bigger before we do anything with it.
10723 # a 1K string should be a reasonable start.
10724 for i in 1 2 3 4 5 6 7 8 ; do
10725 teststring=$teststring$teststring
10726 done
10727 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10728 # If test is not a shell built-in, we'll probably end up computing a
10729 # maximum length that is only half of the actual maximum length, but
10730 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010731 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010732 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010733 test $i != 17 # 1/2 MB should be enough
10734 do
10735 i=`expr $i + 1`
10736 teststring=$teststring$teststring
10737 done
10738 # Only check the string length outside the loop.
10739 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10740 teststring=
10741 # Add a significant safety factor because C++ compilers can tack on
10742 # massive amounts of additional arguments before passing them to the
10743 # linker. It appears as though 1/2 is a usable value.
10744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10745 fi
10746 ;;
10747 esac
10748
10749fi
10750
10751if test -n $lt_cv_sys_max_cmd_len ; then
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10753$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10754else
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10756$as_echo "none" >&6; }
10757fi
10758max_cmd_len=$lt_cv_sys_max_cmd_len
10759
10760
10761
10762
10763
10764
10765: ${CP="cp -f"}
10766: ${MV="mv -f"}
10767: ${RM="rm -f"}
10768
10769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10770$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10771# Try some XSI features
10772xsi_shell=no
10773( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010774 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10775 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010776 && eval 'test $(( 1 + 1 )) -eq 2 \
10777 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10778 && xsi_shell=yes
10779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10780$as_echo "$xsi_shell" >&6; }
10781
10782
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10784$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10785lt_shell_append=no
10786( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10787 >/dev/null 2>&1 \
10788 && lt_shell_append=yes
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10790$as_echo "$lt_shell_append" >&6; }
10791
10792
10793if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10794 lt_unset=unset
10795else
10796 lt_unset=false
10797fi
10798
10799
10800
10801
10802
10803# test EBCDIC or ASCII
10804case `echo X|tr X '\101'` in
10805 A) # ASCII based system
10806 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10807 lt_SP2NL='tr \040 \012'
10808 lt_NL2SP='tr \015\012 \040\040'
10809 ;;
10810 *) # EBCDIC based system
10811 lt_SP2NL='tr \100 \n'
10812 lt_NL2SP='tr \r\n \100\100'
10813 ;;
10814esac
10815
10816
10817
10818
10819
10820
10821
10822
10823
cristyda16f162011-02-19 23:52:17 +000010824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10825$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10826if ${lt_cv_to_host_file_cmd+:} false; then :
10827 $as_echo_n "(cached) " >&6
10828else
10829 case $host in
10830 *-*-mingw* )
10831 case $build in
10832 *-*-mingw* ) # actually msys
10833 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10834 ;;
10835 *-*-cygwin* )
10836 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10837 ;;
10838 * ) # otherwise, assume *nix
10839 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10840 ;;
10841 esac
10842 ;;
10843 *-*-cygwin* )
10844 case $build in
10845 *-*-mingw* ) # actually msys
10846 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10847 ;;
10848 *-*-cygwin* )
10849 lt_cv_to_host_file_cmd=func_convert_file_noop
10850 ;;
10851 * ) # otherwise, assume *nix
10852 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10853 ;;
10854 esac
10855 ;;
10856 * ) # unhandled hosts (and "normal" native builds)
10857 lt_cv_to_host_file_cmd=func_convert_file_noop
10858 ;;
10859esac
10860
10861fi
10862
10863to_host_file_cmd=$lt_cv_to_host_file_cmd
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10865$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10866
10867
10868
10869
10870
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10872$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10873if ${lt_cv_to_tool_file_cmd+:} false; then :
10874 $as_echo_n "(cached) " >&6
10875else
10876 #assume ordinary cross tools, or native build.
10877lt_cv_to_tool_file_cmd=func_convert_file_noop
10878case $host in
10879 *-*-mingw* )
10880 case $build in
10881 *-*-mingw* ) # actually msys
10882 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10883 ;;
10884 esac
10885 ;;
10886esac
10887
10888fi
10889
10890to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10892$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10893
10894
10895
10896
10897
cristy73bd4a52010-10-05 11:24:23 +000010898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10899$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010900if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010901 $as_echo_n "(cached) " >&6
10902else
10903 lt_cv_ld_reload_flag='-r'
10904fi
10905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10906$as_echo "$lt_cv_ld_reload_flag" >&6; }
10907reload_flag=$lt_cv_ld_reload_flag
10908case $reload_flag in
10909"" | " "*) ;;
10910*) reload_flag=" $reload_flag" ;;
10911esac
10912reload_cmds='$LD$reload_flag -o $output$reload_objs'
10913case $host_os in
cristyda16f162011-02-19 23:52:17 +000010914 cygwin* | mingw* | pw32* | cegcc*)
10915 if test "$GCC" != yes; then
10916 reload_cmds=false
10917 fi
10918 ;;
cristy73bd4a52010-10-05 11:24:23 +000010919 darwin*)
10920 if test "$GCC" = yes; then
10921 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10922 else
10923 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10924 fi
10925 ;;
10926esac
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936if test -n "$ac_tool_prefix"; then
10937 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10938set dummy ${ac_tool_prefix}objdump; ac_word=$2
10939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010941if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010942 $as_echo_n "(cached) " >&6
10943else
10944 if test -n "$OBJDUMP"; then
10945 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10946else
10947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948for as_dir in $PATH
10949do
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
10952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010954 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10956 break 2
10957 fi
10958done
10959 done
10960IFS=$as_save_IFS
10961
10962fi
10963fi
10964OBJDUMP=$ac_cv_prog_OBJDUMP
10965if test -n "$OBJDUMP"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10967$as_echo "$OBJDUMP" >&6; }
10968else
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970$as_echo "no" >&6; }
10971fi
10972
10973
10974fi
10975if test -z "$ac_cv_prog_OBJDUMP"; then
10976 ac_ct_OBJDUMP=$OBJDUMP
10977 # Extract the first word of "objdump", so it can be a program name with args.
10978set dummy objdump; ac_word=$2
10979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10980$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010981if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010982 $as_echo_n "(cached) " >&6
10983else
10984 if test -n "$ac_ct_OBJDUMP"; then
10985 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10986else
10987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10988for as_dir in $PATH
10989do
10990 IFS=$as_save_IFS
10991 test -z "$as_dir" && as_dir=.
10992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010994 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10996 break 2
10997 fi
10998done
10999 done
11000IFS=$as_save_IFS
11001
11002fi
11003fi
11004ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11005if test -n "$ac_ct_OBJDUMP"; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11007$as_echo "$ac_ct_OBJDUMP" >&6; }
11008else
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010$as_echo "no" >&6; }
11011fi
11012
11013 if test "x$ac_ct_OBJDUMP" = x; then
11014 OBJDUMP="false"
11015 else
11016 case $cross_compiling:$ac_tool_warned in
11017yes:)
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11020ac_tool_warned=yes ;;
11021esac
11022 OBJDUMP=$ac_ct_OBJDUMP
11023 fi
11024else
11025 OBJDUMP="$ac_cv_prog_OBJDUMP"
11026fi
11027
11028test -z "$OBJDUMP" && OBJDUMP=objdump
11029
11030
11031
11032
11033
11034
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11036$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011037if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011038 $as_echo_n "(cached) " >&6
11039else
11040 lt_cv_file_magic_cmd='$MAGIC_CMD'
11041lt_cv_file_magic_test_file=
11042lt_cv_deplibs_check_method='unknown'
11043# Need to set the preceding variable on all platforms that support
11044# interlibrary dependencies.
11045# 'none' -- dependencies not supported.
11046# `unknown' -- same as none, but documents that we really don't know.
11047# 'pass_all' -- all dependencies passed with no checks.
11048# 'test_compile' -- check by making test program.
11049# 'file_magic [[regex]]' -- check by looking for files in library path
11050# which responds to the $file_magic_cmd with a given extended regex.
11051# If you have `file' or equivalent on your system and you're not sure
11052# whether `pass_all' will *always* work, you probably want this one.
11053
11054case $host_os in
11055aix[4-9]*)
11056 lt_cv_deplibs_check_method=pass_all
11057 ;;
11058
11059beos*)
11060 lt_cv_deplibs_check_method=pass_all
11061 ;;
11062
11063bsdi[45]*)
11064 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11065 lt_cv_file_magic_cmd='/usr/bin/file -L'
11066 lt_cv_file_magic_test_file=/shlib/libc.so
11067 ;;
11068
11069cygwin*)
11070 # func_win32_libid is a shell function defined in ltmain.sh
11071 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11072 lt_cv_file_magic_cmd='func_win32_libid'
11073 ;;
11074
11075mingw* | pw32*)
11076 # Base MSYS/MinGW do not provide the 'file' command needed by
11077 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11078 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011079 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11080 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011081 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11082 lt_cv_file_magic_cmd='func_win32_libid'
11083 else
cristy0c60a692010-11-04 01:09:47 +000011084 # Keep this pattern in sync with the one in func_win32_libid.
11085 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 +000011086 lt_cv_file_magic_cmd='$OBJDUMP -f'
11087 fi
11088 ;;
11089
cristy0c60a692010-11-04 01:09:47 +000011090cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011091 # use the weaker test based on 'objdump'. See mingw*.
11092 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11093 lt_cv_file_magic_cmd='$OBJDUMP -f'
11094 ;;
11095
11096darwin* | rhapsody*)
11097 lt_cv_deplibs_check_method=pass_all
11098 ;;
11099
11100freebsd* | dragonfly*)
11101 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11102 case $host_cpu in
11103 i*86 )
11104 # Not sure whether the presence of OpenBSD here was a mistake.
11105 # Let's accept both of them until this is cleared up.
11106 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11107 lt_cv_file_magic_cmd=/usr/bin/file
11108 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11109 ;;
11110 esac
11111 else
11112 lt_cv_deplibs_check_method=pass_all
11113 fi
11114 ;;
11115
11116gnu*)
11117 lt_cv_deplibs_check_method=pass_all
11118 ;;
11119
cristy0c60a692010-11-04 01:09:47 +000011120haiku*)
11121 lt_cv_deplibs_check_method=pass_all
11122 ;;
11123
cristy73bd4a52010-10-05 11:24:23 +000011124hpux10.20* | hpux11*)
11125 lt_cv_file_magic_cmd=/usr/bin/file
11126 case $host_cpu in
11127 ia64*)
11128 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11129 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11130 ;;
11131 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011132 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 +000011133 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11134 ;;
11135 *)
cristy0c60a692010-11-04 01:09:47 +000011136 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 +000011137 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11138 ;;
11139 esac
11140 ;;
11141
11142interix[3-9]*)
11143 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11144 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11145 ;;
11146
11147irix5* | irix6* | nonstopux*)
11148 case $LD in
11149 *-32|*"-32 ") libmagic=32-bit;;
11150 *-n32|*"-n32 ") libmagic=N32;;
11151 *-64|*"-64 ") libmagic=64-bit;;
11152 *) libmagic=never-match;;
11153 esac
11154 lt_cv_deplibs_check_method=pass_all
11155 ;;
11156
cristy99bd5232011-12-07 14:38:20 +000011157# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011158linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011159 lt_cv_deplibs_check_method=pass_all
11160 ;;
11161
11162netbsd*)
11163 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11165 else
11166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11167 fi
11168 ;;
11169
11170newos6*)
11171 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11172 lt_cv_file_magic_cmd=/usr/bin/file
11173 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11174 ;;
11175
11176*nto* | *qnx*)
11177 lt_cv_deplibs_check_method=pass_all
11178 ;;
11179
11180openbsd*)
11181 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11183 else
11184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11185 fi
11186 ;;
11187
11188osf3* | osf4* | osf5*)
11189 lt_cv_deplibs_check_method=pass_all
11190 ;;
11191
11192rdos*)
11193 lt_cv_deplibs_check_method=pass_all
11194 ;;
11195
11196solaris*)
11197 lt_cv_deplibs_check_method=pass_all
11198 ;;
11199
11200sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11201 lt_cv_deplibs_check_method=pass_all
11202 ;;
11203
11204sysv4 | sysv4.3*)
11205 case $host_vendor in
11206 motorola)
11207 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]'
11208 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11209 ;;
11210 ncr)
11211 lt_cv_deplibs_check_method=pass_all
11212 ;;
11213 sequent)
11214 lt_cv_file_magic_cmd='/bin/file'
11215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11216 ;;
11217 sni)
11218 lt_cv_file_magic_cmd='/bin/file'
11219 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11220 lt_cv_file_magic_test_file=/lib/libc.so
11221 ;;
11222 siemens)
11223 lt_cv_deplibs_check_method=pass_all
11224 ;;
11225 pc)
11226 lt_cv_deplibs_check_method=pass_all
11227 ;;
11228 esac
11229 ;;
11230
11231tpf*)
11232 lt_cv_deplibs_check_method=pass_all
11233 ;;
11234esac
11235
11236fi
11237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11238$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011239
11240file_magic_glob=
11241want_nocaseglob=no
11242if test "$build" = "$host"; then
11243 case $host_os in
11244 mingw* | pw32*)
11245 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11246 want_nocaseglob=yes
11247 else
11248 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11249 fi
11250 ;;
11251 esac
11252fi
11253
cristy73bd4a52010-10-05 11:24:23 +000011254file_magic_cmd=$lt_cv_file_magic_cmd
11255deplibs_check_method=$lt_cv_deplibs_check_method
11256test -z "$deplibs_check_method" && deplibs_check_method=unknown
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
cristyda16f162011-02-19 23:52:17 +000011269
11270
11271
11272
11273
11274
11275
11276
11277
11278
cristy73bd4a52010-10-05 11:24:23 +000011279if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011280 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11281set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011284if ${ac_cv_prog_DLLTOOL+:} false; then :
11285 $as_echo_n "(cached) " >&6
11286else
11287 if test -n "$DLLTOOL"; then
11288 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11289else
11290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291for as_dir in $PATH
11292do
11293 IFS=$as_save_IFS
11294 test -z "$as_dir" && as_dir=.
11295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011297 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11299 break 2
11300 fi
11301done
11302 done
11303IFS=$as_save_IFS
11304
11305fi
11306fi
11307DLLTOOL=$ac_cv_prog_DLLTOOL
11308if test -n "$DLLTOOL"; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11310$as_echo "$DLLTOOL" >&6; }
11311else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313$as_echo "no" >&6; }
11314fi
11315
11316
11317fi
11318if test -z "$ac_cv_prog_DLLTOOL"; then
11319 ac_ct_DLLTOOL=$DLLTOOL
11320 # Extract the first word of "dlltool", so it can be a program name with args.
11321set dummy dlltool; ac_word=$2
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323$as_echo_n "checking for $ac_word... " >&6; }
11324if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326else
11327 if test -n "$ac_ct_DLLTOOL"; then
11328 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11329else
11330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331for as_dir in $PATH
11332do
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011337 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11339 break 2
11340 fi
11341done
11342 done
11343IFS=$as_save_IFS
11344
11345fi
11346fi
11347ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11348if test -n "$ac_ct_DLLTOOL"; then
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11350$as_echo "$ac_ct_DLLTOOL" >&6; }
11351else
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353$as_echo "no" >&6; }
11354fi
11355
11356 if test "x$ac_ct_DLLTOOL" = x; then
11357 DLLTOOL="false"
11358 else
11359 case $cross_compiling:$ac_tool_warned in
11360yes:)
11361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11363ac_tool_warned=yes ;;
11364esac
11365 DLLTOOL=$ac_ct_DLLTOOL
11366 fi
11367else
11368 DLLTOOL="$ac_cv_prog_DLLTOOL"
11369fi
11370
11371test -z "$DLLTOOL" && DLLTOOL=dlltool
11372
11373
11374
11375
11376
11377
11378
11379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11380$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11381if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383else
11384 lt_cv_sharedlib_from_linklib_cmd='unknown'
11385
11386case $host_os in
11387cygwin* | mingw* | pw32* | cegcc*)
11388 # two different shell functions defined in ltmain.sh
11389 # decide which to use based on capabilities of $DLLTOOL
11390 case `$DLLTOOL --help 2>&1` in
11391 *--identify-strict*)
11392 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11393 ;;
11394 *)
11395 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11396 ;;
11397 esac
11398 ;;
11399*)
11400 # fallback: assume linklib IS sharedlib
11401 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11402 ;;
11403esac
11404
11405fi
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11407$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11408sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11409test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11410
11411
11412
11413
11414
11415
11416
11417if test -n "$ac_tool_prefix"; then
11418 for ac_prog in ar
11419 do
11420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11421set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423$as_echo_n "checking for $ac_word... " >&6; }
11424if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011425 $as_echo_n "(cached) " >&6
11426else
11427 if test -n "$AR"; then
11428 ac_cv_prog_AR="$AR" # Let the user override the test.
11429else
11430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431for as_dir in $PATH
11432do
11433 IFS=$as_save_IFS
11434 test -z "$as_dir" && as_dir=.
11435 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011437 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11439 break 2
11440 fi
11441done
11442 done
11443IFS=$as_save_IFS
11444
11445fi
11446fi
11447AR=$ac_cv_prog_AR
11448if test -n "$AR"; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11450$as_echo "$AR" >&6; }
11451else
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453$as_echo "no" >&6; }
11454fi
11455
11456
cristyda16f162011-02-19 23:52:17 +000011457 test -n "$AR" && break
11458 done
cristy73bd4a52010-10-05 11:24:23 +000011459fi
cristyda16f162011-02-19 23:52:17 +000011460if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011461 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011462 for ac_prog in ar
11463do
11464 # Extract the first word of "$ac_prog", so it can be a program name with args.
11465set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011468if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011469 $as_echo_n "(cached) " >&6
11470else
11471 if test -n "$ac_ct_AR"; then
11472 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11473else
11474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475for as_dir in $PATH
11476do
11477 IFS=$as_save_IFS
11478 test -z "$as_dir" && as_dir=.
11479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011481 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483 break 2
11484 fi
11485done
11486 done
11487IFS=$as_save_IFS
11488
11489fi
11490fi
11491ac_ct_AR=$ac_cv_prog_ac_ct_AR
11492if test -n "$ac_ct_AR"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11494$as_echo "$ac_ct_AR" >&6; }
11495else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497$as_echo "no" >&6; }
11498fi
11499
cristyda16f162011-02-19 23:52:17 +000011500
11501 test -n "$ac_ct_AR" && break
11502done
11503
cristy73bd4a52010-10-05 11:24:23 +000011504 if test "x$ac_ct_AR" = x; then
11505 AR="false"
11506 else
11507 case $cross_compiling:$ac_tool_warned in
11508yes:)
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11511ac_tool_warned=yes ;;
11512esac
11513 AR=$ac_ct_AR
11514 fi
cristy73bd4a52010-10-05 11:24:23 +000011515fi
11516
cristyda16f162011-02-19 23:52:17 +000011517: ${AR=ar}
11518: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
cristyda16f162011-02-19 23:52:17 +000011530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11531$as_echo_n "checking for archiver @FILE support... " >&6; }
11532if ${lt_cv_ar_at_file+:} false; then :
11533 $as_echo_n "(cached) " >&6
11534else
11535 lt_cv_ar_at_file=no
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537/* end confdefs.h. */
11538
11539int
11540main ()
11541{
11542
11543 ;
11544 return 0;
11545}
11546_ACEOF
11547if ac_fn_c_try_compile "$LINENO"; then :
11548 echo conftest.$ac_objext > conftest.lst
11549 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11551 (eval $lt_ar_try) 2>&5
11552 ac_status=$?
11553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11554 test $ac_status = 0; }
11555 if test "$ac_status" -eq 0; then
11556 # Ensure the archiver fails upon bogus file names.
11557 rm -f conftest.$ac_objext libconftest.a
11558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11559 (eval $lt_ar_try) 2>&5
11560 ac_status=$?
11561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11562 test $ac_status = 0; }
11563 if test "$ac_status" -ne 0; then
11564 lt_cv_ar_at_file=@
11565 fi
11566 fi
11567 rm -f conftest.* libconftest.a
11568
11569fi
11570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11571
11572fi
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11574$as_echo "$lt_cv_ar_at_file" >&6; }
11575
11576if test "x$lt_cv_ar_at_file" = xno; then
11577 archiver_list_spec=
11578else
11579 archiver_list_spec=$lt_cv_ar_at_file
11580fi
11581
11582
11583
11584
11585
11586
11587
cristy73bd4a52010-10-05 11:24:23 +000011588if test -n "$ac_tool_prefix"; then
11589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11590set dummy ${ac_tool_prefix}strip; ac_word=$2
11591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011593if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011594 $as_echo_n "(cached) " >&6
11595else
11596 if test -n "$STRIP"; then
11597 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11598else
11599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600for as_dir in $PATH
11601do
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011606 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 break 2
11609 fi
11610done
11611 done
11612IFS=$as_save_IFS
11613
11614fi
11615fi
11616STRIP=$ac_cv_prog_STRIP
11617if test -n "$STRIP"; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11619$as_echo "$STRIP" >&6; }
11620else
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11622$as_echo "no" >&6; }
11623fi
11624
11625
11626fi
11627if test -z "$ac_cv_prog_STRIP"; then
11628 ac_ct_STRIP=$STRIP
11629 # Extract the first word of "strip", so it can be a program name with args.
11630set dummy strip; ac_word=$2
11631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011633if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011634 $as_echo_n "(cached) " >&6
11635else
11636 if test -n "$ac_ct_STRIP"; then
11637 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11638else
11639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640for as_dir in $PATH
11641do
11642 IFS=$as_save_IFS
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011646 ac_cv_prog_ac_ct_STRIP="strip"
11647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 break 2
11649 fi
11650done
11651 done
11652IFS=$as_save_IFS
11653
11654fi
11655fi
11656ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11657if test -n "$ac_ct_STRIP"; then
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11659$as_echo "$ac_ct_STRIP" >&6; }
11660else
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662$as_echo "no" >&6; }
11663fi
11664
11665 if test "x$ac_ct_STRIP" = x; then
11666 STRIP=":"
11667 else
11668 case $cross_compiling:$ac_tool_warned in
11669yes:)
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11672ac_tool_warned=yes ;;
11673esac
11674 STRIP=$ac_ct_STRIP
11675 fi
11676else
11677 STRIP="$ac_cv_prog_STRIP"
11678fi
11679
11680test -z "$STRIP" && STRIP=:
11681
11682
11683
11684
11685
11686
11687if test -n "$ac_tool_prefix"; then
11688 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11689set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11691$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011692if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011693 $as_echo_n "(cached) " >&6
11694else
11695 if test -n "$RANLIB"; then
11696 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11697else
11698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699for as_dir in $PATH
11700do
11701 IFS=$as_save_IFS
11702 test -z "$as_dir" && as_dir=.
11703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011705 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 break 2
11708 fi
11709done
11710 done
11711IFS=$as_save_IFS
11712
11713fi
11714fi
11715RANLIB=$ac_cv_prog_RANLIB
11716if test -n "$RANLIB"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11718$as_echo "$RANLIB" >&6; }
11719else
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721$as_echo "no" >&6; }
11722fi
11723
11724
11725fi
11726if test -z "$ac_cv_prog_RANLIB"; then
11727 ac_ct_RANLIB=$RANLIB
11728 # Extract the first word of "ranlib", so it can be a program name with args.
11729set dummy ranlib; ac_word=$2
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011732if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011733 $as_echo_n "(cached) " >&6
11734else
11735 if test -n "$ac_ct_RANLIB"; then
11736 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11737else
11738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739for as_dir in $PATH
11740do
11741 IFS=$as_save_IFS
11742 test -z "$as_dir" && as_dir=.
11743 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011745 ac_cv_prog_ac_ct_RANLIB="ranlib"
11746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11747 break 2
11748 fi
11749done
11750 done
11751IFS=$as_save_IFS
11752
11753fi
11754fi
11755ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11756if test -n "$ac_ct_RANLIB"; then
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11758$as_echo "$ac_ct_RANLIB" >&6; }
11759else
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761$as_echo "no" >&6; }
11762fi
11763
11764 if test "x$ac_ct_RANLIB" = x; then
11765 RANLIB=":"
11766 else
11767 case $cross_compiling:$ac_tool_warned in
11768yes:)
11769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11771ac_tool_warned=yes ;;
11772esac
11773 RANLIB=$ac_ct_RANLIB
11774 fi
11775else
11776 RANLIB="$ac_cv_prog_RANLIB"
11777fi
11778
11779test -z "$RANLIB" && RANLIB=:
11780
11781
11782
11783
11784
11785
11786# Determine commands to create old-style static archives.
11787old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11788old_postinstall_cmds='chmod 644 $oldlib'
11789old_postuninstall_cmds=
11790
11791if test -n "$RANLIB"; then
11792 case $host_os in
11793 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011794 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011795 ;;
11796 *)
cristy99bd5232011-12-07 14:38:20 +000011797 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011798 ;;
11799 esac
cristy99bd5232011-12-07 14:38:20 +000011800 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011801fi
11802
cristy0c60a692010-11-04 01:09:47 +000011803case $host_os in
11804 darwin*)
11805 lock_old_archive_extraction=yes ;;
11806 *)
11807 lock_old_archive_extraction=no ;;
11808esac
11809
11810
11811
11812
11813
11814
cristy73bd4a52010-10-05 11:24:23 +000011815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848# If no C compiler was specified, use CC.
11849LTCC=${LTCC-"$CC"}
11850
11851# If no C compiler flags were specified, use CFLAGS.
11852LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11853
11854# Allow CC to be a program name with arguments.
11855compiler=$CC
11856
11857
11858# Check for command to grab the raw symbol name followed by C symbol from nm.
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11860$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011861if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011862 $as_echo_n "(cached) " >&6
11863else
11864
11865# These are sane defaults that work on at least a few old systems.
11866# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11867
11868# Character class describing NM global symbol codes.
11869symcode='[BCDEGRST]'
11870
11871# Regexp to match symbols that can be accessed directly from C.
11872sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11873
11874# Define system-specific variables.
11875case $host_os in
11876aix*)
11877 symcode='[BCDT]'
11878 ;;
11879cygwin* | mingw* | pw32* | cegcc*)
11880 symcode='[ABCDGISTW]'
11881 ;;
11882hpux*)
11883 if test "$host_cpu" = ia64; then
11884 symcode='[ABCDEGRST]'
11885 fi
11886 ;;
11887irix* | nonstopux*)
11888 symcode='[BCDEGRST]'
11889 ;;
11890osf*)
11891 symcode='[BCDEGQRST]'
11892 ;;
11893solaris*)
11894 symcode='[BDRT]'
11895 ;;
11896sco3.2v5*)
11897 symcode='[DT]'
11898 ;;
11899sysv4.2uw2*)
11900 symcode='[DT]'
11901 ;;
11902sysv5* | sco5v6* | unixware* | OpenUNIX*)
11903 symcode='[ABDT]'
11904 ;;
11905sysv4)
11906 symcode='[DFNSTU]'
11907 ;;
11908esac
11909
11910# If we're using GNU nm, then use its standard symbol codes.
11911case `$NM -V 2>&1` in
11912*GNU* | *'with BFD'*)
11913 symcode='[ABCDGIRSTW]' ;;
11914esac
11915
11916# Transform an extracted symbol line into a proper C declaration.
11917# Some systems (esp. on ia64) link data and code symbols differently,
11918# so use this general approach.
11919lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11920
11921# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011922lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11923lt_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 +000011924
11925# Handle CRLF in mingw tool chain
11926opt_cr=
11927case $build_os in
11928mingw*)
11929 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11930 ;;
11931esac
11932
11933# Try without a prefix underscore, then with it.
11934for ac_symprfx in "" "_"; do
11935
11936 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11937 symxfrm="\\1 $ac_symprfx\\2 \\2"
11938
11939 # Write the raw and C identifiers.
11940 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11941 # Fake it for dumpbin and say T for any non-static function
11942 # and D for any global variable.
11943 # Also find C++ and __fastcall symbols from MSVC++,
11944 # which start with @ or ?.
11945 lt_cv_sys_global_symbol_pipe="$AWK '"\
11946" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011947" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011948" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11949" \$ 0!~/External *\|/{next};"\
11950" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11951" {if(hide[section]) next};"\
11952" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11953" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11954" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11955" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11956" ' prfx=^$ac_symprfx"
11957 else
11958 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11959 fi
cristyda16f162011-02-19 23:52:17 +000011960 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011961
11962 # Check to see that the pipe works correctly.
11963 pipe_works=no
11964
11965 rm -f conftest*
11966 cat > conftest.$ac_ext <<_LT_EOF
11967#ifdef __cplusplus
11968extern "C" {
11969#endif
11970char nm_test_var;
11971void nm_test_func(void);
11972void nm_test_func(void){}
11973#ifdef __cplusplus
11974}
11975#endif
11976int main(){nm_test_var='a';nm_test_func();return(0);}
11977_LT_EOF
11978
11979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11980 (eval $ac_compile) 2>&5
11981 ac_status=$?
11982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11983 test $ac_status = 0; }; then
11984 # Now try to grab the symbols.
11985 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11987 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011988 ac_status=$?
11989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11990 test $ac_status = 0; } && test -s "$nlist"; then
11991 # Try sorting and uniquifying the output.
11992 if sort "$nlist" | uniq > "$nlist"T; then
11993 mv -f "$nlist"T "$nlist"
11994 else
11995 rm -f "$nlist"T
11996 fi
11997
11998 # Make sure that we snagged all the symbols we need.
11999 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12000 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12001 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012002/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12003#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12004/* DATA imports from DLLs on WIN32 con't be const, because runtime
12005 relocations are performed -- see ld's documentation on pseudo-relocs. */
12006# define LT_DLSYM_CONST
12007#elif defined(__osf__)
12008/* This system does not cope well with relocations in const data. */
12009# define LT_DLSYM_CONST
12010#else
12011# define LT_DLSYM_CONST const
12012#endif
12013
cristy73bd4a52010-10-05 11:24:23 +000012014#ifdef __cplusplus
12015extern "C" {
12016#endif
12017
12018_LT_EOF
12019 # Now generate the symbol file.
12020 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12021
12022 cat <<_LT_EOF >> conftest.$ac_ext
12023
12024/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012025LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012026 const char *name;
12027 void *address;
12028}
12029lt__PROGRAM__LTX_preloaded_symbols[] =
12030{
12031 { "@PROGRAM@", (void *) 0 },
12032_LT_EOF
12033 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12034 cat <<\_LT_EOF >> conftest.$ac_ext
12035 {0, (void *) 0}
12036};
12037
12038/* This works around a problem in FreeBSD linker */
12039#ifdef FREEBSD_WORKAROUND
12040static const void *lt_preloaded_setup() {
12041 return lt__PROGRAM__LTX_preloaded_symbols;
12042}
12043#endif
12044
12045#ifdef __cplusplus
12046}
12047#endif
12048_LT_EOF
12049 # Now try linking the two files.
12050 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012051 lt_globsym_save_LIBS=$LIBS
12052 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012053 LIBS="conftstm.$ac_objext"
12054 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12056 (eval $ac_link) 2>&5
12057 ac_status=$?
12058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12059 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12060 pipe_works=yes
12061 fi
cristyda16f162011-02-19 23:52:17 +000012062 LIBS=$lt_globsym_save_LIBS
12063 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012064 else
12065 echo "cannot find nm_test_func in $nlist" >&5
12066 fi
12067 else
12068 echo "cannot find nm_test_var in $nlist" >&5
12069 fi
12070 else
12071 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12072 fi
12073 else
12074 echo "$progname: failed program was:" >&5
12075 cat conftest.$ac_ext >&5
12076 fi
12077 rm -rf conftest* conftst*
12078
12079 # Do not use the global_symbol_pipe unless it works.
12080 if test "$pipe_works" = yes; then
12081 break
12082 else
12083 lt_cv_sys_global_symbol_pipe=
12084 fi
12085done
12086
12087fi
12088
12089if test -z "$lt_cv_sys_global_symbol_pipe"; then
12090 lt_cv_sys_global_symbol_to_cdecl=
12091fi
12092if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12094$as_echo "failed" >&6; }
12095else
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12097$as_echo "ok" >&6; }
12098fi
12099
cristyda16f162011-02-19 23:52:17 +000012100# Response file support.
12101if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12102 nm_file_list_spec='@'
12103elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12104 nm_file_list_spec='@'
12105fi
cristy73bd4a52010-10-05 11:24:23 +000012106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
cristyda16f162011-02-19 23:52:17 +000012127
12128
12129
12130
12131
12132
12133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12134$as_echo_n "checking for sysroot... " >&6; }
12135
12136# Check whether --with-sysroot was given.
12137if test "${with_sysroot+set}" = set; then :
12138 withval=$with_sysroot;
12139else
12140 with_sysroot=no
12141fi
12142
12143
12144lt_sysroot=
12145case ${with_sysroot} in #(
12146 yes)
12147 if test "$GCC" = yes; then
12148 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12149 fi
12150 ;; #(
12151 /*)
12152 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12153 ;; #(
12154 no|'')
12155 ;; #(
12156 *)
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12158$as_echo "${with_sysroot}" >&6; }
12159 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12160 ;;
12161esac
12162
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12164$as_echo "${lt_sysroot:-no}" >&6; }
12165
12166
12167
12168
12169
cristy73bd4a52010-10-05 11:24:23 +000012170# Check whether --enable-libtool-lock was given.
12171if test "${enable_libtool_lock+set}" = set; then :
12172 enableval=$enable_libtool_lock;
12173fi
12174
12175test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12176
12177# Some flags need to be propagated to the compiler or linker for good
12178# libtool support.
12179case $host in
12180ia64-*-hpux*)
12181 # Find out which ABI we are using.
12182 echo 'int i;' > conftest.$ac_ext
12183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12184 (eval $ac_compile) 2>&5
12185 ac_status=$?
12186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12187 test $ac_status = 0; }; then
12188 case `/usr/bin/file conftest.$ac_objext` in
12189 *ELF-32*)
12190 HPUX_IA64_MODE="32"
12191 ;;
12192 *ELF-64*)
12193 HPUX_IA64_MODE="64"
12194 ;;
12195 esac
12196 fi
12197 rm -rf conftest*
12198 ;;
12199*-*-irix6*)
12200 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012201 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12203 (eval $ac_compile) 2>&5
12204 ac_status=$?
12205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12206 test $ac_status = 0; }; then
12207 if test "$lt_cv_prog_gnu_ld" = yes; then
12208 case `/usr/bin/file conftest.$ac_objext` in
12209 *32-bit*)
12210 LD="${LD-ld} -melf32bsmip"
12211 ;;
12212 *N32*)
12213 LD="${LD-ld} -melf32bmipn32"
12214 ;;
12215 *64-bit*)
12216 LD="${LD-ld} -melf64bmip"
12217 ;;
12218 esac
12219 else
12220 case `/usr/bin/file conftest.$ac_objext` in
12221 *32-bit*)
12222 LD="${LD-ld} -32"
12223 ;;
12224 *N32*)
12225 LD="${LD-ld} -n32"
12226 ;;
12227 *64-bit*)
12228 LD="${LD-ld} -64"
12229 ;;
12230 esac
12231 fi
12232 fi
12233 rm -rf conftest*
12234 ;;
12235
12236x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12237s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12238 # Find out which ABI we are using.
12239 echo 'int i;' > conftest.$ac_ext
12240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12241 (eval $ac_compile) 2>&5
12242 ac_status=$?
12243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12244 test $ac_status = 0; }; then
12245 case `/usr/bin/file conftest.o` in
12246 *32-bit*)
12247 case $host in
12248 x86_64-*kfreebsd*-gnu)
12249 LD="${LD-ld} -m elf_i386_fbsd"
12250 ;;
12251 x86_64-*linux*)
12252 LD="${LD-ld} -m elf_i386"
12253 ;;
12254 ppc64-*linux*|powerpc64-*linux*)
12255 LD="${LD-ld} -m elf32ppclinux"
12256 ;;
12257 s390x-*linux*)
12258 LD="${LD-ld} -m elf_s390"
12259 ;;
12260 sparc64-*linux*)
12261 LD="${LD-ld} -m elf32_sparc"
12262 ;;
12263 esac
12264 ;;
12265 *64-bit*)
12266 case $host in
12267 x86_64-*kfreebsd*-gnu)
12268 LD="${LD-ld} -m elf_x86_64_fbsd"
12269 ;;
12270 x86_64-*linux*)
12271 LD="${LD-ld} -m elf_x86_64"
12272 ;;
12273 ppc*-*linux*|powerpc*-*linux*)
12274 LD="${LD-ld} -m elf64ppc"
12275 ;;
12276 s390*-*linux*|s390*-*tpf*)
12277 LD="${LD-ld} -m elf64_s390"
12278 ;;
12279 sparc*-*linux*)
12280 LD="${LD-ld} -m elf64_sparc"
12281 ;;
12282 esac
12283 ;;
12284 esac
12285 fi
12286 rm -rf conftest*
12287 ;;
12288
12289*-*-sco3.2v5*)
12290 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12291 SAVE_CFLAGS="$CFLAGS"
12292 CFLAGS="$CFLAGS -belf"
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12294$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012295if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012296 $as_echo_n "(cached) " >&6
12297else
12298 ac_ext=c
12299ac_cpp='$CPP $CPPFLAGS'
12300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12302ac_compiler_gnu=$ac_cv_c_compiler_gnu
12303
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305/* end confdefs.h. */
12306
12307int
12308main ()
12309{
12310
12311 ;
12312 return 0;
12313}
12314_ACEOF
12315if ac_fn_c_try_link "$LINENO"; then :
12316 lt_cv_cc_needs_belf=yes
12317else
12318 lt_cv_cc_needs_belf=no
12319fi
12320rm -f core conftest.err conftest.$ac_objext \
12321 conftest$ac_exeext conftest.$ac_ext
12322 ac_ext=c
12323ac_cpp='$CPP $CPPFLAGS'
12324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12326ac_compiler_gnu=$ac_cv_c_compiler_gnu
12327
12328fi
12329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12330$as_echo "$lt_cv_cc_needs_belf" >&6; }
12331 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12332 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12333 CFLAGS="$SAVE_CFLAGS"
12334 fi
12335 ;;
cristy99bd5232011-12-07 14:38:20 +000012336*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012337 # Find out which ABI we are using.
12338 echo 'int i;' > conftest.$ac_ext
12339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12340 (eval $ac_compile) 2>&5
12341 ac_status=$?
12342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12343 test $ac_status = 0; }; then
12344 case `/usr/bin/file conftest.o` in
12345 *64-bit*)
12346 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012347 yes*)
12348 case $host in
12349 i?86-*-solaris*)
12350 LD="${LD-ld} -m elf_x86_64"
12351 ;;
12352 sparc*-*-solaris*)
12353 LD="${LD-ld} -m elf64_sparc"
12354 ;;
12355 esac
12356 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12357 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12358 LD="${LD-ld}_sol2"
12359 fi
12360 ;;
cristy73bd4a52010-10-05 11:24:23 +000012361 *)
12362 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12363 LD="${LD-ld} -64"
12364 fi
12365 ;;
12366 esac
12367 ;;
12368 esac
12369 fi
12370 rm -rf conftest*
12371 ;;
12372esac
12373
12374need_locks="$enable_libtool_lock"
12375
cristyda16f162011-02-19 23:52:17 +000012376if test -n "$ac_tool_prefix"; then
12377 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12378set dummy ${ac_tool_prefix}mt; ac_word=$2
12379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12380$as_echo_n "checking for $ac_word... " >&6; }
12381if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12382 $as_echo_n "(cached) " >&6
12383else
12384 if test -n "$MANIFEST_TOOL"; then
12385 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12386else
12387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388for as_dir in $PATH
12389do
12390 IFS=$as_save_IFS
12391 test -z "$as_dir" && as_dir=.
12392 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012394 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12396 break 2
12397 fi
12398done
12399 done
12400IFS=$as_save_IFS
12401
12402fi
12403fi
12404MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12405if test -n "$MANIFEST_TOOL"; then
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12407$as_echo "$MANIFEST_TOOL" >&6; }
12408else
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410$as_echo "no" >&6; }
12411fi
12412
12413
12414fi
12415if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12416 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12417 # Extract the first word of "mt", so it can be a program name with args.
12418set dummy mt; ac_word=$2
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12420$as_echo_n "checking for $ac_word... " >&6; }
12421if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12422 $as_echo_n "(cached) " >&6
12423else
12424 if test -n "$ac_ct_MANIFEST_TOOL"; then
12425 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12426else
12427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12428for as_dir in $PATH
12429do
12430 IFS=$as_save_IFS
12431 test -z "$as_dir" && as_dir=.
12432 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012434 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12436 break 2
12437 fi
12438done
12439 done
12440IFS=$as_save_IFS
12441
12442fi
12443fi
12444ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12445if test -n "$ac_ct_MANIFEST_TOOL"; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12447$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12448else
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12450$as_echo "no" >&6; }
12451fi
12452
12453 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12454 MANIFEST_TOOL=":"
12455 else
12456 case $cross_compiling:$ac_tool_warned in
12457yes:)
12458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12460ac_tool_warned=yes ;;
12461esac
12462 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12463 fi
12464else
12465 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12466fi
12467
12468test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12470$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12471if ${lt_cv_path_mainfest_tool+:} false; then :
12472 $as_echo_n "(cached) " >&6
12473else
12474 lt_cv_path_mainfest_tool=no
12475 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12476 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12477 cat conftest.err >&5
12478 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12479 lt_cv_path_mainfest_tool=yes
12480 fi
12481 rm -f conftest*
12482fi
12483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12484$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12485if test "x$lt_cv_path_mainfest_tool" != xyes; then
12486 MANIFEST_TOOL=:
12487fi
12488
12489
12490
12491
12492
cristy73bd4a52010-10-05 11:24:23 +000012493
12494 case $host_os in
12495 rhapsody* | darwin*)
12496 if test -n "$ac_tool_prefix"; then
12497 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12498set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12500$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012501if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012502 $as_echo_n "(cached) " >&6
12503else
12504 if test -n "$DSYMUTIL"; then
12505 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12506else
12507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12508for as_dir in $PATH
12509do
12510 IFS=$as_save_IFS
12511 test -z "$as_dir" && as_dir=.
12512 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012514 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12516 break 2
12517 fi
12518done
12519 done
12520IFS=$as_save_IFS
12521
12522fi
12523fi
12524DSYMUTIL=$ac_cv_prog_DSYMUTIL
12525if test -n "$DSYMUTIL"; then
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12527$as_echo "$DSYMUTIL" >&6; }
12528else
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12530$as_echo "no" >&6; }
12531fi
12532
12533
12534fi
12535if test -z "$ac_cv_prog_DSYMUTIL"; then
12536 ac_ct_DSYMUTIL=$DSYMUTIL
12537 # Extract the first word of "dsymutil", so it can be a program name with args.
12538set dummy dsymutil; ac_word=$2
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012541if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012542 $as_echo_n "(cached) " >&6
12543else
12544 if test -n "$ac_ct_DSYMUTIL"; then
12545 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12546else
12547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12548for as_dir in $PATH
12549do
12550 IFS=$as_save_IFS
12551 test -z "$as_dir" && as_dir=.
12552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012554 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12556 break 2
12557 fi
12558done
12559 done
12560IFS=$as_save_IFS
12561
12562fi
12563fi
12564ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12565if test -n "$ac_ct_DSYMUTIL"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12567$as_echo "$ac_ct_DSYMUTIL" >&6; }
12568else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570$as_echo "no" >&6; }
12571fi
12572
12573 if test "x$ac_ct_DSYMUTIL" = x; then
12574 DSYMUTIL=":"
12575 else
12576 case $cross_compiling:$ac_tool_warned in
12577yes:)
12578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12580ac_tool_warned=yes ;;
12581esac
12582 DSYMUTIL=$ac_ct_DSYMUTIL
12583 fi
12584else
12585 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12586fi
12587
12588 if test -n "$ac_tool_prefix"; then
12589 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12590set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012593if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012594 $as_echo_n "(cached) " >&6
12595else
12596 if test -n "$NMEDIT"; then
12597 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12598else
12599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12600for as_dir in $PATH
12601do
12602 IFS=$as_save_IFS
12603 test -z "$as_dir" && as_dir=.
12604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012606 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12608 break 2
12609 fi
12610done
12611 done
12612IFS=$as_save_IFS
12613
12614fi
12615fi
12616NMEDIT=$ac_cv_prog_NMEDIT
12617if test -n "$NMEDIT"; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12619$as_echo "$NMEDIT" >&6; }
12620else
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622$as_echo "no" >&6; }
12623fi
12624
12625
12626fi
12627if test -z "$ac_cv_prog_NMEDIT"; then
12628 ac_ct_NMEDIT=$NMEDIT
12629 # Extract the first word of "nmedit", so it can be a program name with args.
12630set dummy nmedit; ac_word=$2
12631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012633if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012634 $as_echo_n "(cached) " >&6
12635else
12636 if test -n "$ac_ct_NMEDIT"; then
12637 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12638else
12639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640for as_dir in $PATH
12641do
12642 IFS=$as_save_IFS
12643 test -z "$as_dir" && as_dir=.
12644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012646 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12648 break 2
12649 fi
12650done
12651 done
12652IFS=$as_save_IFS
12653
12654fi
12655fi
12656ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12657if test -n "$ac_ct_NMEDIT"; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12659$as_echo "$ac_ct_NMEDIT" >&6; }
12660else
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662$as_echo "no" >&6; }
12663fi
12664
12665 if test "x$ac_ct_NMEDIT" = x; then
12666 NMEDIT=":"
12667 else
12668 case $cross_compiling:$ac_tool_warned in
12669yes:)
12670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12672ac_tool_warned=yes ;;
12673esac
12674 NMEDIT=$ac_ct_NMEDIT
12675 fi
12676else
12677 NMEDIT="$ac_cv_prog_NMEDIT"
12678fi
12679
12680 if test -n "$ac_tool_prefix"; then
12681 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12682set dummy ${ac_tool_prefix}lipo; ac_word=$2
12683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12684$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012685if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012686 $as_echo_n "(cached) " >&6
12687else
12688 if test -n "$LIPO"; then
12689 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12690else
12691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12692for as_dir in $PATH
12693do
12694 IFS=$as_save_IFS
12695 test -z "$as_dir" && as_dir=.
12696 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012698 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12700 break 2
12701 fi
12702done
12703 done
12704IFS=$as_save_IFS
12705
12706fi
12707fi
12708LIPO=$ac_cv_prog_LIPO
12709if test -n "$LIPO"; then
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12711$as_echo "$LIPO" >&6; }
12712else
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714$as_echo "no" >&6; }
12715fi
12716
12717
12718fi
12719if test -z "$ac_cv_prog_LIPO"; then
12720 ac_ct_LIPO=$LIPO
12721 # Extract the first word of "lipo", so it can be a program name with args.
12722set dummy lipo; ac_word=$2
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12724$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012725if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012726 $as_echo_n "(cached) " >&6
12727else
12728 if test -n "$ac_ct_LIPO"; then
12729 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12730else
12731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12732for as_dir in $PATH
12733do
12734 IFS=$as_save_IFS
12735 test -z "$as_dir" && as_dir=.
12736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012738 ac_cv_prog_ac_ct_LIPO="lipo"
12739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12740 break 2
12741 fi
12742done
12743 done
12744IFS=$as_save_IFS
12745
12746fi
12747fi
12748ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12749if test -n "$ac_ct_LIPO"; then
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12751$as_echo "$ac_ct_LIPO" >&6; }
12752else
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12754$as_echo "no" >&6; }
12755fi
12756
12757 if test "x$ac_ct_LIPO" = x; then
12758 LIPO=":"
12759 else
12760 case $cross_compiling:$ac_tool_warned in
12761yes:)
12762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12764ac_tool_warned=yes ;;
12765esac
12766 LIPO=$ac_ct_LIPO
12767 fi
12768else
12769 LIPO="$ac_cv_prog_LIPO"
12770fi
12771
12772 if test -n "$ac_tool_prefix"; then
12773 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12774set dummy ${ac_tool_prefix}otool; ac_word=$2
12775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012777if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012778 $as_echo_n "(cached) " >&6
12779else
12780 if test -n "$OTOOL"; then
12781 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12782else
12783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784for as_dir in $PATH
12785do
12786 IFS=$as_save_IFS
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012790 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12792 break 2
12793 fi
12794done
12795 done
12796IFS=$as_save_IFS
12797
12798fi
12799fi
12800OTOOL=$ac_cv_prog_OTOOL
12801if test -n "$OTOOL"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12803$as_echo "$OTOOL" >&6; }
12804else
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806$as_echo "no" >&6; }
12807fi
12808
12809
12810fi
12811if test -z "$ac_cv_prog_OTOOL"; then
12812 ac_ct_OTOOL=$OTOOL
12813 # Extract the first word of "otool", so it can be a program name with args.
12814set dummy otool; ac_word=$2
12815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012817if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012818 $as_echo_n "(cached) " >&6
12819else
12820 if test -n "$ac_ct_OTOOL"; then
12821 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12822else
12823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824for as_dir in $PATH
12825do
12826 IFS=$as_save_IFS
12827 test -z "$as_dir" && as_dir=.
12828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012830 ac_cv_prog_ac_ct_OTOOL="otool"
12831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12832 break 2
12833 fi
12834done
12835 done
12836IFS=$as_save_IFS
12837
12838fi
12839fi
12840ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12841if test -n "$ac_ct_OTOOL"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12843$as_echo "$ac_ct_OTOOL" >&6; }
12844else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846$as_echo "no" >&6; }
12847fi
12848
12849 if test "x$ac_ct_OTOOL" = x; then
12850 OTOOL=":"
12851 else
12852 case $cross_compiling:$ac_tool_warned in
12853yes:)
12854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12856ac_tool_warned=yes ;;
12857esac
12858 OTOOL=$ac_ct_OTOOL
12859 fi
12860else
12861 OTOOL="$ac_cv_prog_OTOOL"
12862fi
12863
12864 if test -n "$ac_tool_prefix"; then
12865 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12866set dummy ${ac_tool_prefix}otool64; ac_word=$2
12867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12868$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012869if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012870 $as_echo_n "(cached) " >&6
12871else
12872 if test -n "$OTOOL64"; then
12873 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12874else
12875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876for as_dir in $PATH
12877do
12878 IFS=$as_save_IFS
12879 test -z "$as_dir" && as_dir=.
12880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012882 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12884 break 2
12885 fi
12886done
12887 done
12888IFS=$as_save_IFS
12889
12890fi
12891fi
12892OTOOL64=$ac_cv_prog_OTOOL64
12893if test -n "$OTOOL64"; then
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12895$as_echo "$OTOOL64" >&6; }
12896else
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898$as_echo "no" >&6; }
12899fi
12900
12901
12902fi
12903if test -z "$ac_cv_prog_OTOOL64"; then
12904 ac_ct_OTOOL64=$OTOOL64
12905 # Extract the first word of "otool64", so it can be a program name with args.
12906set dummy otool64; ac_word=$2
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012909if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012910 $as_echo_n "(cached) " >&6
12911else
12912 if test -n "$ac_ct_OTOOL64"; then
12913 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12914else
12915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916for as_dir in $PATH
12917do
12918 IFS=$as_save_IFS
12919 test -z "$as_dir" && as_dir=.
12920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012922 ac_cv_prog_ac_ct_OTOOL64="otool64"
12923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924 break 2
12925 fi
12926done
12927 done
12928IFS=$as_save_IFS
12929
12930fi
12931fi
12932ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12933if test -n "$ac_ct_OTOOL64"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12935$as_echo "$ac_ct_OTOOL64" >&6; }
12936else
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938$as_echo "no" >&6; }
12939fi
12940
12941 if test "x$ac_ct_OTOOL64" = x; then
12942 OTOOL64=":"
12943 else
12944 case $cross_compiling:$ac_tool_warned in
12945yes:)
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12948ac_tool_warned=yes ;;
12949esac
12950 OTOOL64=$ac_ct_OTOOL64
12951 fi
12952else
12953 OTOOL64="$ac_cv_prog_OTOOL64"
12954fi
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12983$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012984if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012985 $as_echo_n "(cached) " >&6
12986else
12987 lt_cv_apple_cc_single_mod=no
12988 if test -z "${LT_MULTI_MODULE}"; then
12989 # By default we will add the -single_module flag. You can override
12990 # by either setting the environment variable LT_MULTI_MODULE
12991 # non-empty at configure time, or by adding -multi_module to the
12992 # link flags.
12993 rm -rf libconftest.dylib*
12994 echo "int foo(void){return 1;}" > conftest.c
12995 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12996-dynamiclib -Wl,-single_module conftest.c" >&5
12997 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12998 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12999 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013000 # If there is a non-empty error log, and "single_module"
13001 # appears in it, assume the flag caused a linker warning
13002 if test -s conftest.err && $GREP single_module conftest.err; then
13003 cat conftest.err >&5
13004 # Otherwise, if the output was created with a 0 exit code from
13005 # the compiler, it worked.
13006 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013007 lt_cv_apple_cc_single_mod=yes
13008 else
13009 cat conftest.err >&5
13010 fi
13011 rm -rf libconftest.dylib*
13012 rm -f conftest.*
13013 fi
13014fi
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13016$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013017
cristy73bd4a52010-10-05 11:24:23 +000013018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13019$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013020if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013021 $as_echo_n "(cached) " >&6
13022else
13023 lt_cv_ld_exported_symbols_list=no
13024 save_LDFLAGS=$LDFLAGS
13025 echo "_main" > conftest.sym
13026 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028/* end confdefs.h. */
13029
13030int
13031main ()
13032{
13033
13034 ;
13035 return 0;
13036}
13037_ACEOF
13038if ac_fn_c_try_link "$LINENO"; then :
13039 lt_cv_ld_exported_symbols_list=yes
13040else
13041 lt_cv_ld_exported_symbols_list=no
13042fi
13043rm -f core conftest.err conftest.$ac_objext \
13044 conftest$ac_exeext conftest.$ac_ext
13045 LDFLAGS="$save_LDFLAGS"
13046
13047fi
13048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13049$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013050
cristy0c60a692010-11-04 01:09:47 +000013051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13052$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013053if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013054 $as_echo_n "(cached) " >&6
13055else
13056 lt_cv_ld_force_load=no
13057 cat > conftest.c << _LT_EOF
13058int forced_loaded() { return 2;}
13059_LT_EOF
13060 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13061 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13062 echo "$AR cru libconftest.a conftest.o" >&5
13063 $AR cru libconftest.a conftest.o 2>&5
13064 echo "$RANLIB libconftest.a" >&5
13065 $RANLIB libconftest.a 2>&5
13066 cat > conftest.c << _LT_EOF
13067int main() { return 0;}
13068_LT_EOF
13069 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13070 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13071 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013072 if test -s conftest.err && $GREP force_load conftest.err; then
13073 cat conftest.err >&5
13074 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013075 lt_cv_ld_force_load=yes
13076 else
13077 cat conftest.err >&5
13078 fi
13079 rm -f conftest.err libconftest.a conftest conftest.c
13080 rm -rf conftest.dSYM
13081
13082fi
13083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13084$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013085 case $host_os in
13086 rhapsody* | darwin1.[012])
13087 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13088 darwin1.*)
13089 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13090 darwin*) # darwin 5.x on
13091 # if running on 10.5 or later, the deployment target defaults
13092 # to the OS version, if on x86, and 10.4, the deployment
13093 # target defaults to 10.4. Don't you love it?
13094 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13095 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13096 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13097 10.[012]*)
13098 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13099 10.*)
13100 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13101 esac
13102 ;;
13103 esac
13104 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13105 _lt_dar_single_mod='$single_module'
13106 fi
13107 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13108 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13109 else
13110 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13111 fi
cristy0c60a692010-11-04 01:09:47 +000013112 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013113 _lt_dsymutil='~$DSYMUTIL $lib || :'
13114 else
13115 _lt_dsymutil=
13116 fi
13117 ;;
13118 esac
13119
13120for ac_header in dlfcn.h
13121do :
13122 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13123"
cristyda16f162011-02-19 23:52:17 +000013124if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013125 cat >>confdefs.h <<_ACEOF
13126#define HAVE_DLFCN_H 1
13127_ACEOF
13128
13129fi
13130
13131done
13132
13133
13134
cristy73bd4a52010-10-05 11:24:23 +000013135
cristyda16f162011-02-19 23:52:17 +000013136func_stripname_cnf ()
13137{
13138 case ${2} in
13139 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13140 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13141 esac
13142} # func_stripname_cnf
13143
13144
13145
cristy73bd4a52010-10-05 11:24:23 +000013146
13147
13148# Set options
13149enable_win32_dll=yes
13150
13151case $host in
cristy0c60a692010-11-04 01:09:47 +000013152*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013153 if test -n "$ac_tool_prefix"; then
13154 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13155set dummy ${ac_tool_prefix}as; ac_word=$2
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013158if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013159 $as_echo_n "(cached) " >&6
13160else
13161 if test -n "$AS"; then
13162 ac_cv_prog_AS="$AS" # Let the user override the test.
13163else
13164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165for as_dir in $PATH
13166do
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013171 ac_cv_prog_AS="${ac_tool_prefix}as"
13172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13174 fi
13175done
13176 done
13177IFS=$as_save_IFS
13178
13179fi
13180fi
13181AS=$ac_cv_prog_AS
13182if test -n "$AS"; then
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13184$as_echo "$AS" >&6; }
13185else
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187$as_echo "no" >&6; }
13188fi
13189
13190
13191fi
13192if test -z "$ac_cv_prog_AS"; then
13193 ac_ct_AS=$AS
13194 # Extract the first word of "as", so it can be a program name with args.
13195set dummy as; ac_word=$2
13196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013198if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013199 $as_echo_n "(cached) " >&6
13200else
13201 if test -n "$ac_ct_AS"; then
13202 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13203else
13204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205for as_dir in $PATH
13206do
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013211 ac_cv_prog_ac_ct_AS="as"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 break 2
13214 fi
13215done
13216 done
13217IFS=$as_save_IFS
13218
13219fi
13220fi
13221ac_ct_AS=$ac_cv_prog_ac_ct_AS
13222if test -n "$ac_ct_AS"; then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13224$as_echo "$ac_ct_AS" >&6; }
13225else
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227$as_echo "no" >&6; }
13228fi
13229
13230 if test "x$ac_ct_AS" = x; then
13231 AS="false"
13232 else
13233 case $cross_compiling:$ac_tool_warned in
13234yes:)
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13237ac_tool_warned=yes ;;
13238esac
13239 AS=$ac_ct_AS
13240 fi
13241else
13242 AS="$ac_cv_prog_AS"
13243fi
13244
13245 if test -n "$ac_tool_prefix"; then
13246 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13247set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13249$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013250if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013251 $as_echo_n "(cached) " >&6
13252else
13253 if test -n "$DLLTOOL"; then
13254 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13255else
13256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13257for as_dir in $PATH
13258do
13259 IFS=$as_save_IFS
13260 test -z "$as_dir" && as_dir=.
13261 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013263 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13265 break 2
13266 fi
13267done
13268 done
13269IFS=$as_save_IFS
13270
13271fi
13272fi
13273DLLTOOL=$ac_cv_prog_DLLTOOL
13274if test -n "$DLLTOOL"; then
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13276$as_echo "$DLLTOOL" >&6; }
13277else
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13279$as_echo "no" >&6; }
13280fi
13281
13282
13283fi
13284if test -z "$ac_cv_prog_DLLTOOL"; then
13285 ac_ct_DLLTOOL=$DLLTOOL
13286 # Extract the first word of "dlltool", so it can be a program name with args.
13287set dummy dlltool; ac_word=$2
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013290if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013291 $as_echo_n "(cached) " >&6
13292else
13293 if test -n "$ac_ct_DLLTOOL"; then
13294 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13295else
13296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297for as_dir in $PATH
13298do
13299 IFS=$as_save_IFS
13300 test -z "$as_dir" && as_dir=.
13301 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013303 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13305 break 2
13306 fi
13307done
13308 done
13309IFS=$as_save_IFS
13310
13311fi
13312fi
13313ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13314if test -n "$ac_ct_DLLTOOL"; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13316$as_echo "$ac_ct_DLLTOOL" >&6; }
13317else
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319$as_echo "no" >&6; }
13320fi
13321
13322 if test "x$ac_ct_DLLTOOL" = x; then
13323 DLLTOOL="false"
13324 else
13325 case $cross_compiling:$ac_tool_warned in
13326yes:)
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13329ac_tool_warned=yes ;;
13330esac
13331 DLLTOOL=$ac_ct_DLLTOOL
13332 fi
13333else
13334 DLLTOOL="$ac_cv_prog_DLLTOOL"
13335fi
13336
13337 if test -n "$ac_tool_prefix"; then
13338 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13339set dummy ${ac_tool_prefix}objdump; ac_word=$2
13340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13341$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013342if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013343 $as_echo_n "(cached) " >&6
13344else
13345 if test -n "$OBJDUMP"; then
13346 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13347else
13348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13349for as_dir in $PATH
13350do
13351 IFS=$as_save_IFS
13352 test -z "$as_dir" && as_dir=.
13353 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013355 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13357 break 2
13358 fi
13359done
13360 done
13361IFS=$as_save_IFS
13362
13363fi
13364fi
13365OBJDUMP=$ac_cv_prog_OBJDUMP
13366if test -n "$OBJDUMP"; then
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13368$as_echo "$OBJDUMP" >&6; }
13369else
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371$as_echo "no" >&6; }
13372fi
13373
13374
13375fi
13376if test -z "$ac_cv_prog_OBJDUMP"; then
13377 ac_ct_OBJDUMP=$OBJDUMP
13378 # Extract the first word of "objdump", so it can be a program name with args.
13379set dummy objdump; ac_word=$2
13380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13381$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013382if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013383 $as_echo_n "(cached) " >&6
13384else
13385 if test -n "$ac_ct_OBJDUMP"; then
13386 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13387else
13388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13389for as_dir in $PATH
13390do
13391 IFS=$as_save_IFS
13392 test -z "$as_dir" && as_dir=.
13393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013395 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13397 break 2
13398 fi
13399done
13400 done
13401IFS=$as_save_IFS
13402
13403fi
13404fi
13405ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13406if test -n "$ac_ct_OBJDUMP"; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13408$as_echo "$ac_ct_OBJDUMP" >&6; }
13409else
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411$as_echo "no" >&6; }
13412fi
13413
13414 if test "x$ac_ct_OBJDUMP" = x; then
13415 OBJDUMP="false"
13416 else
13417 case $cross_compiling:$ac_tool_warned in
13418yes:)
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13421ac_tool_warned=yes ;;
13422esac
13423 OBJDUMP=$ac_ct_OBJDUMP
13424 fi
13425else
13426 OBJDUMP="$ac_cv_prog_OBJDUMP"
13427fi
13428
13429 ;;
13430esac
13431
13432test -z "$AS" && AS=as
13433
13434
13435
13436
13437
13438test -z "$DLLTOOL" && DLLTOOL=dlltool
13439
13440
13441
13442
13443
13444test -z "$OBJDUMP" && OBJDUMP=objdump
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454 # Check whether --enable-shared was given.
13455if test "${enable_shared+set}" = set; then :
13456 enableval=$enable_shared; p=${PACKAGE-default}
13457 case $enableval in
13458 yes) enable_shared=yes ;;
13459 no) enable_shared=no ;;
13460 *)
13461 enable_shared=no
13462 # Look at the argument we got. We use all the common list separators.
13463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13464 for pkg in $enableval; do
13465 IFS="$lt_save_ifs"
13466 if test "X$pkg" = "X$p"; then
13467 enable_shared=yes
13468 fi
13469 done
13470 IFS="$lt_save_ifs"
13471 ;;
13472 esac
13473else
13474 enable_shared=yes
13475fi
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485 # Check whether --enable-static was given.
13486if test "${enable_static+set}" = set; then :
13487 enableval=$enable_static; p=${PACKAGE-default}
13488 case $enableval in
13489 yes) enable_static=yes ;;
13490 no) enable_static=no ;;
13491 *)
13492 enable_static=no
13493 # Look at the argument we got. We use all the common list separators.
13494 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13495 for pkg in $enableval; do
13496 IFS="$lt_save_ifs"
13497 if test "X$pkg" = "X$p"; then
13498 enable_static=yes
13499 fi
13500 done
13501 IFS="$lt_save_ifs"
13502 ;;
13503 esac
13504else
13505 enable_static=yes
13506fi
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517# Check whether --with-pic was given.
13518if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013519 withval=$with_pic; lt_p=${PACKAGE-default}
13520 case $withval in
13521 yes|no) pic_mode=$withval ;;
13522 *)
13523 pic_mode=default
13524 # Look at the argument we got. We use all the common list separators.
13525 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13526 for lt_pkg in $withval; do
13527 IFS="$lt_save_ifs"
13528 if test "X$lt_pkg" = "X$lt_p"; then
13529 pic_mode=yes
13530 fi
13531 done
13532 IFS="$lt_save_ifs"
13533 ;;
13534 esac
cristy73bd4a52010-10-05 11:24:23 +000013535else
13536 pic_mode=default
13537fi
13538
13539
13540test -z "$pic_mode" && pic_mode=default
13541
13542
13543
13544
13545
13546
13547
13548 # Check whether --enable-fast-install was given.
13549if test "${enable_fast_install+set}" = set; then :
13550 enableval=$enable_fast_install; p=${PACKAGE-default}
13551 case $enableval in
13552 yes) enable_fast_install=yes ;;
13553 no) enable_fast_install=no ;;
13554 *)
13555 enable_fast_install=no
13556 # Look at the argument we got. We use all the common list separators.
13557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13558 for pkg in $enableval; do
13559 IFS="$lt_save_ifs"
13560 if test "X$pkg" = "X$p"; then
13561 enable_fast_install=yes
13562 fi
13563 done
13564 IFS="$lt_save_ifs"
13565 ;;
13566 esac
13567else
13568 enable_fast_install=yes
13569fi
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581# This can be used to rebuild libtool when needed
13582LIBTOOL_DEPS="$ltmain"
13583
13584# Always use our own libtool.
13585LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
cristy0c60a692010-11-04 01:09:47 +000013611
cristy99bd5232011-12-07 14:38:20 +000013612
13613
13614
13615
cristy73bd4a52010-10-05 11:24:23 +000013616test -z "$LN_S" && LN_S="ln -s"
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631if test -n "${ZSH_VERSION+set}" ; then
13632 setopt NO_GLOB_SUBST
13633fi
13634
13635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13636$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013637if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013638 $as_echo_n "(cached) " >&6
13639else
13640 rm -f .libs 2>/dev/null
13641mkdir .libs 2>/dev/null
13642if test -d .libs; then
13643 lt_cv_objdir=.libs
13644else
13645 # MS-DOS does not allow filenames that begin with a dot.
13646 lt_cv_objdir=_libs
13647fi
13648rmdir .libs 2>/dev/null
13649fi
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13651$as_echo "$lt_cv_objdir" >&6; }
13652objdir=$lt_cv_objdir
13653
13654
13655
13656
13657
13658cat >>confdefs.h <<_ACEOF
13659#define LT_OBJDIR "$lt_cv_objdir/"
13660_ACEOF
13661
13662
13663
13664
cristy73bd4a52010-10-05 11:24:23 +000013665case $host_os in
13666aix3*)
13667 # AIX sometimes has problems with the GCC collect2 program. For some
13668 # reason, if we set the COLLECT_NAMES environment variable, the problems
13669 # vanish in a puff of smoke.
13670 if test "X${COLLECT_NAMES+set}" != Xset; then
13671 COLLECT_NAMES=
13672 export COLLECT_NAMES
13673 fi
13674 ;;
13675esac
13676
cristy73bd4a52010-10-05 11:24:23 +000013677# Global variables:
13678ofile=libtool
13679can_build_shared=yes
13680
13681# All known linkers require a `.a' archive for static linking (except MSVC,
13682# which needs '.lib').
13683libext=a
13684
13685with_gnu_ld="$lt_cv_prog_gnu_ld"
13686
13687old_CC="$CC"
13688old_CFLAGS="$CFLAGS"
13689
13690# Set sane defaults for various variables
13691test -z "$CC" && CC=cc
13692test -z "$LTCC" && LTCC=$CC
13693test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13694test -z "$LD" && LD=ld
13695test -z "$ac_objext" && ac_objext=o
13696
13697for cc_temp in $compiler""; do
13698 case $cc_temp in
13699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13701 \-*) ;;
13702 *) break;;
13703 esac
13704done
cristy0c60a692010-11-04 01:09:47 +000013705cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013706
13707
13708# Only perform the check for file, if the check method requires it
13709test -z "$MAGIC_CMD" && MAGIC_CMD=file
13710case $deplibs_check_method in
13711file_magic*)
13712 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13714$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013715if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013716 $as_echo_n "(cached) " >&6
13717else
13718 case $MAGIC_CMD in
13719[\\/*] | ?:[\\/]*)
13720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13721 ;;
13722*)
13723 lt_save_MAGIC_CMD="$MAGIC_CMD"
13724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13725 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13726 for ac_dir in $ac_dummy; do
13727 IFS="$lt_save_ifs"
13728 test -z "$ac_dir" && ac_dir=.
13729 if test -f $ac_dir/${ac_tool_prefix}file; then
13730 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13731 if test -n "$file_magic_test_file"; then
13732 case $deplibs_check_method in
13733 "file_magic "*)
13734 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13735 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13736 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13737 $EGREP "$file_magic_regex" > /dev/null; then
13738 :
13739 else
13740 cat <<_LT_EOF 1>&2
13741
13742*** Warning: the command libtool uses to detect shared libraries,
13743*** $file_magic_cmd, produces output that libtool cannot recognize.
13744*** The result is that libtool may fail to recognize shared libraries
13745*** as such. This will affect the creation of libtool libraries that
13746*** depend on shared libraries, but programs linked with such libtool
13747*** libraries will work regardless of this problem. Nevertheless, you
13748*** may want to report the problem to your system manager and/or to
13749*** bug-libtool@gnu.org
13750
13751_LT_EOF
13752 fi ;;
13753 esac
13754 fi
13755 break
13756 fi
13757 done
13758 IFS="$lt_save_ifs"
13759 MAGIC_CMD="$lt_save_MAGIC_CMD"
13760 ;;
13761esac
13762fi
13763
13764MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13765if test -n "$MAGIC_CMD"; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13767$as_echo "$MAGIC_CMD" >&6; }
13768else
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770$as_echo "no" >&6; }
13771fi
13772
13773
13774
13775
13776
13777if test -z "$lt_cv_path_MAGIC_CMD"; then
13778 if test -n "$ac_tool_prefix"; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13780$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013781if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013782 $as_echo_n "(cached) " >&6
13783else
13784 case $MAGIC_CMD in
13785[\\/*] | ?:[\\/]*)
13786 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13787 ;;
13788*)
13789 lt_save_MAGIC_CMD="$MAGIC_CMD"
13790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13791 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13792 for ac_dir in $ac_dummy; do
13793 IFS="$lt_save_ifs"
13794 test -z "$ac_dir" && ac_dir=.
13795 if test -f $ac_dir/file; then
13796 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13797 if test -n "$file_magic_test_file"; then
13798 case $deplibs_check_method in
13799 "file_magic "*)
13800 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13802 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13803 $EGREP "$file_magic_regex" > /dev/null; then
13804 :
13805 else
13806 cat <<_LT_EOF 1>&2
13807
13808*** Warning: the command libtool uses to detect shared libraries,
13809*** $file_magic_cmd, produces output that libtool cannot recognize.
13810*** The result is that libtool may fail to recognize shared libraries
13811*** as such. This will affect the creation of libtool libraries that
13812*** depend on shared libraries, but programs linked with such libtool
13813*** libraries will work regardless of this problem. Nevertheless, you
13814*** may want to report the problem to your system manager and/or to
13815*** bug-libtool@gnu.org
13816
13817_LT_EOF
13818 fi ;;
13819 esac
13820 fi
13821 break
13822 fi
13823 done
13824 IFS="$lt_save_ifs"
13825 MAGIC_CMD="$lt_save_MAGIC_CMD"
13826 ;;
13827esac
13828fi
13829
13830MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13831if test -n "$MAGIC_CMD"; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13833$as_echo "$MAGIC_CMD" >&6; }
13834else
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836$as_echo "no" >&6; }
13837fi
13838
13839
13840 else
13841 MAGIC_CMD=:
13842 fi
13843fi
13844
13845 fi
13846 ;;
13847esac
13848
13849# Use C for the default configuration in the libtool script
13850
13851lt_save_CC="$CC"
13852ac_ext=c
13853ac_cpp='$CPP $CPPFLAGS'
13854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856ac_compiler_gnu=$ac_cv_c_compiler_gnu
13857
13858
13859# Source file extension for C test sources.
13860ac_ext=c
13861
13862# Object file extension for compiled C test sources.
13863objext=o
13864objext=$objext
13865
13866# Code to be used in simple compile tests
13867lt_simple_compile_test_code="int some_variable = 0;"
13868
13869# Code to be used in simple link tests
13870lt_simple_link_test_code='int main(){return(0);}'
13871
13872
13873
13874
13875
13876
13877
13878# If no C compiler was specified, use CC.
13879LTCC=${LTCC-"$CC"}
13880
13881# If no C compiler flags were specified, use CFLAGS.
13882LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13883
13884# Allow CC to be a program name with arguments.
13885compiler=$CC
13886
13887# Save the default compiler, since it gets overwritten when the other
13888# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13889compiler_DEFAULT=$CC
13890
13891# save warnings/boilerplate of simple test code
13892ac_outfile=conftest.$ac_objext
13893echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13894eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13895_lt_compiler_boilerplate=`cat conftest.err`
13896$RM conftest*
13897
13898ac_outfile=conftest.$ac_objext
13899echo "$lt_simple_link_test_code" >conftest.$ac_ext
13900eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13901_lt_linker_boilerplate=`cat conftest.err`
13902$RM -r conftest*
13903
13904
13905## CAVEAT EMPTOR:
13906## There is no encapsulation within the following macros, do not change
13907## the running order or otherwise move them around unless you know exactly
13908## what you are doing...
13909if test -n "$compiler"; then
13910
13911lt_prog_compiler_no_builtin_flag=
13912
13913if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013914 case $cc_basename in
13915 nvcc*)
13916 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13917 *)
13918 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13919 esac
cristy73bd4a52010-10-05 11:24:23 +000013920
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13922$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013923if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013924 $as_echo_n "(cached) " >&6
13925else
13926 lt_cv_prog_compiler_rtti_exceptions=no
13927 ac_outfile=conftest.$ac_objext
13928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13929 lt_compiler_flag="-fno-rtti -fno-exceptions"
13930 # Insert the option either (1) after the last *FLAGS variable, or
13931 # (2) before a word containing "conftest.", or (3) at the end.
13932 # Note that $ac_compile itself does not contain backslashes and begins
13933 # with a dollar sign (not a hyphen), so the echo should work correctly.
13934 # The option is referenced via a variable to avoid confusing sed.
13935 lt_compile=`echo "$ac_compile" | $SED \
13936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13938 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013939 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013940 (eval "$lt_compile" 2>conftest.err)
13941 ac_status=$?
13942 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013944 if (exit $ac_status) && test -s "$ac_outfile"; then
13945 # The compiler can only warn and ignore the option if not recognized
13946 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13949 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13950 lt_cv_prog_compiler_rtti_exceptions=yes
13951 fi
13952 fi
13953 $RM conftest*
13954
13955fi
13956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13957$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13958
13959if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13960 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13961else
13962 :
13963fi
13964
13965fi
13966
13967
13968
13969
13970
13971
13972 lt_prog_compiler_wl=
13973lt_prog_compiler_pic=
13974lt_prog_compiler_static=
13975
cristy73bd4a52010-10-05 11:24:23 +000013976
13977 if test "$GCC" = yes; then
13978 lt_prog_compiler_wl='-Wl,'
13979 lt_prog_compiler_static='-static'
13980
13981 case $host_os in
13982 aix*)
13983 # All AIX code is PIC.
13984 if test "$host_cpu" = ia64; then
13985 # AIX 5 now supports IA64 processor
13986 lt_prog_compiler_static='-Bstatic'
13987 fi
13988 ;;
13989
13990 amigaos*)
13991 case $host_cpu in
13992 powerpc)
13993 # see comment about AmigaOS4 .so support
13994 lt_prog_compiler_pic='-fPIC'
13995 ;;
13996 m68k)
13997 # FIXME: we need at least 68020 code to build shared libraries, but
13998 # adding the `-m68020' flag to GCC prevents building anything better,
13999 # like `-m68040'.
14000 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14001 ;;
14002 esac
14003 ;;
14004
14005 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14006 # PIC is the default for these OSes.
14007 ;;
14008
14009 mingw* | cygwin* | pw32* | os2* | cegcc*)
14010 # This hack is so that the source file can tell whether it is being
14011 # built for inclusion in a dll (and should export symbols for example).
14012 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14013 # (--disable-auto-import) libraries
14014 lt_prog_compiler_pic='-DDLL_EXPORT'
14015 ;;
14016
14017 darwin* | rhapsody*)
14018 # PIC is the default on this platform
14019 # Common symbols not allowed in MH_DYLIB files
14020 lt_prog_compiler_pic='-fno-common'
14021 ;;
14022
cristy0c60a692010-11-04 01:09:47 +000014023 haiku*)
14024 # PIC is the default for Haiku.
14025 # The "-static" flag exists, but is broken.
14026 lt_prog_compiler_static=
14027 ;;
14028
cristy73bd4a52010-10-05 11:24:23 +000014029 hpux*)
14030 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14031 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14032 # sets the default TLS model and affects inlining.
14033 case $host_cpu in
14034 hppa*64*)
14035 # +Z the default
14036 ;;
14037 *)
14038 lt_prog_compiler_pic='-fPIC'
14039 ;;
14040 esac
14041 ;;
14042
14043 interix[3-9]*)
14044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14045 # Instead, we relocate shared libraries at runtime.
14046 ;;
14047
14048 msdosdjgpp*)
14049 # Just because we use GCC doesn't mean we suddenly get shared libraries
14050 # on systems that don't support them.
14051 lt_prog_compiler_can_build_shared=no
14052 enable_shared=no
14053 ;;
14054
14055 *nto* | *qnx*)
14056 # QNX uses GNU C++, but need to define -shared option too, otherwise
14057 # it will coredump.
14058 lt_prog_compiler_pic='-fPIC -shared'
14059 ;;
14060
14061 sysv4*MP*)
14062 if test -d /usr/nec; then
14063 lt_prog_compiler_pic=-Kconform_pic
14064 fi
14065 ;;
14066
14067 *)
14068 lt_prog_compiler_pic='-fPIC'
14069 ;;
14070 esac
cristy0c60a692010-11-04 01:09:47 +000014071
14072 case $cc_basename in
14073 nvcc*) # Cuda Compiler Driver 2.2
14074 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014075 if test -n "$lt_prog_compiler_pic"; then
14076 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14077 fi
cristy0c60a692010-11-04 01:09:47 +000014078 ;;
14079 esac
cristy73bd4a52010-10-05 11:24:23 +000014080 else
14081 # PORTME Check for flag to pass linker flags through the system compiler.
14082 case $host_os in
14083 aix*)
14084 lt_prog_compiler_wl='-Wl,'
14085 if test "$host_cpu" = ia64; then
14086 # AIX 5 now supports IA64 processor
14087 lt_prog_compiler_static='-Bstatic'
14088 else
14089 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14090 fi
14091 ;;
14092
14093 mingw* | cygwin* | pw32* | os2* | cegcc*)
14094 # This hack is so that the source file can tell whether it is being
14095 # built for inclusion in a dll (and should export symbols for example).
14096 lt_prog_compiler_pic='-DDLL_EXPORT'
14097 ;;
14098
14099 hpux9* | hpux10* | hpux11*)
14100 lt_prog_compiler_wl='-Wl,'
14101 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14102 # not for PA HP-UX.
14103 case $host_cpu in
14104 hppa*64*|ia64*)
14105 # +Z the default
14106 ;;
14107 *)
14108 lt_prog_compiler_pic='+Z'
14109 ;;
14110 esac
14111 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14112 lt_prog_compiler_static='${wl}-a ${wl}archive'
14113 ;;
14114
14115 irix5* | irix6* | nonstopux*)
14116 lt_prog_compiler_wl='-Wl,'
14117 # PIC (with -KPIC) is the default.
14118 lt_prog_compiler_static='-non_shared'
14119 ;;
14120
cristy0c60a692010-11-04 01:09:47 +000014121 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014122 case $cc_basename in
14123 # old Intel for x86_64 which still supported -KPIC.
14124 ecc*)
14125 lt_prog_compiler_wl='-Wl,'
14126 lt_prog_compiler_pic='-KPIC'
14127 lt_prog_compiler_static='-static'
14128 ;;
14129 # icc used to be incompatible with GCC.
14130 # ICC 10 doesn't accept -KPIC any more.
14131 icc* | ifort*)
14132 lt_prog_compiler_wl='-Wl,'
14133 lt_prog_compiler_pic='-fPIC'
14134 lt_prog_compiler_static='-static'
14135 ;;
14136 # Lahey Fortran 8.1.
14137 lf95*)
14138 lt_prog_compiler_wl='-Wl,'
14139 lt_prog_compiler_pic='--shared'
14140 lt_prog_compiler_static='--static'
14141 ;;
cristyda16f162011-02-19 23:52:17 +000014142 nagfor*)
14143 # NAG Fortran compiler
14144 lt_prog_compiler_wl='-Wl,-Wl,,'
14145 lt_prog_compiler_pic='-PIC'
14146 lt_prog_compiler_static='-Bstatic'
14147 ;;
cristy0c60a692010-11-04 01:09:47 +000014148 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014149 # Portland Group compilers (*not* the Pentium gcc compiler,
14150 # which looks to be a dead project)
14151 lt_prog_compiler_wl='-Wl,'
14152 lt_prog_compiler_pic='-fpic'
14153 lt_prog_compiler_static='-Bstatic'
14154 ;;
14155 ccc*)
14156 lt_prog_compiler_wl='-Wl,'
14157 # All Alpha code is PIC.
14158 lt_prog_compiler_static='-non_shared'
14159 ;;
cristy0c60a692010-11-04 01:09:47 +000014160 xl* | bgxl* | bgf* | mpixl*)
14161 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014162 lt_prog_compiler_wl='-Wl,'
14163 lt_prog_compiler_pic='-qpic'
14164 lt_prog_compiler_static='-qstaticlink'
14165 ;;
14166 *)
14167 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014168 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014169 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14170 lt_prog_compiler_pic='-KPIC'
14171 lt_prog_compiler_static='-Bstatic'
14172 lt_prog_compiler_wl=''
14173 ;;
cristy99bd5232011-12-07 14:38:20 +000014174 *Sun\ F* | *Sun*Fortran*)
14175 lt_prog_compiler_pic='-KPIC'
14176 lt_prog_compiler_static='-Bstatic'
14177 lt_prog_compiler_wl='-Qoption ld '
14178 ;;
cristy73bd4a52010-10-05 11:24:23 +000014179 *Sun\ C*)
14180 # Sun C 5.9
14181 lt_prog_compiler_pic='-KPIC'
14182 lt_prog_compiler_static='-Bstatic'
14183 lt_prog_compiler_wl='-Wl,'
14184 ;;
cristy99bd5232011-12-07 14:38:20 +000014185 *Intel*\ [CF]*Compiler*)
14186 lt_prog_compiler_wl='-Wl,'
14187 lt_prog_compiler_pic='-fPIC'
14188 lt_prog_compiler_static='-static'
14189 ;;
14190 *Portland\ Group*)
14191 lt_prog_compiler_wl='-Wl,'
14192 lt_prog_compiler_pic='-fpic'
14193 lt_prog_compiler_static='-Bstatic'
14194 ;;
cristy73bd4a52010-10-05 11:24:23 +000014195 esac
14196 ;;
14197 esac
14198 ;;
14199
14200 newsos6)
14201 lt_prog_compiler_pic='-KPIC'
14202 lt_prog_compiler_static='-Bstatic'
14203 ;;
14204
14205 *nto* | *qnx*)
14206 # QNX uses GNU C++, but need to define -shared option too, otherwise
14207 # it will coredump.
14208 lt_prog_compiler_pic='-fPIC -shared'
14209 ;;
14210
14211 osf3* | osf4* | osf5*)
14212 lt_prog_compiler_wl='-Wl,'
14213 # All OSF/1 code is PIC.
14214 lt_prog_compiler_static='-non_shared'
14215 ;;
14216
14217 rdos*)
14218 lt_prog_compiler_static='-non_shared'
14219 ;;
14220
14221 solaris*)
14222 lt_prog_compiler_pic='-KPIC'
14223 lt_prog_compiler_static='-Bstatic'
14224 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014225 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014226 lt_prog_compiler_wl='-Qoption ld ';;
14227 *)
14228 lt_prog_compiler_wl='-Wl,';;
14229 esac
14230 ;;
14231
14232 sunos4*)
14233 lt_prog_compiler_wl='-Qoption ld '
14234 lt_prog_compiler_pic='-PIC'
14235 lt_prog_compiler_static='-Bstatic'
14236 ;;
14237
14238 sysv4 | sysv4.2uw2* | sysv4.3*)
14239 lt_prog_compiler_wl='-Wl,'
14240 lt_prog_compiler_pic='-KPIC'
14241 lt_prog_compiler_static='-Bstatic'
14242 ;;
14243
14244 sysv4*MP*)
14245 if test -d /usr/nec ;then
14246 lt_prog_compiler_pic='-Kconform_pic'
14247 lt_prog_compiler_static='-Bstatic'
14248 fi
14249 ;;
14250
14251 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14252 lt_prog_compiler_wl='-Wl,'
14253 lt_prog_compiler_pic='-KPIC'
14254 lt_prog_compiler_static='-Bstatic'
14255 ;;
14256
14257 unicos*)
14258 lt_prog_compiler_wl='-Wl,'
14259 lt_prog_compiler_can_build_shared=no
14260 ;;
14261
14262 uts4*)
14263 lt_prog_compiler_pic='-pic'
14264 lt_prog_compiler_static='-Bstatic'
14265 ;;
14266
14267 *)
14268 lt_prog_compiler_can_build_shared=no
14269 ;;
14270 esac
14271 fi
14272
14273case $host_os in
14274 # For platforms which do not support PIC, -DPIC is meaningless:
14275 *djgpp*)
14276 lt_prog_compiler_pic=
14277 ;;
14278 *)
14279 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14280 ;;
14281esac
cristy73bd4a52010-10-05 11:24:23 +000014282
cristyda16f162011-02-19 23:52:17 +000014283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14284$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14285if ${lt_cv_prog_compiler_pic+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287else
14288 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14289fi
14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14291$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14292lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014293
14294#
14295# Check to make sure the PIC flag actually works.
14296#
14297if test -n "$lt_prog_compiler_pic"; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14299$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014300if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014301 $as_echo_n "(cached) " >&6
14302else
14303 lt_cv_prog_compiler_pic_works=no
14304 ac_outfile=conftest.$ac_objext
14305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14306 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14307 # Insert the option either (1) after the last *FLAGS variable, or
14308 # (2) before a word containing "conftest.", or (3) at the end.
14309 # Note that $ac_compile itself does not contain backslashes and begins
14310 # with a dollar sign (not a hyphen), so the echo should work correctly.
14311 # The option is referenced via a variable to avoid confusing sed.
14312 lt_compile=`echo "$ac_compile" | $SED \
14313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14315 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014317 (eval "$lt_compile" 2>conftest.err)
14318 ac_status=$?
14319 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014321 if (exit $ac_status) && test -s "$ac_outfile"; then
14322 # The compiler can only warn and ignore the option if not recognized
14323 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14327 lt_cv_prog_compiler_pic_works=yes
14328 fi
14329 fi
14330 $RM conftest*
14331
14332fi
14333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14334$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14335
14336if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14337 case $lt_prog_compiler_pic in
14338 "" | " "*) ;;
14339 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14340 esac
14341else
14342 lt_prog_compiler_pic=
14343 lt_prog_compiler_can_build_shared=no
14344fi
14345
14346fi
14347
14348
14349
14350
14351
14352
cristyda16f162011-02-19 23:52:17 +000014353
14354
14355
14356
14357
cristy73bd4a52010-10-05 11:24:23 +000014358#
14359# Check to make sure the static flag actually works.
14360#
14361wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14363$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014364if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014365 $as_echo_n "(cached) " >&6
14366else
14367 lt_cv_prog_compiler_static_works=no
14368 save_LDFLAGS="$LDFLAGS"
14369 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14370 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14371 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14372 # The linker can only warn and ignore the option if not recognized
14373 # So say no if there are warnings
14374 if test -s conftest.err; then
14375 # Append any errors to the config.log.
14376 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014377 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14379 if diff conftest.exp conftest.er2 >/dev/null; then
14380 lt_cv_prog_compiler_static_works=yes
14381 fi
14382 else
14383 lt_cv_prog_compiler_static_works=yes
14384 fi
14385 fi
14386 $RM -r conftest*
14387 LDFLAGS="$save_LDFLAGS"
14388
14389fi
14390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14391$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14392
14393if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14394 :
14395else
14396 lt_prog_compiler_static=
14397fi
14398
14399
14400
14401
14402
14403
14404
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14406$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014407if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014408 $as_echo_n "(cached) " >&6
14409else
14410 lt_cv_prog_compiler_c_o=no
14411 $RM -r conftest 2>/dev/null
14412 mkdir conftest
14413 cd conftest
14414 mkdir out
14415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14416
14417 lt_compiler_flag="-o out/conftest2.$ac_objext"
14418 # Insert the option either (1) after the last *FLAGS variable, or
14419 # (2) before a word containing "conftest.", or (3) at the end.
14420 # Note that $ac_compile itself does not contain backslashes and begins
14421 # with a dollar sign (not a hyphen), so the echo should work correctly.
14422 lt_compile=`echo "$ac_compile" | $SED \
14423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14425 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014427 (eval "$lt_compile" 2>out/conftest.err)
14428 ac_status=$?
14429 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014431 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14432 then
14433 # The compiler can only warn and ignore the option if not recognized
14434 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014436 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14437 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14438 lt_cv_prog_compiler_c_o=yes
14439 fi
14440 fi
14441 chmod u+w . 2>&5
14442 $RM conftest*
14443 # SGI C++ compiler will create directory out/ii_files/ for
14444 # template instantiation
14445 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14446 $RM out/* && rmdir out
14447 cd ..
14448 $RM -r conftest
14449 $RM conftest*
14450
14451fi
14452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14453$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
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
14513hard_links="nottested"
14514if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14515 # do not overwrite the value of need_locks provided by the user
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14517$as_echo_n "checking if we can lock with hard links... " >&6; }
14518 hard_links=yes
14519 $RM conftest*
14520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14521 touch conftest.a
14522 ln conftest.a conftest.b 2>&5 || hard_links=no
14523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14525$as_echo "$hard_links" >&6; }
14526 if test "$hard_links" = no; then
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14528$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14529 need_locks=warn
14530 fi
14531else
14532 need_locks=no
14533fi
14534
14535
14536
14537
14538
14539
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14541$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14542
14543 runpath_var=
14544 allow_undefined_flag=
14545 always_export_symbols=no
14546 archive_cmds=
14547 archive_expsym_cmds=
14548 compiler_needs_object=no
14549 enable_shared_with_static_runtimes=no
14550 export_dynamic_flag_spec=
14551 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14552 hardcode_automatic=no
14553 hardcode_direct=no
14554 hardcode_direct_absolute=no
14555 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014556 hardcode_libdir_separator=
14557 hardcode_minus_L=no
14558 hardcode_shlibpath_var=unsupported
14559 inherit_rpath=no
14560 link_all_deplibs=unknown
14561 module_cmds=
14562 module_expsym_cmds=
14563 old_archive_from_new_cmds=
14564 old_archive_from_expsyms_cmds=
14565 thread_safe_flag_spec=
14566 whole_archive_flag_spec=
14567 # include_expsyms should be a list of space-separated symbols to be *always*
14568 # included in the symbol list
14569 include_expsyms=
14570 # exclude_expsyms can be an extended regexp of symbols to exclude
14571 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14572 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14573 # as well as any symbol that contains `d'.
14574 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14575 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14576 # platforms (ab)use it in PIC code, but their linkers get confused if
14577 # the symbol is explicitly referenced. Since portable code cannot
14578 # rely on this symbol name, it's probably fine to never include it in
14579 # preloaded symbol tables.
14580 # Exclude shared library initialization/finalization symbols.
14581 extract_expsyms_cmds=
14582
14583 case $host_os in
14584 cygwin* | mingw* | pw32* | cegcc*)
14585 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14586 # When not using gcc, we currently assume that we are using
14587 # Microsoft Visual C++.
14588 if test "$GCC" != yes; then
14589 with_gnu_ld=no
14590 fi
14591 ;;
14592 interix*)
14593 # we just hope/assume this is gcc and not c89 (= MSVC++)
14594 with_gnu_ld=yes
14595 ;;
14596 openbsd*)
14597 with_gnu_ld=no
14598 ;;
14599 esac
14600
14601 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014602
14603 # On some targets, GNU ld is compatible enough with the native linker
14604 # that we're better off using the native interface for both.
14605 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014606 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014607 case $host_os in
14608 aix*)
14609 # The AIX port of GNU ld has always aspired to compatibility
14610 # with the native linker. However, as the warning in the GNU ld
14611 # block says, versions before 2.19.5* couldn't really create working
14612 # shared libraries, regardless of the interface used.
14613 case `$LD -v 2>&1` in
14614 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14615 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14616 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14617 *)
14618 lt_use_gnu_ld_interface=yes
14619 ;;
14620 esac
14621 ;;
14622 *)
14623 lt_use_gnu_ld_interface=yes
14624 ;;
14625 esac
14626 fi
14627
14628 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014629 # If archive_cmds runs LD, not CC, wlarc should be empty
14630 wlarc='${wl}'
14631
14632 # Set some defaults for GNU ld with shared library support. These
14633 # are reset later if shared libraries are not supported. Putting them
14634 # here allows them to be overridden if necessary.
14635 runpath_var=LD_RUN_PATH
14636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14637 export_dynamic_flag_spec='${wl}--export-dynamic'
14638 # ancient GNU ld didn't support --whole-archive et. al.
14639 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14640 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14641 else
14642 whole_archive_flag_spec=
14643 fi
14644 supports_anon_versioning=no
14645 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014646 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014647 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14648 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14649 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14650 *\ 2.11.*) ;; # other 2.11 versions
14651 *) supports_anon_versioning=yes ;;
14652 esac
14653
14654 # See if GNU ld supports shared libraries.
14655 case $host_os in
14656 aix[3-9]*)
14657 # On AIX/PPC, the GNU linker is very broken
14658 if test "$host_cpu" != ia64; then
14659 ld_shlibs=no
14660 cat <<_LT_EOF 1>&2
14661
cristy0c60a692010-11-04 01:09:47 +000014662*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014663*** to be unable to reliably create shared libraries on AIX.
14664*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014665*** really care for shared libraries, you may want to install binutils
14666*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14667*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014668
14669_LT_EOF
14670 fi
14671 ;;
14672
14673 amigaos*)
14674 case $host_cpu in
14675 powerpc)
14676 # see comment about AmigaOS4 .so support
14677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14678 archive_expsym_cmds=''
14679 ;;
14680 m68k)
14681 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)'
14682 hardcode_libdir_flag_spec='-L$libdir'
14683 hardcode_minus_L=yes
14684 ;;
14685 esac
14686 ;;
14687
14688 beos*)
14689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14690 allow_undefined_flag=unsupported
14691 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14692 # support --undefined. This deserves some investigation. FIXME
14693 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14694 else
14695 ld_shlibs=no
14696 fi
14697 ;;
14698
14699 cygwin* | mingw* | pw32* | cegcc*)
14700 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14701 # as there is no search path for DLLs.
14702 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014703 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014704 allow_undefined_flag=unsupported
14705 always_export_symbols=no
14706 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014707 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'
14708 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 +000014709
14710 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14712 # If the export-symbols file already is a .def file (1st line
14713 # is EXPORTS), use it as is; otherwise, prepend...
14714 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14715 cp $export_symbols $output_objdir/$soname.def;
14716 else
14717 echo EXPORTS > $output_objdir/$soname.def;
14718 cat $export_symbols >> $output_objdir/$soname.def;
14719 fi~
14720 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14721 else
14722 ld_shlibs=no
14723 fi
14724 ;;
14725
cristy0c60a692010-11-04 01:09:47 +000014726 haiku*)
14727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14728 link_all_deplibs=yes
14729 ;;
14730
cristy73bd4a52010-10-05 11:24:23 +000014731 interix[3-9]*)
14732 hardcode_direct=no
14733 hardcode_shlibpath_var=no
14734 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14735 export_dynamic_flag_spec='${wl}-E'
14736 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14737 # Instead, shared libraries are loaded at an image base (0x10000000 by
14738 # default) and relocated if they conflict, which is a slow very memory
14739 # consuming and fragmenting process. To avoid this, we pick a random,
14740 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14741 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14742 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14743 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'
14744 ;;
14745
cristy0c60a692010-11-04 01:09:47 +000014746 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014747 tmp_diet=no
14748 if test "$host_os" = linux-dietlibc; then
14749 case $cc_basename in
14750 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14751 esac
14752 fi
14753 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14754 && test "$tmp_diet" = no
14755 then
cristyda16f162011-02-19 23:52:17 +000014756 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014757 tmp_sharedflag='-shared'
14758 case $cc_basename,$host_cpu in
14759 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014760 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 +000014761 tmp_addflag=' $pic_flag'
14762 ;;
cristy0c60a692010-11-04 01:09:47 +000014763 pgf77* | pgf90* | pgf95* | pgfortran*)
14764 # Portland Group f77 and f90 compilers
14765 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 +000014766 tmp_addflag=' $pic_flag -Mnomain' ;;
14767 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14768 tmp_addflag=' -i_dynamic' ;;
14769 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14770 tmp_addflag=' -i_dynamic -nofor_main' ;;
14771 ifc* | ifort*) # Intel Fortran compiler
14772 tmp_addflag=' -nofor_main' ;;
14773 lf95*) # Lahey Fortran 8.1
14774 whole_archive_flag_spec=
14775 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014776 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014777 tmp_sharedflag='-qmkshrobj'
14778 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014779 nvcc*) # Cuda Compiler Driver 2.2
14780 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'
14781 compiler_needs_object=yes
14782 ;;
cristy73bd4a52010-10-05 11:24:23 +000014783 esac
14784 case `$CC -V 2>&1 | sed 5q` in
14785 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014786 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 +000014787 compiler_needs_object=yes
14788 tmp_sharedflag='-G' ;;
14789 *Sun\ F*) # Sun Fortran 8.3
14790 tmp_sharedflag='-G' ;;
14791 esac
14792 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14793
14794 if test "x$supports_anon_versioning" = xyes; then
14795 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14796 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14797 echo "local: *; };" >> $output_objdir/$libname.ver~
14798 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14799 fi
14800
14801 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014802 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014803 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14804 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014806 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014807 if test "x$supports_anon_versioning" = xyes; then
14808 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14809 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14810 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014811 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014812 fi
14813 ;;
14814 esac
14815 else
14816 ld_shlibs=no
14817 fi
14818 ;;
14819
14820 netbsd*)
14821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14822 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14823 wlarc=
14824 else
cristyda16f162011-02-19 23:52:17 +000014825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14826 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 +000014827 fi
14828 ;;
14829
14830 solaris*)
14831 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14832 ld_shlibs=no
14833 cat <<_LT_EOF 1>&2
14834
14835*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14836*** create shared libraries on Solaris systems. Therefore, libtool
14837*** is disabling shared libraries support. We urge you to upgrade GNU
14838*** binutils to release 2.9.1 or newer. Another option is to modify
14839*** your PATH or compiler configuration so that the native linker is
14840*** used, and then restart.
14841
14842_LT_EOF
14843 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14845 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 +000014846 else
14847 ld_shlibs=no
14848 fi
14849 ;;
14850
14851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14852 case `$LD -v 2>&1` in
14853 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14854 ld_shlibs=no
14855 cat <<_LT_EOF 1>&2
14856
14857*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14858*** reliably create shared libraries on SCO systems. Therefore, libtool
14859*** is disabling shared libraries support. We urge you to upgrade GNU
14860*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14861*** your PATH or compiler configuration so that the native linker is
14862*** used, and then restart.
14863
14864_LT_EOF
14865 ;;
14866 *)
14867 # For security reasons, it is highly recommended that you always
14868 # use absolute paths for naming shared libraries, and exclude the
14869 # DT_RUNPATH tag from executables and libraries. But doing so
14870 # requires that you compile everything twice, which is a pain.
14871 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14874 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14875 else
14876 ld_shlibs=no
14877 fi
14878 ;;
14879 esac
14880 ;;
14881
14882 sunos4*)
14883 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14884 wlarc=
14885 hardcode_direct=yes
14886 hardcode_shlibpath_var=no
14887 ;;
14888
14889 *)
14890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014891 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14892 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 +000014893 else
14894 ld_shlibs=no
14895 fi
14896 ;;
14897 esac
14898
14899 if test "$ld_shlibs" = no; then
14900 runpath_var=
14901 hardcode_libdir_flag_spec=
14902 export_dynamic_flag_spec=
14903 whole_archive_flag_spec=
14904 fi
14905 else
14906 # PORTME fill in a description of your system's linker (not GNU ld)
14907 case $host_os in
14908 aix3*)
14909 allow_undefined_flag=unsupported
14910 always_export_symbols=yes
14911 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'
14912 # Note: this linker hardcodes the directories in LIBPATH if there
14913 # are no directories specified by -L.
14914 hardcode_minus_L=yes
14915 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14916 # Neither direct hardcoding nor static linking is supported with a
14917 # broken collect2.
14918 hardcode_direct=unsupported
14919 fi
14920 ;;
14921
14922 aix[4-9]*)
14923 if test "$host_cpu" = ia64; then
14924 # On IA64, the linker does run time linking by default, so we don't
14925 # have to do anything special.
14926 aix_use_runtimelinking=no
14927 exp_sym_flag='-Bexport'
14928 no_entry_flag=""
14929 else
14930 # If we're using GNU nm, then we don't want the "-C" option.
14931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014932 # Also, AIX nm treats weak defined symbols like other global
14933 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014934 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014935 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 +000014936 else
14937 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'
14938 fi
14939 aix_use_runtimelinking=no
14940
14941 # Test if we are trying to use run time linking or normal
14942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14943 # need to do runtime linking.
14944 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14945 for ld_flag in $LDFLAGS; do
14946 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14947 aix_use_runtimelinking=yes
14948 break
14949 fi
14950 done
14951 ;;
14952 esac
14953
14954 exp_sym_flag='-bexport'
14955 no_entry_flag='-bnoentry'
14956 fi
14957
14958 # When large executables or shared objects are built, AIX ld can
14959 # have problems creating the table of contents. If linking a library
14960 # or program results in "error TOC overflow" add -mminimal-toc to
14961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14963
14964 archive_cmds=''
14965 hardcode_direct=yes
14966 hardcode_direct_absolute=yes
14967 hardcode_libdir_separator=':'
14968 link_all_deplibs=yes
14969 file_list_spec='${wl}-f,'
14970
14971 if test "$GCC" = yes; then
14972 case $host_os in aix4.[012]|aix4.[012].*)
14973 # We only want to do this on AIX 4.2 and lower, the check
14974 # below for broken collect2 doesn't work under 4.3+
14975 collect2name=`${CC} -print-prog-name=collect2`
14976 if test -f "$collect2name" &&
14977 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14978 then
14979 # We have reworked collect2
14980 :
14981 else
14982 # We have old collect2
14983 hardcode_direct=unsupported
14984 # It fails to find uninstalled libraries when the uninstalled
14985 # path is not listed in the libpath. Setting hardcode_minus_L
14986 # to unsupported forces relinking
14987 hardcode_minus_L=yes
14988 hardcode_libdir_flag_spec='-L$libdir'
14989 hardcode_libdir_separator=
14990 fi
14991 ;;
14992 esac
14993 shared_flag='-shared'
14994 if test "$aix_use_runtimelinking" = yes; then
14995 shared_flag="$shared_flag "'${wl}-G'
14996 fi
14997 else
14998 # not using gcc
14999 if test "$host_cpu" = ia64; then
15000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15001 # chokes on -Wl,-G. The following line is correct:
15002 shared_flag='-G'
15003 else
15004 if test "$aix_use_runtimelinking" = yes; then
15005 shared_flag='${wl}-G'
15006 else
15007 shared_flag='${wl}-bM:SRE'
15008 fi
15009 fi
15010 fi
15011
15012 export_dynamic_flag_spec='${wl}-bexpall'
15013 # It seems that -bexpall does not export symbols beginning with
15014 # underscore (_), so it is better to generate a list of symbols to export.
15015 always_export_symbols=yes
15016 if test "$aix_use_runtimelinking" = yes; then
15017 # Warning - without using the other runtime loading flags (-brtl),
15018 # -berok will link without error, but may produce a broken library.
15019 allow_undefined_flag='-berok'
15020 # Determine the default libpath from the value encoded in an
15021 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015022 if test "${lt_cv_aix_libpath+set}" = set; then
15023 aix_libpath=$lt_cv_aix_libpath
15024else
15025 if ${lt_cv_aix_libpath_+:} false; then :
15026 $as_echo_n "(cached) " >&6
15027else
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015029/* end confdefs.h. */
15030
15031int
15032main ()
15033{
15034
15035 ;
15036 return 0;
15037}
15038_ACEOF
15039if ac_fn_c_try_link "$LINENO"; then :
15040
cristyda16f162011-02-19 23:52:17 +000015041 lt_aix_libpath_sed='
15042 /Import File Strings/,/^$/ {
15043 /^0/ {
15044 s/^0 *\([^ ]*\) *$/\1/
15045 p
15046 }
15047 }'
15048 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15049 # Check for a 64-bit object if we didn't find anything.
15050 if test -z "$lt_cv_aix_libpath_"; then
15051 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15052 fi
cristy73bd4a52010-10-05 11:24:23 +000015053fi
15054rm -f core conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015056 if test -z "$lt_cv_aix_libpath_"; then
15057 lt_cv_aix_libpath_="/usr/lib:/lib"
15058 fi
15059
15060fi
15061
15062 aix_libpath=$lt_cv_aix_libpath_
15063fi
cristy73bd4a52010-10-05 11:24:23 +000015064
15065 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015066 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 +000015067 else
15068 if test "$host_cpu" = ia64; then
15069 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15070 allow_undefined_flag="-z nodefs"
15071 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"
15072 else
15073 # Determine the default libpath from the value encoded in an
15074 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015075 if test "${lt_cv_aix_libpath+set}" = set; then
15076 aix_libpath=$lt_cv_aix_libpath
15077else
15078 if ${lt_cv_aix_libpath_+:} false; then :
15079 $as_echo_n "(cached) " >&6
15080else
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015082/* end confdefs.h. */
15083
15084int
15085main ()
15086{
15087
15088 ;
15089 return 0;
15090}
15091_ACEOF
15092if ac_fn_c_try_link "$LINENO"; then :
15093
cristyda16f162011-02-19 23:52:17 +000015094 lt_aix_libpath_sed='
15095 /Import File Strings/,/^$/ {
15096 /^0/ {
15097 s/^0 *\([^ ]*\) *$/\1/
15098 p
15099 }
15100 }'
15101 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15102 # Check for a 64-bit object if we didn't find anything.
15103 if test -z "$lt_cv_aix_libpath_"; then
15104 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15105 fi
cristy73bd4a52010-10-05 11:24:23 +000015106fi
15107rm -f core conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015109 if test -z "$lt_cv_aix_libpath_"; then
15110 lt_cv_aix_libpath_="/usr/lib:/lib"
15111 fi
15112
15113fi
15114
15115 aix_libpath=$lt_cv_aix_libpath_
15116fi
cristy73bd4a52010-10-05 11:24:23 +000015117
15118 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15119 # Warning - without using the other run time loading flags,
15120 # -berok will link without error, but may produce a broken library.
15121 no_undefined_flag=' ${wl}-bernotok'
15122 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015123 if test "$with_gnu_ld" = yes; then
15124 # We only use this code for GNU lds that support --whole-archive.
15125 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15126 else
15127 # Exported symbols can be pulled into shared objects from archives
15128 whole_archive_flag_spec='$convenience'
15129 fi
cristy73bd4a52010-10-05 11:24:23 +000015130 archive_cmds_need_lc=yes
15131 # This is similar to how AIX traditionally builds its shared libraries.
15132 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'
15133 fi
15134 fi
15135 ;;
15136
15137 amigaos*)
15138 case $host_cpu in
15139 powerpc)
15140 # see comment about AmigaOS4 .so support
15141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15142 archive_expsym_cmds=''
15143 ;;
15144 m68k)
15145 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)'
15146 hardcode_libdir_flag_spec='-L$libdir'
15147 hardcode_minus_L=yes
15148 ;;
15149 esac
15150 ;;
15151
15152 bsdi[45]*)
15153 export_dynamic_flag_spec=-rdynamic
15154 ;;
15155
15156 cygwin* | mingw* | pw32* | cegcc*)
15157 # When not using gcc, we currently assume that we are using
15158 # Microsoft Visual C++.
15159 # hardcode_libdir_flag_spec is actually meaningless, as there is
15160 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015161 case $cc_basename in
15162 cl*)
15163 # Native MSVC
15164 hardcode_libdir_flag_spec=' '
15165 allow_undefined_flag=unsupported
15166 always_export_symbols=yes
15167 file_list_spec='@'
15168 # Tell ltmain to make .lib files, not .a files.
15169 libext=lib
15170 # Tell ltmain to make .dll files, not .so files.
15171 shrext_cmds=".dll"
15172 # FIXME: Setting linknames here is a bad hack.
15173 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15174 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15175 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15176 else
15177 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15178 fi~
15179 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15180 linknames='
15181 # The linker will not automatically build a static lib if we build a DLL.
15182 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15183 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015184 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15186 # Don't use ranlib
15187 old_postinstall_cmds='chmod 644 $oldlib'
15188 postlink_cmds='lt_outputfile="@OUTPUT@"~
15189 lt_tool_outputfile="@TOOL_OUTPUT@"~
15190 case $lt_outputfile in
15191 *.exe|*.EXE) ;;
15192 *)
15193 lt_outputfile="$lt_outputfile.exe"
15194 lt_tool_outputfile="$lt_tool_outputfile.exe"
15195 ;;
15196 esac~
15197 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15198 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15199 $RM "$lt_outputfile.manifest";
15200 fi'
15201 ;;
15202 *)
15203 # Assume MSVC wrapper
15204 hardcode_libdir_flag_spec=' '
15205 allow_undefined_flag=unsupported
15206 # Tell ltmain to make .lib files, not .a files.
15207 libext=lib
15208 # Tell ltmain to make .dll files, not .so files.
15209 shrext_cmds=".dll"
15210 # FIXME: Setting linknames here is a bad hack.
15211 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15212 # The linker will automatically build a .lib file if we build a DLL.
15213 old_archive_from_new_cmds='true'
15214 # FIXME: Should let the user specify the lib program.
15215 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15216 enable_shared_with_static_runtimes=yes
15217 ;;
15218 esac
cristy73bd4a52010-10-05 11:24:23 +000015219 ;;
15220
15221 darwin* | rhapsody*)
15222
15223
15224 archive_cmds_need_lc=no
15225 hardcode_direct=no
15226 hardcode_automatic=yes
15227 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015228 if test "$lt_cv_ld_force_load" = "yes"; then
15229 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 +000015230
cristy0c60a692010-11-04 01:09:47 +000015231 else
15232 whole_archive_flag_spec=''
15233 fi
cristy73bd4a52010-10-05 11:24:23 +000015234 link_all_deplibs=yes
15235 allow_undefined_flag="$_lt_dar_allow_undefined"
15236 case $cc_basename in
15237 ifort*) _lt_dar_can_shared=yes ;;
15238 *) _lt_dar_can_shared=$GCC ;;
15239 esac
15240 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015241 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015242 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15243 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15244 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}"
15245 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}"
15246
15247 else
15248 ld_shlibs=no
15249 fi
15250
15251 ;;
15252
15253 dgux*)
15254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15255 hardcode_libdir_flag_spec='-L$libdir'
15256 hardcode_shlibpath_var=no
15257 ;;
15258
cristy73bd4a52010-10-05 11:24:23 +000015259 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15260 # support. Future versions do this automatically, but an explicit c++rt0.o
15261 # does not break anything, and helps significantly (at the cost of a little
15262 # extra space).
15263 freebsd2.2*)
15264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15265 hardcode_libdir_flag_spec='-R$libdir'
15266 hardcode_direct=yes
15267 hardcode_shlibpath_var=no
15268 ;;
15269
15270 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015271 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15273 hardcode_direct=yes
15274 hardcode_minus_L=yes
15275 hardcode_shlibpath_var=no
15276 ;;
15277
15278 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15279 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015281 hardcode_libdir_flag_spec='-R$libdir'
15282 hardcode_direct=yes
15283 hardcode_shlibpath_var=no
15284 ;;
15285
15286 hpux9*)
15287 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015288 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 +000015289 else
15290 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'
15291 fi
15292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15293 hardcode_libdir_separator=:
15294 hardcode_direct=yes
15295
15296 # hardcode_minus_L: Not really in the search PATH,
15297 # but as the default location of the library.
15298 hardcode_minus_L=yes
15299 export_dynamic_flag_spec='${wl}-E'
15300 ;;
15301
15302 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015303 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015304 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 +000015305 else
15306 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15307 fi
15308 if test "$with_gnu_ld" = no; then
15309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015310 hardcode_libdir_separator=:
15311 hardcode_direct=yes
15312 hardcode_direct_absolute=yes
15313 export_dynamic_flag_spec='${wl}-E'
15314 # hardcode_minus_L: Not really in the search PATH,
15315 # but as the default location of the library.
15316 hardcode_minus_L=yes
15317 fi
15318 ;;
15319
15320 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015321 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015322 case $host_cpu in
15323 hppa*64*)
15324 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15325 ;;
15326 ia64*)
cristyda16f162011-02-19 23:52:17 +000015327 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015328 ;;
15329 *)
cristyda16f162011-02-19 23:52:17 +000015330 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 +000015331 ;;
15332 esac
15333 else
15334 case $host_cpu in
15335 hppa*64*)
15336 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15337 ;;
15338 ia64*)
15339 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15340 ;;
15341 *)
cristy0c60a692010-11-04 01:09:47 +000015342
15343 # Older versions of the 11.00 compiler do not understand -b yet
15344 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15346$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015347if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015348 $as_echo_n "(cached) " >&6
15349else
15350 lt_cv_prog_compiler__b=no
15351 save_LDFLAGS="$LDFLAGS"
15352 LDFLAGS="$LDFLAGS -b"
15353 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15355 # The linker can only warn and ignore the option if not recognized
15356 # So say no if there are warnings
15357 if test -s conftest.err; then
15358 # Append any errors to the config.log.
15359 cat conftest.err 1>&5
15360 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15362 if diff conftest.exp conftest.er2 >/dev/null; then
15363 lt_cv_prog_compiler__b=yes
15364 fi
15365 else
15366 lt_cv_prog_compiler__b=yes
15367 fi
15368 fi
15369 $RM -r conftest*
15370 LDFLAGS="$save_LDFLAGS"
15371
15372fi
15373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15374$as_echo "$lt_cv_prog_compiler__b" >&6; }
15375
15376if test x"$lt_cv_prog_compiler__b" = xyes; then
15377 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15378else
15379 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15380fi
15381
cristy73bd4a52010-10-05 11:24:23 +000015382 ;;
15383 esac
15384 fi
15385 if test "$with_gnu_ld" = no; then
15386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15387 hardcode_libdir_separator=:
15388
15389 case $host_cpu in
15390 hppa*64*|ia64*)
15391 hardcode_direct=no
15392 hardcode_shlibpath_var=no
15393 ;;
15394 *)
15395 hardcode_direct=yes
15396 hardcode_direct_absolute=yes
15397 export_dynamic_flag_spec='${wl}-E'
15398
15399 # hardcode_minus_L: Not really in the search PATH,
15400 # but as the default location of the library.
15401 hardcode_minus_L=yes
15402 ;;
15403 esac
15404 fi
15405 ;;
15406
15407 irix5* | irix6* | nonstopux*)
15408 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015409 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 +000015410 # Try to use the -exported_symbol ld option, if it does not
15411 # work, assume that -exports_file does not work either and
15412 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015413 # This should be the same for all languages, so no per-tag cache variable.
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15415$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15416if ${lt_cv_irix_exported_symbol+:} false; then :
15417 $as_echo_n "(cached) " >&6
15418else
15419 save_LDFLAGS="$LDFLAGS"
15420 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015422/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015423int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015424_ACEOF
15425if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015426 lt_cv_irix_exported_symbol=yes
15427else
15428 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015429fi
15430rm -f core conftest.err conftest.$ac_objext \
15431 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015432 LDFLAGS="$save_LDFLAGS"
15433fi
15434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15435$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15436 if test "$lt_cv_irix_exported_symbol" = yes; then
15437 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'
15438 fi
cristy73bd4a52010-10-05 11:24:23 +000015439 else
cristy0c60a692010-11-04 01:09:47 +000015440 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'
15441 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 +000015442 fi
15443 archive_cmds_need_lc='no'
15444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15445 hardcode_libdir_separator=:
15446 inherit_rpath=yes
15447 link_all_deplibs=yes
15448 ;;
15449
15450 netbsd*)
15451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15453 else
15454 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15455 fi
15456 hardcode_libdir_flag_spec='-R$libdir'
15457 hardcode_direct=yes
15458 hardcode_shlibpath_var=no
15459 ;;
15460
15461 newsos6)
15462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15463 hardcode_direct=yes
15464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15465 hardcode_libdir_separator=:
15466 hardcode_shlibpath_var=no
15467 ;;
15468
15469 *nto* | *qnx*)
15470 ;;
15471
15472 openbsd*)
15473 if test -f /usr/libexec/ld.so; then
15474 hardcode_direct=yes
15475 hardcode_shlibpath_var=no
15476 hardcode_direct_absolute=yes
15477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15479 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15481 export_dynamic_flag_spec='${wl}-E'
15482 else
15483 case $host_os in
15484 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15486 hardcode_libdir_flag_spec='-R$libdir'
15487 ;;
15488 *)
15489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15490 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15491 ;;
15492 esac
15493 fi
15494 else
15495 ld_shlibs=no
15496 fi
15497 ;;
15498
15499 os2*)
15500 hardcode_libdir_flag_spec='-L$libdir'
15501 hardcode_minus_L=yes
15502 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015503 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 +000015504 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15505 ;;
15506
15507 osf3*)
15508 if test "$GCC" = yes; then
15509 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015510 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 +000015511 else
15512 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015513 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 +000015514 fi
15515 archive_cmds_need_lc='no'
15516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15517 hardcode_libdir_separator=:
15518 ;;
15519
15520 osf4* | osf5*) # as osf3* with the addition of -msym flag
15521 if test "$GCC" = yes; then
15522 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015523 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 +000015524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15525 else
15526 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015527 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 +000015528 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 +000015529 $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 +000015530
15531 # Both c and cxx compiler support -rpath directly
15532 hardcode_libdir_flag_spec='-rpath $libdir'
15533 fi
15534 archive_cmds_need_lc='no'
15535 hardcode_libdir_separator=:
15536 ;;
15537
15538 solaris*)
15539 no_undefined_flag=' -z defs'
15540 if test "$GCC" = yes; then
15541 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015542 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 +000015543 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 +000015544 $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 +000015545 else
15546 case `$CC -V 2>&1` in
15547 *"Compilers 5.0"*)
15548 wlarc=''
15549 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15550 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15551 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15552 ;;
15553 *)
15554 wlarc='${wl}'
15555 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15557 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15558 ;;
15559 esac
15560 fi
15561 hardcode_libdir_flag_spec='-R$libdir'
15562 hardcode_shlibpath_var=no
15563 case $host_os in
15564 solaris2.[0-5] | solaris2.[0-5].*) ;;
15565 *)
15566 # The compiler driver will combine and reorder linker options,
15567 # but understands `-z linker_flag'. GCC discards it without `$wl',
15568 # but is careful enough not to reorder.
15569 # Supported since Solaris 2.6 (maybe 2.5.1?)
15570 if test "$GCC" = yes; then
15571 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15572 else
15573 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15574 fi
15575 ;;
15576 esac
15577 link_all_deplibs=yes
15578 ;;
15579
15580 sunos4*)
15581 if test "x$host_vendor" = xsequent; then
15582 # Use $CC to link under sequent, because it throws in some extra .o
15583 # files that make .init and .fini sections work.
15584 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15585 else
15586 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15587 fi
15588 hardcode_libdir_flag_spec='-L$libdir'
15589 hardcode_direct=yes
15590 hardcode_minus_L=yes
15591 hardcode_shlibpath_var=no
15592 ;;
15593
15594 sysv4)
15595 case $host_vendor in
15596 sni)
15597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15598 hardcode_direct=yes # is this really true???
15599 ;;
15600 siemens)
15601 ## LD is ld it makes a PLAMLIB
15602 ## CC just makes a GrossModule.
15603 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15604 reload_cmds='$CC -r -o $output$reload_objs'
15605 hardcode_direct=no
15606 ;;
15607 motorola)
15608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15609 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15610 ;;
15611 esac
15612 runpath_var='LD_RUN_PATH'
15613 hardcode_shlibpath_var=no
15614 ;;
15615
15616 sysv4.3*)
15617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15618 hardcode_shlibpath_var=no
15619 export_dynamic_flag_spec='-Bexport'
15620 ;;
15621
15622 sysv4*MP*)
15623 if test -d /usr/nec; then
15624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15625 hardcode_shlibpath_var=no
15626 runpath_var=LD_RUN_PATH
15627 hardcode_runpath_var=yes
15628 ld_shlibs=yes
15629 fi
15630 ;;
15631
15632 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15633 no_undefined_flag='${wl}-z,text'
15634 archive_cmds_need_lc=no
15635 hardcode_shlibpath_var=no
15636 runpath_var='LD_RUN_PATH'
15637
15638 if test "$GCC" = yes; then
15639 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15640 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15641 else
15642 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15643 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15644 fi
15645 ;;
15646
15647 sysv5* | sco3.2v5* | sco5v6*)
15648 # Note: We can NOT use -z defs as we might desire, because we do not
15649 # link with -lc, and that would cause any symbols used from libc to
15650 # always be unresolved, which means just about no library would
15651 # ever link correctly. If we're not using GNU ld we use -z text
15652 # though, which does catch some bad symbols but isn't as heavy-handed
15653 # as -z defs.
15654 no_undefined_flag='${wl}-z,text'
15655 allow_undefined_flag='${wl}-z,nodefs'
15656 archive_cmds_need_lc=no
15657 hardcode_shlibpath_var=no
15658 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15659 hardcode_libdir_separator=':'
15660 link_all_deplibs=yes
15661 export_dynamic_flag_spec='${wl}-Bexport'
15662 runpath_var='LD_RUN_PATH'
15663
15664 if test "$GCC" = yes; then
15665 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15666 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15667 else
15668 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15669 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15670 fi
15671 ;;
15672
15673 uts4*)
15674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15675 hardcode_libdir_flag_spec='-L$libdir'
15676 hardcode_shlibpath_var=no
15677 ;;
15678
15679 *)
15680 ld_shlibs=no
15681 ;;
15682 esac
15683
15684 if test x$host_vendor = xsni; then
15685 case $host in
15686 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15687 export_dynamic_flag_spec='${wl}-Blargedynsym'
15688 ;;
15689 esac
15690 fi
15691 fi
15692
15693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15694$as_echo "$ld_shlibs" >&6; }
15695test "$ld_shlibs" = no && can_build_shared=no
15696
15697with_gnu_ld=$with_gnu_ld
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713#
15714# Do we need to explicitly link libc?
15715#
15716case "x$archive_cmds_need_lc" in
15717x|xyes)
15718 # Assume -lc should be added
15719 archive_cmds_need_lc=yes
15720
15721 if test "$enable_shared" = yes && test "$GCC" = yes; then
15722 case $archive_cmds in
15723 *'~'*)
15724 # FIXME: we may have to deal with multi-command sequences.
15725 ;;
15726 '$CC '*)
15727 # Test whether the compiler implicitly links with -lc since on some
15728 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15729 # to ld, don't add -lc before -lgcc.
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15731$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015732if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015733 $as_echo_n "(cached) " >&6
15734else
15735 $RM conftest*
15736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015737
cristy0c60a692010-11-04 01:09:47 +000015738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015739 (eval $ac_compile) 2>&5
15740 ac_status=$?
15741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15742 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015743 soname=conftest
15744 lib=conftest
15745 libobjs=conftest.$ac_objext
15746 deplibs=
15747 wl=$lt_prog_compiler_wl
15748 pic_flag=$lt_prog_compiler_pic
15749 compiler_flags=-v
15750 linker_flags=-v
15751 verstring=
15752 output_objdir=.
15753 libname=conftest
15754 lt_save_allow_undefined_flag=$allow_undefined_flag
15755 allow_undefined_flag=
15756 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 +000015757 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15758 ac_status=$?
15759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15760 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015761 then
15762 lt_cv_archive_cmds_need_lc=no
15763 else
15764 lt_cv_archive_cmds_need_lc=yes
15765 fi
15766 allow_undefined_flag=$lt_save_allow_undefined_flag
15767 else
15768 cat conftest.err 1>&5
15769 fi
15770 $RM conftest*
15771
15772fi
15773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15774$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15775 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015776 ;;
15777 esac
15778 fi
15779 ;;
15780esac
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
cristy73bd4a52010-10-05 11:24:23 +000015933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15934$as_echo_n "checking dynamic linker characteristics... " >&6; }
15935
15936if test "$GCC" = yes; then
15937 case $host_os in
15938 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15939 *) lt_awk_arg="/^libraries:/" ;;
15940 esac
cristy0c60a692010-11-04 01:09:47 +000015941 case $host_os in
15942 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15943 *) lt_sed_strip_eq="s,=/,/,g" ;;
15944 esac
15945 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15946 case $lt_search_path_spec in
15947 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015948 # if the path contains ";" then we assume it to be the separator
15949 # otherwise default to the standard path separator (i.e. ":") - it is
15950 # assumed that no part of a normal pathname contains ";" but that should
15951 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015952 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15953 ;;
15954 *)
15955 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15956 ;;
15957 esac
cristy73bd4a52010-10-05 11:24:23 +000015958 # Ok, now we have the path, separated by spaces, we can step through it
15959 # and add multilib dir if necessary.
15960 lt_tmp_lt_search_path_spec=
15961 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15962 for lt_sys_path in $lt_search_path_spec; do
15963 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15964 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15965 else
15966 test -d "$lt_sys_path" && \
15967 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15968 fi
15969 done
cristy0c60a692010-11-04 01:09:47 +000015970 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015971BEGIN {RS=" "; FS="/|\n";} {
15972 lt_foo="";
15973 lt_count=0;
15974 for (lt_i = NF; lt_i > 0; lt_i--) {
15975 if ($lt_i != "" && $lt_i != ".") {
15976 if ($lt_i == "..") {
15977 lt_count++;
15978 } else {
15979 if (lt_count == 0) {
15980 lt_foo="/" $lt_i lt_foo;
15981 } else {
15982 lt_count--;
15983 }
15984 }
15985 }
15986 }
15987 if (lt_foo != "") { lt_freq[lt_foo]++; }
15988 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15989}'`
cristy0c60a692010-11-04 01:09:47 +000015990 # AWK program above erroneously prepends '/' to C:/dos/paths
15991 # for these hosts.
15992 case $host_os in
15993 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15994 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15995 esac
15996 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015997else
15998 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15999fi
16000library_names_spec=
16001libname_spec='lib$name'
16002soname_spec=
16003shrext_cmds=".so"
16004postinstall_cmds=
16005postuninstall_cmds=
16006finish_cmds=
16007finish_eval=
16008shlibpath_var=
16009shlibpath_overrides_runpath=unknown
16010version_type=none
16011dynamic_linker="$host_os ld.so"
16012sys_lib_dlsearch_path_spec="/lib /usr/lib"
16013need_lib_prefix=unknown
16014hardcode_into_libs=no
16015
16016# when you set need_version to no, make sure it does not cause -set_version
16017# flags to be left without arguments
16018need_version=unknown
16019
16020case $host_os in
16021aix3*)
cristy99bd5232011-12-07 14:38:20 +000016022 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016023 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16024 shlibpath_var=LIBPATH
16025
16026 # AIX 3 has no versioning support, so we append a major version to the name.
16027 soname_spec='${libname}${release}${shared_ext}$major'
16028 ;;
16029
16030aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016031 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016032 need_lib_prefix=no
16033 need_version=no
16034 hardcode_into_libs=yes
16035 if test "$host_cpu" = ia64; then
16036 # AIX 5 supports IA64
16037 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16038 shlibpath_var=LD_LIBRARY_PATH
16039 else
16040 # With GCC up to 2.95.x, collect2 would create an import file
16041 # for dependence libraries. The import file would start with
16042 # the line `#! .'. This would cause the generated library to
16043 # depend on `.', always an invalid library. This was fixed in
16044 # development snapshots of GCC prior to 3.0.
16045 case $host_os in
16046 aix4 | aix4.[01] | aix4.[01].*)
16047 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16048 echo ' yes '
16049 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16050 :
16051 else
16052 can_build_shared=no
16053 fi
16054 ;;
16055 esac
16056 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16057 # soname into executable. Probably we can add versioning support to
16058 # collect2, so additional links can be useful in future.
16059 if test "$aix_use_runtimelinking" = yes; then
16060 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16061 # instead of lib<name>.a to let people know that these are not
16062 # typical AIX shared libraries.
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064 else
16065 # We preserve .a as extension for shared libraries through AIX4.2
16066 # and later when we are not doing run time linking.
16067 library_names_spec='${libname}${release}.a $libname.a'
16068 soname_spec='${libname}${release}${shared_ext}$major'
16069 fi
16070 shlibpath_var=LIBPATH
16071 fi
16072 ;;
16073
16074amigaos*)
16075 case $host_cpu in
16076 powerpc)
16077 # Since July 2007 AmigaOS4 officially supports .so libraries.
16078 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080 ;;
16081 m68k)
16082 library_names_spec='$libname.ixlibrary $libname.a'
16083 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016084 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 +000016085 ;;
16086 esac
16087 ;;
16088
16089beos*)
16090 library_names_spec='${libname}${shared_ext}'
16091 dynamic_linker="$host_os ld.so"
16092 shlibpath_var=LIBRARY_PATH
16093 ;;
16094
16095bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016096 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016097 need_version=no
16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16099 soname_spec='${libname}${release}${shared_ext}$major'
16100 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16101 shlibpath_var=LD_LIBRARY_PATH
16102 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16103 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16104 # the default ld.so.conf also contains /usr/contrib/lib and
16105 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16106 # libtool to hard-code these into programs
16107 ;;
16108
16109cygwin* | mingw* | pw32* | cegcc*)
16110 version_type=windows
16111 shrext_cmds=".dll"
16112 need_version=no
16113 need_lib_prefix=no
16114
cristyda16f162011-02-19 23:52:17 +000016115 case $GCC,$cc_basename in
16116 yes,*)
16117 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016118 library_names_spec='$libname.dll.a'
16119 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16120 postinstall_cmds='base_file=`basename \${file}`~
16121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16122 dldir=$destdir/`dirname \$dlpath`~
16123 test -d \$dldir || mkdir -p \$dldir~
16124 $install_prog $dir/$dlname \$dldir/$dlname~
16125 chmod a+x \$dldir/$dlname~
16126 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16127 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16128 fi'
16129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16130 dlpath=$dir/\$dldll~
16131 $RM \$dlpath'
16132 shlibpath_overrides_runpath=yes
16133
16134 case $host_os in
16135 cygwin*)
16136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16137 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016138
16139 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016140 ;;
16141 mingw* | cegcc*)
16142 # MinGW DLLs use traditional 'lib' prefix
16143 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016144 ;;
16145 pw32*)
16146 # pw32 DLLs use 'pw' prefix rather than 'lib'
16147 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16148 ;;
16149 esac
cristyda16f162011-02-19 23:52:17 +000016150 dynamic_linker='Win32 ld.exe'
16151 ;;
16152
16153 *,cl*)
16154 # Native MSVC
16155 libname_spec='$name'
16156 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16157 library_names_spec='${libname}.dll.lib'
16158
16159 case $build_os in
16160 mingw*)
16161 sys_lib_search_path_spec=
16162 lt_save_ifs=$IFS
16163 IFS=';'
16164 for lt_path in $LIB
16165 do
16166 IFS=$lt_save_ifs
16167 # Let DOS variable expansion print the short 8.3 style file name.
16168 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16169 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16170 done
16171 IFS=$lt_save_ifs
16172 # Convert to MSYS style.
16173 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16174 ;;
16175 cygwin*)
16176 # Convert to unix form, then to dos form, then back to unix form
16177 # but this time dos style (no spaces!) so that the unix form looks
16178 # like /cygdrive/c/PROGRA~1:/cygdr...
16179 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16180 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16181 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16182 ;;
16183 *)
16184 sys_lib_search_path_spec="$LIB"
16185 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16186 # It is most probably a Windows format PATH.
16187 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16188 else
16189 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16190 fi
16191 # FIXME: find the short name or the path components, as spaces are
16192 # common. (e.g. "Program Files" -> "PROGRA~1")
16193 ;;
16194 esac
16195
16196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16197 postinstall_cmds='base_file=`basename \${file}`~
16198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16199 dldir=$destdir/`dirname \$dlpath`~
16200 test -d \$dldir || mkdir -p \$dldir~
16201 $install_prog $dir/$dlname \$dldir/$dlname'
16202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16203 dlpath=$dir/\$dldll~
16204 $RM \$dlpath'
16205 shlibpath_overrides_runpath=yes
16206 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016207 ;;
16208
16209 *)
cristyda16f162011-02-19 23:52:17 +000016210 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016212 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016213 ;;
16214 esac
cristy73bd4a52010-10-05 11:24:23 +000016215 # FIXME: first we should search . and the directory the executable is in
16216 shlibpath_var=PATH
16217 ;;
16218
16219darwin* | rhapsody*)
16220 dynamic_linker="$host_os dyld"
16221 version_type=darwin
16222 need_lib_prefix=no
16223 need_version=no
16224 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16225 soname_spec='${libname}${release}${major}$shared_ext'
16226 shlibpath_overrides_runpath=yes
16227 shlibpath_var=DYLD_LIBRARY_PATH
16228 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16229
16230 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16232 ;;
16233
16234dgux*)
cristy99bd5232011-12-07 14:38:20 +000016235 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016236 need_lib_prefix=no
16237 need_version=no
16238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16239 soname_spec='${libname}${release}${shared_ext}$major'
16240 shlibpath_var=LD_LIBRARY_PATH
16241 ;;
16242
cristy73bd4a52010-10-05 11:24:23 +000016243freebsd* | dragonfly*)
16244 # DragonFly does not have aout. When/if they implement a new
16245 # versioning mechanism, adjust this.
16246 if test -x /usr/bin/objformat; then
16247 objformat=`/usr/bin/objformat`
16248 else
16249 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016250 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016251 *) objformat=elf ;;
16252 esac
16253 fi
16254 version_type=freebsd-$objformat
16255 case $version_type in
16256 freebsd-elf*)
16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16258 need_version=no
16259 need_lib_prefix=no
16260 ;;
16261 freebsd-*)
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16263 need_version=yes
16264 ;;
16265 esac
16266 shlibpath_var=LD_LIBRARY_PATH
16267 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016268 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016269 shlibpath_overrides_runpath=yes
16270 ;;
16271 freebsd3.[01]* | freebsdelf3.[01]*)
16272 shlibpath_overrides_runpath=yes
16273 hardcode_into_libs=yes
16274 ;;
16275 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16276 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16277 shlibpath_overrides_runpath=no
16278 hardcode_into_libs=yes
16279 ;;
16280 *) # from 4.6 on, and DragonFly
16281 shlibpath_overrides_runpath=yes
16282 hardcode_into_libs=yes
16283 ;;
16284 esac
16285 ;;
16286
16287gnu*)
cristy99bd5232011-12-07 14:38:20 +000016288 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016289 need_lib_prefix=no
16290 need_version=no
16291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16292 soname_spec='${libname}${release}${shared_ext}$major'
16293 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016294 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016295 hardcode_into_libs=yes
16296 ;;
16297
cristy0c60a692010-11-04 01:09:47 +000016298haiku*)
cristy99bd5232011-12-07 14:38:20 +000016299 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016300 need_lib_prefix=no
16301 need_version=no
16302 dynamic_linker="$host_os runtime_loader"
16303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16304 soname_spec='${libname}${release}${shared_ext}$major'
16305 shlibpath_var=LIBRARY_PATH
16306 shlibpath_overrides_runpath=yes
16307 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16308 hardcode_into_libs=yes
16309 ;;
16310
cristy73bd4a52010-10-05 11:24:23 +000016311hpux9* | hpux10* | hpux11*)
16312 # Give a soname corresponding to the major version so that dld.sl refuses to
16313 # link against other versions.
16314 version_type=sunos
16315 need_lib_prefix=no
16316 need_version=no
16317 case $host_cpu in
16318 ia64*)
16319 shrext_cmds='.so'
16320 hardcode_into_libs=yes
16321 dynamic_linker="$host_os dld.so"
16322 shlibpath_var=LD_LIBRARY_PATH
16323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325 soname_spec='${libname}${release}${shared_ext}$major'
16326 if test "X$HPUX_IA64_MODE" = X32; then
16327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16328 else
16329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16330 fi
16331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16332 ;;
16333 hppa*64*)
16334 shrext_cmds='.sl'
16335 hardcode_into_libs=yes
16336 dynamic_linker="$host_os dld.sl"
16337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16340 soname_spec='${libname}${release}${shared_ext}$major'
16341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16343 ;;
16344 *)
16345 shrext_cmds='.sl'
16346 dynamic_linker="$host_os dld.sl"
16347 shlibpath_var=SHLIB_PATH
16348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16350 soname_spec='${libname}${release}${shared_ext}$major'
16351 ;;
16352 esac
cristy0c60a692010-11-04 01:09:47 +000016353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016354 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016355 # or fails outright, so override atomically:
16356 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016357 ;;
16358
16359interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016360 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016361 need_lib_prefix=no
16362 need_version=no
16363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16364 soname_spec='${libname}${release}${shared_ext}$major'
16365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16366 shlibpath_var=LD_LIBRARY_PATH
16367 shlibpath_overrides_runpath=no
16368 hardcode_into_libs=yes
16369 ;;
16370
16371irix5* | irix6* | nonstopux*)
16372 case $host_os in
16373 nonstopux*) version_type=nonstopux ;;
16374 *)
16375 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016376 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016377 else
16378 version_type=irix
16379 fi ;;
16380 esac
16381 need_lib_prefix=no
16382 need_version=no
16383 soname_spec='${libname}${release}${shared_ext}$major'
16384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16385 case $host_os in
16386 irix5* | nonstopux*)
16387 libsuff= shlibsuff=
16388 ;;
16389 *)
16390 case $LD in # libtool.m4 will add one of these switches to LD
16391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16392 libsuff= shlibsuff= libmagic=32-bit;;
16393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16394 libsuff=32 shlibsuff=N32 libmagic=N32;;
16395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16396 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16397 *) libsuff= shlibsuff= libmagic=never-match;;
16398 esac
16399 ;;
16400 esac
16401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16402 shlibpath_overrides_runpath=no
16403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16405 hardcode_into_libs=yes
16406 ;;
16407
16408# No shared lib support for Linux oldld, aout, or coff.
16409linux*oldld* | linux*aout* | linux*coff*)
16410 dynamic_linker=no
16411 ;;
16412
cristy99bd5232011-12-07 14:38:20 +000016413# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016414linux* | k*bsd*-gnu | kopensolaris*-gnu)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16421 shlibpath_var=LD_LIBRARY_PATH
16422 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016423
cristy73bd4a52010-10-05 11:24:23 +000016424 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016425 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016426 $as_echo_n "(cached) " >&6
16427else
16428 lt_cv_shlibpath_overrides_runpath=no
16429 save_LDFLAGS=$LDFLAGS
16430 save_libdir=$libdir
16431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016434/* end confdefs.h. */
16435
16436int
16437main ()
16438{
16439
16440 ;
16441 return 0;
16442}
16443_ACEOF
16444if ac_fn_c_try_link "$LINENO"; then :
16445 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016446 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016447fi
16448fi
16449rm -f core conftest.err conftest.$ac_objext \
16450 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016451 LDFLAGS=$save_LDFLAGS
16452 libdir=$save_libdir
16453
16454fi
16455
16456 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016457
16458 # This implies no fast_install, which is unacceptable.
16459 # Some rework will be needed to allow for fast_install
16460 # before this can be enabled.
16461 hardcode_into_libs=yes
16462
16463 # Add ABI-specific directories to the system library path.
16464 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16465
16466 # Append ld.so.conf contents to the search path
16467 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016468 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 +000016469 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016470
cristy73bd4a52010-10-05 11:24:23 +000016471 fi
16472
16473 # We used to test for /lib/ld.so.1 and disable shared libraries on
16474 # powerpc, because MkLinux only supported shared libraries with the
16475 # GNU dynamic linker. Since this was broken with cross compilers,
16476 # most powerpc-linux boxes support dynamic linking these days and
16477 # people can always --disable-shared, the test was removed, and we
16478 # assume the GNU/Linux dynamic linker is in use.
16479 dynamic_linker='GNU/Linux ld.so'
16480 ;;
16481
16482netbsd*)
16483 version_type=sunos
16484 need_lib_prefix=no
16485 need_version=no
16486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16489 dynamic_linker='NetBSD (a.out) ld.so'
16490 else
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16492 soname_spec='${libname}${release}${shared_ext}$major'
16493 dynamic_linker='NetBSD ld.elf_so'
16494 fi
16495 shlibpath_var=LD_LIBRARY_PATH
16496 shlibpath_overrides_runpath=yes
16497 hardcode_into_libs=yes
16498 ;;
16499
16500newsos6)
cristy99bd5232011-12-07 14:38:20 +000016501 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503 shlibpath_var=LD_LIBRARY_PATH
16504 shlibpath_overrides_runpath=yes
16505 ;;
16506
16507*nto* | *qnx*)
16508 version_type=qnx
16509 need_lib_prefix=no
16510 need_version=no
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 shlibpath_overrides_runpath=no
16515 hardcode_into_libs=yes
16516 dynamic_linker='ldqnx.so'
16517 ;;
16518
16519openbsd*)
16520 version_type=sunos
16521 sys_lib_dlsearch_path_spec="/usr/lib"
16522 need_lib_prefix=no
16523 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16524 case $host_os in
16525 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16526 *) need_version=no ;;
16527 esac
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16532 case $host_os in
16533 openbsd2.[89] | openbsd2.[89].*)
16534 shlibpath_overrides_runpath=no
16535 ;;
16536 *)
16537 shlibpath_overrides_runpath=yes
16538 ;;
16539 esac
16540 else
16541 shlibpath_overrides_runpath=yes
16542 fi
16543 ;;
16544
16545os2*)
16546 libname_spec='$name'
16547 shrext_cmds=".dll"
16548 need_lib_prefix=no
16549 library_names_spec='$libname${shared_ext} $libname.a'
16550 dynamic_linker='OS/2 ld.exe'
16551 shlibpath_var=LIBPATH
16552 ;;
16553
16554osf3* | osf4* | osf5*)
16555 version_type=osf
16556 need_lib_prefix=no
16557 need_version=no
16558 soname_spec='${libname}${release}${shared_ext}$major'
16559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16560 shlibpath_var=LD_LIBRARY_PATH
16561 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16562 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16563 ;;
16564
16565rdos*)
16566 dynamic_linker=no
16567 ;;
16568
16569solaris*)
cristy99bd5232011-12-07 14:38:20 +000016570 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016571 need_lib_prefix=no
16572 need_version=no
16573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16574 soname_spec='${libname}${release}${shared_ext}$major'
16575 shlibpath_var=LD_LIBRARY_PATH
16576 shlibpath_overrides_runpath=yes
16577 hardcode_into_libs=yes
16578 # ldd complains unless libraries are executable
16579 postinstall_cmds='chmod +x $lib'
16580 ;;
16581
16582sunos4*)
16583 version_type=sunos
16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16586 shlibpath_var=LD_LIBRARY_PATH
16587 shlibpath_overrides_runpath=yes
16588 if test "$with_gnu_ld" = yes; then
16589 need_lib_prefix=no
16590 fi
16591 need_version=yes
16592 ;;
16593
16594sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016595 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16597 soname_spec='${libname}${release}${shared_ext}$major'
16598 shlibpath_var=LD_LIBRARY_PATH
16599 case $host_vendor in
16600 sni)
16601 shlibpath_overrides_runpath=no
16602 need_lib_prefix=no
16603 runpath_var=LD_RUN_PATH
16604 ;;
16605 siemens)
16606 need_lib_prefix=no
16607 ;;
16608 motorola)
16609 need_lib_prefix=no
16610 need_version=no
16611 shlibpath_overrides_runpath=no
16612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16613 ;;
16614 esac
16615 ;;
16616
16617sysv4*MP*)
16618 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016619 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16621 soname_spec='$libname${shared_ext}.$major'
16622 shlibpath_var=LD_LIBRARY_PATH
16623 fi
16624 ;;
16625
16626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16627 version_type=freebsd-elf
16628 need_lib_prefix=no
16629 need_version=no
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16631 soname_spec='${libname}${release}${shared_ext}$major'
16632 shlibpath_var=LD_LIBRARY_PATH
16633 shlibpath_overrides_runpath=yes
16634 hardcode_into_libs=yes
16635 if test "$with_gnu_ld" = yes; then
16636 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16637 else
16638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16639 case $host_os in
16640 sco3.2v5*)
16641 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16642 ;;
16643 esac
16644 fi
16645 sys_lib_dlsearch_path_spec='/usr/lib'
16646 ;;
16647
16648tpf*)
16649 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
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 need_lib_prefix=no
16652 need_version=no
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16654 shlibpath_var=LD_LIBRARY_PATH
16655 shlibpath_overrides_runpath=no
16656 hardcode_into_libs=yes
16657 ;;
16658
16659uts4*)
cristy99bd5232011-12-07 14:38:20 +000016660 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16662 soname_spec='${libname}${release}${shared_ext}$major'
16663 shlibpath_var=LD_LIBRARY_PATH
16664 ;;
16665
16666*)
16667 dynamic_linker=no
16668 ;;
16669esac
16670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16671$as_echo "$dynamic_linker" >&6; }
16672test "$dynamic_linker" = no && can_build_shared=no
16673
16674variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16675if test "$GCC" = yes; then
16676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16677fi
16678
16679if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16680 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16681fi
16682if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16683 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16684fi
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
cristy0c60a692010-11-04 01:09:47 +000016772
16773
16774
16775
16776
cristy73bd4a52010-10-05 11:24:23 +000016777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16778$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16779hardcode_action=
16780if test -n "$hardcode_libdir_flag_spec" ||
16781 test -n "$runpath_var" ||
16782 test "X$hardcode_automatic" = "Xyes" ; then
16783
16784 # We can hardcode non-existent directories.
16785 if test "$hardcode_direct" != no &&
16786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16787 # have to relink, otherwise we might link with an installed library
16788 # when we should be linking with a yet-to-be-installed one
16789 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16790 test "$hardcode_minus_L" != no; then
16791 # Linking always hardcodes the temporary library directory.
16792 hardcode_action=relink
16793 else
16794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16795 hardcode_action=immediate
16796 fi
16797else
16798 # We cannot hardcode anything, or else we can only hardcode existing
16799 # directories.
16800 hardcode_action=unsupported
16801fi
16802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16803$as_echo "$hardcode_action" >&6; }
16804
16805if test "$hardcode_action" = relink ||
16806 test "$inherit_rpath" = yes; then
16807 # Fast installation is not supported
16808 enable_fast_install=no
16809elif test "$shlibpath_overrides_runpath" = yes ||
16810 test "$enable_shared" = no; then
16811 # Fast installation is not necessary
16812 enable_fast_install=needless
16813fi
16814
16815
16816
16817
16818
16819
16820 if test "x$enable_dlopen" != xyes; then
16821 enable_dlopen=unknown
16822 enable_dlopen_self=unknown
16823 enable_dlopen_self_static=unknown
16824else
16825 lt_cv_dlopen=no
16826 lt_cv_dlopen_libs=
16827
16828 case $host_os in
16829 beos*)
16830 lt_cv_dlopen="load_add_on"
16831 lt_cv_dlopen_libs=
16832 lt_cv_dlopen_self=yes
16833 ;;
16834
16835 mingw* | pw32* | cegcc*)
16836 lt_cv_dlopen="LoadLibrary"
16837 lt_cv_dlopen_libs=
16838 ;;
16839
16840 cygwin*)
16841 lt_cv_dlopen="dlopen"
16842 lt_cv_dlopen_libs=
16843 ;;
16844
16845 darwin*)
16846 # if libdl is installed we need to link against it
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16848$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016849if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016850 $as_echo_n "(cached) " >&6
16851else
16852 ac_check_lib_save_LIBS=$LIBS
16853LIBS="-ldl $LIBS"
16854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855/* end confdefs.h. */
16856
16857/* Override any GCC internal prototype to avoid an error.
16858 Use char because int might match the return type of a GCC
16859 builtin and then its argument prototype would still apply. */
16860#ifdef __cplusplus
16861extern "C"
16862#endif
16863char dlopen ();
16864int
16865main ()
16866{
16867return dlopen ();
16868 ;
16869 return 0;
16870}
16871_ACEOF
16872if ac_fn_c_try_link "$LINENO"; then :
16873 ac_cv_lib_dl_dlopen=yes
16874else
16875 ac_cv_lib_dl_dlopen=no
16876fi
16877rm -f core conftest.err conftest.$ac_objext \
16878 conftest$ac_exeext conftest.$ac_ext
16879LIBS=$ac_check_lib_save_LIBS
16880fi
16881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16882$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016883if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16885else
16886
16887 lt_cv_dlopen="dyld"
16888 lt_cv_dlopen_libs=
16889 lt_cv_dlopen_self=yes
16890
16891fi
16892
16893 ;;
16894
16895 *)
16896 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016897if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016898 lt_cv_dlopen="shl_load"
16899else
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16901$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016902if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016903 $as_echo_n "(cached) " >&6
16904else
16905 ac_check_lib_save_LIBS=$LIBS
16906LIBS="-ldld $LIBS"
16907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16908/* end confdefs.h. */
16909
16910/* Override any GCC internal prototype to avoid an error.
16911 Use char because int might match the return type of a GCC
16912 builtin and then its argument prototype would still apply. */
16913#ifdef __cplusplus
16914extern "C"
16915#endif
16916char shl_load ();
16917int
16918main ()
16919{
16920return shl_load ();
16921 ;
16922 return 0;
16923}
16924_ACEOF
16925if ac_fn_c_try_link "$LINENO"; then :
16926 ac_cv_lib_dld_shl_load=yes
16927else
16928 ac_cv_lib_dld_shl_load=no
16929fi
16930rm -f core conftest.err conftest.$ac_objext \
16931 conftest$ac_exeext conftest.$ac_ext
16932LIBS=$ac_check_lib_save_LIBS
16933fi
16934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16935$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016936if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016937 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16938else
16939 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016940if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016941 lt_cv_dlopen="dlopen"
16942else
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16944$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016945if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016946 $as_echo_n "(cached) " >&6
16947else
16948 ac_check_lib_save_LIBS=$LIBS
16949LIBS="-ldl $LIBS"
16950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951/* end confdefs.h. */
16952
16953/* Override any GCC internal prototype to avoid an error.
16954 Use char because int might match the return type of a GCC
16955 builtin and then its argument prototype would still apply. */
16956#ifdef __cplusplus
16957extern "C"
16958#endif
16959char dlopen ();
16960int
16961main ()
16962{
16963return dlopen ();
16964 ;
16965 return 0;
16966}
16967_ACEOF
16968if ac_fn_c_try_link "$LINENO"; then :
16969 ac_cv_lib_dl_dlopen=yes
16970else
16971 ac_cv_lib_dl_dlopen=no
16972fi
16973rm -f core conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16975LIBS=$ac_check_lib_save_LIBS
16976fi
16977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16978$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016979if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16981else
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16983$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016984if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016985 $as_echo_n "(cached) " >&6
16986else
16987 ac_check_lib_save_LIBS=$LIBS
16988LIBS="-lsvld $LIBS"
16989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16990/* end confdefs.h. */
16991
16992/* Override any GCC internal prototype to avoid an error.
16993 Use char because int might match the return type of a GCC
16994 builtin and then its argument prototype would still apply. */
16995#ifdef __cplusplus
16996extern "C"
16997#endif
16998char dlopen ();
16999int
17000main ()
17001{
17002return dlopen ();
17003 ;
17004 return 0;
17005}
17006_ACEOF
17007if ac_fn_c_try_link "$LINENO"; then :
17008 ac_cv_lib_svld_dlopen=yes
17009else
17010 ac_cv_lib_svld_dlopen=no
17011fi
17012rm -f core conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17014LIBS=$ac_check_lib_save_LIBS
17015fi
17016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17017$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017018if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17020else
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17022$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017023if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017024 $as_echo_n "(cached) " >&6
17025else
17026 ac_check_lib_save_LIBS=$LIBS
17027LIBS="-ldld $LIBS"
17028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17029/* end confdefs.h. */
17030
17031/* Override any GCC internal prototype to avoid an error.
17032 Use char because int might match the return type of a GCC
17033 builtin and then its argument prototype would still apply. */
17034#ifdef __cplusplus
17035extern "C"
17036#endif
17037char dld_link ();
17038int
17039main ()
17040{
17041return dld_link ();
17042 ;
17043 return 0;
17044}
17045_ACEOF
17046if ac_fn_c_try_link "$LINENO"; then :
17047 ac_cv_lib_dld_dld_link=yes
17048else
17049 ac_cv_lib_dld_dld_link=no
17050fi
17051rm -f core conftest.err conftest.$ac_objext \
17052 conftest$ac_exeext conftest.$ac_ext
17053LIBS=$ac_check_lib_save_LIBS
17054fi
17055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17056$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017057if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017058 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17059fi
17060
17061
17062fi
17063
17064
17065fi
17066
17067
17068fi
17069
17070
17071fi
17072
17073
17074fi
17075
17076 ;;
17077 esac
17078
17079 if test "x$lt_cv_dlopen" != xno; then
17080 enable_dlopen=yes
17081 else
17082 enable_dlopen=no
17083 fi
17084
17085 case $lt_cv_dlopen in
17086 dlopen)
17087 save_CPPFLAGS="$CPPFLAGS"
17088 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17089
17090 save_LDFLAGS="$LDFLAGS"
17091 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17092
17093 save_LIBS="$LIBS"
17094 LIBS="$lt_cv_dlopen_libs $LIBS"
17095
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17097$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017098if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017099 $as_echo_n "(cached) " >&6
17100else
17101 if test "$cross_compiling" = yes; then :
17102 lt_cv_dlopen_self=cross
17103else
17104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17105 lt_status=$lt_dlunknown
17106 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017107#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017108#include "confdefs.h"
17109
17110#if HAVE_DLFCN_H
17111#include <dlfcn.h>
17112#endif
17113
17114#include <stdio.h>
17115
17116#ifdef RTLD_GLOBAL
17117# define LT_DLGLOBAL RTLD_GLOBAL
17118#else
17119# ifdef DL_GLOBAL
17120# define LT_DLGLOBAL DL_GLOBAL
17121# else
17122# define LT_DLGLOBAL 0
17123# endif
17124#endif
17125
17126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17127 find out it does not work in some platform. */
17128#ifndef LT_DLLAZY_OR_NOW
17129# ifdef RTLD_LAZY
17130# define LT_DLLAZY_OR_NOW RTLD_LAZY
17131# else
17132# ifdef DL_LAZY
17133# define LT_DLLAZY_OR_NOW DL_LAZY
17134# else
17135# ifdef RTLD_NOW
17136# define LT_DLLAZY_OR_NOW RTLD_NOW
17137# else
17138# ifdef DL_NOW
17139# define LT_DLLAZY_OR_NOW DL_NOW
17140# else
17141# define LT_DLLAZY_OR_NOW 0
17142# endif
17143# endif
17144# endif
17145# endif
17146#endif
17147
cristy0c60a692010-11-04 01:09:47 +000017148/* When -fvisbility=hidden is used, assume the code has been annotated
17149 correspondingly for the symbols needed. */
17150#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017151int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017152#endif
17153
cristyda16f162011-02-19 23:52:17 +000017154int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017155int main ()
17156{
17157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17158 int status = $lt_dlunknown;
17159
17160 if (self)
17161 {
17162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017163 else
17164 {
17165 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17166 else puts (dlerror ());
17167 }
cristy73bd4a52010-10-05 11:24:23 +000017168 /* dlclose (self); */
17169 }
17170 else
17171 puts (dlerror ());
17172
17173 return status;
17174}
17175_LT_EOF
17176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17177 (eval $ac_link) 2>&5
17178 ac_status=$?
17179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17180 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17181 (./conftest; exit; ) >&5 2>/dev/null
17182 lt_status=$?
17183 case x$lt_status in
17184 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17185 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17186 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17187 esac
17188 else :
17189 # compilation failed
17190 lt_cv_dlopen_self=no
17191 fi
17192fi
17193rm -fr conftest*
17194
17195
17196fi
17197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17198$as_echo "$lt_cv_dlopen_self" >&6; }
17199
17200 if test "x$lt_cv_dlopen_self" = xyes; then
17201 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17203$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017204if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017205 $as_echo_n "(cached) " >&6
17206else
17207 if test "$cross_compiling" = yes; then :
17208 lt_cv_dlopen_self_static=cross
17209else
17210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17211 lt_status=$lt_dlunknown
17212 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017213#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017214#include "confdefs.h"
17215
17216#if HAVE_DLFCN_H
17217#include <dlfcn.h>
17218#endif
17219
17220#include <stdio.h>
17221
17222#ifdef RTLD_GLOBAL
17223# define LT_DLGLOBAL RTLD_GLOBAL
17224#else
17225# ifdef DL_GLOBAL
17226# define LT_DLGLOBAL DL_GLOBAL
17227# else
17228# define LT_DLGLOBAL 0
17229# endif
17230#endif
17231
17232/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17233 find out it does not work in some platform. */
17234#ifndef LT_DLLAZY_OR_NOW
17235# ifdef RTLD_LAZY
17236# define LT_DLLAZY_OR_NOW RTLD_LAZY
17237# else
17238# ifdef DL_LAZY
17239# define LT_DLLAZY_OR_NOW DL_LAZY
17240# else
17241# ifdef RTLD_NOW
17242# define LT_DLLAZY_OR_NOW RTLD_NOW
17243# else
17244# ifdef DL_NOW
17245# define LT_DLLAZY_OR_NOW DL_NOW
17246# else
17247# define LT_DLLAZY_OR_NOW 0
17248# endif
17249# endif
17250# endif
17251# endif
17252#endif
17253
cristy0c60a692010-11-04 01:09:47 +000017254/* When -fvisbility=hidden is used, assume the code has been annotated
17255 correspondingly for the symbols needed. */
17256#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017257int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017258#endif
17259
cristyda16f162011-02-19 23:52:17 +000017260int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017261int main ()
17262{
17263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17264 int status = $lt_dlunknown;
17265
17266 if (self)
17267 {
17268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017269 else
17270 {
17271 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17272 else puts (dlerror ());
17273 }
cristy73bd4a52010-10-05 11:24:23 +000017274 /* dlclose (self); */
17275 }
17276 else
17277 puts (dlerror ());
17278
17279 return status;
17280}
17281_LT_EOF
17282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17283 (eval $ac_link) 2>&5
17284 ac_status=$?
17285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17286 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17287 (./conftest; exit; ) >&5 2>/dev/null
17288 lt_status=$?
17289 case x$lt_status in
17290 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17291 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17292 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17293 esac
17294 else :
17295 # compilation failed
17296 lt_cv_dlopen_self_static=no
17297 fi
17298fi
17299rm -fr conftest*
17300
17301
17302fi
17303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17304$as_echo "$lt_cv_dlopen_self_static" >&6; }
17305 fi
17306
17307 CPPFLAGS="$save_CPPFLAGS"
17308 LDFLAGS="$save_LDFLAGS"
17309 LIBS="$save_LIBS"
17310 ;;
17311 esac
17312
17313 case $lt_cv_dlopen_self in
17314 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17315 *) enable_dlopen_self=unknown ;;
17316 esac
17317
17318 case $lt_cv_dlopen_self_static in
17319 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17320 *) enable_dlopen_self_static=unknown ;;
17321 esac
17322fi
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340striplib=
17341old_striplib=
17342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17343$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17344if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17345 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17346 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17348$as_echo "yes" >&6; }
17349else
17350# FIXME - insert some real tests, host_os isn't really good enough
17351 case $host_os in
17352 darwin*)
17353 if test -n "$STRIP" ; then
17354 striplib="$STRIP -x"
17355 old_striplib="$STRIP -S"
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17357$as_echo "yes" >&6; }
17358 else
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17360$as_echo "no" >&6; }
17361 fi
17362 ;;
17363 *)
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17365$as_echo "no" >&6; }
17366 ;;
17367 esac
17368fi
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381 # Report which library types will actually be built
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17383$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17385$as_echo "$can_build_shared" >&6; }
17386
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17388$as_echo_n "checking whether to build shared libraries... " >&6; }
17389 test "$can_build_shared" = "no" && enable_shared=no
17390
17391 # On AIX, shared libraries and static libraries use the same namespace, and
17392 # are all built from PIC.
17393 case $host_os in
17394 aix3*)
17395 test "$enable_shared" = yes && enable_static=no
17396 if test -n "$RANLIB"; then
17397 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17398 postinstall_cmds='$RANLIB $lib'
17399 fi
17400 ;;
17401
17402 aix[4-9]*)
17403 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17404 test "$enable_shared" = yes && enable_static=no
17405 fi
17406 ;;
17407 esac
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17409$as_echo "$enable_shared" >&6; }
17410
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17412$as_echo_n "checking whether to build static libraries... " >&6; }
17413 # Make sure either enable_shared or enable_static is yes.
17414 test "$enable_shared" = yes || enable_static=yes
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17416$as_echo "$enable_static" >&6; }
17417
17418
17419
17420
17421fi
17422ac_ext=c
17423ac_cpp='$CPP $CPPFLAGS'
17424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17426ac_compiler_gnu=$ac_cv_c_compiler_gnu
17427
17428CC="$lt_save_CC"
17429
cristy0c60a692010-11-04 01:09:47 +000017430 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17431 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17432 (test "X$CXX" != "Xg++"))) ; then
17433 ac_ext=cpp
17434ac_cpp='$CXXCPP $CPPFLAGS'
17435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17439$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17440if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017441 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017442 $as_echo_n "(cached) " >&6
17443else
17444 # Double quotes because CXXCPP needs to be expanded
17445 for CXXCPP in "$CXX -E" "/lib/cpp"
17446 do
17447 ac_preproc_ok=false
17448for ac_cxx_preproc_warn_flag in '' yes
17449do
17450 # Use a header file that comes with gcc, so configuring glibc
17451 # with a fresh cross-compiler works.
17452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17453 # <limits.h> exists even on freestanding compilers.
17454 # On the NeXT, cc -E runs the code through the compiler's parser,
17455 # not just through cpp. "Syntax error" is here to catch this case.
17456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17457/* end confdefs.h. */
17458#ifdef __STDC__
17459# include <limits.h>
17460#else
17461# include <assert.h>
17462#endif
17463 Syntax error
17464_ACEOF
17465if ac_fn_cxx_try_cpp "$LINENO"; then :
17466
17467else
17468 # Broken: fails on valid input.
17469continue
17470fi
cristyda16f162011-02-19 23:52:17 +000017471rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017472
17473 # OK, works on sane cases. Now check whether nonexistent headers
17474 # can be detected and how.
17475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17476/* end confdefs.h. */
17477#include <ac_nonexistent.h>
17478_ACEOF
17479if ac_fn_cxx_try_cpp "$LINENO"; then :
17480 # Broken: success on invalid input.
17481continue
17482else
17483 # Passes both tests.
17484ac_preproc_ok=:
17485break
17486fi
cristyda16f162011-02-19 23:52:17 +000017487rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017488
17489done
17490# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017491rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017492if $ac_preproc_ok; then :
17493 break
17494fi
17495
17496 done
17497 ac_cv_prog_CXXCPP=$CXXCPP
17498
17499fi
17500 CXXCPP=$ac_cv_prog_CXXCPP
17501else
17502 ac_cv_prog_CXXCPP=$CXXCPP
17503fi
17504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17505$as_echo "$CXXCPP" >&6; }
17506ac_preproc_ok=false
17507for ac_cxx_preproc_warn_flag in '' yes
17508do
17509 # Use a header file that comes with gcc, so configuring glibc
17510 # with a fresh cross-compiler works.
17511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17512 # <limits.h> exists even on freestanding compilers.
17513 # On the NeXT, cc -E runs the code through the compiler's parser,
17514 # not just through cpp. "Syntax error" is here to catch this case.
17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516/* end confdefs.h. */
17517#ifdef __STDC__
17518# include <limits.h>
17519#else
17520# include <assert.h>
17521#endif
17522 Syntax error
17523_ACEOF
17524if ac_fn_cxx_try_cpp "$LINENO"; then :
17525
17526else
17527 # Broken: fails on valid input.
17528continue
17529fi
cristyda16f162011-02-19 23:52:17 +000017530rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017531
17532 # OK, works on sane cases. Now check whether nonexistent headers
17533 # can be detected and how.
17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535/* end confdefs.h. */
17536#include <ac_nonexistent.h>
17537_ACEOF
17538if ac_fn_cxx_try_cpp "$LINENO"; then :
17539 # Broken: success on invalid input.
17540continue
17541else
17542 # Passes both tests.
17543ac_preproc_ok=:
17544break
17545fi
cristyda16f162011-02-19 23:52:17 +000017546rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017547
17548done
17549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017550rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017551if $ac_preproc_ok; then :
17552
17553else
17554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17556as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17557See \`config.log' for more details" "$LINENO" 5; }
17558fi
17559
17560ac_ext=c
17561ac_cpp='$CPP $CPPFLAGS'
17562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17564ac_compiler_gnu=$ac_cv_c_compiler_gnu
17565
17566else
17567 _lt_caught_CXX_error=yes
17568fi
cristy73bd4a52010-10-05 11:24:23 +000017569
17570ac_ext=cpp
17571ac_cpp='$CXXCPP $CPPFLAGS'
17572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17575
17576archive_cmds_need_lc_CXX=no
17577allow_undefined_flag_CXX=
17578always_export_symbols_CXX=no
17579archive_expsym_cmds_CXX=
17580compiler_needs_object_CXX=no
17581export_dynamic_flag_spec_CXX=
17582hardcode_direct_CXX=no
17583hardcode_direct_absolute_CXX=no
17584hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017585hardcode_libdir_separator_CXX=
17586hardcode_minus_L_CXX=no
17587hardcode_shlibpath_var_CXX=unsupported
17588hardcode_automatic_CXX=no
17589inherit_rpath_CXX=no
17590module_cmds_CXX=
17591module_expsym_cmds_CXX=
17592link_all_deplibs_CXX=unknown
17593old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017594reload_flag_CXX=$reload_flag
17595reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017596no_undefined_flag_CXX=
17597whole_archive_flag_spec_CXX=
17598enable_shared_with_static_runtimes_CXX=no
17599
17600# Source file extension for C++ test sources.
17601ac_ext=cpp
17602
17603# Object file extension for compiled C++ test sources.
17604objext=o
17605objext_CXX=$objext
17606
17607# No sense in running all these tests if we already determined that
17608# the CXX compiler isn't working. Some variables (like enable_shared)
17609# are currently assumed to apply to all compilers on this platform,
17610# and will be corrupted by setting them based on a non-working compiler.
17611if test "$_lt_caught_CXX_error" != yes; then
17612 # Code to be used in simple compile tests
17613 lt_simple_compile_test_code="int some_variable = 0;"
17614
17615 # Code to be used in simple link tests
17616 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17617
17618 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17619
17620
17621
17622
17623
17624
17625# If no C compiler was specified, use CC.
17626LTCC=${LTCC-"$CC"}
17627
17628# If no C compiler flags were specified, use CFLAGS.
17629LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17630
17631# Allow CC to be a program name with arguments.
17632compiler=$CC
17633
17634
17635 # save warnings/boilerplate of simple test code
17636 ac_outfile=conftest.$ac_objext
17637echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17638eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17639_lt_compiler_boilerplate=`cat conftest.err`
17640$RM conftest*
17641
17642 ac_outfile=conftest.$ac_objext
17643echo "$lt_simple_link_test_code" >conftest.$ac_ext
17644eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17645_lt_linker_boilerplate=`cat conftest.err`
17646$RM -r conftest*
17647
17648
17649 # Allow CC to be a program name with arguments.
17650 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017651 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017652 lt_save_LD=$LD
17653 lt_save_GCC=$GCC
17654 GCC=$GXX
17655 lt_save_with_gnu_ld=$with_gnu_ld
17656 lt_save_path_LD=$lt_cv_path_LD
17657 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17658 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17659 else
17660 $as_unset lt_cv_prog_gnu_ld
17661 fi
17662 if test -n "${lt_cv_path_LDCXX+set}"; then
17663 lt_cv_path_LD=$lt_cv_path_LDCXX
17664 else
17665 $as_unset lt_cv_path_LD
17666 fi
17667 test -z "${LDCXX+set}" || LD=$LDCXX
17668 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017669 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017670 compiler=$CC
17671 compiler_CXX=$CC
17672 for cc_temp in $compiler""; do
17673 case $cc_temp in
17674 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17675 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17676 \-*) ;;
17677 *) break;;
17678 esac
17679done
cristy0c60a692010-11-04 01:09:47 +000017680cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017681
17682
17683 if test -n "$compiler"; then
17684 # We don't want -fno-exception when compiling C++ code, so set the
17685 # no_builtin_flag separately
17686 if test "$GXX" = yes; then
17687 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17688 else
17689 lt_prog_compiler_no_builtin_flag_CXX=
17690 fi
17691
17692 if test "$GXX" = yes; then
17693 # Set up default GNU C++ configuration
17694
17695
17696
17697# Check whether --with-gnu-ld was given.
17698if test "${with_gnu_ld+set}" = set; then :
17699 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17700else
17701 with_gnu_ld=no
17702fi
17703
17704ac_prog=ld
17705if test "$GCC" = yes; then
17706 # Check if gcc -print-prog-name=ld gives a path.
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17708$as_echo_n "checking for ld used by $CC... " >&6; }
17709 case $host in
17710 *-*-mingw*)
17711 # gcc leaves a trailing carriage return which upsets mingw
17712 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17713 *)
17714 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17715 esac
17716 case $ac_prog in
17717 # Accept absolute paths.
17718 [\\/]* | ?:[\\/]*)
17719 re_direlt='/[^/][^/]*/\.\./'
17720 # Canonicalize the pathname of ld
17721 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17722 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17723 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17724 done
17725 test -z "$LD" && LD="$ac_prog"
17726 ;;
17727 "")
17728 # If it fails, then pretend we aren't using GCC.
17729 ac_prog=ld
17730 ;;
17731 *)
17732 # If it is relative, then search for the first ld in PATH.
17733 with_gnu_ld=unknown
17734 ;;
17735 esac
17736elif test "$with_gnu_ld" = yes; then
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17738$as_echo_n "checking for GNU ld... " >&6; }
17739else
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17741$as_echo_n "checking for non-GNU ld... " >&6; }
17742fi
cristyda16f162011-02-19 23:52:17 +000017743if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017744 $as_echo_n "(cached) " >&6
17745else
17746 if test -z "$LD"; then
17747 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17748 for ac_dir in $PATH; do
17749 IFS="$lt_save_ifs"
17750 test -z "$ac_dir" && ac_dir=.
17751 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17752 lt_cv_path_LD="$ac_dir/$ac_prog"
17753 # Check to see if the program is GNU ld. I'd rather use --version,
17754 # but apparently some variants of GNU ld only accept -v.
17755 # Break only if it was the GNU/non-GNU ld that we prefer.
17756 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17757 *GNU* | *'with BFD'*)
17758 test "$with_gnu_ld" != no && break
17759 ;;
17760 *)
17761 test "$with_gnu_ld" != yes && break
17762 ;;
17763 esac
17764 fi
17765 done
17766 IFS="$lt_save_ifs"
17767else
17768 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17769fi
17770fi
17771
17772LD="$lt_cv_path_LD"
17773if test -n "$LD"; then
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17775$as_echo "$LD" >&6; }
17776else
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17778$as_echo "no" >&6; }
17779fi
cristy98dddb52010-11-04 00:30:15 +000017780test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17782$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017783if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017784 $as_echo_n "(cached) " >&6
17785else
17786 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17787case `$LD -v 2>&1 </dev/null` in
17788*GNU* | *'with BFD'*)
17789 lt_cv_prog_gnu_ld=yes
17790 ;;
17791*)
17792 lt_cv_prog_gnu_ld=no
17793 ;;
17794esac
17795fi
17796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17797$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17798with_gnu_ld=$lt_cv_prog_gnu_ld
17799
17800
17801
17802
17803
17804
17805
17806 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17807 # archiving commands below assume that GNU ld is being used.
17808 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017809 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17810 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 +000017811
17812 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17813 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17814
17815 # If archive_cmds runs LD, not CC, wlarc should be empty
17816 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17817 # investigate it a little bit more. (MM)
17818 wlarc='${wl}'
17819
17820 # ancient GNU ld didn't support --whole-archive et. al.
17821 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17822 $GREP 'no-whole-archive' > /dev/null; then
17823 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17824 else
17825 whole_archive_flag_spec_CXX=
17826 fi
17827 else
17828 with_gnu_ld=no
17829 wlarc=
17830
17831 # A generic and very simple default shared library creation
17832 # command for GNU C++ for the case where it uses the native
17833 # linker, instead of GNU ld. If possible, this setting should
17834 # overridden to take advantage of the native linker features on
17835 # the platform it is being used on.
17836 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17837 fi
17838
17839 # Commands to make compiler produce verbose output that lists
17840 # what "hidden" libraries, object files and flags are used when
17841 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017842 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017843
17844 else
17845 GXX=no
17846 with_gnu_ld=no
17847 wlarc=
17848 fi
17849
17850 # PORTME: fill in a description of your system's C++ link characteristics
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17852$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17853 ld_shlibs_CXX=yes
17854 case $host_os in
17855 aix3*)
17856 # FIXME: insert proper C++ library support
17857 ld_shlibs_CXX=no
17858 ;;
17859 aix[4-9]*)
17860 if test "$host_cpu" = ia64; then
17861 # On IA64, the linker does run time linking by default, so we don't
17862 # have to do anything special.
17863 aix_use_runtimelinking=no
17864 exp_sym_flag='-Bexport'
17865 no_entry_flag=""
17866 else
17867 aix_use_runtimelinking=no
17868
17869 # Test if we are trying to use run time linking or normal
17870 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17871 # need to do runtime linking.
17872 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17873 for ld_flag in $LDFLAGS; do
17874 case $ld_flag in
17875 *-brtl*)
17876 aix_use_runtimelinking=yes
17877 break
17878 ;;
17879 esac
17880 done
17881 ;;
17882 esac
17883
17884 exp_sym_flag='-bexport'
17885 no_entry_flag='-bnoentry'
17886 fi
17887
17888 # When large executables or shared objects are built, AIX ld can
17889 # have problems creating the table of contents. If linking a library
17890 # or program results in "error TOC overflow" add -mminimal-toc to
17891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17893
17894 archive_cmds_CXX=''
17895 hardcode_direct_CXX=yes
17896 hardcode_direct_absolute_CXX=yes
17897 hardcode_libdir_separator_CXX=':'
17898 link_all_deplibs_CXX=yes
17899 file_list_spec_CXX='${wl}-f,'
17900
17901 if test "$GXX" = yes; then
17902 case $host_os in aix4.[012]|aix4.[012].*)
17903 # We only want to do this on AIX 4.2 and lower, the check
17904 # below for broken collect2 doesn't work under 4.3+
17905 collect2name=`${CC} -print-prog-name=collect2`
17906 if test -f "$collect2name" &&
17907 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17908 then
17909 # We have reworked collect2
17910 :
17911 else
17912 # We have old collect2
17913 hardcode_direct_CXX=unsupported
17914 # It fails to find uninstalled libraries when the uninstalled
17915 # path is not listed in the libpath. Setting hardcode_minus_L
17916 # to unsupported forces relinking
17917 hardcode_minus_L_CXX=yes
17918 hardcode_libdir_flag_spec_CXX='-L$libdir'
17919 hardcode_libdir_separator_CXX=
17920 fi
17921 esac
17922 shared_flag='-shared'
17923 if test "$aix_use_runtimelinking" = yes; then
17924 shared_flag="$shared_flag "'${wl}-G'
17925 fi
17926 else
17927 # not using gcc
17928 if test "$host_cpu" = ia64; then
17929 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17930 # chokes on -Wl,-G. The following line is correct:
17931 shared_flag='-G'
17932 else
17933 if test "$aix_use_runtimelinking" = yes; then
17934 shared_flag='${wl}-G'
17935 else
17936 shared_flag='${wl}-bM:SRE'
17937 fi
17938 fi
17939 fi
17940
17941 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17942 # It seems that -bexpall does not export symbols beginning with
17943 # underscore (_), so it is better to generate a list of symbols to
17944 # export.
17945 always_export_symbols_CXX=yes
17946 if test "$aix_use_runtimelinking" = yes; then
17947 # Warning - without using the other runtime loading flags (-brtl),
17948 # -berok will link without error, but may produce a broken library.
17949 allow_undefined_flag_CXX='-berok'
17950 # Determine the default libpath from the value encoded in an empty
17951 # executable.
cristyda16f162011-02-19 23:52:17 +000017952 if test "${lt_cv_aix_libpath+set}" = set; then
17953 aix_libpath=$lt_cv_aix_libpath
17954else
17955 if ${lt_cv_aix_libpath__CXX+:} false; then :
17956 $as_echo_n "(cached) " >&6
17957else
17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017959/* end confdefs.h. */
17960
17961int
17962main ()
17963{
17964
17965 ;
17966 return 0;
17967}
17968_ACEOF
17969if ac_fn_cxx_try_link "$LINENO"; then :
17970
cristyda16f162011-02-19 23:52:17 +000017971 lt_aix_libpath_sed='
17972 /Import File Strings/,/^$/ {
17973 /^0/ {
17974 s/^0 *\([^ ]*\) *$/\1/
17975 p
17976 }
17977 }'
17978 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17979 # Check for a 64-bit object if we didn't find anything.
17980 if test -z "$lt_cv_aix_libpath__CXX"; then
17981 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17982 fi
cristy73bd4a52010-10-05 11:24:23 +000017983fi
17984rm -f core conftest.err conftest.$ac_objext \
17985 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017986 if test -z "$lt_cv_aix_libpath__CXX"; then
17987 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17988 fi
17989
17990fi
17991
17992 aix_libpath=$lt_cv_aix_libpath__CXX
17993fi
cristy73bd4a52010-10-05 11:24:23 +000017994
17995 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17996
cristy0c60a692010-11-04 01:09:47 +000017997 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 +000017998 else
17999 if test "$host_cpu" = ia64; then
18000 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18001 allow_undefined_flag_CXX="-z nodefs"
18002 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"
18003 else
18004 # Determine the default libpath from the value encoded in an
18005 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018006 if test "${lt_cv_aix_libpath+set}" = set; then
18007 aix_libpath=$lt_cv_aix_libpath
18008else
18009 if ${lt_cv_aix_libpath__CXX+:} false; then :
18010 $as_echo_n "(cached) " >&6
18011else
18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018013/* end confdefs.h. */
18014
18015int
18016main ()
18017{
18018
18019 ;
18020 return 0;
18021}
18022_ACEOF
18023if ac_fn_cxx_try_link "$LINENO"; then :
18024
cristyda16f162011-02-19 23:52:17 +000018025 lt_aix_libpath_sed='
18026 /Import File Strings/,/^$/ {
18027 /^0/ {
18028 s/^0 *\([^ ]*\) *$/\1/
18029 p
18030 }
18031 }'
18032 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18033 # Check for a 64-bit object if we didn't find anything.
18034 if test -z "$lt_cv_aix_libpath__CXX"; then
18035 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18036 fi
cristy73bd4a52010-10-05 11:24:23 +000018037fi
18038rm -f core conftest.err conftest.$ac_objext \
18039 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018040 if test -z "$lt_cv_aix_libpath__CXX"; then
18041 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18042 fi
18043
18044fi
18045
18046 aix_libpath=$lt_cv_aix_libpath__CXX
18047fi
cristy73bd4a52010-10-05 11:24:23 +000018048
18049 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18050 # Warning - without using the other run time loading flags,
18051 # -berok will link without error, but may produce a broken library.
18052 no_undefined_flag_CXX=' ${wl}-bernotok'
18053 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018054 if test "$with_gnu_ld" = yes; then
18055 # We only use this code for GNU lds that support --whole-archive.
18056 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18057 else
18058 # Exported symbols can be pulled into shared objects from archives
18059 whole_archive_flag_spec_CXX='$convenience'
18060 fi
cristy73bd4a52010-10-05 11:24:23 +000018061 archive_cmds_need_lc_CXX=yes
18062 # This is similar to how AIX traditionally builds its shared
18063 # libraries.
18064 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'
18065 fi
18066 fi
18067 ;;
18068
18069 beos*)
18070 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18071 allow_undefined_flag_CXX=unsupported
18072 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18073 # support --undefined. This deserves some investigation. FIXME
18074 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18075 else
18076 ld_shlibs_CXX=no
18077 fi
18078 ;;
18079
18080 chorus*)
18081 case $cc_basename in
18082 *)
18083 # FIXME: insert proper C++ library support
18084 ld_shlibs_CXX=no
18085 ;;
18086 esac
18087 ;;
18088
18089 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018090 case $GXX,$cc_basename in
18091 ,cl* | no,cl*)
18092 # Native MSVC
18093 # hardcode_libdir_flag_spec is actually meaningless, as there is
18094 # no search path for DLLs.
18095 hardcode_libdir_flag_spec_CXX=' '
18096 allow_undefined_flag_CXX=unsupported
18097 always_export_symbols_CXX=yes
18098 file_list_spec_CXX='@'
18099 # Tell ltmain to make .lib files, not .a files.
18100 libext=lib
18101 # Tell ltmain to make .dll files, not .so files.
18102 shrext_cmds=".dll"
18103 # FIXME: Setting linknames here is a bad hack.
18104 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18105 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18106 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18107 else
18108 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18109 fi~
18110 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18111 linknames='
18112 # The linker will not automatically build a static lib if we build a DLL.
18113 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18114 enable_shared_with_static_runtimes_CXX=yes
18115 # Don't use ranlib
18116 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18117 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18118 lt_tool_outputfile="@TOOL_OUTPUT@"~
18119 case $lt_outputfile in
18120 *.exe|*.EXE) ;;
18121 *)
18122 lt_outputfile="$lt_outputfile.exe"
18123 lt_tool_outputfile="$lt_tool_outputfile.exe"
18124 ;;
18125 esac~
18126 func_to_tool_file "$lt_outputfile"~
18127 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18128 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18129 $RM "$lt_outputfile.manifest";
18130 fi'
18131 ;;
18132 *)
18133 # g++
18134 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18135 # as there is no search path for DLLs.
18136 hardcode_libdir_flag_spec_CXX='-L$libdir'
18137 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18138 allow_undefined_flag_CXX=unsupported
18139 always_export_symbols_CXX=no
18140 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018141
cristyda16f162011-02-19 23:52:17 +000018142 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18143 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'
18144 # If the export-symbols file already is a .def file (1st line
18145 # is EXPORTS), use it as is; otherwise, prepend...
18146 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18147 cp $export_symbols $output_objdir/$soname.def;
18148 else
18149 echo EXPORTS > $output_objdir/$soname.def;
18150 cat $export_symbols >> $output_objdir/$soname.def;
18151 fi~
18152 $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'
18153 else
18154 ld_shlibs_CXX=no
18155 fi
18156 ;;
18157 esac
18158 ;;
cristy73bd4a52010-10-05 11:24:23 +000018159 darwin* | rhapsody*)
18160
18161
18162 archive_cmds_need_lc_CXX=no
18163 hardcode_direct_CXX=no
18164 hardcode_automatic_CXX=yes
18165 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018166 if test "$lt_cv_ld_force_load" = "yes"; then
18167 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 +000018168
cristy0c60a692010-11-04 01:09:47 +000018169 else
18170 whole_archive_flag_spec_CXX=''
18171 fi
cristy73bd4a52010-10-05 11:24:23 +000018172 link_all_deplibs_CXX=yes
18173 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18174 case $cc_basename in
18175 ifort*) _lt_dar_can_shared=yes ;;
18176 *) _lt_dar_can_shared=$GCC ;;
18177 esac
18178 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018179 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018180 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}"
18181 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18182 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}"
18183 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}"
18184 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18185 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}"
18186 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}"
18187 fi
18188
18189 else
18190 ld_shlibs_CXX=no
18191 fi
18192
18193 ;;
18194
18195 dgux*)
18196 case $cc_basename in
18197 ec++*)
18198 # FIXME: insert proper C++ library support
18199 ld_shlibs_CXX=no
18200 ;;
18201 ghcx*)
18202 # Green Hills C++ Compiler
18203 # FIXME: insert proper C++ library support
18204 ld_shlibs_CXX=no
18205 ;;
18206 *)
18207 # FIXME: insert proper C++ library support
18208 ld_shlibs_CXX=no
18209 ;;
18210 esac
18211 ;;
18212
cristy99bd5232011-12-07 14:38:20 +000018213 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018214 # C++ shared libraries reported to be fairly broken before
18215 # switch to ELF
18216 ld_shlibs_CXX=no
18217 ;;
18218
18219 freebsd-elf*)
18220 archive_cmds_need_lc_CXX=no
18221 ;;
18222
18223 freebsd* | dragonfly*)
18224 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18225 # conventions
18226 ld_shlibs_CXX=yes
18227 ;;
18228
18229 gnu*)
18230 ;;
18231
cristy0c60a692010-11-04 01:09:47 +000018232 haiku*)
18233 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18234 link_all_deplibs_CXX=yes
18235 ;;
18236
cristy73bd4a52010-10-05 11:24:23 +000018237 hpux9*)
18238 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18239 hardcode_libdir_separator_CXX=:
18240 export_dynamic_flag_spec_CXX='${wl}-E'
18241 hardcode_direct_CXX=yes
18242 hardcode_minus_L_CXX=yes # Not in the search PATH,
18243 # but as the default
18244 # location of the library.
18245
18246 case $cc_basename in
18247 CC*)
18248 # FIXME: insert proper C++ library support
18249 ld_shlibs_CXX=no
18250 ;;
18251 aCC*)
18252 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'
18253 # Commands to make compiler produce verbose output that lists
18254 # what "hidden" libraries, object files and flags are used when
18255 # linking a shared library.
18256 #
18257 # There doesn't appear to be a way to prevent this compiler from
18258 # explicitly linking system object files so we need to strip them
18259 # from the output so that they don't get included in the library
18260 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018261 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 +000018262 ;;
18263 *)
18264 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018265 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 +000018266 else
18267 # FIXME: insert proper C++ library support
18268 ld_shlibs_CXX=no
18269 fi
18270 ;;
18271 esac
18272 ;;
18273
18274 hpux10*|hpux11*)
18275 if test $with_gnu_ld = no; then
18276 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18277 hardcode_libdir_separator_CXX=:
18278
18279 case $host_cpu in
18280 hppa*64*|ia64*)
18281 ;;
18282 *)
18283 export_dynamic_flag_spec_CXX='${wl}-E'
18284 ;;
18285 esac
18286 fi
18287 case $host_cpu in
18288 hppa*64*|ia64*)
18289 hardcode_direct_CXX=no
18290 hardcode_shlibpath_var_CXX=no
18291 ;;
18292 *)
18293 hardcode_direct_CXX=yes
18294 hardcode_direct_absolute_CXX=yes
18295 hardcode_minus_L_CXX=yes # Not in the search PATH,
18296 # but as the default
18297 # location of the library.
18298 ;;
18299 esac
18300
18301 case $cc_basename in
18302 CC*)
18303 # FIXME: insert proper C++ library support
18304 ld_shlibs_CXX=no
18305 ;;
18306 aCC*)
18307 case $host_cpu in
18308 hppa*64*)
18309 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18310 ;;
18311 ia64*)
18312 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18313 ;;
18314 *)
18315 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18316 ;;
18317 esac
18318 # Commands to make compiler produce verbose output that lists
18319 # what "hidden" libraries, object files and flags are used when
18320 # linking a shared library.
18321 #
18322 # There doesn't appear to be a way to prevent this compiler from
18323 # explicitly linking system object files so we need to strip them
18324 # from the output so that they don't get included in the library
18325 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018326 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 +000018327 ;;
18328 *)
18329 if test "$GXX" = yes; then
18330 if test $with_gnu_ld = no; then
18331 case $host_cpu in
18332 hppa*64*)
18333 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18334 ;;
18335 ia64*)
cristyda16f162011-02-19 23:52:17 +000018336 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 +000018337 ;;
18338 *)
cristyda16f162011-02-19 23:52:17 +000018339 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 +000018340 ;;
18341 esac
18342 fi
18343 else
18344 # FIXME: insert proper C++ library support
18345 ld_shlibs_CXX=no
18346 fi
18347 ;;
18348 esac
18349 ;;
18350
18351 interix[3-9]*)
18352 hardcode_direct_CXX=no
18353 hardcode_shlibpath_var_CXX=no
18354 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18355 export_dynamic_flag_spec_CXX='${wl}-E'
18356 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18357 # Instead, shared libraries are loaded at an image base (0x10000000 by
18358 # default) and relocated if they conflict, which is a slow very memory
18359 # consuming and fragmenting process. To avoid this, we pick a random,
18360 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18361 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18362 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'
18363 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'
18364 ;;
18365 irix5* | irix6*)
18366 case $cc_basename in
18367 CC*)
18368 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018369 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 +000018370
18371 # Archives containing C++ object files must be created using
18372 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18373 # necessary to make sure instantiated templates are included
18374 # in the archive.
18375 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18376 ;;
18377 *)
18378 if test "$GXX" = yes; then
18379 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018380 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 +000018381 else
cristyda16f162011-02-19 23:52:17 +000018382 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 +000018383 fi
18384 fi
18385 link_all_deplibs_CXX=yes
18386 ;;
18387 esac
18388 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18389 hardcode_libdir_separator_CXX=:
18390 inherit_rpath_CXX=yes
18391 ;;
18392
cristy0c60a692010-11-04 01:09:47 +000018393 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018394 case $cc_basename in
18395 KCC*)
18396 # Kuck and Associates, Inc. (KAI) C++ Compiler
18397
18398 # KCC will only create a shared library if the output file
18399 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18400 # to its proper name (with version) after linking.
18401 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'
18402 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'
18403 # Commands to make compiler produce verbose output that lists
18404 # what "hidden" libraries, object files and flags are used when
18405 # linking a shared library.
18406 #
18407 # There doesn't appear to be a way to prevent this compiler from
18408 # explicitly linking system object files so we need to strip them
18409 # from the output so that they don't get included in the library
18410 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018411 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 +000018412
18413 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18414 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18415
18416 # Archives containing C++ object files must be created using
18417 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18418 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18419 ;;
18420 icpc* | ecpc* )
18421 # Intel C++
18422 with_gnu_ld=yes
18423 # version 8.0 and above of icpc choke on multiply defined symbols
18424 # if we add $predep_objects and $postdep_objects, however 7.1 and
18425 # earlier do not add the objects themselves.
18426 case `$CC -V 2>&1` in
18427 *"Version 7."*)
18428 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18429 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'
18430 ;;
18431 *) # Version 8.0 or newer
18432 tmp_idyn=
18433 case $host_cpu in
18434 ia64*) tmp_idyn=' -i_dynamic';;
18435 esac
18436 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18437 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'
18438 ;;
18439 esac
18440 archive_cmds_need_lc_CXX=no
18441 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18442 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18443 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18444 ;;
18445 pgCC* | pgcpp*)
18446 # Portland Group C++ compiler
18447 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018448 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018449 prelink_cmds_CXX='tpldir=Template.dir~
18450 rm -rf $tpldir~
18451 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018452 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018453 old_archive_cmds_CXX='tpldir=Template.dir~
18454 rm -rf $tpldir~
18455 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018456 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018457 $RANLIB $oldlib'
18458 archive_cmds_CXX='tpldir=Template.dir~
18459 rm -rf $tpldir~
18460 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018461 $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 +000018462 archive_expsym_cmds_CXX='tpldir=Template.dir~
18463 rm -rf $tpldir~
18464 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018465 $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 +000018466 ;;
cristy0c60a692010-11-04 01:09:47 +000018467 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018468 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18469 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'
18470 ;;
18471 esac
18472
18473 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18474 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018475 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 +000018476 ;;
18477 cxx*)
18478 # Compaq C++
18479 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18480 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'
18481
18482 runpath_var=LD_RUN_PATH
18483 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18484 hardcode_libdir_separator_CXX=:
18485
18486 # Commands to make compiler produce verbose output that lists
18487 # what "hidden" libraries, object files and flags are used when
18488 # linking a shared library.
18489 #
18490 # There doesn't appear to be a way to prevent this compiler from
18491 # explicitly linking system object files so we need to strip them
18492 # from the output so that they don't get included in the library
18493 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018494 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 +000018495 ;;
cristy0c60a692010-11-04 01:09:47 +000018496 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018497 # IBM XL 8.0 on PPC, with GNU ld
18498 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18499 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18500 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18501 if test "x$supports_anon_versioning" = xyes; then
18502 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18503 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18504 echo "local: *; };" >> $output_objdir/$libname.ver~
18505 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18506 fi
18507 ;;
18508 *)
18509 case `$CC -V 2>&1 | sed 5q` in
18510 *Sun\ C*)
18511 # Sun C++ 5.9
18512 no_undefined_flag_CXX=' -zdefs'
18513 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18514 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'
18515 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018516 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 +000018517 compiler_needs_object_CXX=yes
18518
18519 # Not sure whether something based on
18520 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18521 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018522 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018523
18524 # Archives containing C++ object files must be created using
18525 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18526 # necessary to make sure instantiated templates are included
18527 # in the archive.
18528 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18529 ;;
18530 esac
18531 ;;
18532 esac
18533 ;;
18534
18535 lynxos*)
18536 # FIXME: insert proper C++ library support
18537 ld_shlibs_CXX=no
18538 ;;
18539
18540 m88k*)
18541 # FIXME: insert proper C++ library support
18542 ld_shlibs_CXX=no
18543 ;;
18544
18545 mvs*)
18546 case $cc_basename in
18547 cxx*)
18548 # FIXME: insert proper C++ library support
18549 ld_shlibs_CXX=no
18550 ;;
18551 *)
18552 # FIXME: insert proper C++ library support
18553 ld_shlibs_CXX=no
18554 ;;
18555 esac
18556 ;;
18557
18558 netbsd*)
18559 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18560 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18561 wlarc=
18562 hardcode_libdir_flag_spec_CXX='-R$libdir'
18563 hardcode_direct_CXX=yes
18564 hardcode_shlibpath_var_CXX=no
18565 fi
18566 # Workaround some broken pre-1.5 toolchains
18567 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18568 ;;
18569
18570 *nto* | *qnx*)
18571 ld_shlibs_CXX=yes
18572 ;;
18573
18574 openbsd2*)
18575 # C++ shared libraries are fairly broken
18576 ld_shlibs_CXX=no
18577 ;;
18578
18579 openbsd*)
18580 if test -f /usr/libexec/ld.so; then
18581 hardcode_direct_CXX=yes
18582 hardcode_shlibpath_var_CXX=no
18583 hardcode_direct_absolute_CXX=yes
18584 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18585 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18587 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18588 export_dynamic_flag_spec_CXX='${wl}-E'
18589 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18590 fi
cristy0c60a692010-11-04 01:09:47 +000018591 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018592 else
18593 ld_shlibs_CXX=no
18594 fi
18595 ;;
18596
18597 osf3* | osf4* | osf5*)
18598 case $cc_basename in
18599 KCC*)
18600 # Kuck and Associates, Inc. (KAI) C++ Compiler
18601
18602 # KCC will only create a shared library if the output file
18603 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18604 # to its proper name (with version) after linking.
18605 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'
18606
18607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18608 hardcode_libdir_separator_CXX=:
18609
18610 # Archives containing C++ object files must be created using
18611 # the KAI C++ compiler.
18612 case $host in
18613 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18614 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18615 esac
18616 ;;
18617 RCC*)
18618 # Rational C++ 2.4.1
18619 # FIXME: insert proper C++ library support
18620 ld_shlibs_CXX=no
18621 ;;
18622 cxx*)
18623 case $host in
18624 osf3*)
18625 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018626 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 +000018627 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18628 ;;
18629 *)
18630 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018631 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 +000018632 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18633 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018634 $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 +000018635 $RM $lib.exp'
18636 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18637 ;;
18638 esac
18639
18640 hardcode_libdir_separator_CXX=:
18641
18642 # Commands to make compiler produce verbose output that lists
18643 # what "hidden" libraries, object files and flags are used when
18644 # linking a shared library.
18645 #
18646 # There doesn't appear to be a way to prevent this compiler from
18647 # explicitly linking system object files so we need to strip them
18648 # from the output so that they don't get included in the library
18649 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018650 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 +000018651 ;;
18652 *)
18653 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18654 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18655 case $host in
18656 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018657 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 +000018658 ;;
18659 *)
cristyda16f162011-02-19 23:52:17 +000018660 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 +000018661 ;;
18662 esac
18663
18664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18665 hardcode_libdir_separator_CXX=:
18666
18667 # Commands to make compiler produce verbose output that lists
18668 # what "hidden" libraries, object files and flags are used when
18669 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018670 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018671
18672 else
18673 # FIXME: insert proper C++ library support
18674 ld_shlibs_CXX=no
18675 fi
18676 ;;
18677 esac
18678 ;;
18679
18680 psos*)
18681 # FIXME: insert proper C++ library support
18682 ld_shlibs_CXX=no
18683 ;;
18684
18685 sunos4*)
18686 case $cc_basename in
18687 CC*)
18688 # Sun C++ 4.x
18689 # FIXME: insert proper C++ library support
18690 ld_shlibs_CXX=no
18691 ;;
18692 lcc*)
18693 # Lucid
18694 # FIXME: insert proper C++ library support
18695 ld_shlibs_CXX=no
18696 ;;
18697 *)
18698 # FIXME: insert proper C++ library support
18699 ld_shlibs_CXX=no
18700 ;;
18701 esac
18702 ;;
18703
18704 solaris*)
18705 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018706 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018707 # Sun C++ 4.2, 5.x and Centerline C++
18708 archive_cmds_need_lc_CXX=yes
18709 no_undefined_flag_CXX=' -zdefs'
18710 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18711 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18712 $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'
18713
18714 hardcode_libdir_flag_spec_CXX='-R$libdir'
18715 hardcode_shlibpath_var_CXX=no
18716 case $host_os in
18717 solaris2.[0-5] | solaris2.[0-5].*) ;;
18718 *)
18719 # The compiler driver will combine and reorder linker options,
18720 # but understands `-z linker_flag'.
18721 # Supported since Solaris 2.6 (maybe 2.5.1?)
18722 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18723 ;;
18724 esac
18725 link_all_deplibs_CXX=yes
18726
cristy0c60a692010-11-04 01:09:47 +000018727 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018728
18729 # Archives containing C++ object files must be created using
18730 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18731 # necessary to make sure instantiated templates are included
18732 # in the archive.
18733 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18734 ;;
18735 gcx*)
18736 # Green Hills C++ Compiler
18737 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18738
18739 # The C++ compiler must be used to create the archive.
18740 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18741 ;;
18742 *)
18743 # GNU C++ compiler with Solaris linker
18744 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18745 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18746 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018747 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 +000018748 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 +000018749 $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 +000018750
18751 # Commands to make compiler produce verbose output that lists
18752 # what "hidden" libraries, object files and flags are used when
18753 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018754 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018755 else
18756 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18757 # platform.
18758 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18759 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18760 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18761
18762 # Commands to make compiler produce verbose output that lists
18763 # what "hidden" libraries, object files and flags are used when
18764 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018765 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018766 fi
18767
18768 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18769 case $host_os in
18770 solaris2.[0-5] | solaris2.[0-5].*) ;;
18771 *)
18772 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18773 ;;
18774 esac
18775 fi
18776 ;;
18777 esac
18778 ;;
18779
18780 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18781 no_undefined_flag_CXX='${wl}-z,text'
18782 archive_cmds_need_lc_CXX=no
18783 hardcode_shlibpath_var_CXX=no
18784 runpath_var='LD_RUN_PATH'
18785
18786 case $cc_basename in
18787 CC*)
18788 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18789 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18790 ;;
18791 *)
18792 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18793 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18794 ;;
18795 esac
18796 ;;
18797
18798 sysv5* | sco3.2v5* | sco5v6*)
18799 # Note: We can NOT use -z defs as we might desire, because we do not
18800 # link with -lc, and that would cause any symbols used from libc to
18801 # always be unresolved, which means just about no library would
18802 # ever link correctly. If we're not using GNU ld we use -z text
18803 # though, which does catch some bad symbols but isn't as heavy-handed
18804 # as -z defs.
18805 no_undefined_flag_CXX='${wl}-z,text'
18806 allow_undefined_flag_CXX='${wl}-z,nodefs'
18807 archive_cmds_need_lc_CXX=no
18808 hardcode_shlibpath_var_CXX=no
18809 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18810 hardcode_libdir_separator_CXX=':'
18811 link_all_deplibs_CXX=yes
18812 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18813 runpath_var='LD_RUN_PATH'
18814
18815 case $cc_basename in
18816 CC*)
18817 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18818 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 +000018819 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18820 '"$old_archive_cmds_CXX"
18821 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18822 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018823 ;;
18824 *)
18825 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18826 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18827 ;;
18828 esac
18829 ;;
18830
18831 tandem*)
18832 case $cc_basename in
18833 NCC*)
18834 # NonStop-UX NCC 3.20
18835 # FIXME: insert proper C++ library support
18836 ld_shlibs_CXX=no
18837 ;;
18838 *)
18839 # FIXME: insert proper C++ library support
18840 ld_shlibs_CXX=no
18841 ;;
18842 esac
18843 ;;
18844
18845 vxworks*)
18846 # FIXME: insert proper C++ library support
18847 ld_shlibs_CXX=no
18848 ;;
18849
18850 *)
18851 # FIXME: insert proper C++ library support
18852 ld_shlibs_CXX=no
18853 ;;
18854 esac
18855
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18857$as_echo "$ld_shlibs_CXX" >&6; }
18858 test "$ld_shlibs_CXX" = no && can_build_shared=no
18859
18860 GCC_CXX="$GXX"
18861 LD_CXX="$LD"
18862
18863 ## CAVEAT EMPTOR:
18864 ## There is no encapsulation within the following macros, do not change
18865 ## the running order or otherwise move them around unless you know exactly
18866 ## what you are doing...
18867 # Dependencies to place before and after the object being linked:
18868predep_objects_CXX=
18869postdep_objects_CXX=
18870predeps_CXX=
18871postdeps_CXX=
18872compiler_lib_search_path_CXX=
18873
18874cat > conftest.$ac_ext <<_LT_EOF
18875class Foo
18876{
18877public:
18878 Foo (void) { a = 0; }
18879private:
18880 int a;
18881};
18882_LT_EOF
18883
cristyda16f162011-02-19 23:52:17 +000018884
18885_lt_libdeps_save_CFLAGS=$CFLAGS
18886case "$CC $CFLAGS " in #(
18887*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18888*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018889*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018890esac
18891
cristy73bd4a52010-10-05 11:24:23 +000018892if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18893 (eval $ac_compile) 2>&5
18894 ac_status=$?
18895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18896 test $ac_status = 0; }; then
18897 # Parse the compiler output and extract the necessary
18898 # objects, libraries and library flags.
18899
18900 # Sentinel used to keep track of whether or not we are before
18901 # the conftest object file.
18902 pre_test_object_deps_done=no
18903
18904 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018905 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018906
18907 -L* | -R* | -l*)
18908 # Some compilers place space between "-{L,R}" and the path.
18909 # Remove the space.
18910 if test $p = "-L" ||
18911 test $p = "-R"; then
18912 prev=$p
18913 continue
cristy73bd4a52010-10-05 11:24:23 +000018914 fi
18915
cristyda16f162011-02-19 23:52:17 +000018916 # Expand the sysroot to ease extracting the directories later.
18917 if test -z "$prev"; then
18918 case $p in
18919 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18920 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18921 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18922 esac
18923 fi
18924 case $p in
18925 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18926 esac
cristy73bd4a52010-10-05 11:24:23 +000018927 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018928 case ${prev} in
18929 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018930 # Internal compiler library paths should come after those
18931 # provided the user. The postdeps already come after the
18932 # user supplied libs so there is no need to process them.
18933 if test -z "$compiler_lib_search_path_CXX"; then
18934 compiler_lib_search_path_CXX="${prev}${p}"
18935 else
18936 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18937 fi
18938 ;;
18939 # The "-l" case would never come before the object being
18940 # linked, so don't bother handling this case.
18941 esac
18942 else
18943 if test -z "$postdeps_CXX"; then
18944 postdeps_CXX="${prev}${p}"
18945 else
18946 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18947 fi
18948 fi
cristyda16f162011-02-19 23:52:17 +000018949 prev=
cristy73bd4a52010-10-05 11:24:23 +000018950 ;;
18951
cristyda16f162011-02-19 23:52:17 +000018952 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018953 *.$objext)
18954 # This assumes that the test object file only shows up
18955 # once in the compiler output.
18956 if test "$p" = "conftest.$objext"; then
18957 pre_test_object_deps_done=yes
18958 continue
18959 fi
18960
18961 if test "$pre_test_object_deps_done" = no; then
18962 if test -z "$predep_objects_CXX"; then
18963 predep_objects_CXX="$p"
18964 else
18965 predep_objects_CXX="$predep_objects_CXX $p"
18966 fi
18967 else
18968 if test -z "$postdep_objects_CXX"; then
18969 postdep_objects_CXX="$p"
18970 else
18971 postdep_objects_CXX="$postdep_objects_CXX $p"
18972 fi
18973 fi
18974 ;;
18975
18976 *) ;; # Ignore the rest.
18977
18978 esac
18979 done
18980
18981 # Clean up.
18982 rm -f a.out a.exe
18983else
18984 echo "libtool.m4: error: problem compiling CXX test program"
18985fi
18986
18987$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018988CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018989
18990# PORTME: override above test on systems where it is broken
18991case $host_os in
18992interix[3-9]*)
18993 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18994 # hack all around it, let's just trust "g++" to DTRT.
18995 predep_objects_CXX=
18996 postdep_objects_CXX=
18997 postdeps_CXX=
18998 ;;
18999
19000linux*)
19001 case `$CC -V 2>&1 | sed 5q` in
19002 *Sun\ C*)
19003 # Sun C++ 5.9
19004
19005 # The more standards-conforming stlport4 library is
19006 # incompatible with the Cstd library. Avoid specifying
19007 # it if it's in CXXFLAGS. Ignore libCrun as
19008 # -library=stlport4 depends on it.
19009 case " $CXX $CXXFLAGS " in
19010 *" -library=stlport4 "*)
19011 solaris_use_stlport4=yes
19012 ;;
19013 esac
19014
19015 if test "$solaris_use_stlport4" != yes; then
19016 postdeps_CXX='-library=Cstd -library=Crun'
19017 fi
19018 ;;
19019 esac
19020 ;;
19021
19022solaris*)
19023 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019024 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019025 # The more standards-conforming stlport4 library is
19026 # incompatible with the Cstd library. Avoid specifying
19027 # it if it's in CXXFLAGS. Ignore libCrun as
19028 # -library=stlport4 depends on it.
19029 case " $CXX $CXXFLAGS " in
19030 *" -library=stlport4 "*)
19031 solaris_use_stlport4=yes
19032 ;;
19033 esac
19034
19035 # Adding this requires a known-good setup of shared libraries for
19036 # Sun compiler versions before 5.6, else PIC objects from an old
19037 # archive will be linked into the output, leading to subtle bugs.
19038 if test "$solaris_use_stlport4" != yes; then
19039 postdeps_CXX='-library=Cstd -library=Crun'
19040 fi
19041 ;;
19042 esac
19043 ;;
19044esac
19045
19046
19047case " $postdeps_CXX " in
19048*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19049esac
19050 compiler_lib_search_dirs_CXX=
19051if test -n "${compiler_lib_search_path_CXX}"; then
19052 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19053fi
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085 lt_prog_compiler_wl_CXX=
19086lt_prog_compiler_pic_CXX=
19087lt_prog_compiler_static_CXX=
19088
cristy73bd4a52010-10-05 11:24:23 +000019089
19090 # C++ specific cases for pic, static, wl, etc.
19091 if test "$GXX" = yes; then
19092 lt_prog_compiler_wl_CXX='-Wl,'
19093 lt_prog_compiler_static_CXX='-static'
19094
19095 case $host_os in
19096 aix*)
19097 # All AIX code is PIC.
19098 if test "$host_cpu" = ia64; then
19099 # AIX 5 now supports IA64 processor
19100 lt_prog_compiler_static_CXX='-Bstatic'
19101 fi
19102 ;;
19103
19104 amigaos*)
19105 case $host_cpu in
19106 powerpc)
19107 # see comment about AmigaOS4 .so support
19108 lt_prog_compiler_pic_CXX='-fPIC'
19109 ;;
19110 m68k)
19111 # FIXME: we need at least 68020 code to build shared libraries, but
19112 # adding the `-m68020' flag to GCC prevents building anything better,
19113 # like `-m68040'.
19114 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19115 ;;
19116 esac
19117 ;;
19118
19119 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19120 # PIC is the default for these OSes.
19121 ;;
19122 mingw* | cygwin* | os2* | pw32* | cegcc*)
19123 # This hack is so that the source file can tell whether it is being
19124 # built for inclusion in a dll (and should export symbols for example).
19125 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19126 # (--disable-auto-import) libraries
19127 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19128 ;;
19129 darwin* | rhapsody*)
19130 # PIC is the default on this platform
19131 # Common symbols not allowed in MH_DYLIB files
19132 lt_prog_compiler_pic_CXX='-fno-common'
19133 ;;
19134 *djgpp*)
19135 # DJGPP does not support shared libraries at all
19136 lt_prog_compiler_pic_CXX=
19137 ;;
cristy0c60a692010-11-04 01:09:47 +000019138 haiku*)
19139 # PIC is the default for Haiku.
19140 # The "-static" flag exists, but is broken.
19141 lt_prog_compiler_static_CXX=
19142 ;;
cristy73bd4a52010-10-05 11:24:23 +000019143 interix[3-9]*)
19144 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19145 # Instead, we relocate shared libraries at runtime.
19146 ;;
19147 sysv4*MP*)
19148 if test -d /usr/nec; then
19149 lt_prog_compiler_pic_CXX=-Kconform_pic
19150 fi
19151 ;;
19152 hpux*)
19153 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19154 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19155 # sets the default TLS model and affects inlining.
19156 case $host_cpu in
19157 hppa*64*)
19158 ;;
19159 *)
19160 lt_prog_compiler_pic_CXX='-fPIC'
19161 ;;
19162 esac
19163 ;;
19164 *qnx* | *nto*)
19165 # QNX uses GNU C++, but need to define -shared option too, otherwise
19166 # it will coredump.
19167 lt_prog_compiler_pic_CXX='-fPIC -shared'
19168 ;;
19169 *)
19170 lt_prog_compiler_pic_CXX='-fPIC'
19171 ;;
19172 esac
19173 else
19174 case $host_os in
19175 aix[4-9]*)
19176 # All AIX code is PIC.
19177 if test "$host_cpu" = ia64; then
19178 # AIX 5 now supports IA64 processor
19179 lt_prog_compiler_static_CXX='-Bstatic'
19180 else
19181 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19182 fi
19183 ;;
19184 chorus*)
19185 case $cc_basename in
19186 cxch68*)
19187 # Green Hills C++ Compiler
19188 # _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"
19189 ;;
19190 esac
19191 ;;
cristyda16f162011-02-19 23:52:17 +000019192 mingw* | cygwin* | os2* | pw32* | cegcc*)
19193 # This hack is so that the source file can tell whether it is being
19194 # built for inclusion in a dll (and should export symbols for example).
19195 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19196 ;;
cristy73bd4a52010-10-05 11:24:23 +000019197 dgux*)
19198 case $cc_basename in
19199 ec++*)
19200 lt_prog_compiler_pic_CXX='-KPIC'
19201 ;;
19202 ghcx*)
19203 # Green Hills C++ Compiler
19204 lt_prog_compiler_pic_CXX='-pic'
19205 ;;
19206 *)
19207 ;;
19208 esac
19209 ;;
19210 freebsd* | dragonfly*)
19211 # FreeBSD uses GNU C++
19212 ;;
19213 hpux9* | hpux10* | hpux11*)
19214 case $cc_basename in
19215 CC*)
19216 lt_prog_compiler_wl_CXX='-Wl,'
19217 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19218 if test "$host_cpu" != ia64; then
19219 lt_prog_compiler_pic_CXX='+Z'
19220 fi
19221 ;;
19222 aCC*)
19223 lt_prog_compiler_wl_CXX='-Wl,'
19224 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19225 case $host_cpu in
19226 hppa*64*|ia64*)
19227 # +Z the default
19228 ;;
19229 *)
19230 lt_prog_compiler_pic_CXX='+Z'
19231 ;;
19232 esac
19233 ;;
19234 *)
19235 ;;
19236 esac
19237 ;;
19238 interix*)
19239 # This is c89, which is MS Visual C++ (no shared libs)
19240 # Anyone wants to do a port?
19241 ;;
19242 irix5* | irix6* | nonstopux*)
19243 case $cc_basename in
19244 CC*)
19245 lt_prog_compiler_wl_CXX='-Wl,'
19246 lt_prog_compiler_static_CXX='-non_shared'
19247 # CC pic flag -KPIC is the default.
19248 ;;
19249 *)
19250 ;;
19251 esac
19252 ;;
cristy0c60a692010-11-04 01:09:47 +000019253 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019254 case $cc_basename in
19255 KCC*)
19256 # KAI C++ Compiler
19257 lt_prog_compiler_wl_CXX='--backend -Wl,'
19258 lt_prog_compiler_pic_CXX='-fPIC'
19259 ;;
19260 ecpc* )
19261 # old Intel C++ for x86_64 which still supported -KPIC.
19262 lt_prog_compiler_wl_CXX='-Wl,'
19263 lt_prog_compiler_pic_CXX='-KPIC'
19264 lt_prog_compiler_static_CXX='-static'
19265 ;;
19266 icpc* )
19267 # Intel C++, used to be incompatible with GCC.
19268 # ICC 10 doesn't accept -KPIC any more.
19269 lt_prog_compiler_wl_CXX='-Wl,'
19270 lt_prog_compiler_pic_CXX='-fPIC'
19271 lt_prog_compiler_static_CXX='-static'
19272 ;;
19273 pgCC* | pgcpp*)
19274 # Portland Group C++ compiler
19275 lt_prog_compiler_wl_CXX='-Wl,'
19276 lt_prog_compiler_pic_CXX='-fpic'
19277 lt_prog_compiler_static_CXX='-Bstatic'
19278 ;;
19279 cxx*)
19280 # Compaq C++
19281 # Make sure the PIC flag is empty. It appears that all Alpha
19282 # Linux and Compaq Tru64 Unix objects are PIC.
19283 lt_prog_compiler_pic_CXX=
19284 lt_prog_compiler_static_CXX='-non_shared'
19285 ;;
cristy0c60a692010-11-04 01:09:47 +000019286 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19287 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019288 lt_prog_compiler_wl_CXX='-Wl,'
19289 lt_prog_compiler_pic_CXX='-qpic'
19290 lt_prog_compiler_static_CXX='-qstaticlink'
19291 ;;
19292 *)
19293 case `$CC -V 2>&1 | sed 5q` in
19294 *Sun\ C*)
19295 # Sun C++ 5.9
19296 lt_prog_compiler_pic_CXX='-KPIC'
19297 lt_prog_compiler_static_CXX='-Bstatic'
19298 lt_prog_compiler_wl_CXX='-Qoption ld '
19299 ;;
19300 esac
19301 ;;
19302 esac
19303 ;;
19304 lynxos*)
19305 ;;
19306 m88k*)
19307 ;;
19308 mvs*)
19309 case $cc_basename in
19310 cxx*)
19311 lt_prog_compiler_pic_CXX='-W c,exportall'
19312 ;;
19313 *)
19314 ;;
19315 esac
19316 ;;
19317 netbsd*)
19318 ;;
19319 *qnx* | *nto*)
19320 # QNX uses GNU C++, but need to define -shared option too, otherwise
19321 # it will coredump.
19322 lt_prog_compiler_pic_CXX='-fPIC -shared'
19323 ;;
19324 osf3* | osf4* | osf5*)
19325 case $cc_basename in
19326 KCC*)
19327 lt_prog_compiler_wl_CXX='--backend -Wl,'
19328 ;;
19329 RCC*)
19330 # Rational C++ 2.4.1
19331 lt_prog_compiler_pic_CXX='-pic'
19332 ;;
19333 cxx*)
19334 # Digital/Compaq C++
19335 lt_prog_compiler_wl_CXX='-Wl,'
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 ;;
19341 *)
19342 ;;
19343 esac
19344 ;;
19345 psos*)
19346 ;;
19347 solaris*)
19348 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019349 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019350 # Sun C++ 4.2, 5.x and Centerline C++
19351 lt_prog_compiler_pic_CXX='-KPIC'
19352 lt_prog_compiler_static_CXX='-Bstatic'
19353 lt_prog_compiler_wl_CXX='-Qoption ld '
19354 ;;
19355 gcx*)
19356 # Green Hills C++ Compiler
19357 lt_prog_compiler_pic_CXX='-PIC'
19358 ;;
19359 *)
19360 ;;
19361 esac
19362 ;;
19363 sunos4*)
19364 case $cc_basename in
19365 CC*)
19366 # Sun C++ 4.x
19367 lt_prog_compiler_pic_CXX='-pic'
19368 lt_prog_compiler_static_CXX='-Bstatic'
19369 ;;
19370 lcc*)
19371 # Lucid
19372 lt_prog_compiler_pic_CXX='-pic'
19373 ;;
19374 *)
19375 ;;
19376 esac
19377 ;;
19378 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19379 case $cc_basename in
19380 CC*)
19381 lt_prog_compiler_wl_CXX='-Wl,'
19382 lt_prog_compiler_pic_CXX='-KPIC'
19383 lt_prog_compiler_static_CXX='-Bstatic'
19384 ;;
19385 esac
19386 ;;
19387 tandem*)
19388 case $cc_basename in
19389 NCC*)
19390 # NonStop-UX NCC 3.20
19391 lt_prog_compiler_pic_CXX='-KPIC'
19392 ;;
19393 *)
19394 ;;
19395 esac
19396 ;;
19397 vxworks*)
19398 ;;
19399 *)
19400 lt_prog_compiler_can_build_shared_CXX=no
19401 ;;
19402 esac
19403 fi
19404
19405case $host_os in
19406 # For platforms which do not support PIC, -DPIC is meaningless:
19407 *djgpp*)
19408 lt_prog_compiler_pic_CXX=
19409 ;;
19410 *)
19411 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19412 ;;
19413esac
cristy73bd4a52010-10-05 11:24:23 +000019414
cristyda16f162011-02-19 23:52:17 +000019415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19416$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19417if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19418 $as_echo_n "(cached) " >&6
19419else
19420 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19421fi
19422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19423$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19424lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019425
19426#
19427# Check to make sure the PIC flag actually works.
19428#
19429if test -n "$lt_prog_compiler_pic_CXX"; then
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19431$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019432if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019433 $as_echo_n "(cached) " >&6
19434else
19435 lt_cv_prog_compiler_pic_works_CXX=no
19436 ac_outfile=conftest.$ac_objext
19437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19438 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19439 # Insert the option either (1) after the last *FLAGS variable, or
19440 # (2) before a word containing "conftest.", or (3) at the end.
19441 # Note that $ac_compile itself does not contain backslashes and begins
19442 # with a dollar sign (not a hyphen), so the echo should work correctly.
19443 # The option is referenced via a variable to avoid confusing sed.
19444 lt_compile=`echo "$ac_compile" | $SED \
19445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19447 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019449 (eval "$lt_compile" 2>conftest.err)
19450 ac_status=$?
19451 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019453 if (exit $ac_status) && test -s "$ac_outfile"; then
19454 # The compiler can only warn and ignore the option if not recognized
19455 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19459 lt_cv_prog_compiler_pic_works_CXX=yes
19460 fi
19461 fi
19462 $RM conftest*
19463
19464fi
19465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19466$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19467
19468if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19469 case $lt_prog_compiler_pic_CXX in
19470 "" | " "*) ;;
19471 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19472 esac
19473else
19474 lt_prog_compiler_pic_CXX=
19475 lt_prog_compiler_can_build_shared_CXX=no
19476fi
19477
19478fi
19479
19480
19481
cristyda16f162011-02-19 23:52:17 +000019482
19483
cristy73bd4a52010-10-05 11:24:23 +000019484#
19485# Check to make sure the static flag actually works.
19486#
19487wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19489$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019490if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019491 $as_echo_n "(cached) " >&6
19492else
19493 lt_cv_prog_compiler_static_works_CXX=no
19494 save_LDFLAGS="$LDFLAGS"
19495 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19496 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19497 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19498 # The linker can only warn and ignore the option if not recognized
19499 # So say no if there are warnings
19500 if test -s conftest.err; then
19501 # Append any errors to the config.log.
19502 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019503 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019504 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19505 if diff conftest.exp conftest.er2 >/dev/null; then
19506 lt_cv_prog_compiler_static_works_CXX=yes
19507 fi
19508 else
19509 lt_cv_prog_compiler_static_works_CXX=yes
19510 fi
19511 fi
19512 $RM -r conftest*
19513 LDFLAGS="$save_LDFLAGS"
19514
19515fi
19516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19517$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19518
19519if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19520 :
19521else
19522 lt_prog_compiler_static_CXX=
19523fi
19524
19525
19526
19527
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19529$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019530if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019531 $as_echo_n "(cached) " >&6
19532else
19533 lt_cv_prog_compiler_c_o_CXX=no
19534 $RM -r conftest 2>/dev/null
19535 mkdir conftest
19536 cd conftest
19537 mkdir out
19538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19539
19540 lt_compiler_flag="-o out/conftest2.$ac_objext"
19541 # Insert the option either (1) after the last *FLAGS variable, or
19542 # (2) before a word containing "conftest.", or (3) at the end.
19543 # Note that $ac_compile itself does not contain backslashes and begins
19544 # with a dollar sign (not a hyphen), so the echo should work correctly.
19545 lt_compile=`echo "$ac_compile" | $SED \
19546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19548 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019550 (eval "$lt_compile" 2>out/conftest.err)
19551 ac_status=$?
19552 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19555 then
19556 # The compiler can only warn and ignore the option if not recognized
19557 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19561 lt_cv_prog_compiler_c_o_CXX=yes
19562 fi
19563 fi
19564 chmod u+w . 2>&5
19565 $RM conftest*
19566 # SGI C++ compiler will create directory out/ii_files/ for
19567 # template instantiation
19568 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19569 $RM out/* && rmdir out
19570 cd ..
19571 $RM -r conftest
19572 $RM conftest*
19573
19574fi
19575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19576$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19577
19578
19579
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19581$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019582if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019583 $as_echo_n "(cached) " >&6
19584else
19585 lt_cv_prog_compiler_c_o_CXX=no
19586 $RM -r conftest 2>/dev/null
19587 mkdir conftest
19588 cd conftest
19589 mkdir out
19590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19591
19592 lt_compiler_flag="-o out/conftest2.$ac_objext"
19593 # Insert the option either (1) after the last *FLAGS variable, or
19594 # (2) before a word containing "conftest.", or (3) at the end.
19595 # Note that $ac_compile itself does not contain backslashes and begins
19596 # with a dollar sign (not a hyphen), so the echo should work correctly.
19597 lt_compile=`echo "$ac_compile" | $SED \
19598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19600 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019602 (eval "$lt_compile" 2>out/conftest.err)
19603 ac_status=$?
19604 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19607 then
19608 # The compiler can only warn and ignore the option if not recognized
19609 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19613 lt_cv_prog_compiler_c_o_CXX=yes
19614 fi
19615 fi
19616 chmod u+w . 2>&5
19617 $RM conftest*
19618 # SGI C++ compiler will create directory out/ii_files/ for
19619 # template instantiation
19620 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19621 $RM out/* && rmdir out
19622 cd ..
19623 $RM -r conftest
19624 $RM conftest*
19625
19626fi
19627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19628$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19629
19630
19631
19632
19633hard_links="nottested"
19634if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19635 # do not overwrite the value of need_locks provided by the user
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19637$as_echo_n "checking if we can lock with hard links... " >&6; }
19638 hard_links=yes
19639 $RM conftest*
19640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19641 touch conftest.a
19642 ln conftest.a conftest.b 2>&5 || hard_links=no
19643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19645$as_echo "$hard_links" >&6; }
19646 if test "$hard_links" = no; then
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19648$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19649 need_locks=warn
19650 fi
19651else
19652 need_locks=no
19653fi
19654
19655
19656
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19658$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19659
19660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019661 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019662 case $host_os in
19663 aix[4-9]*)
19664 # If we're using GNU nm, then we don't want the "-C" option.
19665 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019666 # Also, AIX nm treats weak defined symbols like other global defined
19667 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019668 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019669 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 +000019670 else
19671 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'
19672 fi
19673 ;;
19674 pw32*)
19675 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019676 ;;
cristy73bd4a52010-10-05 11:24:23 +000019677 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019678 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019679 cl*)
19680 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19681 ;;
cristyda16f162011-02-19 23:52:17 +000019682 *)
19683 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'
19684 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19685 ;;
19686 esac
19687 ;;
cristy73bd4a52010-10-05 11:24:23 +000019688 *)
19689 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019690 ;;
cristy73bd4a52010-10-05 11:24:23 +000019691 esac
cristy73bd4a52010-10-05 11:24:23 +000019692
19693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19694$as_echo "$ld_shlibs_CXX" >&6; }
19695test "$ld_shlibs_CXX" = no && can_build_shared=no
19696
19697with_gnu_ld_CXX=$with_gnu_ld
19698
19699
19700
19701
19702
19703
19704#
19705# Do we need to explicitly link libc?
19706#
19707case "x$archive_cmds_need_lc_CXX" in
19708x|xyes)
19709 # Assume -lc should be added
19710 archive_cmds_need_lc_CXX=yes
19711
19712 if test "$enable_shared" = yes && test "$GCC" = yes; then
19713 case $archive_cmds_CXX in
19714 *'~'*)
19715 # FIXME: we may have to deal with multi-command sequences.
19716 ;;
19717 '$CC '*)
19718 # Test whether the compiler implicitly links with -lc since on some
19719 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19720 # to ld, don't add -lc before -lgcc.
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19722$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019723if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019724 $as_echo_n "(cached) " >&6
19725else
19726 $RM conftest*
19727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019728
cristy0c60a692010-11-04 01:09:47 +000019729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019730 (eval $ac_compile) 2>&5
19731 ac_status=$?
19732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19733 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019734 soname=conftest
19735 lib=conftest
19736 libobjs=conftest.$ac_objext
19737 deplibs=
19738 wl=$lt_prog_compiler_wl_CXX
19739 pic_flag=$lt_prog_compiler_pic_CXX
19740 compiler_flags=-v
19741 linker_flags=-v
19742 verstring=
19743 output_objdir=.
19744 libname=conftest
19745 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19746 allow_undefined_flag_CXX=
19747 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 +000019748 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19749 ac_status=$?
19750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19751 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019752 then
19753 lt_cv_archive_cmds_need_lc_CXX=no
19754 else
19755 lt_cv_archive_cmds_need_lc_CXX=yes
19756 fi
19757 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19758 else
19759 cat conftest.err 1>&5
19760 fi
19761 $RM conftest*
19762
19763fi
19764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19765$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19766 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019767 ;;
19768 esac
19769 fi
19770 ;;
19771esac
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
cristy73bd4a52010-10-05 11:24:23 +000019834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19835$as_echo_n "checking dynamic linker characteristics... " >&6; }
19836
19837library_names_spec=
19838libname_spec='lib$name'
19839soname_spec=
19840shrext_cmds=".so"
19841postinstall_cmds=
19842postuninstall_cmds=
19843finish_cmds=
19844finish_eval=
19845shlibpath_var=
19846shlibpath_overrides_runpath=unknown
19847version_type=none
19848dynamic_linker="$host_os ld.so"
19849sys_lib_dlsearch_path_spec="/lib /usr/lib"
19850need_lib_prefix=unknown
19851hardcode_into_libs=no
19852
19853# when you set need_version to no, make sure it does not cause -set_version
19854# flags to be left without arguments
19855need_version=unknown
19856
19857case $host_os in
19858aix3*)
cristy99bd5232011-12-07 14:38:20 +000019859 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19861 shlibpath_var=LIBPATH
19862
19863 # AIX 3 has no versioning support, so we append a major version to the name.
19864 soname_spec='${libname}${release}${shared_ext}$major'
19865 ;;
19866
19867aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019868 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019869 need_lib_prefix=no
19870 need_version=no
19871 hardcode_into_libs=yes
19872 if test "$host_cpu" = ia64; then
19873 # AIX 5 supports IA64
19874 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19875 shlibpath_var=LD_LIBRARY_PATH
19876 else
19877 # With GCC up to 2.95.x, collect2 would create an import file
19878 # for dependence libraries. The import file would start with
19879 # the line `#! .'. This would cause the generated library to
19880 # depend on `.', always an invalid library. This was fixed in
19881 # development snapshots of GCC prior to 3.0.
19882 case $host_os in
19883 aix4 | aix4.[01] | aix4.[01].*)
19884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19885 echo ' yes '
19886 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19887 :
19888 else
19889 can_build_shared=no
19890 fi
19891 ;;
19892 esac
19893 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19894 # soname into executable. Probably we can add versioning support to
19895 # collect2, so additional links can be useful in future.
19896 if test "$aix_use_runtimelinking" = yes; then
19897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19898 # instead of lib<name>.a to let people know that these are not
19899 # typical AIX shared libraries.
19900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19901 else
19902 # We preserve .a as extension for shared libraries through AIX4.2
19903 # and later when we are not doing run time linking.
19904 library_names_spec='${libname}${release}.a $libname.a'
19905 soname_spec='${libname}${release}${shared_ext}$major'
19906 fi
19907 shlibpath_var=LIBPATH
19908 fi
19909 ;;
19910
19911amigaos*)
19912 case $host_cpu in
19913 powerpc)
19914 # Since July 2007 AmigaOS4 officially supports .so libraries.
19915 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19917 ;;
19918 m68k)
19919 library_names_spec='$libname.ixlibrary $libname.a'
19920 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019921 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 +000019922 ;;
19923 esac
19924 ;;
19925
19926beos*)
19927 library_names_spec='${libname}${shared_ext}'
19928 dynamic_linker="$host_os ld.so"
19929 shlibpath_var=LIBRARY_PATH
19930 ;;
19931
19932bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019933 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019934 need_version=no
19935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19936 soname_spec='${libname}${release}${shared_ext}$major'
19937 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19938 shlibpath_var=LD_LIBRARY_PATH
19939 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19940 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19941 # the default ld.so.conf also contains /usr/contrib/lib and
19942 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19943 # libtool to hard-code these into programs
19944 ;;
19945
19946cygwin* | mingw* | pw32* | cegcc*)
19947 version_type=windows
19948 shrext_cmds=".dll"
19949 need_version=no
19950 need_lib_prefix=no
19951
cristyda16f162011-02-19 23:52:17 +000019952 case $GCC,$cc_basename in
19953 yes,*)
19954 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019955 library_names_spec='$libname.dll.a'
19956 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19957 postinstall_cmds='base_file=`basename \${file}`~
19958 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19959 dldir=$destdir/`dirname \$dlpath`~
19960 test -d \$dldir || mkdir -p \$dldir~
19961 $install_prog $dir/$dlname \$dldir/$dlname~
19962 chmod a+x \$dldir/$dlname~
19963 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19964 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19965 fi'
19966 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19967 dlpath=$dir/\$dldll~
19968 $RM \$dlpath'
19969 shlibpath_overrides_runpath=yes
19970
19971 case $host_os in
19972 cygwin*)
19973 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19974 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019975
cristy73bd4a52010-10-05 11:24:23 +000019976 ;;
19977 mingw* | cegcc*)
19978 # MinGW DLLs use traditional 'lib' prefix
19979 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019980 ;;
19981 pw32*)
19982 # pw32 DLLs use 'pw' prefix rather than 'lib'
19983 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19984 ;;
19985 esac
cristyda16f162011-02-19 23:52:17 +000019986 dynamic_linker='Win32 ld.exe'
19987 ;;
19988
19989 *,cl*)
19990 # Native MSVC
19991 libname_spec='$name'
19992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19993 library_names_spec='${libname}.dll.lib'
19994
19995 case $build_os in
19996 mingw*)
19997 sys_lib_search_path_spec=
19998 lt_save_ifs=$IFS
19999 IFS=';'
20000 for lt_path in $LIB
20001 do
20002 IFS=$lt_save_ifs
20003 # Let DOS variable expansion print the short 8.3 style file name.
20004 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20005 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20006 done
20007 IFS=$lt_save_ifs
20008 # Convert to MSYS style.
20009 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20010 ;;
20011 cygwin*)
20012 # Convert to unix form, then to dos form, then back to unix form
20013 # but this time dos style (no spaces!) so that the unix form looks
20014 # like /cygdrive/c/PROGRA~1:/cygdr...
20015 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20016 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20017 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20018 ;;
20019 *)
20020 sys_lib_search_path_spec="$LIB"
20021 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20022 # It is most probably a Windows format PATH.
20023 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20024 else
20025 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20026 fi
20027 # FIXME: find the short name or the path components, as spaces are
20028 # common. (e.g. "Program Files" -> "PROGRA~1")
20029 ;;
20030 esac
20031
20032 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20033 postinstall_cmds='base_file=`basename \${file}`~
20034 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20035 dldir=$destdir/`dirname \$dlpath`~
20036 test -d \$dldir || mkdir -p \$dldir~
20037 $install_prog $dir/$dlname \$dldir/$dlname'
20038 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20039 dlpath=$dir/\$dldll~
20040 $RM \$dlpath'
20041 shlibpath_overrides_runpath=yes
20042 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020043 ;;
20044
20045 *)
cristyda16f162011-02-19 23:52:17 +000020046 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020047 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020048 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020049 ;;
20050 esac
cristy73bd4a52010-10-05 11:24:23 +000020051 # FIXME: first we should search . and the directory the executable is in
20052 shlibpath_var=PATH
20053 ;;
20054
20055darwin* | rhapsody*)
20056 dynamic_linker="$host_os dyld"
20057 version_type=darwin
20058 need_lib_prefix=no
20059 need_version=no
20060 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20061 soname_spec='${libname}${release}${major}$shared_ext'
20062 shlibpath_overrides_runpath=yes
20063 shlibpath_var=DYLD_LIBRARY_PATH
20064 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20065
20066 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20067 ;;
20068
20069dgux*)
cristy99bd5232011-12-07 14:38:20 +000020070 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020071 need_lib_prefix=no
20072 need_version=no
20073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20074 soname_spec='${libname}${release}${shared_ext}$major'
20075 shlibpath_var=LD_LIBRARY_PATH
20076 ;;
20077
cristy73bd4a52010-10-05 11:24:23 +000020078freebsd* | dragonfly*)
20079 # DragonFly does not have aout. When/if they implement a new
20080 # versioning mechanism, adjust this.
20081 if test -x /usr/bin/objformat; then
20082 objformat=`/usr/bin/objformat`
20083 else
20084 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020085 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020086 *) objformat=elf ;;
20087 esac
20088 fi
20089 version_type=freebsd-$objformat
20090 case $version_type in
20091 freebsd-elf*)
20092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20093 need_version=no
20094 need_lib_prefix=no
20095 ;;
20096 freebsd-*)
20097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20098 need_version=yes
20099 ;;
20100 esac
20101 shlibpath_var=LD_LIBRARY_PATH
20102 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020103 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020104 shlibpath_overrides_runpath=yes
20105 ;;
20106 freebsd3.[01]* | freebsdelf3.[01]*)
20107 shlibpath_overrides_runpath=yes
20108 hardcode_into_libs=yes
20109 ;;
20110 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20111 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20112 shlibpath_overrides_runpath=no
20113 hardcode_into_libs=yes
20114 ;;
20115 *) # from 4.6 on, and DragonFly
20116 shlibpath_overrides_runpath=yes
20117 hardcode_into_libs=yes
20118 ;;
20119 esac
20120 ;;
20121
20122gnu*)
cristy99bd5232011-12-07 14:38:20 +000020123 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020124 need_lib_prefix=no
20125 need_version=no
20126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20127 soname_spec='${libname}${release}${shared_ext}$major'
20128 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020129 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020130 hardcode_into_libs=yes
20131 ;;
20132
cristy0c60a692010-11-04 01:09:47 +000020133haiku*)
cristy99bd5232011-12-07 14:38:20 +000020134 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020135 need_lib_prefix=no
20136 need_version=no
20137 dynamic_linker="$host_os runtime_loader"
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20139 soname_spec='${libname}${release}${shared_ext}$major'
20140 shlibpath_var=LIBRARY_PATH
20141 shlibpath_overrides_runpath=yes
20142 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20143 hardcode_into_libs=yes
20144 ;;
20145
cristy73bd4a52010-10-05 11:24:23 +000020146hpux9* | hpux10* | hpux11*)
20147 # Give a soname corresponding to the major version so that dld.sl refuses to
20148 # link against other versions.
20149 version_type=sunos
20150 need_lib_prefix=no
20151 need_version=no
20152 case $host_cpu in
20153 ia64*)
20154 shrext_cmds='.so'
20155 hardcode_into_libs=yes
20156 dynamic_linker="$host_os dld.so"
20157 shlibpath_var=LD_LIBRARY_PATH
20158 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20160 soname_spec='${libname}${release}${shared_ext}$major'
20161 if test "X$HPUX_IA64_MODE" = X32; then
20162 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20163 else
20164 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20165 fi
20166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20167 ;;
20168 hppa*64*)
20169 shrext_cmds='.sl'
20170 hardcode_into_libs=yes
20171 dynamic_linker="$host_os dld.sl"
20172 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20175 soname_spec='${libname}${release}${shared_ext}$major'
20176 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20178 ;;
20179 *)
20180 shrext_cmds='.sl'
20181 dynamic_linker="$host_os dld.sl"
20182 shlibpath_var=SHLIB_PATH
20183 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20185 soname_spec='${libname}${release}${shared_ext}$major'
20186 ;;
20187 esac
cristy0c60a692010-11-04 01:09:47 +000020188 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020189 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020190 # or fails outright, so override atomically:
20191 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020192 ;;
20193
20194interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020195 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020196 need_lib_prefix=no
20197 need_version=no
20198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20199 soname_spec='${libname}${release}${shared_ext}$major'
20200 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20201 shlibpath_var=LD_LIBRARY_PATH
20202 shlibpath_overrides_runpath=no
20203 hardcode_into_libs=yes
20204 ;;
20205
20206irix5* | irix6* | nonstopux*)
20207 case $host_os in
20208 nonstopux*) version_type=nonstopux ;;
20209 *)
20210 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020211 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020212 else
20213 version_type=irix
20214 fi ;;
20215 esac
20216 need_lib_prefix=no
20217 need_version=no
20218 soname_spec='${libname}${release}${shared_ext}$major'
20219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20220 case $host_os in
20221 irix5* | nonstopux*)
20222 libsuff= shlibsuff=
20223 ;;
20224 *)
20225 case $LD in # libtool.m4 will add one of these switches to LD
20226 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20227 libsuff= shlibsuff= libmagic=32-bit;;
20228 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20229 libsuff=32 shlibsuff=N32 libmagic=N32;;
20230 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20231 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20232 *) libsuff= shlibsuff= libmagic=never-match;;
20233 esac
20234 ;;
20235 esac
20236 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20237 shlibpath_overrides_runpath=no
20238 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20239 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20240 hardcode_into_libs=yes
20241 ;;
20242
20243# No shared lib support for Linux oldld, aout, or coff.
20244linux*oldld* | linux*aout* | linux*coff*)
20245 dynamic_linker=no
20246 ;;
20247
cristy99bd5232011-12-07 14:38:20 +000020248# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020249linux* | k*bsd*-gnu | kopensolaris*-gnu)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20256 shlibpath_var=LD_LIBRARY_PATH
20257 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020258
cristy73bd4a52010-10-05 11:24:23 +000020259 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020260 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020261 $as_echo_n "(cached) " >&6
20262else
20263 lt_cv_shlibpath_overrides_runpath=no
20264 save_LDFLAGS=$LDFLAGS
20265 save_libdir=$libdir
20266 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20267 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020269/* end confdefs.h. */
20270
20271int
20272main ()
20273{
20274
20275 ;
20276 return 0;
20277}
20278_ACEOF
20279if ac_fn_cxx_try_link "$LINENO"; then :
20280 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020281 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020282fi
20283fi
20284rm -f core conftest.err conftest.$ac_objext \
20285 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020286 LDFLAGS=$save_LDFLAGS
20287 libdir=$save_libdir
20288
20289fi
20290
20291 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020292
20293 # This implies no fast_install, which is unacceptable.
20294 # Some rework will be needed to allow for fast_install
20295 # before this can be enabled.
20296 hardcode_into_libs=yes
20297
20298 # Add ABI-specific directories to the system library path.
20299 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20300
20301 # Append ld.so.conf contents to the search path
20302 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020303 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 +000020304 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020305
cristy73bd4a52010-10-05 11:24:23 +000020306 fi
20307
20308 # We used to test for /lib/ld.so.1 and disable shared libraries on
20309 # powerpc, because MkLinux only supported shared libraries with the
20310 # GNU dynamic linker. Since this was broken with cross compilers,
20311 # most powerpc-linux boxes support dynamic linking these days and
20312 # people can always --disable-shared, the test was removed, and we
20313 # assume the GNU/Linux dynamic linker is in use.
20314 dynamic_linker='GNU/Linux ld.so'
20315 ;;
20316
20317netbsd*)
20318 version_type=sunos
20319 need_lib_prefix=no
20320 need_version=no
20321 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20324 dynamic_linker='NetBSD (a.out) ld.so'
20325 else
20326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20327 soname_spec='${libname}${release}${shared_ext}$major'
20328 dynamic_linker='NetBSD ld.elf_so'
20329 fi
20330 shlibpath_var=LD_LIBRARY_PATH
20331 shlibpath_overrides_runpath=yes
20332 hardcode_into_libs=yes
20333 ;;
20334
20335newsos6)
cristy99bd5232011-12-07 14:38:20 +000020336 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338 shlibpath_var=LD_LIBRARY_PATH
20339 shlibpath_overrides_runpath=yes
20340 ;;
20341
20342*nto* | *qnx*)
20343 version_type=qnx
20344 need_lib_prefix=no
20345 need_version=no
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347 soname_spec='${libname}${release}${shared_ext}$major'
20348 shlibpath_var=LD_LIBRARY_PATH
20349 shlibpath_overrides_runpath=no
20350 hardcode_into_libs=yes
20351 dynamic_linker='ldqnx.so'
20352 ;;
20353
20354openbsd*)
20355 version_type=sunos
20356 sys_lib_dlsearch_path_spec="/usr/lib"
20357 need_lib_prefix=no
20358 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20359 case $host_os in
20360 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20361 *) need_version=no ;;
20362 esac
20363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20365 shlibpath_var=LD_LIBRARY_PATH
20366 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20367 case $host_os in
20368 openbsd2.[89] | openbsd2.[89].*)
20369 shlibpath_overrides_runpath=no
20370 ;;
20371 *)
20372 shlibpath_overrides_runpath=yes
20373 ;;
20374 esac
20375 else
20376 shlibpath_overrides_runpath=yes
20377 fi
20378 ;;
20379
20380os2*)
20381 libname_spec='$name'
20382 shrext_cmds=".dll"
20383 need_lib_prefix=no
20384 library_names_spec='$libname${shared_ext} $libname.a'
20385 dynamic_linker='OS/2 ld.exe'
20386 shlibpath_var=LIBPATH
20387 ;;
20388
20389osf3* | osf4* | osf5*)
20390 version_type=osf
20391 need_lib_prefix=no
20392 need_version=no
20393 soname_spec='${libname}${release}${shared_ext}$major'
20394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20395 shlibpath_var=LD_LIBRARY_PATH
20396 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20397 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20398 ;;
20399
20400rdos*)
20401 dynamic_linker=no
20402 ;;
20403
20404solaris*)
cristy99bd5232011-12-07 14:38:20 +000020405 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020406 need_lib_prefix=no
20407 need_version=no
20408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20409 soname_spec='${libname}${release}${shared_ext}$major'
20410 shlibpath_var=LD_LIBRARY_PATH
20411 shlibpath_overrides_runpath=yes
20412 hardcode_into_libs=yes
20413 # ldd complains unless libraries are executable
20414 postinstall_cmds='chmod +x $lib'
20415 ;;
20416
20417sunos4*)
20418 version_type=sunos
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20420 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20421 shlibpath_var=LD_LIBRARY_PATH
20422 shlibpath_overrides_runpath=yes
20423 if test "$with_gnu_ld" = yes; then
20424 need_lib_prefix=no
20425 fi
20426 need_version=yes
20427 ;;
20428
20429sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020430 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20432 soname_spec='${libname}${release}${shared_ext}$major'
20433 shlibpath_var=LD_LIBRARY_PATH
20434 case $host_vendor in
20435 sni)
20436 shlibpath_overrides_runpath=no
20437 need_lib_prefix=no
20438 runpath_var=LD_RUN_PATH
20439 ;;
20440 siemens)
20441 need_lib_prefix=no
20442 ;;
20443 motorola)
20444 need_lib_prefix=no
20445 need_version=no
20446 shlibpath_overrides_runpath=no
20447 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20448 ;;
20449 esac
20450 ;;
20451
20452sysv4*MP*)
20453 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020454 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020455 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20456 soname_spec='$libname${shared_ext}.$major'
20457 shlibpath_var=LD_LIBRARY_PATH
20458 fi
20459 ;;
20460
20461sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20462 version_type=freebsd-elf
20463 need_lib_prefix=no
20464 need_version=no
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20466 soname_spec='${libname}${release}${shared_ext}$major'
20467 shlibpath_var=LD_LIBRARY_PATH
20468 shlibpath_overrides_runpath=yes
20469 hardcode_into_libs=yes
20470 if test "$with_gnu_ld" = yes; then
20471 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20472 else
20473 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20474 case $host_os in
20475 sco3.2v5*)
20476 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20477 ;;
20478 esac
20479 fi
20480 sys_lib_dlsearch_path_spec='/usr/lib'
20481 ;;
20482
20483tpf*)
20484 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
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 need_lib_prefix=no
20487 need_version=no
20488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489 shlibpath_var=LD_LIBRARY_PATH
20490 shlibpath_overrides_runpath=no
20491 hardcode_into_libs=yes
20492 ;;
20493
20494uts4*)
cristy99bd5232011-12-07 14:38:20 +000020495 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20497 soname_spec='${libname}${release}${shared_ext}$major'
20498 shlibpath_var=LD_LIBRARY_PATH
20499 ;;
20500
20501*)
20502 dynamic_linker=no
20503 ;;
20504esac
20505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20506$as_echo "$dynamic_linker" >&6; }
20507test "$dynamic_linker" = no && can_build_shared=no
20508
20509variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20510if test "$GCC" = yes; then
20511 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20512fi
20513
20514if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20515 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20516fi
20517if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20518 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20519fi
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
cristy0c60a692010-11-04 01:09:47 +000020556
20557
cristy73bd4a52010-10-05 11:24:23 +000020558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20559$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20560hardcode_action_CXX=
20561if test -n "$hardcode_libdir_flag_spec_CXX" ||
20562 test -n "$runpath_var_CXX" ||
20563 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20564
20565 # We can hardcode non-existent directories.
20566 if test "$hardcode_direct_CXX" != no &&
20567 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20568 # have to relink, otherwise we might link with an installed library
20569 # when we should be linking with a yet-to-be-installed one
20570 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20571 test "$hardcode_minus_L_CXX" != no; then
20572 # Linking always hardcodes the temporary library directory.
20573 hardcode_action_CXX=relink
20574 else
20575 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20576 hardcode_action_CXX=immediate
20577 fi
20578else
20579 # We cannot hardcode anything, or else we can only hardcode existing
20580 # directories.
20581 hardcode_action_CXX=unsupported
20582fi
20583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20584$as_echo "$hardcode_action_CXX" >&6; }
20585
20586if test "$hardcode_action_CXX" = relink ||
20587 test "$inherit_rpath_CXX" = yes; then
20588 # Fast installation is not supported
20589 enable_fast_install=no
20590elif test "$shlibpath_overrides_runpath" = yes ||
20591 test "$enable_shared" = no; then
20592 # Fast installation is not necessary
20593 enable_fast_install=needless
20594fi
20595
20596
20597
20598
20599
20600
20601
20602 fi # test -n "$compiler"
20603
20604 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020605 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020606 LDCXX=$LD
20607 LD=$lt_save_LD
20608 GCC=$lt_save_GCC
20609 with_gnu_ld=$lt_save_with_gnu_ld
20610 lt_cv_path_LDCXX=$lt_cv_path_LD
20611 lt_cv_path_LD=$lt_save_path_LD
20612 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20613 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20614fi # test "$_lt_caught_CXX_error" != yes
20615
20616ac_ext=c
20617ac_cpp='$CPP $CPPFLAGS'
20618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20620ac_compiler_gnu=$ac_cv_c_compiler_gnu
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
cristy99bd5232011-12-07 14:38:20 +000020634
20635
cristy73bd4a52010-10-05 11:24:23 +000020636 ac_config_commands="$ac_config_commands libtool"
20637
20638
20639
20640
20641# Only expand once:
20642
20643
20644
cristy3ed852e2009-09-05 21:47:34 +000020645
20646
cristy3ed852e2009-09-05 21:47:34 +000020647# Check to see if building shared libraries
20648libtool_build_shared_libs='no'
20649if test "$enable_shared" = 'yes'; then
20650 libtool_build_shared_libs='yes'
20651fi
20652
20653# Check to see if building static libraries
20654libtool_build_static_libs='no'
20655if test "$enable_static" = 'yes'; then
20656 libtool_build_static_libs='yes'
20657fi
20658
cristy73bd4a52010-10-05 11:24:23 +000020659 if test "${libtool_build_shared_libs}" = 'yes'; then
20660 WITH_SHARED_LIBS_TRUE=
20661 WITH_SHARED_LIBS_FALSE='#'
20662else
20663 WITH_SHARED_LIBS_TRUE='#'
20664 WITH_SHARED_LIBS_FALSE=
20665fi
20666
cristy3ed852e2009-09-05 21:47:34 +000020667#
20668# Enable support for building loadable modules
20669#
cristyaf4cbf32012-10-16 23:47:41 +000020670build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020671
20672# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020673if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020674 withval=$with_modules; with_modules=$withval
20675else
cristy5a1cefd2010-01-06 20:42:35 +000020676 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020677fi
20678
20679
20680# Only allow building loadable modules if we are building shared libraries
20681if test "$with_modules" != 'no' ; then
20682 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020683 { $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 +000020684$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020685 build_modules='no'
20686 else
20687 build_modules='yes'
20688 fi
cristy3ed852e2009-09-05 21:47:34 +000020689fi
cristyc6722092012-10-14 00:19:31 +000020690if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020691
cristy8b350f62009-11-15 23:12:43 +000020692$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020693
cristyfa161182012-12-19 15:45:28 +000020694 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020695fi
cristyc6722092012-10-14 00:19:31 +000020696 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020697 WITH_MODULES_TRUE=
20698 WITH_MODULES_FALSE='#'
20699else
20700 WITH_MODULES_TRUE='#'
20701 WITH_MODULES_FALSE=
20702fi
20703
cristy3ed852e2009-09-05 21:47:34 +000020704
cristy3ed852e2009-09-05 21:47:34 +000020705# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020706# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020707# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020708if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020709 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20710else
20711 enable_delegate_build='no'
20712fi
20713
20714
20715# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020716if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020717 enableval=$enable_deprecated; enable_deprecated=$enableval
20718else
20719 enable_deprecated='no'
20720fi
20721
20722
20723if test "$enable_deprecated" = 'yes'; then
20724
cristy8b350f62009-11-15 23:12:43 +000020725$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020726
20727else
20728 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20729fi
20730
20731# Build a version of ImageMagick which operates uninstalled.
20732# Used to build distributions located via MAGICK_HOME / executable path
20733# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020734if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020735 enableval=$enable_installed; enable_installed=$enableval
20736else
20737 enable_installed='yes'
20738fi
20739
20740
20741if test "$enable_installed" = 'yes'; then
20742
cristy8b350f62009-11-15 23:12:43 +000020743$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020744
20745else
20746 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20747fi
20748
20749# Permit enciphering and deciphering image pixels.
20750# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020751if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020752 enableval=$enable_cipher; enable_cipher=$enableval
20753else
20754 enable_cipher='yes'
20755fi
20756
20757
20758if test "$enable_cipher" = 'yes'; then
20759
cristy8b350f62009-11-15 23:12:43 +000020760$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020761
20762fi
20763
cristy6e3607c2011-09-13 13:59:17 +000020764# Build a zero-configuration version of ImageMagick.
20765# Check whether --enable-zero-configuration was given.
20766if test "${enable_zero_configuration+set}" = set; then :
20767 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020768else
cristy6e3607c2011-09-13 13:59:17 +000020769 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020770fi
20771
20772
cristy6e3607c2011-09-13 13:59:17 +000020773if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020774
cristy6e3607c2011-09-13 13:59:17 +000020775$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020776
cristy81af5702011-09-13 14:20:58 +000020777 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020778fi
20779
20780# Build a high dynamic range version of ImageMagick.
20781# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020782if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020783 enableval=$enable_hdri; enable_hdri=$enableval
20784else
cristy191c0b72012-08-12 16:29:52 +000020785 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020786fi
20787
20788
20789MAGICK_HDRI=""
20790if test "$enable_hdri" = 'yes'; then
20791 MAGICK_HDRI="HDRI"
20792
cristy8b350f62009-11-15 23:12:43 +000020793$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020794
cristyfd9dcd42010-08-08 18:07:02 +000020795 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020796fi
20797
cristy3ed852e2009-09-05 21:47:34 +000020798# Build a version of ImageMagick with assert statements.
20799# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020800if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020801 enableval=$enable_assert; enable_assert=$enableval
20802else
20803 enable_assert='yes'
20804fi
20805
20806
20807if test "$enable_assert" = 'no'; then
20808
cristy8b350f62009-11-15 23:12:43 +000020809$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020810
20811fi
20812
cristya448bd22011-10-14 12:38:13 +000020813# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000020814
20815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20816$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20817 # Check whether --enable-maintainer-mode was given.
20818if test "${enable_maintainer_mode+set}" = set; then :
20819 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20820else
20821 USE_MAINTAINER_MODE=no
20822fi
20823
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20825$as_echo "$USE_MAINTAINER_MODE" >&6; }
20826 if test $USE_MAINTAINER_MODE = yes; then
20827 MAINTAINER_MODE_TRUE=
20828 MAINTAINER_MODE_FALSE='#'
20829else
20830 MAINTAINER_MODE_TRUE='#'
20831 MAINTAINER_MODE_FALSE=
20832fi
20833
20834 MAINT=$MAINTAINER_MODE_TRUE
20835
20836
cristy3ed852e2009-09-05 21:47:34 +000020837
cristy3ed852e2009-09-05 21:47:34 +000020838# Enable ccmalloc memory debugging support
20839# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020840if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020841 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20842else
20843 enable_ccmalloc='no'
20844fi
20845
20846
20847# Enable Electric Fence memory debugging support
20848# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020849if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020850 enableval=$enable_efence; enable_efence=$enableval
20851else
20852 enable_efence='no'
20853fi
20854
20855
20856# Enable prof-based profiling support
20857# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020858if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020859 enableval=$enable_prof; enable_prof=$enableval
20860else
20861 enable_prof='no'
20862fi
20863
20864
20865# Enable gprof-based profiling support
20866# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020867if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020868 enableval=$enable_gprof; enable_gprof=$enableval
20869else
20870 enable_gprof='no'
20871fi
20872
20873
20874# Enable gcov-based profiling support
20875# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020876if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020877 enableval=$enable_gcov; enable_gcov=$enableval
20878else
20879 enable_gcov='no'
20880fi
20881
20882
20883enable_profiling='no'
20884if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20885 enable_profiling='yes'
20886 if test "$libtool_build_shared_libs" = 'yes'; then
20887 echo "Warning: Can not profile code using shared libraries"
20888 fi
20889fi
20890
20891# Magick API method prefix
20892
20893# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020894if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000020895 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000020896else
cristyfc3d0222012-02-07 15:05:57 +000020897 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000020898fi
20899
20900
cristyfc3d0222012-02-07 15:05:57 +000020901if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000020902
20903cat >>confdefs.h <<_ACEOF
20904#define NAMESPACE_PREFIX $with_method_prefix
20905_ACEOF
20906
cristyfc3d0222012-02-07 15:05:57 +000020907 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000020908fi
20909
cristy71d8c202012-03-20 17:05:01 +000020910# Enable legacy support (default no)
20911# Check whether --enable-legacy-support was given.
20912if test "${enable_legacy_support+set}" = set; then :
20913 enableval=$enable_legacy_support; with_legacy_support=$enableval
20914else
20915 with_legacy_support='no'
20916fi
20917
20918 if test "$with_legacy_support" != 'no'; then
20919 LEGACY_SUPPORT_TRUE=
20920 LEGACY_SUPPORT_FALSE='#'
20921else
20922 LEGACY_SUPPORT_TRUE='#'
20923 LEGACY_SUPPORT_FALSE=
20924fi
20925
20926
cristy3ed852e2009-09-05 21:47:34 +000020927# Number of bits in a Quantum
20928
20929# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020930if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020931 withval=$with_quantum_depth; with_quantum_depth=$withval
20932else
20933 with_quantum_depth=16
20934fi
20935
20936
20937if test "$with_quantum_depth" != '8'; then
20938 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20939fi
20940
20941case "${with_quantum_depth}" in
20942 8 ) ;;
20943 16 ) ;;
20944 32 ) ;;
20945 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000020946 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020947esac
20948QUANTUM_DEPTH="$with_quantum_depth"
20949
20950cat >>confdefs.h <<_ACEOF
20951#define QUANTUM_DEPTH $QUANTUM_DEPTH
20952_ACEOF
20953
20954
cristy01ff9f32012-12-01 18:15:29 +000020955# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000020956MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000020957if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000020958 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000020959fi
cristy01ff9f32012-12-01 18:15:29 +000020960
20961
cristy3ed852e2009-09-05 21:47:34 +000020962# Set pixel cache threshold
20963
20964# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020965if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020966 withval=$with_cache; with_cache=$withval
20967else
20968 with_cache=''
20969fi
20970
20971
20972if test "$with_cache" != ''; then
20973
20974cat >>confdefs.h <<_ACEOF
20975#define PixelCacheThreshold $with_cache
20976_ACEOF
20977
20978 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20979fi
20980
20981# Disable/Enable support for full delegate paths
20982
20983# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020984if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020985 withval=$with_frozenpaths; with_frozenpaths=$withval
20986else
20987 with_frozenpaths='no'
20988fi
20989
20990
20991# Enable build/install of Magick++
20992
20993# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020994if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020995 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20996else
20997 with_magick_plus_plus='yes'
20998fi
20999
21000
cristy3a75f062012-09-08 23:29:40 +000021001# Encode the this name into the shared library.
21002
21003# Check whether --with-package-release-name was given.
21004if test "${with_package_release_name+set}" = set; then :
21005 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21006fi
21007
21008
21009
cristy3ed852e2009-09-05 21:47:34 +000021010# Disable build/install of PerlMagick.
21011
21012# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021013if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021014 withval=$with_perl; with_perl=$withval
21015else
cristyb5f4e2f2010-04-25 00:49:11 +000021016 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021017fi
21018
21019
21020# Options to pass when configuring PerlMagick
21021
21022# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021023if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021024 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021025fi
21026
21027
cristy3ed852e2009-09-05 21:47:34 +000021028
21029# Enable umem, object-caching memory allocation library.
21030
21031# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021032if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021033 withval=$with_umem; with_umem=$withval
21034else
21035 with_umem='no'
21036fi
21037
21038if test "$with_umem" != 'yes' ; then
21039 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21040fi
21041
21042#
21043# Specify path to shared libstdc++ if not in normal location
21044#
21045
21046# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021047if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021048 withval=$with_libstdc; with_libstdc=$withval
21049else
21050 with_libstdc=''
21051fi
21052
21053
21054if test "$with_libstdc" != ''; then
21055 if test -d "$with_libstdc"; then
21056 LIBSTDCLDFLAGS="-L$with_libstdc"
21057 fi
21058fi
21059
21060
21061# Does gcc required -traditional?
21062if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021064$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021065if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021066 $as_echo_n "(cached) " >&6
21067else
21068 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021070/* end confdefs.h. */
21071#include <sgtty.h>
21072Autoconf TIOCGETP
21073_ACEOF
21074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021075 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021076 ac_cv_prog_gcc_traditional=yes
21077else
21078 ac_cv_prog_gcc_traditional=no
21079fi
21080rm -f conftest*
21081
21082
21083 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021085/* end confdefs.h. */
21086#include <termio.h>
21087Autoconf TCGETA
21088_ACEOF
21089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021090 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021091 ac_cv_prog_gcc_traditional=yes
21092fi
21093rm -f conftest*
21094
21095 fi
21096fi
cristy8b350f62009-11-15 23:12:43 +000021097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021098$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21099 if test $ac_cv_prog_gcc_traditional = yes; then
21100 CC="$CC -traditional"
21101 fi
21102fi
21103
21104
21105########
21106#
21107# Set defines required to build DLLs and modules using MinGW
21108#
21109########
21110# These options are set for multi-thread DLL module build
21111# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21112# module: _DLL
21113# executable/Magick++: _DLL _MAGICKMOD_
21114MODULE_EXTRA_CPPFLAGS=''
21115LIBRARY_EXTRA_CPPFLAGS=''
21116if test "${native_win32_build}" = 'yes'; then
21117 if test "${libtool_build_shared_libs}" = 'yes'; then
21118 CPPFLAGS="$CPPFLAGS -D_DLL"
21119 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21120 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21121 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021122 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021123 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21124 else
21125 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21126 fi
21127 else
21128 CPPFLAGS="$CPPFLAGS -D_LIB"
21129 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21130 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21131 fi
21132 if test "$with_threads" = 'yes'; then
21133 CPPFLAGS="$CPPFLAGS -D_MT"
21134 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21135 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21136 fi
21137fi
21138
21139
21140
21141# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021143$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021144if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021145 $as_echo_n "(cached) " >&6
21146else
cristy8b350f62009-11-15 23:12:43 +000021147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021148/* end confdefs.h. */
21149#include <stdlib.h>
21150#include <stdarg.h>
21151#include <string.h>
21152#include <float.h>
21153
21154int
21155main ()
21156{
21157
21158 ;
21159 return 0;
21160}
21161_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021162if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021163 ac_cv_header_stdc=yes
21164else
cristy8b350f62009-11-15 23:12:43 +000021165 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021166fi
cristy3ed852e2009-09-05 21:47:34 +000021167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21168
21169if test $ac_cv_header_stdc = yes; then
21170 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021172/* end confdefs.h. */
21173#include <string.h>
21174
21175_ACEOF
21176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021177 $EGREP "memchr" >/dev/null 2>&1; then :
21178
cristy3ed852e2009-09-05 21:47:34 +000021179else
21180 ac_cv_header_stdc=no
21181fi
21182rm -f conftest*
21183
21184fi
21185
21186if test $ac_cv_header_stdc = yes; then
21187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021189/* end confdefs.h. */
21190#include <stdlib.h>
21191
21192_ACEOF
21193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021194 $EGREP "free" >/dev/null 2>&1; then :
21195
cristy3ed852e2009-09-05 21:47:34 +000021196else
21197 ac_cv_header_stdc=no
21198fi
21199rm -f conftest*
21200
21201fi
21202
21203if test $ac_cv_header_stdc = yes; then
21204 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021205 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021206 :
21207else
cristy8b350f62009-11-15 23:12:43 +000021208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021209/* end confdefs.h. */
21210#include <ctype.h>
21211#include <stdlib.h>
21212#if ((' ' & 0x0FF) == 0x020)
21213# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21214# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21215#else
21216# define ISLOWER(c) \
21217 (('a' <= (c) && (c) <= 'i') \
21218 || ('j' <= (c) && (c) <= 'r') \
21219 || ('s' <= (c) && (c) <= 'z'))
21220# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21221#endif
21222
21223#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21224int
21225main ()
21226{
21227 int i;
21228 for (i = 0; i < 256; i++)
21229 if (XOR (islower (i), ISLOWER (i))
21230 || toupper (i) != TOUPPER (i))
21231 return 2;
21232 return 0;
21233}
21234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021235if ac_fn_c_try_run "$LINENO"; then :
21236
cristy3ed852e2009-09-05 21:47:34 +000021237else
cristy8b350f62009-11-15 23:12:43 +000021238 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021239fi
cristy8b350f62009-11-15 23:12:43 +000021240rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21241 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021242fi
21243
cristy3ed852e2009-09-05 21:47:34 +000021244fi
21245fi
cristy8b350f62009-11-15 23:12:43 +000021246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021247$as_echo "$ac_cv_header_stdc" >&6; }
21248if test $ac_cv_header_stdc = yes; then
21249
cristy8b350f62009-11-15 23:12:43 +000021250$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021251
21252fi
21253
21254if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021255 { $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 +000021256 header files. Compilation cannot proceed. Please install the ANSI C
21257 headers and rerun this script." >&5
21258$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21259 header files. Compilation cannot proceed. Please install the ANSI C
21260 headers and rerun this script." >&2;};
21261fi
cristya0b81c32010-01-22 02:54:33 +000021262
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21264$as_echo_n "checking whether to enable assertions... " >&6; }
21265 # Check whether --enable-assert was given.
21266if test "${enable_assert+set}" = set; then :
21267 enableval=$enable_assert; ac_enable_assert=$enableval
21268 if test "x$enableval" = xno; then :
21269
21270$as_echo "#define NDEBUG 1" >>confdefs.h
21271
21272elif test "x$enableval" != xyes; then :
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21274$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21275 ac_enable_assert=yes
21276fi
21277else
21278 ac_enable_assert=yes
21279fi
21280
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21282$as_echo "$ac_enable_assert" >&6; }
21283
cristy3ed852e2009-09-05 21:47:34 +000021284ac_header_dirent=no
21285for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21286 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021288$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021289if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021290 $as_echo_n "(cached) " >&6
21291else
cristy8b350f62009-11-15 23:12:43 +000021292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021293/* end confdefs.h. */
21294#include <sys/types.h>
21295#include <$ac_hdr>
21296
21297int
21298main ()
21299{
21300if ((DIR *) 0)
21301return 0;
21302 ;
21303 return 0;
21304}
21305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021306if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021307 eval "$as_ac_Header=yes"
21308else
cristy8b350f62009-11-15 23:12:43 +000021309 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021310fi
cristy3ed852e2009-09-05 21:47:34 +000021311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21312fi
cristy8b350f62009-11-15 23:12:43 +000021313eval ac_res=\$$as_ac_Header
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021315$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021316if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021317 cat >>confdefs.h <<_ACEOF
21318#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21319_ACEOF
21320
21321ac_header_dirent=$ac_hdr; break
21322fi
21323
21324done
21325# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21326if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021328$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021329if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021330 $as_echo_n "(cached) " >&6
21331else
21332 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021334/* end confdefs.h. */
21335
21336/* Override any GCC internal prototype to avoid an error.
21337 Use char because int might match the return type of a GCC
21338 builtin and then its argument prototype would still apply. */
21339#ifdef __cplusplus
21340extern "C"
21341#endif
21342char opendir ();
21343int
21344main ()
21345{
21346return opendir ();
21347 ;
21348 return 0;
21349}
21350_ACEOF
21351for ac_lib in '' dir; do
21352 if test -z "$ac_lib"; then
21353 ac_res="none required"
21354 else
21355 ac_res=-l$ac_lib
21356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21357 fi
cristy8b350f62009-11-15 23:12:43 +000021358 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021359 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021360fi
cristy8b350f62009-11-15 23:12:43 +000021361rm -f core conftest.err conftest.$ac_objext \
21362 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021363 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021364 break
21365fi
21366done
cristyda16f162011-02-19 23:52:17 +000021367if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021368
cristy3ed852e2009-09-05 21:47:34 +000021369else
21370 ac_cv_search_opendir=no
21371fi
21372rm conftest.$ac_ext
21373LIBS=$ac_func_search_save_LIBS
21374fi
cristy8b350f62009-11-15 23:12:43 +000021375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021376$as_echo "$ac_cv_search_opendir" >&6; }
21377ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021378if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21380
21381fi
21382
21383else
cristy8b350f62009-11-15 23:12:43 +000021384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021385$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021386if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021387 $as_echo_n "(cached) " >&6
21388else
21389 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021391/* end confdefs.h. */
21392
21393/* Override any GCC internal prototype to avoid an error.
21394 Use char because int might match the return type of a GCC
21395 builtin and then its argument prototype would still apply. */
21396#ifdef __cplusplus
21397extern "C"
21398#endif
21399char opendir ();
21400int
21401main ()
21402{
21403return opendir ();
21404 ;
21405 return 0;
21406}
21407_ACEOF
21408for ac_lib in '' x; do
21409 if test -z "$ac_lib"; then
21410 ac_res="none required"
21411 else
21412 ac_res=-l$ac_lib
21413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21414 fi
cristy8b350f62009-11-15 23:12:43 +000021415 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021416 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021417fi
cristy8b350f62009-11-15 23:12:43 +000021418rm -f core conftest.err conftest.$ac_objext \
21419 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021420 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021421 break
21422fi
21423done
cristyda16f162011-02-19 23:52:17 +000021424if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021425
cristy3ed852e2009-09-05 21:47:34 +000021426else
21427 ac_cv_search_opendir=no
21428fi
21429rm conftest.$ac_ext
21430LIBS=$ac_func_search_save_LIBS
21431fi
cristy8b350f62009-11-15 23:12:43 +000021432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021433$as_echo "$ac_cv_search_opendir" >&6; }
21434ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021435if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21437
21438fi
21439
21440fi
21441
21442
21443# Check additional headers
cristy58945e42012-09-04 14:33:54 +000021444for 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 +000021445do :
21446 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21447ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021448if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021449 cat >>confdefs.h <<_ACEOF
21450#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21451_ACEOF
21452
21453fi
21454
21455done
21456
21457
21458########
21459#
21460# Checks for typedefs, structures, and compiler characteristics.
21461#
21462########
21463
cristy8b350f62009-11-15 23:12:43 +000021464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021465$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021466if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021467 $as_echo_n "(cached) " >&6
21468else
cristy8b350f62009-11-15 23:12:43 +000021469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021470/* end confdefs.h. */
21471
cristy14fefe52012-05-21 00:59:18 +000021472 #include <stdbool.h>
21473 #ifndef bool
21474 "error: bool is not defined"
21475 #endif
21476 #ifndef false
21477 "error: false is not defined"
21478 #endif
21479 #if false
21480 "error: false is not 0"
21481 #endif
21482 #ifndef true
21483 "error: true is not defined"
21484 #endif
21485 #if true != 1
21486 "error: true is not 1"
21487 #endif
21488 #ifndef __bool_true_false_are_defined
21489 "error: __bool_true_false_are_defined is not defined"
21490 #endif
cristy3ed852e2009-09-05 21:47:34 +000021491
cristy14fefe52012-05-21 00:59:18 +000021492 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021493
cristy14fefe52012-05-21 00:59:18 +000021494 char a[true == 1 ? 1 : -1];
21495 char b[false == 0 ? 1 : -1];
21496 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21497 char d[(bool) 0.5 == true ? 1 : -1];
21498 /* See body of main program for 'e'. */
21499 char f[(_Bool) 0.0 == false ? 1 : -1];
21500 char g[true];
21501 char h[sizeof (_Bool)];
21502 char i[sizeof s.t];
21503 enum { j = false, k = true, l = false * true, m = true * 256 };
21504 /* The following fails for
21505 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21506 _Bool n[m];
21507 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21508 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21509 /* Catch a bug in an HP-UX C compiler. See
21510 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21511 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21512 */
21513 _Bool q = true;
21514 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021515
21516int
21517main ()
21518{
21519
cristy14fefe52012-05-21 00:59:18 +000021520 bool e = &s;
21521 *pq |= q;
21522 *pq |= ! q;
21523 /* Refer to every declared value, to avoid compiler optimizations. */
21524 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21525 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021526
21527 ;
21528 return 0;
21529}
21530_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021531if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021532 ac_cv_header_stdbool_h=yes
21533else
cristy8b350f62009-11-15 23:12:43 +000021534 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021535fi
cristy3ed852e2009-09-05 21:47:34 +000021536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21537fi
cristy8b350f62009-11-15 23:12:43 +000021538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021539$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021540 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021541if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021542
21543cat >>confdefs.h <<_ACEOF
21544#define HAVE__BOOL 1
21545_ACEOF
21546
21547
21548fi
21549
cristy14fefe52012-05-21 00:59:18 +000021550
cristy3ed852e2009-09-05 21:47:34 +000021551if test $ac_cv_header_stdbool_h = yes; then
21552
cristy8b350f62009-11-15 23:12:43 +000021553$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021554
21555fi
21556
cristy8b350f62009-11-15 23:12:43 +000021557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021558$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021559if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021560 $as_echo_n "(cached) " >&6
21561else
cristy8b350f62009-11-15 23:12:43 +000021562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021563/* end confdefs.h. */
21564
21565int
21566main ()
21567{
21568
21569volatile int x;
21570int * volatile y = (int *) 0;
21571return !x && !y;
21572 ;
21573 return 0;
21574}
21575_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021576if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021577 ac_cv_c_volatile=yes
21578else
cristy8b350f62009-11-15 23:12:43 +000021579 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021580fi
cristy3ed852e2009-09-05 21:47:34 +000021581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21582fi
cristy8b350f62009-11-15 23:12:43 +000021583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021584$as_echo "$ac_cv_c_volatile" >&6; }
21585if test $ac_cv_c_volatile = no; then
21586
cristy8b350f62009-11-15 23:12:43 +000021587$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021588
21589fi
21590
cristy8b350f62009-11-15 23:12:43 +000021591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021592$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021593if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021594 $as_echo_n "(cached) " >&6
21595else
cristy8b350f62009-11-15 23:12:43 +000021596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021597/* end confdefs.h. */
21598#define x(y) #y
21599
21600char *s = x(teststring);
21601_ACEOF
21602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021603 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021604 ac_cv_c_stringize=no
21605else
21606 ac_cv_c_stringize=yes
21607fi
21608rm -f conftest*
21609
21610fi
cristy8b350f62009-11-15 23:12:43 +000021611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021612$as_echo "$ac_cv_c_stringize" >&6; }
21613if test $ac_cv_c_stringize = yes; then
21614
cristy8b350f62009-11-15 23:12:43 +000021615$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021616
21617fi
21618
cristy8b350f62009-11-15 23:12:43 +000021619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021620$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021621if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021622 $as_echo_n "(cached) " >&6
21623else
cristy8b350f62009-11-15 23:12:43 +000021624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021625/* end confdefs.h. */
21626#include <sys/types.h>
21627#include <sys/stat.h>
21628
21629#if defined S_ISBLK && defined S_IFDIR
21630extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21631#endif
21632
21633#if defined S_ISBLK && defined S_IFCHR
21634extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21635#endif
21636
21637#if defined S_ISLNK && defined S_IFREG
21638extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21639#endif
21640
21641#if defined S_ISSOCK && defined S_IFREG
21642extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21643#endif
21644
21645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021646if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021647 ac_cv_header_stat_broken=no
21648else
cristy8b350f62009-11-15 23:12:43 +000021649 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021650fi
cristy3ed852e2009-09-05 21:47:34 +000021651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21652fi
cristy8b350f62009-11-15 23:12:43 +000021653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021654$as_echo "$ac_cv_header_stat_broken" >&6; }
21655if test $ac_cv_header_stat_broken = yes; then
21656
cristy8b350f62009-11-15 23:12:43 +000021657$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021658
21659fi
21660
cristy8b350f62009-11-15 23:12:43 +000021661{ $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 +000021662$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021663if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021664 $as_echo_n "(cached) " >&6
21665else
cristy8b350f62009-11-15 23:12:43 +000021666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021667/* end confdefs.h. */
21668#include <sys/types.h>
21669#include <sys/time.h>
21670#include <time.h>
21671
21672int
21673main ()
21674{
21675if ((struct tm *) 0)
21676return 0;
21677 ;
21678 return 0;
21679}
21680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021681if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021682 ac_cv_header_time=yes
21683else
cristy8b350f62009-11-15 23:12:43 +000021684 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021685fi
cristy3ed852e2009-09-05 21:47:34 +000021686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21687fi
cristy8b350f62009-11-15 23:12:43 +000021688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021689$as_echo "$ac_cv_header_time" >&6; }
21690if test $ac_cv_header_time = yes; then
21691
cristy8b350f62009-11-15 23:12:43 +000021692$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021693
21694fi
21695
cristy8b350f62009-11-15 23:12:43 +000021696{ $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 +000021697$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021698if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021699 $as_echo_n "(cached) " >&6
21700else
cristy8b350f62009-11-15 23:12:43 +000021701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021702/* end confdefs.h. */
21703#include <sys/types.h>
21704#include <time.h>
21705
21706int
21707main ()
21708{
21709struct tm tm;
21710 int *p = &tm.tm_sec;
21711 return !p;
21712 ;
21713 return 0;
21714}
21715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021716if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021717 ac_cv_struct_tm=time.h
21718else
cristy8b350f62009-11-15 23:12:43 +000021719 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021720fi
cristy3ed852e2009-09-05 21:47:34 +000021721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21722fi
cristy8b350f62009-11-15 23:12:43 +000021723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021724$as_echo "$ac_cv_struct_tm" >&6; }
21725if test $ac_cv_struct_tm = sys/time.h; then
21726
cristy8b350f62009-11-15 23:12:43 +000021727$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021728
21729fi
21730
cristy92703d82010-04-26 00:18:18 +000021731ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21732#include <$ac_cv_struct_tm>
21733
21734"
cristyda16f162011-02-19 23:52:17 +000021735if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021736
21737cat >>confdefs.h <<_ACEOF
21738#define HAVE_STRUCT_TM_TM_ZONE 1
21739_ACEOF
21740
21741
21742fi
21743
21744if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21745
21746$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21747
21748else
21749 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21750"
cristyda16f162011-02-19 23:52:17 +000021751if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021752 ac_have_decl=1
21753else
21754 ac_have_decl=0
21755fi
21756
21757cat >>confdefs.h <<_ACEOF
21758#define HAVE_DECL_TZNAME $ac_have_decl
21759_ACEOF
21760
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21762$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021763if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021764 $as_echo_n "(cached) " >&6
21765else
21766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21767/* end confdefs.h. */
21768#include <time.h>
21769#if !HAVE_DECL_TZNAME
21770extern char *tzname[];
21771#endif
21772
21773int
21774main ()
21775{
21776return tzname[0][0];
21777 ;
21778 return 0;
21779}
21780_ACEOF
21781if ac_fn_c_try_link "$LINENO"; then :
21782 ac_cv_var_tzname=yes
21783else
21784 ac_cv_var_tzname=no
21785fi
21786rm -f core conftest.err conftest.$ac_objext \
21787 conftest$ac_exeext conftest.$ac_ext
21788fi
21789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21790$as_echo "$ac_cv_var_tzname" >&6; }
21791 if test $ac_cv_var_tzname = yes; then
21792
21793$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21794
21795 fi
21796fi
21797
cristy8b350f62009-11-15 23:12:43 +000021798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021799$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021800if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021801 $as_echo_n "(cached) " >&6
21802else
21803 echo '#! /bin/cat
21804exit 69
21805' >conftest
21806chmod u+x conftest
21807(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21808if test $? -ne 69; then
21809 ac_cv_sys_interpreter=yes
21810else
21811 ac_cv_sys_interpreter=no
21812fi
21813rm -f conftest
21814fi
cristy8b350f62009-11-15 23:12:43 +000021815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021816$as_echo "$ac_cv_sys_interpreter" >&6; }
21817interpval=$ac_cv_sys_interpreter
21818
21819
cristy3ed852e2009-09-05 21:47:34 +000021820# If the C compiler supports the keyword inline, do nothing. Otherwise
21821# define inline to __inline__ or __inline if it accepts one of those,
21822# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021824$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021825if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021826 $as_echo_n "(cached) " >&6
21827else
21828 ac_cv_c_inline=no
21829for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021831/* end confdefs.h. */
21832#ifndef __cplusplus
21833typedef int foo_t;
21834static $ac_kw foo_t static_foo () {return 0; }
21835$ac_kw foo_t foo () {return 0; }
21836#endif
21837
21838_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021839if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021840 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021841fi
cristy3ed852e2009-09-05 21:47:34 +000021842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21843 test "$ac_cv_c_inline" != no && break
21844done
21845
21846fi
cristy8b350f62009-11-15 23:12:43 +000021847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021848$as_echo "$ac_cv_c_inline" >&6; }
21849
cristy3ed852e2009-09-05 21:47:34 +000021850case $ac_cv_c_inline in
21851 inline | yes) ;;
21852 *)
21853 case $ac_cv_c_inline in
21854 no) ac_val=;;
21855 *) ac_val=$ac_cv_c_inline;;
21856 esac
21857 cat >>confdefs.h <<_ACEOF
21858#ifndef __cplusplus
21859#define inline $ac_val
21860#endif
21861_ACEOF
21862 ;;
21863esac
21864
21865
21866# If the C compiler supports the keyword restrict, do nothing. Otherwise
21867# define restrict to __restrict__ or __restrict if it accepts one of those,
21868# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021870$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021871if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021872 $as_echo_n "(cached) " >&6
21873else
21874 ac_cv_c_restrict=no
21875 # The order here caters to the fact that C++ does not require restrict.
21876 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021878/* end confdefs.h. */
21879typedef int * int_ptr;
21880 int foo (int_ptr $ac_kw ip) {
21881 return ip[0];
21882 }
21883int
21884main ()
21885{
21886int s[1];
21887 int * $ac_kw t = s;
21888 t[0] = 0;
21889 return foo(t)
21890 ;
21891 return 0;
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_restrict=$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_restrict" != no && break
21899 done
21900
21901fi
cristy8b350f62009-11-15 23:12:43 +000021902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021903$as_echo "$ac_cv_c_restrict" >&6; }
21904
cristy3ed852e2009-09-05 21:47:34 +000021905 case $ac_cv_c_restrict in
21906 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021907 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021908 ;;
21909 *) cat >>confdefs.h <<_ACEOF
21910#define restrict $ac_cv_c_restrict
21911_ACEOF
21912 ;;
21913 esac
21914
21915
21916# If words are stored with the most significant byte first (like
21917# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021919$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021920if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021921 $as_echo_n "(cached) " >&6
21922else
21923 ac_cv_c_bigendian=unknown
21924 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021926/* end confdefs.h. */
21927#ifndef __APPLE_CC__
21928 not a universal capable compiler
21929 #endif
21930 typedef int dummy;
21931
21932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021933if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021934
21935 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021936 # there are at least two -arch flags with different values.
21937 ac_arch=
21938 ac_prev=
21939 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21940 if test -n "$ac_prev"; then
21941 case $ac_word in
21942 i?86 | x86_64 | ppc | ppc64)
21943 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21944 ac_arch=$ac_word
21945 else
21946 ac_cv_c_bigendian=universal
21947 break
21948 fi
21949 ;;
21950 esac
21951 ac_prev=
21952 elif test "x$ac_word" = "x-arch"; then
21953 ac_prev=arch
21954 fi
21955 done
cristy3ed852e2009-09-05 21:47:34 +000021956fi
cristy3ed852e2009-09-05 21:47:34 +000021957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21958 if test $ac_cv_c_bigendian = unknown; then
21959 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021961/* end confdefs.h. */
21962#include <sys/types.h>
21963 #include <sys/param.h>
21964
21965int
21966main ()
21967{
21968#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21969 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21970 && LITTLE_ENDIAN)
21971 bogus endian macros
21972 #endif
21973
21974 ;
21975 return 0;
21976}
21977_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021978if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021979 # It does; now see whether it defined to BIG_ENDIAN or not.
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#include <sys/types.h>
21983 #include <sys/param.h>
21984
21985int
21986main ()
21987{
21988#if BYTE_ORDER != BIG_ENDIAN
21989 not big endian
21990 #endif
21991
21992 ;
21993 return 0;
21994}
21995_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021996if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021997 ac_cv_c_bigendian=yes
21998else
cristy8b350f62009-11-15 23:12:43 +000021999 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022000fi
cristy3ed852e2009-09-05 21:47:34 +000022001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022002fi
cristy3ed852e2009-09-05 21:47:34 +000022003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22004 fi
22005 if test $ac_cv_c_bigendian = unknown; then
22006 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022008/* end confdefs.h. */
22009#include <limits.h>
22010
22011int
22012main ()
22013{
22014#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22015 bogus endian macros
22016 #endif
22017
22018 ;
22019 return 0;
22020}
22021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022022if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022023 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022025/* end confdefs.h. */
22026#include <limits.h>
22027
22028int
22029main ()
22030{
22031#ifndef _BIG_ENDIAN
22032 not big endian
22033 #endif
22034
22035 ;
22036 return 0;
22037}
22038_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022039if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022040 ac_cv_c_bigendian=yes
22041else
cristy8b350f62009-11-15 23:12:43 +000022042 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022043fi
cristy3ed852e2009-09-05 21:47:34 +000022044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022045fi
cristy3ed852e2009-09-05 21:47:34 +000022046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22047 fi
22048 if test $ac_cv_c_bigendian = unknown; then
22049 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022050 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022051 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022053/* end confdefs.h. */
22054short int ascii_mm[] =
22055 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22056 short int ascii_ii[] =
22057 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22058 int use_ascii (int i) {
22059 return ascii_mm[i] + ascii_ii[i];
22060 }
22061 short int ebcdic_ii[] =
22062 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22063 short int ebcdic_mm[] =
22064 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22065 int use_ebcdic (int i) {
22066 return ebcdic_mm[i] + ebcdic_ii[i];
22067 }
22068 extern int foo;
22069
22070int
22071main ()
22072{
22073return use_ascii (foo) == use_ebcdic (foo);
22074 ;
22075 return 0;
22076}
22077_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022078if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022079 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22080 ac_cv_c_bigendian=yes
22081 fi
22082 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22083 if test "$ac_cv_c_bigendian" = unknown; then
22084 ac_cv_c_bigendian=no
22085 else
22086 # finding both strings is unlikely to happen, but who knows?
22087 ac_cv_c_bigendian=unknown
22088 fi
22089 fi
cristy3ed852e2009-09-05 21:47:34 +000022090fi
cristy3ed852e2009-09-05 21:47:34 +000022091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22092else
cristy8b350f62009-11-15 23:12:43 +000022093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022094/* end confdefs.h. */
22095$ac_includes_default
22096int
22097main ()
22098{
22099
22100 /* Are we little or big endian? From Harbison&Steele. */
22101 union
22102 {
22103 long int l;
22104 char c[sizeof (long int)];
22105 } u;
22106 u.l = 1;
22107 return u.c[sizeof (long int) - 1] == 1;
22108
22109 ;
22110 return 0;
22111}
22112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022113if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022114 ac_cv_c_bigendian=no
22115else
cristy8b350f62009-11-15 23:12:43 +000022116 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022117fi
cristy8b350f62009-11-15 23:12:43 +000022118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22119 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022120fi
22121
cristy3ed852e2009-09-05 21:47:34 +000022122 fi
22123fi
cristy8b350f62009-11-15 23:12:43 +000022124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022125$as_echo "$ac_cv_c_bigendian" >&6; }
22126 case $ac_cv_c_bigendian in #(
22127 yes)
cristy8b350f62009-11-15 23:12:43 +000022128 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022129;; #(
22130 no)
22131 ;; #(
22132 universal)
22133
cristy8b350f62009-11-15 23:12:43 +000022134$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022135
22136 ;; #(
22137 *)
cristy98dddb52010-11-04 00:30:15 +000022138 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022139 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022140 esac
22141
22142
cristy501c8042011-05-26 17:46:28 +000022143# Define to a suitable type, if standard headers do not define it.
22144ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22145case $ac_cv_c_int8_t in #(
22146 no|yes) ;; #(
22147 *)
cristy3ed852e2009-09-05 21:47:34 +000022148
22149cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022150#define int8_t $ac_cv_c_int8_t
22151_ACEOF
22152;;
22153esac
22154
22155ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22156case $ac_cv_c_int16_t in #(
22157 no|yes) ;; #(
22158 *)
22159
22160cat >>confdefs.h <<_ACEOF
22161#define int16_t $ac_cv_c_int16_t
22162_ACEOF
22163;;
22164esac
22165
22166ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22167case $ac_cv_c_int32_t in #(
22168 no|yes) ;; #(
22169 *)
22170
22171cat >>confdefs.h <<_ACEOF
22172#define int32_t $ac_cv_c_int32_t
22173_ACEOF
22174;;
22175esac
22176
22177ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22178case $ac_cv_c_int64_t in #(
22179 no|yes) ;; #(
22180 *)
22181
22182cat >>confdefs.h <<_ACEOF
22183#define int64_t $ac_cv_c_int64_t
22184_ACEOF
22185;;
22186esac
22187
22188
cristycc22d1d2012-12-10 13:03:25 +000022189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22190$as_echo_n "checking for unsigned long long int... " >&6; }
22191if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022192 $as_echo_n "(cached) " >&6
22193else
cristycc22d1d2012-12-10 13:03:25 +000022194 ac_cv_type_unsigned_long_long_int=yes
22195 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022197/* end confdefs.h. */
22198
22199 /* For now, do not test the preprocessor; as of 2007 there are too many
cristycc22d1d2012-12-10 13:03:25 +000022200 implementations with broken preprocessors. Perhaps this can
22201 be revisited in 2012. In the meantime, code should not expect
22202 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022203 /* Test literals. */
22204 long long int ll = 9223372036854775807ll;
22205 long long int nll = -9223372036854775807LL;
22206 unsigned long long int ull = 18446744073709551615ULL;
22207 /* Test constant expressions. */
22208 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristycc22d1d2012-12-10 13:03:25 +000022209 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022210 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristycc22d1d2012-12-10 13:03:25 +000022211 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022212 int i = 63;
22213int
22214main ()
22215{
22216/* Test availability of runtime routines for shift and division. */
22217 long long int llmax = 9223372036854775807ll;
22218 unsigned long long int ullmax = 18446744073709551615ull;
22219 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristycc22d1d2012-12-10 13:03:25 +000022220 | (llmax / ll) | (llmax % ll)
22221 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22222 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022223 ;
22224 return 0;
22225}
22226
22227_ACEOF
22228if ac_fn_c_try_link "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022229
22230else
22231 ac_cv_type_unsigned_long_long_int=no
22232fi
22233rm -f core conftest.err conftest.$ac_objext \
22234 conftest$ac_exeext conftest.$ac_ext
22235 fi
22236fi
22237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22238$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22239 if test $ac_cv_type_unsigned_long_long_int = yes; then
22240
22241$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22242
22243 fi
22244
22245
22246
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22248$as_echo_n "checking for long long int... " >&6; }
22249if ${ac_cv_type_long_long_int+:} false; then :
22250 $as_echo_n "(cached) " >&6
22251else
cristy501c8042011-05-26 17:46:28 +000022252 ac_cv_type_long_long_int=yes
cristycc22d1d2012-12-10 13:03:25 +000022253 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22254 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22255 if test $ac_cv_type_long_long_int = yes; then
22256 if test "$cross_compiling" = yes; then :
22257 :
cristy501c8042011-05-26 17:46:28 +000022258else
22259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22260/* end confdefs.h. */
22261#include <limits.h>
cristycc22d1d2012-12-10 13:03:25 +000022262 #ifndef LLONG_MAX
22263 # define HALF \
22264 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22265 # define LLONG_MAX (HALF - 1 + HALF)
22266 #endif
cristy501c8042011-05-26 17:46:28 +000022267int
22268main ()
22269{
22270long long int n = 1;
cristycc22d1d2012-12-10 13:03:25 +000022271 int i;
22272 for (i = 0; ; i++)
22273 {
22274 long long int m = n << i;
22275 if (m >> i != n)
22276 return 1;
22277 if (LLONG_MAX / 2 < m)
22278 break;
22279 }
22280 return 0;
cristy501c8042011-05-26 17:46:28 +000022281 ;
22282 return 0;
22283}
22284_ACEOF
22285if ac_fn_c_try_run "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022286
cristy501c8042011-05-26 17:46:28 +000022287else
22288 ac_cv_type_long_long_int=no
22289fi
22290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22291 conftest.$ac_objext conftest.beam conftest.$ac_ext
22292fi
22293
cristycc22d1d2012-12-10 13:03:25 +000022294 fi
22295 fi
cristy501c8042011-05-26 17:46:28 +000022296fi
22297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22298$as_echo "$ac_cv_type_long_long_int" >&6; }
22299 if test $ac_cv_type_long_long_int = yes; then
22300
22301$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22302
22303 fi
22304
22305
22306
22307 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22308if test "x$ac_cv_type_intmax_t" = xyes; then :
22309
22310$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22311
22312else
22313 test $ac_cv_type_long_long_int = yes \
22314 && ac_type='long long int' \
22315 || ac_type='long int'
22316
22317cat >>confdefs.h <<_ACEOF
22318#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022319_ACEOF
22320
22321fi
22322
22323
cristy501c8042011-05-26 17:46:28 +000022324
22325 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22326if test "x$ac_cv_type_intptr_t" = xyes; then :
22327
22328$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022329
cristy3ed852e2009-09-05 21:47:34 +000022330else
cristy501c8042011-05-26 17:46:28 +000022331 for ac_type in 'int' 'long int' 'long long int'; do
22332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22333/* end confdefs.h. */
22334$ac_includes_default
22335int
22336main ()
22337{
22338static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022339test_array [0] = 0;
22340return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022341
22342 ;
22343 return 0;
22344}
22345_ACEOF
22346if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022347
22348cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022349#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022350_ACEOF
22351
cristy501c8042011-05-26 17:46:28 +000022352 ac_type=
22353fi
22354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22355 test -z "$ac_type" && break
22356 done
cristy3ed852e2009-09-05 21:47:34 +000022357fi
22358
22359
cristy3ed852e2009-09-05 21:47:34 +000022360
cristy501c8042011-05-26 17:46:28 +000022361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22362$as_echo_n "checking for long double... " >&6; }
22363if ${ac_cv_type_long_double+:} false; then :
22364 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022365else
cristy501c8042011-05-26 17:46:28 +000022366 if test "$GCC" = yes; then
22367 ac_cv_type_long_double=yes
22368 else
22369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22370/* end confdefs.h. */
22371/* The Stardent Vistra knows sizeof (long double), but does
22372 not support it. */
22373 long double foo = 0.0L;
22374int
22375main ()
22376{
22377static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22378 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022379test_array [0] = 0;
22380return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022381
cristy501c8042011-05-26 17:46:28 +000022382 ;
22383 return 0;
22384}
cristy3ed852e2009-09-05 21:47:34 +000022385_ACEOF
cristy501c8042011-05-26 17:46:28 +000022386if ac_fn_c_try_compile "$LINENO"; then :
22387 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022388else
cristy501c8042011-05-26 17:46:28 +000022389 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022390fi
cristy501c8042011-05-26 17:46:28 +000022391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22392 fi
cristy3ed852e2009-09-05 21:47:34 +000022393fi
cristy501c8042011-05-26 17:46:28 +000022394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22395$as_echo "$ac_cv_type_long_double" >&6; }
22396 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022397
cristy501c8042011-05-26 17:46:28 +000022398$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022399
cristy501c8042011-05-26 17:46:28 +000022400 fi
22401
cristy3ed852e2009-09-05 21:47:34 +000022402
cristy8b350f62009-11-15 23:12:43 +000022403 { $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 +000022404$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022405if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022406 $as_echo_n "(cached) " >&6
22407else
cristy8b350f62009-11-15 23:12:43 +000022408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022409/* end confdefs.h. */
22410#include <float.h>
22411 long double const a[] =
22412 {
22413 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22414 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22415 };
22416 long double
22417 f (long double x)
22418 {
22419 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22420 + (x ? f (x) : 'c'));
22421 }
22422
22423int
22424main ()
22425{
22426static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22427 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22428 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22429 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22430 && (int) LDBL_EPSILON == 0
22431 )];
cristy14fefe52012-05-21 00:59:18 +000022432test_array [0] = 0;
22433return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022434
22435 ;
22436 return 0;
22437}
22438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022439if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022440 ac_cv_type_long_double_wider=yes
22441else
cristy8b350f62009-11-15 23:12:43 +000022442 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022443fi
cristy3ed852e2009-09-05 21:47:34 +000022444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22445fi
cristy8b350f62009-11-15 23:12:43 +000022446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022447$as_echo "$ac_cv_type_long_double_wider" >&6; }
22448 if test $ac_cv_type_long_double_wider = yes; then
22449
cristy8b350f62009-11-15 23:12:43 +000022450$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022451
22452 fi
22453
22454
cristycc22d1d2012-12-10 13:03:25 +000022455
cristy501c8042011-05-26 17:46:28 +000022456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22457$as_echo_n "checking for long long int... " >&6; }
22458if ${ac_cv_type_long_long_int+:} false; then :
22459 $as_echo_n "(cached) " >&6
22460else
cristy501c8042011-05-26 17:46:28 +000022461 ac_cv_type_long_long_int=yes
cristycc22d1d2012-12-10 13:03:25 +000022462 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22463 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22464 if test $ac_cv_type_long_long_int = yes; then
22465 if test "$cross_compiling" = yes; then :
22466 :
cristy501c8042011-05-26 17:46:28 +000022467else
22468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22469/* end confdefs.h. */
22470#include <limits.h>
cristycc22d1d2012-12-10 13:03:25 +000022471 #ifndef LLONG_MAX
22472 # define HALF \
22473 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22474 # define LLONG_MAX (HALF - 1 + HALF)
22475 #endif
cristy501c8042011-05-26 17:46:28 +000022476int
22477main ()
22478{
22479long long int n = 1;
cristycc22d1d2012-12-10 13:03:25 +000022480 int i;
22481 for (i = 0; ; i++)
22482 {
22483 long long int m = n << i;
22484 if (m >> i != n)
22485 return 1;
22486 if (LLONG_MAX / 2 < m)
22487 break;
22488 }
22489 return 0;
cristy501c8042011-05-26 17:46:28 +000022490 ;
22491 return 0;
22492}
22493_ACEOF
22494if ac_fn_c_try_run "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022495
cristy501c8042011-05-26 17:46:28 +000022496else
22497 ac_cv_type_long_long_int=no
22498fi
22499rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22500 conftest.$ac_objext conftest.beam conftest.$ac_ext
22501fi
22502
cristycc22d1d2012-12-10 13:03:25 +000022503 fi
22504 fi
cristy501c8042011-05-26 17:46:28 +000022505fi
22506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22507$as_echo "$ac_cv_type_long_long_int" >&6; }
22508 if test $ac_cv_type_long_long_int = yes; then
22509
22510$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22511
22512 fi
22513
22514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22515$as_echo_n "checking for mbstate_t... " >&6; }
22516if ${ac_cv_type_mbstate_t+:} false; then :
22517 $as_echo_n "(cached) " >&6
22518else
22519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22520/* end confdefs.h. */
22521$ac_includes_default
22522# include <wchar.h>
22523int
22524main ()
22525{
22526mbstate_t x; return sizeof x;
22527 ;
22528 return 0;
22529}
22530_ACEOF
22531if ac_fn_c_try_compile "$LINENO"; then :
22532 ac_cv_type_mbstate_t=yes
22533else
22534 ac_cv_type_mbstate_t=no
22535fi
22536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22537fi
22538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22539$as_echo "$ac_cv_type_mbstate_t" >&6; }
22540 if test $ac_cv_type_mbstate_t = yes; then
22541
22542$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22543
22544 else
22545
22546$as_echo "#define mbstate_t int" >>confdefs.h
22547
22548 fi
22549ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22550if test "x$ac_cv_type_mode_t" = xyes; then :
22551
22552else
22553
22554cat >>confdefs.h <<_ACEOF
22555#define mode_t int
22556_ACEOF
22557
22558fi
22559
22560ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22561if test "x$ac_cv_type_off_t" = xyes; then :
22562
22563else
22564
22565cat >>confdefs.h <<_ACEOF
22566#define off_t long int
22567_ACEOF
22568
22569fi
22570
22571ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22572if test "x$ac_cv_type_pid_t" = xyes; then :
22573
22574else
22575
22576cat >>confdefs.h <<_ACEOF
22577#define pid_t int
22578_ACEOF
22579
22580fi
22581
22582ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22583if test "x$ac_cv_type_size_t" = xyes; then :
22584
22585else
22586
22587cat >>confdefs.h <<_ACEOF
22588#define size_t unsigned int
22589_ACEOF
22590
22591fi
22592
22593ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22594if test "x$ac_cv_type_ssize_t" = xyes; then :
22595
22596else
22597
22598cat >>confdefs.h <<_ACEOF
22599#define ssize_t int
22600_ACEOF
22601
22602fi
22603
22604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22605$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22606if ${ac_cv_type_uid_t+:} false; then :
22607 $as_echo_n "(cached) " >&6
22608else
22609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22610/* end confdefs.h. */
22611#include <sys/types.h>
22612
22613_ACEOF
22614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22615 $EGREP "uid_t" >/dev/null 2>&1; then :
22616 ac_cv_type_uid_t=yes
22617else
22618 ac_cv_type_uid_t=no
22619fi
22620rm -f conftest*
22621
22622fi
22623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22624$as_echo "$ac_cv_type_uid_t" >&6; }
22625if test $ac_cv_type_uid_t = no; then
22626
22627$as_echo "#define uid_t int" >>confdefs.h
22628
22629
22630$as_echo "#define gid_t int" >>confdefs.h
22631
22632fi
22633
22634ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22635case $ac_cv_c_uint8_t in #(
22636 no|yes) ;; #(
22637 *)
22638
22639$as_echo "#define _UINT8_T 1" >>confdefs.h
22640
22641
22642cat >>confdefs.h <<_ACEOF
22643#define uint8_t $ac_cv_c_uint8_t
22644_ACEOF
22645;;
22646 esac
22647
22648ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22649case $ac_cv_c_uint16_t in #(
22650 no|yes) ;; #(
22651 *)
22652
22653
22654cat >>confdefs.h <<_ACEOF
22655#define uint16_t $ac_cv_c_uint16_t
22656_ACEOF
22657;;
22658 esac
22659
22660ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22661case $ac_cv_c_uint32_t in #(
22662 no|yes) ;; #(
22663 *)
22664
22665$as_echo "#define _UINT32_T 1" >>confdefs.h
22666
22667
22668cat >>confdefs.h <<_ACEOF
22669#define uint32_t $ac_cv_c_uint32_t
22670_ACEOF
22671;;
22672 esac
22673
22674ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22675case $ac_cv_c_uint64_t in #(
22676 no|yes) ;; #(
22677 *)
22678
22679$as_echo "#define _UINT64_T 1" >>confdefs.h
22680
22681
22682cat >>confdefs.h <<_ACEOF
22683#define uint64_t $ac_cv_c_uint64_t
22684_ACEOF
22685;;
22686 esac
22687
22688
cristy501c8042011-05-26 17:46:28 +000022689
22690 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22691if test "x$ac_cv_type_uintmax_t" = xyes; then :
22692
22693$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22694
22695else
22696 test $ac_cv_type_unsigned_long_long_int = yes \
22697 && ac_type='unsigned long long int' \
22698 || ac_type='unsigned long int'
22699
22700cat >>confdefs.h <<_ACEOF
22701#define uintmax_t $ac_type
22702_ACEOF
22703
22704fi
22705
22706
22707
22708 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22709if test "x$ac_cv_type_uintptr_t" = xyes; then :
22710
22711$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
22712
22713else
22714 for ac_type in 'unsigned int' 'unsigned long int' \
22715 'unsigned long long int'; do
22716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22717/* end confdefs.h. */
22718$ac_includes_default
22719int
22720main ()
22721{
22722static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022723test_array [0] = 0;
22724return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022725
22726 ;
22727 return 0;
22728}
22729_ACEOF
22730if ac_fn_c_try_compile "$LINENO"; then :
22731
22732cat >>confdefs.h <<_ACEOF
22733#define uintptr_t $ac_type
22734_ACEOF
22735
22736 ac_type=
22737fi
22738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22739 test -z "$ac_type" && break
22740 done
22741fi
22742
22743
22744
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22746$as_echo_n "checking for unsigned long long int... " >&6; }
22747if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22748 $as_echo_n "(cached) " >&6
22749else
cristycc22d1d2012-12-10 13:03:25 +000022750 ac_cv_type_unsigned_long_long_int=yes
22751 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022753/* end confdefs.h. */
22754
22755 /* For now, do not test the preprocessor; as of 2007 there are too many
cristycc22d1d2012-12-10 13:03:25 +000022756 implementations with broken preprocessors. Perhaps this can
22757 be revisited in 2012. In the meantime, code should not expect
22758 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022759 /* Test literals. */
22760 long long int ll = 9223372036854775807ll;
22761 long long int nll = -9223372036854775807LL;
22762 unsigned long long int ull = 18446744073709551615ULL;
22763 /* Test constant expressions. */
22764 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristycc22d1d2012-12-10 13:03:25 +000022765 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022766 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristycc22d1d2012-12-10 13:03:25 +000022767 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022768 int i = 63;
22769int
22770main ()
22771{
22772/* Test availability of runtime routines for shift and division. */
22773 long long int llmax = 9223372036854775807ll;
22774 unsigned long long int ullmax = 18446744073709551615ull;
22775 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristycc22d1d2012-12-10 13:03:25 +000022776 | (llmax / ll) | (llmax % ll)
22777 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22778 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022779 ;
22780 return 0;
22781}
22782
22783_ACEOF
22784if ac_fn_c_try_link "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022785
cristy501c8042011-05-26 17:46:28 +000022786else
22787 ac_cv_type_unsigned_long_long_int=no
22788fi
22789rm -f core conftest.err conftest.$ac_objext \
22790 conftest$ac_exeext conftest.$ac_ext
cristycc22d1d2012-12-10 13:03:25 +000022791 fi
cristy501c8042011-05-26 17:46:28 +000022792fi
22793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22794$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22795 if test $ac_cv_type_unsigned_long_long_int = yes; then
22796
22797$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22798
22799 fi
22800
22801
cristy3ed852e2009-09-05 21:47:34 +000022802# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22803# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022805$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022806if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022807 $as_echo_n "(cached) " >&6
22808else
cristy8b350f62009-11-15 23:12:43 +000022809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022810/* end confdefs.h. */
22811$ac_includes_default
22812int
22813main ()
22814{
22815static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000022816test_array [0] = 0;
22817return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022818
22819 ;
22820 return 0;
22821}
22822_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022823if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022824 ac_cv_c_char_unsigned=no
22825else
cristy8b350f62009-11-15 23:12:43 +000022826 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022827fi
cristy3ed852e2009-09-05 21:47:34 +000022828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22829fi
cristy8b350f62009-11-15 23:12:43 +000022830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022831$as_echo "$ac_cv_c_char_unsigned" >&6; }
22832if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022833 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022834
22835fi
22836
22837
cristy9b86f202012-11-28 21:55:35 +000022838# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000022839ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
22840"
22841if test "x$ac_cv_type_float_t" = xyes; then :
22842
22843cat >>confdefs.h <<_ACEOF
22844#define HAVE_FLOAT_T 1
22845_ACEOF
22846
22847
22848fi
22849
22850ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
22851"
22852if test "x$ac_cv_type_double_t" = xyes; then :
22853
22854cat >>confdefs.h <<_ACEOF
22855#define HAVE_DOUBLE_T 1
22856_ACEOF
22857
22858
22859fi
22860
cristy9b86f202012-11-28 21:55:35 +000022861# The cast to long int works around a bug in the HP C Compiler
22862# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22863# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22864# This bug is HP SR number 8606223364.
22865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
22866$as_echo_n "checking size of float_t... " >&6; }
22867if ${ac_cv_sizeof_float_t+:} false; then :
22868 $as_echo_n "(cached) " >&6
22869else
22870 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
22871"; then :
22872
22873else
22874 if test "$ac_cv_type_float_t" = yes; then
22875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22876$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22877as_fn_error 77 "cannot compute sizeof (float_t)
22878See \`config.log' for more details" "$LINENO" 5; }
22879 else
22880 ac_cv_sizeof_float_t=0
22881 fi
22882fi
22883
22884fi
22885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
22886$as_echo "$ac_cv_sizeof_float_t" >&6; }
22887
22888
22889
22890cat >>confdefs.h <<_ACEOF
22891#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
22892_ACEOF
22893
22894
22895# The cast to long int works around a bug in the HP C Compiler
22896# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22897# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22898# This bug is HP SR number 8606223364.
22899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
22900$as_echo_n "checking size of double_t... " >&6; }
22901if ${ac_cv_sizeof_double_t+:} false; then :
22902 $as_echo_n "(cached) " >&6
22903else
22904 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
22905"; then :
22906
22907else
22908 if test "$ac_cv_type_double_t" = yes; then
22909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22911as_fn_error 77 "cannot compute sizeof (double_t)
22912See \`config.log' for more details" "$LINENO" 5; }
22913 else
22914 ac_cv_sizeof_double_t=0
22915 fi
22916fi
22917
22918fi
22919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
22920$as_echo "$ac_cv_sizeof_double_t" >&6; }
22921
22922
22923
22924cat >>confdefs.h <<_ACEOF
22925#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
22926_ACEOF
22927
22928
22929
22930# Get size of float, double and long double for comparaison.
22931# The cast to long int works around a bug in the HP C Compiler
22932# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22933# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22934# This bug is HP SR number 8606223364.
22935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
22936$as_echo_n "checking size of float... " >&6; }
22937if ${ac_cv_sizeof_float+:} false; then :
22938 $as_echo_n "(cached) " >&6
22939else
22940 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
22941
22942else
22943 if test "$ac_cv_type_float" = yes; then
22944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22946as_fn_error 77 "cannot compute sizeof (float)
22947See \`config.log' for more details" "$LINENO" 5; }
22948 else
22949 ac_cv_sizeof_float=0
22950 fi
22951fi
22952
22953fi
22954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
22955$as_echo "$ac_cv_sizeof_float" >&6; }
22956
22957
22958
22959cat >>confdefs.h <<_ACEOF
22960#define SIZEOF_FLOAT $ac_cv_sizeof_float
22961_ACEOF
22962
22963
22964# The cast to long int works around a bug in the HP C Compiler
22965# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22966# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22967# This bug is HP SR number 8606223364.
22968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
22969$as_echo_n "checking size of double... " >&6; }
22970if ${ac_cv_sizeof_double+:} false; then :
22971 $as_echo_n "(cached) " >&6
22972else
22973 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
22974
22975else
22976 if test "$ac_cv_type_double" = yes; then
22977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22979as_fn_error 77 "cannot compute sizeof (double)
22980See \`config.log' for more details" "$LINENO" 5; }
22981 else
22982 ac_cv_sizeof_double=0
22983 fi
22984fi
22985
22986fi
22987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
22988$as_echo "$ac_cv_sizeof_double" >&6; }
22989
22990
22991
22992cat >>confdefs.h <<_ACEOF
22993#define SIZEOF_DOUBLE $ac_cv_sizeof_double
22994_ACEOF
22995
22996
22997# The cast to long int works around a bug in the HP C Compiler
22998# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22999# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23000# This bug is HP SR number 8606223364.
23001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23002$as_echo_n "checking size of long double... " >&6; }
23003if ${ac_cv_sizeof_long_double+:} false; then :
23004 $as_echo_n "(cached) " >&6
23005else
23006 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23007
23008else
23009 if test "$ac_cv_type_long_double" = yes; then
23010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23012as_fn_error 77 "cannot compute sizeof (long double)
23013See \`config.log' for more details" "$LINENO" 5; }
23014 else
23015 ac_cv_sizeof_long_double=0
23016 fi
23017fi
23018
23019fi
23020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23021$as_echo "$ac_cv_sizeof_long_double" >&6; }
23022
23023
23024
23025cat >>confdefs.h <<_ACEOF
23026#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23027_ACEOF
23028
23029
cristyf0cf9a22012-10-24 12:05:01 +000023030
cristy3ed852e2009-09-05 21:47:34 +000023031# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23032# The cast to long int works around a bug in the HP C Compiler
23033# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23034# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23035# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023037$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023038if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023039 $as_echo_n "(cached) " >&6
23040else
cristy8b350f62009-11-15 23:12:43 +000023041 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 +000023042
cristy3ed852e2009-09-05 21:47:34 +000023043else
cristy8b350f62009-11-15 23:12:43 +000023044 if test "$ac_cv_type_signed_short" = yes; then
23045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023047as_fn_error 77 "cannot compute sizeof (signed short)
23048See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023049 else
23050 ac_cv_sizeof_signed_short=0
23051 fi
23052fi
cristy8b350f62009-11-15 23:12:43 +000023053
cristy3ed852e2009-09-05 21:47:34 +000023054fi
cristy8b350f62009-11-15 23:12:43 +000023055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023056$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23057
23058
23059
23060cat >>confdefs.h <<_ACEOF
23061#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23062_ACEOF
23063
23064
23065
23066# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23067# The cast to long int works around a bug in the HP C Compiler
23068# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23069# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23070# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023072$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023073if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023074 $as_echo_n "(cached) " >&6
23075else
cristy8b350f62009-11-15 23:12:43 +000023076 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 +000023077
cristy3ed852e2009-09-05 21:47:34 +000023078else
cristy8b350f62009-11-15 23:12:43 +000023079 if test "$ac_cv_type_unsigned_short" = yes; then
23080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023082as_fn_error 77 "cannot compute sizeof (unsigned short)
23083See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023084 else
23085 ac_cv_sizeof_unsigned_short=0
23086 fi
23087fi
cristy8b350f62009-11-15 23:12:43 +000023088
cristy3ed852e2009-09-05 21:47:34 +000023089fi
cristy8b350f62009-11-15 23:12:43 +000023090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023091$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23092
23093
23094
23095cat >>confdefs.h <<_ACEOF
23096#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23097_ACEOF
23098
23099
23100
23101# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23102# The cast to long int works around a bug in the HP C Compiler
23103# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23104# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23105# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023107$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023108if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023109 $as_echo_n "(cached) " >&6
23110else
cristy8b350f62009-11-15 23:12:43 +000023111 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 +000023112
cristy3ed852e2009-09-05 21:47:34 +000023113else
cristy8b350f62009-11-15 23:12:43 +000023114 if test "$ac_cv_type_signed_int" = yes; then
23115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023117as_fn_error 77 "cannot compute sizeof (signed int)
23118See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023119 else
23120 ac_cv_sizeof_signed_int=0
23121 fi
23122fi
cristy8b350f62009-11-15 23:12:43 +000023123
cristy3ed852e2009-09-05 21:47:34 +000023124fi
cristy8b350f62009-11-15 23:12:43 +000023125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023126$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23127
23128
23129
23130cat >>confdefs.h <<_ACEOF
23131#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23132_ACEOF
23133
23134
23135
23136# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23137# The cast to long int works around a bug in the HP C Compiler
23138# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23139# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23140# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023142$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023143if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023144 $as_echo_n "(cached) " >&6
23145else
cristy8b350f62009-11-15 23:12:43 +000023146 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 +000023147
cristy3ed852e2009-09-05 21:47:34 +000023148else
cristy8b350f62009-11-15 23:12:43 +000023149 if test "$ac_cv_type_unsigned_int" = yes; then
23150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023152as_fn_error 77 "cannot compute sizeof (unsigned int)
23153See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023154 else
23155 ac_cv_sizeof_unsigned_int=0
23156 fi
23157fi
cristy8b350f62009-11-15 23:12:43 +000023158
cristy3ed852e2009-09-05 21:47:34 +000023159fi
cristy8b350f62009-11-15 23:12:43 +000023160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023161$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23162
23163
23164
23165cat >>confdefs.h <<_ACEOF
23166#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23167_ACEOF
23168
23169
23170
23171# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23172# The cast to long int works around a bug in the HP C Compiler
23173# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23174# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23175# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023177$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023178if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023179 $as_echo_n "(cached) " >&6
23180else
cristy8b350f62009-11-15 23:12:43 +000023181 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 +000023182
cristy3ed852e2009-09-05 21:47:34 +000023183else
cristy8b350f62009-11-15 23:12:43 +000023184 if test "$ac_cv_type_signed_long" = yes; then
23185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023187as_fn_error 77 "cannot compute sizeof (signed long)
23188See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023189 else
23190 ac_cv_sizeof_signed_long=0
23191 fi
23192fi
cristy8b350f62009-11-15 23:12:43 +000023193
cristy3ed852e2009-09-05 21:47:34 +000023194fi
cristy8b350f62009-11-15 23:12:43 +000023195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023196$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23197
23198
23199
23200cat >>confdefs.h <<_ACEOF
23201#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23202_ACEOF
23203
23204
23205
23206# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23207# The cast to long int works around a bug in the HP C Compiler
23208# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23209# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23210# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023212$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023213if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023214 $as_echo_n "(cached) " >&6
23215else
cristy8b350f62009-11-15 23:12:43 +000023216 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 +000023217
cristy3ed852e2009-09-05 21:47:34 +000023218else
cristy8b350f62009-11-15 23:12:43 +000023219 if test "$ac_cv_type_unsigned_long" = yes; then
23220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023222as_fn_error 77 "cannot compute sizeof (unsigned long)
23223See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023224 else
23225 ac_cv_sizeof_unsigned_long=0
23226 fi
23227fi
cristy8b350f62009-11-15 23:12:43 +000023228
cristy3ed852e2009-09-05 21:47:34 +000023229fi
cristy8b350f62009-11-15 23:12:43 +000023230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023231$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23232
23233
23234
23235cat >>confdefs.h <<_ACEOF
23236#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23237_ACEOF
23238
23239
23240
23241# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23242# 'signed long long' is not supported then the value defined is zero.
23243# The cast to long int works around a bug in the HP C Compiler
23244# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23245# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23246# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023248$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023249if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023250 $as_echo_n "(cached) " >&6
23251else
cristy8b350f62009-11-15 23:12:43 +000023252 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023253
cristy3ed852e2009-09-05 21:47:34 +000023254else
cristy8b350f62009-11-15 23:12:43 +000023255 if test "$ac_cv_type_signed_long_long" = yes; then
23256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023258as_fn_error 77 "cannot compute sizeof (signed long long)
23259See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023260 else
23261 ac_cv_sizeof_signed_long_long=0
23262 fi
23263fi
cristy8b350f62009-11-15 23:12:43 +000023264
cristy3ed852e2009-09-05 21:47:34 +000023265fi
cristy8b350f62009-11-15 23:12:43 +000023266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023267$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23268
23269
23270
23271cat >>confdefs.h <<_ACEOF
23272#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23273_ACEOF
23274
23275
23276
23277# Obtain size of a 'unsigned long long' and define as
23278# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23279# supported then the value defined is zero.
23280# The cast to long int works around a bug in the HP C Compiler
23281# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23282# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23283# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023285$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023286if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023287 $as_echo_n "(cached) " >&6
23288else
cristy8b350f62009-11-15 23:12:43 +000023289 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 +000023290
cristy3ed852e2009-09-05 21:47:34 +000023291else
cristy8b350f62009-11-15 23:12:43 +000023292 if test "$ac_cv_type_unsigned_long_long" = yes; then
23293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023295as_fn_error 77 "cannot compute sizeof (unsigned long long)
23296See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023297 else
23298 ac_cv_sizeof_unsigned_long_long=0
23299 fi
23300fi
cristy8b350f62009-11-15 23:12:43 +000023301
cristy3ed852e2009-09-05 21:47:34 +000023302fi
cristy8b350f62009-11-15 23:12:43 +000023303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023304$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23305
23306
23307
23308cat >>confdefs.h <<_ACEOF
23309#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23310_ACEOF
23311
23312
23313
23314# Obtain size of off_t and define as SIZEOF_OFF_T
23315# The cast to long int works around a bug in the HP C Compiler
23316# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23317# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23318# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023320$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023321if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023322 $as_echo_n "(cached) " >&6
23323else
cristy8b350f62009-11-15 23:12:43 +000023324 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 +000023325
cristy3ed852e2009-09-05 21:47:34 +000023326else
cristy8b350f62009-11-15 23:12:43 +000023327 if test "$ac_cv_type_off_t" = yes; then
23328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023330as_fn_error 77 "cannot compute sizeof (off_t)
23331See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023332 else
23333 ac_cv_sizeof_off_t=0
23334 fi
23335fi
cristy8b350f62009-11-15 23:12:43 +000023336
cristy3ed852e2009-09-05 21:47:34 +000023337fi
cristy8b350f62009-11-15 23:12:43 +000023338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023339$as_echo "$ac_cv_sizeof_off_t" >&6; }
23340
23341
23342
23343cat >>confdefs.h <<_ACEOF
23344#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23345_ACEOF
23346
23347
23348
23349# Obtain size of size_t and define as SIZEOF_SIZE_T
23350# The cast to long int works around a bug in the HP C Compiler
23351# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23352# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23353# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023355$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023356if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023357 $as_echo_n "(cached) " >&6
23358else
cristy8b350f62009-11-15 23:12:43 +000023359 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 +000023360
cristy3ed852e2009-09-05 21:47:34 +000023361else
cristy8b350f62009-11-15 23:12:43 +000023362 if test "$ac_cv_type_size_t" = yes; then
23363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023365as_fn_error 77 "cannot compute sizeof (size_t)
23366See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023367 else
23368 ac_cv_sizeof_size_t=0
23369 fi
23370fi
cristy8b350f62009-11-15 23:12:43 +000023371
cristy3ed852e2009-09-05 21:47:34 +000023372fi
cristy8b350f62009-11-15 23:12:43 +000023373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023374$as_echo "$ac_cv_sizeof_size_t" >&6; }
23375
23376
23377
23378cat >>confdefs.h <<_ACEOF
23379#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23380_ACEOF
23381
23382
23383
cristy330e9352010-06-01 18:42:49 +000023384# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23385# The cast to long int works around a bug in the HP C Compiler
23386# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23387# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23388# This bug is HP SR number 8606223364.
23389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23390$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023391if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023392 $as_echo_n "(cached) " >&6
23393else
23394 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23395
23396else
23397 if test "$ac_cv_type_ssize_t" = yes; then
23398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023400as_fn_error 77 "cannot compute sizeof (ssize_t)
23401See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023402 else
23403 ac_cv_sizeof_ssize_t=0
23404 fi
23405fi
23406
23407fi
23408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23409$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23410
23411
23412
23413cat >>confdefs.h <<_ACEOF
23414#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23415_ACEOF
23416
23417
23418
cristy3ed852e2009-09-05 21:47:34 +000023419# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23420# The cast to long int works around a bug in the HP C Compiler
23421# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23422# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23423# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023425$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023426if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023427 $as_echo_n "(cached) " >&6
23428else
cristy8b350f62009-11-15 23:12:43 +000023429 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 +000023430
cristy3ed852e2009-09-05 21:47:34 +000023431else
cristy8b350f62009-11-15 23:12:43 +000023432 if test "$ac_cv_type_unsigned_intp" = yes; then
23433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023435as_fn_error 77 "cannot compute sizeof (unsigned int*)
23436See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023437 else
23438 ac_cv_sizeof_unsigned_intp=0
23439 fi
23440fi
cristy8b350f62009-11-15 23:12:43 +000023441
cristy3ed852e2009-09-05 21:47:34 +000023442fi
cristy8b350f62009-11-15 23:12:43 +000023443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023444$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23445
23446
23447
23448cat >>confdefs.h <<_ACEOF
23449#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23450_ACEOF
23451
23452
23453
23454#
23455# Compute sized types for current CPU and compiler options.
23456#
23457
cristy8b350f62009-11-15 23:12:43 +000023458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023459$as_echo_n "checking for signed 8-bit type... " >&6; }
23460INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23462$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023463
23464
cristy8b350f62009-11-15 23:12:43 +000023465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023466$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23467UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23469$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023470
23471
cristy8b350f62009-11-15 23:12:43 +000023472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023473$as_echo_n "checking for signed 16-bit type... " >&6; }
23474INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23476$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023477
23478
cristy8b350f62009-11-15 23:12:43 +000023479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023480$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23481UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23483$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023484
23485
cristy8b350f62009-11-15 23:12:43 +000023486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023487$as_echo_n "checking for signed 32-bit type... " >&6; }
23488INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023489INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023490if test $ac_cv_sizeof_signed_int -eq 4; then
23491 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023492 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023493elif test $ac_cv_sizeof_signed_long -eq 4; then
23494 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023495 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023496fi
cristyad38abe2012-12-23 23:03:21 +000023497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23498$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023499
23500
cristy6d5e20f2011-04-25 13:48:54 +000023501
cristy8b350f62009-11-15 23:12:43 +000023502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023503$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23504UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023505UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023506if test $ac_cv_sizeof_unsigned_int -eq 4; then
23507 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023508 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023509elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23510 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023511 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023512fi
cristyad38abe2012-12-23 23:03:21 +000023513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23514$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023515
23516
cristy6d5e20f2011-04-25 13:48:54 +000023517
cristy8b350f62009-11-15 23:12:43 +000023518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023519$as_echo_n "checking for signed 64-bit type... " >&6; }
23520INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023521INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023522if test $ac_cv_sizeof_signed_long -eq 8; then
23523 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023524 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023525elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23526 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023527 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023528fi
cristy3a99dcf2011-12-17 01:29:40 +000023529case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023530 mingw* )
23531 INT64_F='"I64"'
23532 ;;
23533esac
cristyad38abe2012-12-23 23:03:21 +000023534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23535$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023536
23537
cristy6d5e20f2011-04-25 13:48:54 +000023538
cristy8b350f62009-11-15 23:12:43 +000023539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023540$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23541UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023542UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023543if test $ac_cv_sizeof_unsigned_long -eq 8; then
23544 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023545 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023546elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23547 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023548 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023549fi
cristy3a99dcf2011-12-17 01:29:40 +000023550case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023551 mingw* )
23552 UINT64_F='"I64"'
23553 ;;
23554esac
cristyad38abe2012-12-23 23:03:21 +000023555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23556$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023557
23558
cristy6d5e20f2011-04-25 13:48:54 +000023559
cristy8b350f62009-11-15 23:12:43 +000023560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023561$as_echo_n "checking for unsigned maximum type... " >&6; }
23562UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023563UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023564if test "$UINT64_T" != 'none'; then
23565 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023566 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023567elif test "$UINT32_T" != 'none'; then
23568 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023569 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023570fi
cristyad38abe2012-12-23 23:03:21 +000023571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23572$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023573
23574
cristy6d5e20f2011-04-25 13:48:54 +000023575
cristy8b350f62009-11-15 23:12:43 +000023576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023577$as_echo_n "checking for pointer difference type... " >&6; }
23578UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023579UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023580if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23581 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023582 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023583elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23584 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023585 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023586fi
cristyad38abe2012-12-23 23:03:21 +000023587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23588$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023589
23590
cristy6d5e20f2011-04-25 13:48:54 +000023591
cristy8b350f62009-11-15 23:12:43 +000023592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023593$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023595/* end confdefs.h. */
23596
23597int
23598main ()
23599{
23600{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23601 ;
23602 return 0;
23603}
23604_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023605if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23607$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023608else
cristyad38abe2012-12-23 23:03:21 +000023609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23610$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023612$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023614/* end confdefs.h. */
23615
23616int
23617main ()
23618{
23619{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23620 ;
23621 return 0;
23622}
23623_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023624if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23626$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023627
cristy8b350f62009-11-15 23:12:43 +000023628$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023629
23630else
cristyad38abe2012-12-23 23:03:21 +000023631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23632$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023633
cristy8b350f62009-11-15 23:12:43 +000023634$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023635
23636fi
cristy3ed852e2009-09-05 21:47:34 +000023637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23638fi
cristy3ed852e2009-09-05 21:47:34 +000023639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23640
23641########
23642#
23643# Check for functions
23644#
23645########
cristy73bd4a52010-10-05 11:24:23 +000023646for ac_header in stdlib.h unistd.h
23647do :
23648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23649ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023650if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023651 cat >>confdefs.h <<_ACEOF
23652#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23653_ACEOF
23654
23655fi
23656
23657done
23658
23659for ac_func in getpagesize
23660do :
23661 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023662if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023663 cat >>confdefs.h <<_ACEOF
23664#define HAVE_GETPAGESIZE 1
23665_ACEOF
23666
23667fi
23668done
23669
23670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23671$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023672if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023673 $as_echo_n "(cached) " >&6
23674else
23675 if test "$cross_compiling" = yes; then :
23676 magick_cv_func_mmap_fileio=no
23677else
23678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23679/* end confdefs.h. */
23680$ac_includes_default
23681/* malloc might have been renamed as rpl_malloc. */
23682#undef malloc
23683
23684/*
23685 This test is derived from GNU Autoconf's similar macro.
23686 The purpose of this test is to verify that files may be memory
23687 mapped, and that memory mapping and file I/O are coherent.
23688
23689 The test creates a test file, memory maps the file, updates
23690 the file using the memory map, and then reads the file using
23691 file I/O to verify that the file contains the updates.
23692*/
23693
23694#include <fcntl.h>
23695#include <sys/mman.h>
23696
23697#if !STDC_HEADERS && !HAVE_STDLIB_H
23698char *malloc ();
23699#endif
23700
23701/* This mess was copied from the GNU getpagesize.h. */
23702#if !HAVE_GETPAGESIZE
23703/* Assume that all systems that can run configure have sys/param.h. */
23704# if !HAVE_SYS_PARAM_H
23705# define HAVE_SYS_PARAM_H 1
23706# endif
23707
23708# ifdef _SC_PAGESIZE
23709# define getpagesize() sysconf(_SC_PAGESIZE)
23710# else /* no _SC_PAGESIZE */
23711# if HAVE_SYS_PARAM_H
23712# include <sys/param.h>
23713# ifdef EXEC_PAGESIZE
23714# define getpagesize() EXEC_PAGESIZE
23715# else /* no EXEC_PAGESIZE */
23716# ifdef NBPG
23717# define getpagesize() NBPG * CLSIZE
23718# ifndef CLSIZE
23719# define CLSIZE 1
23720# endif /* no CLSIZE */
23721# else /* no NBPG */
23722# ifdef NBPC
23723# define getpagesize() NBPC
23724# else /* no NBPC */
23725# ifdef PAGESIZE
23726# define getpagesize() PAGESIZE
23727# endif /* PAGESIZE */
23728# endif /* no NBPC */
23729# endif /* no NBPG */
23730# endif /* no EXEC_PAGESIZE */
23731# else /* no HAVE_SYS_PARAM_H */
23732# define getpagesize() 8192 /* punt totally */
23733# endif /* no HAVE_SYS_PARAM_H */
23734# endif /* no _SC_PAGESIZE */
23735
23736#endif /* no HAVE_GETPAGESIZE */
23737
23738int
23739main ()
23740{
23741 char *data, *data2, *data3;
23742 int i, pagesize;
23743 int fd;
23744
23745 pagesize = getpagesize ();
23746
23747 /* First, make a file with some known garbage in it. */
23748 data = (char *) malloc (pagesize);
23749 if (!data)
23750 exit (1);
23751 for (i = 0; i < pagesize; ++i)
23752 *(data + i) = rand ();
23753 umask (0);
23754 fd = creat ("conftest.mmap", 0600);
23755 if (fd < 0)
23756 exit (1);
23757 if (write (fd, data, pagesize) != pagesize)
23758 exit (1);
23759 close (fd);
23760
23761 /* Mmap the file as read/write/shared and verify that we see the
23762 same garbage. */
23763 fd = open ("conftest.mmap", O_RDWR);
23764 if (fd < 0)
23765 exit (1);
23766 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23767 if (data2 == 0)
23768 exit (1);
23769 for (i = 0; i < pagesize; ++i)
23770 if (*(data + i) != *(data2 + i))
23771 exit (1);
23772
23773 /* Finally, make sure that changes to the mapped area
23774 percolate back to the file as seen by read(). */
23775 for (i = 0; i < pagesize; ++i)
23776 *(data2 + i) = *(data2 + i) + 1;
23777 data3 = (char *) malloc (pagesize);
23778 if (!data3)
23779 exit (1);
23780 if (read (fd, data3, pagesize) != pagesize)
23781 exit (1);
23782 for (i = 0; i < pagesize; ++i)
23783 if (*(data2 + i) != *(data3 + i))
23784 exit (1);
23785 close (fd);
23786 exit (0);
23787}
23788_ACEOF
23789if ac_fn_c_try_run "$LINENO"; then :
23790 magick_cv_func_mmap_fileio=yes
23791else
23792 magick_cv_func_mmap_fileio=no
23793fi
23794rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23795 conftest.$ac_objext conftest.beam conftest.$ac_ext
23796fi
23797
23798fi
23799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23800$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23801if test $magick_cv_func_mmap_fileio = yes; then
23802
23803$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23804
23805fi
23806rm -f conftest.mmap
23807
cristy8b350f62009-11-15 23:12:43 +000023808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023809$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023810if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023811 $as_echo_n "(cached) " >&6
23812else
cristy8b350f62009-11-15 23:12:43 +000023813 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023814 ac_cv_func_closedir_void=yes
23815else
cristy8b350f62009-11-15 23:12:43 +000023816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023817/* end confdefs.h. */
23818$ac_includes_default
23819#include <$ac_header_dirent>
23820#ifndef __cplusplus
23821int closedir ();
23822#endif
23823
23824int
23825main ()
23826{
23827return closedir (opendir (".")) != 0;
23828 ;
23829 return 0;
23830}
23831_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023832if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023833 ac_cv_func_closedir_void=no
23834else
cristy8b350f62009-11-15 23:12:43 +000023835 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023836fi
cristy8b350f62009-11-15 23:12:43 +000023837rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23838 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023839fi
23840
cristy3ed852e2009-09-05 21:47:34 +000023841fi
cristy8b350f62009-11-15 23:12:43 +000023842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023843$as_echo "$ac_cv_func_closedir_void" >&6; }
23844if test $ac_cv_func_closedir_void = yes; then
23845
cristy8b350f62009-11-15 23:12:43 +000023846$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023847
23848fi
23849
cristycd4c5312009-11-22 01:19:08 +000023850
23851
23852
23853 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023854do :
23855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023856ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23857"
cristy98dddb52010-11-04 00:30:15 +000023858if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023859 cat >>confdefs.h <<_ACEOF
23860#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23861_ACEOF
23862
23863fi
23864
23865done
23866
cristycd4c5312009-11-22 01:19:08 +000023867
23868
23869
23870
23871
23872
23873
cristy3ed852e2009-09-05 21:47:34 +000023874for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023875do :
23876 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023877if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023878 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023879#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023880_ACEOF
23881
23882fi
23883done
23884
cristy8b350f62009-11-15 23:12:43 +000023885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023886$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023887if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023888 $as_echo_n "(cached) " >&6
23889else
cristy8b350f62009-11-15 23:12:43 +000023890 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023891 ac_cv_func_mmap_fixed_mapped=no
23892else
cristy8b350f62009-11-15 23:12:43 +000023893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023894/* end confdefs.h. */
23895$ac_includes_default
23896/* malloc might have been renamed as rpl_malloc. */
23897#undef malloc
23898
23899/* Thanks to Mike Haertel and Jim Avera for this test.
23900 Here is a matrix of mmap possibilities:
23901 mmap private not fixed
23902 mmap private fixed at somewhere currently unmapped
23903 mmap private fixed at somewhere already mapped
23904 mmap shared not fixed
23905 mmap shared fixed at somewhere currently unmapped
23906 mmap shared fixed at somewhere already mapped
23907 For private mappings, we should verify that changes cannot be read()
23908 back from the file, nor mmap's back from the file at a different
23909 address. (There have been systems where private was not correctly
23910 implemented like the infamous i386 svr4.0, and systems where the
23911 VM page cache was not coherent with the file system buffer cache
23912 like early versions of FreeBSD and possibly contemporary NetBSD.)
23913 For shared mappings, we should conversely verify that changes get
23914 propagated back to all the places they're supposed to be.
23915
23916 Grep wants private fixed already mapped.
23917 The main things grep needs to know about mmap are:
23918 * does it exist and is it safe to write into the mmap'd area
23919 * how to use it (BSD variants) */
23920
23921#include <fcntl.h>
23922#include <sys/mman.h>
23923
23924#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23925char *malloc ();
23926#endif
23927
23928/* This mess was copied from the GNU getpagesize.h. */
23929#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000023930# ifdef _SC_PAGESIZE
23931# define getpagesize() sysconf(_SC_PAGESIZE)
23932# else /* no _SC_PAGESIZE */
23933# ifdef HAVE_SYS_PARAM_H
23934# include <sys/param.h>
23935# ifdef EXEC_PAGESIZE
23936# define getpagesize() EXEC_PAGESIZE
23937# else /* no EXEC_PAGESIZE */
23938# ifdef NBPG
23939# define getpagesize() NBPG * CLSIZE
23940# ifndef CLSIZE
23941# define CLSIZE 1
23942# endif /* no CLSIZE */
23943# else /* no NBPG */
23944# ifdef NBPC
23945# define getpagesize() NBPC
23946# else /* no NBPC */
23947# ifdef PAGESIZE
23948# define getpagesize() PAGESIZE
23949# endif /* PAGESIZE */
23950# endif /* no NBPC */
23951# endif /* no NBPG */
23952# endif /* no EXEC_PAGESIZE */
23953# else /* no HAVE_SYS_PARAM_H */
23954# define getpagesize() 8192 /* punt totally */
23955# endif /* no HAVE_SYS_PARAM_H */
23956# endif /* no _SC_PAGESIZE */
23957
23958#endif /* no HAVE_GETPAGESIZE */
23959
23960int
23961main ()
23962{
23963 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000023964 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000023965 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000023966 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000023967
23968 pagesize = getpagesize ();
23969
23970 /* First, make a file with some known garbage in it. */
23971 data = (char *) malloc (pagesize);
23972 if (!data)
23973 return 1;
23974 for (i = 0; i < pagesize; ++i)
23975 *(data + i) = rand ();
23976 umask (0);
23977 fd = creat ("conftest.mmap", 0600);
23978 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023979 return 2;
cristy3ed852e2009-09-05 21:47:34 +000023980 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023981 return 3;
cristy3ed852e2009-09-05 21:47:34 +000023982 close (fd);
23983
cristycd4c5312009-11-22 01:19:08 +000023984 /* Next, check that the tail of a page is zero-filled. File must have
23985 non-zero length, otherwise we risk SIGBUS for entire page. */
23986 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23987 if (fd2 < 0)
23988 return 4;
cristyc54f5d42009-11-27 21:36:31 +000023989 cdata2 = "";
23990 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000023991 return 5;
cristyc54f5d42009-11-27 21:36:31 +000023992 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000023993 if (data2 == MAP_FAILED)
23994 return 6;
23995 for (i = 0; i < pagesize; ++i)
23996 if (*(data2 + i))
23997 return 7;
23998 close (fd2);
23999 if (munmap (data2, pagesize))
24000 return 8;
24001
cristy3ed852e2009-09-05 21:47:34 +000024002 /* Next, try to mmap the file at a fixed address which already has
24003 something else allocated at it. If we can, also make sure that
24004 we see the same garbage. */
24005 fd = open ("conftest.mmap", O_RDWR);
24006 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024007 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024008 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24009 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024010 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024011 for (i = 0; i < pagesize; ++i)
24012 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024013 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024014
24015 /* Finally, make sure that changes to the mapped area do not
24016 percolate back to the file as seen by read(). (This is a bug on
24017 some variants of i386 svr4.0.) */
24018 for (i = 0; i < pagesize; ++i)
24019 *(data2 + i) = *(data2 + i) + 1;
24020 data3 = (char *) malloc (pagesize);
24021 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024022 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024023 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024024 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024025 for (i = 0; i < pagesize; ++i)
24026 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024027 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024028 close (fd);
24029 return 0;
24030}
24031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024032if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024033 ac_cv_func_mmap_fixed_mapped=yes
24034else
cristy8b350f62009-11-15 23:12:43 +000024035 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024036fi
cristy8b350f62009-11-15 23:12:43 +000024037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24038 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024039fi
24040
cristy3ed852e2009-09-05 21:47:34 +000024041fi
cristy8b350f62009-11-15 23:12:43 +000024042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024043$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24044if test $ac_cv_func_mmap_fixed_mapped = yes; then
24045
cristy8b350f62009-11-15 23:12:43 +000024046$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024047
24048fi
cristycd4c5312009-11-22 01:19:08 +000024049rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024050
cristy3ed852e2009-09-05 21:47:34 +000024051for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024052do :
24053 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024054if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024055 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024056#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024057_ACEOF
24058
24059fi
24060
24061done
24062
cristy3ed852e2009-09-05 21:47:34 +000024063for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024064do :
24065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24066ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024067if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024068 cat >>confdefs.h <<_ACEOF
24069#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24070_ACEOF
24071
24072fi
24073done
24074
24075if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024077$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024078if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024079 $as_echo_n "(cached) " >&6
24080else
cristy8b350f62009-11-15 23:12:43 +000024081 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024082 ac_cv_func_fork_works=cross
24083else
cristy8b350f62009-11-15 23:12:43 +000024084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024085/* end confdefs.h. */
24086$ac_includes_default
24087int
24088main ()
24089{
24090
24091 /* By Ruediger Kuhlmann. */
24092 return fork () < 0;
24093
24094 ;
24095 return 0;
24096}
24097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024098if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024099 ac_cv_func_fork_works=yes
24100else
cristy8b350f62009-11-15 23:12:43 +000024101 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024102fi
cristy8b350f62009-11-15 23:12:43 +000024103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24104 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024105fi
24106
cristy3ed852e2009-09-05 21:47:34 +000024107fi
cristy8b350f62009-11-15 23:12:43 +000024108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024109$as_echo "$ac_cv_func_fork_works" >&6; }
24110
24111else
24112 ac_cv_func_fork_works=$ac_cv_func_fork
24113fi
24114if test "x$ac_cv_func_fork_works" = xcross; then
24115 case $host in
24116 *-*-amigaos* | *-*-msdosdjgpp*)
24117 # Override, as these systems have only a dummy fork() stub
24118 ac_cv_func_fork_works=no
24119 ;;
24120 *)
24121 ac_cv_func_fork_works=yes
24122 ;;
24123 esac
cristy8b350f62009-11-15 23:12:43 +000024124 { $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 +000024125$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24126fi
24127ac_cv_func_vfork_works=$ac_cv_func_vfork
24128if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024130$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024131if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024132 $as_echo_n "(cached) " >&6
24133else
cristy8b350f62009-11-15 23:12:43 +000024134 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024135 ac_cv_func_vfork_works=cross
24136else
cristy8b350f62009-11-15 23:12:43 +000024137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024138/* end confdefs.h. */
24139/* Thanks to Paul Eggert for this test. */
24140$ac_includes_default
24141#include <sys/wait.h>
24142#ifdef HAVE_VFORK_H
24143# include <vfork.h>
24144#endif
24145/* On some sparc systems, changes by the child to local and incoming
24146 argument registers are propagated back to the parent. The compiler
24147 is told about this with #include <vfork.h>, but some compilers
24148 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24149 static variable whose address is put into a register that is
24150 clobbered by the vfork. */
24151static void
24152#ifdef __cplusplus
24153sparc_address_test (int arg)
24154# else
24155sparc_address_test (arg) int arg;
24156#endif
24157{
24158 static pid_t child;
24159 if (!child) {
24160 child = vfork ();
24161 if (child < 0) {
24162 perror ("vfork");
24163 _exit(2);
24164 }
24165 if (!child) {
24166 arg = getpid();
24167 write(-1, "", 0);
24168 _exit (arg);
24169 }
24170 }
24171}
24172
24173int
24174main ()
24175{
24176 pid_t parent = getpid ();
24177 pid_t child;
24178
24179 sparc_address_test (0);
24180
24181 child = vfork ();
24182
24183 if (child == 0) {
24184 /* Here is another test for sparc vfork register problems. This
24185 test uses lots of local variables, at least as many local
24186 variables as main has allocated so far including compiler
24187 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24188 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24189 reuse the register of parent for one of the local variables,
24190 since it will think that parent can't possibly be used any more
24191 in this routine. Assigning to the local variable will thus
24192 munge parent in the parent process. */
24193 pid_t
24194 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24195 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24196 /* Convince the compiler that p..p7 are live; otherwise, it might
24197 use the same hardware register for all 8 local variables. */
24198 if (p != p1 || p != p2 || p != p3 || p != p4
24199 || p != p5 || p != p6 || p != p7)
24200 _exit(1);
24201
24202 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24203 from child file descriptors. If the child closes a descriptor
24204 before it execs or exits, this munges the parent's descriptor
24205 as well. Test for this by closing stdout in the child. */
24206 _exit(close(fileno(stdout)) != 0);
24207 } else {
24208 int status;
24209 struct stat st;
24210
24211 while (wait(&status) != child)
24212 ;
24213 return (
24214 /* Was there some problem with vforking? */
24215 child < 0
24216
24217 /* Did the child fail? (This shouldn't happen.) */
24218 || status
24219
24220 /* Did the vfork/compiler bug occur? */
24221 || parent != getpid()
24222
24223 /* Did the file descriptor bug occur? */
24224 || fstat(fileno(stdout), &st) != 0
24225 );
24226 }
24227}
24228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024229if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024230 ac_cv_func_vfork_works=yes
24231else
cristy8b350f62009-11-15 23:12:43 +000024232 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024233fi
cristy8b350f62009-11-15 23:12:43 +000024234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24235 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024236fi
24237
cristy3ed852e2009-09-05 21:47:34 +000024238fi
cristy8b350f62009-11-15 23:12:43 +000024239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024240$as_echo "$ac_cv_func_vfork_works" >&6; }
24241
24242fi;
24243if test "x$ac_cv_func_fork_works" = xcross; then
24244 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024245 { $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 +000024246$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24247fi
24248
24249if test "x$ac_cv_func_vfork_works" = xyes; then
24250
cristy8b350f62009-11-15 23:12:43 +000024251$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024252
24253else
24254
cristy8b350f62009-11-15 23:12:43 +000024255$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024256
24257fi
24258if test "x$ac_cv_func_fork_works" = xyes; then
24259
cristy8b350f62009-11-15 23:12:43 +000024260$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024261
24262fi
24263
cristy8b350f62009-11-15 23:12:43 +000024264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024265$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024266if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024267 $as_echo_n "(cached) " >&6
24268else
cristy8b350f62009-11-15 23:12:43 +000024269 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024270 ac_cv_func_memcmp_working=no
24271else
cristy8b350f62009-11-15 23:12:43 +000024272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024273/* end confdefs.h. */
24274$ac_includes_default
24275int
24276main ()
24277{
24278
24279 /* Some versions of memcmp are not 8-bit clean. */
24280 char c0 = '\100', c1 = '\200', c2 = '\201';
24281 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24282 return 1;
24283
24284 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24285 or more and with at least one buffer not starting on a 4-byte boundary.
24286 William Lewis provided this test program. */
24287 {
24288 char foo[21];
24289 char bar[21];
24290 int i;
24291 for (i = 0; i < 4; i++)
24292 {
24293 char *a = foo + i;
24294 char *b = bar + i;
24295 strcpy (a, "--------01111111");
24296 strcpy (b, "--------10000000");
24297 if (memcmp (a, b, 16) >= 0)
24298 return 1;
24299 }
24300 return 0;
24301 }
24302
24303 ;
24304 return 0;
24305}
24306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024307if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024308 ac_cv_func_memcmp_working=yes
24309else
cristy8b350f62009-11-15 23:12:43 +000024310 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024311fi
cristy8b350f62009-11-15 23:12:43 +000024312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24313 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024314fi
24315
cristy3ed852e2009-09-05 21:47:34 +000024316fi
cristy8b350f62009-11-15 23:12:43 +000024317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024318$as_echo "$ac_cv_func_memcmp_working" >&6; }
24319test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24320 *" memcmp.$ac_objext "* ) ;;
24321 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24322 ;;
24323esac
24324
24325
cristy3ed852e2009-09-05 21:47:34 +000024326for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024327do :
24328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24329ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024330if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024331 cat >>confdefs.h <<_ACEOF
24332#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24333_ACEOF
24334
24335fi
24336
24337done
24338
cristy8b350f62009-11-15 23:12:43 +000024339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024340$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024341if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024342 $as_echo_n "(cached) " >&6
24343else
24344 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24345 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24346 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024348/* end confdefs.h. */
24349$ac_includes_default
24350#ifdef HAVE_SYS_SELECT_H
24351# include <sys/select.h>
24352#endif
24353#ifdef HAVE_SYS_SOCKET_H
24354# include <sys/socket.h>
24355#endif
24356
24357int
24358main ()
24359{
24360extern int select ($ac_arg1,
24361 $ac_arg234, $ac_arg234, $ac_arg234,
24362 $ac_arg5);
24363 ;
24364 return 0;
24365}
24366_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024367if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024368 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024369fi
cristy3ed852e2009-09-05 21:47:34 +000024370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24371 done
24372 done
24373done
24374# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024375: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024376
24377fi
cristy8b350f62009-11-15 23:12:43 +000024378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024379$as_echo "$ac_cv_func_select_args" >&6; }
24380ac_save_IFS=$IFS; IFS=','
24381set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24382IFS=$ac_save_IFS
24383shift
24384
24385cat >>confdefs.h <<_ACEOF
24386#define SELECT_TYPE_ARG1 $1
24387_ACEOF
24388
24389
24390cat >>confdefs.h <<_ACEOF
24391#define SELECT_TYPE_ARG234 ($2)
24392_ACEOF
24393
24394
24395cat >>confdefs.h <<_ACEOF
24396#define SELECT_TYPE_ARG5 ($3)
24397_ACEOF
24398
24399rm -f conftest*
24400
cristyda16f162011-02-19 23:52:17 +000024401if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024402 $as_echo_n "(cached) " >&6
24403else
24404 ac_cv_func_setvbuf_reversed=no
24405fi
24406
24407
cristy8b350f62009-11-15 23:12:43 +000024408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024409$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024410if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024411 $as_echo_n "(cached) " >&6
24412else
cristy8b350f62009-11-15 23:12:43 +000024413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024414/* end confdefs.h. */
24415#include <sys/types.h>
24416#include <signal.h>
24417
24418int
24419main ()
24420{
24421return *(signal (0, 0)) (0) == 1;
24422 ;
24423 return 0;
24424}
24425_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024426if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024427 ac_cv_type_signal=int
24428else
cristy8b350f62009-11-15 23:12:43 +000024429 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024430fi
cristy3ed852e2009-09-05 21:47:34 +000024431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24432fi
cristy8b350f62009-11-15 23:12:43 +000024433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024434$as_echo "$ac_cv_type_signal" >&6; }
24435
24436cat >>confdefs.h <<_ACEOF
24437#define RETSIGTYPE $ac_cv_type_signal
24438_ACEOF
24439
24440
cristy8b350f62009-11-15 23:12:43 +000024441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024442$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024443if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024444 $as_echo_n "(cached) " >&6
24445else
cristy8b350f62009-11-15 23:12:43 +000024446 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024447 ac_cv_func_strtod=no
24448else
cristy8b350f62009-11-15 23:12:43 +000024449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024450/* end confdefs.h. */
24451
24452$ac_includes_default
24453#ifndef strtod
24454double strtod ();
24455#endif
24456int
24457main()
24458{
24459 {
24460 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24461 char *string = " +69";
24462 char *term;
24463 double value;
24464 value = strtod (string, &term);
24465 if (value != 69 || term != (string + 4))
24466 return 1;
24467 }
24468
24469 {
24470 /* Under Solaris 2.4, strtod returns the wrong value for the
24471 terminating character under some conditions. */
24472 char *string = "NaN";
24473 char *term;
24474 strtod (string, &term);
24475 if (term != string && *(term - 1) == 0)
24476 return 1;
24477 }
24478 return 0;
24479}
24480
24481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024482if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024483 ac_cv_func_strtod=yes
24484else
cristy8b350f62009-11-15 23:12:43 +000024485 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024486fi
cristy8b350f62009-11-15 23:12:43 +000024487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24488 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024489fi
24490
cristy3ed852e2009-09-05 21:47:34 +000024491fi
cristy8b350f62009-11-15 23:12:43 +000024492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024493$as_echo "$ac_cv_func_strtod" >&6; }
24494if test $ac_cv_func_strtod = no; then
24495 case " $LIBOBJS " in
24496 *" strtod.$ac_objext "* ) ;;
24497 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24498 ;;
24499esac
24500
cristy8b350f62009-11-15 23:12:43 +000024501ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024502if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024503
cristy3ed852e2009-09-05 21:47:34 +000024504fi
24505
cristy3ed852e2009-09-05 21:47:34 +000024506if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024508$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024509if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024510 $as_echo_n "(cached) " >&6
24511else
24512 ac_check_lib_save_LIBS=$LIBS
24513LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024515/* end confdefs.h. */
24516
24517/* Override any GCC internal prototype to avoid an error.
24518 Use char because int might match the return type of a GCC
24519 builtin and then its argument prototype would still apply. */
24520#ifdef __cplusplus
24521extern "C"
24522#endif
24523char pow ();
24524int
24525main ()
24526{
24527return pow ();
24528 ;
24529 return 0;
24530}
24531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024532if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024533 ac_cv_lib_m_pow=yes
24534else
cristy8b350f62009-11-15 23:12:43 +000024535 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024536fi
cristy8b350f62009-11-15 23:12:43 +000024537rm -f core conftest.err conftest.$ac_objext \
24538 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024539LIBS=$ac_check_lib_save_LIBS
24540fi
cristy8b350f62009-11-15 23:12:43 +000024541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024542$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024543if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024544 POW_LIB=-lm
24545else
cristy8b350f62009-11-15 23:12:43 +000024546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024547$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24548fi
24549
24550fi
24551
24552fi
24553
cristy7d4a1d62011-10-13 15:54:12 +000024554ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24555if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24556 ac_have_decl=1
24557else
24558 ac_have_decl=0
24559fi
24560
24561cat >>confdefs.h <<_ACEOF
24562#define HAVE_DECL_STRERROR_R $ac_have_decl
24563_ACEOF
24564
24565for ac_func in strerror_r
24566do :
24567 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24568if test "x$ac_cv_func_strerror_r" = xyes; then :
24569 cat >>confdefs.h <<_ACEOF
24570#define HAVE_STRERROR_R 1
24571_ACEOF
24572
24573fi
24574done
24575
24576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24577$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24578if ${ac_cv_func_strerror_r_char_p+:} false; then :
24579 $as_echo_n "(cached) " >&6
24580else
24581
24582 ac_cv_func_strerror_r_char_p=no
24583 if test $ac_cv_have_decl_strerror_r = yes; then
24584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24585/* end confdefs.h. */
24586$ac_includes_default
24587int
24588main ()
24589{
24590
24591 char buf[100];
24592 char x = *strerror_r (0, buf, sizeof buf);
24593 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024594 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024595
24596 ;
24597 return 0;
24598}
24599_ACEOF
24600if ac_fn_c_try_compile "$LINENO"; then :
24601 ac_cv_func_strerror_r_char_p=yes
24602fi
24603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24604 else
24605 # strerror_r is not declared. Choose between
24606 # systems that have relatively inaccessible declarations for the
24607 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24608 # former has a strerror_r that returns char*, while the latter
24609 # has a strerror_r that returns `int'.
24610 # This test should segfault on the DEC system.
24611 if test "$cross_compiling" = yes; then :
24612 :
24613else
24614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24615/* end confdefs.h. */
24616$ac_includes_default
24617 extern char *strerror_r ();
24618int
24619main ()
24620{
24621char buf[100];
24622 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024623 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024624 ;
24625 return 0;
24626}
24627_ACEOF
24628if ac_fn_c_try_run "$LINENO"; then :
24629 ac_cv_func_strerror_r_char_p=yes
24630fi
24631rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24632 conftest.$ac_objext conftest.beam conftest.$ac_ext
24633fi
24634
24635 fi
24636
24637fi
24638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24639$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24640if test $ac_cv_func_strerror_r_char_p = yes; then
24641
24642$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24643
24644fi
24645
cristy3ed852e2009-09-05 21:47:34 +000024646for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024647do :
24648 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024649if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024650 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024651#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024652_ACEOF
24653
cristy8b350f62009-11-15 23:12:43 +000024654ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024655if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024656
cristy8b350f62009-11-15 23:12:43 +000024657$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024658
24659fi
24660
24661fi
24662done
24663
24664
24665
cristy161b9262010-03-20 19:34:32 +000024666#
24667# Find math library
24668#
24669MATH_LIBS=''
24670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24671$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024672if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024673 $as_echo_n "(cached) " >&6
24674else
24675 ac_check_lib_save_LIBS=$LIBS
24676LIBS="-lm $LIBS"
24677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24678/* end confdefs.h. */
24679
24680/* Override any GCC internal prototype to avoid an error.
24681 Use char because int might match the return type of a GCC
24682 builtin and then its argument prototype would still apply. */
24683#ifdef __cplusplus
24684extern "C"
24685#endif
24686char sqrt ();
24687int
24688main ()
24689{
24690return sqrt ();
24691 ;
24692 return 0;
24693}
24694_ACEOF
24695if ac_fn_c_try_link "$LINENO"; then :
24696 ac_cv_lib_m_sqrt=yes
24697else
24698 ac_cv_lib_m_sqrt=no
24699fi
24700rm -f core conftest.err conftest.$ac_objext \
24701 conftest$ac_exeext conftest.$ac_ext
24702LIBS=$ac_check_lib_save_LIBS
24703fi
24704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24705$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024706if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024707 MATH_LIBS="-lm"
24708fi
24709
24710LIBS="$MATH_LIBS $LIBS"
24711
24712
cristy568c2d42012-07-27 01:41:20 +000024713for 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 +000024714do :
24715 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24716ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024717if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024718 cat >>confdefs.h <<_ACEOF
24719#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24720_ACEOF
24721
24722fi
24723done
24724
24725
cristye43a45e2009-09-28 14:49:00 +000024726#
24727# Check for clock_gettime().
24728#
cristy8b350f62009-11-15 23:12:43 +000024729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024730$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024731if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024732 $as_echo_n "(cached) " >&6
24733else
24734 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024736/* end confdefs.h. */
24737
24738/* Override any GCC internal prototype to avoid an error.
24739 Use char because int might match the return type of a GCC
24740 builtin and then its argument prototype would still apply. */
24741#ifdef __cplusplus
24742extern "C"
24743#endif
24744char clock_gettime ();
24745int
24746main ()
24747{
24748return clock_gettime ();
24749 ;
24750 return 0;
24751}
24752_ACEOF
24753for ac_lib in '' rt; do
24754 if test -z "$ac_lib"; then
24755 ac_res="none required"
24756 else
24757 ac_res=-l$ac_lib
24758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24759 fi
cristy8b350f62009-11-15 23:12:43 +000024760 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024761 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024762fi
cristy8b350f62009-11-15 23:12:43 +000024763rm -f core conftest.err conftest.$ac_objext \
24764 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024765 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024766 break
24767fi
24768done
cristyda16f162011-02-19 23:52:17 +000024769if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024770
cristye43a45e2009-09-28 14:49:00 +000024771else
24772 ac_cv_search_clock_gettime=no
24773fi
24774rm conftest.$ac_ext
24775LIBS=$ac_func_search_save_LIBS
24776fi
cristy8b350f62009-11-15 23:12:43 +000024777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024778$as_echo "$ac_cv_search_clock_gettime" >&6; }
24779ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024780if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024781 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24782
24783
cristy8b350f62009-11-15 23:12:43 +000024784$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024785
cristy8b350f62009-11-15 23:12:43 +000024786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024787$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024789/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024790
24791 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024792int
24793main ()
24794{
24795clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024796 ;
24797 return 0;
24798}
24799_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024800if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024801
cristyad38abe2012-12-23 23:03:21 +000024802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24803$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000024804
cristy8b350f62009-11-15 23:12:43 +000024805$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024806
24807
24808else
cristyad38abe2012-12-23 23:03:21 +000024809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24810$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000024811
24812fi
cristye43a45e2009-09-28 14:49:00 +000024813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24814
24815else
24816
cristy8b350f62009-11-15 23:12:43 +000024817 for ac_func in gettimeofday ftime
24818do :
24819 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24820ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024821if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024822 cat >>confdefs.h <<_ACEOF
24823#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24824_ACEOF
24825 break
24826fi
24827done
24828
24829
24830
24831fi
24832
24833
cristy3ed852e2009-09-05 21:47:34 +000024834########
24835#
24836# Check for function prototypes
24837#
24838########
24839
cristy8b350f62009-11-15 23:12:43 +000024840ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024841#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024842"
cristyda16f162011-02-19 23:52:17 +000024843if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024844 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024845else
cristy8b350f62009-11-15 23:12:43 +000024846 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024847fi
24848
cristy3ed852e2009-09-05 21:47:34 +000024849cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024850#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024852ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024853#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024854"
cristyda16f162011-02-19 23:52:17 +000024855if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024856 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024857else
cristy8b350f62009-11-15 23:12:43 +000024858 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024859fi
24860
cristy3ed852e2009-09-05 21:47:34 +000024861cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024862#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024863_ACEOF
24864
24865
cristy8b350f62009-11-15 23:12:43 +000024866ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024867#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024868"
cristyda16f162011-02-19 23:52:17 +000024869if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024870 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024871else
cristy8b350f62009-11-15 23:12:43 +000024872 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024873fi
24874
cristy3ed852e2009-09-05 21:47:34 +000024875cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024876#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024877_ACEOF
24878
24879
cristy8b350f62009-11-15 23:12:43 +000024880ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024881#include <stdio.h>
24882#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024883"
cristyda16f162011-02-19 23:52:17 +000024884if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024885 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024886else
cristy8b350f62009-11-15 23:12:43 +000024887 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024888fi
24889
cristy3ed852e2009-09-05 21:47:34 +000024890cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024891#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024892_ACEOF
24893
24894
cristy3ed852e2009-09-05 21:47:34 +000024895########
24896#
24897# C++ Support Tests (For Magick++)
24898#
24899########
24900have_magick_plus_plus='no'
24901if test "$with_magick_plus_plus" = 'yes'; then
24902 OLIBS="$LIBS"
24903 LIBS=''
24904 ac_ext=cpp
24905ac_cpp='$CXXCPP $CPPFLAGS'
24906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24909
24910
24911 # Full set of headers used...
24912 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24913 # functional iomanip iosfwd iostream iterator list string strstream utility
24914 ac_ext=cpp
24915ac_cpp='$CXXCPP $CPPFLAGS'
24916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24919
24920 ac_ext=cpp
24921ac_cpp='$CXXCPP $CPPFLAGS'
24922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24925if test -z "$CXX"; then
24926 if test -n "$CCC"; then
24927 CXX=$CCC
24928 else
24929 if test -n "$ac_tool_prefix"; then
24930 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24931 do
24932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24933set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024935$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024936if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024937 $as_echo_n "(cached) " >&6
24938else
24939 if test -n "$CXX"; then
24940 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24941else
24942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24943for as_dir in $PATH
24944do
24945 IFS=$as_save_IFS
24946 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024947 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000024948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000024949 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024951 break 2
24952 fi
24953done
cristy8b350f62009-11-15 23:12:43 +000024954 done
cristy3ed852e2009-09-05 21:47:34 +000024955IFS=$as_save_IFS
24956
24957fi
24958fi
24959CXX=$ac_cv_prog_CXX
24960if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024962$as_echo "$CXX" >&6; }
24963else
cristy8b350f62009-11-15 23:12:43 +000024964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024965$as_echo "no" >&6; }
24966fi
24967
24968
24969 test -n "$CXX" && break
24970 done
24971fi
24972if test -z "$CXX"; then
24973 ac_ct_CXX=$CXX
24974 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24975do
24976 # Extract the first word of "$ac_prog", so it can be a program name with args.
24977set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024979$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024980if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024981 $as_echo_n "(cached) " >&6
24982else
24983 if test -n "$ac_ct_CXX"; then
24984 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24985else
24986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24987for as_dir in $PATH
24988do
24989 IFS=$as_save_IFS
24990 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024991 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000024992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000024993 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024995 break 2
24996 fi
24997done
cristy8b350f62009-11-15 23:12:43 +000024998 done
cristy3ed852e2009-09-05 21:47:34 +000024999IFS=$as_save_IFS
25000
25001fi
25002fi
25003ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25004if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025006$as_echo "$ac_ct_CXX" >&6; }
25007else
cristy8b350f62009-11-15 23:12:43 +000025008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025009$as_echo "no" >&6; }
25010fi
25011
25012
25013 test -n "$ac_ct_CXX" && break
25014done
25015
25016 if test "x$ac_ct_CXX" = x; then
25017 CXX="g++"
25018 else
25019 case $cross_compiling:$ac_tool_warned in
25020yes:)
cristy8b350f62009-11-15 23:12:43 +000025021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25023ac_tool_warned=yes ;;
25024esac
25025 CXX=$ac_ct_CXX
25026 fi
25027fi
25028
25029 fi
25030fi
25031# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025032$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025033set X $ac_compile
25034ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025035for ac_option in --version -v -V -qversion; do
25036 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025037case "(($ac_try" in
25038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039 *) ac_try_echo=$ac_try;;
25040esac
cristy8b350f62009-11-15 23:12:43 +000025041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25042$as_echo "$ac_try_echo"; } >&5
25043 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025044 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025045 if test -s conftest.err; then
25046 sed '10a\
25047... rest of stderr output deleted ...
25048 10q' conftest.err >conftest.er1
25049 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025050 fi
cristycd4c5312009-11-22 01:19:08 +000025051 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25053 test $ac_status = 0; }
25054done
cristy3ed852e2009-09-05 21:47:34 +000025055
cristy8b350f62009-11-15 23:12:43 +000025056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025057$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025058if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025059 $as_echo_n "(cached) " >&6
25060else
cristy8b350f62009-11-15 23:12:43 +000025061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025062/* end confdefs.h. */
25063
25064int
25065main ()
25066{
25067#ifndef __GNUC__
25068 choke me
25069#endif
25070
25071 ;
25072 return 0;
25073}
25074_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025075if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025076 ac_compiler_gnu=yes
25077else
cristy8b350f62009-11-15 23:12:43 +000025078 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025079fi
cristy3ed852e2009-09-05 21:47:34 +000025080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25081ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25082
25083fi
cristy8b350f62009-11-15 23:12:43 +000025084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025085$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25086if test $ac_compiler_gnu = yes; then
25087 GXX=yes
25088else
25089 GXX=
25090fi
25091ac_test_CXXFLAGS=${CXXFLAGS+set}
25092ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025094$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025095if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025096 $as_echo_n "(cached) " >&6
25097else
25098 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25099 ac_cxx_werror_flag=yes
25100 ac_cv_prog_cxx_g=no
25101 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025103/* end confdefs.h. */
25104
25105int
25106main ()
25107{
25108
25109 ;
25110 return 0;
25111}
25112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025113if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025114 ac_cv_prog_cxx_g=yes
25115else
cristy8b350f62009-11-15 23:12:43 +000025116 CXXFLAGS=""
25117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025118/* end confdefs.h. */
25119
25120int
25121main ()
25122{
25123
25124 ;
25125 return 0;
25126}
25127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025128if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025129
cristy8b350f62009-11-15 23:12:43 +000025130else
25131 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025132 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025134/* end confdefs.h. */
25135
25136int
25137main ()
25138{
25139
25140 ;
25141 return 0;
25142}
25143_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025144if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025145 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025146fi
cristy3ed852e2009-09-05 21:47:34 +000025147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25148fi
cristy3ed852e2009-09-05 21:47:34 +000025149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25150fi
cristy3ed852e2009-09-05 21:47:34 +000025151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25152 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25153fi
cristy8b350f62009-11-15 23:12:43 +000025154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025155$as_echo "$ac_cv_prog_cxx_g" >&6; }
25156if test "$ac_test_CXXFLAGS" = set; then
25157 CXXFLAGS=$ac_save_CXXFLAGS
25158elif test $ac_cv_prog_cxx_g = yes; then
25159 if test "$GXX" = yes; then
25160 CXXFLAGS="-g -O2"
25161 else
25162 CXXFLAGS="-g"
25163 fi
25164else
25165 if test "$GXX" = yes; then
25166 CXXFLAGS="-O2"
25167 else
25168 CXXFLAGS=
25169 fi
25170fi
25171ac_ext=cpp
25172ac_cpp='$CXXCPP $CPPFLAGS'
25173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25176
cristy73bd4a52010-10-05 11:24:23 +000025177depcc="$CXX" am_compiler_list=
25178
25179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25180$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025181if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025182 $as_echo_n "(cached) " >&6
25183else
25184 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25185 # We make a subdir and do the tests there. Otherwise we can end up
25186 # making bogus files that we don't know about and never remove. For
25187 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025188 # making a dummy file named 'D' -- because '-MD' means "put the output
25189 # in D".
cristy7247bba2012-02-05 16:37:27 +000025190 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025191 mkdir conftest.dir
25192 # Copy depcomp to subdir because otherwise we won't find it if we're
25193 # using a relative directory.
25194 cp "$am_depcomp" conftest.dir
25195 cd conftest.dir
25196 # We will build objects and dependencies in a subdirectory because
25197 # it helps to detect inapplicable dependency modes. For instance
25198 # both Tru64's cc and ICC support -MD to output dependencies as a
25199 # side effect of compilation, but ICC will put the dependencies in
25200 # the current directory while Tru64 will put them in the object
25201 # directory.
25202 mkdir sub
25203
25204 am_cv_CXX_dependencies_compiler_type=none
25205 if test "$am_compiler_list" = ""; then
25206 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25207 fi
25208 am__universal=false
25209 case " $depcc " in #(
25210 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25211 esac
25212
25213 for depmode in $am_compiler_list; do
25214 # Setup a source with many dependencies, because some compilers
25215 # like to wrap large dependency lists on column 80 (with \), and
25216 # we should not choose a depcomp mode which is confused by this.
25217 #
25218 # We need to recreate these files for each test, as the compiler may
25219 # overwrite some of them when testing with obscure command lines.
25220 # This happens at least with the AIX C compiler.
25221 : > sub/conftest.c
25222 for i in 1 2 3 4 5 6; do
25223 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025224 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25225 # Solaris 10 /bin/sh.
25226 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025227 done
25228 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25229
cristyc0890a62012-07-19 00:18:20 +000025230 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025231 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025232 # handle '-M -o', and we need to detect this. Also, some Intel
25233 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025234 am__obj=sub/conftest.${OBJEXT-o}
25235 am__minus_obj="-o $am__obj"
25236 case $depmode in
25237 gcc)
25238 # This depmode causes a compiler race in universal mode.
25239 test "$am__universal" = false || continue
25240 ;;
25241 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025242 # After this tag, mechanisms are not by side-effect, so they'll
25243 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025244 if test "x$enable_dependency_tracking" = xyes; then
25245 continue
25246 else
25247 break
25248 fi
25249 ;;
cristy7247bba2012-02-05 16:37:27 +000025250 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025251 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025252 # not run yet. These depmodes are late enough in the game, and
25253 # so weak that their functioning should not be impacted.
25254 am__obj=conftest.${OBJEXT-o}
25255 am__minus_obj=
25256 ;;
25257 none) break ;;
25258 esac
25259 if depmode=$depmode \
25260 source=sub/conftest.c object=$am__obj \
25261 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25262 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25263 >/dev/null 2>conftest.err &&
25264 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25265 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25266 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25267 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25268 # icc doesn't choke on unknown options, it will just issue warnings
25269 # or remarks (even with -Werror). So we grep stderr for any message
25270 # that says an option was ignored or not supported.
25271 # When given -MP, icc 7.0 and 7.1 complain thusly:
25272 # icc: Command line warning: ignoring option '-M'; no argument required
25273 # The diagnosis changed in icc 8.0:
25274 # icc: Command line remark: option '-MP' not supported
25275 if (grep 'ignoring option' conftest.err ||
25276 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25277 am_cv_CXX_dependencies_compiler_type=$depmode
25278 break
25279 fi
25280 fi
25281 done
25282
25283 cd ..
25284 rm -rf conftest.dir
25285else
25286 am_cv_CXX_dependencies_compiler_type=none
25287fi
25288
25289fi
25290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25291$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25292CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25293
25294 if
25295 test "x$enable_dependency_tracking" != xno \
25296 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25297 am__fastdepCXX_TRUE=
25298 am__fastdepCXX_FALSE='#'
25299else
25300 am__fastdepCXX_TRUE='#'
25301 am__fastdepCXX_FALSE=
25302fi
25303
25304
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25306$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025307if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025308 $as_echo_n "(cached) " >&6
25309else
25310
25311 ac_ext=cpp
25312ac_cpp='$CXXCPP $CPPFLAGS'
25313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25316
25317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25318/* end confdefs.h. */
25319
25320int f(int x){return 1;}
25321int f(char x){return 1;}
25322int f(bool x){return 1;}
25323
25324int
25325main ()
25326{
25327bool b = true; return f(b);
25328 ;
25329 return 0;
25330}
25331_ACEOF
25332if ac_fn_cxx_try_compile "$LINENO"; then :
25333 ax_cv_cxx_bool=yes
25334else
25335 ax_cv_cxx_bool=no
25336fi
25337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25338 ac_ext=cpp
25339ac_cpp='$CXXCPP $CPPFLAGS'
25340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25343
25344
25345fi
25346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25347$as_echo "$ax_cv_cxx_bool" >&6; }
25348if test "$ax_cv_cxx_bool" = yes; then
25349
25350$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25351
25352fi
25353
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25355$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025356if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025357 $as_echo_n "(cached) " >&6
25358else
25359
25360 ac_ext=cpp
25361ac_cpp='$CXXCPP $CPPFLAGS'
25362ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25363ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25364ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25365
25366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25367/* end confdefs.h. */
25368namespace Outer { namespace Inner { int i = 0; }}
25369int
25370main ()
25371{
25372using namespace Outer::Inner; return i;
25373 ;
25374 return 0;
25375}
25376_ACEOF
25377if ac_fn_cxx_try_compile "$LINENO"; then :
25378 ax_cv_cxx_namespaces=yes
25379else
25380 ax_cv_cxx_namespaces=no
25381fi
25382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25383 ac_ext=cpp
25384ac_cpp='$CXXCPP $CPPFLAGS'
25385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25388
25389
25390fi
25391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25392$as_echo "$ax_cv_cxx_namespaces" >&6; }
25393if test "$ax_cv_cxx_namespaces" = yes; then
25394
25395$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25396
25397fi
25398
25399
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25401$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025402if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025403 $as_echo_n "(cached) " >&6
25404else
25405
25406 ac_ext=cpp
25407ac_cpp='$CXXCPP $CPPFLAGS'
25408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25411
25412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25413/* end confdefs.h. */
25414#include <iostream>
25415 std::istream& is = std::cin;
25416int
25417main ()
25418{
25419
25420 ;
25421 return 0;
25422}
25423_ACEOF
25424if ac_fn_cxx_try_compile "$LINENO"; then :
25425 ax_cv_cxx_have_std_namespace=yes
25426else
25427 ax_cv_cxx_have_std_namespace=no
25428fi
25429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25430 ac_ext=cpp
25431ac_cpp='$CXXCPP $CPPFLAGS'
25432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25435
25436
25437fi
25438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25439$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25440 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25441
25442$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25443
25444 fi
25445
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25447$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025448if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025449 $as_echo_n "(cached) " >&6
25450else
25451
25452
25453 ac_ext=cpp
25454ac_cpp='$CXXCPP $CPPFLAGS'
25455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25458
25459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25460/* end confdefs.h. */
25461#include <iostream>
25462#include <map>
25463#include <iomanip>
25464#include <cmath>
25465#ifdef HAVE_NAMESPACES
25466using namespace std;
25467#endif
25468int
25469main ()
25470{
25471return 0;
25472 ;
25473 return 0;
25474}
25475_ACEOF
25476if ac_fn_cxx_try_compile "$LINENO"; then :
25477 ac_cv_cxx_have_std_libs=yes
25478else
25479 ac_cv_cxx_have_std_libs=no
25480fi
25481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25482 ac_ext=cpp
25483ac_cpp='$CXXCPP $CPPFLAGS'
25484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25487
25488
25489fi
25490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25491$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25492if test "$ac_cv_cxx_have_std_libs" = yes; then
25493
25494$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25495
25496fi
25497
cristy3ed852e2009-09-05 21:47:34 +000025498
25499 OPENMP_CXXFLAGS=
25500 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025501if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025502 enableval=$enable_openmp;
25503fi
25504
25505 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25507$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025508if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025509 $as_echo_n "(cached) " >&6
25510else
cristy8b350f62009-11-15 23:12:43 +000025511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25512/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025513
25514#ifndef _OPENMP
25515 choke me
25516#endif
25517#include <omp.h>
25518int main () { return omp_get_num_threads (); }
25519
25520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025521if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025522 ac_cv_prog_cxx_openmp='none needed'
25523else
cristy8b350f62009-11-15 23:12:43 +000025524 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025525 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25526 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025527 ac_save_CXXFLAGS=$CXXFLAGS
25528 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25530/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025531
25532#ifndef _OPENMP
25533 choke me
25534#endif
25535#include <omp.h>
25536int main () { return omp_get_num_threads (); }
25537
25538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025539if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025540 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025541fi
cristy8b350f62009-11-15 23:12:43 +000025542rm -f core conftest.err conftest.$ac_objext \
25543 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025544 CXXFLAGS=$ac_save_CXXFLAGS
25545 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25546 break
25547 fi
25548 done
25549fi
cristy8b350f62009-11-15 23:12:43 +000025550rm -f core conftest.err conftest.$ac_objext \
25551 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025552fi
cristy8b350f62009-11-15 23:12:43 +000025553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025554$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25555 case $ac_cv_prog_cxx_openmp in #(
25556 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025557 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025558 *)
cristy8b350f62009-11-15 23:12:43 +000025559 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025560 esac
25561 fi
25562
25563
25564 ac_ext=c
25565ac_cpp='$CPP $CPPFLAGS'
25566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25568ac_compiler_gnu=$ac_cv_c_compiler_gnu
25569
25570
cristy8b350f62009-11-15 23:12:43 +000025571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025572$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25573 if \
cristy964cb7f2010-04-25 23:18:00 +000025574 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025575 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025576 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025577 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025578 have_magick_plus_plus='yes'
25579 else
25580 have_magick_plus_plus='no (failed tests)'
25581 fi
cristyad38abe2012-12-23 23:03:21 +000025582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25583$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025584 LIBS="$OLIBS"
25585fi
cristy73bd4a52010-10-05 11:24:23 +000025586 if test "$have_magick_plus_plus" = 'yes'; then
25587 WITH_MAGICK_PLUS_PLUS_TRUE=
25588 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25589else
25590 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25591 WITH_MAGICK_PLUS_PLUS_FALSE=
25592fi
25593
cristy3ed852e2009-09-05 21:47:34 +000025594
25595# Only check for delegate libraries in subdirectories if requested.
25596if test "$enable_delegate_build" != 'no'; then
25597 # Check for delegate sub-directories and add -I & -L options as required.
25598 # This presumes that delegates are installed as detailed in the ImageMagick
25599 # README. If delegates are installed in a standard location where the
25600 # compiler will automatically find them then these options should not be
25601 # required.
25602
25603 #
25604 # Most delegates have includes in the same directory as the library, but not all...
25605 #
25606 # Includes
cristy2542fc62011-12-06 17:50:25 +000025607 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 +000025608 if test -d "$builddir/$dir"; then
25609 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25610 else
25611 if test -d "$srcdirfull/$dir"; then
25612 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25613 fi
25614 fi
25615 done
25616
25617 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025618 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 +000025619 if test -d "$builddir/$dir/.libs"; then
25620 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25621 else
25622 if test -d "$srcdirfull/$dir/.libs"; then
25623 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25624 fi
25625 fi
25626 if test -d "$builddir/$dir"; then
25627 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25628 else
25629 if test -d "$srcdirfull/$dir"; then
25630 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25631 fi
25632 fi
25633 done
25634fi
25635
25636# Assume that delegate headers reside under same directory as ImageMagick
25637# installation prefix.
25638MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25639
25640#
25641# Find the X11 RGB database
25642#
cristy8b350f62009-11-15 23:12:43 +000025643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025644$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025645if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025646 $as_echo_n "(cached) " >&6
25647else
25648 # Look for the header file in a standard set of common directories.
25649# Check X11 before X11Rn because it is often a symlink to the current release.
25650 for ac_dir in \
25651 /lib/usr/lib/X11 \
25652 /usr/X11/lib \
25653 /usr/X11R4/lib \
25654 /usr/X11R5/lib \
25655 /usr/X11R6/lib \
25656 /usr/X11R7/lib \
25657 /usr/X386/lib \
25658 /usr/XFree86/lib/X11 \
25659 /usr/athena/lib \
25660 /usr/lib \
25661 /usr/lib/X11 \
25662 /usr/lib/X11R4 \
25663 /usr/lib/X11R5 \
25664 /usr/lib/X11R6 \
25665 /usr/lib/X11R7 \
25666 /usr/local/X11/lib \
25667 /usr/local/X11R4/lib \
25668 /usr/local/X11R5/lib \
25669 /usr/local/X11R6/lib \
25670 /usr/local/lib \
25671 /usr/local/lib/X11 \
25672 /usr/local/lib/X11R4 \
25673 /usr/local/lib/X11R5 \
25674 /usr/local/lib/X11R6 \
25675 /usr/local/lib/X11R7 \
25676 /usr/local/x11r5/lib \
25677 /usr/lpp/Xamples/lib \
25678 /usr/openwin/lib \
25679 /usr/openwin/share/lib \
25680 /usr/unsupported/lib \
25681 /usr/x386/lib \
25682 ; do
25683 if test -f "$ac_dir/X11/rgb.txt"; then
25684 im_cv_x_configure="$ac_dir/X11/"
25685 break
25686 elif test -f "$ac_dir/rgb.txt"; then
25687 im_cv_x_configure="$ac_dir/"
25688 break
25689 fi
25690
25691 done
25692fi
cristy8b350f62009-11-15 23:12:43 +000025693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025694$as_echo "$im_cv_x_configure" >&6; }
25695X11_CONFIGURE_PATH="$im_cv_x_configure"
25696case "${build_os}" in
25697 mingw* )
25698 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25699 ;;
25700esac
25701
25702cat >>confdefs.h <<_ACEOF
25703#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25704_ACEOF
25705
25706
25707#
25708# Find OpenMP library
25709#
25710GOMP_LIBS=''
25711if test "$enable_openmp" != 'no'; then
25712 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000025713 # Open64 (passes for GCC but uses different OpenMP implementation)
25714 if test "x$GOMP_LIBS" = x ; then
25715 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
25717$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
25718if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
25719 $as_echo_n "(cached) " >&6
25720else
25721 ac_check_lib_save_LIBS=$LIBS
25722LIBS="-lopenmp $LIBS"
25723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25724/* end confdefs.h. */
25725
25726/* Override any GCC internal prototype to avoid an error.
25727 Use char because int might match the return type of a GCC
25728 builtin and then its argument prototype would still apply. */
25729#ifdef __cplusplus
25730extern "C"
25731#endif
25732char omp_get_num_procs ();
25733int
25734main ()
25735{
25736return omp_get_num_procs ();
25737 ;
25738 return 0;
25739}
25740_ACEOF
25741if ac_fn_c_try_link "$LINENO"; then :
25742 ac_cv_lib_openmp_omp_get_num_procs=yes
25743else
25744 ac_cv_lib_openmp_omp_get_num_procs=no
25745fi
25746rm -f core conftest.err conftest.$ac_objext \
25747 conftest$ac_exeext conftest.$ac_ext
25748LIBS=$ac_check_lib_save_LIBS
25749fi
25750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
25751$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
25752if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
25753 GOMP_LIBS="-lopenmp"
25754fi
25755
25756 fi
25757 fi
25758 # GCC
25759 if test "x$GOMP_LIBS" = x ; then
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025761$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025762if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025763 $as_echo_n "(cached) " >&6
25764else
25765 ac_check_lib_save_LIBS=$LIBS
25766LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025768/* end confdefs.h. */
25769
25770/* Override any GCC internal prototype to avoid an error.
25771 Use char because int might match the return type of a GCC
25772 builtin and then its argument prototype would still apply. */
25773#ifdef __cplusplus
25774extern "C"
25775#endif
25776char GOMP_parallel_start ();
25777int
25778main ()
25779{
25780return GOMP_parallel_start ();
25781 ;
25782 return 0;
25783}
25784_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025785if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025786 ac_cv_lib_gomp_GOMP_parallel_start=yes
25787else
cristy8b350f62009-11-15 23:12:43 +000025788 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025789fi
cristy8b350f62009-11-15 23:12:43 +000025790rm -f core conftest.err conftest.$ac_objext \
25791 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025792LIBS=$ac_check_lib_save_LIBS
25793fi
cristy8b350f62009-11-15 23:12:43 +000025794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025795$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025796if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025797 GOMP_LIBS="-lgomp"
25798fi
cristy18307f12011-12-30 01:20:16 +000025799
25800 fi
cristy3ed852e2009-09-05 21:47:34 +000025801 else
cristy18307f12011-12-30 01:20:16 +000025802 # Sun CC
25803 if test "x$GOMP_LIBS" = x ; then
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025805$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025806if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025807 $as_echo_n "(cached) " >&6
25808else
25809 ac_check_lib_save_LIBS=$LIBS
25810LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025812/* end confdefs.h. */
25813
25814/* Override any GCC internal prototype to avoid an error.
25815 Use char because int might match the return type of a GCC
25816 builtin and then its argument prototype would still apply. */
25817#ifdef __cplusplus
25818extern "C"
25819#endif
25820char sunw_mp_register_warn ();
25821int
25822main ()
25823{
25824return sunw_mp_register_warn ();
25825 ;
25826 return 0;
25827}
25828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025829if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025830 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25831else
cristy8b350f62009-11-15 23:12:43 +000025832 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025833fi
cristy8b350f62009-11-15 23:12:43 +000025834rm -f core conftest.err conftest.$ac_objext \
25835 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025836LIBS=$ac_check_lib_save_LIBS
25837fi
cristy8b350f62009-11-15 23:12:43 +000025838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025839$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025840if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025841 GOMP_LIBS="-lmtsk"
25842fi
cristy18307f12011-12-30 01:20:16 +000025843
25844 fi
25845 # AIX xlc
25846 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000025847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025848$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025849if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025850 $as_echo_n "(cached) " >&6
25851else
25852 ac_check_lib_save_LIBS=$LIBS
25853LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025855/* end confdefs.h. */
25856
25857/* Override any GCC internal prototype to avoid an error.
25858 Use char because int might match the return type of a GCC
25859 builtin and then its argument prototype would still apply. */
25860#ifdef __cplusplus
25861extern "C"
25862#endif
25863char _xlsmpFlush ();
25864int
25865main ()
25866{
25867return _xlsmpFlush ();
25868 ;
25869 return 0;
25870}
25871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025872if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025873 ac_cv_lib_xlsmp__xlsmpFlush=yes
25874else
cristy8b350f62009-11-15 23:12:43 +000025875 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025876fi
cristy8b350f62009-11-15 23:12:43 +000025877rm -f core conftest.err conftest.$ac_objext \
25878 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025879LIBS=$ac_check_lib_save_LIBS
25880fi
cristy8b350f62009-11-15 23:12:43 +000025881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025882$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025883if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025884 GOMP_LIBS="-lxlsmp"
25885fi
cristy18307f12011-12-30 01:20:16 +000025886
25887 fi
25888 # SGI IRIX 6.5 MIPSpro C/C++
25889 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000025890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025891$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025892if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025893 $as_echo_n "(cached) " >&6
25894else
25895 ac_check_lib_save_LIBS=$LIBS
25896LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025898/* end confdefs.h. */
25899
25900/* Override any GCC internal prototype to avoid an error.
25901 Use char because int might match the return type of a GCC
25902 builtin and then its argument prototype would still apply. */
25903#ifdef __cplusplus
25904extern "C"
25905#endif
25906char mp_destroy ();
25907int
25908main ()
25909{
25910return mp_destroy ();
25911 ;
25912 return 0;
25913}
25914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025915if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025916 ac_cv_lib_mp_mp_destroy=yes
25917else
cristy8b350f62009-11-15 23:12:43 +000025918 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025919fi
cristy8b350f62009-11-15 23:12:43 +000025920rm -f core conftest.err conftest.$ac_objext \
25921 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025922LIBS=$ac_check_lib_save_LIBS
25923fi
cristy8b350f62009-11-15 23:12:43 +000025924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025925$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025926if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025927 GOMP_LIBS="-lmp"
25928fi
cristy18307f12011-12-30 01:20:16 +000025929
25930 fi
cristy3ed852e2009-09-05 21:47:34 +000025931 fi
25932 LIBS="$GOMP_LIBS $LIBS"
25933fi
25934
25935
25936#
25937# Find Posix threads library
25938#
25939THREAD_LIBS=''
25940if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25941
25942 if test "x$PTHREAD_LIBS" = "x"; then
25943 case "${host_cpu}-${host_os}" in
25944 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025945
25946
25947
25948ac_ext=c
25949ac_cpp='$CPP $CPPFLAGS'
25950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25952ac_compiler_gnu=$ac_cv_c_compiler_gnu
25953
25954magick_pthread_lib_ok=no
25955
25956LIB=-lc_r
25957save_LIBS="$LIBS"
25958LIBS="$LIBS $LIB"
25959
25960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25961$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25963/* end confdefs.h. */
25964#include <pthread.h>
25965int
25966main ()
25967{
25968 pthread_t th;
25969 pthread_join(th, 0);
25970 pthread_attr_init(0);
25971 pthread_cleanup_push(0, 0);
25972 pthread_create(0,0,0,0);
25973 pthread_cleanup_pop(0);
25974 ;
25975 return 0;
25976}
25977_ACEOF
25978if ac_fn_c_try_link "$LINENO"; then :
25979 magick_pthread_lib_ok=yes
25980fi
25981rm -f core conftest.err conftest.$ac_objext \
25982 conftest$ac_exeext conftest.$ac_ext
25983
25984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25985$as_echo "${magick_pthread_lib_ok}" >&6; }
25986if test "$magick_pthread_lib_ok" = yes
25987then
25988 PTHREAD_LIBS=-lc_r
25989 :
25990else
25991
25992 :
25993fi
25994
25995LIBS="$save_LIBS"
25996
25997ac_ext=c
25998ac_cpp='$CPP $CPPFLAGS'
25999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26001ac_compiler_gnu=$ac_cv_c_compiler_gnu
26002
26003 ;;
cristy3ed852e2009-09-05 21:47:34 +000026004 esac
26005 fi
26006
26007 for lib in pthread pthreads; do
26008 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026009
26010
26011
26012ac_ext=c
26013ac_cpp='$CPP $CPPFLAGS'
26014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26016ac_compiler_gnu=$ac_cv_c_compiler_gnu
26017
26018magick_pthread_lib_ok=no
26019
26020LIB=-l$lib
26021save_LIBS="$LIBS"
26022LIBS="$LIBS $LIB"
26023
26024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26025$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26027/* end confdefs.h. */
26028#include <pthread.h>
26029int
26030main ()
26031{
26032 pthread_t th;
26033 pthread_join(th, 0);
26034 pthread_attr_init(0);
26035 pthread_cleanup_push(0, 0);
26036 pthread_create(0,0,0,0);
26037 pthread_cleanup_pop(0);
26038 ;
26039 return 0;
26040}
26041_ACEOF
26042if ac_fn_c_try_link "$LINENO"; then :
26043 magick_pthread_lib_ok=yes
26044fi
26045rm -f core conftest.err conftest.$ac_objext \
26046 conftest$ac_exeext conftest.$ac_ext
26047
26048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26049$as_echo "${magick_pthread_lib_ok}" >&6; }
26050if test "$magick_pthread_lib_ok" = yes
26051then
26052 PTHREAD_LIBS=-l$lib
26053 :
26054else
26055
26056 :
26057fi
26058
26059LIBS="$save_LIBS"
26060
26061ac_ext=c
26062ac_cpp='$CPP $CPPFLAGS'
26063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26065ac_compiler_gnu=$ac_cv_c_compiler_gnu
26066
26067
cristy3ed852e2009-09-05 21:47:34 +000026068 fi
26069 done
26070
26071 THREAD_LIBS="$PTHREAD_LIBS"
26072 LIBS="$LIBS $THREAD_LIBS"
26073fi
26074
26075
26076#
26077# Check for umem.
26078#
26079have_umem='no'
26080UMEM_LIBS=''
26081if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026083$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26085$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026086 failed=0
26087 passed=0
cristy8b350f62009-11-15 23:12:43 +000026088 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026089if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026090 passed=`expr $passed + 1`
26091else
26092 failed=`expr $failed + 1`
26093fi
26094
26095
cristy8b350f62009-11-15 23:12:43 +000026096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026097$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026098if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026099 $as_echo_n "(cached) " >&6
26100else
26101 ac_check_lib_save_LIBS=$LIBS
26102LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026104/* end confdefs.h. */
26105
26106/* Override any GCC internal prototype to avoid an error.
26107 Use char because int might match the return type of a GCC
26108 builtin and then its argument prototype would still apply. */
26109#ifdef __cplusplus
26110extern "C"
26111#endif
26112char umem_alloc ();
26113int
26114main ()
26115{
26116return umem_alloc ();
26117 ;
26118 return 0;
26119}
26120_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026121if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026122 ac_cv_lib_umem_umem_alloc=yes
26123else
cristy8b350f62009-11-15 23:12:43 +000026124 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026125fi
cristy8b350f62009-11-15 23:12:43 +000026126rm -f core conftest.err conftest.$ac_objext \
26127 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026128LIBS=$ac_check_lib_save_LIBS
26129fi
cristy8b350f62009-11-15 23:12:43 +000026130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026131$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026132if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026133 passed=`expr $passed + 1`
26134else
26135 failed=`expr $failed + 1`
26136fi
26137
cristy8b350f62009-11-15 23:12:43 +000026138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026139$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026140if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026141 $as_echo_n "(cached) " >&6
26142else
26143 ac_check_lib_save_LIBS=$LIBS
26144LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026146/* end confdefs.h. */
26147
26148/* Override any GCC internal prototype to avoid an error.
26149 Use char because int might match the return type of a GCC
26150 builtin and then its argument prototype would still apply. */
26151#ifdef __cplusplus
26152extern "C"
26153#endif
26154char umem_free ();
26155int
26156main ()
26157{
26158return umem_free ();
26159 ;
26160 return 0;
26161}
26162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026163if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026164 ac_cv_lib_umem_umem_free=yes
26165else
cristy8b350f62009-11-15 23:12:43 +000026166 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026167fi
cristy8b350f62009-11-15 23:12:43 +000026168rm -f core conftest.err conftest.$ac_objext \
26169 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026170LIBS=$ac_check_lib_save_LIBS
26171fi
cristy8b350f62009-11-15 23:12:43 +000026172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026173$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026174if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026175 passed=`expr $passed + 1`
26176else
26177 failed=`expr $failed + 1`
26178fi
26179
cristy8b350f62009-11-15 23:12:43 +000026180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026181$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26182 if test $passed -gt 0; then
26183 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26185$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026186 have_umem='no (failed tests)'
26187 else
26188 UMEM_LIBS='-lumem'
26189 LIBS="$UMEM_LIBS $LIBS"
26190
cristy8b350f62009-11-15 23:12:43 +000026191$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026192
cristyad38abe2012-12-23 23:03:21 +000026193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26194$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026195 have_umem='yes'
26196 fi
26197 else
cristyad38abe2012-12-23 23:03:21 +000026198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26199$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026200 fi
26201fi
cristy73bd4a52010-10-05 11:24:23 +000026202 if test "$have_umem" = 'yes'; then
26203 HasUMEM_TRUE=
26204 HasUMEM_FALSE='#'
26205else
26206 HasUMEM_TRUE='#'
26207 HasUMEM_FALSE=
26208fi
26209
cristy3ed852e2009-09-05 21:47:34 +000026210
26211
26212#
26213# Add support for ccmalloc memory debugging library if requested
26214#
26215have_ccmalloc='no'
26216CCMALLOC_LIBS=''
26217if test "$enable_ccmalloc" = 'yes'; then
26218 # Extract the first word of "ccmalloc", so it can be a program name with args.
26219set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026221$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026222if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026223 $as_echo_n "(cached) " >&6
26224else
26225 case $CCMALLOCDelegate in
26226 [\\/]* | ?:[\\/]*)
26227 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26228 ;;
26229 *)
26230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26231for as_dir in $PATH
26232do
26233 IFS=$as_save_IFS
26234 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026235 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026237 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026239 break 2
26240 fi
26241done
cristy8b350f62009-11-15 23:12:43 +000026242 done
cristy3ed852e2009-09-05 21:47:34 +000026243IFS=$as_save_IFS
26244
26245 ;;
26246esac
26247fi
26248CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26249if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026251$as_echo "$CCMALLOCDelegate" >&6; }
26252else
cristy8b350f62009-11-15 23:12:43 +000026253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026254$as_echo "no" >&6; }
26255fi
26256
26257
26258 if test -n "$CCMALLOCDelegate"; then
26259 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26260 OLIBS="$LIBS"
26261 # Assume that gcc is used with ccmalloc.
26262 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026264$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026265if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026266 $as_echo_n "(cached) " >&6
26267else
26268 ac_check_lib_save_LIBS=$LIBS
26269LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026271/* end confdefs.h. */
26272
26273/* Override any GCC internal prototype to avoid an error.
26274 Use char because int might match the return type of a GCC
26275 builtin and then its argument prototype would still apply. */
26276#ifdef __cplusplus
26277extern "C"
26278#endif
26279char ccmalloc_malloc ();
26280int
26281main ()
26282{
26283return ccmalloc_malloc ();
26284 ;
26285 return 0;
26286}
26287_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026288if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026289 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26290else
cristy8b350f62009-11-15 23:12:43 +000026291 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026292fi
cristy8b350f62009-11-15 23:12:43 +000026293rm -f core conftest.err conftest.$ac_objext \
26294 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026295LIBS=$ac_check_lib_save_LIBS
26296fi
cristy8b350f62009-11-15 23:12:43 +000026297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026298$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026299if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026300 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26301fi
26302
26303 if test -n "$CCMALLOC_LIBS"; then
26304 LIBS="$OLIBS"
26305 LIBS="$LIBS $CCMALLOC_LIBS"
26306 have_ccmalloc='yes'
26307 else
26308 LIBS="$OLIBS"
26309 fi
26310 fi
26311fi
26312
26313#
26314# Add support for efence memory debugging library if requested
26315#
26316if test "$enable_efence" = 'yes'; then
26317 EFENCE_LIBS='-lefence'
26318 LIBS="$EFENCE_LIBS $LIBS"
26319fi
26320
cristy3ed852e2009-09-05 21:47:34 +000026321
26322#
26323# Check for BZLIB
26324#
26325
26326
26327# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026328if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026329 withval=$with_bzlib; with_bzlib=$withval
26330else
26331 with_bzlib='yes'
26332fi
26333
26334
26335if test "$with_bzlib" != 'yes'; then
26336 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26337fi
26338
26339have_bzlib='no'
26340if test "$with_bzlib" != 'no'; then
26341 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26343$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026345$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26347$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026348 failed=0
26349 passed=0
26350 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026351 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026352if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026353 passed=`expr $passed + 1`
26354else
26355 failed=`expr $failed + 1`
26356fi
26357
26358
cristy8b350f62009-11-15 23:12:43 +000026359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026360$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026361if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026362 $as_echo_n "(cached) " >&6
26363else
26364 ac_check_lib_save_LIBS=$LIBS
26365LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026367/* end confdefs.h. */
26368
26369/* Override any GCC internal prototype to avoid an error.
26370 Use char because int might match the return type of a GCC
26371 builtin and then its argument prototype would still apply. */
26372#ifdef __cplusplus
26373extern "C"
26374#endif
26375char BZ2_bzDecompress ();
26376int
26377main ()
26378{
26379return BZ2_bzDecompress ();
26380 ;
26381 return 0;
26382}
26383_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026384if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026385 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26386else
cristy8b350f62009-11-15 23:12:43 +000026387 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026388fi
cristy8b350f62009-11-15 23:12:43 +000026389rm -f core conftest.err conftest.$ac_objext \
26390 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026391LIBS=$ac_check_lib_save_LIBS
26392fi
cristy8b350f62009-11-15 23:12:43 +000026393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026394$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026395if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026396 found_libbz=`expr $found_libbz + 1`
26397fi
26398
26399 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026401$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026402if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026403 $as_echo_n "(cached) " >&6
26404else
26405 ac_check_lib_save_LIBS=$LIBS
26406LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026408/* end confdefs.h. */
26409
26410/* Override any GCC internal prototype to avoid an error.
26411 Use char because int might match the return type of a GCC
26412 builtin and then its argument prototype would still apply. */
26413#ifdef __cplusplus
26414extern "C"
26415#endif
26416char _imp__BZ2_decompress ();
26417int
26418main ()
26419{
26420return _imp__BZ2_decompress ();
26421 ;
26422 return 0;
26423}
26424_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026425if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026426 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26427else
cristy8b350f62009-11-15 23:12:43 +000026428 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026429fi
cristy8b350f62009-11-15 23:12:43 +000026430rm -f core conftest.err conftest.$ac_objext \
26431 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026432LIBS=$ac_check_lib_save_LIBS
26433fi
cristy8b350f62009-11-15 23:12:43 +000026434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026435$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026436if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026437 found_libbz=`expr $found_libbz + 1`
26438fi
26439
26440 fi
26441 if test $found_libbz -gt 0; then
26442 passed=`expr $passed + 1`
26443 else
26444 failed=`expr $failed + 1`
26445 fi
cristy8b350f62009-11-15 23:12:43 +000026446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026447$as_echo_n "checking if BZLIB package is complete... " >&6; }
26448 if test $passed -gt 0; then
26449 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26451$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026452 have_bzlib='no (failed tests)'
26453 else
26454 BZLIB_LIBS='-lbz2'
26455 LIBS="$BZLIB_LIBS $LIBS"
26456
cristy8b350f62009-11-15 23:12:43 +000026457$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026458
cristyad38abe2012-12-23 23:03:21 +000026459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26460$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026461 have_bzlib='yes'
26462 fi
26463 else
cristyad38abe2012-12-23 23:03:21 +000026464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26465$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026466 fi
26467fi
cristy73bd4a52010-10-05 11:24:23 +000026468 if test "$have_bzlib" = 'yes'; then
26469 BZLIB_DELEGATE_TRUE=
26470 BZLIB_DELEGATE_FALSE='#'
26471else
26472 BZLIB_DELEGATE_TRUE='#'
26473 BZLIB_DELEGATE_FALSE=
26474fi
26475
cristy3ed852e2009-09-05 21:47:34 +000026476
26477
26478#
26479# Find the X11 include and library directories.
26480#
26481IPC_LIBS=''
26482X11_LIBS=''
26483XEXT_LIBS=''
26484XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026486$as_echo_n "checking for X... " >&6; }
26487
26488
26489# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026490if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026491 withval=$with_x;
26492fi
26493
26494# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26495if test "x$with_x" = xno; then
26496 # The user explicitly disabled X.
26497 have_x=disabled
26498else
26499 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026500 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026501 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026502 $as_echo_n "(cached) " >&6
26503else
26504 # One or both of the vars are not set, and there is no cached value.
26505ac_x_includes=no ac_x_libraries=no
26506rm -f -r conftest.dir
26507if mkdir conftest.dir; then
26508 cd conftest.dir
26509 cat >Imakefile <<'_ACEOF'
26510incroot:
26511 @echo incroot='${INCROOT}'
26512usrlibdir:
26513 @echo usrlibdir='${USRLIBDIR}'
26514libdir:
26515 @echo libdir='${LIBDIR}'
26516_ACEOF
26517 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026518 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026519 for ac_var in incroot usrlibdir libdir; do
26520 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26521 done
26522 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26523 for ac_extension in a so sl dylib la dll; do
26524 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26525 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26526 ac_im_usrlibdir=$ac_im_libdir; break
26527 fi
26528 done
26529 # Screen out bogus values from the imake configuration. They are
26530 # bogus both because they are the default anyway, and because
26531 # using them would break gcc on systems where it needs fixed includes.
26532 case $ac_im_incroot in
26533 /usr/include) ac_x_includes= ;;
26534 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26535 esac
26536 case $ac_im_usrlibdir in
26537 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26538 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26539 esac
26540 fi
26541 cd ..
26542 rm -f -r conftest.dir
26543fi
26544
26545# Standard set of common directories for X headers.
26546# Check X11 before X11Rn because it is often a symlink to the current release.
26547ac_x_header_dirs='
26548/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026549/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026550/usr/X11R6/include
26551/usr/X11R5/include
26552/usr/X11R4/include
26553
26554/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026555/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026556/usr/include/X11R6
26557/usr/include/X11R5
26558/usr/include/X11R4
26559
26560/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026561/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026562/usr/local/X11R6/include
26563/usr/local/X11R5/include
26564/usr/local/X11R4/include
26565
26566/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026567/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026568/usr/local/include/X11R6
26569/usr/local/include/X11R5
26570/usr/local/include/X11R4
26571
26572/usr/X386/include
26573/usr/x386/include
26574/usr/XFree86/include/X11
26575
26576/usr/include
26577/usr/local/include
26578/usr/unsupported/include
26579/usr/athena/include
26580/usr/local/x11r5/include
26581/usr/lpp/Xamples/include
26582
26583/usr/openwin/include
26584/usr/openwin/share/include'
26585
26586if test "$ac_x_includes" = no; then
26587 # Guess where to find include files, by looking for Xlib.h.
26588 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026590/* end confdefs.h. */
26591#include <X11/Xlib.h>
26592_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026593if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026594 # We can compile using X headers with no special include directory.
26595ac_x_includes=
26596else
cristyc7083c12009-10-14 03:16:55 +000026597 for ac_dir in $ac_x_header_dirs; do
26598 if test -r "$ac_dir/X11/Xlib.h"; then
26599 ac_x_includes=$ac_dir
26600 break
26601 fi
26602done
26603fi
cristyda16f162011-02-19 23:52:17 +000026604rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026605fi # $ac_x_includes = no
26606
26607if test "$ac_x_libraries" = no; then
26608 # Check for the libraries.
26609 # See if we find them without any special options.
26610 # Don't add to $LIBS permanently.
26611 ac_save_LIBS=$LIBS
26612 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026614/* end confdefs.h. */
26615#include <X11/Xlib.h>
26616int
26617main ()
26618{
26619XrmInitialize ()
26620 ;
26621 return 0;
26622}
26623_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026624if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026625 LIBS=$ac_save_LIBS
26626# We can link X programs with no special library path.
26627ac_x_libraries=
26628else
cristy8b350f62009-11-15 23:12:43 +000026629 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026630for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26631do
26632 # Don't even attempt the hair of trying to link an X program!
26633 for ac_extension in a so sl dylib la dll; do
26634 if test -r "$ac_dir/libX11.$ac_extension"; then
26635 ac_x_libraries=$ac_dir
26636 break 2
26637 fi
26638 done
26639done
26640fi
cristy8b350f62009-11-15 23:12:43 +000026641rm -f core conftest.err conftest.$ac_objext \
26642 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026643fi # $ac_x_libraries = no
26644
26645case $ac_x_includes,$ac_x_libraries in #(
26646 no,* | *,no | *\'*)
26647 # Didn't find X, or a directory has "'" in its name.
26648 ac_cv_have_x="have_x=no";; #(
26649 *)
26650 # Record where we found X for the cache.
26651 ac_cv_have_x="have_x=yes\
26652 ac_x_includes='$ac_x_includes'\
26653 ac_x_libraries='$ac_x_libraries'"
26654esac
26655fi
26656;; #(
26657 *) have_x=yes;;
26658 esac
26659 eval "$ac_cv_have_x"
26660fi # $with_x != no
26661
26662if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026664$as_echo "$have_x" >&6; }
26665 no_x=yes
26666else
26667 # If each of the values was on the command line, it overrides each guess.
26668 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26669 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26670 # Update the cache value to reflect the command line values.
26671 ac_cv_have_x="have_x=yes\
26672 ac_x_includes='$x_includes'\
26673 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026675$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26676fi
26677
cristy3ed852e2009-09-05 21:47:34 +000026678if test "$no_x" = yes; then
26679 # Not all programs may use this symbol, but it does not hurt to define it.
26680
cristy8b350f62009-11-15 23:12:43 +000026681$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026682
26683 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26684else
26685 if test -n "$x_includes"; then
26686 X_CFLAGS="$X_CFLAGS -I$x_includes"
26687 fi
26688
26689 # It would also be nice to do this for all -L options, not just this one.
26690 if test -n "$x_libraries"; then
26691 X_LIBS="$X_LIBS -L$x_libraries"
26692 # For Solaris; some versions of Sun CC require a space after -R and
26693 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026695$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26696 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26697 ac_xsave_c_werror_flag=$ac_c_werror_flag
26698 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026700/* end confdefs.h. */
26701
26702int
26703main ()
26704{
26705
26706 ;
26707 return 0;
26708}
26709_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026710if ac_fn_c_try_link "$LINENO"; then :
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026712$as_echo "no" >&6; }
26713 X_LIBS="$X_LIBS -R$x_libraries"
26714else
cristy8b350f62009-11-15 23:12:43 +000026715 LIBS="$ac_xsave_LIBS -R $x_libraries"
26716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026717/* end confdefs.h. */
26718
26719int
26720main ()
26721{
26722
26723 ;
26724 return 0;
26725}
26726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026727if ac_fn_c_try_link "$LINENO"; then :
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026729$as_echo "yes" >&6; }
26730 X_LIBS="$X_LIBS -R $x_libraries"
26731else
cristy8b350f62009-11-15 23:12:43 +000026732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026733$as_echo "neither works" >&6; }
26734fi
cristy8b350f62009-11-15 23:12:43 +000026735rm -f core conftest.err conftest.$ac_objext \
26736 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026737fi
cristy8b350f62009-11-15 23:12:43 +000026738rm -f core conftest.err conftest.$ac_objext \
26739 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026740 ac_c_werror_flag=$ac_xsave_c_werror_flag
26741 LIBS=$ac_xsave_LIBS
26742 fi
26743
26744 # Check for system-dependent libraries X programs must link with.
26745 # Do this before checking for the system-independent R6 libraries
26746 # (-lICE), since we may need -lsocket or whatever for X linking.
26747
26748 if test "$ISC" = yes; then
26749 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26750 else
26751 # Martyn Johnson says this is needed for Ultrix, if the X
26752 # libraries were built with DECnet support. And Karl Berry says
26753 # the Alpha needs dnet_stub (dnet does not exist).
26754 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026756/* end confdefs.h. */
26757
26758/* Override any GCC internal prototype to avoid an error.
26759 Use char because int might match the return type of a GCC
26760 builtin and then its argument prototype would still apply. */
26761#ifdef __cplusplus
26762extern "C"
26763#endif
26764char XOpenDisplay ();
26765int
26766main ()
26767{
26768return XOpenDisplay ();
26769 ;
26770 return 0;
26771}
26772_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026773if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026774
cristy8b350f62009-11-15 23:12:43 +000026775else
26776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026777$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026778if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026779 $as_echo_n "(cached) " >&6
26780else
26781 ac_check_lib_save_LIBS=$LIBS
26782LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026784/* end confdefs.h. */
26785
26786/* Override any GCC internal prototype to avoid an error.
26787 Use char because int might match the return type of a GCC
26788 builtin and then its argument prototype would still apply. */
26789#ifdef __cplusplus
26790extern "C"
26791#endif
26792char dnet_ntoa ();
26793int
26794main ()
26795{
26796return dnet_ntoa ();
26797 ;
26798 return 0;
26799}
26800_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026801if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026802 ac_cv_lib_dnet_dnet_ntoa=yes
26803else
cristy8b350f62009-11-15 23:12:43 +000026804 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026805fi
cristy8b350f62009-11-15 23:12:43 +000026806rm -f core conftest.err conftest.$ac_objext \
26807 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026808LIBS=$ac_check_lib_save_LIBS
26809fi
cristy8b350f62009-11-15 23:12:43 +000026810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026811$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026812if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026813 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26814fi
26815
26816 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026818$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026819if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026820 $as_echo_n "(cached) " >&6
26821else
26822 ac_check_lib_save_LIBS=$LIBS
26823LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026825/* end confdefs.h. */
26826
26827/* Override any GCC internal prototype to avoid an error.
26828 Use char because int might match the return type of a GCC
26829 builtin and then its argument prototype would still apply. */
26830#ifdef __cplusplus
26831extern "C"
26832#endif
26833char dnet_ntoa ();
26834int
26835main ()
26836{
26837return dnet_ntoa ();
26838 ;
26839 return 0;
26840}
26841_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026842if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026843 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26844else
cristy8b350f62009-11-15 23:12:43 +000026845 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026846fi
cristy8b350f62009-11-15 23:12:43 +000026847rm -f core conftest.err conftest.$ac_objext \
26848 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026849LIBS=$ac_check_lib_save_LIBS
26850fi
cristy8b350f62009-11-15 23:12:43 +000026851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026852$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026853if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026854 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26855fi
26856
26857 fi
26858fi
cristy8b350f62009-11-15 23:12:43 +000026859rm -f core conftest.err conftest.$ac_objext \
26860 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026861 LIBS="$ac_xsave_LIBS"
26862
26863 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26864 # to get the SysV transport functions.
26865 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26866 # needs -lnsl.
26867 # The nsl library prevents programs from opening the X display
26868 # on Irix 5.2, according to T.E. Dickey.
26869 # The functions gethostbyname, getservbyname, and inet_addr are
26870 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026871 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026872if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026873
cristy3ed852e2009-09-05 21:47:34 +000026874fi
26875
cristy3ed852e2009-09-05 21:47:34 +000026876 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026878$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026879if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026880 $as_echo_n "(cached) " >&6
26881else
26882 ac_check_lib_save_LIBS=$LIBS
26883LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026885/* end confdefs.h. */
26886
26887/* Override any GCC internal prototype to avoid an error.
26888 Use char because int might match the return type of a GCC
26889 builtin and then its argument prototype would still apply. */
26890#ifdef __cplusplus
26891extern "C"
26892#endif
26893char gethostbyname ();
26894int
26895main ()
26896{
26897return gethostbyname ();
26898 ;
26899 return 0;
26900}
26901_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026902if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026903 ac_cv_lib_nsl_gethostbyname=yes
26904else
cristy8b350f62009-11-15 23:12:43 +000026905 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026906fi
cristy8b350f62009-11-15 23:12:43 +000026907rm -f core conftest.err conftest.$ac_objext \
26908 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026909LIBS=$ac_check_lib_save_LIBS
26910fi
cristy8b350f62009-11-15 23:12:43 +000026911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026912$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026913if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026914 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26915fi
26916
26917 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026919$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026920if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026921 $as_echo_n "(cached) " >&6
26922else
26923 ac_check_lib_save_LIBS=$LIBS
26924LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026926/* end confdefs.h. */
26927
26928/* Override any GCC internal prototype to avoid an error.
26929 Use char because int might match the return type of a GCC
26930 builtin and then its argument prototype would still apply. */
26931#ifdef __cplusplus
26932extern "C"
26933#endif
26934char gethostbyname ();
26935int
26936main ()
26937{
26938return gethostbyname ();
26939 ;
26940 return 0;
26941}
26942_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026943if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026944 ac_cv_lib_bsd_gethostbyname=yes
26945else
cristy8b350f62009-11-15 23:12:43 +000026946 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026947fi
cristy8b350f62009-11-15 23:12:43 +000026948rm -f core conftest.err conftest.$ac_objext \
26949 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026950LIBS=$ac_check_lib_save_LIBS
26951fi
cristy8b350f62009-11-15 23:12:43 +000026952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026953$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026954if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026955 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26956fi
26957
26958 fi
26959 fi
26960
26961 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26962 # socket/setsockopt and other routines are undefined under SCO ODT
26963 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26964 # on later versions), says Simon Leinen: it contains gethostby*
26965 # variants that don't use the name server (or something). -lsocket
26966 # must be given before -lnsl if both are needed. We assume that
26967 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026968 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026969if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026970
cristy3ed852e2009-09-05 21:47:34 +000026971fi
26972
cristy3ed852e2009-09-05 21:47:34 +000026973 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026975$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026976if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026977 $as_echo_n "(cached) " >&6
26978else
26979 ac_check_lib_save_LIBS=$LIBS
26980LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026982/* end confdefs.h. */
26983
26984/* Override any GCC internal prototype to avoid an error.
26985 Use char because int might match the return type of a GCC
26986 builtin and then its argument prototype would still apply. */
26987#ifdef __cplusplus
26988extern "C"
26989#endif
26990char connect ();
26991int
26992main ()
26993{
26994return connect ();
26995 ;
26996 return 0;
26997}
26998_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026999if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027000 ac_cv_lib_socket_connect=yes
27001else
cristy8b350f62009-11-15 23:12:43 +000027002 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027003fi
cristy8b350f62009-11-15 23:12:43 +000027004rm -f core conftest.err conftest.$ac_objext \
27005 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027006LIBS=$ac_check_lib_save_LIBS
27007fi
cristy8b350f62009-11-15 23:12:43 +000027008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027009$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027010if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027011 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27012fi
27013
27014 fi
27015
27016 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027017 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027018if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027019
cristy3ed852e2009-09-05 21:47:34 +000027020fi
27021
cristy3ed852e2009-09-05 21:47:34 +000027022 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027024$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027025if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027026 $as_echo_n "(cached) " >&6
27027else
27028 ac_check_lib_save_LIBS=$LIBS
27029LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027031/* end confdefs.h. */
27032
27033/* Override any GCC internal prototype to avoid an error.
27034 Use char because int might match the return type of a GCC
27035 builtin and then its argument prototype would still apply. */
27036#ifdef __cplusplus
27037extern "C"
27038#endif
27039char remove ();
27040int
27041main ()
27042{
27043return remove ();
27044 ;
27045 return 0;
27046}
27047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027048if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027049 ac_cv_lib_posix_remove=yes
27050else
cristy8b350f62009-11-15 23:12:43 +000027051 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027052fi
cristy8b350f62009-11-15 23:12:43 +000027053rm -f core conftest.err conftest.$ac_objext \
27054 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027055LIBS=$ac_check_lib_save_LIBS
27056fi
cristy8b350f62009-11-15 23:12:43 +000027057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027058$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027059if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027060 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27061fi
27062
27063 fi
27064
27065 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027066 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027067if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027068
cristy3ed852e2009-09-05 21:47:34 +000027069fi
27070
cristy3ed852e2009-09-05 21:47:34 +000027071 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027073$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027074if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027075 $as_echo_n "(cached) " >&6
27076else
27077 ac_check_lib_save_LIBS=$LIBS
27078LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027080/* end confdefs.h. */
27081
27082/* Override any GCC internal prototype to avoid an error.
27083 Use char because int might match the return type of a GCC
27084 builtin and then its argument prototype would still apply. */
27085#ifdef __cplusplus
27086extern "C"
27087#endif
27088char shmat ();
27089int
27090main ()
27091{
27092return shmat ();
27093 ;
27094 return 0;
27095}
27096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027097if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027098 ac_cv_lib_ipc_shmat=yes
27099else
cristy8b350f62009-11-15 23:12:43 +000027100 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027101fi
cristy8b350f62009-11-15 23:12:43 +000027102rm -f core conftest.err conftest.$ac_objext \
27103 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027104LIBS=$ac_check_lib_save_LIBS
27105fi
cristy8b350f62009-11-15 23:12:43 +000027106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027107$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027108if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027109 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27110fi
27111
27112 fi
27113 fi
27114
27115 # Check for libraries that X11R6 Xt/Xaw programs need.
27116 ac_save_LDFLAGS=$LDFLAGS
27117 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27118 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27119 # check for ICE first), but we must link in the order -lSM -lICE or
27120 # we get undefined symbols. So assume we have SM if we have ICE.
27121 # These have to be linked with before -lX11, unlike the other
27122 # libraries we check for below, so use a different variable.
27123 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027125$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027126if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027127 $as_echo_n "(cached) " >&6
27128else
27129 ac_check_lib_save_LIBS=$LIBS
27130LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027132/* end confdefs.h. */
27133
27134/* Override any GCC internal prototype to avoid an error.
27135 Use char because int might match the return type of a GCC
27136 builtin and then its argument prototype would still apply. */
27137#ifdef __cplusplus
27138extern "C"
27139#endif
27140char IceConnectionNumber ();
27141int
27142main ()
27143{
27144return IceConnectionNumber ();
27145 ;
27146 return 0;
27147}
27148_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027149if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027150 ac_cv_lib_ICE_IceConnectionNumber=yes
27151else
cristy8b350f62009-11-15 23:12:43 +000027152 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027153fi
cristy8b350f62009-11-15 23:12:43 +000027154rm -f core conftest.err conftest.$ac_objext \
27155 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027156LIBS=$ac_check_lib_save_LIBS
27157fi
cristy8b350f62009-11-15 23:12:43 +000027158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027159$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027160if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027161 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27162fi
27163
27164 LDFLAGS=$ac_save_LDFLAGS
27165
27166fi
27167
27168if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27170$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027172$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27174$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027175 LDFLAGS="$LDFLAGS $X_LIBS"
27176 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27177 LIBS="$X11_LIBS $LIBS"
27178 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27179
27180
cristy8b350f62009-11-15 23:12:43 +000027181$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027182
27183 #
27184 # Check for X11 shared memory extension
27185 #
27186 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027187 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027188if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027189 have_shmctl='yes'
27190fi
27191
27192 if test "$have_shmctl" != 'yes'; then
27193 PERSIST_LIBS=$LIBS
27194 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027196/* end confdefs.h. */
27197
27198/* Override any GCC internal prototype to avoid an error.
27199 Use char because int might match the return type of a GCC
27200 builtin and then its argument prototype would still apply. */
27201#ifdef __cplusplus
27202extern "C"
27203#endif
27204char shmctl ();
27205int
27206main ()
27207{
27208return shmctl ();
27209 ;
27210 return 0;
27211}
27212_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027213if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027214 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027215fi
cristy8b350f62009-11-15 23:12:43 +000027216rm -f core conftest.err conftest.$ac_objext \
27217 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027218 LIBS=$PERSIST_LIBS
27219 fi
27220
27221 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027223$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027224if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027225 $as_echo_n "(cached) " >&6
27226else
27227 ac_check_lib_save_LIBS=$LIBS
27228LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027230/* end confdefs.h. */
27231
27232/* Override any GCC internal prototype to avoid an error.
27233 Use char because int might match the return type of a GCC
27234 builtin and then its argument prototype would still apply. */
27235#ifdef __cplusplus
27236extern "C"
27237#endif
27238char XShmAttach ();
27239int
27240main ()
27241{
27242return XShmAttach ();
27243 ;
27244 return 0;
27245}
27246_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027247if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027248 ac_cv_lib_Xext_XShmAttach=yes
27249else
cristy8b350f62009-11-15 23:12:43 +000027250 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027251fi
cristy8b350f62009-11-15 23:12:43 +000027252rm -f core conftest.err conftest.$ac_objext \
27253 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027254LIBS=$ac_check_lib_save_LIBS
27255fi
cristy8b350f62009-11-15 23:12:43 +000027256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027257$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027258if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027259 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027260$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027261
27262fi
27263
27264 fi
27265
27266 #
27267 # Check for X11 shape extension
27268 #
cristy8b350f62009-11-15 23:12:43 +000027269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027270$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027271if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027272 $as_echo_n "(cached) " >&6
27273else
27274 ac_check_lib_save_LIBS=$LIBS
27275LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027277/* end confdefs.h. */
27278
27279/* Override any GCC internal prototype to avoid an error.
27280 Use char because int might match the return type of a GCC
27281 builtin and then its argument prototype would still apply. */
27282#ifdef __cplusplus
27283extern "C"
27284#endif
27285char XShapeCombineMask ();
27286int
27287main ()
27288{
27289return XShapeCombineMask ();
27290 ;
27291 return 0;
27292}
27293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027294if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027295 ac_cv_lib_Xext_XShapeCombineMask=yes
27296else
cristy8b350f62009-11-15 23:12:43 +000027297 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027298fi
cristy8b350f62009-11-15 23:12:43 +000027299rm -f core conftest.err conftest.$ac_objext \
27300 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027301LIBS=$ac_check_lib_save_LIBS
27302fi
cristy8b350f62009-11-15 23:12:43 +000027303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027304$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027305if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027306 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027307$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027308
27309fi
27310
cristy8b350f62009-11-15 23:12:43 +000027311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027312$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027313if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027314 $as_echo_n "(cached) " >&6
27315else
27316 ac_check_lib_save_LIBS=$LIBS
27317LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027319/* end confdefs.h. */
27320
27321/* Override any GCC internal prototype to avoid an error.
27322 Use char because int might match the return type of a GCC
27323 builtin and then its argument prototype would still apply. */
27324#ifdef __cplusplus
27325extern "C"
27326#endif
27327char XtSetEventDispatcher ();
27328int
27329main ()
27330{
27331return XtSetEventDispatcher ();
27332 ;
27333 return 0;
27334}
27335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027336if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027337 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27338else
cristy8b350f62009-11-15 23:12:43 +000027339 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027340fi
cristy8b350f62009-11-15 23:12:43 +000027341rm -f core conftest.err conftest.$ac_objext \
27342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027343LIBS=$ac_check_lib_save_LIBS
27344fi
cristy8b350f62009-11-15 23:12:43 +000027345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027346$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027347if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027348 XT_LIBS='-lXt'
27349fi
27350
27351 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27352fi
27353if test "$no_x" != 'yes'; then
27354 have_x='yes'
27355else
27356 have_x='no'
27357fi
cristy73bd4a52010-10-05 11:24:23 +000027358 if test "$have_x" = 'yes'; then
27359 X11_DELEGATE_TRUE=
27360 X11_DELEGATE_FALSE='#'
27361else
27362 X11_DELEGATE_TRUE='#'
27363 X11_DELEGATE_FALSE=
27364fi
27365
cristy3ed852e2009-09-05 21:47:34 +000027366
27367
27368
27369
27370#
27371# Check for ZLIB
27372#
27373
27374# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027375if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027376 withval=$with_zlib; with_zlib=$withval
27377else
27378 with_zlib='yes'
27379fi
27380
27381
27382if test "$with_zlib" != 'yes'; then
27383 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27384fi
27385
27386have_zlib='no'
27387ZLIB_LIBS=''
27388if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27390$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027392$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27394$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027395 ZLIB_LIBS=''
27396 failed=0
27397 passed=0
cristy8b350f62009-11-15 23:12:43 +000027398 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027399if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027400 passed=`expr $passed + 1`
27401else
27402 failed=`expr $failed + 1`
27403fi
27404
27405
cristy8b350f62009-11-15 23:12:43 +000027406 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027407if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027408 passed=`expr $passed + 1`
27409else
27410 failed=`expr $failed + 1`
27411fi
27412
27413
cristy8b350f62009-11-15 23:12:43 +000027414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027415$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027416if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027417 $as_echo_n "(cached) " >&6
27418else
27419 ac_check_lib_save_LIBS=$LIBS
27420LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027422/* end confdefs.h. */
27423
27424/* Override any GCC internal prototype to avoid an error.
27425 Use char because int might match the return type of a GCC
27426 builtin and then its argument prototype would still apply. */
27427#ifdef __cplusplus
27428extern "C"
27429#endif
27430char compress ();
27431int
27432main ()
27433{
27434return compress ();
27435 ;
27436 return 0;
27437}
27438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027439if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027440 ac_cv_lib_z_compress=yes
27441else
cristy8b350f62009-11-15 23:12:43 +000027442 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027443fi
cristy8b350f62009-11-15 23:12:43 +000027444rm -f core conftest.err conftest.$ac_objext \
27445 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027446LIBS=$ac_check_lib_save_LIBS
27447fi
cristy8b350f62009-11-15 23:12:43 +000027448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027449$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027450if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027451 passed=`expr $passed + 1`
27452else
27453 failed=`expr $failed + 1`
27454fi
27455
cristy8b350f62009-11-15 23:12:43 +000027456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027457$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027458if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027459 $as_echo_n "(cached) " >&6
27460else
27461 ac_check_lib_save_LIBS=$LIBS
27462LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027464/* end confdefs.h. */
27465
27466/* Override any GCC internal prototype to avoid an error.
27467 Use char because int might match the return type of a GCC
27468 builtin and then its argument prototype would still apply. */
27469#ifdef __cplusplus
27470extern "C"
27471#endif
27472char uncompress ();
27473int
27474main ()
27475{
27476return uncompress ();
27477 ;
27478 return 0;
27479}
27480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027481if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027482 ac_cv_lib_z_uncompress=yes
27483else
cristy8b350f62009-11-15 23:12:43 +000027484 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027485fi
cristy8b350f62009-11-15 23:12:43 +000027486rm -f core conftest.err conftest.$ac_objext \
27487 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027488LIBS=$ac_check_lib_save_LIBS
27489fi
cristy8b350f62009-11-15 23:12:43 +000027490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027491$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027492if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027493 passed=`expr $passed + 1`
27494else
27495 failed=`expr $failed + 1`
27496fi
27497
cristy8b350f62009-11-15 23:12:43 +000027498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027499$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027500if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027501 $as_echo_n "(cached) " >&6
27502else
27503 ac_check_lib_save_LIBS=$LIBS
27504LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027506/* end confdefs.h. */
27507
27508/* Override any GCC internal prototype to avoid an error.
27509 Use char because int might match the return type of a GCC
27510 builtin and then its argument prototype would still apply. */
27511#ifdef __cplusplus
27512extern "C"
27513#endif
27514char deflate ();
27515int
27516main ()
27517{
27518return deflate ();
27519 ;
27520 return 0;
27521}
27522_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027523if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027524 ac_cv_lib_z_deflate=yes
27525else
cristy8b350f62009-11-15 23:12:43 +000027526 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027527fi
cristy8b350f62009-11-15 23:12:43 +000027528rm -f core conftest.err conftest.$ac_objext \
27529 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027530LIBS=$ac_check_lib_save_LIBS
27531fi
cristy8b350f62009-11-15 23:12:43 +000027532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027533$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027534if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027535 passed=`expr $passed + 1`
27536else
27537 failed=`expr $failed + 1`
27538fi
27539
cristy8b350f62009-11-15 23:12:43 +000027540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027541$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027542if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027543 $as_echo_n "(cached) " >&6
27544else
27545 ac_check_lib_save_LIBS=$LIBS
27546LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027548/* end confdefs.h. */
27549
27550/* Override any GCC internal prototype to avoid an error.
27551 Use char because int might match the return type of a GCC
27552 builtin and then its argument prototype would still apply. */
27553#ifdef __cplusplus
27554extern "C"
27555#endif
27556char inflate ();
27557int
27558main ()
27559{
27560return inflate ();
27561 ;
27562 return 0;
27563}
27564_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027565if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027566 ac_cv_lib_z_inflate=yes
27567else
cristy8b350f62009-11-15 23:12:43 +000027568 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027569fi
cristy8b350f62009-11-15 23:12:43 +000027570rm -f core conftest.err conftest.$ac_objext \
27571 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027572LIBS=$ac_check_lib_save_LIBS
27573fi
cristy8b350f62009-11-15 23:12:43 +000027574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027575$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027576if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027577 passed=`expr $passed + 1`
27578else
27579 failed=`expr $failed + 1`
27580fi
27581
cristy8b350f62009-11-15 23:12:43 +000027582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027583$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027584if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027585 $as_echo_n "(cached) " >&6
27586else
27587 ac_check_lib_save_LIBS=$LIBS
27588LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027590/* end confdefs.h. */
27591
27592/* Override any GCC internal prototype to avoid an error.
27593 Use char because int might match the return type of a GCC
27594 builtin and then its argument prototype would still apply. */
27595#ifdef __cplusplus
27596extern "C"
27597#endif
27598char gzseek ();
27599int
27600main ()
27601{
27602return gzseek ();
27603 ;
27604 return 0;
27605}
27606_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027607if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027608 ac_cv_lib_z_gzseek=yes
27609else
cristy8b350f62009-11-15 23:12:43 +000027610 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027611fi
cristy8b350f62009-11-15 23:12:43 +000027612rm -f core conftest.err conftest.$ac_objext \
27613 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027614LIBS=$ac_check_lib_save_LIBS
27615fi
cristy8b350f62009-11-15 23:12:43 +000027616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027617$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027618if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027619 passed=`expr $passed + 1`
27620else
27621 failed=`expr $failed + 1`
27622fi
27623
cristy8b350f62009-11-15 23:12:43 +000027624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027625$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027626if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027627 $as_echo_n "(cached) " >&6
27628else
27629 ac_check_lib_save_LIBS=$LIBS
27630LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027632/* end confdefs.h. */
27633
27634/* Override any GCC internal prototype to avoid an error.
27635 Use char because int might match the return type of a GCC
27636 builtin and then its argument prototype would still apply. */
27637#ifdef __cplusplus
27638extern "C"
27639#endif
27640char gztell ();
27641int
27642main ()
27643{
27644return gztell ();
27645 ;
27646 return 0;
27647}
27648_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027649if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027650 ac_cv_lib_z_gztell=yes
27651else
cristy8b350f62009-11-15 23:12:43 +000027652 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027653fi
cristy8b350f62009-11-15 23:12:43 +000027654rm -f core conftest.err conftest.$ac_objext \
27655 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027656LIBS=$ac_check_lib_save_LIBS
27657fi
cristy8b350f62009-11-15 23:12:43 +000027658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027659$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027660if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027661 passed=`expr $passed + 1`
27662else
27663 failed=`expr $failed + 1`
27664fi
27665
cristy8b350f62009-11-15 23:12:43 +000027666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027667$as_echo_n "checking if ZLIB package is complete... " >&6; }
27668 if test $passed -gt 0; then
27669 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27671$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027672 have_zlib='no (failed tests)'
27673 else
27674 ZLIB_LIBS='-lz'
27675 LIBS="$ZLIB_LIBS $LIBS"
27676
cristy8b350f62009-11-15 23:12:43 +000027677$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027678
cristyad38abe2012-12-23 23:03:21 +000027679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27680$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027681 have_zlib='yes'
27682 fi
27683 else
cristyad38abe2012-12-23 23:03:21 +000027684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27685$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027686 fi
27687fi
cristy73bd4a52010-10-05 11:24:23 +000027688 if test "$have_zlib" = 'yes'; then
27689 ZLIB_DELEGATE_TRUE=
27690 ZLIB_DELEGATE_FALSE='#'
27691else
27692 ZLIB_DELEGATE_TRUE='#'
27693 ZLIB_DELEGATE_FALSE=
27694fi
27695
cristy3ed852e2009-09-05 21:47:34 +000027696
27697
cristy5eef09f2012-10-16 12:08:28 +000027698# whether modules are built or not.
27699with_ltdl='yes'
27700have_ltdl='no'
27701LTDL_LIBS=''
27702if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000027703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27704$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000027705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
27706$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27708$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000027709 failed=0
27710 passed=0
27711 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
27712if test "x$ac_cv_header_ltdl_h" = xyes; then :
27713 passed=`expr $passed + 1`
27714else
27715 failed=`expr $failed + 1`
27716fi
27717
27718
27719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
27720$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
27721if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
27722 $as_echo_n "(cached) " >&6
27723else
27724 ac_check_lib_save_LIBS=$LIBS
27725LIBS="-lltdl $LIBS"
27726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27727/* end confdefs.h. */
27728
27729/* Override any GCC internal prototype to avoid an error.
27730 Use char because int might match the return type of a GCC
27731 builtin and then its argument prototype would still apply. */
27732#ifdef __cplusplus
27733extern "C"
27734#endif
27735char lt_dlinit ();
27736int
27737main ()
27738{
27739return lt_dlinit ();
27740 ;
27741 return 0;
27742}
27743_ACEOF
27744if ac_fn_c_try_link "$LINENO"; then :
27745 ac_cv_lib_ltdl_lt_dlinit=yes
27746else
27747 ac_cv_lib_ltdl_lt_dlinit=no
27748fi
27749rm -f core conftest.err conftest.$ac_objext \
27750 conftest$ac_exeext conftest.$ac_ext
27751LIBS=$ac_check_lib_save_LIBS
27752fi
27753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
27754$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
27755if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
27756 passed=`expr $passed + 1`
27757else
27758 failed=`expr $failed + 1`
27759fi
27760
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
27762$as_echo_n "checking if libltdl package is complete... " >&6; }
27763 if test $passed -gt 0 ; then
27764 if test $failed -gt 0 ; then
27765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27766$as_echo "no -- some components failed test" >&6; }
27767 have_ltdl='no (failed tests)'
27768 else
27769 LTDL_LIBS='-lltdl'
27770 LIBS="$LTDL_LIBS $LIBS"
27771
27772$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
27773
27774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27775$as_echo "yes" >&6; }
27776 have_ltdl='yes'
27777 fi
27778 else
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27780$as_echo "no" >&6; }
27781 fi
cristyaf4cbf32012-10-16 23:47:41 +000027782 if test "$have_ltdl" != 'yes' ; then
27783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27785as_fn_error 1 "libltdl is required for modules build
27786See \`config.log' for more details" "$LINENO" 5; }
27787 fi
cristy5eef09f2012-10-16 12:08:28 +000027788fi
27789 if test "$have_ltdl" != 'no'; then
27790 WITH_LTDL_TRUE=
27791 WITH_LTDL_FALSE='#'
27792else
27793 WITH_LTDL_TRUE='#'
27794 WITH_LTDL_FALSE=
27795fi
27796
27797
cristy3ed852e2009-09-05 21:47:34 +000027798#
27799# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27800#
27801LIB_DL=''
27802if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027804$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027805if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027806 $as_echo_n "(cached) " >&6
27807else
27808 ac_check_lib_save_LIBS=$LIBS
27809LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027811/* end confdefs.h. */
27812
27813/* Override any GCC internal prototype to avoid an error.
27814 Use char because int might match the return type of a GCC
27815 builtin and then its argument prototype would still apply. */
27816#ifdef __cplusplus
27817extern "C"
27818#endif
27819char dlopen ();
27820int
27821main ()
27822{
27823return dlopen ();
27824 ;
27825 return 0;
27826}
27827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027828if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027829 ac_cv_lib_dl_dlopen=yes
27830else
cristy8b350f62009-11-15 23:12:43 +000027831 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027832fi
cristy8b350f62009-11-15 23:12:43 +000027833rm -f core conftest.err conftest.$ac_objext \
27834 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027835LIBS=$ac_check_lib_save_LIBS
27836fi
cristy8b350f62009-11-15 23:12:43 +000027837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027838$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027839if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027840 LIB_DL='-ldl'
27841fi
27842
27843 LIBS="$LIB_DL $LIBS"
27844fi
27845
27846
27847
27848#
27849# Check for Autotrace delegate library.
27850#
27851
27852# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027853if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027854 withval=$with_autotrace; with_autotrace=$withval
27855else
27856 with_autotrace='no'
27857fi
27858
27859
27860if test "$with_autotrace" != 'yes'; then
27861 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27862fi
27863
27864have_autotrace='no'
27865AUTOTRACE_CFLAGS=""
27866AUTOTRACE_LIBS=""
27867AUTOTRACE_PKG=""
27868if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000027869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27870$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027871
27872pkg_failed=no
27873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27874$as_echo_n "checking for AUTOTRACE... " >&6; }
27875
27876if test -n "$AUTOTRACE_CFLAGS"; then
27877 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27878 elif test -n "$PKG_CONFIG"; then
27879 if test -n "$PKG_CONFIG" && \
27880 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27881 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27882 ac_status=$?
27883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27884 test $ac_status = 0; }; then
27885 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27886else
27887 pkg_failed=yes
27888fi
27889 else
27890 pkg_failed=untried
27891fi
27892if test -n "$AUTOTRACE_LIBS"; then
27893 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27894 elif test -n "$PKG_CONFIG"; then
27895 if test -n "$PKG_CONFIG" && \
27896 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27897 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27898 ac_status=$?
27899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27900 test $ac_status = 0; }; then
27901 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27902else
27903 pkg_failed=yes
27904fi
27905 else
27906 pkg_failed=untried
27907fi
27908
27909
27910
27911if test $pkg_failed = yes; then
27912
27913if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27914 _pkg_short_errors_supported=yes
27915else
27916 _pkg_short_errors_supported=no
27917fi
27918 if test $_pkg_short_errors_supported = yes; then
27919 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27920 else
27921 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27922 fi
27923 # Put the nasty error message in config.log where it belongs
27924 echo "$AUTOTRACE_PKG_ERRORS" >&5
27925
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27927$as_echo "no" >&6; }
27928 have_autotrace=no
27929elif test $pkg_failed = untried; then
27930 have_autotrace=no
27931else
27932 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27933 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27935$as_echo "yes" >&6; }
27936 have_autotrace=yes
27937fi
cristyad38abe2012-12-23 23:03:21 +000027938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27939$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027940fi
27941
27942if test "$have_autotrace" = 'yes'; then
27943 failed=0
27944
cristy8b350f62009-11-15 23:12:43 +000027945$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027946
cristyc6722092012-10-14 00:19:31 +000027947 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000027948 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000027949 fi
27950fi
27951
cristy73bd4a52010-10-05 11:24:23 +000027952 if test "$have_autotrace" = 'yes'; then
27953 AUTOTRACE_DELEGATE_TRUE=
27954 AUTOTRACE_DELEGATE_FALSE='#'
27955else
27956 AUTOTRACE_DELEGATE_TRUE='#'
27957 AUTOTRACE_DELEGATE_FALSE=
27958fi
27959
cristy3ed852e2009-09-05 21:47:34 +000027960
27961
27962
27963
27964#
27965# Check for Display Postscript delegate library.
27966#
27967
27968# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027969if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027970 withval=$with_dps; with_dps=$withval
27971else
27972 with_dps='yes'
27973fi
27974
27975
27976if test "$with_dps" != 'yes'; then
27977 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27978fi
27979
27980have_dps='no'
27981DPS_LIBS=''
27982if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27984$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027986$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27988$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027989 failed=0
27990 passed=0
27991 PERSIST_CPPFLAGS="$CPPFLAGS"
27992 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027993 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 +000027994if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027995 passed=`expr $passed + 1`
27996else
27997 failed=`expr $failed + 1`
27998fi
27999
28000
28001 # DPS issues:
28002 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28003 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28004 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28005 # ImageMagick itself doesn't use -lXt.
28006 have_libdps='no'
28007 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028009$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028010if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028011 $as_echo_n "(cached) " >&6
28012else
28013 ac_check_lib_save_LIBS=$LIBS
28014LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028016/* end confdefs.h. */
28017
28018/* Override any GCC internal prototype to avoid an error.
28019 Use char because int might match the return type of a GCC
28020 builtin and then its argument prototype would still apply. */
28021#ifdef __cplusplus
28022extern "C"
28023#endif
28024char DPSInitialize ();
28025int
28026main ()
28027{
28028return DPSInitialize ();
28029 ;
28030 return 0;
28031}
28032_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028033if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028034 ac_cv_lib_dps_DPSInitialize=yes
28035else
cristy8b350f62009-11-15 23:12:43 +000028036 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028037fi
cristy8b350f62009-11-15 23:12:43 +000028038rm -f core conftest.err conftest.$ac_objext \
28039 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028040LIBS=$ac_check_lib_save_LIBS
28041fi
cristy8b350f62009-11-15 23:12:43 +000028042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028043$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028044if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028045 have_libdps='yes'
28046else
28047 have_libdps='no'
28048fi
28049
28050 if test "$have_libdps" != 'yes'; then
28051 # Unset cache variable so we can try again.
28052 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028054$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028055if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028056 $as_echo_n "(cached) " >&6
28057else
28058 ac_check_lib_save_LIBS=$LIBS
28059LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028061/* end confdefs.h. */
28062
28063/* Override any GCC internal prototype to avoid an error.
28064 Use char because int might match the return type of a GCC
28065 builtin and then its argument prototype would still apply. */
28066#ifdef __cplusplus
28067extern "C"
28068#endif
28069char DPSInitialize ();
28070int
28071main ()
28072{
28073return DPSInitialize ();
28074 ;
28075 return 0;
28076}
28077_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028078if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028079 ac_cv_lib_dps_DPSInitialize=yes
28080else
cristy8b350f62009-11-15 23:12:43 +000028081 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028082fi
cristy8b350f62009-11-15 23:12:43 +000028083rm -f core conftest.err conftest.$ac_objext \
28084 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028085LIBS=$ac_check_lib_save_LIBS
28086fi
cristy8b350f62009-11-15 23:12:43 +000028087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028088$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028089if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028090 have_libdps='yes'
28091else
28092 have_libdps='no'
28093fi
28094
28095 if test "$have_libdps" = 'yes'; then
28096 LIBDPS_XT='-lXt'
28097 fi
28098 fi
28099 if test "$have_libdps" = 'yes'; then
28100 passed=`expr $passed + 1`
28101 else
28102 failed=`expr $failed + 1`
28103 fi
cristy8b350f62009-11-15 23:12:43 +000028104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028105$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028106if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028107 $as_echo_n "(cached) " >&6
28108else
28109 ac_check_lib_save_LIBS=$LIBS
28110LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028112/* end confdefs.h. */
28113
28114/* Override any GCC internal prototype to avoid an error.
28115 Use char because int might match the return type of a GCC
28116 builtin and then its argument prototype would still apply. */
28117#ifdef __cplusplus
28118extern "C"
28119#endif
28120char XDPSPixelsPerPoint ();
28121int
28122main ()
28123{
28124return XDPSPixelsPerPoint ();
28125 ;
28126 return 0;
28127}
28128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028129if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028130 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28131else
cristy8b350f62009-11-15 23:12:43 +000028132 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028133fi
cristy8b350f62009-11-15 23:12:43 +000028134rm -f core conftest.err conftest.$ac_objext \
28135 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028136LIBS=$ac_check_lib_save_LIBS
28137fi
cristy8b350f62009-11-15 23:12:43 +000028138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028139$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028140if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028141 passed=`expr $passed + 1`
28142else
28143 failed=`expr $failed + 1`
28144fi
28145
cristy8b350f62009-11-15 23:12:43 +000028146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028147$as_echo_n "checking if DPS package is complete... " >&6; }
28148 if test $passed -gt 0; then
28149 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28151$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028152 have_dps='no (failed tests)'
28153 CPPFLAGS="$PERSIST_CPPFLAGS"
28154 else
28155 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28156 LIBS="$DPS_LIBS $LIBS"
28157
cristy8b350f62009-11-15 23:12:43 +000028158$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028159
cristyad38abe2012-12-23 23:03:21 +000028160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28161$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028162 have_dps='yes'
28163 fi
28164 else
cristyad38abe2012-12-23 23:03:21 +000028165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28166$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028167 CPPFLAGS=$PERSIST_CPPFLAGS
28168 fi
28169fi
cristy73bd4a52010-10-05 11:24:23 +000028170 if test "$have_dps" = 'yes'; then
28171 DPS_DELEGATE_TRUE=
28172 DPS_DELEGATE_FALSE='#'
28173else
28174 DPS_DELEGATE_TRUE='#'
28175 DPS_DELEGATE_FALSE=
28176fi
28177
cristy3ed852e2009-09-05 21:47:34 +000028178
28179
28180
28181#
28182# Check for DJVU delegate library.
28183#
28184
28185# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028186if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028187 withval=$with_djvu; with_djvu=$withval
28188else
28189 with_djvu='yes'
28190fi
28191
28192
28193if test "$with_djvu" != 'yes'; then
28194 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28195fi
28196
28197have_djvu='no'
28198DJVU_LIBS=''
28199if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28201$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028203$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28205$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028206 failed=0
28207 passed=0
cristy8b350f62009-11-15 23:12:43 +000028208 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 +000028209if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028210 passed=`expr $passed + 1`
28211else
28212 failed=`expr $failed + 1`
28213fi
28214
28215
cristy8b350f62009-11-15 23:12:43 +000028216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028217$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028218if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028219 $as_echo_n "(cached) " >&6
28220else
28221 ac_check_lib_save_LIBS=$LIBS
28222LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028224/* end confdefs.h. */
28225
28226/* Override any GCC internal prototype to avoid an error.
28227 Use char because int might match the return type of a GCC
28228 builtin and then its argument prototype would still apply. */
28229#ifdef __cplusplus
28230extern "C"
28231#endif
28232char ddjvu_context_create ();
28233int
28234main ()
28235{
28236return ddjvu_context_create ();
28237 ;
28238 return 0;
28239}
28240_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028241if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028242 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28243else
cristy8b350f62009-11-15 23:12:43 +000028244 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028245fi
cristy8b350f62009-11-15 23:12:43 +000028246rm -f core conftest.err conftest.$ac_objext \
28247 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028248LIBS=$ac_check_lib_save_LIBS
28249fi
cristy8b350f62009-11-15 23:12:43 +000028250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028251$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028252if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028253 passed=`expr $passed + 1`
28254else
28255 failed=`expr $failed + 1`
28256fi
28257
cristy8b350f62009-11-15 23:12:43 +000028258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028259$as_echo_n "checking if DJVU package is complete... " >&6; }
28260 if test $passed -gt 0; then
28261 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28263$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028264 have_djvu='no (failed tests)'
28265 else
28266 DJVU_LIBS='-ldjvulibre'
28267 LIBS="$DJVU_LIBS $LIBS"
28268
cristy8b350f62009-11-15 23:12:43 +000028269$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028270
cristyad38abe2012-12-23 23:03:21 +000028271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28272$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028273 have_djvu='yes'
28274 fi
28275 else
cristyad38abe2012-12-23 23:03:21 +000028276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28277$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028278 fi
28279fi
cristy73bd4a52010-10-05 11:24:23 +000028280 if test "$have_djvu" = 'yes'; then
28281 DJVU_DELEGATE_TRUE=
28282 DJVU_DELEGATE_FALSE='#'
28283else
28284 DJVU_DELEGATE_TRUE='#'
28285 DJVU_DELEGATE_FALSE=
28286fi
28287
cristy3ed852e2009-09-05 21:47:34 +000028288
28289
28290
28291#
cristy430a7312010-01-21 20:44:04 +000028292# Set DejaVu font directory.
28293#
28294
28295# Check whether --with-dejavu-font-dir was given.
28296if test "${with_dejavu_font_dir+set}" = set; then :
28297 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28298else
28299 with_dejavu_font_dir='default'
28300fi
28301
28302
28303if test "$with_dejavu_font_dir" != 'default'; then
28304 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28305fi
28306
28307
28308#
cristy3ed852e2009-09-05 21:47:34 +000028309# Check for FFTW delegate library.
28310#
28311
28312# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028313if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028314 withval=$with_fftw; with_fftw=$withval
28315else
28316 with_fftw='yes'
28317fi
28318
28319
28320if test "$with_fftw" != 'yes'; then
28321 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28322fi
28323
cristy81beccd2011-10-03 18:17:24 +000028324have_fftw='no'
28325FFTW_LIBS=''
28326if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28328$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28330$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28332$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028333 failed=0
28334 passed=0
28335 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28336if test "x$ac_cv_header_fftw3_h" = xyes; then :
28337 passed=`expr $passed + 1`
28338else
28339 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028340fi
28341
cristy81beccd2011-10-03 18:17:24 +000028342
28343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28344$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28345if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28346 $as_echo_n "(cached) " >&6
28347else
28348 ac_check_lib_save_LIBS=$LIBS
28349LIBS="-lfftw3 $LIBS"
28350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28351/* end confdefs.h. */
28352
28353/* Override any GCC internal prototype to avoid an error.
28354 Use char because int might match the return type of a GCC
28355 builtin and then its argument prototype would still apply. */
28356#ifdef __cplusplus
28357extern "C"
28358#endif
28359char fftw_execute ();
28360int
28361main ()
28362{
28363return fftw_execute ();
28364 ;
28365 return 0;
28366}
28367_ACEOF
28368if ac_fn_c_try_link "$LINENO"; then :
28369 ac_cv_lib_fftw3_fftw_execute=yes
28370else
28371 ac_cv_lib_fftw3_fftw_execute=no
28372fi
28373rm -f core conftest.err conftest.$ac_objext \
28374 conftest$ac_exeext conftest.$ac_ext
28375LIBS=$ac_check_lib_save_LIBS
28376fi
28377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28378$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28379if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28380 passed=`expr $passed + 1`
28381else
28382 failed=`expr $failed + 1`
28383fi
28384
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28386$as_echo_n "checking if FFTW package is complete... " >&6; }
28387 if test $passed -gt 0; then
28388 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28390$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028391 have_fftw='no (failed tests)'
28392 else
28393 FFTW_LIBS='-lfftw3'
28394 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028395
cristy8b350f62009-11-15 23:12:43 +000028396$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028397
cristyad38abe2012-12-23 23:03:21 +000028398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28399$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028400 have_fftw='yes'
28401 fi
28402 else
cristyad38abe2012-12-23 23:03:21 +000028403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28404$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028405 fi
28406fi
cristy73bd4a52010-10-05 11:24:23 +000028407 if test "$have_fftw" = 'yes'; then
28408 FFTW_DELEGATE_TRUE=
28409 FFTW_DELEGATE_FALSE='#'
28410else
28411 FFTW_DELEGATE_TRUE='#'
28412 FFTW_DELEGATE_FALSE=
28413fi
28414
cristy3ed852e2009-09-05 21:47:34 +000028415
28416
28417
28418#
28419# Check for FlashPIX delegate library.
28420#
28421
28422# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028423if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028424 withval=$with_fpx; with_fpx=$withval
28425else
28426 with_fpx='yes'
28427fi
28428
28429
28430if test "$with_fpx" != 'yes'; then
28431 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28432fi
28433
28434have_fpx='no'
28435FPX_LIBS=''
28436if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28438$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028440$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28442$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028443 failed=0
28444 passed=0
28445 ac_ext=cpp
28446ac_cpp='$CXXCPP $CPPFLAGS'
28447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28450
28451
cristy8b350f62009-11-15 23:12:43 +000028452ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028453if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028454 passed=`expr $passed + 1`
28455else
28456 failed=`expr $failed + 1`
28457fi
28458
28459
cristy8b350f62009-11-15 23:12:43 +000028460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028461$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028462if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028463 $as_echo_n "(cached) " >&6
28464else
28465 ac_check_lib_save_LIBS=$LIBS
28466LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028468/* end confdefs.h. */
28469
28470/* Override any GCC internal prototype to avoid an error.
28471 Use char because int might match the return type of a GCC
28472 builtin and then its argument prototype would still apply. */
28473#ifdef __cplusplus
28474extern "C"
28475#endif
28476char FPX_OpenImageByFilename ();
28477int
28478main ()
28479{
28480return FPX_OpenImageByFilename ();
28481 ;
28482 return 0;
28483}
28484_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028485if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028486 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28487else
cristy8b350f62009-11-15 23:12:43 +000028488 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028489fi
cristy8b350f62009-11-15 23:12:43 +000028490rm -f core conftest.err conftest.$ac_objext \
28491 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028492LIBS=$ac_check_lib_save_LIBS
28493fi
cristy8b350f62009-11-15 23:12:43 +000028494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028495$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028496if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028497 passed=`expr $passed + 1`
28498else
28499 failed=`expr $failed + 1`
28500fi
28501
28502 ac_ext=c
28503ac_cpp='$CPP $CPPFLAGS'
28504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28506ac_compiler_gnu=$ac_cv_c_compiler_gnu
28507
cristy8b350f62009-11-15 23:12:43 +000028508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028509$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28510 if test $passed -gt 0; then
28511 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28513$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028514 have_fpx='no (failed tests)'
28515 else
28516 FPX_LIBS='-lfpx'
28517
cristy8b350f62009-11-15 23:12:43 +000028518$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028519
cristyad38abe2012-12-23 23:03:21 +000028520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28521$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028522 have_fpx='yes'
28523 PERLMAINCC="$CXX"
28524 fi
28525 else
cristyad38abe2012-12-23 23:03:21 +000028526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28527$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028528 fi
28529fi
cristy73bd4a52010-10-05 11:24:23 +000028530 if test "$have_fpx" = 'yes'; then
28531 FPX_DELEGATE_TRUE=
28532 FPX_DELEGATE_FALSE='#'
28533else
28534 FPX_DELEGATE_TRUE='#'
28535 FPX_DELEGATE_FALSE=
28536fi
28537
cristy3ed852e2009-09-05 21:47:34 +000028538
28539
28540
28541#
28542# Check for fontconfig delegate library.
28543#
28544
28545# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028546if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028547 withval=$with_fontconfig; with_fontconfig=$withval
28548else
cristyfc3d0222012-02-07 15:05:57 +000028549 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028550fi
28551
28552
28553if test "$with_fontconfig" != 'yes'; then
28554 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28555fi
28556
28557have_fontconfig='no'
28558FONTCONFIG_CFLAGS=""
28559FONTCONFIG_LIBS=""
28560FONTCONFIG_PKG=""
28561if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28563$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028564
28565pkg_failed=no
28566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28567$as_echo_n "checking for FONTCONFIG... " >&6; }
28568
28569if test -n "$FONTCONFIG_CFLAGS"; then
28570 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28571 elif test -n "$PKG_CONFIG"; then
28572 if test -n "$PKG_CONFIG" && \
28573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28574 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28575 ac_status=$?
28576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28577 test $ac_status = 0; }; then
28578 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28579else
28580 pkg_failed=yes
28581fi
28582 else
28583 pkg_failed=untried
28584fi
28585if test -n "$FONTCONFIG_LIBS"; then
28586 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28587 elif test -n "$PKG_CONFIG"; then
28588 if test -n "$PKG_CONFIG" && \
28589 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28590 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28591 ac_status=$?
28592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28593 test $ac_status = 0; }; then
28594 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28595else
28596 pkg_failed=yes
28597fi
28598 else
28599 pkg_failed=untried
28600fi
28601
28602
28603
28604if test $pkg_failed = yes; then
28605
28606if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28607 _pkg_short_errors_supported=yes
28608else
28609 _pkg_short_errors_supported=no
28610fi
28611 if test $_pkg_short_errors_supported = yes; then
28612 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28613 else
28614 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28615 fi
28616 # Put the nasty error message in config.log where it belongs
28617 echo "$FONTCONFIG_PKG_ERRORS" >&5
28618
28619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28620$as_echo "no" >&6; }
28621 have_fontconfig=no
28622elif test $pkg_failed = untried; then
28623 have_fontconfig=no
28624else
28625 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28626 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28628$as_echo "yes" >&6; }
28629 have_fontconfig=yes
28630fi
cristyad38abe2012-12-23 23:03:21 +000028631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28632$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028633fi
28634
28635if test "$have_fontconfig" = 'yes'; then
28636
cristy8b350f62009-11-15 23:12:43 +000028637$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028638
cristyc6722092012-10-14 00:19:31 +000028639 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028640 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028641 fi
cristy3ed852e2009-09-05 21:47:34 +000028642fi
28643
cristy73bd4a52010-10-05 11:24:23 +000028644 if test "$have_fontconfig" = 'yes'; then
28645 FONTCONFIG_DELEGATE_TRUE=
28646 FONTCONFIG_DELEGATE_FALSE='#'
28647else
28648 FONTCONFIG_DELEGATE_TRUE='#'
28649 FONTCONFIG_DELEGATE_FALSE=
28650fi
28651
cristy3ed852e2009-09-05 21:47:34 +000028652
28653
28654
28655
28656#
cristy81beccd2011-10-03 18:17:24 +000028657# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028658#
28659
28660# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028661if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028662 withval=$with_freetype; with_freetype=$withval
28663else
28664 with_freetype='yes'
28665fi
28666
28667
cristy81beccd2011-10-03 18:17:24 +000028668
cristy3ed852e2009-09-05 21:47:34 +000028669if test "$with_freetype" != 'yes'; then
28670 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28671fi
28672
cristy81beccd2011-10-03 18:17:24 +000028673have_freetype='no'
28674FREETYPE_LIBS=''
28675if test "$with_freetype" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28677$as_echo "-------------------------------------------------------------" >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28679$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28681$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028682 failed=0
28683 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028684 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028685 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028686 freetype_config=''
28687 # Allow the user to specify the location of freetype.
28688 if test "$with_freetype" != 'yes'; then
28689 if test -x "${with_freetype}/bin/freetype-config"; then
28690 freetype_config="${with_freetype}/bin/freetype-config"
28691 elif test -x "${with_freetype}"; then
28692 freetype_config=${with_freetype}
28693 fi
28694 fi
28695 if test -z "$freetype_config"; then
28696 # Extract the first word of "freetype-config", so it can be a program name with args.
28697set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28699$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028700if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028701 $as_echo_n "(cached) " >&6
28702else
cristy98ca0f52011-10-08 23:19:10 +000028703 case $freetype_config in
28704 [\\/]* | ?:[\\/]*)
28705 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28706 ;;
28707 *)
28708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028709for as_dir in $PATH
28710do
28711 IFS=$as_save_IFS
28712 test -z "$as_dir" && as_dir=.
28713 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000028714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000028715 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28717 break 2
28718 fi
28719done
28720 done
28721IFS=$as_save_IFS
28722
cristy98ca0f52011-10-08 23:19:10 +000028723 ;;
28724esac
cristy81beccd2011-10-03 18:17:24 +000028725fi
cristy98ca0f52011-10-08 23:19:10 +000028726freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028727if test -n "$freetype_config"; then
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28729$as_echo "$freetype_config" >&6; }
28730else
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28732$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028733fi
28734
cristy98ca0f52011-10-08 23:19:10 +000028735 fi
28736 if test -n "$freetype_config"; then
28737 freetype_prefix=`${freetype_config} --prefix`
28738 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28739 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28740 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028741 fi
28742
28743 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028745$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28746if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28747 $as_echo_n "(cached) " >&6
28748else
28749 ac_check_lib_save_LIBS=$LIBS
28750LIBS="-lfreetype $LIBS"
28751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28752/* end confdefs.h. */
28753
28754/* Override any GCC internal prototype to avoid an error.
28755 Use char because int might match the return type of a GCC
28756 builtin and then its argument prototype would still apply. */
28757#ifdef __cplusplus
28758extern "C"
28759#endif
28760char FT_Init_FreeType ();
28761int
28762main ()
28763{
28764return FT_Init_FreeType ();
28765 ;
28766 return 0;
28767}
28768_ACEOF
28769if ac_fn_c_try_link "$LINENO"; then :
28770 ac_cv_lib_freetype_FT_Init_FreeType=yes
28771else
28772 ac_cv_lib_freetype_FT_Init_FreeType=no
28773fi
28774rm -f core conftest.err conftest.$ac_objext \
28775 conftest$ac_exeext conftest.$ac_ext
28776LIBS=$ac_check_lib_save_LIBS
28777fi
28778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28779$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28780if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28781 FREETYPE_LIBS='-lfreetype'
28782fi
28783
cristy98ca0f52011-10-08 23:19:10 +000028784 if test "$FREETYPE_LIBS" != ''; then
28785 passed=`expr $passed + 1`
28786 else
28787 failed=`expr $failed + 1`
28788 LDFLAGS="$PERSIST_LDFLAGS"
28789 fi
cristy81beccd2011-10-03 18:17:24 +000028790 fi
28791
28792 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28793if test "x$ac_cv_header_ft2build_h" = xyes; then :
28794 FT2BUILD_H='#include <ft2build.h>'
28795else
28796 ft2build=''
28797fi
28798
28799
28800 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28801"
28802if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28803 have_freetype_h='yes'
28804else
28805 have_freetype_h='no'
28806fi
28807
28808
cristy98ca0f52011-10-08 23:19:10 +000028809 if test "$have_freetype_h" = 'yes'; then
28810 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028811 else
cristy98ca0f52011-10-08 23:19:10 +000028812 failed=`expr $failed + 1`
28813 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028814 fi
28815
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28817$as_echo_n "checking if FreeType package is complete... " >&6; }
28818 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028819 if test $failed -gt 0; then
28820 FREETYPE_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000028821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28822$as_echo "no -- some components failed test" >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028823 have_freetype='no (failed tests)'
28824 else
28825 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028826
cristy8b350f62009-11-15 23:12:43 +000028827$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028828
cristy98ca0f52011-10-08 23:19:10 +000028829 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028830
28831$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28832
cristy81beccd2011-10-03 18:17:24 +000028833 fi
cristyad38abe2012-12-23 23:03:21 +000028834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28835$as_echo "yes" >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028836 have_freetype='yes'
28837 fi
cristy81beccd2011-10-03 18:17:24 +000028838 else
cristyad38abe2012-12-23 23:03:21 +000028839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28840$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028841 fi
28842fi
cristy73bd4a52010-10-05 11:24:23 +000028843 if test "$have_freetype" = 'yes'; then
28844 FREETYPE_DELEGATE_TRUE=
28845 FREETYPE_DELEGATE_FALSE='#'
28846else
28847 FREETYPE_DELEGATE_TRUE='#'
28848 FREETYPE_DELEGATE_FALSE=
28849fi
28850
cristy3ed852e2009-09-05 21:47:34 +000028851
28852
28853
cristy3ed852e2009-09-05 21:47:34 +000028854#
28855# Check for Ghostscript library or framework.
28856#
28857# Test for iapi.h & test for gsapi_new_instance in -lgs
28858# or -framework Ghostscript
28859
28860
28861# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028862if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028863 withval=$with_gslib; with_gslib=$withval
28864else
28865 with_gslib='no'
28866fi
28867
28868
cristyb7931f12009-09-25 10:22:21 +000028869gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028870if test "$with_gslib" != 'yes'; then
28871 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28872fi
28873
28874have_gslib='no'
28875GS_LIBS=''
28876if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28878$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028880$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28882$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000028883 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028884 failed=0
28885 passed=0
cristy8b350f62009-11-15 23:12:43 +000028886 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 +000028887if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028888 passed=`expr $passed + 1`
28889else
28890 failed=`expr $failed + 1`
28891fi
28892
28893
cristy8b350f62009-11-15 23:12:43 +000028894 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 +000028895if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028896 passed=`expr $passed + 1`
28897else
28898 failed=`expr $failed + 1`
28899fi
28900
28901
cristy73bd4a52010-10-05 11:24:23 +000028902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28903$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028904if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028905 $as_echo_n "(cached) " >&6
28906else
28907 ac_check_framework_save_LIBS=$LIBS
28908LIBS="-framework Ghostscript $LIBS"
28909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28910/* end confdefs.h. */
28911
28912/* Override any GCC internal prototype to avoid an error.
28913 Use char because int might match the return type of a GCC
28914 builtin and then its argument prototype would still apply. */
28915#ifdef __cplusplus
28916extern "C"
28917#endif
28918char gsapi_new_instance ();
28919int
28920main ()
28921{
28922return gsapi_new_instance ();
28923 ;
28924 return 0;
28925}
28926_ACEOF
28927if ac_fn_c_try_link "$LINENO"; then :
28928 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28929else
28930 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28931fi
28932rm -f core conftest.err conftest.$ac_objext \
28933 conftest$ac_exeext conftest.$ac_ext
28934LIBS=$ac_check_framework_save_LIBS
28935fi
28936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28937$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28938if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28939 framework=`expr $framework + 1`
28940else
28941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028942$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028943if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028944 $as_echo_n "(cached) " >&6
28945else
28946 ac_check_lib_save_LIBS=$LIBS
28947LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028949/* end confdefs.h. */
28950
28951/* Override any GCC internal prototype to avoid an error.
28952 Use char because int might match the return type of a GCC
28953 builtin and then its argument prototype would still apply. */
28954#ifdef __cplusplus
28955extern "C"
28956#endif
28957char gsapi_new_instance ();
28958int
28959main ()
28960{
28961return gsapi_new_instance ();
28962 ;
28963 return 0;
28964}
28965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028966if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028967 ac_cv_lib_gs_gsapi_new_instance=yes
28968else
cristy8b350f62009-11-15 23:12:43 +000028969 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028970fi
cristy8b350f62009-11-15 23:12:43 +000028971rm -f core conftest.err conftest.$ac_objext \
28972 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028973LIBS=$ac_check_lib_save_LIBS
28974fi
cristy8b350f62009-11-15 23:12:43 +000028975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028976$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028977if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028978 passed=`expr $passed + 1`
28979else
28980 failed=`expr $failed + 1`
28981fi
cristy73bd4a52010-10-05 11:24:23 +000028982
28983fi
cristy8b350f62009-11-15 23:12:43 +000028984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028985$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28986 if test $passed -gt 0; then
28987 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28989$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028990 have_gslib='no (failed tests)'
28991 else
28992 if test $framework -gt 0; then
28993 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028994 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000028995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
28996$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028997 else
cristyad38abe2012-12-23 23:03:21 +000028998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
28999$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029000 GS_LIBS='-lgs'
29001 fi
29002 LIBS="$GS_LIBS $LIBS"
29003
cristy8b350f62009-11-15 23:12:43 +000029004$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029005
29006 have_gslib='yes'
29007 fi
29008 else
cristyad38abe2012-12-23 23:03:21 +000029009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29010$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029011 fi
29012fi
cristy73bd4a52010-10-05 11:24:23 +000029013 if test "$have_gslib" = 'yes'; then
29014 GS_DELEGATE_TRUE=
29015 GS_DELEGATE_FALSE='#'
29016else
29017 GS_DELEGATE_TRUE='#'
29018 GS_DELEGATE_FALSE=
29019fi
29020
cristy3ed852e2009-09-05 21:47:34 +000029021
29022
29023# Set default font search path
29024
29025# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029026if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029027 withval=$with_fontpath; with_fontpath=$withval
29028else
29029 with_fontpath=''
29030fi
29031
29032
29033if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29034 with_fontpath=''
29035else
29036
29037cat >>confdefs.h <<_ACEOF
29038#define MAGICK_FONT_PATH "$with_fontpath"
29039_ACEOF
29040
29041fi
29042if test "$with_fontpath=" != ''; then
29043 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29044fi
29045
29046# Set Ghostscript font directory
29047
29048# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029049if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029050 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29051else
29052 with_gs_font_dir='default'
29053fi
29054
29055
29056if test "$with_gs_font_dir" != 'default'; then
29057 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29058fi
29059
29060
29061#
29062# Check for GVC delegate library.
29063#
29064
29065# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029066if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029067 withval=$with_gvc; with_gvc=$withval
29068else
cristy1b70dc82012-07-01 23:15:05 +000029069 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029070fi
29071
29072
29073if test "$with_gvc" != 'yes'; then
29074 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29075fi
29076
29077GVC_PKG=""
29078if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29080$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029081
29082pkg_failed=no
29083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29084$as_echo_n "checking for GVC... " >&6; }
29085
29086if test -n "$GVC_CFLAGS"; then
29087 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29088 elif test -n "$PKG_CONFIG"; then
29089 if test -n "$PKG_CONFIG" && \
29090 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29091 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29092 ac_status=$?
29093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29094 test $ac_status = 0; }; then
29095 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29096else
29097 pkg_failed=yes
29098fi
29099 else
29100 pkg_failed=untried
29101fi
29102if test -n "$GVC_LIBS"; then
29103 pkg_cv_GVC_LIBS="$GVC_LIBS"
29104 elif test -n "$PKG_CONFIG"; then
29105 if test -n "$PKG_CONFIG" && \
29106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29107 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29108 ac_status=$?
29109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29110 test $ac_status = 0; }; then
29111 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29112else
29113 pkg_failed=yes
29114fi
29115 else
29116 pkg_failed=untried
29117fi
29118
29119
29120
29121if test $pkg_failed = yes; then
29122
29123if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29124 _pkg_short_errors_supported=yes
29125else
29126 _pkg_short_errors_supported=no
29127fi
29128 if test $_pkg_short_errors_supported = yes; then
29129 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29130 else
29131 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29132 fi
29133 # Put the nasty error message in config.log where it belongs
29134 echo "$GVC_PKG_ERRORS" >&5
29135
29136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29137$as_echo "no" >&6; }
29138 have_gvc=no
29139elif test $pkg_failed = untried; then
29140 have_gvc=no
29141else
29142 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29143 GVC_LIBS=$pkg_cv_GVC_LIBS
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29145$as_echo "yes" >&6; }
29146 have_gvc=yes
29147fi
cristyad38abe2012-12-23 23:03:21 +000029148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29149$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029150fi
29151
29152if test "$have_gvc" = 'yes'; then
29153
cristy8b350f62009-11-15 23:12:43 +000029154$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029155
cristyc6722092012-10-14 00:19:31 +000029156 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029157 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29158 fi
29159fi
29160
cristy73bd4a52010-10-05 11:24:23 +000029161 if test "$have_gvc" = 'yes'; then
29162 GVC_DELEGATE_TRUE=
29163 GVC_DELEGATE_FALSE='#'
29164else
29165 GVC_DELEGATE_TRUE='#'
29166 GVC_DELEGATE_FALSE=
29167fi
29168
cristy3ed852e2009-09-05 21:47:34 +000029169
29170
29171
29172
29173#
29174# Check for JBIG delegate library.
29175#
29176
29177
29178# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029179if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029180 withval=$with_jbig; with_jbig=$withval
29181else
29182 with_jbig='yes'
29183fi
29184
29185
29186have_jbig='no'
29187JBIG_LIBS=''
29188if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29190$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029192$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29194$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029195 failed=0
29196 passed=0
cristy8b350f62009-11-15 23:12:43 +000029197 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029198if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029199 passed=`expr $passed + 1`
29200else
29201 failed=`expr $failed + 1`
29202fi
29203
29204
cristy8b350f62009-11-15 23:12:43 +000029205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029206$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029207if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029208 $as_echo_n "(cached) " >&6
29209else
29210 ac_check_lib_save_LIBS=$LIBS
29211LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029213/* end confdefs.h. */
29214
29215/* Override any GCC internal prototype to avoid an error.
29216 Use char because int might match the return type of a GCC
29217 builtin and then its argument prototype would still apply. */
29218#ifdef __cplusplus
29219extern "C"
29220#endif
29221char jbg_dec_init ();
29222int
29223main ()
29224{
29225return jbg_dec_init ();
29226 ;
29227 return 0;
29228}
29229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029230if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029231 ac_cv_lib_jbig_jbg_dec_init=yes
29232else
cristy8b350f62009-11-15 23:12:43 +000029233 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029234fi
cristy8b350f62009-11-15 23:12:43 +000029235rm -f core conftest.err conftest.$ac_objext \
29236 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029237LIBS=$ac_check_lib_save_LIBS
29238fi
cristy8b350f62009-11-15 23:12:43 +000029239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029240$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029241if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029242 passed=`expr $passed + 1`
29243else
29244 failed=`expr $failed + 1`
29245fi
29246
cristy8b350f62009-11-15 23:12:43 +000029247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029248$as_echo_n "checking if JBIG package is complete... " >&6; }
29249 if test $passed -gt 0; then
29250 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29252$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029253 have_jbig='no (failed tests)'
29254 else
29255 JBIG_LIBS='-ljbig'
29256 LIBS="$JBIG_LIBS $LIBS"
29257
cristy8b350f62009-11-15 23:12:43 +000029258$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029259
cristyad38abe2012-12-23 23:03:21 +000029260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29261$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029262 have_jbig='yes'
29263 fi
29264 else
cristyad38abe2012-12-23 23:03:21 +000029265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29266$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029267 fi
29268fi
cristy73bd4a52010-10-05 11:24:23 +000029269 if test "$have_jbig" = 'yes'; then
29270 JBIG_DELEGATE_TRUE=
29271 JBIG_DELEGATE_FALSE='#'
29272else
29273 JBIG_DELEGATE_TRUE='#'
29274 JBIG_DELEGATE_FALSE=
29275fi
29276
cristy3ed852e2009-09-05 21:47:34 +000029277
29278
29279
29280#
29281# Check for JPEG delegate library.
29282#
29283
29284# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029285if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029286 withval=$with_jpeg; with_jpeg=$withval
29287else
29288 with_jpeg='yes'
29289fi
29290
29291
29292if test "$with_jpeg" != 'yes'; then
29293 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29294fi
29295
29296have_jpeg='no'
29297JPEG_LIBS=''
29298if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29300$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029302$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29304$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029305 failed=0
29306 passed=0
cristy8b350f62009-11-15 23:12:43 +000029307 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029308if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029309 passed=`expr $passed + 1`
29310else
29311 failed=`expr $failed + 1`
29312fi
29313
29314
cristy8b350f62009-11-15 23:12:43 +000029315 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029316if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029317 passed=`expr $passed + 1`
29318else
29319 failed=`expr $failed + 1`
29320fi
29321
29322
cristy8b350f62009-11-15 23:12:43 +000029323 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029324if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029325 passed=`expr $passed + 1`
29326else
29327 failed=`expr $failed + 1`
29328fi
29329
29330
cristy8b350f62009-11-15 23:12:43 +000029331 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029332if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029333 passed=`expr $passed + 1`
29334else
29335 failed=`expr $failed + 1`
29336fi
29337
29338
cristy8b350f62009-11-15 23:12:43 +000029339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029340$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029341if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029342 $as_echo_n "(cached) " >&6
29343else
29344 ac_check_lib_save_LIBS=$LIBS
29345LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029347/* end confdefs.h. */
29348
29349/* Override any GCC internal prototype to avoid an error.
29350 Use char because int might match the return type of a GCC
29351 builtin and then its argument prototype would still apply. */
29352#ifdef __cplusplus
29353extern "C"
29354#endif
29355char jpeg_read_header ();
29356int
29357main ()
29358{
29359return jpeg_read_header ();
29360 ;
29361 return 0;
29362}
29363_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029364if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029365 ac_cv_lib_jpeg_jpeg_read_header=yes
29366else
cristy8b350f62009-11-15 23:12:43 +000029367 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029368fi
cristy8b350f62009-11-15 23:12:43 +000029369rm -f core conftest.err conftest.$ac_objext \
29370 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029371LIBS=$ac_check_lib_save_LIBS
29372fi
cristy8b350f62009-11-15 23:12:43 +000029373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029374$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029375if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029376 passed=`expr $passed + 1`
29377else
29378 failed=`expr $failed + 1`
29379fi
29380
29381
29382# Test for compatible JPEG library
29383if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029385$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029386if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029387 $as_echo_n "(cached) " >&6
29388else
cristy8b350f62009-11-15 23:12:43 +000029389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029390/* end confdefs.h. */
29391#include <stdio.h>
29392#include <stdlib.h>
29393#include <jpeglib.h>
29394
29395int
29396main ()
29397{
29398
29399#if JPEG_LIB_VERSION < 62
29400#error IJG JPEG library must be version 6b or newer!
29401#endif
29402return 0;
29403
29404 ;
29405 return 0;
29406}
29407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029408if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029409 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29410else
cristy8b350f62009-11-15 23:12:43 +000029411 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029412fi
cristy3ed852e2009-09-05 21:47:34 +000029413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29414fi
cristy8b350f62009-11-15 23:12:43 +000029415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029416$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29417fi
cristy8b350f62009-11-15 23:12:43 +000029418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029419$as_echo_n "checking if JPEG package is complete... " >&6; }
29420 if test $passed -gt 0; then
29421 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29423$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029424 have_jpeg='no (failed tests)'
29425 else
29426 JPEG_LIBS='-ljpeg'
29427 LIBS="$JPEG_LIBS $LIBS"
29428
cristy8b350f62009-11-15 23:12:43 +000029429$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029430
cristyad38abe2012-12-23 23:03:21 +000029431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29432$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029433 have_jpeg='yes'
29434 fi
29435 else
cristyad38abe2012-12-23 23:03:21 +000029436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29437$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029438 fi
29439fi
cristy73bd4a52010-10-05 11:24:23 +000029440 if test "$have_jpeg" = 'yes'; then
29441 JPEG_DELEGATE_TRUE=
29442 JPEG_DELEGATE_FALSE='#'
29443else
29444 JPEG_DELEGATE_TRUE='#'
29445 JPEG_DELEGATE_FALSE=
29446fi
29447
cristy3ed852e2009-09-05 21:47:34 +000029448
29449
29450
29451#
29452# Check for JPEG Version 2 delegate library.
29453#
29454
29455# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029456if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029457 withval=$with_jp2; with_jp2=$withval
29458else
29459 with_jp2='yes'
29460fi
29461
29462
29463if test "$with_jp2" != 'yes'; then
29464 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29465fi
29466
29467have_jp2='no'
29468JP2_LIBS=''
29469if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29471$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029473$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29475$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029476 failed=0
29477 passed=0
cristy8b350f62009-11-15 23:12:43 +000029478 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 +000029479if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029480 passed=`expr $passed + 1`
29481else
29482 failed=`expr $failed + 1`
29483fi
29484
29485
cristy8b350f62009-11-15 23:12:43 +000029486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029487$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029488if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029489 $as_echo_n "(cached) " >&6
29490else
29491 ac_check_lib_save_LIBS=$LIBS
29492LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029494/* end confdefs.h. */
29495
29496/* Override any GCC internal prototype to avoid an error.
29497 Use char because int might match the return type of a GCC
29498 builtin and then its argument prototype would still apply. */
29499#ifdef __cplusplus
29500extern "C"
29501#endif
29502char jas_stream_fopen ();
29503int
29504main ()
29505{
29506return jas_stream_fopen ();
29507 ;
29508 return 0;
29509}
29510_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029511if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029512 ac_cv_lib_jasper_jas_stream_fopen=yes
29513else
cristy8b350f62009-11-15 23:12:43 +000029514 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029515fi
cristy8b350f62009-11-15 23:12:43 +000029516rm -f core conftest.err conftest.$ac_objext \
29517 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029518LIBS=$ac_check_lib_save_LIBS
29519fi
cristy8b350f62009-11-15 23:12:43 +000029520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029521$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029522if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029523 passed=`expr $passed + 1`
29524else
29525 failed=`expr $failed + 1`
29526fi
29527
cristy8b350f62009-11-15 23:12:43 +000029528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029529$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29530 if test $passed -gt 0; then
29531 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29533$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029534 have_jp2='no (failed tests)'
29535 else
29536 JP2_LIBS='-ljasper'
29537 LIBS="$JP2_LIBS $LIBS"
29538
cristy8b350f62009-11-15 23:12:43 +000029539$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029540
cristyad38abe2012-12-23 23:03:21 +000029541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29542$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029543 have_jp2='yes'
29544 fi
29545 else
cristyad38abe2012-12-23 23:03:21 +000029546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29547$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029548 fi
29549fi
cristy73bd4a52010-10-05 11:24:23 +000029550 if test "$have_jp2" = 'yes'; then
29551 JP2_DELEGATE_TRUE=
29552 JP2_DELEGATE_FALSE='#'
29553else
29554 JP2_DELEGATE_TRUE='#'
29555 JP2_DELEGATE_FALSE=
29556fi
29557
cristy3ed852e2009-09-05 21:47:34 +000029558
29559
29560
29561#
29562# Check for LCMS delegate library.
29563#
cristy71203402010-06-18 13:12:03 +000029564# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029565
29566# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029567if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029568 withval=$with_lcms; with_lcms=$withval
29569else
29570 with_lcms='yes'
29571fi
29572
cristy71203402010-06-18 13:12:03 +000029573if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029574 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29575fi
29576
cristy71203402010-06-18 13:12:03 +000029577# Disable LCMS2.
29578
29579# Check whether --with-lcms2 was given.
29580if test "${with_lcms2+set}" = set; then :
29581 withval=$with_lcms2; with_lcms2=$withval
29582else
29583 with_lcms2='yes'
29584fi
29585
29586if test "$with_lcms2" != 'yes' ; then
29587 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29588fi
29589
29590have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029591LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029592if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29594$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29596$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29598$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029599 failed=0
29600 passed=0
29601 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029602
29603 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029604 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029605if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029606 have_lcms_header='yes'
29607fi
29608
29609
29610 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029611
29612$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29613
cristy71203402010-06-18 13:12:03 +000029614 passed=`expr $passed + 1`
29615 fi
29616
29617 # Check for <lcms2/lcms2.h)
29618 if test "$have_lcms_header" != 'yes'; then
29619 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 +000029620if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029621 have_lcms_header='yes'
29622fi
29623
29624
cristy71203402010-06-18 13:12:03 +000029625 if test "$have_lcms_header" = 'yes'; then
29626 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029627
cristy71203402010-06-18 13:12:03 +000029628$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029629
cristy71203402010-06-18 13:12:03 +000029630 fi
cristyd09bcf92010-03-25 03:04:45 +000029631 fi
cristy71203402010-06-18 13:12:03 +000029632
29633 # Failed to find lcms header?
29634 if test "$have_lcms_header" != 'yes'; then
29635 failed=`expr $failed + 1`
29636 fi
29637
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29639$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029640if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029641 $as_echo_n "(cached) " >&6
29642else
29643 ac_check_lib_save_LIBS=$LIBS
29644LIBS="-llcms2 $LIBS"
29645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29646/* end confdefs.h. */
29647
29648/* Override any GCC internal prototype to avoid an error.
29649 Use char because int might match the return type of a GCC
29650 builtin and then its argument prototype would still apply. */
29651#ifdef __cplusplus
29652extern "C"
29653#endif
cristy71203402010-06-18 13:12:03 +000029654char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029655int
29656main ()
29657{
cristy71203402010-06-18 13:12:03 +000029658return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029659 ;
29660 return 0;
29661}
29662_ACEOF
29663if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029664 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029665else
cristy71203402010-06-18 13:12:03 +000029666 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029667fi
29668rm -f core conftest.err conftest.$ac_objext \
29669 conftest$ac_exeext conftest.$ac_ext
29670LIBS=$ac_check_lib_save_LIBS
29671fi
cristy71203402010-06-18 13:12:03 +000029672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29673$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029674if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029675 passed=`expr $passed + 1`
29676else
29677 failed=`expr $failed + 1`
29678fi
29679
cristy71203402010-06-18 13:12:03 +000029680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29681$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029682 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029683 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29685$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029686 have_lcms2='no (failed tests)'
29687 else
29688 LCMS_LIBS='-llcms2'
29689 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29691$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029692 have_lcms2='yes'
29693 fi
cristyd09bcf92010-03-25 03:04:45 +000029694 else
cristyad38abe2012-12-23 23:03:21 +000029695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29696$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029697 fi
29698fi
29699
cristy71203402010-06-18 13:12:03 +000029700#
29701# Check for LCMS v1 (1.11 or later)
29702#
29703if test $have_lcms2 = 'yes'; then
29704 with_lcms='no'
29705fi
29706
29707have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029708if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29710$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29712$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29714$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029715 failed=0
29716 passed=0
29717 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029718
29719 # Check for <lcms.h>
29720 if test "$have_lcms_header" != 'yes'; then
29721 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029722if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029723 have_lcms_header='yes'
29724fi
29725
29726
cristy71203402010-06-18 13:12:03 +000029727 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029728 passed=`expr $passed + 1`
29729
cristy8b350f62009-11-15 23:12:43 +000029730$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029731
cristy71203402010-06-18 13:12:03 +000029732 fi
29733 fi
29734
29735 # Check for <lcms/lcms.h>
29736 if test "$have_lcms_header" != 'yes'; then
29737 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 +000029738if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029739 have_lcms_header='yes'
29740fi
29741
29742
cristy71203402010-06-18 13:12:03 +000029743 if test "$have_lcms_header" = 'yes'; then
29744 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029745
cristy8b350f62009-11-15 23:12:43 +000029746$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029747
cristy71203402010-06-18 13:12:03 +000029748 fi
cristy3ed852e2009-09-05 21:47:34 +000029749 fi
cristy71203402010-06-18 13:12:03 +000029750
29751 # Failed to find lcms header?
29752 if test "$have_lcms_header" != 'yes'; then
29753 failed=`expr $failed + 1`
29754 fi
29755
29756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29757$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029758if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029759 $as_echo_n "(cached) " >&6
29760else
29761 ac_check_lib_save_LIBS=$LIBS
29762LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029764/* end confdefs.h. */
29765
29766/* Override any GCC internal prototype to avoid an error.
29767 Use char because int might match the return type of a GCC
29768 builtin and then its argument prototype would still apply. */
29769#ifdef __cplusplus
29770extern "C"
29771#endif
cristy71203402010-06-18 13:12:03 +000029772char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029773int
29774main ()
29775{
cristy71203402010-06-18 13:12:03 +000029776return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029777 ;
29778 return 0;
29779}
29780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029781if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029782 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029783else
cristy71203402010-06-18 13:12:03 +000029784 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029785fi
cristy8b350f62009-11-15 23:12:43 +000029786rm -f core conftest.err conftest.$ac_objext \
29787 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029788LIBS=$ac_check_lib_save_LIBS
29789fi
cristy71203402010-06-18 13:12:03 +000029790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29791$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029792if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029793 passed=`expr $passed + 1`
29794else
29795 failed=`expr $failed + 1`
29796fi
29797
cristy8b350f62009-11-15 23:12:43 +000029798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029799$as_echo_n "checking if LCMS package is complete... " >&6; }
29800 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029801 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29803$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029804 have_lcms='no (failed tests)'
29805 else
29806 LCMS_LIBS='-llcms'
29807 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29809$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029810 have_lcms='yes'
29811 fi
cristy3ed852e2009-09-05 21:47:34 +000029812 else
cristyad38abe2012-12-23 23:03:21 +000029813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29814$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029815 fi
29816fi
cristy71203402010-06-18 13:12:03 +000029817
cristy73bd4a52010-10-05 11:24:23 +000029818 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29819 LCMS_DELEGATE_TRUE=
29820 LCMS_DELEGATE_FALSE='#'
29821else
29822 LCMS_DELEGATE_TRUE='#'
29823 LCMS_DELEGATE_FALSE=
29824fi
29825
cristy71203402010-06-18 13:12:03 +000029826if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29827
29828$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29829
29830fi
29831
cristy3ed852e2009-09-05 21:47:34 +000029832
29833
29834
29835#
29836# Check for the LQR (Liquid Rescale) delegate library.
29837#
29838
29839# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029840if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029841 withval=$with_lqr; with_lqr=$withval
29842else
29843 with_lqr='yes'
29844fi
29845
29846
29847if test "$with_lqr" != 'yes'; then
29848 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29849fi
29850
29851have_lqr='no'
29852LQR_CFLAGS=""
29853LQR_LIBS=""
29854LQR_PKG=""
29855if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29857$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029858
29859pkg_failed=no
29860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29861$as_echo_n "checking for LQR... " >&6; }
29862
29863if test -n "$LQR_CFLAGS"; then
29864 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29865 elif test -n "$PKG_CONFIG"; then
29866 if test -n "$PKG_CONFIG" && \
29867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29868 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29869 ac_status=$?
29870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29871 test $ac_status = 0; }; then
29872 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29873else
29874 pkg_failed=yes
29875fi
29876 else
29877 pkg_failed=untried
29878fi
29879if test -n "$LQR_LIBS"; then
29880 pkg_cv_LQR_LIBS="$LQR_LIBS"
29881 elif test -n "$PKG_CONFIG"; then
29882 if test -n "$PKG_CONFIG" && \
29883 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29884 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29885 ac_status=$?
29886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29887 test $ac_status = 0; }; then
29888 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29889else
29890 pkg_failed=yes
29891fi
29892 else
29893 pkg_failed=untried
29894fi
29895
29896
29897
29898if test $pkg_failed = yes; then
29899
29900if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29901 _pkg_short_errors_supported=yes
29902else
29903 _pkg_short_errors_supported=no
29904fi
29905 if test $_pkg_short_errors_supported = yes; then
29906 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29907 else
29908 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29909 fi
29910 # Put the nasty error message in config.log where it belongs
29911 echo "$LQR_PKG_ERRORS" >&5
29912
29913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29914$as_echo "no" >&6; }
29915 have_lqr=no
29916elif test $pkg_failed = untried; then
29917 have_lqr=no
29918else
29919 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29920 LQR_LIBS=$pkg_cv_LQR_LIBS
29921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29922$as_echo "yes" >&6; }
29923 have_lqr=yes
29924fi
cristyad38abe2012-12-23 23:03:21 +000029925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29926$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029927fi
29928
29929if test "$have_lqr" = 'yes'; then
29930
cristy8b350f62009-11-15 23:12:43 +000029931$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029932
29933 CFLAGS="$LQR_CFLAGS $CFLAGS"
29934fi
29935
cristy73bd4a52010-10-05 11:24:23 +000029936 if test "$have_lqr" = 'yes'; then
29937 LQR_DELEGATE_TRUE=
29938 LQR_DELEGATE_FALSE='#'
29939else
29940 LQR_DELEGATE_TRUE='#'
29941 LQR_DELEGATE_FALSE=
29942fi
29943
cristy3ed852e2009-09-05 21:47:34 +000029944
29945
29946
29947
cristy81beccd2011-10-03 18:17:24 +000029948# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000029949
29950# Check whether --with-lzma was given.
29951if test "${with_lzma+set}" = set; then :
29952 withval=$with_lzma; with_lzma=$withval
29953else
29954 with_lzma='yes'
29955fi
29956
cristy81beccd2011-10-03 18:17:24 +000029957if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000029958 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29959fi
29960
cristyb94e5002011-11-14 13:20:10 +000029961LZMA_PKG=""
29962if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29964$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000029965
29966pkg_failed=no
29967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000029968$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000029969
29970if test -n "$LZMA_CFLAGS"; then
29971 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
29972 elif test -n "$PKG_CONFIG"; then
29973 if test -n "$PKG_CONFIG" && \
29974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
29975 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
29976 ac_status=$?
29977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29978 test $ac_status = 0; }; then
29979 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
29980else
29981 pkg_failed=yes
29982fi
29983 else
29984 pkg_failed=untried
29985fi
29986if test -n "$LZMA_LIBS"; then
29987 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
29988 elif test -n "$PKG_CONFIG"; then
29989 if test -n "$PKG_CONFIG" && \
29990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
29991 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
29992 ac_status=$?
29993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29994 test $ac_status = 0; }; then
29995 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
29996else
29997 pkg_failed=yes
29998fi
29999 else
30000 pkg_failed=untried
30001fi
30002
30003
30004
30005if test $pkg_failed = yes; then
30006
30007if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30008 _pkg_short_errors_supported=yes
30009else
30010 _pkg_short_errors_supported=no
30011fi
30012 if test $_pkg_short_errors_supported = yes; then
30013 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30014 else
30015 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30016 fi
30017 # Put the nasty error message in config.log where it belongs
30018 echo "$LZMA_PKG_ERRORS" >&5
30019
30020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30021$as_echo "no" >&6; }
30022 have_lzma=no
30023elif test $pkg_failed = untried; then
30024 have_lzma=no
30025else
30026 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30027 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30029$as_echo "yes" >&6; }
30030 have_lzma=yes
30031fi
cristyad38abe2012-12-23 23:03:21 +000030032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30033$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030034fi
30035
cristyb94e5002011-11-14 13:20:10 +000030036if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030037
30038$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30039
cristyc6722092012-10-14 00:19:31 +000030040 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030041 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030042 fi
cristyfbb0ef02010-12-19 02:32:11 +000030043fi
cristyb94e5002011-11-14 13:20:10 +000030044
cristyfbb0ef02010-12-19 02:32:11 +000030045 if test "$have_lzma" = 'yes'; then
30046 LZMA_DELEGATE_TRUE=
30047 LZMA_DELEGATE_FALSE='#'
30048else
30049 LZMA_DELEGATE_TRUE='#'
30050 LZMA_DELEGATE_FALSE=
30051fi
30052
30053
30054
30055
cristyb94e5002011-11-14 13:20:10 +000030056
cristy3ed852e2009-09-05 21:47:34 +000030057#
30058# Check for the OpenEXR delegate library.
30059#
30060
30061# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030062if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030063 withval=$with_openexr; with_openexr=$withval
30064else
30065 with_openexr='yes'
30066fi
30067
30068
30069if test "$with_openexr" != 'yes'; then
30070 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30071fi
30072
30073have_openexr='no'
30074OPENEXR_CFLAGS=""
30075OPENEXR_LIBS=""
30076OPENEXR_PKG=""
30077if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30079$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030080
30081pkg_failed=no
30082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30083$as_echo_n "checking for OPENEXR... " >&6; }
30084
30085if test -n "$OPENEXR_CFLAGS"; then
30086 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30087 elif test -n "$PKG_CONFIG"; then
30088 if test -n "$PKG_CONFIG" && \
30089 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30090 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30091 ac_status=$?
30092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30093 test $ac_status = 0; }; then
30094 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30095else
30096 pkg_failed=yes
30097fi
30098 else
30099 pkg_failed=untried
30100fi
30101if test -n "$OPENEXR_LIBS"; then
30102 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30103 elif test -n "$PKG_CONFIG"; then
30104 if test -n "$PKG_CONFIG" && \
30105 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30106 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30107 ac_status=$?
30108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30109 test $ac_status = 0; }; then
30110 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30111else
30112 pkg_failed=yes
30113fi
30114 else
30115 pkg_failed=untried
30116fi
30117
30118
30119
30120if test $pkg_failed = yes; then
30121
30122if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30123 _pkg_short_errors_supported=yes
30124else
30125 _pkg_short_errors_supported=no
30126fi
30127 if test $_pkg_short_errors_supported = yes; then
30128 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30129 else
30130 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30131 fi
30132 # Put the nasty error message in config.log where it belongs
30133 echo "$OPENEXR_PKG_ERRORS" >&5
30134
30135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30136$as_echo "no" >&6; }
30137 have_openexr=no
30138elif test $pkg_failed = untried; then
30139 have_openexr=no
30140else
30141 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30142 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30144$as_echo "yes" >&6; }
30145 have_openexr=yes
30146fi
cristyad38abe2012-12-23 23:03:21 +000030147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30148$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030149fi
30150
30151if test "$have_openexr" = 'yes'; then
30152
cristy8b350f62009-11-15 23:12:43 +000030153$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030154
cristyc6722092012-10-14 00:19:31 +000030155 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030156 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30157 fi
30158fi
30159
cristy73bd4a52010-10-05 11:24:23 +000030160 if test "$have_openexr" = 'yes'; then
30161 OPENEXR_DELEGATE_TRUE=
30162 OPENEXR_DELEGATE_FALSE='#'
30163else
30164 OPENEXR_DELEGATE_TRUE='#'
30165 OPENEXR_DELEGATE_FALSE=
30166fi
30167
cristy3ed852e2009-09-05 21:47:34 +000030168
30169
30170
30171
30172#
cristy41cbe8a2011-10-27 01:35:18 +000030173# Check for PANGO delegate library.
30174#
30175
30176# Check whether --with-pango was given.
30177if test "${with_pango+set}" = set; then :
30178 withval=$with_pango; with_pango=$withval
30179else
cristyfc3d0222012-02-07 15:05:57 +000030180 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030181fi
30182
30183
30184if test "$with_pango" != 'yes'; then
30185 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30186fi
30187
30188have_pango='no'
cristya054b762012-03-26 23:16:00 +000030189have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030190PANGO_CFLAGS=""
30191PANGO_LIBS=""
30192PANGO_PKG=""
30193if test "x$with_pango" = "xyes"; then
30194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30195$as_echo "-------------------------------------------------------------" >&6; }
30196
30197pkg_failed=no
30198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30199$as_echo_n "checking for PANGO... " >&6; }
30200
30201if test -n "$PANGO_CFLAGS"; then
30202 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30203 elif test -n "$PKG_CONFIG"; then
30204 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030205 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30206 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030207 ac_status=$?
30208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30209 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030210 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030211else
30212 pkg_failed=yes
30213fi
30214 else
30215 pkg_failed=untried
30216fi
30217if test -n "$PANGO_LIBS"; then
30218 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30219 elif test -n "$PKG_CONFIG"; then
30220 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030221 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30222 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030223 ac_status=$?
30224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30225 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030226 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030227else
30228 pkg_failed=yes
30229fi
30230 else
30231 pkg_failed=untried
30232fi
30233
30234
30235
30236if test $pkg_failed = yes; then
30237
30238if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30239 _pkg_short_errors_supported=yes
30240else
30241 _pkg_short_errors_supported=no
30242fi
30243 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030244 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030245 else
cristya054b762012-03-26 23:16:00 +000030246 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030247 fi
30248 # Put the nasty error message in config.log where it belongs
30249 echo "$PANGO_PKG_ERRORS" >&5
30250
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30252$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030253 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030254elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030255 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030256else
30257 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30258 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30260$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030261 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030262fi
30263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30264$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030265
30266pkg_failed=no
30267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30268$as_echo_n "checking for PANGO... " >&6; }
30269
30270if test -n "$PANGO_CFLAGS"; then
30271 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30272 elif test -n "$PKG_CONFIG"; then
30273 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030274 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30275 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030276 ac_status=$?
30277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30278 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030279 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030280else
30281 pkg_failed=yes
30282fi
30283 else
30284 pkg_failed=untried
30285fi
30286if test -n "$PANGO_LIBS"; then
30287 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30288 elif test -n "$PKG_CONFIG"; then
30289 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030290 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30291 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030292 ac_status=$?
30293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30294 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030295 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030296else
30297 pkg_failed=yes
30298fi
30299 else
30300 pkg_failed=untried
30301fi
30302
30303
30304
30305if test $pkg_failed = yes; then
30306
30307if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30308 _pkg_short_errors_supported=yes
30309else
30310 _pkg_short_errors_supported=no
30311fi
30312 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030313 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030314 else
cristy2542fc62011-12-06 17:50:25 +000030315 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030316 fi
30317 # Put the nasty error message in config.log where it belongs
30318 echo "$PANGO_PKG_ERRORS" >&5
30319
30320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30321$as_echo "no" >&6; }
30322 have_pango=no
30323elif test $pkg_failed = untried; then
30324 have_pango=no
30325else
30326 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30327 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30329$as_echo "yes" >&6; }
30330 have_pango=yes
30331fi
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30333$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030334fi
30335
30336if test "$have_pango" = 'yes'; then
30337
30338$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30339
cristyc6722092012-10-14 00:19:31 +000030340 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030341 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30342 fi
30343fi
30344
cristya054b762012-03-26 23:16:00 +000030345if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030346
cristya054b762012-03-26 23:16:00 +000030347$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030348
cristyc6722092012-10-14 00:19:31 +000030349 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030350 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030351 fi
30352fi
30353
30354 if test "$have_pango" = 'yes'; then
30355 PANGO_DELEGATE_TRUE=
30356 PANGO_DELEGATE_FALSE='#'
30357else
30358 PANGO_DELEGATE_TRUE='#'
30359 PANGO_DELEGATE_FALSE=
30360fi
30361
cristya054b762012-03-26 23:16:00 +000030362 if test "$have_pangocairo" = 'yes'; then
30363 PANGOCAIRO_DELEGATE_TRUE=
30364 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030365else
cristya054b762012-03-26 23:16:00 +000030366 PANGOCAIRO_DELEGATE_TRUE='#'
30367 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030368fi
30369
30370
30371
30372
30373
30374#
cristy3ed852e2009-09-05 21:47:34 +000030375# Check for PNG delegate library.
30376#
30377
30378# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030379if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030380 withval=$with_png; with_png=$withval
30381else
30382 with_png='yes'
30383fi
30384
30385
30386if test "$with_png" != 'yes'; then
30387 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30388fi
30389
cristy81beccd2011-10-03 18:17:24 +000030390have_png='no'
30391PNG_LIBS=''
30392
30393if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30395$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30397$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30399$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030400 failed=0
30401 passed=0
30402 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30403if test "x$ac_cv_header_png_h" = xyes; then :
30404 passed=`expr $passed + 1`
30405else
30406 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030407fi
30408
cristy81beccd2011-10-03 18:17:24 +000030409
30410
30411 if test $passed -gt 0; then
30412 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030413 if test "$have_png" = 'no' ; then
30414 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030415 pnglib='png'
30416 else
30417 pnglib="png1${var}"
30418 fi
30419
30420# Test for compatible LIBPNG library
30421 failed=0
30422 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030423 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030424 if test "${pnglib}" != 'png' ; then
30425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30426$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30428/* end confdefs.h. */
30429#include <stdio.h>
30430#include <stdlib.h>
30431#include <png.h>
30432
30433int
30434main ()
30435{
30436
30437#if PNG_LIBPNG_VER_MINOR != ${var}
30438#error LIBPNG library must be version 1${var}!
30439Kaboom, Kaboom
30440#endif
30441return 0;
30442
30443 ;
30444 return 0;
30445}
30446_ACEOF
30447if ac_fn_c_try_compile "$LINENO"; then :
30448 ac_cv_libpng_ok='yes'
30449else
30450 ac_cv_libpng_ok='no'
30451fi
30452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30453 if test "$ac_cv_libpng_ok" = 'yes' ; then
30454 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30456$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030457 else
30458 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30460$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030461 fi
30462 else
30463 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30465$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030466 fi
30467 fi
30468
30469 if test $passed -gt 0 -a $failed -le 0; then
30470 if test "1${var}" = '15' ; then
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30472$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30473if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30474 $as_echo_n "(cached) " >&6
30475else
30476 ac_check_lib_save_LIBS=$LIBS
30477LIBS="-lpng15 $LIBS"
30478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30479/* end confdefs.h. */
30480
30481/* Override any GCC internal prototype to avoid an error.
30482 Use char because int might match the return type of a GCC
30483 builtin and then its argument prototype would still apply. */
30484#ifdef __cplusplus
30485extern "C"
30486#endif
30487char png_get_io_ptr ();
30488int
30489main ()
30490{
30491return png_get_io_ptr ();
30492 ;
30493 return 0;
30494}
30495_ACEOF
30496if ac_fn_c_try_link "$LINENO"; then :
30497 ac_cv_lib_png15_png_get_io_ptr=yes
30498else
30499 ac_cv_lib_png15_png_get_io_ptr=no
30500fi
30501rm -f core conftest.err conftest.$ac_objext \
30502 conftest$ac_exeext conftest.$ac_ext
30503LIBS=$ac_check_lib_save_LIBS
30504fi
30505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30506$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30507if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30508 passed=`expr $passed + 1`
30509else
30510 failed=`expr $failed + 1`
30511fi
30512
30513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30514$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30515if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30516 $as_echo_n "(cached) " >&6
30517else
30518 ac_check_lib_save_LIBS=$LIBS
30519LIBS="-lpng15 $LIBS"
30520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30521/* end confdefs.h. */
30522
30523/* Override any GCC internal prototype to avoid an error.
30524 Use char because int might match the return type of a GCC
30525 builtin and then its argument prototype would still apply. */
30526#ifdef __cplusplus
30527extern "C"
30528#endif
30529char png_longjmp ();
30530int
30531main ()
30532{
30533return png_longjmp ();
30534 ;
30535 return 0;
30536}
30537_ACEOF
30538if ac_fn_c_try_link "$LINENO"; then :
30539 ac_cv_lib_png15_png_longjmp=yes
30540else
30541 ac_cv_lib_png15_png_longjmp=no
30542fi
30543rm -f core conftest.err conftest.$ac_objext \
30544 conftest$ac_exeext conftest.$ac_ext
30545LIBS=$ac_check_lib_save_LIBS
30546fi
30547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30548$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30549if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30550 passed=`expr $passed + 1`
30551else
30552 failed=`expr $failed + 1`
30553fi
30554
30555 fi
30556 if test "1${var}" = '14' ; then
30557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30558$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30559if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30560 $as_echo_n "(cached) " >&6
30561else
30562 ac_check_lib_save_LIBS=$LIBS
30563LIBS="-lpng14 $LIBS"
30564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30565/* end confdefs.h. */
30566
30567/* Override any GCC internal prototype to avoid an error.
30568 Use char because int might match the return type of a GCC
30569 builtin and then its argument prototype would still apply. */
30570#ifdef __cplusplus
30571extern "C"
30572#endif
30573char png_get_io_ptr ();
30574int
30575main ()
30576{
30577return png_get_io_ptr ();
30578 ;
30579 return 0;
30580}
30581_ACEOF
30582if ac_fn_c_try_link "$LINENO"; then :
30583 ac_cv_lib_png14_png_get_io_ptr=yes
30584else
30585 ac_cv_lib_png14_png_get_io_ptr=no
30586fi
30587rm -f core conftest.err conftest.$ac_objext \
30588 conftest$ac_exeext conftest.$ac_ext
30589LIBS=$ac_check_lib_save_LIBS
30590fi
30591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30592$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30593if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30594 passed=`expr $passed + 1`
30595else
30596 failed=`expr $failed + 1`
30597fi
30598
30599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30600$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30601if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30602 $as_echo_n "(cached) " >&6
30603else
30604 ac_check_lib_save_LIBS=$LIBS
30605LIBS="-lpng14 $LIBS"
30606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30607/* end confdefs.h. */
30608
30609/* Override any GCC internal prototype to avoid an error.
30610 Use char because int might match the return type of a GCC
30611 builtin and then its argument prototype would still apply. */
30612#ifdef __cplusplus
30613extern "C"
30614#endif
30615char png_get_io_state ();
30616int
30617main ()
30618{
30619return png_get_io_state ();
30620 ;
30621 return 0;
30622}
30623_ACEOF
30624if ac_fn_c_try_link "$LINENO"; then :
30625 ac_cv_lib_png14_png_get_io_state=yes
30626else
30627 ac_cv_lib_png14_png_get_io_state=no
30628fi
30629rm -f core conftest.err conftest.$ac_objext \
30630 conftest$ac_exeext conftest.$ac_ext
30631LIBS=$ac_check_lib_save_LIBS
30632fi
30633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30634$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30635if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30636 passed=`expr $passed + 1`
30637else
30638 failed=`expr $failed + 1`
30639fi
30640
30641 fi
30642 if test "1${var}" = '12' ; then
30643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30644$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30645if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30646 $as_echo_n "(cached) " >&6
30647else
30648 ac_check_lib_save_LIBS=$LIBS
30649LIBS="-lpng12 $LIBS"
30650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30651/* end confdefs.h. */
30652
30653/* Override any GCC internal prototype to avoid an error.
30654 Use char because int might match the return type of a GCC
30655 builtin and then its argument prototype would still apply. */
30656#ifdef __cplusplus
30657extern "C"
30658#endif
30659char png_get_io_ptr ();
30660int
30661main ()
30662{
30663return png_get_io_ptr ();
30664 ;
30665 return 0;
30666}
30667_ACEOF
30668if ac_fn_c_try_link "$LINENO"; then :
30669 ac_cv_lib_png12_png_get_io_ptr=yes
30670else
30671 ac_cv_lib_png12_png_get_io_ptr=no
30672fi
30673rm -f core conftest.err conftest.$ac_objext \
30674 conftest$ac_exeext conftest.$ac_ext
30675LIBS=$ac_check_lib_save_LIBS
30676fi
30677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30678$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30679if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30680 passed=`expr $passed + 1`
30681else
30682 failed=`expr $failed + 1`
30683fi
30684
30685 fi
30686 if test "1${var}" = '1' ; then
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30688$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30689if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30690 $as_echo_n "(cached) " >&6
30691else
30692 ac_check_lib_save_LIBS=$LIBS
30693LIBS="-lpng $LIBS"
30694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30695/* end confdefs.h. */
30696
30697/* Override any GCC internal prototype to avoid an error.
30698 Use char because int might match the return type of a GCC
30699 builtin and then its argument prototype would still apply. */
30700#ifdef __cplusplus
30701extern "C"
30702#endif
30703char png_get_io_ptr ();
30704int
30705main ()
30706{
30707return png_get_io_ptr ();
30708 ;
30709 return 0;
30710}
30711_ACEOF
30712if ac_fn_c_try_link "$LINENO"; then :
30713 ac_cv_lib_png_png_get_io_ptr=yes
30714else
30715 ac_cv_lib_png_png_get_io_ptr=no
30716fi
30717rm -f core conftest.err conftest.$ac_objext \
30718 conftest$ac_exeext conftest.$ac_ext
30719LIBS=$ac_check_lib_save_LIBS
30720fi
30721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30722$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30723if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30724 passed=`expr $passed + 1`
30725else
30726 failed=`expr $failed + 1`
30727fi
30728
30729 fi
30730 if test $passed -gt 0 -a $failed -le 0 ; then
30731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30732$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30733 if test $passed -gt 0 ; then
30734 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000030735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30736$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030737 have_png='no (failed tests)'
30738 else
30739 PNG_LIBS="-l${pnglib}"
30740 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030741
cristy8b350f62009-11-15 23:12:43 +000030742$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030743
cristyad38abe2012-12-23 23:03:21 +000030744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30745$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030746 have_png='yes'
30747 fi
30748 fi
30749 fi
30750 fi
30751 fi
30752 done
30753 fi
cristy3ed852e2009-09-05 21:47:34 +000030754fi
cristy64877302011-08-23 19:10:31 +000030755
cristy73bd4a52010-10-05 11:24:23 +000030756 if test "$have_png" = 'yes'; then
30757 PNG_DELEGATE_TRUE=
30758 PNG_DELEGATE_FALSE='#'
30759else
30760 PNG_DELEGATE_TRUE='#'
30761 PNG_DELEGATE_FALSE=
30762fi
30763
cristy3ed852e2009-09-05 21:47:34 +000030764
cristy50d3f5c2011-09-10 20:09:06 +000030765
cristy3ed852e2009-09-05 21:47:34 +000030766
30767
30768#
30769# Check for RSVG delegate library.
30770#
30771
30772# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030773if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030774 withval=$with_rsvg; with_rsvg=$withval
30775else
cristy1164d5f2012-08-15 00:58:25 +000030776 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000030777fi
30778
30779
30780if test "$with_rsvg" != 'yes'; then
30781 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30782fi
30783
30784have_rsvg='no'
30785have_cairo='no'
30786RSVG_CFLAGS=""
30787RSVG_LIBS=""
30788RSVG_PKG=""
30789if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30791$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030792
30793pkg_failed=no
30794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30795$as_echo_n "checking for RSVG... " >&6; }
30796
30797if test -n "$RSVG_CFLAGS"; then
30798 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30799 elif test -n "$PKG_CONFIG"; then
30800 if test -n "$PKG_CONFIG" && \
30801 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30802 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30803 ac_status=$?
30804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30805 test $ac_status = 0; }; then
30806 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30807else
30808 pkg_failed=yes
30809fi
30810 else
30811 pkg_failed=untried
30812fi
30813if test -n "$RSVG_LIBS"; then
30814 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30815 elif test -n "$PKG_CONFIG"; then
30816 if test -n "$PKG_CONFIG" && \
30817 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30818 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30819 ac_status=$?
30820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30821 test $ac_status = 0; }; then
30822 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30823else
30824 pkg_failed=yes
30825fi
30826 else
30827 pkg_failed=untried
30828fi
30829
30830
30831
30832if test $pkg_failed = yes; then
30833
30834if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30835 _pkg_short_errors_supported=yes
30836else
30837 _pkg_short_errors_supported=no
30838fi
30839 if test $_pkg_short_errors_supported = yes; then
30840 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30841 else
30842 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30843 fi
30844 # Put the nasty error message in config.log where it belongs
30845 echo "$RSVG_PKG_ERRORS" >&5
30846
30847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30848$as_echo "no" >&6; }
30849 have_rsvg=no
30850elif test $pkg_failed = untried; then
30851 have_rsvg=no
30852else
30853 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30854 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30856$as_echo "yes" >&6; }
30857 have_rsvg=yes
30858fi
cristyad38abe2012-12-23 23:03:21 +000030859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30860$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030861
30862pkg_failed=no
30863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30864$as_echo_n "checking for CAIRO_SVG... " >&6; }
30865
30866if test -n "$CAIRO_SVG_CFLAGS"; then
30867 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30868 elif test -n "$PKG_CONFIG"; then
30869 if test -n "$PKG_CONFIG" && \
30870 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30871 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30872 ac_status=$?
30873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30874 test $ac_status = 0; }; then
30875 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30876else
30877 pkg_failed=yes
30878fi
30879 else
30880 pkg_failed=untried
30881fi
30882if test -n "$CAIRO_SVG_LIBS"; then
30883 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30884 elif test -n "$PKG_CONFIG"; then
30885 if test -n "$PKG_CONFIG" && \
30886 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30887 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30888 ac_status=$?
30889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30890 test $ac_status = 0; }; then
30891 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30892else
30893 pkg_failed=yes
30894fi
30895 else
30896 pkg_failed=untried
30897fi
30898
30899
30900
30901if test $pkg_failed = yes; then
30902
30903if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30904 _pkg_short_errors_supported=yes
30905else
30906 _pkg_short_errors_supported=no
30907fi
30908 if test $_pkg_short_errors_supported = yes; then
30909 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30910 else
30911 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30912 fi
30913 # Put the nasty error message in config.log where it belongs
30914 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30915
30916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30917$as_echo "no" >&6; }
30918 have_cairo=no
30919elif test $pkg_failed = untried; then
30920 have_cairo=no
30921else
30922 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30923 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30925$as_echo "yes" >&6; }
30926 have_cairo=yes
30927fi
cristyad38abe2012-12-23 23:03:21 +000030928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30929$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030930fi
30931
30932if test "$have_rsvg" = 'yes'; then
30933
cristy8b350f62009-11-15 23:12:43 +000030934$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030935
cristyc6722092012-10-14 00:19:31 +000030936 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030937 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30938 fi
30939fi
30940
30941if test "$have_cairo" = 'yes'; then
30942
cristy8b350f62009-11-15 23:12:43 +000030943$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030944
cristyc6722092012-10-14 00:19:31 +000030945 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030946 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30947 fi
30948fi
30949
cristy73bd4a52010-10-05 11:24:23 +000030950 if test "$have_rsvg" = 'yes'; then
30951 RSVG_DELEGATE_TRUE=
30952 RSVG_DELEGATE_FALSE='#'
30953else
30954 RSVG_DELEGATE_TRUE='#'
30955 RSVG_DELEGATE_FALSE=
30956fi
30957
30958 if test "$have_cairo" = 'yes'; then
30959 CAIRO_DELEGATE_TRUE=
30960 CAIRO_DELEGATE_FALSE='#'
30961else
30962 CAIRO_DELEGATE_TRUE='#'
30963 CAIRO_DELEGATE_FALSE=
30964fi
30965
cristy3ed852e2009-09-05 21:47:34 +000030966
30967
30968
30969
30970#
30971# Check for TIFF delegate library.
30972#
30973
30974# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000030975if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030976 withval=$with_tiff; with_tiff=$withval
30977else
30978 with_tiff='yes'
30979fi
30980
30981
30982if test "$with_tiff" != 'yes'; then
30983 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30984fi
30985
30986have_tiff='no'
30987TIFF_LIBS=''
30988if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30990$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030992$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30994$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030995 failed=0
30996 passed=0
cristy8b350f62009-11-15 23:12:43 +000030997 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030998if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030999 passed=`expr $passed + 1`
31000else
31001 failed=`expr $failed + 1`
31002fi
31003
31004
cristy8b350f62009-11-15 23:12:43 +000031005 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031006if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031007 passed=`expr $passed + 1`
31008else
31009 failed=`expr $failed + 1`
31010fi
31011
31012
cristy8b350f62009-11-15 23:12:43 +000031013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031014$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031015if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031016 $as_echo_n "(cached) " >&6
31017else
31018 ac_check_lib_save_LIBS=$LIBS
31019LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031021/* end confdefs.h. */
31022
31023/* Override any GCC internal prototype to avoid an error.
31024 Use char because int might match the return type of a GCC
31025 builtin and then its argument prototype would still apply. */
31026#ifdef __cplusplus
31027extern "C"
31028#endif
31029char TIFFOpen ();
31030int
31031main ()
31032{
31033return TIFFOpen ();
31034 ;
31035 return 0;
31036}
31037_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031038if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031039 ac_cv_lib_tiff_TIFFOpen=yes
31040else
cristy8b350f62009-11-15 23:12:43 +000031041 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031042fi
cristy8b350f62009-11-15 23:12:43 +000031043rm -f core conftest.err conftest.$ac_objext \
31044 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031045LIBS=$ac_check_lib_save_LIBS
31046fi
cristy8b350f62009-11-15 23:12:43 +000031047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031048$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031049if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031050 passed=`expr $passed + 1`
31051else
31052 failed=`expr $failed + 1`
31053fi
31054
cristy8b350f62009-11-15 23:12:43 +000031055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031056$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031057if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031058 $as_echo_n "(cached) " >&6
31059else
31060 ac_check_lib_save_LIBS=$LIBS
31061LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031063/* end confdefs.h. */
31064
31065/* Override any GCC internal prototype to avoid an error.
31066 Use char because int might match the return type of a GCC
31067 builtin and then its argument prototype would still apply. */
31068#ifdef __cplusplus
31069extern "C"
31070#endif
31071char TIFFClientOpen ();
31072int
31073main ()
31074{
31075return TIFFClientOpen ();
31076 ;
31077 return 0;
31078}
31079_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031080if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031081 ac_cv_lib_tiff_TIFFClientOpen=yes
31082else
cristy8b350f62009-11-15 23:12:43 +000031083 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031084fi
cristy8b350f62009-11-15 23:12:43 +000031085rm -f core conftest.err conftest.$ac_objext \
31086 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031087LIBS=$ac_check_lib_save_LIBS
31088fi
cristy8b350f62009-11-15 23:12:43 +000031089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031090$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031091if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031092 passed=`expr $passed + 1`
31093else
31094 failed=`expr $failed + 1`
31095fi
31096
cristy8b350f62009-11-15 23:12:43 +000031097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031098$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031099if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031100 $as_echo_n "(cached) " >&6
31101else
31102 ac_check_lib_save_LIBS=$LIBS
31103LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031105/* end confdefs.h. */
31106
31107/* Override any GCC internal prototype to avoid an error.
31108 Use char because int might match the return type of a GCC
31109 builtin and then its argument prototype would still apply. */
31110#ifdef __cplusplus
31111extern "C"
31112#endif
31113char TIFFIsByteSwapped ();
31114int
31115main ()
31116{
31117return TIFFIsByteSwapped ();
31118 ;
31119 return 0;
31120}
31121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031122if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031123 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31124else
cristy8b350f62009-11-15 23:12:43 +000031125 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031126fi
cristy8b350f62009-11-15 23:12:43 +000031127rm -f core conftest.err conftest.$ac_objext \
31128 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031129LIBS=$ac_check_lib_save_LIBS
31130fi
cristy8b350f62009-11-15 23:12:43 +000031131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031132$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031133if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031134 passed=`expr $passed + 1`
31135else
31136 failed=`expr $failed + 1`
31137fi
31138
cristy8b350f62009-11-15 23:12:43 +000031139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031140$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031141if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031142 $as_echo_n "(cached) " >&6
31143else
31144 ac_check_lib_save_LIBS=$LIBS
31145LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031147/* end confdefs.h. */
31148
31149/* Override any GCC internal prototype to avoid an error.
31150 Use char because int might match the return type of a GCC
31151 builtin and then its argument prototype would still apply. */
31152#ifdef __cplusplus
31153extern "C"
31154#endif
31155char TIFFReadRGBATile ();
31156int
31157main ()
31158{
31159return TIFFReadRGBATile ();
31160 ;
31161 return 0;
31162}
31163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031164if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031165 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31166else
cristy8b350f62009-11-15 23:12:43 +000031167 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031168fi
cristy8b350f62009-11-15 23:12:43 +000031169rm -f core conftest.err conftest.$ac_objext \
31170 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031171LIBS=$ac_check_lib_save_LIBS
31172fi
cristy8b350f62009-11-15 23:12:43 +000031173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031174$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031175if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031176 passed=`expr $passed + 1`
31177else
31178 failed=`expr $failed + 1`
31179fi
31180
cristy8b350f62009-11-15 23:12:43 +000031181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031182$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031183if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031184 $as_echo_n "(cached) " >&6
31185else
31186 ac_check_lib_save_LIBS=$LIBS
31187LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031189/* end confdefs.h. */
31190
31191/* Override any GCC internal prototype to avoid an error.
31192 Use char because int might match the return type of a GCC
31193 builtin and then its argument prototype would still apply. */
31194#ifdef __cplusplus
31195extern "C"
31196#endif
31197char TIFFReadRGBAStrip ();
31198int
31199main ()
31200{
31201return TIFFReadRGBAStrip ();
31202 ;
31203 return 0;
31204}
31205_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031206if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031207 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31208else
cristy8b350f62009-11-15 23:12:43 +000031209 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031210fi
cristy8b350f62009-11-15 23:12:43 +000031211rm -f core conftest.err conftest.$ac_objext \
31212 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031213LIBS=$ac_check_lib_save_LIBS
31214fi
cristy8b350f62009-11-15 23:12:43 +000031215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031216$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031217if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031218 passed=`expr $passed + 1`
31219else
31220 failed=`expr $failed + 1`
31221fi
31222
cristy8b350f62009-11-15 23:12:43 +000031223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031224$as_echo_n "checking if TIFF package is complete... " >&6; }
31225 if test $passed -gt 0; then
31226 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31228$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031229 have_tiff='no (failed tests)'
31230 else
31231 TIFF_LIBS='-ltiff'
31232 LIBS="$TIFF_LIBS $LIBS"
31233
cristy8b350f62009-11-15 23:12:43 +000031234$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031235
cristyad38abe2012-12-23 23:03:21 +000031236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31237$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031238 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031239 for ac_header in tiffconf.h
31240do :
31241 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031242if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031243 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031244#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031245_ACEOF
31246
31247fi
31248
31249done
31250
cristy8b350f62009-11-15 23:12:43 +000031251 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031252 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31253 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31254 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031255do :
31256 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31257ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031258if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031259 cat >>confdefs.h <<_ACEOF
31260#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31261_ACEOF
31262
31263fi
31264done
31265
31266 fi
31267 else
cristyad38abe2012-12-23 23:03:21 +000031268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31269$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031270 fi
31271fi
cristy73bd4a52010-10-05 11:24:23 +000031272 if test "$have_tiff" = 'yes'; then
31273 TIFF_DELEGATE_TRUE=
31274 TIFF_DELEGATE_FALSE='#'
31275else
31276 TIFF_DELEGATE_TRUE='#'
31277 TIFF_DELEGATE_FALSE=
31278fi
31279
cristy3ed852e2009-09-05 21:47:34 +000031280
31281
31282
31283#
cristyb1860752011-03-14 00:27:46 +000031284# Check for WEBP delegate library.
31285#
31286
31287# Check whether --with-webp was given.
31288if test "${with_webp+set}" = set; then :
31289 withval=$with_webp; with_webp=$withval
31290else
31291 with_webp='yes'
31292fi
31293
31294
31295if test "$with_webp" != 'yes'; then
31296 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31297fi
31298
31299have_webp='no'
31300WEBP_LIBS=''
31301if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31303$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31305$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31307$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031308 failed=0
31309 passed=0
31310 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31311if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31312 passed=`expr $passed + 1`
31313else
31314 failed=`expr $failed + 1`
31315fi
31316
31317
31318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31319$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31320if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31321 $as_echo_n "(cached) " >&6
31322else
31323 ac_check_lib_save_LIBS=$LIBS
31324LIBS="-lwebp $LIBS"
31325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31326/* end confdefs.h. */
31327
31328/* Override any GCC internal prototype to avoid an error.
31329 Use char because int might match the return type of a GCC
31330 builtin and then its argument prototype would still apply. */
31331#ifdef __cplusplus
31332extern "C"
31333#endif
31334char WebPDecodeRGB ();
31335int
31336main ()
31337{
31338return WebPDecodeRGB ();
31339 ;
31340 return 0;
31341}
31342_ACEOF
31343if ac_fn_c_try_link "$LINENO"; then :
31344 ac_cv_lib_webp_WebPDecodeRGB=yes
31345else
31346 ac_cv_lib_webp_WebPDecodeRGB=no
31347fi
31348rm -f core conftest.err conftest.$ac_objext \
31349 conftest$ac_exeext conftest.$ac_ext
31350LIBS=$ac_check_lib_save_LIBS
31351fi
31352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31353$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31354if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31355 passed=`expr $passed + 1`
31356else
31357 failed=`expr $failed + 1`
31358fi
31359
31360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31361$as_echo_n "checking if WEBP package is complete... " >&6; }
31362 if test $passed -gt 0; then
31363 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31365$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031366 have_webp='no (failed tests)'
31367 else
31368 WEBP_LIBS='-lwebp'
31369 LIBS="$WEBP_LIBS $LIBS"
31370
31371$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31372
cristyad38abe2012-12-23 23:03:21 +000031373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31374$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031375 have_webp='yes'
31376 fi
31377 else
cristyad38abe2012-12-23 23:03:21 +000031378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31379$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031380 fi
31381fi
31382 if test "$have_webp" = 'yes'; then
31383 WEBP_DELEGATE_TRUE=
31384 WEBP_DELEGATE_FALSE='#'
31385else
31386 WEBP_DELEGATE_TRUE='#'
31387 WEBP_DELEGATE_FALSE=
31388fi
31389
31390
31391
31392
31393#
cristy3ed852e2009-09-05 21:47:34 +000031394# Set Windows font directory.
31395#
31396
31397# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031398if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031399 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31400else
31401 with_windows_font_dir=''
31402fi
31403
31404if test "$with_windows_font_dir" != '' ; then
31405 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31406fi
31407
31408
31409#
31410# Check for WMF delegate library.
31411#
31412
31413# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031414if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031415 withval=$with_wmf; with_wmf=$withval
31416else
cristyfc3d0222012-02-07 15:05:57 +000031417 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031418fi
31419
31420
31421if test "$with_wmf" != 'yes'; then
31422 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31423fi
31424
31425have_wmf='no'
31426WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031427WMF_LIBS_DEPS=''
31428OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031429if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31431$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031433$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31435$as_echo "" >&6; }
31436 have_libwmf='no'
31437 have_libwmflite='no'
31438 have_libwmf_ipa_h='no'
31439
31440 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31441"
31442if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31443 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031444fi
31445
31446
cristy03f7cf92011-12-15 01:40:41 +000031447 if test "$have_libwmf_ipa_h" = 'yes'; then
31448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31449$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31450if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031451 $as_echo_n "(cached) " >&6
31452else
31453 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031454LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031456/* end confdefs.h. */
31457
31458/* Override any GCC internal prototype to avoid an error.
31459 Use char because int might match the return type of a GCC
31460 builtin and then its argument prototype would still apply. */
31461#ifdef __cplusplus
31462extern "C"
31463#endif
cristy03f7cf92011-12-15 01:40:41 +000031464char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031465int
31466main ()
31467{
cristy03f7cf92011-12-15 01:40:41 +000031468return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031469 ;
31470 return 0;
31471}
31472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031473if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031474 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031475else
cristy03f7cf92011-12-15 01:40:41 +000031476 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031477fi
cristy8b350f62009-11-15 23:12:43 +000031478rm -f core conftest.err conftest.$ac_objext \
31479 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031480LIBS=$ac_check_lib_save_LIBS
31481fi
cristy03f7cf92011-12-15 01:40:41 +000031482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31483$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31484if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31485 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031486fi
31487
cristy03f7cf92011-12-15 01:40:41 +000031488 if test "$have_libwmflite" = 'yes'; then
31489
31490$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31491
31492 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031493 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031494 have_wmf='yes'
31495 else
31496 WMF_LIBS_DEPS=''
31497 WMF_CONFIG_LIBS=`libwmf-config --libs`
31498 for lib in xml2 expat freetype jpeg png z; do
31499 testlib="-l${lib}"
31500 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31501 done
31502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31503$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31504if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31505 $as_echo_n "(cached) " >&6
31506else
31507 ac_check_lib_save_LIBS=$LIBS
31508LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31510/* end confdefs.h. */
31511
31512/* Override any GCC internal prototype to avoid an error.
31513 Use char because int might match the return type of a GCC
31514 builtin and then its argument prototype would still apply. */
31515#ifdef __cplusplus
31516extern "C"
31517#endif
31518char wmf_api_create ();
31519int
31520main ()
31521{
31522return wmf_api_create ();
31523 ;
31524 return 0;
31525}
31526_ACEOF
31527if ac_fn_c_try_link "$LINENO"; then :
31528 ac_cv_lib_wmf_wmf_api_create=yes
31529else
31530 ac_cv_lib_wmf_wmf_api_create=no
31531fi
31532rm -f core conftest.err conftest.$ac_objext \
31533 conftest$ac_exeext conftest.$ac_ext
31534LIBS=$ac_check_lib_save_LIBS
31535fi
31536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31537$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31538if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31539 have_libwmf='yes'
31540fi
31541
31542 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031543
cristy8b350f62009-11-15 23:12:43 +000031544$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031545
cristy03f7cf92011-12-15 01:40:41 +000031546 WMF_LIBS='-lwmf'
31547 LIBS="$WMF_LIBS $LIBS"
31548 have_wmf='yes'
31549 else
31550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31551$as_echo "no -- some components failed test" >&6; }
31552 have_wmf='no (failed tests)'
31553 have_wmflite='no (failed tests)'
31554 LIBS="$OLIBS"
31555 WMF_LIBS=''
31556 fi
glennrp33e524b2011-08-24 17:41:57 +000031557 fi
cristy03f7cf92011-12-15 01:40:41 +000031558 fi
31559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31560$as_echo_n "checking if WMF package is complete... " >&6; }
31561 if test "$have_wmf" = 'yes'; then
31562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31563$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031564 else
cristy03f7cf92011-12-15 01:40:41 +000031565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31566$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031567 fi
cristy3ed852e2009-09-05 21:47:34 +000031568fi
cristy73bd4a52010-10-05 11:24:23 +000031569 if test "$have_wmf" = 'yes'; then
31570 WMF_DELEGATE_TRUE=
31571 WMF_DELEGATE_FALSE='#'
31572else
31573 WMF_DELEGATE_TRUE='#'
31574 WMF_DELEGATE_FALSE=
31575fi
31576
cristy3ed852e2009-09-05 21:47:34 +000031577
31578
31579
cristy81beccd2011-10-03 18:17:24 +000031580
31581
cristy3ed852e2009-09-05 21:47:34 +000031582#
31583# Check for XML delegate library.
31584#
31585
31586# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031587if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031588 withval=$with_xml; with_xml=$withval
31589else
cristyfc3d0222012-02-07 15:05:57 +000031590 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031591fi
31592
31593
cristy81beccd2011-10-03 18:17:24 +000031594if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031595 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31596fi
31597
cristy81beccd2011-10-03 18:17:24 +000031598have_xml='no'
31599XML_LIBS=''
31600if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31602$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31604$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31606$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031607 PERSIST_LDFLAGS=$LDFLAGS
31608 PERSIST_CPPFLAGS=$CPPFLAGS
31609 xml2_config=''
31610 # Extract the first word of "xml2-config", so it can be a program name with args.
31611set dummy xml2-config; ac_word=$2
31612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31613$as_echo_n "checking for $ac_word... " >&6; }
31614if ${ac_cv_path_xml2_config+:} false; then :
31615 $as_echo_n "(cached) " >&6
31616else
31617 case $xml2_config in
31618 [\\/]* | ?:[\\/]*)
31619 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31620 ;;
31621 *)
31622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31623for as_dir in $PATH
31624do
31625 IFS=$as_save_IFS
31626 test -z "$as_dir" && as_dir=.
31627 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000031629 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31631 break 2
31632 fi
31633done
31634 done
31635IFS=$as_save_IFS
31636
31637 ;;
31638esac
31639fi
31640xml2_config=$ac_cv_path_xml2_config
31641if test -n "$xml2_config"; then
31642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31643$as_echo "$xml2_config" >&6; }
31644else
31645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31646$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031647fi
31648
cristy81beccd2011-10-03 18:17:24 +000031649 if test -n "$xml2_config"; then
31650 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31651 # the shared library installed under /usr/lib, whereas the package
31652 # installs itself under $prefix/libxml and $prefix/lib.
31653 xml2_prefix=`xml2-config --prefix`
31654 if test -d "${xml2_prefix}/include/libxml2"; then
31655 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31656 fi
31657 if test "${xml2_prefix}" != '/usr'; then
31658 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31659 fi
31660 fi
31661 failed=0
31662 passed=0
31663 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31664if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31665 passed=`expr $passed + 1`
31666else
31667 failed=`expr $failed + 1`
31668fi
31669
31670
31671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31672$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31673if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31674 $as_echo_n "(cached) " >&6
31675else
31676 ac_check_lib_save_LIBS=$LIBS
31677LIBS="-lxml2 $LIBS"
31678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31679/* end confdefs.h. */
31680
31681/* Override any GCC internal prototype to avoid an error.
31682 Use char because int might match the return type of a GCC
31683 builtin and then its argument prototype would still apply. */
31684#ifdef __cplusplus
31685extern "C"
31686#endif
31687char xmlSAXVersion ();
31688int
31689main ()
31690{
31691return xmlSAXVersion ();
31692 ;
31693 return 0;
31694}
31695_ACEOF
31696if ac_fn_c_try_link "$LINENO"; then :
31697 ac_cv_lib_xml2_xmlSAXVersion=yes
31698else
31699 ac_cv_lib_xml2_xmlSAXVersion=no
31700fi
31701rm -f core conftest.err conftest.$ac_objext \
31702 conftest$ac_exeext conftest.$ac_ext
31703LIBS=$ac_check_lib_save_LIBS
31704fi
31705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31706$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31707if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31708 passed=`expr $passed + 1`
31709else
31710 failed=`expr $failed + 1`
31711fi
31712
31713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31714$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31715if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31716 $as_echo_n "(cached) " >&6
31717else
31718 ac_check_lib_save_LIBS=$LIBS
31719LIBS="-lxml2 $LIBS"
31720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31721/* end confdefs.h. */
31722
31723/* Override any GCC internal prototype to avoid an error.
31724 Use char because int might match the return type of a GCC
31725 builtin and then its argument prototype would still apply. */
31726#ifdef __cplusplus
31727extern "C"
31728#endif
31729char xmlParseChunk ();
31730int
31731main ()
31732{
31733return xmlParseChunk ();
31734 ;
31735 return 0;
31736}
31737_ACEOF
31738if ac_fn_c_try_link "$LINENO"; then :
31739 ac_cv_lib_xml2_xmlParseChunk=yes
31740else
31741 ac_cv_lib_xml2_xmlParseChunk=no
31742fi
31743rm -f core conftest.err conftest.$ac_objext \
31744 conftest$ac_exeext conftest.$ac_ext
31745LIBS=$ac_check_lib_save_LIBS
31746fi
31747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31748$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31749if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31750 passed=`expr $passed + 1`
31751else
31752 failed=`expr $failed + 1`
31753fi
31754
31755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31756$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31757if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31758 $as_echo_n "(cached) " >&6
31759else
31760 ac_check_lib_save_LIBS=$LIBS
31761LIBS="-lxml2 $LIBS"
31762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31763/* end confdefs.h. */
31764
31765/* Override any GCC internal prototype to avoid an error.
31766 Use char because int might match the return type of a GCC
31767 builtin and then its argument prototype would still apply. */
31768#ifdef __cplusplus
31769extern "C"
31770#endif
31771char xmlCreatePushParserCtxt ();
31772int
31773main ()
31774{
31775return xmlCreatePushParserCtxt ();
31776 ;
31777 return 0;
31778}
31779_ACEOF
31780if ac_fn_c_try_link "$LINENO"; then :
31781 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31782else
31783 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31784fi
31785rm -f core conftest.err conftest.$ac_objext \
31786 conftest$ac_exeext conftest.$ac_ext
31787LIBS=$ac_check_lib_save_LIBS
31788fi
31789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31790$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31791if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31792 passed=`expr $passed + 1`
31793else
31794 failed=`expr $failed + 1`
31795fi
31796
31797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31798$as_echo_n "checking if XML package is complete... " >&6; }
31799 if test $passed -gt 0; then
31800 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31802$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031803 have_xml='no (failed tests)'
31804 LDFLAGS="$PERSIST_LDFLAGS"
31805 CPPFLAGS="$PERSIST_CPPFLAGS"
31806 else
31807 XML_LIBS='-lxml2'
31808 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031809
cristy8b350f62009-11-15 23:12:43 +000031810$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031811
cristyad38abe2012-12-23 23:03:21 +000031812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31813$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031814 have_xml='yes'
31815 fi
31816 else
cristyad38abe2012-12-23 23:03:21 +000031817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31818$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031819 fi
31820fi
cristy73bd4a52010-10-05 11:24:23 +000031821 if test "$have_xml" = 'yes'; then
31822 XML_DELEGATE_TRUE=
31823 XML_DELEGATE_FALSE='#'
31824else
31825 XML_DELEGATE_TRUE='#'
31826 XML_DELEGATE_FALSE=
31827fi
31828
cristy3ed852e2009-09-05 21:47:34 +000031829
31830
31831
31832# Substitute compiler name to build/link PerlMagick
31833#
31834
31835
31836#
31837# Configure install Paths
31838#
cristy7def36a2011-10-28 19:04:41 +000031839
cristy2a11bef2011-10-28 18:33:11 +000031840# Path to ImageMagick header files
31841INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000031842INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
31843DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000031844case "${build_os}" in
31845 mingw* )
31846 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
31847 ;;
31848esac
31849
31850cat >>confdefs.h <<_ACEOF
31851#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
31852_ACEOF
31853
31854
cristy3ed852e2009-09-05 21:47:34 +000031855
31856# Subdirectory under lib to place ImageMagick lib files
31857LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31858
31859cat >>confdefs.h <<_ACEOF
31860#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31861_ACEOF
31862
31863
31864# Path to ImageMagick bin directory
31865EXECUTABLE_PATH="${BIN_DIR}"
31866DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31867case "${build_os}" in
31868 mingw* )
31869 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31870 ;;
31871esac
31872
31873cat >>confdefs.h <<_ACEOF
31874#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31875_ACEOF
31876
31877
31878
31879# Path to ImageMagick lib
31880LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31881DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31882case "${build_os}" in
31883 mingw* )
31884 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31885 ;;
31886esac
31887
31888cat >>confdefs.h <<_ACEOF
31889#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31890_ACEOF
31891
31892
31893
cristy3ed852e2009-09-05 21:47:34 +000031894#
cristy01ff9f32012-12-01 18:15:29 +000031895# path to modules lib
31896if test "x$MODULES_BASEDIRNAME" = "x"; then
31897 MODULES_BASEDIRNAME="modules"
31898fi
cristy3ed852e2009-09-05 21:47:34 +000031899
31900cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000031901#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000031902_ACEOF
31903
cristy01ff9f32012-12-01 18:15:29 +000031904
31905
31906if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000031907 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
31908else
cristy3ed852e2009-09-05 21:47:34 +000031909
31910cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000031911#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000031912_ACEOF
31913
cristycf4a3c22012-12-02 21:47:25 +000031914fi
cristy01ff9f32012-12-01 18:15:29 +000031915
31916
cristy371d4812012-12-01 19:48:10 +000031917MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000031918
31919MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
31920
31921
31922#
31923# path to coders lib
31924if test "x$CODER_DIRNAME" = "x"; then
31925 CODER_DIRNAME="coders"
31926fi
31927
31928cat >>confdefs.h <<_ACEOF
31929#define CODER_DIRNAME "$CODER_DIRNAME"
31930_ACEOF
31931
31932
31933
cristy371d4812012-12-01 19:48:10 +000031934CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000031935CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000031936
31937
31938#
31939# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000031940#
31941# path to coders lib
31942if test "x$FILTER_DIRNAME" = "x"; then
31943 FILTER_DIRNAME="filters"
31944fi
cristy3ed852e2009-09-05 21:47:34 +000031945
31946cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000031947#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000031948_ACEOF
31949
cristy3ed852e2009-09-05 21:47:34 +000031950
cristy3ed852e2009-09-05 21:47:34 +000031951
cristy371d4812012-12-01 19:48:10 +000031952FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000031953FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000031954
31955
31956#
31957# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000031958DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000031959DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31960DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031961case "${build_os}" in
31962 mingw* )
31963 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31964 ;;
31965esac
31966
31967cat >>confdefs.h <<_ACEOF
31968#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31969_ACEOF
31970
31971
31972
cristy2a11bef2011-10-28 18:33:11 +000031973# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000031974CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031975
31976cat >>confdefs.h <<_ACEOF
31977#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31978_ACEOF
31979
cristy7def36a2011-10-28 19:04:41 +000031980CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000031981DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31982case "${build_os}" in
31983 mingw* )
31984 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31985 ;;
31986esac
31987
31988cat >>confdefs.h <<_ACEOF
31989#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31990_ACEOF
31991
31992
31993
cristy2a11bef2011-10-28 18:33:11 +000031994# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000031995SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000031996
31997cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031998#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031999_ACEOF
32000
cristy670aa3c2011-11-03 00:54:00 +000032001SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032002DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032003case "${build_os}" in
32004 mingw* )
cristy4f820712011-04-01 12:35:43 +000032005 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032006 ;;
32007esac
32008
32009cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032010#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032011_ACEOF
32012
32013
32014
cristy54378032012-12-04 15:52:20 +000032015#
32016# Subdirectory to place architecture-dependent configuration files.
32017if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32018 SHAREARCH_BASEDIRNAME="config"
32019fi
cristy670aa3c2011-11-03 00:54:00 +000032020
32021cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032022#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032023_ACEOF
32024
cristy54378032012-12-04 15:52:20 +000032025
32026
32027if test "x$SHAREARCH_DIRNAME" = "x"; then
32028 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32029else
cristy670aa3c2011-11-03 00:54:00 +000032030
32031cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032032#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032033_ACEOF
32034
cristy54378032012-12-04 15:52:20 +000032035fi
32036
32037
32038SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32039
32040SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032041
32042
cristy3ed852e2009-09-05 21:47:34 +000032043#
32044# program_transform_name is formed for use in a Makefile, so create a
32045# modified version for use in a shell script.
32046configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32047
32048# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32050$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032052$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32054$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032055AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032056BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032057BZIPDelegateDefault='bzip2'
32058BrowseDelegateDefault='xdg-open'
32059CGMDecodeDelegateDefault='ralcgm'
32060CatDelegateDefault='cat'
32061DNGDecodeDelegateDefault='ufraw-batch'
32062GVCDecodeDelegateDefault='dot'
32063DVIDecodeDelegateDefault='dvips'
32064EchoDelegateDefault='echo'
32065EditorDelegateDefault='xterm'
32066FIGDecodeDelegateDefault='fig2dev'
32067ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32068DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32069MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32070GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032071HPGLDecodeDelegateDefault='hp2xx'
32072HTMLDecodeDelegateDefault='html2ps'
32073ILBMDecodeDelegateDefault='ilbmtoppm'
32074ILBMEncodeDelegateDefault='ppmtoilbm'
32075LPDelegateDefault='lp'
32076LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032077LaunchDelegateDefault='gimp'
32078MANDelegateDefault='groff'
32079MPEGDecodeDelegateDefault='ffmpeg'
32080MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032081MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032082MVDelegateDefault='mv'
32083PCLDelegateDefault='pcl6'
32084PGPDecodeDelegateDefault='pgpv'
32085POVDelegateDefault='povray'
32086if test "$native_win32_build" = 'yes'; then
32087 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032088elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032089 PSDelegateDefault='gsc'
32090else
32091 PSDelegateDefault='gs'
32092fi
32093RLEEncodeDelegateDefault='rawtorle'
32094RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032095RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032096SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032097SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032098TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032099UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032100WMFDecodeDelegateDefault='wmf2eps'
32101WWWDecodeDelegateDefault='curl'
32102XPSDelegateDefault='gxps'
32103ZipDelegateDefault='gzip'
32104
32105# Search for delegates
32106# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32107set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032109$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032110if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032111 $as_echo_n "(cached) " >&6
32112else
32113 case $AutotraceDecodeDelegate in
32114 [\\/]* | ?:[\\/]*)
32115 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32116 ;;
32117 *)
32118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32119for as_dir in $PATH
32120do
32121 IFS=$as_save_IFS
32122 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032123 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032125 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032127 break 2
32128 fi
32129done
cristy8b350f62009-11-15 23:12:43 +000032130 done
cristy3ed852e2009-09-05 21:47:34 +000032131IFS=$as_save_IFS
32132
32133 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32134 ;;
32135esac
32136fi
32137AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32138if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032140$as_echo "$AutotraceDecodeDelegate" >&6; }
32141else
cristy8b350f62009-11-15 23:12:43 +000032142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032143$as_echo "no" >&6; }
32144fi
32145
32146
cristy3ed852e2009-09-05 21:47:34 +000032147# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32148set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032150$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032151if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032152 $as_echo_n "(cached) " >&6
32153else
32154 case $BlenderDecodeDelegate in
32155 [\\/]* | ?:[\\/]*)
32156 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32157 ;;
32158 *)
32159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32160for as_dir in $PATH
32161do
32162 IFS=$as_save_IFS
32163 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032164 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032166 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032168 break 2
32169 fi
32170done
cristy8b350f62009-11-15 23:12:43 +000032171 done
cristy3ed852e2009-09-05 21:47:34 +000032172IFS=$as_save_IFS
32173
32174 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32175 ;;
32176esac
32177fi
32178BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32179if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032181$as_echo "$BlenderDecodeDelegate" >&6; }
32182else
cristy8b350f62009-11-15 23:12:43 +000032183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032184$as_echo "no" >&6; }
32185fi
32186
32187
32188# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32189set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032191$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032192if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032193 $as_echo_n "(cached) " >&6
32194else
32195 case $BZIPDelegate in
32196 [\\/]* | ?:[\\/]*)
32197 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32198 ;;
32199 *)
32200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32201for as_dir in $PATH
32202do
32203 IFS=$as_save_IFS
32204 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032205 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032207 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032209 break 2
32210 fi
32211done
cristy8b350f62009-11-15 23:12:43 +000032212 done
cristy3ed852e2009-09-05 21:47:34 +000032213IFS=$as_save_IFS
32214
32215 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32216 ;;
32217esac
32218fi
32219BZIPDelegate=$ac_cv_path_BZIPDelegate
32220if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032222$as_echo "$BZIPDelegate" >&6; }
32223else
cristy8b350f62009-11-15 23:12:43 +000032224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032225$as_echo "no" >&6; }
32226fi
32227
32228
cristyc59f0e72012-08-27 12:59:33 +000032229for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32230do
32231 # Extract the first word of "$ac_prog", so it can be a program name with args.
32232set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032234$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032235if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032236 $as_echo_n "(cached) " >&6
32237else
32238 case $BrowseDelegate in
32239 [\\/]* | ?:[\\/]*)
32240 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32241 ;;
32242 *)
32243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32244for as_dir in $PATH
32245do
32246 IFS=$as_save_IFS
32247 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032248 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032250 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032252 break 2
32253 fi
32254done
cristy8b350f62009-11-15 23:12:43 +000032255 done
cristy3ed852e2009-09-05 21:47:34 +000032256IFS=$as_save_IFS
32257
cristy3ed852e2009-09-05 21:47:34 +000032258 ;;
32259esac
32260fi
32261BrowseDelegate=$ac_cv_path_BrowseDelegate
32262if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032264$as_echo "$BrowseDelegate" >&6; }
32265else
cristy8b350f62009-11-15 23:12:43 +000032266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032267$as_echo "no" >&6; }
32268fi
32269
32270
cristyc59f0e72012-08-27 12:59:33 +000032271 test -n "$BrowseDelegate" && break
32272done
32273test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32274
cristy3ed852e2009-09-05 21:47:34 +000032275# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32276set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032278$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032279if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032280 $as_echo_n "(cached) " >&6
32281else
32282 case $CGMDecodeDelegate in
32283 [\\/]* | ?:[\\/]*)
32284 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32285 ;;
32286 *)
32287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32288for as_dir in $PATH
32289do
32290 IFS=$as_save_IFS
32291 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032292 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032294 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032296 break 2
32297 fi
32298done
cristy8b350f62009-11-15 23:12:43 +000032299 done
cristy3ed852e2009-09-05 21:47:34 +000032300IFS=$as_save_IFS
32301
32302 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32303 ;;
32304esac
32305fi
32306CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32307if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032309$as_echo "$CGMDecodeDelegate" >&6; }
32310else
cristy8b350f62009-11-15 23:12:43 +000032311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032312$as_echo "no" >&6; }
32313fi
32314
32315
32316# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32317set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032319$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032320if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032321 $as_echo_n "(cached) " >&6
32322else
32323 case $CatDelegate in
32324 [\\/]* | ?:[\\/]*)
32325 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32326 ;;
32327 *)
32328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32329for as_dir in $PATH
32330do
32331 IFS=$as_save_IFS
32332 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032333 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032335 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032337 break 2
32338 fi
32339done
cristy8b350f62009-11-15 23:12:43 +000032340 done
cristy3ed852e2009-09-05 21:47:34 +000032341IFS=$as_save_IFS
32342
32343 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32344 ;;
32345esac
32346fi
32347CatDelegate=$ac_cv_path_CatDelegate
32348if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032350$as_echo "$CatDelegate" >&6; }
32351else
cristy8b350f62009-11-15 23:12:43 +000032352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032353$as_echo "no" >&6; }
32354fi
32355
32356
32357# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32358set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032360$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032361if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032362 $as_echo_n "(cached) " >&6
32363else
32364 case $DNGDecodeDelegate in
32365 [\\/]* | ?:[\\/]*)
32366 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32367 ;;
32368 *)
32369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32370for as_dir in $PATH
32371do
32372 IFS=$as_save_IFS
32373 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032374 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032376 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032378 break 2
32379 fi
32380done
cristy8b350f62009-11-15 23:12:43 +000032381 done
cristy3ed852e2009-09-05 21:47:34 +000032382IFS=$as_save_IFS
32383
32384 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32385 ;;
32386esac
32387fi
32388DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32389if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032391$as_echo "$DNGDecodeDelegate" >&6; }
32392else
cristy8b350f62009-11-15 23:12:43 +000032393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032394$as_echo "no" >&6; }
32395fi
32396
32397
32398# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32399set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032401$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032402if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032403 $as_echo_n "(cached) " >&6
32404else
32405 case $GVCDecodeDelegate in
32406 [\\/]* | ?:[\\/]*)
32407 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32408 ;;
32409 *)
32410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32411for as_dir in $PATH
32412do
32413 IFS=$as_save_IFS
32414 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032417 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032419 break 2
32420 fi
32421done
cristy8b350f62009-11-15 23:12:43 +000032422 done
cristy3ed852e2009-09-05 21:47:34 +000032423IFS=$as_save_IFS
32424
32425 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32426 ;;
32427esac
32428fi
32429GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32430if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032432$as_echo "$GVCDecodeDelegate" >&6; }
32433else
cristy8b350f62009-11-15 23:12:43 +000032434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032435$as_echo "no" >&6; }
32436fi
32437
32438
32439# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32440set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032442$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032443if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032444 $as_echo_n "(cached) " >&6
32445else
32446 case $DVIDecodeDelegate in
32447 [\\/]* | ?:[\\/]*)
32448 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32449 ;;
32450 *)
32451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32452for as_dir in $PATH
32453do
32454 IFS=$as_save_IFS
32455 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032456 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032458 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032460 break 2
32461 fi
32462done
cristy8b350f62009-11-15 23:12:43 +000032463 done
cristy3ed852e2009-09-05 21:47:34 +000032464IFS=$as_save_IFS
32465
32466 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32467 ;;
32468esac
32469fi
32470DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32471if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032473$as_echo "$DVIDecodeDelegate" >&6; }
32474else
cristy8b350f62009-11-15 23:12:43 +000032475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032476$as_echo "no" >&6; }
32477fi
32478
32479
32480# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32481set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032483$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032484if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032485 $as_echo_n "(cached) " >&6
32486else
32487 case $EchoDelegate in
32488 [\\/]* | ?:[\\/]*)
32489 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32490 ;;
32491 *)
32492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32493for as_dir in $PATH
32494do
32495 IFS=$as_save_IFS
32496 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032497 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032499 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032501 break 2
32502 fi
32503done
cristy8b350f62009-11-15 23:12:43 +000032504 done
cristy3ed852e2009-09-05 21:47:34 +000032505IFS=$as_save_IFS
32506
32507 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32508 ;;
32509esac
32510fi
32511EchoDelegate=$ac_cv_path_EchoDelegate
32512if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032514$as_echo "$EchoDelegate" >&6; }
32515else
cristy8b350f62009-11-15 23:12:43 +000032516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032517$as_echo "no" >&6; }
32518fi
32519
32520
32521# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32522set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032524$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032525if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032526 $as_echo_n "(cached) " >&6
32527else
32528 case $EditorDelegate in
32529 [\\/]* | ?:[\\/]*)
32530 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32531 ;;
32532 *)
32533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32534for as_dir in $PATH
32535do
32536 IFS=$as_save_IFS
32537 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032538 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032540 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032542 break 2
32543 fi
32544done
cristy8b350f62009-11-15 23:12:43 +000032545 done
cristy3ed852e2009-09-05 21:47:34 +000032546IFS=$as_save_IFS
32547
32548 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32549 ;;
32550esac
32551fi
32552EditorDelegate=$ac_cv_path_EditorDelegate
32553if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032555$as_echo "$EditorDelegate" >&6; }
32556else
cristy8b350f62009-11-15 23:12:43 +000032557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032558$as_echo "no" >&6; }
32559fi
32560
32561
32562# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32563set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032565$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032566if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032567 $as_echo_n "(cached) " >&6
32568else
32569 case $FIGDecodeDelegate in
32570 [\\/]* | ?:[\\/]*)
32571 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32572 ;;
32573 *)
32574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32575for as_dir in $PATH
32576do
32577 IFS=$as_save_IFS
32578 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032579 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032581 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032583 break 2
32584 fi
32585done
cristy8b350f62009-11-15 23:12:43 +000032586 done
cristy3ed852e2009-09-05 21:47:34 +000032587IFS=$as_save_IFS
32588
32589 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32590 ;;
32591esac
32592fi
32593FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32594if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032596$as_echo "$FIGDecodeDelegate" >&6; }
32597else
cristy8b350f62009-11-15 23:12:43 +000032598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032599$as_echo "no" >&6; }
32600fi
32601
32602
32603# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32604set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032606$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032607if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032608 $as_echo_n "(cached) " >&6
32609else
32610 case $ConvertDelegate in
32611 [\\/]* | ?:[\\/]*)
32612 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32613 ;;
32614 *)
32615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32616for as_dir in $PATH
32617do
32618 IFS=$as_save_IFS
32619 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032620 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032622 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032624 break 2
32625 fi
32626done
cristy8b350f62009-11-15 23:12:43 +000032627 done
cristy3ed852e2009-09-05 21:47:34 +000032628IFS=$as_save_IFS
32629
32630 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32631 ;;
32632esac
32633fi
32634ConvertDelegate=$ac_cv_path_ConvertDelegate
32635if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032637$as_echo "$ConvertDelegate" >&6; }
32638else
cristy8b350f62009-11-15 23:12:43 +000032639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032640$as_echo "no" >&6; }
32641fi
32642
32643
32644# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32645set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032647$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032648if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032649 $as_echo_n "(cached) " >&6
32650else
32651 case $DisplayDelegate in
32652 [\\/]* | ?:[\\/]*)
32653 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32654 ;;
32655 *)
32656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32657for as_dir in $PATH
32658do
32659 IFS=$as_save_IFS
32660 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032661 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032663 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032665 break 2
32666 fi
32667done
cristy8b350f62009-11-15 23:12:43 +000032668 done
cristy3ed852e2009-09-05 21:47:34 +000032669IFS=$as_save_IFS
32670
32671 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32672 ;;
32673esac
32674fi
32675DisplayDelegate=$ac_cv_path_DisplayDelegate
32676if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032678$as_echo "$DisplayDelegate" >&6; }
32679else
cristy8b350f62009-11-15 23:12:43 +000032680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032681$as_echo "no" >&6; }
32682fi
32683
32684
32685# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32686set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032688$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032689if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032690 $as_echo_n "(cached) " >&6
32691else
32692 case $MogrifyDelegate in
32693 [\\/]* | ?:[\\/]*)
32694 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32695 ;;
32696 *)
32697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32698for as_dir in $PATH
32699do
32700 IFS=$as_save_IFS
32701 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032702 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032704 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032706 break 2
32707 fi
32708done
cristy8b350f62009-11-15 23:12:43 +000032709 done
cristy3ed852e2009-09-05 21:47:34 +000032710IFS=$as_save_IFS
32711
32712 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32713 ;;
32714esac
32715fi
32716MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32717if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032719$as_echo "$MogrifyDelegate" >&6; }
32720else
cristy8b350f62009-11-15 23:12:43 +000032721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032722$as_echo "no" >&6; }
32723fi
32724
32725
32726# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32727set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032729$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032730if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032731 $as_echo_n "(cached) " >&6
32732else
32733 case $GnuplotDecodeDelegate in
32734 [\\/]* | ?:[\\/]*)
32735 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32736 ;;
32737 *)
32738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32739for as_dir in $PATH
32740do
32741 IFS=$as_save_IFS
32742 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032743 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032745 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032747 break 2
32748 fi
32749done
cristy8b350f62009-11-15 23:12:43 +000032750 done
cristy3ed852e2009-09-05 21:47:34 +000032751IFS=$as_save_IFS
32752
32753 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32754 ;;
32755esac
32756fi
32757GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32758if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032760$as_echo "$GnuplotDecodeDelegate" >&6; }
32761else
cristy8b350f62009-11-15 23:12:43 +000032762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032763$as_echo "no" >&6; }
32764fi
32765
32766
cristy3ed852e2009-09-05 21:47:34 +000032767# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32768set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032770$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032771if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032772 $as_echo_n "(cached) " >&6
32773else
32774 case $HPGLDecodeDelegate in
32775 [\\/]* | ?:[\\/]*)
32776 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32777 ;;
32778 *)
32779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32780for as_dir in $PATH
32781do
32782 IFS=$as_save_IFS
32783 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032784 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032786 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032788 break 2
32789 fi
32790done
cristy8b350f62009-11-15 23:12:43 +000032791 done
cristy3ed852e2009-09-05 21:47:34 +000032792IFS=$as_save_IFS
32793
32794 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32795 ;;
32796esac
32797fi
32798HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32799if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032801$as_echo "$HPGLDecodeDelegate" >&6; }
32802else
cristy8b350f62009-11-15 23:12:43 +000032803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032804$as_echo "no" >&6; }
32805fi
32806
32807
32808# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32809set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032811$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032812if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032813 $as_echo_n "(cached) " >&6
32814else
32815 case $HTMLDecodeDelegate in
32816 [\\/]* | ?:[\\/]*)
32817 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32818 ;;
32819 *)
32820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32821for as_dir in $PATH
32822do
32823 IFS=$as_save_IFS
32824 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032825 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032827 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032829 break 2
32830 fi
32831done
cristy8b350f62009-11-15 23:12:43 +000032832 done
cristy3ed852e2009-09-05 21:47:34 +000032833IFS=$as_save_IFS
32834
32835 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32836 ;;
32837esac
32838fi
32839HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32840if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032842$as_echo "$HTMLDecodeDelegate" >&6; }
32843else
cristy8b350f62009-11-15 23:12:43 +000032844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032845$as_echo "no" >&6; }
32846fi
32847
32848
32849# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32850set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032852$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032853if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032854 $as_echo_n "(cached) " >&6
32855else
32856 case $ILBMDecodeDelegate in
32857 [\\/]* | ?:[\\/]*)
32858 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32859 ;;
32860 *)
32861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32862for as_dir in $PATH
32863do
32864 IFS=$as_save_IFS
32865 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032866 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032868 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032870 break 2
32871 fi
32872done
cristy8b350f62009-11-15 23:12:43 +000032873 done
cristy3ed852e2009-09-05 21:47:34 +000032874IFS=$as_save_IFS
32875
32876 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32877 ;;
32878esac
32879fi
32880ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32881if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032883$as_echo "$ILBMDecodeDelegate" >&6; }
32884else
cristy8b350f62009-11-15 23:12:43 +000032885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032886$as_echo "no" >&6; }
32887fi
32888
32889
32890# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32891set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032893$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032894if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032895 $as_echo_n "(cached) " >&6
32896else
32897 case $ILBMEncodeDelegate in
32898 [\\/]* | ?:[\\/]*)
32899 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32900 ;;
32901 *)
32902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32903for as_dir in $PATH
32904do
32905 IFS=$as_save_IFS
32906 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032907 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032909 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911 break 2
32912 fi
32913done
cristy8b350f62009-11-15 23:12:43 +000032914 done
cristy3ed852e2009-09-05 21:47:34 +000032915IFS=$as_save_IFS
32916
32917 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32918 ;;
32919esac
32920fi
32921ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32922if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032924$as_echo "$ILBMEncodeDelegate" >&6; }
32925else
cristy8b350f62009-11-15 23:12:43 +000032926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032927$as_echo "no" >&6; }
32928fi
32929
32930
32931# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32932set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032934$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032935if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032936 $as_echo_n "(cached) " >&6
32937else
32938 case $LPDelegate in
32939 [\\/]* | ?:[\\/]*)
32940 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32941 ;;
32942 *)
32943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32944for as_dir in $PATH
32945do
32946 IFS=$as_save_IFS
32947 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032950 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952 break 2
32953 fi
32954done
cristy8b350f62009-11-15 23:12:43 +000032955 done
cristy3ed852e2009-09-05 21:47:34 +000032956IFS=$as_save_IFS
32957
32958 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32959 ;;
32960esac
32961fi
32962LPDelegate=$ac_cv_path_LPDelegate
32963if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032965$as_echo "$LPDelegate" >&6; }
32966else
cristy8b350f62009-11-15 23:12:43 +000032967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032968$as_echo "no" >&6; }
32969fi
32970
32971
32972# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32973set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032975$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032976if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032977 $as_echo_n "(cached) " >&6
32978else
32979 case $LPRDelegate in
32980 [\\/]* | ?:[\\/]*)
32981 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32982 ;;
32983 *)
32984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32985for as_dir in $PATH
32986do
32987 IFS=$as_save_IFS
32988 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032991 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032993 break 2
32994 fi
32995done
cristy8b350f62009-11-15 23:12:43 +000032996 done
cristy3ed852e2009-09-05 21:47:34 +000032997IFS=$as_save_IFS
32998
32999 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33000 ;;
33001esac
33002fi
33003LPRDelegate=$ac_cv_path_LPRDelegate
33004if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033006$as_echo "$LPRDelegate" >&6; }
33007else
cristy8b350f62009-11-15 23:12:43 +000033008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033009$as_echo "no" >&6; }
33010fi
33011
33012
cristy3ed852e2009-09-05 21:47:34 +000033013# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33014set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033016$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033017if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033018 $as_echo_n "(cached) " >&6
33019else
33020 case $LaunchDelegate in
33021 [\\/]* | ?:[\\/]*)
33022 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33023 ;;
33024 *)
33025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33026for as_dir in $PATH
33027do
33028 IFS=$as_save_IFS
33029 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033030 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033032 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033034 break 2
33035 fi
33036done
cristy8b350f62009-11-15 23:12:43 +000033037 done
cristy3ed852e2009-09-05 21:47:34 +000033038IFS=$as_save_IFS
33039
33040 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33041 ;;
33042esac
33043fi
33044LaunchDelegate=$ac_cv_path_LaunchDelegate
33045if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033047$as_echo "$LaunchDelegate" >&6; }
33048else
cristy8b350f62009-11-15 23:12:43 +000033049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033050$as_echo "no" >&6; }
33051fi
33052
33053
33054# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33055set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033057$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033058if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033059 $as_echo_n "(cached) " >&6
33060else
33061 case $MANDelegate in
33062 [\\/]* | ?:[\\/]*)
33063 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33064 ;;
33065 *)
33066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33067for as_dir in $PATH
33068do
33069 IFS=$as_save_IFS
33070 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033071 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033073 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033075 break 2
33076 fi
33077done
cristy8b350f62009-11-15 23:12:43 +000033078 done
cristy3ed852e2009-09-05 21:47:34 +000033079IFS=$as_save_IFS
33080
33081 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33082 ;;
33083esac
33084fi
33085MANDelegate=$ac_cv_path_MANDelegate
33086if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033088$as_echo "$MANDelegate" >&6; }
33089else
cristy8b350f62009-11-15 23:12:43 +000033090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033091$as_echo "no" >&6; }
33092fi
33093
33094
33095# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33096set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033098$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033099if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033100 $as_echo_n "(cached) " >&6
33101else
33102 case $MPEGDecodeDelegate in
33103 [\\/]* | ?:[\\/]*)
33104 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33105 ;;
33106 *)
33107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33108for as_dir in $PATH
33109do
33110 IFS=$as_save_IFS
33111 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033114 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033116 break 2
33117 fi
33118done
cristy8b350f62009-11-15 23:12:43 +000033119 done
cristy3ed852e2009-09-05 21:47:34 +000033120IFS=$as_save_IFS
33121
33122 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33123 ;;
33124esac
33125fi
33126MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33127if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033129$as_echo "$MPEGDecodeDelegate" >&6; }
33130else
cristy8b350f62009-11-15 23:12:43 +000033131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033132$as_echo "no" >&6; }
33133fi
33134
33135
33136# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33137set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033139$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033140if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033141 $as_echo_n "(cached) " >&6
33142else
33143 case $MPEGEncodeDelegate in
33144 [\\/]* | ?:[\\/]*)
33145 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33146 ;;
33147 *)
33148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33149for as_dir in $PATH
33150do
33151 IFS=$as_save_IFS
33152 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033153 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033155 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033157 break 2
33158 fi
33159done
cristy8b350f62009-11-15 23:12:43 +000033160 done
cristy3ed852e2009-09-05 21:47:34 +000033161IFS=$as_save_IFS
33162
33163 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33164 ;;
33165esac
33166fi
33167MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33168if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033170$as_echo "$MPEGEncodeDelegate" >&6; }
33171else
cristy8b350f62009-11-15 23:12:43 +000033172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033173$as_echo "no" >&6; }
33174fi
33175
33176
cristy935c86e2010-06-05 23:50:07 +000033177# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33178set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33180$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033181if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033182 $as_echo_n "(cached) " >&6
33183else
33184 case $MrSIDDecodeDelegate in
33185 [\\/]* | ?:[\\/]*)
33186 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33187 ;;
33188 *)
33189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33190for as_dir in $PATH
33191do
33192 IFS=$as_save_IFS
33193 test -z "$as_dir" && as_dir=.
33194 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033196 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33198 break 2
33199 fi
33200done
33201 done
33202IFS=$as_save_IFS
33203
33204 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33205 ;;
33206esac
33207fi
33208MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33209if test -n "$MrSIDDecodeDelegate"; then
33210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33211$as_echo "$MrSIDDecodeDelegate" >&6; }
33212else
33213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33214$as_echo "no" >&6; }
33215fi
33216
33217
cristy3ed852e2009-09-05 21:47:34 +000033218# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33219set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033221$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033222if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033223 $as_echo_n "(cached) " >&6
33224else
33225 case $MVDelegate in
33226 [\\/]* | ?:[\\/]*)
33227 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33228 ;;
33229 *)
33230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33231for as_dir in $PATH
33232do
33233 IFS=$as_save_IFS
33234 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033235 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033237 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033239 break 2
33240 fi
33241done
cristy8b350f62009-11-15 23:12:43 +000033242 done
cristy3ed852e2009-09-05 21:47:34 +000033243IFS=$as_save_IFS
33244
33245 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33246 ;;
33247esac
33248fi
33249MVDelegate=$ac_cv_path_MVDelegate
33250if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033252$as_echo "$MVDelegate" >&6; }
33253else
cristy8b350f62009-11-15 23:12:43 +000033254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033255$as_echo "no" >&6; }
33256fi
33257
33258
33259# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33260set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033262$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033263if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033264 $as_echo_n "(cached) " >&6
33265else
33266 case $PCLDelegate in
33267 [\\/]* | ?:[\\/]*)
33268 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33269 ;;
33270 *)
33271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33272for as_dir in $PATH
33273do
33274 IFS=$as_save_IFS
33275 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033276 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033278 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033280 break 2
33281 fi
33282done
cristy8b350f62009-11-15 23:12:43 +000033283 done
cristy3ed852e2009-09-05 21:47:34 +000033284IFS=$as_save_IFS
33285
33286 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33287 ;;
33288esac
33289fi
33290PCLDelegate=$ac_cv_path_PCLDelegate
33291if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033293$as_echo "$PCLDelegate" >&6; }
33294else
cristy8b350f62009-11-15 23:12:43 +000033295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033296$as_echo "no" >&6; }
33297fi
33298
33299
33300# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33301set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033303$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033304if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033305 $as_echo_n "(cached) " >&6
33306else
33307 case $PGPDecodeDelegate in
33308 [\\/]* | ?:[\\/]*)
33309 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33310 ;;
33311 *)
33312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33313for as_dir in $PATH
33314do
33315 IFS=$as_save_IFS
33316 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033317 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033319 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033321 break 2
33322 fi
33323done
cristy8b350f62009-11-15 23:12:43 +000033324 done
cristy3ed852e2009-09-05 21:47:34 +000033325IFS=$as_save_IFS
33326
33327 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33328 ;;
33329esac
33330fi
33331PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33332if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033334$as_echo "$PGPDecodeDelegate" >&6; }
33335else
cristy8b350f62009-11-15 23:12:43 +000033336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033337$as_echo "no" >&6; }
33338fi
33339
33340
33341# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33342set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033344$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033345if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033346 $as_echo_n "(cached) " >&6
33347else
33348 case $POVDelegate in
33349 [\\/]* | ?:[\\/]*)
33350 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33351 ;;
33352 *)
33353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33354for as_dir in $PATH
33355do
33356 IFS=$as_save_IFS
33357 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033358 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033360 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033362 break 2
33363 fi
33364done
cristy8b350f62009-11-15 23:12:43 +000033365 done
cristy3ed852e2009-09-05 21:47:34 +000033366IFS=$as_save_IFS
33367
33368 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33369 ;;
33370esac
33371fi
33372POVDelegate=$ac_cv_path_POVDelegate
33373if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033375$as_echo "$POVDelegate" >&6; }
33376else
cristy8b350f62009-11-15 23:12:43 +000033377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033378$as_echo "no" >&6; }
33379fi
33380
33381
33382for ac_prog in gsx gsc "$PSDelegateDefault"
33383do
33384 # Extract the first word of "$ac_prog", so it can be a program name with args.
33385set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033387$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033388if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033389 $as_echo_n "(cached) " >&6
33390else
33391 case $PSDelegate in
33392 [\\/]* | ?:[\\/]*)
33393 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33394 ;;
33395 *)
33396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33397for as_dir in $PATH
33398do
33399 IFS=$as_save_IFS
33400 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033401 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033403 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033405 break 2
33406 fi
33407done
cristy8b350f62009-11-15 23:12:43 +000033408 done
cristy3ed852e2009-09-05 21:47:34 +000033409IFS=$as_save_IFS
33410
33411 ;;
33412esac
33413fi
33414PSDelegate=$ac_cv_path_PSDelegate
33415if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033417$as_echo "$PSDelegate" >&6; }
33418else
cristy8b350f62009-11-15 23:12:43 +000033419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033420$as_echo "no" >&6; }
33421fi
33422
33423
33424 test -n "$PSDelegate" && break
33425done
33426test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33427
33428# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33429set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033431$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033432if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033433 $as_echo_n "(cached) " >&6
33434else
33435 case $RLEEncodeDelegate in
33436 [\\/]* | ?:[\\/]*)
33437 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33438 ;;
33439 *)
33440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33441for as_dir in $PATH
33442do
33443 IFS=$as_save_IFS
33444 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033447 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033449 break 2
33450 fi
33451done
cristy8b350f62009-11-15 23:12:43 +000033452 done
cristy3ed852e2009-09-05 21:47:34 +000033453IFS=$as_save_IFS
33454
33455 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33456 ;;
33457esac
33458fi
33459RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33460if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033462$as_echo "$RLEEncodeDelegate" >&6; }
33463else
cristy8b350f62009-11-15 23:12:43 +000033464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033465$as_echo "no" >&6; }
33466fi
33467
33468
33469# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33470set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033472$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033473if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033474 $as_echo_n "(cached) " >&6
33475else
33476 case $RMDelegate in
33477 [\\/]* | ?:[\\/]*)
33478 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33479 ;;
33480 *)
33481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33482for as_dir in $PATH
33483do
33484 IFS=$as_save_IFS
33485 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033488 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490 break 2
33491 fi
33492done
cristy8b350f62009-11-15 23:12:43 +000033493 done
cristy3ed852e2009-09-05 21:47:34 +000033494IFS=$as_save_IFS
33495
33496 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33497 ;;
33498esac
33499fi
33500RMDelegate=$ac_cv_path_RMDelegate
33501if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033503$as_echo "$RMDelegate" >&6; }
33504else
cristy8b350f62009-11-15 23:12:43 +000033505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033506$as_echo "no" >&6; }
33507fi
33508
33509
cristy4689cf02010-02-17 21:15:45 +000033510# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33511set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33513$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033514if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033515 $as_echo_n "(cached) " >&6
33516else
33517 case $RSVGDecodeDelegate in
33518 [\\/]* | ?:[\\/]*)
33519 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33520 ;;
33521 *)
33522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33523for as_dir in $PATH
33524do
33525 IFS=$as_save_IFS
33526 test -z "$as_dir" && as_dir=.
33527 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033529 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33531 break 2
33532 fi
33533done
33534 done
33535IFS=$as_save_IFS
33536
33537 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33538 ;;
33539esac
33540fi
33541RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33542if test -n "$RSVGDecodeDelegate"; then
33543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33544$as_echo "$RSVGDecodeDelegate" >&6; }
33545else
33546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33547$as_echo "no" >&6; }
33548fi
33549
33550
cristy3ed852e2009-09-05 21:47:34 +000033551# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33552set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033554$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033555if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033556 $as_echo_n "(cached) " >&6
33557else
33558 case $SCANDecodeDelegate in
33559 [\\/]* | ?:[\\/]*)
33560 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33561 ;;
33562 *)
33563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33564for as_dir in $PATH
33565do
33566 IFS=$as_save_IFS
33567 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033570 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033572 break 2
33573 fi
33574done
cristy8b350f62009-11-15 23:12:43 +000033575 done
cristy3ed852e2009-09-05 21:47:34 +000033576IFS=$as_save_IFS
33577
33578 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33579 ;;
33580esac
33581fi
33582SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33583if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033585$as_echo "$SCANDecodeDelegate" >&6; }
33586else
cristy8b350f62009-11-15 23:12:43 +000033587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033588$as_echo "no" >&6; }
33589fi
33590
33591
cristyec6934f2012-08-14 18:38:40 +000033592# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
33593set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
33594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33595$as_echo_n "checking for $ac_word... " >&6; }
33596if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
33597 $as_echo_n "(cached) " >&6
33598else
33599 case $SVGDecodeDelegate in
33600 [\\/]* | ?:[\\/]*)
33601 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
33602 ;;
33603 *)
33604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33605for as_dir in $PATH
33606do
33607 IFS=$as_save_IFS
33608 test -z "$as_dir" && as_dir=.
33609 for ac_exec_ext in '' $ac_executable_extensions; do
33610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33611 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33613 break 2
33614 fi
33615done
33616 done
33617IFS=$as_save_IFS
33618
33619 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
33620 ;;
33621esac
33622fi
33623SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
33624if test -n "$SVGDecodeDelegate"; then
33625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
33626$as_echo "$SVGDecodeDelegate" >&6; }
33627else
33628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33629$as_echo "no" >&6; }
33630fi
33631
33632
cristy3ed852e2009-09-05 21:47:34 +000033633# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33634set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033636$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033637if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033638 $as_echo_n "(cached) " >&6
33639else
33640 case $TXTDelegate in
33641 [\\/]* | ?:[\\/]*)
33642 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33643 ;;
33644 *)
33645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33646for as_dir in $PATH
33647do
33648 IFS=$as_save_IFS
33649 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033650 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033652 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033654 break 2
33655 fi
33656done
cristy8b350f62009-11-15 23:12:43 +000033657 done
cristy3ed852e2009-09-05 21:47:34 +000033658IFS=$as_save_IFS
33659
33660 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33661 ;;
33662esac
33663fi
33664TXTDelegate=$ac_cv_path_TXTDelegate
33665if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033667$as_echo "$TXTDelegate" >&6; }
33668else
cristy8b350f62009-11-15 23:12:43 +000033669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033670$as_echo "no" >&6; }
33671fi
33672
33673
cristy5ac9ac82010-07-29 13:24:24 +000033674# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33675set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33677$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033678if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033679 $as_echo_n "(cached) " >&6
33680else
33681 case $UniconvertorDelegate in
33682 [\\/]* | ?:[\\/]*)
33683 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33684 ;;
33685 *)
33686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33687for as_dir in $PATH
33688do
33689 IFS=$as_save_IFS
33690 test -z "$as_dir" && as_dir=.
33691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000033693 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33695 break 2
33696 fi
33697done
33698 done
33699IFS=$as_save_IFS
33700
33701 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33702 ;;
33703esac
33704fi
33705UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33706if test -n "$UniconvertorDelegate"; then
33707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33708$as_echo "$UniconvertorDelegate" >&6; }
33709else
33710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33711$as_echo "no" >&6; }
33712fi
33713
33714
cristy3ed852e2009-09-05 21:47:34 +000033715# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33716set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033718$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033719if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033720 $as_echo_n "(cached) " >&6
33721else
33722 case $WMFDecodeDelegate in
33723 [\\/]* | ?:[\\/]*)
33724 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33725 ;;
33726 *)
33727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33728for as_dir in $PATH
33729do
33730 IFS=$as_save_IFS
33731 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033732 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033734 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736 break 2
33737 fi
33738done
cristy8b350f62009-11-15 23:12:43 +000033739 done
cristy3ed852e2009-09-05 21:47:34 +000033740IFS=$as_save_IFS
33741
33742 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33743 ;;
33744esac
33745fi
33746WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33747if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033749$as_echo "$WMFDecodeDelegate" >&6; }
33750else
cristy8b350f62009-11-15 23:12:43 +000033751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033752$as_echo "no" >&6; }
33753fi
33754
33755
33756# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33757set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033759$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033760if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033761 $as_echo_n "(cached) " >&6
33762else
33763 case $WWWDecodeDelegate in
33764 [\\/]* | ?:[\\/]*)
33765 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33766 ;;
33767 *)
33768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33769for as_dir in $PATH
33770do
33771 IFS=$as_save_IFS
33772 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033773 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033775 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033777 break 2
33778 fi
33779done
cristy8b350f62009-11-15 23:12:43 +000033780 done
cristy3ed852e2009-09-05 21:47:34 +000033781IFS=$as_save_IFS
33782
33783 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33784 ;;
33785esac
33786fi
33787WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33788if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033790$as_echo "$WWWDecodeDelegate" >&6; }
33791else
cristy8b350f62009-11-15 23:12:43 +000033792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033793$as_echo "no" >&6; }
33794fi
33795
33796
33797# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33798set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033800$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033801if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033802 $as_echo_n "(cached) " >&6
33803else
33804 case $XPSDelegate in
33805 [\\/]* | ?:[\\/]*)
33806 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33807 ;;
33808 *)
33809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33810for as_dir in $PATH
33811do
33812 IFS=$as_save_IFS
33813 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033814 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033816 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033818 break 2
33819 fi
33820done
cristy8b350f62009-11-15 23:12:43 +000033821 done
cristy3ed852e2009-09-05 21:47:34 +000033822IFS=$as_save_IFS
33823
33824 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33825 ;;
33826esac
33827fi
33828XPSDelegate=$ac_cv_path_XPSDelegate
33829if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033831$as_echo "$XPSDelegate" >&6; }
33832else
cristy8b350f62009-11-15 23:12:43 +000033833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033834$as_echo "no" >&6; }
33835fi
33836
33837
33838# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33839set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033841$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033842if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033843 $as_echo_n "(cached) " >&6
33844else
33845 case $ZipDelegate in
33846 [\\/]* | ?:[\\/]*)
33847 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33848 ;;
33849 *)
33850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33851for as_dir in $PATH
33852do
33853 IFS=$as_save_IFS
33854 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033855 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033857 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859 break 2
33860 fi
33861done
cristy8b350f62009-11-15 23:12:43 +000033862 done
cristy3ed852e2009-09-05 21:47:34 +000033863IFS=$as_save_IFS
33864
33865 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33866 ;;
33867esac
33868fi
33869ZipDelegate=$ac_cv_path_ZipDelegate
33870if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033872$as_echo "$ZipDelegate" >&6; }
33873else
cristy8b350f62009-11-15 23:12:43 +000033874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033875$as_echo "no" >&6; }
33876fi
33877
33878
33879
33880# Prefer lpr to lp; lp needs options tacked on.
33881if test "$LPRDelegate" != no; then
33882 PrintDelegate="$LPRDelegate"
33883else
33884 PrintDelegate="$LPDelegate -c -s"
33885fi
33886
33887
33888# Installed ImageMagick utiltity paths
33889ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33890DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33891MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33892
33893# Set delegate booleans
33894have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33895have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33896have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33897have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33898have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033899have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033900have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33901have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033902have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33903have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33904
33905#
33906# Test for font directories
33907#
33908type_include_files=''
33909
cristy430a7312010-01-21 20:44:04 +000033910# Dejavu fonts.
33911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33912$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33913dejavu_font_dir=''
33914if test "${with_dejavu_font_dir}" != 'default'; then
33915 dejavu_font_dir="${with_dejavu_font_dir}/"
33916else
33917 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33918 if test -f "${font_dir}DejaVuSerif.ttf"; then
33919 dejavu_font_dir="${font_dir}"
33920 break 1
33921 fi
33922 done
33923fi
33924if test "${dejavu_font_dir}x" != 'x'; then
33925 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000033926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
33927$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000033928else
cristyad38abe2012-12-23 23:03:21 +000033929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33930$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000033931fi
33932
33933
cristy3ed852e2009-09-05 21:47:34 +000033934# Windows
33935windows_font_dir=''
33936if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33937 windows_font_dir="${with_windows_font_dir}/"
33938fi
cristy430a7312010-01-21 20:44:04 +000033939if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033940 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33941 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33942 fi
33943 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33944 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33945 fi
33946 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33947 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33948 fi
33949fi
cristy430a7312010-01-21 20:44:04 +000033950if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033951 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33952fi
33953
33954
33955# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000033956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000033957$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33958ghostscript_font_dir=''
33959if test "${with_gs_font_dir}" != 'default'; then
33960 ghostscript_font_dir="${with_gs_font_dir}/"
33961else
33962 if test "${native_win32_build}" = 'yes'; then
33963 # Native Windows Build
33964 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33965 if test -f "${font_dir}a010013l.pfb"; then
33966 ghostscript_font_dir="$font_dir"
33967 break 1
33968 fi
33969 done
33970 if test "${PSDelegate}" != 'gswin32c'; then
33971 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33972 fi
33973 else
33974 # Linux / Mac OS X / Unix Build
33975 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
33976 if test -f "${font_dir}a010013l.pfb"; then
33977 ghostscript_font_dir="${font_dir}"
33978 break 1
33979 fi
33980 done
33981 if test "${ghostscript_font_dir}x" = 'x'; then
33982 if test "$PSDelegate" != 'gs'; then
33983 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33984 fi
33985 fi
33986 fi
33987fi
33988if test "${ghostscript_font_dir}x" != 'x'; then
33989 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000033990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
33991$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033992else
cristyad38abe2012-12-23 23:03:21 +000033993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33994$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000033995fi
33996
33997case "${build_os}" in
33998 mingw* )
33999 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34000 ;;
34001esac
34002
34003
34004
34005#
34006# Handle case where user doesn't want frozen paths
34007#
34008if test "$with_frozenpaths" != 'yes'; then
34009 # Re-set delegate definitions to default (no paths)
34010 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034011 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34012 BZIPDelegate="$BZIPDelegateDefault"
34013 BrowseDelegate="$BrowseDelegateDefault"
34014 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34015 CatDelegate="$CatDelegateDefault"
34016 ConvertDelegate="$ConvertDelegateDefault"
34017 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34018 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34019 EchoDelegate="$EchoDelegateDefault"
34020 EditorDelegate="$EditorDelegateDefault"
34021 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34022 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34023 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34024 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34025 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34026 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34027 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034028 LaunchDelegate="$LaunchDelegateDefault"
34029 MANDelegate="$MANDelegateDefault"
34030 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34031 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034032 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034033 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34034 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034035 PCLDelegate="$PCLDelegateDefault"
34036 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34037 POVDelegate="$POVDelegateDefault"
34038 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034039 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34040 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034041 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034042 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034043 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034044 ShowImageDelegate="$ShowImageDelegateDefault"
34045 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034046 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034047 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34048 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34049 XPSDelegate="$XPSDelegateDefault"
34050 ZipDelegate="$ZipDelegateDefault"
34051fi
34052
34053# Delegate substitutions
34054
34055
34056
34057
34058
34059
34060
34061
34062
34063
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
34074
34075
34076
34077
34078
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
34092
34093
cristy3ed852e2009-09-05 21:47:34 +000034094#
34095# RPM support.
34096#
34097RPM=''
34098for ac_prog in gnutar gtar tar
34099do
34100 # Extract the first word of "$ac_prog", so it can be a program name with args.
34101set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034103$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034104if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034105 $as_echo_n "(cached) " >&6
34106else
34107 if test -n "$TAR"; then
34108 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34109else
34110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34111for as_dir in $PATH
34112do
34113 IFS=$as_save_IFS
34114 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034115 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034117 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034119 break 2
34120 fi
34121done
cristy8b350f62009-11-15 23:12:43 +000034122 done
cristy3ed852e2009-09-05 21:47:34 +000034123IFS=$as_save_IFS
34124
34125fi
34126fi
34127TAR=$ac_cv_prog_TAR
34128if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034130$as_echo "$TAR" >&6; }
34131else
cristy8b350f62009-11-15 23:12:43 +000034132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034133$as_echo "no" >&6; }
34134fi
34135
34136
34137 test -n "$TAR" && break
34138done
34139
34140for ac_prog in perl
34141do
34142 # Extract the first word of "$ac_prog", so it can be a program name with args.
34143set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034145$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034146if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034147 $as_echo_n "(cached) " >&6
34148else
34149 if test -n "$PERL"; then
34150 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34151else
34152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34153for as_dir in $PATH
34154do
34155 IFS=$as_save_IFS
34156 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034157 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034159 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034161 break 2
34162 fi
34163done
cristy8b350f62009-11-15 23:12:43 +000034164 done
cristy3ed852e2009-09-05 21:47:34 +000034165IFS=$as_save_IFS
34166
34167fi
34168fi
34169PERL=$ac_cv_prog_PERL
34170if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034172$as_echo "$PERL" >&6; }
34173else
cristy8b350f62009-11-15 23:12:43 +000034174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034175$as_echo "no" >&6; }
34176fi
34177
34178
34179 test -n "$PERL" && break
34180done
34181
34182for ac_prog in rpmbuild rpm
34183do
34184 # Extract the first word of "$ac_prog", so it can be a program name with args.
34185set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034187$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034188if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034189 $as_echo_n "(cached) " >&6
34190else
34191 if test -n "$RPM"; then
34192 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34193else
34194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34195for as_dir in $PATH
34196do
34197 IFS=$as_save_IFS
34198 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034199 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034201 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034203 break 2
34204 fi
34205done
cristy8b350f62009-11-15 23:12:43 +000034206 done
cristy3ed852e2009-09-05 21:47:34 +000034207IFS=$as_save_IFS
34208
34209fi
34210fi
34211RPM=$ac_cv_prog_RPM
34212if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034214$as_echo "$RPM" >&6; }
34215else
cristy8b350f62009-11-15 23:12:43 +000034216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034217$as_echo "no" >&6; }
34218fi
34219
34220
34221 test -n "$RPM" && break
34222done
34223
34224
cristy73bd4a52010-10-05 11:24:23 +000034225ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34226
34227
34228AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34229
34230
34231AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34232
34233
34234AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34235
34236
34237 if test "x$RPM" != "x" ; then
34238 RPM_DELEGATE_TRUE=
34239 RPM_DELEGATE_FALSE='#'
34240else
34241 RPM_DELEGATE_TRUE='#'
34242 RPM_DELEGATE_FALSE=
34243fi
34244
cristy3ed852e2009-09-05 21:47:34 +000034245
34246#
34247# 7ZIP support (http://p7zip.sourceforge.net/)
34248#
34249P7ZIP=''
34250for ac_prog in 7za
34251do
34252 # Extract the first word of "$ac_prog", so it can be a program name with args.
34253set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034255$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034256if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034257 $as_echo_n "(cached) " >&6
34258else
34259 if test -n "$P7ZIP"; then
34260 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34261else
34262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34263for as_dir in $PATH
34264do
34265 IFS=$as_save_IFS
34266 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034267 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034269 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034271 break 2
34272 fi
34273done
cristy8b350f62009-11-15 23:12:43 +000034274 done
cristy3ed852e2009-09-05 21:47:34 +000034275IFS=$as_save_IFS
34276
34277fi
34278fi
34279P7ZIP=$ac_cv_prog_P7ZIP
34280if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034282$as_echo "$P7ZIP" >&6; }
34283else
cristy8b350f62009-11-15 23:12:43 +000034284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034285$as_echo "no" >&6; }
34286fi
34287
34288
34289 test -n "$P7ZIP" && break
34290done
34291
34292
cristy73bd4a52010-10-05 11:24:23 +000034293 if test "x$P7ZIP" != "x" ; then
34294 P7ZIP_DELEGATE_TRUE=
34295 P7ZIP_DELEGATE_FALSE='#'
34296else
34297 P7ZIP_DELEGATE_TRUE='#'
34298 P7ZIP_DELEGATE_FALSE=
34299fi
34300
cristy3ed852e2009-09-05 21:47:34 +000034301
34302#
34303# ZIP support (http://www.info-zip.org/Zip.html)
34304#
34305ZIP=''
34306for ac_prog in zip
34307do
34308 # Extract the first word of "$ac_prog", so it can be a program name with args.
34309set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034311$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034312if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034313 $as_echo_n "(cached) " >&6
34314else
34315 if test -n "$ZIP"; then
34316 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34317else
34318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34319for as_dir in $PATH
34320do
34321 IFS=$as_save_IFS
34322 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034325 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034327 break 2
34328 fi
34329done
cristy8b350f62009-11-15 23:12:43 +000034330 done
cristy3ed852e2009-09-05 21:47:34 +000034331IFS=$as_save_IFS
34332
34333fi
34334fi
34335ZIP=$ac_cv_prog_ZIP
34336if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034338$as_echo "$ZIP" >&6; }
34339else
cristy8b350f62009-11-15 23:12:43 +000034340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034341$as_echo "no" >&6; }
34342fi
34343
34344
34345 test -n "$ZIP" && break
34346done
34347
34348
cristy73bd4a52010-10-05 11:24:23 +000034349 if test "x$ZIP" != "x" ; then
34350 ZIP_DELEGATE_TRUE=
34351 ZIP_DELEGATE_FALSE='#'
34352else
34353 ZIP_DELEGATE_TRUE='#'
34354 ZIP_DELEGATE_FALSE=
34355fi
34356
cristy3ed852e2009-09-05 21:47:34 +000034357
34358#
34359# GhostPCL related configuration.
34360#
34361PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034362PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034363PCLMonoDevice=pbmraw
34364if test -z "$PCLVersion"; then
34365 PCLVersion='unknown'
34366fi
34367if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34369$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034371$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34373$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034374 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034376$as_echo_n "checking for pcl color device... " >&6; }
34377 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34378 :
34379 else
34380 PCLColorDevice=ppmraw
34381 fi
cristyad38abe2012-12-23 23:03:21 +000034382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34383$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034384
34385 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034387$as_echo_n "checking for pcl CMYK device... " >&6; }
34388 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34389 :
34390 else
34391 PCLCMYKDevice=$PCLColorDevice
34392 fi
cristyad38abe2012-12-23 23:03:21 +000034393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34394$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034395
34396 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034398$as_echo_n "checking for pcl mono device... " >&6; }
34399 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34400 :
34401 else
34402 PCLMonoDevice=$PCLColorDevice
34403 fi
cristyad38abe2012-12-23 23:03:21 +000034404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34405$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034406fi
34407
34408
34409
34410
34411
34412
34413#
34414# GhostXPS related configuration.
34415#
34416XPSColorDevice=ppmraw
34417XPSCMYKDevice=bmpsep8
34418XPSMonoDevice=pbmraw
34419if test -z "$XPSVersion"; then
34420 XPSVersion='unknown'
34421fi
34422if test $have_xps = '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 XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034426$as_echo_n "checking for XPS... " >&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 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034431$as_echo_n "checking for xps color device... " >&6; }
34432 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34433 :
34434 else
34435 XPSColorDevice=ppmraw
34436 fi
cristyad38abe2012-12-23 23:03:21 +000034437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
34438$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034439
34440 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034442$as_echo_n "checking for xps CMYK device... " >&6; }
34443 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34444 :
34445 else
34446 XPSCMYKDevice=$XPSColorDevice
34447 fi
cristyad38abe2012-12-23 23:03:21 +000034448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
34449$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034450
34451 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034453$as_echo_n "checking for xps mono device... " >&6; }
34454 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34455 :
34456 else
34457 XPSMonoDevice=$XPSColorDevice
34458 fi
cristyad38abe2012-12-23 23:03:21 +000034459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
34460$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034461fi
34462
34463
34464
34465
34466
34467
34468#
34469# Ghostscript related configuration.
34470#
cristya97426c2011-02-04 01:41:27 +000034471GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034472GSColorDevice=pnmraw
34473GSCMYKDevice=pam
34474GSMonoDevice=pbmraw
34475GSPDFDevice=pdfwrite
34476GSPSDevice=pswrite
34477GSEPSDevice=epswrite
34478GSVersion='unknown'
34479if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34481$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034483$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34485$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034487$as_echo_n "checking for Ghostscript version... " >&6; }
34488 if GSVersion=`$PSDelegate --version`; then
34489 :
34490 else
34491 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34492 fi
cristyad38abe2012-12-23 23:03:21 +000034493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
34494$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034495
34496 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034498$as_echo_n "checking for gs alpha device... " >&6; }
34499 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34500 :
34501 else
34502 GSAlphaDevice=pnmraw
34503 fi
cristyad38abe2012-12-23 23:03:21 +000034504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
34505$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034506
34507 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034509$as_echo_n "checking for gs color device... " >&6; }
34510 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34511 :
34512 else
34513 GSColorDevice=pnmraw
34514 fi
cristyad38abe2012-12-23 23:03:21 +000034515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
34516$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034517
34518 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034520$as_echo_n "checking for gs CMYK device... " >&6; }
34521 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34522 :
34523 else
34524 GSCMYKDevice=bmpsep8
34525 fi
cristyad38abe2012-12-23 23:03:21 +000034526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
34527$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034528
34529 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034531$as_echo_n "checking for gs mono device... " >&6; }
34532 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34533 :
34534 else
34535 GSMonoDevice=$GSColorDevice
34536 fi
cristyad38abe2012-12-23 23:03:21 +000034537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
34538$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034539
34540 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034542$as_echo_n "checking for gs PDF writing device... " >&6; }
34543 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34544 :
34545 else
34546 GSPDFDevice=nodevice
34547 fi
cristyad38abe2012-12-23 23:03:21 +000034548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
34549$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034550
34551 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034553$as_echo_n "checking for gs PS writing device... " >&6; }
34554 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34555 :
34556 else
34557 GSPSDevice=nodevice
34558 fi
cristyad38abe2012-12-23 23:03:21 +000034559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
34560$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034561
34562 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034564$as_echo_n "checking for gs EPS writing device... " >&6; }
34565 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34566 :
34567 else
34568 GSEPSDevice=nodevice
34569 fi
cristyad38abe2012-12-23 23:03:21 +000034570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
34571$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034572fi
34573
34574
34575
34576
34577
34578
34579
34580
34581
34582
34583#
34584# PerlMagick-related configuration
34585#
34586
34587# Look for PERL if PerlMagick requested
34588# If name/path of desired PERL interpreter is specified, look for that one first
34589have_perl='no'
34590if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000034591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34592$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034594$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34596$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034597 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034599$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034600if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034601 $as_echo_n "(cached) " >&6
34602else
34603 ac_cv_path_PERL="$with_perl"
34604fi
cristy8b350f62009-11-15 23:12:43 +000034605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034606$as_echo "$ac_cv_path_PERL" >&6; };
34607 PERL=$ac_cv_path_PERL
34608 have_perl="$ac_cv_path_PERL"
34609 else
34610 for ac_prog in perl perl5
34611do
34612 # Extract the first word of "$ac_prog", so it can be a program name with args.
34613set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034615$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034616if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034617 $as_echo_n "(cached) " >&6
34618else
34619 case $PERL in
34620 [\\/]* | ?:[\\/]*)
34621 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34622 ;;
34623 *)
34624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34625for as_dir in $PATH
34626do
34627 IFS=$as_save_IFS
34628 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034629 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034631 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034633 break 2
34634 fi
34635done
cristy8b350f62009-11-15 23:12:43 +000034636 done
cristy3ed852e2009-09-05 21:47:34 +000034637IFS=$as_save_IFS
34638
34639 ;;
34640esac
34641fi
34642PERL=$ac_cv_path_PERL
34643if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034645$as_echo "$PERL" >&6; }
34646else
cristy8b350f62009-11-15 23:12:43 +000034647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034648$as_echo "no" >&6; }
34649fi
34650
34651
34652 test -n "$PERL" && break
34653done
34654 if test "$ac_cv_path_PERL"; then
34655 have_perl="$ac_cv_path_PERL"
34656 fi
34657 fi
34658fi
34659
cristy949301e2010-01-06 01:38:40 +000034660if test "$with_perl" != 'yes' ; then
34661 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34662fi
34663
34664PERL_SUPPORTS_DESTDIR='no'
34665
cristy3ed852e2009-09-05 21:47:34 +000034666with_perl_static='no'
34667with_perl_dynamic='no'
34668if test "$have_perl" != 'no'; then
34669 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34670 with_perl_static='yes'
34671 fi
34672 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34673 with_perl_dynamic='yes'
34674 fi
34675 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034676
34677
34678
34679
34680 if test -n "$PERL"; then :
34681
34682 ax_perl_version="5.8.1"
34683
34684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34685$as_echo_n "checking for perl version... " >&6; }
34686
34687 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34688
34689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34690$as_echo "$perl_version" >&6; }
34691
34692 PERL_VERSION=$perl_version
34693
34694
34695
34696
34697
34698 # Used to indicate true or false condition
34699 ax_compare_version=false
34700
34701 # Convert the two version strings to be compared into a format that
34702 # allows a simple string comparison. The end result is that a version
34703 # string of the form 1.12.5-r617 will be converted to the form
34704 # 0001001200050617. In other words, each number is zero padded to four
34705 # digits, and non digits are removed.
34706
34707 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34708 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34709 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34710 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34711 -e 's/[^0-9]//g'`
34712
34713
34714 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34715 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34716 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34717 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34718 -e 's/[^0-9]//g'`
34719
34720
34721 ax_compare_version=`echo "x$ax_compare_version_A
34722x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34723
34724
34725
34726 if test "$ax_compare_version" = "true" ; then
34727
34728 :
34729 PERL_SUPPORTS_DESTDIR='yes'
34730
34731 else
34732 :
34733 PERL_SUPPORTS_DESTDIR='no'
34734
34735 fi
34736
34737
34738else
34739
34740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34741$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34742 PERL_SUPPORTS_DESTDIR='no'
34743
cristy3ed852e2009-09-05 21:47:34 +000034744fi
cristy73bd4a52010-10-05 11:24:23 +000034745
34746fi
34747 if test "$have_perl" != 'no'; then
34748 WITH_PERL_TRUE=
34749 WITH_PERL_FALSE='#'
34750else
34751 WITH_PERL_TRUE='#'
34752 WITH_PERL_FALSE=
34753fi
34754
34755 if test $with_perl_static = 'yes'; then
34756 WITH_PERL_STATIC_TRUE=
34757 WITH_PERL_STATIC_FALSE='#'
34758else
34759 WITH_PERL_STATIC_TRUE='#'
34760 WITH_PERL_STATIC_FALSE=
34761fi
34762
34763 if test $with_perl_dynamic = 'yes'; then
34764 WITH_PERL_DYNAMIC_TRUE=
34765 WITH_PERL_DYNAMIC_FALSE='#'
34766else
34767 WITH_PERL_DYNAMIC_TRUE='#'
34768 WITH_PERL_DYNAMIC_FALSE=
34769fi
34770
cristy3ed852e2009-09-05 21:47:34 +000034771
34772
34773# Determine path to pick up MagickCore library from for use with building PerlMagick
34774MAGICKCORE_PATH="${LIB_DIR}"
34775if test $with_perl_static = 'yes'; then
34776 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34777 libtool_objdir=$objdir
34778
34779 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034780 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034781fi
34782
34783
cristy2a3eb392012-12-17 13:39:20 +000034784# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000034785MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000034786if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034787 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000034788fi
cristy2a3eb392012-12-17 13:39:20 +000034789if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034790 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000034791fi
34792if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034793 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000034794fi
34795if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034796 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000034797fi
34798if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034799 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000034800fi
34801if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034802 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000034803fi
34804if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034805 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000034806fi
34807if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034808 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000034809fi
34810if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034811 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000034812fi
34813if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034814 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000034815fi
34816if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034817 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000034818fi
34819if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034820 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000034821fi
34822if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000034823 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000034824fi
34825if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034826 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000034827fi
34828if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034829 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000034830fi
34831if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034832 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000034833fi
34834if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034835 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000034836fi
34837if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034838 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000034839fi
34840if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034841 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000034842fi
34843if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034844 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000034845fi
34846if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034847 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000034848fi
34849have_ps='no'
34850if test "$have_dps" = 'yes' || \
34851 test "$have_gs" = 'yes' || \
34852 test "${native_win32_build}" = 'yes' ; then
34853 have_ps='yes'
34854fi
34855if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034856 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000034857fi
34858if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034859 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000034860fi
34861if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034862 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000034863fi
34864if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034865 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000034866fi
34867if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034868 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000034869fi
34870if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034871 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000034872fi
34873if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034874 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000034875fi
34876if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034877 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000034878fi
34879if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034880 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000034881fi
34882if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000034883 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000034884fi
cristy2a3eb392012-12-17 13:39:20 +000034885# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000034886MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000034887MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000034888
34889
cristyfa161182012-12-19 15:45:28 +000034890
cristy3ed852e2009-09-05 21:47:34 +000034891#
34892# Handle special compiler flags
34893#
34894
34895# Add '-p' if prof source profiling support enabled
34896if test "$enable_prof" = 'yes'; then
34897 CFLAGS="-p $CFLAGS"
34898 CXXFLAGS="-p $CXXFLAGS"
34899 LDFLAGS="-p $LDFLAGS"
34900fi
34901
34902# Add '-pg' if gprof source profiling support enabled
34903if test "$enable_gprof" = 'yes'; then
34904 CFLAGS="-pg $CFLAGS"
34905 CXXFLAGS="-pg $CXXFLAGS"
34906 LDFLAGS="-pg $LDFLAGS"
34907fi
34908
34909# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34910# This is a gcc-specific feature
34911if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034913$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034914if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034915 $as_echo_n "(cached) " >&6
34916else
34917 ac_check_lib_save_LIBS=$LIBS
34918LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034920/* end confdefs.h. */
34921
34922/* Override any GCC internal prototype to avoid an error.
34923 Use char because int might match the return type of a GCC
34924 builtin and then its argument prototype would still apply. */
34925#ifdef __cplusplus
34926extern "C"
34927#endif
34928char _gcov_init ();
34929int
34930main ()
34931{
34932return _gcov_init ();
34933 ;
34934 return 0;
34935}
34936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034937if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034938 ac_cv_lib_gcov__gcov_init=yes
34939else
cristy8b350f62009-11-15 23:12:43 +000034940 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034941fi
cristy8b350f62009-11-15 23:12:43 +000034942rm -f core conftest.err conftest.$ac_objext \
34943 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034944LIBS=$ac_check_lib_save_LIBS
34945fi
cristy8b350f62009-11-15 23:12:43 +000034946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034947$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034948if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034949 cat >>confdefs.h <<_ACEOF
34950#define HAVE_LIBGCOV 1
34951_ACEOF
34952
34953 LIBS="-lgcov $LIBS"
34954
34955fi
34956
cristy8b350f62009-11-15 23:12:43 +000034957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034958$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034959if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034960 $as_echo_n "(cached) " >&6
34961else
34962 ac_check_lib_save_LIBS=$LIBS
34963LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034965/* end confdefs.h. */
34966
34967/* Override any GCC internal prototype to avoid an error.
34968 Use char because int might match the return type of a GCC
34969 builtin and then its argument prototype would still apply. */
34970#ifdef __cplusplus
34971extern "C"
34972#endif
34973char __gcov_init ();
34974int
34975main ()
34976{
34977return __gcov_init ();
34978 ;
34979 return 0;
34980}
34981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034982if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034983 ac_cv_lib_gcov___gcov_init=yes
34984else
cristy8b350f62009-11-15 23:12:43 +000034985 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034986fi
cristy8b350f62009-11-15 23:12:43 +000034987rm -f core conftest.err conftest.$ac_objext \
34988 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034989LIBS=$ac_check_lib_save_LIBS
34990fi
cristy8b350f62009-11-15 23:12:43 +000034991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034992$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034993if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034994 cat >>confdefs.h <<_ACEOF
34995#define HAVE_LIBGCOV 1
34996_ACEOF
34997
34998 LIBS="-lgcov $LIBS"
34999
35000fi
35001
35002 case "$target_os" in
35003 darwin*)
35004 OSX_GCOV_LDFLAG="-Wl,-single_module"
35005 ;;
35006 *)
35007 OSX_GCOV_LDFLAG=""
35008 ;;
35009 esac
35010
35011 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35012 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35013 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35014fi
35015
35016#
35017# Build library dependency list for libMagickCore
35018#
35019
cristyc6722092012-10-14 00:19:31 +000035020if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035021 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 +000035022else
cristy3a75f062012-09-08 23:29:40 +000035023 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 +000035024fi
35025
35026
35027#
35028# Remove extraneous spaces from output variables (asthetic)
35029#
35030X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35031X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35032X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35033X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35034
35035CC=`echo $CC | sed -e 's/ */ /g'`
35036CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35037CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35038CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035039DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35040LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35041TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35042MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35043#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35044
35045# Pass only user-provided LIBS as "global" libraries
35046LIBS=$USER_LIBS
35047
35048#AC_SUBST(CPPFLAGS)
35049
35050#AC_SUBST(LDFLAGS)
35051#AC_SUBST(X_PRE_LIBS)
35052#AC_SUBST(X_LIBS)
35053#AC_SUBST(X_EXTRA_LIBS)
35054
35055MAGICK_CFLAGS=$CFLAGS
35056MAGICK_CXXFLAGS="$CXXFLAGS"
35057MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35058MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35059MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035060MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035061
35062
35063
35064
35065
35066
35067
35068
35069# Set configured scripts to executable.
35070ac_config_commands="$ac_config_commands default"
35071
cristy2bd4b6e2012-07-22 15:29:11 +000035072ac_config_commands="$ac_config_commands magick.sh.in"
35073
cristy3ed852e2009-09-05 21:47:34 +000035074ac_config_commands="$ac_config_commands MagickCore-config.in"
35075
cristy3ed852e2009-09-05 21:47:34 +000035076ac_config_commands="$ac_config_commands MagickWand-config.in"
35077
cristy3ed852e2009-09-05 21:47:34 +000035078ac_config_commands="$ac_config_commands Magick++-config.in"
35079
35080ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35081
35082
cristyad38abe2012-12-23 23:03:21 +000035083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35084$as_echo "-------------------------------------------------------------" >&6; }
35085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35086$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035087cat >confcache <<\_ACEOF
35088# This file is a shell script that caches the results of configure
35089# tests run on this system so they can be shared between configure
35090# scripts and configure runs, see configure's option --config-cache.
35091# It is not useful on other systems. If it contains results you don't
35092# want to keep, you may remove or edit it.
35093#
35094# config.status only pays attention to the cache file if you give it
35095# the --recheck option to rerun configure.
35096#
35097# `ac_cv_env_foo' variables (set or unset) will be overridden when
35098# loading this file, other *unset* `ac_cv_foo' will be assigned the
35099# following values.
35100
35101_ACEOF
35102
35103# The following way of writing the cache mishandles newlines in values,
35104# but we know of no workaround that is simple, portable, and efficient.
35105# So, we kill variables containing newlines.
35106# Ultrix sh set writes to stderr and can't be redirected directly,
35107# and sets the high bit in the cache file unless we assign to the vars.
35108(
35109 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35110 eval ac_val=\$$ac_var
35111 case $ac_val in #(
35112 *${as_nl}*)
35113 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035114 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035115$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35116 esac
35117 case $ac_var in #(
35118 _ | IFS | as_nl) ;; #(
35119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035120 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035121 esac ;;
35122 esac
35123 done
35124
35125 (set) 2>&1 |
35126 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35127 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035128 # `set' does not quote correctly, so add quotes: double-quote
35129 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035130 sed -n \
35131 "s/'/'\\\\''/g;
35132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35133 ;; #(
35134 *)
35135 # `set' quotes correctly as required by POSIX, so do not add quotes.
35136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35137 ;;
35138 esac |
35139 sort
35140) |
35141 sed '
35142 /^ac_cv_env_/b end
35143 t clear
35144 :clear
35145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35146 t end
35147 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35148 :end' >>confcache
35149if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35150 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035151 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035152 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035153$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035154 if test ! -f "$cache_file" || test -h "$cache_file"; then
35155 cat confcache >"$cache_file"
35156 else
35157 case $cache_file in #(
35158 */* | ?:*)
35159 mv -f confcache "$cache_file"$$ &&
35160 mv -f "$cache_file"$$ "$cache_file" ;; #(
35161 *)
35162 mv -f confcache "$cache_file" ;;
35163 esac
35164 fi
35165 fi
cristy3ed852e2009-09-05 21:47:34 +000035166 else
cristy8b350f62009-11-15 23:12:43 +000035167 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035168$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35169 fi
35170fi
35171rm -f confcache
35172
35173test "x$prefix" = xNONE && prefix=$ac_default_prefix
35174# Let make expand exec_prefix.
35175test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35176
35177DEFS=-DHAVE_CONFIG_H
35178
35179ac_libobjs=
35180ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035181U=
cristy3ed852e2009-09-05 21:47:34 +000035182for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35183 # 1. Remove the extension, and $U if already installed.
35184 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35185 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35186 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35187 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035188 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35189 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035190done
35191LIBOBJS=$ac_libobjs
35192
35193LTLIBOBJS=$ac_ltlibobjs
35194
35195
cristyc0890a62012-07-19 00:18:20 +000035196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35197$as_echo_n "checking that generated files are newer than configure... " >&6; }
35198 if test -n "$am_sleep_pid"; then
35199 # Hide warnings about reused PIDs.
35200 wait $am_sleep_pid 2>/dev/null
35201 fi
35202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35203$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035204 if test -n "$EXEEXT"; then
35205 am__EXEEXT_TRUE=
35206 am__EXEEXT_FALSE='#'
35207else
35208 am__EXEEXT_TRUE='#'
35209 am__EXEEXT_FALSE=
35210fi
cristy3ed852e2009-09-05 21:47:34 +000035211
cristy73bd4a52010-10-05 11:24:23 +000035212if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035213 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035214Usually this means the macro was only invoked conditionally." "$LINENO" 5
35215fi
35216if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035217 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035218Usually this means the macro was only invoked conditionally." "$LINENO" 5
35219fi
35220if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035221 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035222Usually this means the macro was only invoked conditionally." "$LINENO" 5
35223fi
35224if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035225 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035226Usually this means the macro was only invoked conditionally." "$LINENO" 5
35227fi
cristy9b86f202012-11-28 21:55:35 +000035228if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35229 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35230Usually this means the macro was only invoked conditionally." "$LINENO" 5
35231fi
cristy73bd4a52010-10-05 11:24:23 +000035232if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035233 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035234Usually this means the macro was only invoked conditionally." "$LINENO" 5
35235fi
35236if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035237 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035238Usually this means the macro was only invoked conditionally." "$LINENO" 5
35239fi
35240if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035241 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035242Usually this means the macro was only invoked conditionally." "$LINENO" 5
35243fi
35244if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035245 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035246Usually this means the macro was only invoked conditionally." "$LINENO" 5
35247fi
cristy73bd4a52010-10-05 11:24:23 +000035248if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035249 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035250Usually this means the macro was only invoked conditionally." "$LINENO" 5
35251fi
35252if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035253 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035254Usually this means the macro was only invoked conditionally." "$LINENO" 5
35255fi
cristy73bd4a52010-10-05 11:24:23 +000035256if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035257 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035258Usually this means the macro was only invoked conditionally." "$LINENO" 5
35259fi
cristy71d8c202012-03-20 17:05:01 +000035260if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35261 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35262Usually this means the macro was only invoked conditionally." "$LINENO" 5
35263fi
cristy73bd4a52010-10-05 11:24:23 +000035264
35265if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035266 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035267Usually this means the macro was only invoked conditionally." "$LINENO" 5
35268fi
35269if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035270 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035271Usually this means the macro was only invoked conditionally." "$LINENO" 5
35272fi
35273if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035274 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035275Usually this means the macro was only invoked conditionally." "$LINENO" 5
35276fi
35277if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035278 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035279Usually this means the macro was only invoked conditionally." "$LINENO" 5
35280fi
35281if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035282 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035283Usually this means the macro was only invoked conditionally." "$LINENO" 5
35284fi
35285if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035286 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035287Usually this means the macro was only invoked conditionally." "$LINENO" 5
35288fi
cristy5eef09f2012-10-16 12:08:28 +000035289if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35290 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35291Usually this means the macro was only invoked conditionally." "$LINENO" 5
35292fi
cristy73bd4a52010-10-05 11:24:23 +000035293if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035294 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035295Usually this means the macro was only invoked conditionally." "$LINENO" 5
35296fi
35297if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035298 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035299Usually this means the macro was only invoked conditionally." "$LINENO" 5
35300fi
35301if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035302 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035303Usually this means the macro was only invoked conditionally." "$LINENO" 5
35304fi
35305if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035306 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035307Usually this means the macro was only invoked conditionally." "$LINENO" 5
35308fi
35309if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035310 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035311Usually this means the macro was only invoked conditionally." "$LINENO" 5
35312fi
35313if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035314 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035315Usually this means the macro was only invoked conditionally." "$LINENO" 5
35316fi
35317if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035318 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035319Usually this means the macro was only invoked conditionally." "$LINENO" 5
35320fi
35321if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035322 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035323Usually this means the macro was only invoked conditionally." "$LINENO" 5
35324fi
35325if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035326 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035327Usually this means the macro was only invoked conditionally." "$LINENO" 5
35328fi
35329if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035330 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035331Usually this means the macro was only invoked conditionally." "$LINENO" 5
35332fi
35333if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035334 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035335Usually this means the macro was only invoked conditionally." "$LINENO" 5
35336fi
35337if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035338 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035339Usually this means the macro was only invoked conditionally." "$LINENO" 5
35340fi
35341if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035342 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035343Usually this means the macro was only invoked conditionally." "$LINENO" 5
35344fi
35345if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035346 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035347Usually this means the macro was only invoked conditionally." "$LINENO" 5
35348fi
cristyfbb0ef02010-12-19 02:32:11 +000035349if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35350 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35351Usually this means the macro was only invoked conditionally." "$LINENO" 5
35352fi
cristy73bd4a52010-10-05 11:24:23 +000035353if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035354 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035355Usually this means the macro was only invoked conditionally." "$LINENO" 5
35356fi
cristy41cbe8a2011-10-27 01:35:18 +000035357if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35358 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35359Usually this means the macro was only invoked conditionally." "$LINENO" 5
35360fi
cristya054b762012-03-26 23:16:00 +000035361if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35362 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035363Usually this means the macro was only invoked conditionally." "$LINENO" 5
35364fi
cristy73bd4a52010-10-05 11:24:23 +000035365if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035366 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035367Usually this means the macro was only invoked conditionally." "$LINENO" 5
35368fi
35369if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035370 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035371Usually this means the macro was only invoked conditionally." "$LINENO" 5
35372fi
35373if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035374 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035375Usually this means the macro was only invoked conditionally." "$LINENO" 5
35376fi
35377if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035378 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035379Usually this means the macro was only invoked conditionally." "$LINENO" 5
35380fi
cristyb1860752011-03-14 00:27:46 +000035381if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35382 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35383Usually this means the macro was only invoked conditionally." "$LINENO" 5
35384fi
cristy73bd4a52010-10-05 11:24:23 +000035385if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035386 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035387Usually this means the macro was only invoked conditionally." "$LINENO" 5
35388fi
35389if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035390 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035391Usually this means the macro was only invoked conditionally." "$LINENO" 5
35392fi
35393if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035394 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035395Usually this means the macro was only invoked conditionally." "$LINENO" 5
35396fi
35397if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035398 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035399Usually this means the macro was only invoked conditionally." "$LINENO" 5
35400fi
35401if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035402 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035403Usually this means the macro was only invoked conditionally." "$LINENO" 5
35404fi
35405if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035406 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035407Usually this means the macro was only invoked conditionally." "$LINENO" 5
35408fi
35409if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035410 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035411Usually this means the macro was only invoked conditionally." "$LINENO" 5
35412fi
35413if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035414 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035415Usually this means the macro was only invoked conditionally." "$LINENO" 5
35416fi
cristy3ed852e2009-09-05 21:47:34 +000035417
cristyda16f162011-02-19 23:52:17 +000035418: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035419ac_write_fail=0
35420ac_clean_files_save=$ac_clean_files
35421ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035422{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035423$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035424as_write_fail=0
35425cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035426#! $SHELL
35427# Generated by $as_me.
35428# Run this file to recreate the current configuration.
35429# Compiler output produced by configure, useful for debugging
35430# configure, is in config.log if it exists.
35431
35432debug=false
35433ac_cs_recheck=false
35434ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035435
cristy8b350f62009-11-15 23:12:43 +000035436SHELL=\${CONFIG_SHELL-$SHELL}
35437export SHELL
35438_ASEOF
35439cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35440## -------------------- ##
35441## M4sh Initialization. ##
35442## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035443
35444# Be more Bourne compatible
35445DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035446if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035447 emulate sh
35448 NULLCMD=:
35449 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35450 # is contrary to our usage. Disable this feature.
35451 alias -g '${1+"$@"}'='"$@"'
35452 setopt NO_GLOB_SUBST
35453else
cristy8b350f62009-11-15 23:12:43 +000035454 case `(set -o) 2>/dev/null` in #(
35455 *posix*) :
35456 set -o posix ;; #(
35457 *) :
35458 ;;
cristy3ed852e2009-09-05 21:47:34 +000035459esac
cristy3ed852e2009-09-05 21:47:34 +000035460fi
35461
35462
cristy3ed852e2009-09-05 21:47:34 +000035463as_nl='
35464'
35465export as_nl
35466# Printing a long string crashes Solaris 7 /usr/bin/printf.
35467as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35468as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35469as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035470# Prefer a ksh shell builtin over an external printf program on Solaris,
35471# but without wasting forks for bash or zsh.
35472if test -z "$BASH_VERSION$ZSH_VERSION" \
35473 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35474 as_echo='print -r --'
35475 as_echo_n='print -rn --'
35476elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035477 as_echo='printf %s\n'
35478 as_echo_n='printf %s'
35479else
35480 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35481 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35482 as_echo_n='/usr/ucb/echo -n'
35483 else
35484 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35485 as_echo_n_body='eval
35486 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035487 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035488 *"$as_nl"*)
35489 expr "X$arg" : "X\\(.*\\)$as_nl";
35490 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35491 esac;
35492 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35493 '
35494 export as_echo_n_body
35495 as_echo_n='sh -c $as_echo_n_body as_echo'
35496 fi
35497 export as_echo_body
35498 as_echo='sh -c $as_echo_body as_echo'
35499fi
35500
35501# The user is always right.
35502if test "${PATH_SEPARATOR+set}" != set; then
35503 PATH_SEPARATOR=:
35504 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35505 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35506 PATH_SEPARATOR=';'
35507 }
35508fi
35509
cristy3ed852e2009-09-05 21:47:34 +000035510
35511# IFS
35512# We need space, tab and new line, in precisely that order. Quoting is
35513# there to prevent editors from complaining about space-tab.
35514# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35515# splitting by setting IFS to empty value.)
35516IFS=" "" $as_nl"
35517
35518# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035519as_myself=
cristy8b350f62009-11-15 23:12:43 +000035520case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035521 *[\\/]* ) as_myself=$0 ;;
35522 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35523for as_dir in $PATH
35524do
35525 IFS=$as_save_IFS
35526 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035527 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35528 done
cristy3ed852e2009-09-05 21:47:34 +000035529IFS=$as_save_IFS
35530
35531 ;;
35532esac
35533# We did not find ourselves, most probably we were run as `sh COMMAND'
35534# in which case we are not to be found in the path.
35535if test "x$as_myself" = x; then
35536 as_myself=$0
35537fi
35538if test ! -f "$as_myself"; then
35539 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035540 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035541fi
35542
cristy8b350f62009-11-15 23:12:43 +000035543# Unset variables that we do not need and which cause bugs (e.g. in
35544# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35545# suppresses any "Segmentation fault" message there. '((' could
35546# trigger a bug in pdksh 5.2.14.
35547for as_var in BASH_ENV ENV MAIL MAILPATH
35548do eval test x\${$as_var+set} = xset \
35549 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035550done
35551PS1='$ '
35552PS2='> '
35553PS4='+ '
35554
35555# NLS nuisances.
35556LC_ALL=C
35557export LC_ALL
35558LANGUAGE=C
35559export LANGUAGE
35560
cristy8b350f62009-11-15 23:12:43 +000035561# CDPATH.
35562(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35563
35564
cristy98dddb52010-11-04 00:30:15 +000035565# as_fn_error STATUS ERROR [LINENO LOG_FD]
35566# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035567# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35568# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035569# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035570as_fn_error ()
35571{
cristy98dddb52010-11-04 00:30:15 +000035572 as_status=$1; test $as_status -eq 0 && as_status=1
35573 if test "$4"; then
35574 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35575 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035576 fi
cristy98dddb52010-11-04 00:30:15 +000035577 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035578 as_fn_exit $as_status
35579} # as_fn_error
35580
35581
35582# as_fn_set_status STATUS
35583# -----------------------
35584# Set $? to STATUS, without forking.
35585as_fn_set_status ()
35586{
35587 return $1
35588} # as_fn_set_status
35589
35590# as_fn_exit STATUS
35591# -----------------
35592# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35593as_fn_exit ()
35594{
35595 set +e
35596 as_fn_set_status $1
35597 exit $1
35598} # as_fn_exit
35599
35600# as_fn_unset VAR
35601# ---------------
35602# Portably unset VAR.
35603as_fn_unset ()
35604{
35605 { eval $1=; unset $1;}
35606}
35607as_unset=as_fn_unset
35608# as_fn_append VAR VALUE
35609# ----------------------
35610# Append the text in VALUE to the end of the definition contained in VAR. Take
35611# advantage of any shell optimizations that allow amortized linear growth over
35612# repeated appends, instead of the typical quadratic growth present in naive
35613# implementations.
35614if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35615 eval 'as_fn_append ()
35616 {
35617 eval $1+=\$2
35618 }'
35619else
35620 as_fn_append ()
35621 {
35622 eval $1=\$$1\$2
35623 }
35624fi # as_fn_append
35625
35626# as_fn_arith ARG...
35627# ------------------
35628# Perform arithmetic evaluation on the ARGs, and store the result in the
35629# global $as_val. Take advantage of shells that can avoid forks. The arguments
35630# must be portable across $(()) and expr.
35631if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35632 eval 'as_fn_arith ()
35633 {
35634 as_val=$(( $* ))
35635 }'
35636else
35637 as_fn_arith ()
35638 {
35639 as_val=`expr "$@" || test $? -eq 1`
35640 }
35641fi # as_fn_arith
35642
35643
cristy3ed852e2009-09-05 21:47:34 +000035644if expr a : '\(a\)' >/dev/null 2>&1 &&
35645 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35646 as_expr=expr
35647else
35648 as_expr=false
35649fi
35650
35651if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35652 as_basename=basename
35653else
35654 as_basename=false
35655fi
35656
cristy8b350f62009-11-15 23:12:43 +000035657if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35658 as_dirname=dirname
35659else
35660 as_dirname=false
35661fi
cristy3ed852e2009-09-05 21:47:34 +000035662
cristy3ed852e2009-09-05 21:47:34 +000035663as_me=`$as_basename -- "$0" ||
35664$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35665 X"$0" : 'X\(//\)$' \| \
35666 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35667$as_echo X/"$0" |
35668 sed '/^.*\/\([^/][^/]*\)\/*$/{
35669 s//\1/
35670 q
35671 }
35672 /^X\/\(\/\/\)$/{
35673 s//\1/
35674 q
35675 }
35676 /^X\/\(\/\).*/{
35677 s//\1/
35678 q
35679 }
35680 s/.*/./; q'`
35681
cristy8b350f62009-11-15 23:12:43 +000035682# Avoid depending upon Character Ranges.
35683as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35684as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35685as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35686as_cr_digits='0123456789'
35687as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035688
35689ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035690case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035691-n*)
cristy8b350f62009-11-15 23:12:43 +000035692 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035693 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035694 xy) ECHO_C='\c';;
35695 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35696 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035697 esac;;
35698*)
35699 ECHO_N='-n';;
35700esac
cristy3ed852e2009-09-05 21:47:34 +000035701
35702rm -f conf$$ conf$$.exe conf$$.file
35703if test -d conf$$.dir; then
35704 rm -f conf$$.dir/conf$$.file
35705else
35706 rm -f conf$$.dir
35707 mkdir conf$$.dir 2>/dev/null
35708fi
35709if (echo >conf$$.file) 2>/dev/null; then
35710 if ln -s conf$$.file conf$$ 2>/dev/null; then
35711 as_ln_s='ln -s'
35712 # ... but there are two gotchas:
35713 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35714 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000035715 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000035716 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000035717 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035718 elif ln conf$$.file conf$$ 2>/dev/null; then
35719 as_ln_s=ln
35720 else
cristy14fefe52012-05-21 00:59:18 +000035721 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035722 fi
35723else
cristy14fefe52012-05-21 00:59:18 +000035724 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035725fi
35726rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35727rmdir conf$$.dir 2>/dev/null
35728
cristy8b350f62009-11-15 23:12:43 +000035729
35730# as_fn_mkdir_p
35731# -------------
35732# Create "$as_dir" as a directory, including parents if necessary.
35733as_fn_mkdir_p ()
35734{
35735
35736 case $as_dir in #(
35737 -*) as_dir=./$as_dir;;
35738 esac
35739 test -d "$as_dir" || eval $as_mkdir_p || {
35740 as_dirs=
35741 while :; do
35742 case $as_dir in #(
35743 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35744 *) as_qdir=$as_dir;;
35745 esac
35746 as_dirs="'$as_qdir' $as_dirs"
35747 as_dir=`$as_dirname -- "$as_dir" ||
35748$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35749 X"$as_dir" : 'X\(//\)[^/]' \| \
35750 X"$as_dir" : 'X\(//\)$' \| \
35751 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35752$as_echo X"$as_dir" |
35753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35754 s//\1/
35755 q
35756 }
35757 /^X\(\/\/\)[^/].*/{
35758 s//\1/
35759 q
35760 }
35761 /^X\(\/\/\)$/{
35762 s//\1/
35763 q
35764 }
35765 /^X\(\/\).*/{
35766 s//\1/
35767 q
35768 }
35769 s/.*/./; q'`
35770 test -d "$as_dir" && break
35771 done
35772 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035773 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035774
35775
35776} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035777if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035778 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035779else
35780 test -d ./-p && rmdir ./-p
35781 as_mkdir_p=false
35782fi
35783
cristy14fefe52012-05-21 00:59:18 +000035784
35785# as_fn_executable_p FILE
35786# -----------------------
35787# Test if FILE is an executable regular file.
35788as_fn_executable_p ()
35789{
35790 test -f "$1" && test -x "$1"
35791} # as_fn_executable_p
35792as_test_x='test -x'
35793as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000035794
35795# Sed expression to map a string onto a valid CPP name.
35796as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35797
35798# Sed expression to map a string onto a valid variable name.
35799as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35800
35801
35802exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035803## ----------------------------------- ##
35804## Main body of $CONFIG_STATUS script. ##
35805## ----------------------------------- ##
35806_ASEOF
35807test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035808
cristy8b350f62009-11-15 23:12:43 +000035809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35810# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035811# report actual input values of CONFIG_FILES etc. instead of their
35812# values after options handling.
35813ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035814This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000035815generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035816
35817 CONFIG_FILES = $CONFIG_FILES
35818 CONFIG_HEADERS = $CONFIG_HEADERS
35819 CONFIG_LINKS = $CONFIG_LINKS
35820 CONFIG_COMMANDS = $CONFIG_COMMANDS
35821 $ $0 $@
35822
35823on `(hostname || uname -n) 2>/dev/null | sed 1q`
35824"
35825
35826_ACEOF
35827
35828case $ac_config_files in *"
35829"*) set x $ac_config_files; shift; ac_config_files=$*;;
35830esac
35831
35832case $ac_config_headers in *"
35833"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35834esac
35835
35836
35837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35838# Files that config.status was made for.
35839config_files="$ac_config_files"
35840config_headers="$ac_config_headers"
35841config_commands="$ac_config_commands"
35842
35843_ACEOF
35844
35845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35846ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035847\`$as_me' instantiates files and other configuration actions
35848from templates according to the current configuration. Unless the files
35849and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035850
cristy8b350f62009-11-15 23:12:43 +000035851Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035852
35853 -h, --help print this help, then exit
35854 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035855 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035856 -q, --quiet, --silent
35857 do not print progress messages
35858 -d, --debug don't remove temporary files
35859 --recheck update $as_me by reconfiguring in the same conditions
35860 --file=FILE[:TEMPLATE]
35861 instantiate the configuration file FILE
35862 --header=FILE[:TEMPLATE]
35863 instantiate the configuration header FILE
35864
35865Configuration files:
35866$config_files
35867
35868Configuration headers:
35869$config_headers
35870
35871Configuration commands:
35872$config_commands
35873
cristy8b350f62009-11-15 23:12:43 +000035874Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035875
35876_ACEOF
35877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035878ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035879ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035880ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000035881configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000035882 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035883
cristy14fefe52012-05-21 00:59:18 +000035884Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035885This config.status script is free software; the Free Software Foundation
35886gives unlimited permission to copy, distribute and modify it."
35887
35888ac_pwd='$ac_pwd'
35889srcdir='$srcdir'
35890INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035891MKDIR_P='$MKDIR_P'
35892AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035893test -n "\$AWK" || AWK=awk
35894_ACEOF
35895
35896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35897# The default lists apply if the user does not specify any file.
35898ac_need_defaults=:
35899while test $# != 0
35900do
35901 case $1 in
cristyda16f162011-02-19 23:52:17 +000035902 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035903 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35904 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35905 ac_shift=:
35906 ;;
cristyda16f162011-02-19 23:52:17 +000035907 --*=)
35908 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35909 ac_optarg=
35910 ac_shift=:
35911 ;;
cristy3ed852e2009-09-05 21:47:34 +000035912 *)
35913 ac_option=$1
35914 ac_optarg=$2
35915 ac_shift=shift
35916 ;;
35917 esac
35918
35919 case $ac_option in
35920 # Handling of the options.
35921 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35922 ac_cs_recheck=: ;;
35923 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35924 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035925 --config | --confi | --conf | --con | --co | --c )
35926 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035927 --debug | --debu | --deb | --de | --d | -d )
35928 debug=: ;;
35929 --file | --fil | --fi | --f )
35930 $ac_shift
35931 case $ac_optarg in
35932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035933 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035934 esac
cristy8b350f62009-11-15 23:12:43 +000035935 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035936 ac_need_defaults=false;;
35937 --header | --heade | --head | --hea )
35938 $ac_shift
35939 case $ac_optarg in
35940 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35941 esac
cristy8b350f62009-11-15 23:12:43 +000035942 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035943 ac_need_defaults=false;;
35944 --he | --h)
35945 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035946 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035947Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035948 --help | --hel | -h )
35949 $as_echo "$ac_cs_usage"; exit ;;
35950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35951 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35952 ac_cs_silent=: ;;
35953
35954 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035955 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035956Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035957
cristy8b350f62009-11-15 23:12:43 +000035958 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035959 ac_need_defaults=false ;;
35960
35961 esac
35962 shift
35963done
35964
35965ac_configure_extra_args=
35966
35967if $ac_cs_silent; then
35968 exec 6>/dev/null
35969 ac_configure_extra_args="$ac_configure_extra_args --silent"
35970fi
35971
35972_ACEOF
35973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35974if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000035975 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000035976 shift
35977 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35978 CONFIG_SHELL='$SHELL'
35979 export CONFIG_SHELL
35980 exec "\$@"
35981fi
35982
35983_ACEOF
35984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35985exec 5>>config.log
35986{
35987 echo
35988 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35989## Running $as_me. ##
35990_ASBOX
35991 $as_echo "$ac_log"
35992} >&5
35993
35994_ACEOF
35995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035996#
35997# INIT-COMMANDS
35998#
35999PACKAGE="$PACKAGE"
36000AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36001
36002
36003# The HP-UX ksh and POSIX shell print the target directory to stdout
36004# if CDPATH is set.
36005(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36006
36007sed_quote_subst='$sed_quote_subst'
36008double_quote_subst='$double_quote_subst'
36009delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036010SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36011Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36012GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36013EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36014FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36015SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36016ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36017LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36018macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36019macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36020AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36021DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36022OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36023enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36024enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36025pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36026enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036027PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036028host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36029host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36030host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36031build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36032build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36033build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36034NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36035LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36036max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36037ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36038exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36039lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36040lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36041lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036042lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36043lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036044reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36045reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36046deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36047file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036048file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36049want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36050sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036051AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36052AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036053archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036054STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36055RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36056old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36057old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36058old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36059lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36060CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36061CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36062compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36063GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36064lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36065lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36066lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36067lt_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 +000036068nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36069lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036070objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36071MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36072lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036073lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036074lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036075lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36076lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36077need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036078MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036079DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36080NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36081LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36082OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36083OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36084libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36085shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36086extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36087archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36088enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36089export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36090whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36091compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36092old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36093old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36094archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36095archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36096module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36097module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36098with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36099allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36100no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36101hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036102hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36103hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36104hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36105hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36106hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36107hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36108inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36109link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036110always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36111export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36112exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36113include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36114prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036115postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036116file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36117variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36118need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36119need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36120version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36121runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36122shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36123shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36124libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36125library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36126soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36127install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36128postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36129postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36130finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36131finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36132hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36133sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36134sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36135hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36136enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36137enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36138enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36139old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36140striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36141compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36142predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36143postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36144predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36145postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36146compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36147LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36148reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36149reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36150old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36151compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36152GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36153lt_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 +000036154lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036155lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036156lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36157lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36158archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36159enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36160export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36161whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36162compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36163old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36164old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36165archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36166archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36167module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36168module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36169with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36170allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36171no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36172hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036173hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36174hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36175hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36176hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36177hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36178hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36179inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36180link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036181always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36182export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36183exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36184include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36185prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036186postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036187file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36188hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36189compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36190predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36191postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36192predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36193postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36194compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036195
36196LTCC='$LTCC'
36197LTCFLAGS='$LTCFLAGS'
36198compiler='$compiler_DEFAULT'
36199
cristy0c60a692010-11-04 01:09:47 +000036200# A function that is used when there is no print builtin or printf.
36201func_fallback_echo ()
36202{
36203 eval 'cat <<_LTECHO_EOF
36204\$1
36205_LTECHO_EOF'
36206}
36207
cristy73bd4a52010-10-05 11:24:23 +000036208# Quote evaled strings.
36209for var in SED \
36210GREP \
36211EGREP \
36212FGREP \
cristy0c60a692010-11-04 01:09:47 +000036213SHELL \
36214ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036215LD \
cristy0c60a692010-11-04 01:09:47 +000036216AS \
36217DLLTOOL \
36218OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036219PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036220NM \
36221LN_S \
36222lt_SP2NL \
36223lt_NL2SP \
36224reload_flag \
36225deplibs_check_method \
36226file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036227file_magic_glob \
36228want_nocaseglob \
36229sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036230AR \
36231AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036232archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036233STRIP \
36234RANLIB \
36235CC \
36236CFLAGS \
36237compiler \
36238lt_cv_sys_global_symbol_pipe \
36239lt_cv_sys_global_symbol_to_cdecl \
36240lt_cv_sys_global_symbol_to_c_name_address \
36241lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036242nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036243lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036244lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036245lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036246lt_prog_compiler_static \
36247lt_cv_prog_compiler_c_o \
36248need_locks \
cristyda16f162011-02-19 23:52:17 +000036249MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036250DSYMUTIL \
36251NMEDIT \
36252LIPO \
36253OTOOL \
36254OTOOL64 \
36255shrext_cmds \
36256export_dynamic_flag_spec \
36257whole_archive_flag_spec \
36258compiler_needs_object \
36259with_gnu_ld \
36260allow_undefined_flag \
36261no_undefined_flag \
36262hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036263hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036264exclude_expsyms \
36265include_expsyms \
36266file_list_spec \
36267variables_saved_for_relink \
36268libname_spec \
36269library_names_spec \
36270soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036271install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036272finish_eval \
36273old_striplib \
36274striplib \
36275compiler_lib_search_dirs \
36276predep_objects \
36277postdep_objects \
36278predeps \
36279postdeps \
36280compiler_lib_search_path \
36281LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036282reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036283compiler_CXX \
36284lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036285lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036286lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036287lt_prog_compiler_static_CXX \
36288lt_cv_prog_compiler_c_o_CXX \
36289export_dynamic_flag_spec_CXX \
36290whole_archive_flag_spec_CXX \
36291compiler_needs_object_CXX \
36292with_gnu_ld_CXX \
36293allow_undefined_flag_CXX \
36294no_undefined_flag_CXX \
36295hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036296hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036297exclude_expsyms_CXX \
36298include_expsyms_CXX \
36299file_list_spec_CXX \
36300compiler_lib_search_dirs_CXX \
36301predep_objects_CXX \
36302postdep_objects_CXX \
36303predeps_CXX \
36304postdeps_CXX \
36305compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036306 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036307 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036308 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036309 ;;
36310 *)
36311 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36312 ;;
36313 esac
36314done
36315
36316# Double-quote double-evaled strings.
36317for var in reload_cmds \
36318old_postinstall_cmds \
36319old_postuninstall_cmds \
36320old_archive_cmds \
36321extract_expsyms_cmds \
36322old_archive_from_new_cmds \
36323old_archive_from_expsyms_cmds \
36324archive_cmds \
36325archive_expsym_cmds \
36326module_cmds \
36327module_expsym_cmds \
36328export_symbols_cmds \
36329prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036330postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036331postinstall_cmds \
36332postuninstall_cmds \
36333finish_cmds \
36334sys_lib_search_path_spec \
36335sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036336reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036337old_archive_cmds_CXX \
36338old_archive_from_new_cmds_CXX \
36339old_archive_from_expsyms_cmds_CXX \
36340archive_cmds_CXX \
36341archive_expsym_cmds_CXX \
36342module_cmds_CXX \
36343module_expsym_cmds_CXX \
36344export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036345prelink_cmds_CXX \
36346postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036347 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036348 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036349 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036350 ;;
36351 *)
36352 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36353 ;;
36354 esac
36355done
36356
cristy73bd4a52010-10-05 11:24:23 +000036357ac_aux_dir='$ac_aux_dir'
36358xsi_shell='$xsi_shell'
36359lt_shell_append='$lt_shell_append'
36360
36361# See if we are running on zsh, and set the options which allow our
36362# commands through without removal of \ escapes INIT.
36363if test -n "\${ZSH_VERSION+set}" ; then
36364 setopt NO_GLOB_SUBST
36365fi
36366
36367
36368 PACKAGE='$PACKAGE'
36369 VERSION='$VERSION'
36370 TIMESTAMP='$TIMESTAMP'
36371 RM='$RM'
36372 ofile='$ofile'
36373
36374
36375
36376
36377
36378
cristy3ed852e2009-09-05 21:47:34 +000036379_ACEOF
36380
36381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36382
36383# Handling of arguments.
36384for ac_config_target in $ac_config_targets
36385do
36386 case $ac_config_target in
36387 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036388 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036389 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036390 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36391 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36392 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36393 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36394 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036395 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036396 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036397 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36398 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36399 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36400 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36401 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036402 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036403 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36404 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036405 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36406 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36407 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036408 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36409 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36410 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36411 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36412 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36413 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36414 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36415 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36416 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36417 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36418 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36419 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36420 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36421 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36422 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36423 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36424 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036425 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36426 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036427 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36428 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036429 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036430 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036431 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036432 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036433 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36434 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36435
cristy98dddb52010-11-04 00:30:15 +000036436 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036437 esac
36438done
36439
36440
36441# If the user did not use the arguments to specify the items to instantiate,
36442# then the envvar interface is used. Set only those that are not.
36443# We use the long form for the default assignment because of an extremely
36444# bizarre bug on SunOS 4.1.3.
36445if $ac_need_defaults; then
36446 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36447 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36448 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36449fi
36450
36451# Have a temporary directory for convenience. Make it in the build tree
36452# simply because there is no reason against having it here, and in addition,
36453# creating and moving files from /tmp can sometimes cause problems.
36454# Hook for its removal unless debugging.
36455# Note that there is a small window in which the directory will not be cleaned:
36456# after its creation but before its name has been assigned to `$tmp'.
36457$debug ||
36458{
cristyda16f162011-02-19 23:52:17 +000036459 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036460 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036461 : "${ac_tmp:=$tmp}"
36462 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036463' 0
cristy8b350f62009-11-15 23:12:43 +000036464 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036465}
36466# Create a (secure) tmp directory for tmp files.
36467
36468{
36469 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036470 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036471} ||
36472{
36473 tmp=./conf$$-$RANDOM
36474 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036475} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036476ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036477
36478# Set up the scripts for CONFIG_FILES section.
36479# No need to generate them if there are no CONFIG_FILES.
36480# This happens for instance with `./config.status config.h'.
36481if test -n "$CONFIG_FILES"; then
36482
36483
cristy8b350f62009-11-15 23:12:43 +000036484ac_cr=`echo X | tr X '\015'`
36485# On cygwin, bash can eat \r inside `` if the user requested igncr.
36486# But we know of no other shell where ac_cr would be empty at this
36487# point, so we can use a bashism as a fallback.
36488if test "x$ac_cr" = x; then
36489 eval ac_cr=\$\'\\r\'
36490fi
cristy3ed852e2009-09-05 21:47:34 +000036491ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36492if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036493 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036494else
36495 ac_cs_awk_cr=$ac_cr
36496fi
36497
cristyda16f162011-02-19 23:52:17 +000036498echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036499_ACEOF
36500
36501
36502{
36503 echo "cat >conf$$subs.awk <<_ACEOF" &&
36504 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36505 echo "_ACEOF"
36506} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036507 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36508ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036509ac_delim='%!_!# '
36510for ac_last_try in false false false false false :; do
36511 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036513
36514 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36515 if test $ac_delim_n = $ac_delim_num; then
36516 break
36517 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036518 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036519 else
36520 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36521 fi
36522done
36523rm -f conf$$subs.sh
36524
36525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036526cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036527_ACEOF
36528sed -n '
36529h
36530s/^/S["/; s/!.*/"]=/
36531p
36532g
36533s/^[^!]*!//
36534:repl
36535t repl
36536s/'"$ac_delim"'$//
36537t delim
36538:nl
36539h
cristycd4c5312009-11-22 01:19:08 +000036540s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036541t more1
36542s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36543p
36544n
36545b repl
36546:more1
36547s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36548p
36549g
36550s/.\{148\}//
36551t nl
36552:delim
36553h
cristycd4c5312009-11-22 01:19:08 +000036554s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036555t more2
36556s/["\\]/\\&/g; s/^/"/; s/$/"/
36557p
36558b
36559:more2
36560s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36561p
36562g
36563s/.\{148\}//
36564t delim
36565' <conf$$subs.awk | sed '
36566/^[^""]/{
36567 N
36568 s/\n//
36569}
36570' >>$CONFIG_STATUS || ac_write_fail=1
36571rm -f conf$$subs.awk
36572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36573_ACAWK
cristyda16f162011-02-19 23:52:17 +000036574cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036575 for (key in S) S_is_set[key] = 1
36576 FS = ""
36577
36578}
36579{
36580 line = $ 0
36581 nfields = split(line, field, "@")
36582 substed = 0
36583 len = length(field[1])
36584 for (i = 2; i < nfields; i++) {
36585 key = field[i]
36586 keylen = length(key)
36587 if (S_is_set[key]) {
36588 value = S[key]
36589 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36590 len += length(value) + length(field[++i])
36591 substed = 1
36592 } else
36593 len += 1 + keylen
36594 }
36595
36596 print line
36597}
36598
36599_ACAWK
36600_ACEOF
36601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36602if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36603 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36604else
36605 cat
cristyda16f162011-02-19 23:52:17 +000036606fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036607 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036608_ACEOF
36609
cristy98dddb52010-11-04 00:30:15 +000036610# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36611# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036612# trailing colons and then remove the whole line if VPATH becomes empty
36613# (actually we leave an empty line to preserve line numbers).
36614if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036615 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36616h
36617s///
36618s/^/:/
36619s/[ ]*$/:/
36620s/:\$(srcdir):/:/g
36621s/:\${srcdir}:/:/g
36622s/:@srcdir@:/:/g
36623s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036624s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036625x
36626s/\(=[ ]*\).*/\1/
36627G
36628s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036629s/^[^=]*=[ ]*$//
36630}'
36631fi
36632
36633cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36634fi # test -n "$CONFIG_FILES"
36635
36636# Set up the scripts for CONFIG_HEADERS section.
36637# No need to generate them if there are no CONFIG_HEADERS.
36638# This happens for instance with `./config.status Makefile'.
36639if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036640cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036641BEGIN {
36642_ACEOF
36643
36644# Transform confdefs.h into an awk script `defines.awk', embedded as
36645# here-document in config.status, that substitutes the proper values into
36646# config.h.in to produce config.h.
36647
36648# Create a delimiter string that does not exist in confdefs.h, to ease
36649# handling of long lines.
36650ac_delim='%!_!# '
36651for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036652 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36653 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036654 break
36655 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036656 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036657 else
36658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36659 fi
36660done
36661
36662# For the awk script, D is an array of macro values keyed by name,
36663# likewise P contains macro parameters if any. Preserve backslash
36664# newline sequences.
36665
36666ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36667sed -n '
36668s/.\{148\}/&'"$ac_delim"'/g
36669t rset
36670:rset
36671s/^[ ]*#[ ]*define[ ][ ]*/ /
36672t def
36673d
36674:def
36675s/\\$//
36676t bsnl
36677s/["\\]/\\&/g
36678s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36679D["\1"]=" \3"/p
36680s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36681d
36682:bsnl
36683s/["\\]/\\&/g
36684s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36685D["\1"]=" \3\\\\\\n"\\/p
36686t cont
36687s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36688t cont
36689d
36690:cont
36691n
36692s/.\{148\}/&'"$ac_delim"'/g
36693t clear
36694:clear
36695s/\\$//
36696t bsnlc
36697s/["\\]/\\&/g; s/^/"/; s/$/"/p
36698d
36699:bsnlc
36700s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36701b cont
36702' <confdefs.h | sed '
36703s/'"$ac_delim"'/"\\\
36704"/g' >>$CONFIG_STATUS || ac_write_fail=1
36705
36706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36707 for (key in D) D_is_set[key] = 1
36708 FS = ""
36709}
36710/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36711 line = \$ 0
36712 split(line, arg, " ")
36713 if (arg[1] == "#") {
36714 defundef = arg[2]
36715 mac1 = arg[3]
36716 } else {
36717 defundef = substr(arg[1], 2)
36718 mac1 = arg[2]
36719 }
36720 split(mac1, mac2, "(") #)
36721 macro = mac2[1]
36722 prefix = substr(line, 1, index(line, defundef) - 1)
36723 if (D_is_set[macro]) {
36724 # Preserve the white space surrounding the "#".
36725 print prefix "define", macro P[macro] D[macro]
36726 next
36727 } else {
36728 # Replace #undef with comments. This is necessary, for example,
36729 # in the case of _POSIX_SOURCE, which is predefined and required
36730 # on some systems where configure will not decide to define it.
36731 if (defundef == "undef") {
36732 print "/*", prefix defundef, macro, "*/"
36733 next
36734 }
36735 }
36736}
36737{ print }
36738_ACAWK
36739_ACEOF
36740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036741 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036742fi # test -n "$CONFIG_HEADERS"
36743
36744
36745eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36746shift
36747for ac_tag
36748do
36749 case $ac_tag in
36750 :[FHLC]) ac_mode=$ac_tag; continue;;
36751 esac
36752 case $ac_mode$ac_tag in
36753 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036754 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036755 :[FH]-) ac_tag=-:-;;
36756 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36757 esac
36758 ac_save_IFS=$IFS
36759 IFS=:
36760 set x $ac_tag
36761 IFS=$ac_save_IFS
36762 shift
36763 ac_file=$1
36764 shift
36765
36766 case $ac_mode in
36767 :L) ac_source=$1;;
36768 :[FH])
36769 ac_file_inputs=
36770 for ac_f
36771 do
36772 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036773 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036774 *) # Look for the file first in the build tree, then in the source tree
36775 # (if the path is not absolute). The absolute path cannot be DOS-style,
36776 # because $ac_f cannot contain `:'.
36777 test -f "$ac_f" ||
36778 case $ac_f in
36779 [\\/$]*) false;;
36780 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36781 esac ||
cristy98dddb52010-11-04 00:30:15 +000036782 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036783 esac
36784 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036785 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036786 done
36787
36788 # Let's still pretend it is `configure' which instantiates (i.e., don't
36789 # use $as_me), people would be surprised to read:
36790 # /* config.h. Generated by config.status. */
36791 configure_input='Generated from '`
36792 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36793 `' by configure.'
36794 if test x"$ac_file" != x-; then
36795 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036796 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036797$as_echo "$as_me: creating $ac_file" >&6;}
36798 fi
36799 # Neutralize special characters interpreted by sed in replacement strings.
36800 case $configure_input in #(
36801 *\&* | *\|* | *\\* )
36802 ac_sed_conf_input=`$as_echo "$configure_input" |
36803 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36804 *) ac_sed_conf_input=$configure_input;;
36805 esac
36806
36807 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036808 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036809 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036810 esac
36811 ;;
36812 esac
36813
36814 ac_dir=`$as_dirname -- "$ac_file" ||
36815$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36816 X"$ac_file" : 'X\(//\)[^/]' \| \
36817 X"$ac_file" : 'X\(//\)$' \| \
36818 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36819$as_echo X"$ac_file" |
36820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36821 s//\1/
36822 q
36823 }
36824 /^X\(\/\/\)[^/].*/{
36825 s//\1/
36826 q
36827 }
36828 /^X\(\/\/\)$/{
36829 s//\1/
36830 q
36831 }
36832 /^X\(\/\).*/{
36833 s//\1/
36834 q
36835 }
36836 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036837 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036838 ac_builddir=.
36839
36840case "$ac_dir" in
36841.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36842*)
36843 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36844 # A ".." for each directory in $ac_dir_suffix.
36845 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36846 case $ac_top_builddir_sub in
36847 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36848 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36849 esac ;;
36850esac
36851ac_abs_top_builddir=$ac_pwd
36852ac_abs_builddir=$ac_pwd$ac_dir_suffix
36853# for backward compatibility:
36854ac_top_builddir=$ac_top_build_prefix
36855
36856case $srcdir in
36857 .) # We are building in place.
36858 ac_srcdir=.
36859 ac_top_srcdir=$ac_top_builddir_sub
36860 ac_abs_top_srcdir=$ac_pwd ;;
36861 [\\/]* | ?:[\\/]* ) # Absolute name.
36862 ac_srcdir=$srcdir$ac_dir_suffix;
36863 ac_top_srcdir=$srcdir
36864 ac_abs_top_srcdir=$srcdir ;;
36865 *) # Relative name.
36866 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36867 ac_top_srcdir=$ac_top_build_prefix$srcdir
36868 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36869esac
36870ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36871
36872
36873 case $ac_mode in
36874 :F)
36875 #
36876 # CONFIG_FILE
36877 #
36878
36879 case $INSTALL in
36880 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36881 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36882 esac
cristy73bd4a52010-10-05 11:24:23 +000036883 ac_MKDIR_P=$MKDIR_P
36884 case $MKDIR_P in
36885 [\\/$]* | ?:[\\/]* ) ;;
36886 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36887 esac
cristy3ed852e2009-09-05 21:47:34 +000036888_ACEOF
36889
36890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36891# If the template does not know about datarootdir, expand it.
36892# FIXME: This hack should be removed a few years after 2.60.
36893ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036894ac_sed_dataroot='
36895/datarootdir/ {
36896 p
36897 q
36898}
36899/@datadir@/p
36900/@docdir@/p
36901/@infodir@/p
36902/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036903/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036904case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36905*datarootdir*) ac_datarootdir_seen=yes;;
36906*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036908$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36909_ACEOF
36910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36911 ac_datarootdir_hack='
36912 s&@datadir@&$datadir&g
36913 s&@docdir@&$docdir&g
36914 s&@infodir@&$infodir&g
36915 s&@localedir@&$localedir&g
36916 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036917 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036918esac
36919_ACEOF
36920
36921# Neutralize VPATH when `$srcdir' = `.'.
36922# Shell code in configure.ac might set extrasub.
36923# FIXME: do we really want to maintain this feature?
36924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36925ac_sed_extra="$ac_vpsub
36926$extrasub
36927_ACEOF
36928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36929:t
36930/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36931s|@configure_input@|$ac_sed_conf_input|;t t
36932s&@top_builddir@&$ac_top_builddir_sub&;t t
36933s&@top_build_prefix@&$ac_top_build_prefix&;t t
36934s&@srcdir@&$ac_srcdir&;t t
36935s&@abs_srcdir@&$ac_abs_srcdir&;t t
36936s&@top_srcdir@&$ac_top_srcdir&;t t
36937s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36938s&@builddir@&$ac_builddir&;t t
36939s&@abs_builddir@&$ac_abs_builddir&;t t
36940s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36941s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036942s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036943$ac_datarootdir_hack
36944"
cristyda16f162011-02-19 23:52:17 +000036945eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36946 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036947
36948test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036949 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36950 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36951 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036953which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036954$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036955which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036956
cristyda16f162011-02-19 23:52:17 +000036957 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036958 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036959 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36960 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036961 esac \
cristy98dddb52010-11-04 00:30:15 +000036962 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036963 ;;
36964 :H)
36965 #
36966 # CONFIG_HEADER
36967 #
36968 if test x"$ac_file" != x-; then
36969 {
36970 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036971 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36972 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036974 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036975 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036976$as_echo "$as_me: $ac_file is unchanged" >&6;}
36977 else
36978 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036979 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036981 fi
36982 else
36983 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036984 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036985 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036986 fi
cristy73bd4a52010-10-05 11:24:23 +000036987# Compute "$ac_file"'s index in $config_headers.
36988_am_arg="$ac_file"
36989_am_stamp_count=1
36990for _am_header in $config_headers :; do
36991 case $_am_header in
36992 $_am_arg | $_am_arg:* )
36993 break ;;
36994 * )
36995 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36996 esac
36997done
36998echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36999$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37000 X"$_am_arg" : 'X\(//\)[^/]' \| \
37001 X"$_am_arg" : 'X\(//\)$' \| \
37002 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37003$as_echo X"$_am_arg" |
37004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37005 s//\1/
37006 q
37007 }
37008 /^X\(\/\/\)[^/].*/{
37009 s//\1/
37010 q
37011 }
37012 /^X\(\/\/\)$/{
37013 s//\1/
37014 q
37015 }
37016 /^X\(\/\).*/{
37017 s//\1/
37018 q
37019 }
37020 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037021 ;;
37022
cristy8b350f62009-11-15 23:12:43 +000037023 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037024$as_echo "$as_me: executing $ac_file commands" >&6;}
37025 ;;
37026 esac
37027
37028
37029 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037030 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037031ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37032ac_prefix_conf_PKG=`echo MagickCore`
37033ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37034ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37035ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37036if test ".$ac_prefix_conf_INP" = "."; then
37037 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37038 case "$ac_file" in
37039 *.h) ac_prefix_conf_INP=$ac_file ;;
37040 *)
37041 esac
37042 test ".$ac_prefix_conf_INP" != "." && break
37043 done
37044fi
37045if test ".$ac_prefix_conf_INP" = "."; then
37046 case "$ac_prefix_conf_OUT" in
37047 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37048 ;;
37049 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37050 ;;
37051 *) ac_prefix_conf_INP=config.h
37052 ;;
37053 esac
37054fi
37055if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037056 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037057else
37058 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37059 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37060 fi fi
37061 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37062$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37063 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037064 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37065 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37066 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37067 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37068 $as_echo "#endif/" >> conftest.prefix
37069 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37070 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37071 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037072 # now executing _script on _DEF input to create _OUT output file
37073 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37074 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37075 echo ' ' >>$tmp/pconfig.h
37076 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37077
37078 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37079 echo ' ' >>$tmp/pconfig.h
37080 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37081 echo "#endif" >>$tmp/pconfig.h
37082 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37083 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37084$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37085 else
37086 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37087$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37088 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37089 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37090 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37091$as_echo X"$ac_prefix_conf_OUT" |
37092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37093 s//\1/
37094 q
37095 }
37096 /^X\(\/\/\)[^/].*/{
37097 s//\1/
37098 q
37099 }
37100 /^X\(\/\/\)$/{
37101 s//\1/
37102 q
37103 }
37104 /^X\(\/\).*/{
37105 s//\1/
37106 q
37107 }
37108 s/.*/./; q'`
37109 as_dir="$ac_dir"; as_fn_mkdir_p
37110 rm -f "$ac_prefix_conf_OUT"
37111 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37112 fi
37113 cp conftest.prefix _configs.sed
37114 else
cristy98dddb52010-11-04 00:30:15 +000037115 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 +000037116 fi
37117 rm -f conftest.*
37118fi
37119 ;;
37120 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37121 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37122 # are listed without --file. Let's play safe and only enable the eval
37123 # if we detect the quoting.
37124 case $CONFIG_FILES in
37125 *\'*) eval set x "$CONFIG_FILES" ;;
37126 *) set x $CONFIG_FILES ;;
37127 esac
37128 shift
37129 for mf
37130 do
37131 # Strip MF so we end up with the name of the file.
37132 mf=`echo "$mf" | sed -e 's/:.*$//'`
37133 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037134 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037135 # some people rename them; so instead we look at the file content.
37136 # Grep'ing the first line is not enough: some people post-process
37137 # each Makefile.in and add a new line on top of each file to say so.
37138 # Grep'ing the whole file is not good either: AIX grep has a line
37139 # limit of 2048, but all sed's we know have understand at least 4000.
37140 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37141 dirpart=`$as_dirname -- "$mf" ||
37142$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37143 X"$mf" : 'X\(//\)[^/]' \| \
37144 X"$mf" : 'X\(//\)$' \| \
37145 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37146$as_echo X"$mf" |
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 else
37165 continue
37166 fi
37167 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037168 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037169 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37170 test -z "$DEPDIR" && continue
37171 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37172 test -z "am__include" && continue
37173 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037174 # Find all dependency output files, they are included files with
37175 # $(DEPDIR) in their names. We invoke sed twice because it is the
37176 # simplest approach to changing $(DEPDIR) to its actual value in the
37177 # expansion.
37178 for file in `sed -n "
37179 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037180 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037181 # Make sure the directory exists.
37182 test -f "$dirpart/$file" && continue
37183 fdir=`$as_dirname -- "$file" ||
37184$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37185 X"$file" : 'X\(//\)[^/]' \| \
37186 X"$file" : 'X\(//\)$' \| \
37187 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37188$as_echo X"$file" |
37189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37190 s//\1/
37191 q
37192 }
37193 /^X\(\/\/\)[^/].*/{
37194 s//\1/
37195 q
37196 }
37197 /^X\(\/\/\)$/{
37198 s//\1/
37199 q
37200 }
37201 /^X\(\/\).*/{
37202 s//\1/
37203 q
37204 }
37205 s/.*/./; q'`
37206 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37207 # echo "creating $dirpart/$file"
37208 echo '# dummy' > "$dirpart/$file"
37209 done
37210 done
37211}
37212 ;;
37213 "libtool":C)
37214
37215 # See if we are running on zsh, and set the options which allow our
37216 # commands through without removal of \ escapes.
37217 if test -n "${ZSH_VERSION+set}" ; then
37218 setopt NO_GLOB_SUBST
37219 fi
37220
37221 cfgfile="${ofile}T"
37222 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37223 $RM "$cfgfile"
37224
37225 cat <<_LT_EOF >> "$cfgfile"
37226#! $SHELL
37227
37228# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37229# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37230# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37231# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37232#
37233# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037234# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37235# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037236# Written by Gordon Matzigkeit, 1996
37237#
37238# This file is part of GNU Libtool.
37239#
37240# GNU Libtool is free software; you can redistribute it and/or
37241# modify it under the terms of the GNU General Public License as
37242# published by the Free Software Foundation; either version 2 of
37243# the License, or (at your option) any later version.
37244#
37245# As a special exception to the GNU General Public License,
37246# if you distribute this file as part of a program or library that
37247# is built using GNU Libtool, you may include this file under the
37248# same distribution terms that you use for the rest of that program.
37249#
37250# GNU Libtool is distributed in the hope that it will be useful,
37251# but WITHOUT ANY WARRANTY; without even the implied warranty of
37252# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37253# GNU General Public License for more details.
37254#
37255# You should have received a copy of the GNU General Public License
37256# along with GNU Libtool; see the file COPYING. If not, a copy
37257# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37258# obtained by writing to the Free Software Foundation, Inc.,
37259# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37260
37261
37262# The names of the tagged configurations supported by this script.
37263available_tags="CXX "
37264
37265# ### BEGIN LIBTOOL CONFIG
37266
37267# A sed program that does not truncate output.
37268SED=$lt_SED
37269
37270# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37271Xsed="\$SED -e 1s/^X//"
37272
37273# A grep program that handles long lines.
37274GREP=$lt_GREP
37275
37276# An ERE matcher.
37277EGREP=$lt_EGREP
37278
37279# A literal string matcher.
37280FGREP=$lt_FGREP
37281
cristy0c60a692010-11-04 01:09:47 +000037282# Shell to use when invoking shell scripts.
37283SHELL=$lt_SHELL
37284
37285# An echo program that protects backslashes.
37286ECHO=$lt_ECHO
37287
cristy73bd4a52010-10-05 11:24:23 +000037288# Which release of libtool.m4 was used?
37289macro_version=$macro_version
37290macro_revision=$macro_revision
37291
37292# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037293AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037294
37295# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037296DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037297
37298# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037299OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037300
37301# Whether or not to build shared libraries.
37302build_libtool_libs=$enable_shared
37303
37304# Whether or not to build static libraries.
37305build_old_libs=$enable_static
37306
37307# What type of objects to build.
37308pic_mode=$pic_mode
37309
37310# Whether or not to optimize for fast installation.
37311fast_install=$enable_fast_install
37312
cristy99bd5232011-12-07 14:38:20 +000037313# The PATH separator for the build system.
37314PATH_SEPARATOR=$lt_PATH_SEPARATOR
37315
cristy73bd4a52010-10-05 11:24:23 +000037316# The host system.
37317host_alias=$host_alias
37318host=$host
37319host_os=$host_os
37320
37321# The build system.
37322build_alias=$build_alias
37323build=$build
37324build_os=$build_os
37325
37326# A BSD- or MS-compatible name lister.
37327NM=$lt_NM
37328
37329# Whether we need soft or hard links.
37330LN_S=$lt_LN_S
37331
37332# What is the maximum length of a command?
37333max_cmd_len=$max_cmd_len
37334
37335# Object file suffix (normally "o").
37336objext=$ac_objext
37337
37338# Executable file suffix (normally "").
37339exeext=$exeext
37340
37341# whether the shell understands "unset".
37342lt_unset=$lt_unset
37343
37344# turn spaces into newlines.
37345SP2NL=$lt_lt_SP2NL
37346
37347# turn newlines into spaces.
37348NL2SP=$lt_lt_NL2SP
37349
cristyda16f162011-02-19 23:52:17 +000037350# convert \$build file names to \$host format.
37351to_host_file_cmd=$lt_cv_to_host_file_cmd
37352
37353# convert \$build files to toolchain format.
37354to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37355
cristy73bd4a52010-10-05 11:24:23 +000037356# Method to check whether dependent libraries are shared objects.
37357deplibs_check_method=$lt_deplibs_check_method
37358
cristyda16f162011-02-19 23:52:17 +000037359# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037360file_magic_cmd=$lt_file_magic_cmd
37361
cristyda16f162011-02-19 23:52:17 +000037362# How to find potential files when deplibs_check_method = "file_magic".
37363file_magic_glob=$lt_file_magic_glob
37364
37365# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37366want_nocaseglob=$lt_want_nocaseglob
37367
37368# Command to associate shared and link libraries.
37369sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37370
cristy73bd4a52010-10-05 11:24:23 +000037371# The archiver.
37372AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037373
37374# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037375AR_FLAGS=$lt_AR_FLAGS
37376
cristyda16f162011-02-19 23:52:17 +000037377# How to feed a file listing to the archiver.
37378archiver_list_spec=$lt_archiver_list_spec
37379
cristy73bd4a52010-10-05 11:24:23 +000037380# A symbol stripping program.
37381STRIP=$lt_STRIP
37382
37383# Commands used to install an old-style archive.
37384RANLIB=$lt_RANLIB
37385old_postinstall_cmds=$lt_old_postinstall_cmds
37386old_postuninstall_cmds=$lt_old_postuninstall_cmds
37387
cristy0c60a692010-11-04 01:09:47 +000037388# Whether to use a lock for old archive extraction.
37389lock_old_archive_extraction=$lock_old_archive_extraction
37390
cristy73bd4a52010-10-05 11:24:23 +000037391# A C compiler.
37392LTCC=$lt_CC
37393
37394# LTCC compiler flags.
37395LTCFLAGS=$lt_CFLAGS
37396
37397# Take the output of nm and produce a listing of raw symbols and C names.
37398global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37399
37400# Transform the output of nm in a proper C declaration.
37401global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37402
37403# Transform the output of nm in a C name address pair.
37404global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37405
37406# Transform the output of nm in a C name address pair when lib prefix is needed.
37407global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37408
cristyda16f162011-02-19 23:52:17 +000037409# Specify filename containing input files for \$NM.
37410nm_file_list_spec=$lt_nm_file_list_spec
37411
37412# The root where to search for dependent libraries,and in which our libraries should be installed.
37413lt_sysroot=$lt_sysroot
37414
cristy73bd4a52010-10-05 11:24:23 +000037415# The name of the directory that contains temporary libtool files.
37416objdir=$objdir
37417
cristy73bd4a52010-10-05 11:24:23 +000037418# Used to examine libraries when file_magic_cmd begins with "file".
37419MAGIC_CMD=$MAGIC_CMD
37420
37421# Must we lock files when doing compilation?
37422need_locks=$lt_need_locks
37423
cristyda16f162011-02-19 23:52:17 +000037424# Manifest tool.
37425MANIFEST_TOOL=$lt_MANIFEST_TOOL
37426
cristy73bd4a52010-10-05 11:24:23 +000037427# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37428DSYMUTIL=$lt_DSYMUTIL
37429
37430# Tool to change global to local symbols on Mac OS X.
37431NMEDIT=$lt_NMEDIT
37432
37433# Tool to manipulate fat objects and archives on Mac OS X.
37434LIPO=$lt_LIPO
37435
37436# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37437OTOOL=$lt_OTOOL
37438
37439# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37440OTOOL64=$lt_OTOOL64
37441
37442# Old archive suffix (normally "a").
37443libext=$libext
37444
37445# Shared library suffix (normally ".so").
37446shrext_cmds=$lt_shrext_cmds
37447
37448# The commands to extract the exported symbol list from a shared archive.
37449extract_expsyms_cmds=$lt_extract_expsyms_cmds
37450
37451# Variables whose values should be saved in libtool wrapper scripts and
37452# restored at link time.
37453variables_saved_for_relink=$lt_variables_saved_for_relink
37454
37455# Do we need the "lib" prefix for modules?
37456need_lib_prefix=$need_lib_prefix
37457
37458# Do we need a version for libraries?
37459need_version=$need_version
37460
37461# Library versioning type.
37462version_type=$version_type
37463
37464# Shared library runtime path variable.
37465runpath_var=$runpath_var
37466
37467# Shared library path variable.
37468shlibpath_var=$shlibpath_var
37469
37470# Is shlibpath searched before the hard-coded library search path?
37471shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37472
37473# Format of library name prefix.
37474libname_spec=$lt_libname_spec
37475
37476# List of archive names. First name is the real one, the rest are links.
37477# The last name is the one that the linker finds with -lNAME
37478library_names_spec=$lt_library_names_spec
37479
37480# The coded name of the library, if different from the real name.
37481soname_spec=$lt_soname_spec
37482
cristy0c60a692010-11-04 01:09:47 +000037483# Permission mode override for installation of shared libraries.
37484install_override_mode=$lt_install_override_mode
37485
cristy73bd4a52010-10-05 11:24:23 +000037486# Command to use after installation of a shared archive.
37487postinstall_cmds=$lt_postinstall_cmds
37488
37489# Command to use after uninstallation of a shared archive.
37490postuninstall_cmds=$lt_postuninstall_cmds
37491
37492# Commands used to finish a libtool library installation in a directory.
37493finish_cmds=$lt_finish_cmds
37494
37495# As "finish_cmds", except a single script fragment to be evaled but
37496# not shown.
37497finish_eval=$lt_finish_eval
37498
37499# Whether we should hardcode library paths into libraries.
37500hardcode_into_libs=$hardcode_into_libs
37501
37502# Compile-time system search path for libraries.
37503sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37504
37505# Run-time system search path for libraries.
37506sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37507
37508# Whether dlopen is supported.
37509dlopen_support=$enable_dlopen
37510
37511# Whether dlopen of programs is supported.
37512dlopen_self=$enable_dlopen_self
37513
37514# Whether dlopen of statically linked programs is supported.
37515dlopen_self_static=$enable_dlopen_self_static
37516
37517# Commands to strip libraries.
37518old_striplib=$lt_old_striplib
37519striplib=$lt_striplib
37520
37521
37522# The linker used to build libraries.
37523LD=$lt_LD
37524
cristy0c60a692010-11-04 01:09:47 +000037525# How to create reloadable object files.
37526reload_flag=$lt_reload_flag
37527reload_cmds=$lt_reload_cmds
37528
cristy73bd4a52010-10-05 11:24:23 +000037529# Commands used to build an old-style archive.
37530old_archive_cmds=$lt_old_archive_cmds
37531
37532# A language specific compiler.
37533CC=$lt_compiler
37534
37535# Is the compiler the GNU compiler?
37536with_gcc=$GCC
37537
37538# Compiler flag to turn off builtin functions.
37539no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37540
cristy73bd4a52010-10-05 11:24:23 +000037541# Additional compiler flags for building library objects.
37542pic_flag=$lt_lt_prog_compiler_pic
37543
cristyda16f162011-02-19 23:52:17 +000037544# How to pass a linker flag through the compiler.
37545wl=$lt_lt_prog_compiler_wl
37546
cristy73bd4a52010-10-05 11:24:23 +000037547# Compiler flag to prevent dynamic linking.
37548link_static_flag=$lt_lt_prog_compiler_static
37549
37550# Does compiler simultaneously support -c and -o options?
37551compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37552
37553# Whether or not to add -lc for building shared libraries.
37554build_libtool_need_lc=$archive_cmds_need_lc
37555
37556# Whether or not to disallow shared libs when runtime libs are static.
37557allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37558
37559# Compiler flag to allow reflexive dlopens.
37560export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37561
37562# Compiler flag to generate shared objects directly from archives.
37563whole_archive_flag_spec=$lt_whole_archive_flag_spec
37564
37565# Whether the compiler copes with passing no objects directly.
37566compiler_needs_object=$lt_compiler_needs_object
37567
37568# Create an old-style archive from a shared archive.
37569old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37570
37571# Create a temporary old-style archive to link instead of a shared archive.
37572old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37573
37574# Commands used to build a shared archive.
37575archive_cmds=$lt_archive_cmds
37576archive_expsym_cmds=$lt_archive_expsym_cmds
37577
37578# Commands used to build a loadable module if different from building
37579# a shared archive.
37580module_cmds=$lt_module_cmds
37581module_expsym_cmds=$lt_module_expsym_cmds
37582
37583# Whether we are building with GNU ld or not.
37584with_gnu_ld=$lt_with_gnu_ld
37585
37586# Flag that allows shared libraries with undefined symbols to be built.
37587allow_undefined_flag=$lt_allow_undefined_flag
37588
37589# Flag that enforces no undefined symbols.
37590no_undefined_flag=$lt_no_undefined_flag
37591
37592# Flag to hardcode \$libdir into a binary during linking.
37593# This must work even if \$libdir does not exist
37594hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37595
cristy73bd4a52010-10-05 11:24:23 +000037596# Whether we need a single "-rpath" flag with a separated argument.
37597hardcode_libdir_separator=$lt_hardcode_libdir_separator
37598
37599# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37600# DIR into the resulting binary.
37601hardcode_direct=$hardcode_direct
37602
37603# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37604# DIR into the resulting binary and the resulting library dependency is
37605# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37606# library is relocated.
37607hardcode_direct_absolute=$hardcode_direct_absolute
37608
37609# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37610# into the resulting binary.
37611hardcode_minus_L=$hardcode_minus_L
37612
37613# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37614# into the resulting binary.
37615hardcode_shlibpath_var=$hardcode_shlibpath_var
37616
37617# Set to "yes" if building a shared library automatically hardcodes DIR
37618# into the library and all subsequent libraries and executables linked
37619# against it.
37620hardcode_automatic=$hardcode_automatic
37621
37622# Set to yes if linker adds runtime paths of dependent libraries
37623# to runtime path list.
37624inherit_rpath=$inherit_rpath
37625
37626# Whether libtool must link a program against all its dependency libraries.
37627link_all_deplibs=$link_all_deplibs
37628
cristy73bd4a52010-10-05 11:24:23 +000037629# Set to "yes" if exported symbols are required.
37630always_export_symbols=$always_export_symbols
37631
37632# The commands to list exported symbols.
37633export_symbols_cmds=$lt_export_symbols_cmds
37634
37635# Symbols that should not be listed in the preloaded symbols.
37636exclude_expsyms=$lt_exclude_expsyms
37637
37638# Symbols that must always be exported.
37639include_expsyms=$lt_include_expsyms
37640
37641# Commands necessary for linking programs (against libraries) with templates.
37642prelink_cmds=$lt_prelink_cmds
37643
cristyda16f162011-02-19 23:52:17 +000037644# Commands necessary for finishing linking programs.
37645postlink_cmds=$lt_postlink_cmds
37646
cristy73bd4a52010-10-05 11:24:23 +000037647# Specify filename containing input files.
37648file_list_spec=$lt_file_list_spec
37649
37650# How to hardcode a shared library path into an executable.
37651hardcode_action=$hardcode_action
37652
37653# The directories searched by this compiler when creating a shared library.
37654compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37655
37656# Dependencies to place before and after the objects being linked to
37657# create a shared library.
37658predep_objects=$lt_predep_objects
37659postdep_objects=$lt_postdep_objects
37660predeps=$lt_predeps
37661postdeps=$lt_postdeps
37662
37663# The library search path used internally by the compiler when linking
37664# a shared library.
37665compiler_lib_search_path=$lt_compiler_lib_search_path
37666
37667# ### END LIBTOOL CONFIG
37668
37669_LT_EOF
37670
37671 case $host_os in
37672 aix3*)
37673 cat <<\_LT_EOF >> "$cfgfile"
37674# AIX sometimes has problems with the GCC collect2 program. For some
37675# reason, if we set the COLLECT_NAMES environment variable, the problems
37676# vanish in a puff of smoke.
37677if test "X${COLLECT_NAMES+set}" != Xset; then
37678 COLLECT_NAMES=
37679 export COLLECT_NAMES
37680fi
37681_LT_EOF
37682 ;;
37683 esac
37684
37685
37686ltmain="$ac_aux_dir/ltmain.sh"
37687
37688
37689 # We use sed instead of cat because bash on DJGPP gets confused if
37690 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37691 # text mode, it properly converts lines to CR/LF. This bash problem
37692 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037693 sed '$q' "$ltmain" >> "$cfgfile" \
37694 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037695
cristyda16f162011-02-19 23:52:17 +000037696 if test x"$xsi_shell" = xyes; then
37697 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37698func_dirname ()\
37699{\
37700\ case ${1} in\
37701\ */*) func_dirname_result="${1%/*}${2}" ;;\
37702\ * ) func_dirname_result="${3}" ;;\
37703\ esac\
37704} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37705 && mv -f "$cfgfile.tmp" "$cfgfile" \
37706 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37707test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037708
37709
cristyda16f162011-02-19 23:52:17 +000037710 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37711func_basename ()\
37712{\
37713\ func_basename_result="${1##*/}"\
37714} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37715 && mv -f "$cfgfile.tmp" "$cfgfile" \
37716 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37717test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037718
37719
cristyda16f162011-02-19 23:52:17 +000037720 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37721func_dirname_and_basename ()\
37722{\
37723\ case ${1} in\
37724\ */*) func_dirname_result="${1%/*}${2}" ;;\
37725\ * ) func_dirname_result="${3}" ;;\
37726\ esac\
37727\ func_basename_result="${1##*/}"\
37728} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37729 && mv -f "$cfgfile.tmp" "$cfgfile" \
37730 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37731test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037732
cristyda16f162011-02-19 23:52:17 +000037733
37734 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37735func_stripname ()\
37736{\
37737\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37738\ # positional parameters, so assign one to ordinary parameter first.\
37739\ func_stripname_result=${3}\
37740\ func_stripname_result=${func_stripname_result#"${1}"}\
37741\ func_stripname_result=${func_stripname_result%"${2}"}\
37742} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37743 && mv -f "$cfgfile.tmp" "$cfgfile" \
37744 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37745test 0 -eq $? || _lt_function_replace_fail=:
37746
37747
37748 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37749func_split_long_opt ()\
37750{\
37751\ func_split_long_opt_name=${1%%=*}\
37752\ func_split_long_opt_arg=${1#*=}\
37753} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37754 && mv -f "$cfgfile.tmp" "$cfgfile" \
37755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37756test 0 -eq $? || _lt_function_replace_fail=:
37757
37758
37759 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37760func_split_short_opt ()\
37761{\
37762\ func_split_short_opt_arg=${1#??}\
37763\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37764} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37765 && mv -f "$cfgfile.tmp" "$cfgfile" \
37766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37767test 0 -eq $? || _lt_function_replace_fail=:
37768
37769
37770 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37771func_lo2o ()\
37772{\
37773\ case ${1} in\
37774\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37775\ *) func_lo2o_result=${1} ;;\
37776\ esac\
37777} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37778 && mv -f "$cfgfile.tmp" "$cfgfile" \
37779 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37780test 0 -eq $? || _lt_function_replace_fail=:
37781
37782
37783 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37784func_xform ()\
37785{\
37786 func_xform_result=${1%.*}.lo\
37787} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37788 && mv -f "$cfgfile.tmp" "$cfgfile" \
37789 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37790test 0 -eq $? || _lt_function_replace_fail=:
37791
37792
37793 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37794func_arith ()\
37795{\
37796 func_arith_result=$(( $* ))\
37797} # Extended-shell func_arith 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_len ()$/,/^} # func_len /c\
37804func_len ()\
37805{\
37806 func_len_result=${#1}\
37807} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37808 && mv -f "$cfgfile.tmp" "$cfgfile" \
37809 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37810test 0 -eq $? || _lt_function_replace_fail=:
37811
37812fi
37813
37814if test x"$lt_shell_append" = xyes; then
37815 sed -e '/^func_append ()$/,/^} # func_append /c\
37816func_append ()\
37817{\
37818 eval "${1}+=\\${2}"\
37819} # Extended-shell func_append 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_append_quoted ()$/,/^} # func_append_quoted /c\
37826func_append_quoted ()\
37827{\
37828\ func_quote_for_eval "${2}"\
37829\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37830} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37831 && mv -f "$cfgfile.tmp" "$cfgfile" \
37832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37833test 0 -eq $? || _lt_function_replace_fail=:
37834
37835
37836 # Save a `func_append' function call where possible by direct use of '+='
37837 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37838 && mv -f "$cfgfile.tmp" "$cfgfile" \
37839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37840 test 0 -eq $? || _lt_function_replace_fail=:
37841else
37842 # Save a `func_append' function call even when '+=' is not available
37843 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37844 && mv -f "$cfgfile.tmp" "$cfgfile" \
37845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37846 test 0 -eq $? || _lt_function_replace_fail=:
37847fi
37848
37849if test x"$_lt_function_replace_fail" = x":"; then
37850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37851$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37852fi
37853
37854
37855 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037856 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37857 chmod +x "$ofile"
37858
37859
37860 cat <<_LT_EOF >> "$ofile"
37861
37862# ### BEGIN LIBTOOL TAG CONFIG: CXX
37863
37864# The linker used to build libraries.
37865LD=$lt_LD_CXX
37866
cristy0c60a692010-11-04 01:09:47 +000037867# How to create reloadable object files.
37868reload_flag=$lt_reload_flag_CXX
37869reload_cmds=$lt_reload_cmds_CXX
37870
cristy73bd4a52010-10-05 11:24:23 +000037871# Commands used to build an old-style archive.
37872old_archive_cmds=$lt_old_archive_cmds_CXX
37873
37874# A language specific compiler.
37875CC=$lt_compiler_CXX
37876
37877# Is the compiler the GNU compiler?
37878with_gcc=$GCC_CXX
37879
37880# Compiler flag to turn off builtin functions.
37881no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37882
cristy73bd4a52010-10-05 11:24:23 +000037883# Additional compiler flags for building library objects.
37884pic_flag=$lt_lt_prog_compiler_pic_CXX
37885
cristyda16f162011-02-19 23:52:17 +000037886# How to pass a linker flag through the compiler.
37887wl=$lt_lt_prog_compiler_wl_CXX
37888
cristy73bd4a52010-10-05 11:24:23 +000037889# Compiler flag to prevent dynamic linking.
37890link_static_flag=$lt_lt_prog_compiler_static_CXX
37891
37892# Does compiler simultaneously support -c and -o options?
37893compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37894
37895# Whether or not to add -lc for building shared libraries.
37896build_libtool_need_lc=$archive_cmds_need_lc_CXX
37897
37898# Whether or not to disallow shared libs when runtime libs are static.
37899allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37900
37901# Compiler flag to allow reflexive dlopens.
37902export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37903
37904# Compiler flag to generate shared objects directly from archives.
37905whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37906
37907# Whether the compiler copes with passing no objects directly.
37908compiler_needs_object=$lt_compiler_needs_object_CXX
37909
37910# Create an old-style archive from a shared archive.
37911old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37912
37913# Create a temporary old-style archive to link instead of a shared archive.
37914old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37915
37916# Commands used to build a shared archive.
37917archive_cmds=$lt_archive_cmds_CXX
37918archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37919
37920# Commands used to build a loadable module if different from building
37921# a shared archive.
37922module_cmds=$lt_module_cmds_CXX
37923module_expsym_cmds=$lt_module_expsym_cmds_CXX
37924
37925# Whether we are building with GNU ld or not.
37926with_gnu_ld=$lt_with_gnu_ld_CXX
37927
37928# Flag that allows shared libraries with undefined symbols to be built.
37929allow_undefined_flag=$lt_allow_undefined_flag_CXX
37930
37931# Flag that enforces no undefined symbols.
37932no_undefined_flag=$lt_no_undefined_flag_CXX
37933
37934# Flag to hardcode \$libdir into a binary during linking.
37935# This must work even if \$libdir does not exist
37936hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37937
cristy73bd4a52010-10-05 11:24:23 +000037938# Whether we need a single "-rpath" flag with a separated argument.
37939hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37940
37941# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37942# DIR into the resulting binary.
37943hardcode_direct=$hardcode_direct_CXX
37944
37945# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37946# DIR into the resulting binary and the resulting library dependency is
37947# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37948# library is relocated.
37949hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37950
37951# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37952# into the resulting binary.
37953hardcode_minus_L=$hardcode_minus_L_CXX
37954
37955# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37956# into the resulting binary.
37957hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37958
37959# Set to "yes" if building a shared library automatically hardcodes DIR
37960# into the library and all subsequent libraries and executables linked
37961# against it.
37962hardcode_automatic=$hardcode_automatic_CXX
37963
37964# Set to yes if linker adds runtime paths of dependent libraries
37965# to runtime path list.
37966inherit_rpath=$inherit_rpath_CXX
37967
37968# Whether libtool must link a program against all its dependency libraries.
37969link_all_deplibs=$link_all_deplibs_CXX
37970
cristy73bd4a52010-10-05 11:24:23 +000037971# Set to "yes" if exported symbols are required.
37972always_export_symbols=$always_export_symbols_CXX
37973
37974# The commands to list exported symbols.
37975export_symbols_cmds=$lt_export_symbols_cmds_CXX
37976
37977# Symbols that should not be listed in the preloaded symbols.
37978exclude_expsyms=$lt_exclude_expsyms_CXX
37979
37980# Symbols that must always be exported.
37981include_expsyms=$lt_include_expsyms_CXX
37982
37983# Commands necessary for linking programs (against libraries) with templates.
37984prelink_cmds=$lt_prelink_cmds_CXX
37985
cristyda16f162011-02-19 23:52:17 +000037986# Commands necessary for finishing linking programs.
37987postlink_cmds=$lt_postlink_cmds_CXX
37988
cristy73bd4a52010-10-05 11:24:23 +000037989# Specify filename containing input files.
37990file_list_spec=$lt_file_list_spec_CXX
37991
37992# How to hardcode a shared library path into an executable.
37993hardcode_action=$hardcode_action_CXX
37994
37995# The directories searched by this compiler when creating a shared library.
37996compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37997
37998# Dependencies to place before and after the objects being linked to
37999# create a shared library.
38000predep_objects=$lt_predep_objects_CXX
38001postdep_objects=$lt_postdep_objects_CXX
38002predeps=$lt_predeps_CXX
38003postdeps=$lt_postdeps_CXX
38004
38005# The library search path used internally by the compiler when linking
38006# a shared library.
38007compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38008
38009# ### END LIBTOOL TAG CONFIG: CXX
38010_LT_EOF
38011
38012 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038013 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038014 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038015 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038016 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38017 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38018
38019 esac
38020done # for ac_tag
38021
38022
cristy8b350f62009-11-15 23:12:43 +000038023as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038024_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038025ac_clean_files=$ac_clean_files_save
38026
38027test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038028 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038029
38030
38031# configure is writing to config.log, and then calls config.status.
38032# config.status does its own redirection, appending to config.log.
38033# Unfortunately, on DOS this fails, as config.log is still kept open
38034# by configure, so config.status won't be able to write to it; its
38035# output is simply discarded. So we exec the FD to /dev/null,
38036# effectively closing config.log, so it can be properly (re)opened and
38037# appended to by config.status. When coming back to configure, we
38038# need to make the FD available again.
38039if test "$no_create" != yes; then
38040 ac_cs_success=:
38041 ac_config_status_args=
38042 test "$silent" = yes &&
38043 ac_config_status_args="$ac_config_status_args --quiet"
38044 exec 5>/dev/null
38045 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38046 exec 5>>config.log
38047 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38048 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038049 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038050fi
38051if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038053$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38054fi
38055
38056
38057rm -f magick-version
38058
cristy430a7312010-01-21 20:44:04 +000038059result_dejavu_font_dir='none'
38060if test "${dejavu_font_dir}x" != 'x'; then
38061 result_dejavu_font_dir=$dejavu_font_dir
38062fi
38063
cristy3ed852e2009-09-05 21:47:34 +000038064result_ghostscript_font_dir='none'
38065if test "${ghostscript_font_dir}x" != 'x'; then
38066 result_ghostscript_font_dir=$ghostscript_font_dir
38067fi
38068
38069result_windows_font_dir='none'
38070if test "${windows_font_dir}x" != 'x'; then
38071 result_windows_font_dir=${windows_font_dir}
38072fi
38073
cristyad38abe2012-12-23 23:03:21 +000038074{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038075ImageMagick is configured as follows. Please verify that this configuration
38076matches your expectations.
38077
38078Host system type: $host
38079Build system type: $build
38080
38081 Option Value
38082-------------------------------------------------------------------------------
38083Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38084Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038085Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038086GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38087Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38088High Dynamic Range Imagery
38089 --enable-hdri=$enable_hdri $enable_hdri
38090
38091Delegate Configuration:
38092BZLIB --with-bzlib=$with_bzlib $have_bzlib
38093Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038094Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038095DJVU --with-djvu=$with_djvu $have_djvu
38096DPS --with-dps=$with_dps $have_dps
38097FFTW --with-fftw=$with_fftw $have_fftw
38098FlashPIX --with-fpx=$with_fpx $have_fpx
38099FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38100FreeType --with-freetype=$with_freetype $have_freetype
38101GhostPCL None $PCLDelegate ($PCLVersion)
38102GhostXPS None $XPSDelegate ($XPSVersion)
38103Ghostscript None $PSDelegate ($GSVersion)
38104Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38105Ghostscript lib --with-gslib=$with_gslib $have_gslib
38106Graphviz --with-gvc=$with_gvc $have_gvc
38107JBIG --with-jbig=$with_jbig $have_jbig
38108JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38109JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038110LCMS v1 --with-lcms=$with_lcms $have_lcms
38111LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038112LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038113LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038114LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038115Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38116OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038117PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038118PERL --with-perl=$with_perl $have_perl
38119PNG --with-png=$with_png $have_png
38120RSVG --with-rsvg=$with_rsvg $have_rsvg
38121TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038122WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038123Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038124WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038125X11 --with-x=$with_x $have_x
38126XML --with-xml=$with_xml $have_xml
38127ZLIB --with-zlib=$with_zlib $have_zlib
38128
38129X11 Configuration:
38130 X_CFLAGS = $X_CFLAGS
38131 X_PRE_LIBS = $X_PRE_LIBS
38132 X_LIBS = $X_LIBS
38133 X_EXTRA_LIBS = $X_EXTRA_LIBS
38134
38135Options used to compile and link:
38136 PREFIX = $PREFIX_DIR
38137 EXEC-PREFIX = $EXEC_PREFIX_DIR
38138 VERSION = $PACKAGE_VERSION
38139 CC = $CC
38140 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038141 CPPFLAGS = $MAGICK_CPPFLAGS
38142 PCFLAGS = $MAGICK_PCFLAGS
38143 DEFS = $DEFS
38144 LDFLAGS = $LDFLAGS
38145 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38146 LIBS = $MAGICK_LIBS
38147 CXX = $CXX
38148 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038149 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038150 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038151" >&5
cristyad38abe2012-12-23 23:03:21 +000038152$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038153ImageMagick is configured as follows. Please verify that this configuration
38154matches your expectations.
38155
38156Host system type: $host
38157Build system type: $build
38158
38159 Option Value
38160-------------------------------------------------------------------------------
38161Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38162Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038163Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038164GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38165Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38166High Dynamic Range Imagery
38167 --enable-hdri=$enable_hdri $enable_hdri
38168
38169Delegate Configuration:
38170BZLIB --with-bzlib=$with_bzlib $have_bzlib
38171Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038172Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038173DJVU --with-djvu=$with_djvu $have_djvu
38174DPS --with-dps=$with_dps $have_dps
38175FFTW --with-fftw=$with_fftw $have_fftw
38176FlashPIX --with-fpx=$with_fpx $have_fpx
38177FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38178FreeType --with-freetype=$with_freetype $have_freetype
38179GhostPCL None $PCLDelegate ($PCLVersion)
38180GhostXPS None $XPSDelegate ($XPSVersion)
38181Ghostscript None $PSDelegate ($GSVersion)
38182Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38183Ghostscript lib --with-gslib=$with_gslib $have_gslib
38184Graphviz --with-gvc=$with_gvc $have_gvc
38185JBIG --with-jbig=$with_jbig $have_jbig
38186JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38187JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038188LCMS v1 --with-lcms=$with_lcms $have_lcms
38189LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038190LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038191LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038192LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038193Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38194OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038195PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038196PERL --with-perl=$with_perl $have_perl
38197PNG --with-png=$with_png $have_png
38198RSVG --with-rsvg=$with_rsvg $have_rsvg
38199TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038200WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038201Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038202WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038203X11 --with-x=$with_x $have_x
38204XML --with-xml=$with_xml $have_xml
38205ZLIB --with-zlib=$with_zlib $have_zlib
38206
38207X11 Configuration:
38208 X_CFLAGS = $X_CFLAGS
38209 X_PRE_LIBS = $X_PRE_LIBS
38210 X_LIBS = $X_LIBS
38211 X_EXTRA_LIBS = $X_EXTRA_LIBS
38212
38213Options used to compile and link:
38214 PREFIX = $PREFIX_DIR
38215 EXEC-PREFIX = $EXEC_PREFIX_DIR
38216 VERSION = $PACKAGE_VERSION
38217 CC = $CC
38218 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038219 CPPFLAGS = $MAGICK_CPPFLAGS
38220 PCFLAGS = $MAGICK_PCFLAGS
38221 DEFS = $DEFS
38222 LDFLAGS = $LDFLAGS
38223 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38224 LIBS = $MAGICK_LIBS
38225 CXX = $CXX
38226 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038227 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038228 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038229" >&6; }