blob: 5d9e707272cca77c47074827df92bf89639feb8a [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000639MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000640MAGICK_LIBS
641MAGICK_LDFLAGS
642MAGICK_PCFLAGS
643MAGICK_CPPFLAGS
644MAGICK_CXXFLAGS
645MAGICK_CFLAGS
646MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000647OSX_GCOV_LDFLAG
648DELEGATES
649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000695UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000697SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000699RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700RMDelegate
701RLEEncodeDelegate
702PSDelegate
703POVDelegate
704PGPDecodeDelegate
705PCLDelegate
706MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000707MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708MPEGEncodeDelegate
709MPEGDecodeDelegate
710MANDelegate
711LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000712LPRDelegate
713LPDelegate
714ILBMEncodeDelegate
715ILBMDecodeDelegate
716HTMLDecodeDelegate
717HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718GnuplotDecodeDelegate
719MogrifyDelegate
720DisplayDelegate
721ConvertDelegate
722FIGDecodeDelegate
723EditorDelegate
724EchoDelegate
725DVIDecodeDelegate
726GVCDecodeDelegate
727DNGDecodeDelegate
728CatDelegate
729CGMDecodeDelegate
730BrowseDelegate
731BZIPDelegate
732BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000733AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000734SHAREARCH_PATH
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
cristycc22d1d2012-12-10 13:03:25 +00003652MAGICK_SVN_REVISION=10131M
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"
8903SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008904
cristy0151ae12011-10-28 16:32:29 +00008905
8906#
cristy3ed852e2009-09-05 21:47:34 +00008907# Enable support for threads
8908
8909# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008910if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008911 withval=$with_threads; with_threads=$withval
8912else
8913 with_threads='yes'
8914fi
8915
8916
8917have_threads=no
8918if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008919
8920
cristy73bd4a52010-10-05 11:24:23 +00008921ac_ext=c
8922ac_cpp='$CPP $CPPFLAGS'
8923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8925ac_compiler_gnu=$ac_cv_c_compiler_gnu
8926
8927ax_pthread_ok=no
8928
8929# We used to check for pthread.h first, but this fails if pthread.h
8930# requires special compiler flags (e.g. on True64 or Sequent).
8931# It gets checked for in the link test anyway.
8932
8933# First of all, check if the user has set any of the PTHREAD_LIBS,
8934# etcetera environment variables, and if threads linking works using
8935# them:
8936if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8937 save_CFLAGS="$CFLAGS"
8938 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8939 save_LIBS="$LIBS"
8940 LIBS="$PTHREAD_LIBS $LIBS"
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8942$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944/* end confdefs.h. */
8945
8946/* Override any GCC internal prototype to avoid an error.
8947 Use char because int might match the return type of a GCC
8948 builtin and then its argument prototype would still apply. */
8949#ifdef __cplusplus
8950extern "C"
8951#endif
8952char pthread_join ();
8953int
8954main ()
8955{
8956return pthread_join ();
8957 ;
8958 return 0;
8959}
8960_ACEOF
8961if ac_fn_c_try_link "$LINENO"; then :
8962 ax_pthread_ok=yes
8963fi
8964rm -f core conftest.err conftest.$ac_objext \
8965 conftest$ac_exeext conftest.$ac_ext
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8967$as_echo "$ax_pthread_ok" >&6; }
8968 if test x"$ax_pthread_ok" = xno; then
8969 PTHREAD_LIBS=""
8970 PTHREAD_CFLAGS=""
8971 fi
8972 LIBS="$save_LIBS"
8973 CFLAGS="$save_CFLAGS"
8974fi
8975
8976# We must check for the threads library under a number of different
8977# names; the ordering is very important because some systems
8978# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8979# libraries is broken (non-POSIX).
8980
8981# Create a list of thread flags to try. Items starting with a "-" are
8982# C compiler flags, and other items are library names, except for "none"
8983# which indicates that we try without any flags at all, and "pthread-config"
8984# which is a program returning the flags for the Pth emulation library.
8985
cristy18307f12011-12-30 01:20:16 +00008986ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008987
8988# The ordering *is* (sometimes) important. Some notes on the
8989# individual items follow:
8990
8991# pthreads: AIX (must check this before -lpthread)
8992# none: in case threads are in libc; should be tried before -Kthread and
8993# other compiler flags to prevent continual compiler warnings
8994# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8995# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8996# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8997# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8998# -pthreads: Solaris/gcc
8999# -mthreads: Mingw32/gcc, Lynx/gcc
9000# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9001# doesn't hurt to check since this sometimes defines pthreads too;
9002# also defines -D_REENTRANT)
9003# ... -mt is also the pthreads flag for HP/aCC
9004# pthread: Linux, etcetera
9005# --thread-safe: KAI C++
9006# pthread-config: use pthread-config program (for GNU Pth library)
9007
9008case "${host_cpu}-${host_os}" in
9009 *solaris*)
9010
9011 # On Solaris (at least, for some versions), libc contains stubbed
9012 # (non-functional) versions of the pthreads routines, so link-based
9013 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9014 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9015 # a function called by this macro, so we could check for that, but
9016 # who knows whether they'll stub that too in a future libc.) So,
9017 # we'll just look for -pthreads and -lpthread first:
9018
9019 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9020 ;;
9021
cristya316db12011-10-24 00:49:45 +00009022 *-darwin*)
9023 ax_pthread_flags="-pthread $ax_pthread_flags"
9024 ;;
cristy73bd4a52010-10-05 11:24:23 +00009025esac
9026
9027if test x"$ax_pthread_ok" = xno; then
9028for flag in $ax_pthread_flags; do
9029
9030 case $flag in
9031 none)
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9033$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9034 ;;
9035
9036 -*)
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9038$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9039 PTHREAD_CFLAGS="$flag"
9040 ;;
9041
cristya316db12011-10-24 00:49:45 +00009042 pthread-config)
9043 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009044set dummy pthread-config; ac_word=$2
9045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009047if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009048 $as_echo_n "(cached) " >&6
9049else
9050 if test -n "$ax_pthread_config"; then
9051 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9052else
9053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054for as_dir in $PATH
9055do
9056 IFS=$as_save_IFS
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009060 ac_cv_prog_ax_pthread_config="yes"
9061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 break 2
9063 fi
9064done
9065 done
9066IFS=$as_save_IFS
9067
9068 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9069fi
9070fi
9071ax_pthread_config=$ac_cv_prog_ax_pthread_config
9072if test -n "$ax_pthread_config"; then
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9074$as_echo "$ax_pthread_config" >&6; }
9075else
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077$as_echo "no" >&6; }
9078fi
9079
9080
cristya316db12011-10-24 00:49:45 +00009081 if test x"$ax_pthread_config" = xno; then continue; fi
9082 PTHREAD_CFLAGS="`pthread-config --cflags`"
9083 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9084 ;;
cristy73bd4a52010-10-05 11:24:23 +00009085
9086 *)
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9088$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9089 PTHREAD_LIBS="-l$flag"
9090 ;;
9091 esac
9092
9093 save_LIBS="$LIBS"
9094 save_CFLAGS="$CFLAGS"
9095 LIBS="$PTHREAD_LIBS $LIBS"
9096 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9097
9098 # Check for various functions. We must include pthread.h,
9099 # since some functions may be macros. (On the Sequent, we
9100 # need a special flag -Kthread to make this header compile.)
9101 # We check for pthread_join because it is in -lpthread on IRIX
9102 # while pthread_create is in libc. We check for pthread_attr_init
9103 # due to DEC craziness with -lpthreads. We check for
9104 # pthread_cleanup_push because it is one of the few pthread
9105 # functions on Solaris that doesn't have a non-functional libc stub.
9106 # We try pthread_create on general principles.
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108/* end confdefs.h. */
9109#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009110 static void routine(void *a) { a = 0; }
9111 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009112int
9113main ()
9114{
9115pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009116 pthread_create(&th, 0, start_routine, 0);
9117 pthread_join(th, 0);
9118 pthread_attr_init(&attr);
9119 pthread_cleanup_push(routine, 0);
9120 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009121 ;
9122 return 0;
9123}
9124_ACEOF
9125if ac_fn_c_try_link "$LINENO"; then :
9126 ax_pthread_ok=yes
9127fi
9128rm -f core conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
9130
9131 LIBS="$save_LIBS"
9132 CFLAGS="$save_CFLAGS"
9133
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9135$as_echo "$ax_pthread_ok" >&6; }
9136 if test "x$ax_pthread_ok" = xyes; then
9137 break;
9138 fi
9139
9140 PTHREAD_LIBS=""
9141 PTHREAD_CFLAGS=""
9142done
9143fi
9144
9145# Various other checks:
9146if test "x$ax_pthread_ok" = xyes; then
9147 save_LIBS="$LIBS"
9148 LIBS="$PTHREAD_LIBS $LIBS"
9149 save_CFLAGS="$CFLAGS"
9150 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9151
9152 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009154$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009155 attr_name=unknown
9156 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009158/* end confdefs.h. */
9159#include <pthread.h>
9160int
9161main ()
9162{
cristya316db12011-10-24 00:49:45 +00009163int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009164 ;
9165 return 0;
9166}
9167_ACEOF
9168if ac_fn_c_try_link "$LINENO"; then :
9169 attr_name=$attr; break
9170fi
9171rm -f core conftest.err conftest.$ac_objext \
9172 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009173 done
cristy73bd4a52010-10-05 11:24:23 +00009174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9175$as_echo "$attr_name" >&6; }
9176 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9177
9178cat >>confdefs.h <<_ACEOF
9179#define PTHREAD_CREATE_JOINABLE $attr_name
9180_ACEOF
9181
9182 fi
9183
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9185$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9186 flag=no
9187 case "${host_cpu}-${host_os}" in
9188 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9189 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9190 esac
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9192$as_echo "${flag}" >&6; }
9193 if test "x$flag" != xno; then
9194 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9195 fi
9196
cristya316db12011-10-24 00:49:45 +00009197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9198$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9199if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9200 $as_echo_n "(cached) " >&6
9201else
9202
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204/* end confdefs.h. */
9205
9206 #include <pthread.h>
9207int
9208main ()
9209{
9210int i = PTHREAD_PRIO_INHERIT;
9211 ;
9212 return 0;
9213}
9214_ACEOF
9215if ac_fn_c_try_link "$LINENO"; then :
9216 ax_cv_PTHREAD_PRIO_INHERIT=yes
9217else
9218 ax_cv_PTHREAD_PRIO_INHERIT=no
9219fi
9220rm -f core conftest.err conftest.$ac_objext \
9221 conftest$ac_exeext conftest.$ac_ext
9222
9223fi
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9225$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9226 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9227
9228$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9229
9230fi
9231
cristy73bd4a52010-10-05 11:24:23 +00009232 LIBS="$save_LIBS"
9233 CFLAGS="$save_CFLAGS"
9234
9235 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009236 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009237 for ac_prog in xlc_r cc_r
9238do
9239 # Extract the first word of "$ac_prog", so it can be a program name with args.
9240set dummy $ac_prog; ac_word=$2
9241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9242$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009243if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009244 $as_echo_n "(cached) " >&6
9245else
9246 if test -n "$PTHREAD_CC"; then
9247 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9248else
9249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250for as_dir in $PATH
9251do
9252 IFS=$as_save_IFS
9253 test -z "$as_dir" && as_dir=.
9254 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009256 ac_cv_prog_PTHREAD_CC="$ac_prog"
9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9258 break 2
9259 fi
9260done
9261 done
9262IFS=$as_save_IFS
9263
9264fi
9265fi
9266PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9267if test -n "$PTHREAD_CC"; then
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9269$as_echo "$PTHREAD_CC" >&6; }
9270else
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272$as_echo "no" >&6; }
9273fi
9274
9275
9276 test -n "$PTHREAD_CC" && break
9277done
9278test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9279
9280 else
9281 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009282 fi
cristy73bd4a52010-10-05 11:24:23 +00009283else
9284 PTHREAD_CC="$CC"
9285fi
9286
9287
9288
9289
9290
9291# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9292if test x"$ax_pthread_ok" = xyes; then
9293
9294$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9295
9296 :
9297else
9298 ax_pthread_ok=no
9299
9300fi
9301ac_ext=c
9302ac_cpp='$CPP $CPPFLAGS'
9303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9305ac_compiler_gnu=$ac_cv_c_compiler_gnu
9306
9307
cristy7acf8fb2010-09-23 19:58:53 +00009308 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009309 have_threads=yes
9310 DEF_THREAD="$PTHREAD_CFLAGS"
9311 CFLAGS="$CFLAGS $DEF_THREAD"
9312 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9313 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009314 { $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 +00009315$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9316 CC="$PTHREAD_CC"
9317 fi
cristy55bf91c2010-09-24 00:29:41 +00009318
9319$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9320
cristy3ed852e2009-09-05 21:47:34 +00009321 fi
9322fi
9323
9324# Enable support for OpenMP
9325if test "$have_threads" != 'yes'; then
9326 ac_cv_prog_c_openmp=unsupported
9327fi
9328
9329 OPENMP_CFLAGS=
9330 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009331if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009332 enableval=$enable_openmp;
9333fi
9334
9335 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009337$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009338if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009339 $as_echo_n "(cached) " >&6
9340else
cristy8b350f62009-11-15 23:12:43 +00009341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009343
9344#ifndef _OPENMP
9345 choke me
9346#endif
9347#include <omp.h>
9348int main () { return omp_get_num_threads (); }
9349
9350_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009351if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009352 ac_cv_prog_c_openmp='none needed'
9353else
cristy8b350f62009-11-15 23:12:43 +00009354 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009355 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9356 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009357 ac_save_CFLAGS=$CFLAGS
9358 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009361
9362#ifndef _OPENMP
9363 choke me
9364#endif
9365#include <omp.h>
9366int main () { return omp_get_num_threads (); }
9367
9368_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009369if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009370 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009371fi
cristy8b350f62009-11-15 23:12:43 +00009372rm -f core conftest.err conftest.$ac_objext \
9373 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009374 CFLAGS=$ac_save_CFLAGS
9375 if test "$ac_cv_prog_c_openmp" != unsupported; then
9376 break
9377 fi
9378 done
9379fi
cristy8b350f62009-11-15 23:12:43 +00009380rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009382fi
cristy8b350f62009-11-15 23:12:43 +00009383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009384$as_echo "$ac_cv_prog_c_openmp" >&6; }
9385 case $ac_cv_prog_c_openmp in #(
9386 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009387 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009388 *)
cristy8b350f62009-11-15 23:12:43 +00009389 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009390 esac
9391 fi
9392
9393
9394CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9395MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9396
cristy391f1ce2010-09-09 17:23:28 +00009397if test "$enable_openmp" != no; then
9398 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9399 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9400 fi
9401fi
cristy3ed852e2009-09-05 21:47:34 +00009402
cristy736173a2009-09-20 21:18:22 +00009403# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009404
9405
cristy73bd4a52010-10-05 11:24:23 +00009406ac_ext=c
9407ac_cpp='$CPP $CPPFLAGS'
9408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9410ac_compiler_gnu=$ac_cv_c_compiler_gnu
9411
9412ax_pthread_ok=no
9413
9414# We used to check for pthread.h first, but this fails if pthread.h
9415# requires special compiler flags (e.g. on True64 or Sequent).
9416# It gets checked for in the link test anyway.
9417
9418# First of all, check if the user has set any of the PTHREAD_LIBS,
9419# etcetera environment variables, and if threads linking works using
9420# them:
9421if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9422 save_CFLAGS="$CFLAGS"
9423 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9424 save_LIBS="$LIBS"
9425 LIBS="$PTHREAD_LIBS $LIBS"
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9427$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429/* end confdefs.h. */
9430
9431/* Override any GCC internal prototype to avoid an error.
9432 Use char because int might match the return type of a GCC
9433 builtin and then its argument prototype would still apply. */
9434#ifdef __cplusplus
9435extern "C"
9436#endif
9437char pthread_join ();
9438int
9439main ()
9440{
9441return pthread_join ();
9442 ;
9443 return 0;
9444}
9445_ACEOF
9446if ac_fn_c_try_link "$LINENO"; then :
9447 ax_pthread_ok=yes
9448fi
9449rm -f core conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9452$as_echo "$ax_pthread_ok" >&6; }
9453 if test x"$ax_pthread_ok" = xno; then
9454 PTHREAD_LIBS=""
9455 PTHREAD_CFLAGS=""
9456 fi
9457 LIBS="$save_LIBS"
9458 CFLAGS="$save_CFLAGS"
9459fi
9460
9461# We must check for the threads library under a number of different
9462# names; the ordering is very important because some systems
9463# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9464# libraries is broken (non-POSIX).
9465
9466# Create a list of thread flags to try. Items starting with a "-" are
9467# C compiler flags, and other items are library names, except for "none"
9468# which indicates that we try without any flags at all, and "pthread-config"
9469# which is a program returning the flags for the Pth emulation library.
9470
cristy18307f12011-12-30 01:20:16 +00009471ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009472
9473# The ordering *is* (sometimes) important. Some notes on the
9474# individual items follow:
9475
9476# pthreads: AIX (must check this before -lpthread)
9477# none: in case threads are in libc; should be tried before -Kthread and
9478# other compiler flags to prevent continual compiler warnings
9479# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9480# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9481# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9482# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9483# -pthreads: Solaris/gcc
9484# -mthreads: Mingw32/gcc, Lynx/gcc
9485# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9486# doesn't hurt to check since this sometimes defines pthreads too;
9487# also defines -D_REENTRANT)
9488# ... -mt is also the pthreads flag for HP/aCC
9489# pthread: Linux, etcetera
9490# --thread-safe: KAI C++
9491# pthread-config: use pthread-config program (for GNU Pth library)
9492
9493case "${host_cpu}-${host_os}" in
9494 *solaris*)
9495
9496 # On Solaris (at least, for some versions), libc contains stubbed
9497 # (non-functional) versions of the pthreads routines, so link-based
9498 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9499 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9500 # a function called by this macro, so we could check for that, but
9501 # who knows whether they'll stub that too in a future libc.) So,
9502 # we'll just look for -pthreads and -lpthread first:
9503
9504 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9505 ;;
9506
cristya316db12011-10-24 00:49:45 +00009507 *-darwin*)
9508 ax_pthread_flags="-pthread $ax_pthread_flags"
9509 ;;
cristy73bd4a52010-10-05 11:24:23 +00009510esac
9511
9512if test x"$ax_pthread_ok" = xno; then
9513for flag in $ax_pthread_flags; do
9514
9515 case $flag in
9516 none)
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9518$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9519 ;;
9520
9521 -*)
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9523$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9524 PTHREAD_CFLAGS="$flag"
9525 ;;
9526
cristya316db12011-10-24 00:49:45 +00009527 pthread-config)
9528 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009529set dummy pthread-config; ac_word=$2
9530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009532if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009533 $as_echo_n "(cached) " >&6
9534else
9535 if test -n "$ax_pthread_config"; then
9536 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9537else
9538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539for as_dir in $PATH
9540do
9541 IFS=$as_save_IFS
9542 test -z "$as_dir" && as_dir=.
9543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009545 ac_cv_prog_ax_pthread_config="yes"
9546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 break 2
9548 fi
9549done
9550 done
9551IFS=$as_save_IFS
9552
9553 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9554fi
9555fi
9556ax_pthread_config=$ac_cv_prog_ax_pthread_config
9557if test -n "$ax_pthread_config"; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9559$as_echo "$ax_pthread_config" >&6; }
9560else
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562$as_echo "no" >&6; }
9563fi
9564
9565
cristya316db12011-10-24 00:49:45 +00009566 if test x"$ax_pthread_config" = xno; then continue; fi
9567 PTHREAD_CFLAGS="`pthread-config --cflags`"
9568 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9569 ;;
cristy73bd4a52010-10-05 11:24:23 +00009570
9571 *)
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9573$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9574 PTHREAD_LIBS="-l$flag"
9575 ;;
9576 esac
9577
9578 save_LIBS="$LIBS"
9579 save_CFLAGS="$CFLAGS"
9580 LIBS="$PTHREAD_LIBS $LIBS"
9581 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9582
9583 # Check for various functions. We must include pthread.h,
9584 # since some functions may be macros. (On the Sequent, we
9585 # need a special flag -Kthread to make this header compile.)
9586 # We check for pthread_join because it is in -lpthread on IRIX
9587 # while pthread_create is in libc. We check for pthread_attr_init
9588 # due to DEC craziness with -lpthreads. We check for
9589 # pthread_cleanup_push because it is one of the few pthread
9590 # functions on Solaris that doesn't have a non-functional libc stub.
9591 # We try pthread_create on general principles.
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593/* end confdefs.h. */
9594#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009595 static void routine(void *a) { a = 0; }
9596 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009597int
9598main ()
9599{
9600pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009601 pthread_create(&th, 0, start_routine, 0);
9602 pthread_join(th, 0);
9603 pthread_attr_init(&attr);
9604 pthread_cleanup_push(routine, 0);
9605 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009606 ;
9607 return 0;
9608}
9609_ACEOF
9610if ac_fn_c_try_link "$LINENO"; then :
9611 ax_pthread_ok=yes
9612fi
9613rm -f core conftest.err conftest.$ac_objext \
9614 conftest$ac_exeext conftest.$ac_ext
9615
9616 LIBS="$save_LIBS"
9617 CFLAGS="$save_CFLAGS"
9618
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9620$as_echo "$ax_pthread_ok" >&6; }
9621 if test "x$ax_pthread_ok" = xyes; then
9622 break;
9623 fi
9624
9625 PTHREAD_LIBS=""
9626 PTHREAD_CFLAGS=""
9627done
9628fi
9629
9630# Various other checks:
9631if test "x$ax_pthread_ok" = xyes; then
9632 save_LIBS="$LIBS"
9633 LIBS="$PTHREAD_LIBS $LIBS"
9634 save_CFLAGS="$CFLAGS"
9635 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9636
9637 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009639$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009640 attr_name=unknown
9641 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009643/* end confdefs.h. */
9644#include <pthread.h>
9645int
9646main ()
9647{
cristya316db12011-10-24 00:49:45 +00009648int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009649 ;
9650 return 0;
9651}
9652_ACEOF
9653if ac_fn_c_try_link "$LINENO"; then :
9654 attr_name=$attr; break
9655fi
9656rm -f core conftest.err conftest.$ac_objext \
9657 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009658 done
cristy73bd4a52010-10-05 11:24:23 +00009659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9660$as_echo "$attr_name" >&6; }
9661 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9662
9663cat >>confdefs.h <<_ACEOF
9664#define PTHREAD_CREATE_JOINABLE $attr_name
9665_ACEOF
9666
9667 fi
9668
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9670$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9671 flag=no
9672 case "${host_cpu}-${host_os}" in
9673 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9674 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9675 esac
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9677$as_echo "${flag}" >&6; }
9678 if test "x$flag" != xno; then
9679 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9680 fi
9681
cristya316db12011-10-24 00:49:45 +00009682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9683$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9684if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9685 $as_echo_n "(cached) " >&6
9686else
9687
9688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689/* end confdefs.h. */
9690
9691 #include <pthread.h>
9692int
9693main ()
9694{
9695int i = PTHREAD_PRIO_INHERIT;
9696 ;
9697 return 0;
9698}
9699_ACEOF
9700if ac_fn_c_try_link "$LINENO"; then :
9701 ax_cv_PTHREAD_PRIO_INHERIT=yes
9702else
9703 ax_cv_PTHREAD_PRIO_INHERIT=no
9704fi
9705rm -f core conftest.err conftest.$ac_objext \
9706 conftest$ac_exeext conftest.$ac_ext
9707
9708fi
9709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9710$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9711 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9712
9713$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9714
9715fi
9716
cristy73bd4a52010-10-05 11:24:23 +00009717 LIBS="$save_LIBS"
9718 CFLAGS="$save_CFLAGS"
9719
9720 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009721 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009722 for ac_prog in xlc_r cc_r
9723do
9724 # Extract the first word of "$ac_prog", so it can be a program name with args.
9725set dummy $ac_prog; ac_word=$2
9726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009728if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009729 $as_echo_n "(cached) " >&6
9730else
9731 if test -n "$PTHREAD_CC"; then
9732 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9733else
9734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735for as_dir in $PATH
9736do
9737 IFS=$as_save_IFS
9738 test -z "$as_dir" && as_dir=.
9739 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009741 ac_cv_prog_PTHREAD_CC="$ac_prog"
9742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9743 break 2
9744 fi
9745done
9746 done
9747IFS=$as_save_IFS
9748
9749fi
9750fi
9751PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9752if test -n "$PTHREAD_CC"; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9754$as_echo "$PTHREAD_CC" >&6; }
9755else
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757$as_echo "no" >&6; }
9758fi
9759
9760
9761 test -n "$PTHREAD_CC" && break
9762done
9763test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9764
9765 else
9766 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009767 fi
cristy73bd4a52010-10-05 11:24:23 +00009768else
9769 PTHREAD_CC="$CC"
9770fi
9771
9772
9773
9774
9775
9776# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9777if test x"$ax_pthread_ok" = xyes; then
9778
9779$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9780
9781 :
9782else
9783 ax_pthread_ok=no
9784
9785fi
9786ac_ext=c
9787ac_cpp='$CPP $CPPFLAGS'
9788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9790ac_compiler_gnu=$ac_cv_c_compiler_gnu
9791
9792
9793
9794# Check whether --enable-opencl was given.
9795if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009796 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009797else
cristy48794642012-09-02 15:19:08 +00009798 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009799fi
9800
9801
cristy48794642012-09-02 15:19:08 +00009802if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009803 ac_ext=c
9804ac_cpp='$CPP $CPPFLAGS'
9805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9807ac_compiler_gnu=$ac_cv_c_compiler_gnu
9808
cristy75314cc2012-09-15 23:08:29 +00009809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9810$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9811if ${ax_cv_c_compiler_ms+:} false; then :
9812 $as_echo_n "(cached) " >&6
9813else
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815/* end confdefs.h. */
9816
9817int
9818main ()
9819{
9820#ifndef _MSC_VER
9821 choke me
9822#endif
9823
9824 ;
9825 return 0;
9826}
9827_ACEOF
9828if ac_fn_c_try_compile "$LINENO"; then :
9829 ax_compiler_ms=yes
9830else
9831 ax_compiler_ms=no
9832fi
9833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9834ax_cv_c_compiler_ms=$ax_compiler_ms
9835
9836fi
9837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9838$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009839 if test X$ax_compiler_ms = Xno; then :
9840 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9841fi
9842
9843 ax_save_CPPFLAGS=$CPPFLAGS
9844 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9845 for ac_header in CL/cl.h OpenCL/cl.h
9846do :
9847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9848ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009849if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009850 cat >>confdefs.h <<_ACEOF
9851#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9852_ACEOF
9853
9854fi
9855
9856done
9857
9858 CPPFLAGS=$ax_save_CPPFLAGS
9859
9860 for ac_header in windows.h
9861do :
9862 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009863if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009864 cat >>confdefs.h <<_ACEOF
9865#define HAVE_WINDOWS_H 1
9866_ACEOF
9867
9868fi
9869
9870done
9871
9872
9873
9874
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9876$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009877if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009878 $as_echo_n "(cached) " >&6
9879else
9880 ax_cv_check_cl_libcl=no
9881 case $host_cpu in
9882 x86_64) ax_check_cl_libdir=lib64 ;;
9883 *) ax_check_cl_libdir=lib ;;
9884 esac
9885 ax_save_CPPFLAGS=$CPPFLAGS
9886 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9887 ax_save_LIBS=$LIBS
9888 LIBS=""
9889 ax_check_libs="-lOpenCL -lCL -lclparser"
9890 for ax_lib in $ax_check_libs; do
9891 if test X$ax_compiler_ms = Xyes; then :
9892 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9893else
9894 ax_try_lib=$ax_lib
9895fi
9896 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h. */
9899
9900 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9901 # include <windows.h>
9902 # endif
9903 # ifdef HAVE_CL_CL_H
9904 # include <CL/cl.h>
9905 # elif defined(HAVE_OPENCL_CL_H)
9906 # include <OpenCL/cl.h>
9907 # else
9908 # error no CL.h
9909 # endif
9910int
9911main ()
9912{
9913clCreateContextFromType(0,0,0,0,0)
9914 ;
9915 return 0;
9916}
9917_ACEOF
9918if ac_fn_c_try_link "$LINENO"; then :
9919 ax_cv_check_cl_libcl=$ax_try_lib; break
9920else
9921 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"
9922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923/* end confdefs.h. */
9924
9925 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9926 # include <windows.h>
9927 # endif
9928 # ifdef HAVE_CL_CL_H
9929 # include <CL/cl.h>
9930 # elif defined(HAVE_OPENCL_CL_H)
9931 # include <OpenCL/cl.h>
9932 # else
9933 # error no CL.h
9934 # endif
9935int
9936main ()
9937{
9938clCreateContextFromType(0,0,0,0,0)
9939 ;
9940 return 0;
9941}
9942_ACEOF
9943if ac_fn_c_try_link "$LINENO"; then :
9944 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9945else
cristy78c5a0c2010-12-04 20:00:59 +00009946 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 +00009947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948/* end confdefs.h. */
9949
9950 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9951 # include <windows.h>
9952 # endif
9953 # ifdef HAVE_CL_CL_H
9954 # include <CL/cl.h>
9955 # elif defined(HAVE_OPENCL_CL_H)
9956 # include <OpenCL/cl.h>
9957 # else
9958 # error no CL.h
9959 # endif
9960int
9961main ()
9962{
9963clCreateContextFromType(0,0,0,0,0)
9964 ;
9965 return 0;
9966}
9967_ACEOF
9968if ac_fn_c_try_link "$LINENO"; then :
9969 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9970fi
9971rm -f core conftest.err conftest.$ac_objext \
9972 conftest$ac_exeext conftest.$ac_ext
9973fi
9974rm -f core conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976fi
9977rm -f core conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9979 done
9980
cristyc3f8b8e2011-12-22 14:55:16 +00009981 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009982 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984/* end confdefs.h. */
9985
9986 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9987 # include <windows.h>
9988 # endif
9989 # ifdef HAVE_CL_CL_H
9990 # include <CL/cl.h>
9991 # elif defined(HAVE_OPENCL_CL_H)
9992 # include <OpenCL/cl.h>
9993 # else
9994 # error no CL.h
9995 # endif
9996int
9997main ()
9998{
9999clCreateContextFromType(0,0,0,0,0)
10000 ;
10001 return 0;
10002}
10003_ACEOF
10004if ac_fn_c_try_link "$LINENO"; then :
10005 ax_cv_check_cl_libcl=$LIBS
10006fi
10007rm -f core conftest.err conftest.$ac_objext \
10008 conftest$ac_exeext conftest.$ac_ext
10009fi
10010
10011 LIBS=$ax_save_LIBS
10012 CPPFLAGS=$ax_save_CPPFLAGS
10013fi
10014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10015$as_echo "$ax_cv_check_cl_libcl" >&6; }
10016
10017 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10018 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10019else
10020 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10021$as_echo "#define _OPENCL 1" >>confdefs.h
10022
10023fi
10024 ac_ext=c
10025ac_cpp='$CPP $CPPFLAGS'
10026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10028ac_compiler_gnu=$ac_cv_c_compiler_gnu
10029
10030fi
10031
10032
10033
10034
cristyc7083c12009-10-14 03:16:55 +000010035CFLAGS="$CL_CFLAGS $CFLAGS"
10036LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010037
cristy391f1ce2010-09-09 17:23:28 +000010038if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010039 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010040 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10041 fi
cristyfd9dcd42010-08-08 18:07:02 +000010042fi
cristy2e8b51d2009-10-17 18:26:15 +000010043
cristy3ed852e2009-09-05 21:47:34 +000010044########
10045#
10046# Check for large file support
10047#
10048########
10049# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010050if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010051 enableval=$enable_largefile;
10052fi
10053
10054if test "$enable_largefile" != no; then
10055
cristy8b350f62009-11-15 23:12:43 +000010056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010057$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010058if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010059 $as_echo_n "(cached) " >&6
10060else
10061 ac_cv_sys_largefile_CC=no
10062 if test "$GCC" != yes; then
10063 ac_save_CC=$CC
10064 while :; do
10065 # IRIX 6.2 and later do not support large files by default,
10066 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010068/* end confdefs.h. */
10069#include <sys/types.h>
10070 /* Check that off_t can represent 2**63 - 1 correctly.
10071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10072 since some C++ compilers masquerading as C compilers
10073 incorrectly reject 9223372036854775807. */
10074#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10076 && LARGE_OFF_T % 2147483647 == 1)
10077 ? 1 : -1];
10078int
10079main ()
10080{
10081
10082 ;
10083 return 0;
10084}
10085_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010086 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010087 break
cristy3ed852e2009-09-05 21:47:34 +000010088fi
cristy3ed852e2009-09-05 21:47:34 +000010089rm -f core conftest.err conftest.$ac_objext
10090 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010091 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010092 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010093fi
cristy3ed852e2009-09-05 21:47:34 +000010094rm -f core conftest.err conftest.$ac_objext
10095 break
10096 done
10097 CC=$ac_save_CC
10098 rm -f conftest.$ac_ext
10099 fi
10100fi
cristy8b350f62009-11-15 23:12:43 +000010101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010102$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10103 if test "$ac_cv_sys_largefile_CC" != no; then
10104 CC=$CC$ac_cv_sys_largefile_CC
10105 fi
10106
cristy8b350f62009-11-15 23:12:43 +000010107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010108$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010109if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010110 $as_echo_n "(cached) " >&6
10111else
10112 while :; do
cristy8b350f62009-11-15 23:12:43 +000010113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010114/* end confdefs.h. */
10115#include <sys/types.h>
10116 /* Check that off_t can represent 2**63 - 1 correctly.
10117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10118 since some C++ compilers masquerading as C compilers
10119 incorrectly reject 9223372036854775807. */
10120#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10122 && LARGE_OFF_T % 2147483647 == 1)
10123 ? 1 : -1];
10124int
10125main ()
10126{
10127
10128 ;
10129 return 0;
10130}
10131_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010132if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010133 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010134fi
cristy3ed852e2009-09-05 21:47:34 +000010135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010137/* end confdefs.h. */
10138#define _FILE_OFFSET_BITS 64
10139#include <sys/types.h>
10140 /* Check that off_t can represent 2**63 - 1 correctly.
10141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10142 since some C++ compilers masquerading as C compilers
10143 incorrectly reject 9223372036854775807. */
10144#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10146 && LARGE_OFF_T % 2147483647 == 1)
10147 ? 1 : -1];
10148int
10149main ()
10150{
10151
10152 ;
10153 return 0;
10154}
10155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010156if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010157 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010158fi
cristy3ed852e2009-09-05 21:47:34 +000010159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160 ac_cv_sys_file_offset_bits=unknown
10161 break
10162done
10163fi
cristy8b350f62009-11-15 23:12:43 +000010164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010165$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10166case $ac_cv_sys_file_offset_bits in #(
10167 no | unknown) ;;
10168 *)
10169cat >>confdefs.h <<_ACEOF
10170#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10171_ACEOF
10172;;
10173esac
10174rm -rf conftest*
10175 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010177$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010178if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010179 $as_echo_n "(cached) " >&6
10180else
10181 while :; do
cristy8b350f62009-11-15 23:12:43 +000010182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010183/* end confdefs.h. */
10184#include <sys/types.h>
10185 /* Check that off_t can represent 2**63 - 1 correctly.
10186 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10187 since some C++ compilers masquerading as C compilers
10188 incorrectly reject 9223372036854775807. */
10189#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10191 && LARGE_OFF_T % 2147483647 == 1)
10192 ? 1 : -1];
10193int
10194main ()
10195{
10196
10197 ;
10198 return 0;
10199}
10200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010201if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010202 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010203fi
cristy3ed852e2009-09-05 21:47:34 +000010204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010206/* end confdefs.h. */
10207#define _LARGE_FILES 1
10208#include <sys/types.h>
10209 /* Check that off_t can represent 2**63 - 1 correctly.
10210 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10211 since some C++ compilers masquerading as C compilers
10212 incorrectly reject 9223372036854775807. */
10213#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10214 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10215 && LARGE_OFF_T % 2147483647 == 1)
10216 ? 1 : -1];
10217int
10218main ()
10219{
10220
10221 ;
10222 return 0;
10223}
10224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010225if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010226 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010227fi
cristy3ed852e2009-09-05 21:47:34 +000010228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 ac_cv_sys_large_files=unknown
10230 break
10231done
10232fi
cristy8b350f62009-11-15 23:12:43 +000010233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010234$as_echo "$ac_cv_sys_large_files" >&6; }
10235case $ac_cv_sys_large_files in #(
10236 no | unknown) ;;
10237 *)
10238cat >>confdefs.h <<_ACEOF
10239#define _LARGE_FILES $ac_cv_sys_large_files
10240_ACEOF
10241;;
10242esac
10243rm -rf conftest*
10244 fi
cristy14fefe52012-05-21 00:59:18 +000010245
10246
cristy3ed852e2009-09-05 21:47:34 +000010247fi
10248
cristy8b350f62009-11-15 23:12:43 +000010249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010250$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010251if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010252 $as_echo_n "(cached) " >&6
10253else
10254 while :; do
cristy8b350f62009-11-15 23:12:43 +000010255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010256/* end confdefs.h. */
10257#include <sys/types.h> /* for off_t */
10258 #include <stdio.h>
10259int
10260main ()
10261{
10262int (*fp) (FILE *, off_t, int) = fseeko;
10263 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10264 ;
10265 return 0;
10266}
10267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010268if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010269 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010270fi
cristy8b350f62009-11-15 23:12:43 +000010271rm -f core conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010274/* end confdefs.h. */
10275#define _LARGEFILE_SOURCE 1
10276#include <sys/types.h> /* for off_t */
10277 #include <stdio.h>
10278int
10279main ()
10280{
10281int (*fp) (FILE *, off_t, int) = fseeko;
10282 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10283 ;
10284 return 0;
10285}
10286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010287if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010288 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010289fi
cristy8b350f62009-11-15 23:12:43 +000010290rm -f core conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010292 ac_cv_sys_largefile_source=unknown
10293 break
10294done
10295fi
cristy8b350f62009-11-15 23:12:43 +000010296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010297$as_echo "$ac_cv_sys_largefile_source" >&6; }
10298case $ac_cv_sys_largefile_source in #(
10299 no | unknown) ;;
10300 *)
10301cat >>confdefs.h <<_ACEOF
10302#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10303_ACEOF
10304;;
10305esac
10306rm -rf conftest*
10307
10308# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10309# in glibc 2.1.3, but that breaks too many other things.
10310# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10311if test $ac_cv_sys_largefile_source != unknown; then
10312
cristy8b350f62009-11-15 23:12:43 +000010313$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010314
10315fi
10316
10317LFS_CPPFLAGS=''
10318if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010319 case $ac_cv_sys_file_offset_bits in
10320 no)
10321 # nothing to do here as the host supports LFS fine
10322 ;;
10323 unknown)
cristy8b350f62009-11-15 23:12:43 +000010324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010325$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010326 if test "$cross_compiling" = yes; then :
10327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010329as_fn_error $? "cannot run test program while cross compiling
10330See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010331else
cristy8b350f62009-11-15 23:12:43 +000010332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010334#include <unistd.h>
10335 main () {
10336 exit(!(sizeof(off_t) == 8));
10337 }
cristyda16f162011-02-19 23:52:17 +000010338int
10339main ()
10340{
10341
10342 ;
10343 return 0;
10344}
cristy3ed852e2009-09-05 21:47:34 +000010345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010346if ac_fn_c_try_run "$LINENO"; then :
10347 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010348
cristy09b53e12011-10-14 12:47:22 +000010349 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10350$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010351else
cristy09b53e12011-10-14 12:47:22 +000010352 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10353$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010354fi
cristy8b350f62009-11-15 23:12:43 +000010355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10356 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010357fi
10358
cristyc1e0cc12011-09-21 16:41:16 +000010359 ;;
10360 *)
10361 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10362 ;;
10363 esac
cristy3ed852e2009-09-05 21:47:34 +000010364 if test "$ac_cv_sys_large_files" != 'no'; then
10365 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10366 fi
10367 if test "$ac_cv_sys_largefile_source" != 'no'; then
10368 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10369 fi
10370fi
10371
10372
cristy3ed852e2009-09-05 21:47:34 +000010373# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010374enable_dlopen=yes
10375
10376
10377
10378case `pwd` in
10379 *\ * | *\ *)
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10381$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10382esac
10383
10384
10385
cristy99bd5232011-12-07 14:38:20 +000010386macro_version='2.4.2'
10387macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401ltmain="$ac_aux_dir/ltmain.sh"
10402
cristy0c60a692010-11-04 01:09:47 +000010403# Backslashify metacharacters that are still active within
10404# double-quoted strings.
10405sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10406
10407# Same as above, but do not quote variable references.
10408double_quote_subst='s/\(["`\\]\)/\\\1/g'
10409
10410# Sed substitution to delay expansion of an escaped shell variable in a
10411# double_quote_subst'ed string.
10412delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10413
10414# Sed substitution to delay expansion of an escaped single quote.
10415delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10416
10417# Sed substitution to avoid accidental globbing in evaled expressions
10418no_glob_subst='s/\*/\\\*/g'
10419
cristy73bd4a52010-10-05 11:24:23 +000010420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10421$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010422if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010423 $as_echo_n "(cached) " >&6
10424else
10425 if test -n "$NM"; then
10426 # Let the user override the test.
10427 lt_cv_path_NM="$NM"
10428else
10429 lt_nm_to_check="${ac_tool_prefix}nm"
10430 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10431 lt_nm_to_check="$lt_nm_to_check nm"
10432 fi
10433 for lt_tmp_nm in $lt_nm_to_check; do
10434 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10435 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10436 IFS="$lt_save_ifs"
10437 test -z "$ac_dir" && ac_dir=.
10438 tmp_nm="$ac_dir/$lt_tmp_nm"
10439 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10440 # Check to see if the nm accepts a BSD-compat flag.
10441 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10442 # nm: unknown option "B" ignored
10443 # Tru64's nm complains that /dev/null is an invalid object file
10444 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10445 */dev/null* | *'Invalid file or object type'*)
10446 lt_cv_path_NM="$tmp_nm -B"
10447 break
10448 ;;
10449 *)
10450 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10451 */dev/null*)
10452 lt_cv_path_NM="$tmp_nm -p"
10453 break
10454 ;;
10455 *)
10456 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10457 continue # so that we can try to find one that supports BSD flags
10458 ;;
10459 esac
10460 ;;
10461 esac
10462 fi
10463 done
10464 IFS="$lt_save_ifs"
10465 done
10466 : ${lt_cv_path_NM=no}
10467fi
10468fi
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10470$as_echo "$lt_cv_path_NM" >&6; }
10471if test "$lt_cv_path_NM" != "no"; then
10472 NM="$lt_cv_path_NM"
10473else
10474 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010475 if test -n "$DUMPBIN"; then :
10476 # Let the user override the test.
10477 else
10478 if test -n "$ac_tool_prefix"; then
10479 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010480 do
10481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10482set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10484$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010485if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010486 $as_echo_n "(cached) " >&6
10487else
10488 if test -n "$DUMPBIN"; then
10489 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10490else
10491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492for as_dir in $PATH
10493do
10494 IFS=$as_save_IFS
10495 test -z "$as_dir" && as_dir=.
10496 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010498 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10500 break 2
10501 fi
10502done
10503 done
10504IFS=$as_save_IFS
10505
10506fi
10507fi
10508DUMPBIN=$ac_cv_prog_DUMPBIN
10509if test -n "$DUMPBIN"; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10511$as_echo "$DUMPBIN" >&6; }
10512else
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514$as_echo "no" >&6; }
10515fi
10516
10517
10518 test -n "$DUMPBIN" && break
10519 done
10520fi
10521if test -z "$DUMPBIN"; then
10522 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010523 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010524do
10525 # Extract the first word of "$ac_prog", so it can be a program name with args.
10526set dummy $ac_prog; ac_word=$2
10527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10528$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010529if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010530 $as_echo_n "(cached) " >&6
10531else
10532 if test -n "$ac_ct_DUMPBIN"; then
10533 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10534else
10535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536for as_dir in $PATH
10537do
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010542 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 break 2
10545 fi
10546done
10547 done
10548IFS=$as_save_IFS
10549
10550fi
10551fi
10552ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10553if test -n "$ac_ct_DUMPBIN"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10555$as_echo "$ac_ct_DUMPBIN" >&6; }
10556else
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558$as_echo "no" >&6; }
10559fi
10560
10561
10562 test -n "$ac_ct_DUMPBIN" && break
10563done
10564
10565 if test "x$ac_ct_DUMPBIN" = x; then
10566 DUMPBIN=":"
10567 else
10568 case $cross_compiling:$ac_tool_warned in
10569yes:)
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10572ac_tool_warned=yes ;;
10573esac
10574 DUMPBIN=$ac_ct_DUMPBIN
10575 fi
10576fi
10577
cristy0c60a692010-11-04 01:09:47 +000010578 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10579 *COFF*)
10580 DUMPBIN="$DUMPBIN -symbols"
10581 ;;
10582 *)
10583 DUMPBIN=:
10584 ;;
10585 esac
10586 fi
cristy73bd4a52010-10-05 11:24:23 +000010587
10588 if test "$DUMPBIN" != ":"; then
10589 NM="$DUMPBIN"
10590 fi
10591fi
10592test -z "$NM" && NM=nm
10593
10594
10595
10596
10597
10598
10599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10600$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010601if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010602 $as_echo_n "(cached) " >&6
10603else
10604 lt_cv_nm_interface="BSD nm"
10605 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010606 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010607 (eval "$ac_compile" 2>conftest.err)
10608 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010609 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010610 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10611 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010612 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010613 cat conftest.out >&5
10614 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10615 lt_cv_nm_interface="MS dumpbin"
10616 fi
10617 rm -f conftest*
10618fi
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10620$as_echo "$lt_cv_nm_interface" >&6; }
10621
10622# find the maximum length of command line arguments
10623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10624$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010625if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010626 $as_echo_n "(cached) " >&6
10627else
10628 i=0
10629 teststring="ABCD"
10630
10631 case $build_os in
10632 msdosdjgpp*)
10633 # On DJGPP, this test can blow up pretty badly due to problems in libc
10634 # (any single argument exceeding 2000 bytes causes a buffer overrun
10635 # during glob expansion). Even if it were fixed, the result of this
10636 # check would be larger than it should be.
10637 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10638 ;;
10639
10640 gnu*)
10641 # Under GNU Hurd, this test is not required because there is
10642 # no limit to the length of command line arguments.
10643 # Libtool will interpret -1 as no limit whatsoever
10644 lt_cv_sys_max_cmd_len=-1;
10645 ;;
10646
10647 cygwin* | mingw* | cegcc*)
10648 # On Win9x/ME, this test blows up -- it succeeds, but takes
10649 # about 5 minutes as the teststring grows exponentially.
10650 # Worse, since 9x/ME are not pre-emptively multitasking,
10651 # you end up with a "frozen" computer, even though with patience
10652 # the test eventually succeeds (with a max line length of 256k).
10653 # Instead, let's just punt: use the minimum linelength reported by
10654 # all of the supported platforms: 8192 (on NT/2K/XP).
10655 lt_cv_sys_max_cmd_len=8192;
10656 ;;
10657
cristy0c60a692010-11-04 01:09:47 +000010658 mint*)
10659 # On MiNT this can take a long time and run out of memory.
10660 lt_cv_sys_max_cmd_len=8192;
10661 ;;
10662
cristy73bd4a52010-10-05 11:24:23 +000010663 amigaos*)
10664 # On AmigaOS with pdksh, this test takes hours, literally.
10665 # So we just punt and use a minimum line length of 8192.
10666 lt_cv_sys_max_cmd_len=8192;
10667 ;;
10668
10669 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10670 # This has been around since 386BSD, at least. Likely further.
10671 if test -x /sbin/sysctl; then
10672 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10673 elif test -x /usr/sbin/sysctl; then
10674 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10675 else
10676 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10677 fi
10678 # And add a safety zone
10679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10681 ;;
10682
10683 interix*)
10684 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10685 lt_cv_sys_max_cmd_len=196608
10686 ;;
10687
cristy99bd5232011-12-07 14:38:20 +000010688 os2*)
10689 # The test takes a long time on OS/2.
10690 lt_cv_sys_max_cmd_len=8192
10691 ;;
10692
cristy73bd4a52010-10-05 11:24:23 +000010693 osf*)
10694 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10695 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10696 # nice to cause kernel panics so lets avoid the loop below.
10697 # First set a reasonable default.
10698 lt_cv_sys_max_cmd_len=16384
10699 #
10700 if test -x /sbin/sysconfig; then
10701 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10702 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10703 esac
10704 fi
10705 ;;
10706 sco3.2v5*)
10707 lt_cv_sys_max_cmd_len=102400
10708 ;;
10709 sysv5* | sco5v6* | sysv4.2uw2*)
10710 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10711 if test -n "$kargmax"; then
10712 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10713 else
10714 lt_cv_sys_max_cmd_len=32768
10715 fi
10716 ;;
10717 *)
10718 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10719 if test -n "$lt_cv_sys_max_cmd_len"; then
10720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10722 else
10723 # Make teststring a little bigger before we do anything with it.
10724 # a 1K string should be a reasonable start.
10725 for i in 1 2 3 4 5 6 7 8 ; do
10726 teststring=$teststring$teststring
10727 done
10728 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10729 # If test is not a shell built-in, we'll probably end up computing a
10730 # maximum length that is only half of the actual maximum length, but
10731 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010732 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010733 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010734 test $i != 17 # 1/2 MB should be enough
10735 do
10736 i=`expr $i + 1`
10737 teststring=$teststring$teststring
10738 done
10739 # Only check the string length outside the loop.
10740 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10741 teststring=
10742 # Add a significant safety factor because C++ compilers can tack on
10743 # massive amounts of additional arguments before passing them to the
10744 # linker. It appears as though 1/2 is a usable value.
10745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10746 fi
10747 ;;
10748 esac
10749
10750fi
10751
10752if test -n $lt_cv_sys_max_cmd_len ; then
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10754$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10755else
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10757$as_echo "none" >&6; }
10758fi
10759max_cmd_len=$lt_cv_sys_max_cmd_len
10760
10761
10762
10763
10764
10765
10766: ${CP="cp -f"}
10767: ${MV="mv -f"}
10768: ${RM="rm -f"}
10769
10770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10771$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10772# Try some XSI features
10773xsi_shell=no
10774( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010775 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10776 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010777 && eval 'test $(( 1 + 1 )) -eq 2 \
10778 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10779 && xsi_shell=yes
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10781$as_echo "$xsi_shell" >&6; }
10782
10783
10784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10785$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10786lt_shell_append=no
10787( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10788 >/dev/null 2>&1 \
10789 && lt_shell_append=yes
10790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10791$as_echo "$lt_shell_append" >&6; }
10792
10793
10794if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10795 lt_unset=unset
10796else
10797 lt_unset=false
10798fi
10799
10800
10801
10802
10803
10804# test EBCDIC or ASCII
10805case `echo X|tr X '\101'` in
10806 A) # ASCII based system
10807 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10808 lt_SP2NL='tr \040 \012'
10809 lt_NL2SP='tr \015\012 \040\040'
10810 ;;
10811 *) # EBCDIC based system
10812 lt_SP2NL='tr \100 \n'
10813 lt_NL2SP='tr \r\n \100\100'
10814 ;;
10815esac
10816
10817
10818
10819
10820
10821
10822
10823
10824
cristyda16f162011-02-19 23:52:17 +000010825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10826$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10827if ${lt_cv_to_host_file_cmd+:} false; then :
10828 $as_echo_n "(cached) " >&6
10829else
10830 case $host in
10831 *-*-mingw* )
10832 case $build in
10833 *-*-mingw* ) # actually msys
10834 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10835 ;;
10836 *-*-cygwin* )
10837 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10838 ;;
10839 * ) # otherwise, assume *nix
10840 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10841 ;;
10842 esac
10843 ;;
10844 *-*-cygwin* )
10845 case $build in
10846 *-*-mingw* ) # actually msys
10847 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10848 ;;
10849 *-*-cygwin* )
10850 lt_cv_to_host_file_cmd=func_convert_file_noop
10851 ;;
10852 * ) # otherwise, assume *nix
10853 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10854 ;;
10855 esac
10856 ;;
10857 * ) # unhandled hosts (and "normal" native builds)
10858 lt_cv_to_host_file_cmd=func_convert_file_noop
10859 ;;
10860esac
10861
10862fi
10863
10864to_host_file_cmd=$lt_cv_to_host_file_cmd
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10866$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10867
10868
10869
10870
10871
10872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10873$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10874if ${lt_cv_to_tool_file_cmd+:} false; then :
10875 $as_echo_n "(cached) " >&6
10876else
10877 #assume ordinary cross tools, or native build.
10878lt_cv_to_tool_file_cmd=func_convert_file_noop
10879case $host in
10880 *-*-mingw* )
10881 case $build in
10882 *-*-mingw* ) # actually msys
10883 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10884 ;;
10885 esac
10886 ;;
10887esac
10888
10889fi
10890
10891to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10893$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10894
10895
10896
10897
10898
cristy73bd4a52010-10-05 11:24:23 +000010899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10900$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010901if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010902 $as_echo_n "(cached) " >&6
10903else
10904 lt_cv_ld_reload_flag='-r'
10905fi
10906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10907$as_echo "$lt_cv_ld_reload_flag" >&6; }
10908reload_flag=$lt_cv_ld_reload_flag
10909case $reload_flag in
10910"" | " "*) ;;
10911*) reload_flag=" $reload_flag" ;;
10912esac
10913reload_cmds='$LD$reload_flag -o $output$reload_objs'
10914case $host_os in
cristyda16f162011-02-19 23:52:17 +000010915 cygwin* | mingw* | pw32* | cegcc*)
10916 if test "$GCC" != yes; then
10917 reload_cmds=false
10918 fi
10919 ;;
cristy73bd4a52010-10-05 11:24:23 +000010920 darwin*)
10921 if test "$GCC" = yes; then
10922 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10923 else
10924 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10925 fi
10926 ;;
10927esac
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937if test -n "$ac_tool_prefix"; then
10938 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10939set dummy ${ac_tool_prefix}objdump; ac_word=$2
10940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10941$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010942if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010943 $as_echo_n "(cached) " >&6
10944else
10945 if test -n "$OBJDUMP"; then
10946 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10947else
10948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10949for as_dir in $PATH
10950do
10951 IFS=$as_save_IFS
10952 test -z "$as_dir" && as_dir=.
10953 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010955 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10957 break 2
10958 fi
10959done
10960 done
10961IFS=$as_save_IFS
10962
10963fi
10964fi
10965OBJDUMP=$ac_cv_prog_OBJDUMP
10966if test -n "$OBJDUMP"; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10968$as_echo "$OBJDUMP" >&6; }
10969else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971$as_echo "no" >&6; }
10972fi
10973
10974
10975fi
10976if test -z "$ac_cv_prog_OBJDUMP"; then
10977 ac_ct_OBJDUMP=$OBJDUMP
10978 # Extract the first word of "objdump", so it can be a program name with args.
10979set dummy objdump; ac_word=$2
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010982if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010983 $as_echo_n "(cached) " >&6
10984else
10985 if test -n "$ac_ct_OBJDUMP"; then
10986 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10987else
10988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989for as_dir in $PATH
10990do
10991 IFS=$as_save_IFS
10992 test -z "$as_dir" && as_dir=.
10993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010995 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10997 break 2
10998 fi
10999done
11000 done
11001IFS=$as_save_IFS
11002
11003fi
11004fi
11005ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11006if test -n "$ac_ct_OBJDUMP"; then
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11008$as_echo "$ac_ct_OBJDUMP" >&6; }
11009else
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011$as_echo "no" >&6; }
11012fi
11013
11014 if test "x$ac_ct_OBJDUMP" = x; then
11015 OBJDUMP="false"
11016 else
11017 case $cross_compiling:$ac_tool_warned in
11018yes:)
11019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11021ac_tool_warned=yes ;;
11022esac
11023 OBJDUMP=$ac_ct_OBJDUMP
11024 fi
11025else
11026 OBJDUMP="$ac_cv_prog_OBJDUMP"
11027fi
11028
11029test -z "$OBJDUMP" && OBJDUMP=objdump
11030
11031
11032
11033
11034
11035
11036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11037$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011038if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011039 $as_echo_n "(cached) " >&6
11040else
11041 lt_cv_file_magic_cmd='$MAGIC_CMD'
11042lt_cv_file_magic_test_file=
11043lt_cv_deplibs_check_method='unknown'
11044# Need to set the preceding variable on all platforms that support
11045# interlibrary dependencies.
11046# 'none' -- dependencies not supported.
11047# `unknown' -- same as none, but documents that we really don't know.
11048# 'pass_all' -- all dependencies passed with no checks.
11049# 'test_compile' -- check by making test program.
11050# 'file_magic [[regex]]' -- check by looking for files in library path
11051# which responds to the $file_magic_cmd with a given extended regex.
11052# If you have `file' or equivalent on your system and you're not sure
11053# whether `pass_all' will *always* work, you probably want this one.
11054
11055case $host_os in
11056aix[4-9]*)
11057 lt_cv_deplibs_check_method=pass_all
11058 ;;
11059
11060beos*)
11061 lt_cv_deplibs_check_method=pass_all
11062 ;;
11063
11064bsdi[45]*)
11065 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11066 lt_cv_file_magic_cmd='/usr/bin/file -L'
11067 lt_cv_file_magic_test_file=/shlib/libc.so
11068 ;;
11069
11070cygwin*)
11071 # func_win32_libid is a shell function defined in ltmain.sh
11072 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11073 lt_cv_file_magic_cmd='func_win32_libid'
11074 ;;
11075
11076mingw* | pw32*)
11077 # Base MSYS/MinGW do not provide the 'file' command needed by
11078 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11079 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011080 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11081 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011082 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11083 lt_cv_file_magic_cmd='func_win32_libid'
11084 else
cristy0c60a692010-11-04 01:09:47 +000011085 # Keep this pattern in sync with the one in func_win32_libid.
11086 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 +000011087 lt_cv_file_magic_cmd='$OBJDUMP -f'
11088 fi
11089 ;;
11090
cristy0c60a692010-11-04 01:09:47 +000011091cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011092 # use the weaker test based on 'objdump'. See mingw*.
11093 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11094 lt_cv_file_magic_cmd='$OBJDUMP -f'
11095 ;;
11096
11097darwin* | rhapsody*)
11098 lt_cv_deplibs_check_method=pass_all
11099 ;;
11100
11101freebsd* | dragonfly*)
11102 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11103 case $host_cpu in
11104 i*86 )
11105 # Not sure whether the presence of OpenBSD here was a mistake.
11106 # Let's accept both of them until this is cleared up.
11107 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11108 lt_cv_file_magic_cmd=/usr/bin/file
11109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11110 ;;
11111 esac
11112 else
11113 lt_cv_deplibs_check_method=pass_all
11114 fi
11115 ;;
11116
11117gnu*)
11118 lt_cv_deplibs_check_method=pass_all
11119 ;;
11120
cristy0c60a692010-11-04 01:09:47 +000011121haiku*)
11122 lt_cv_deplibs_check_method=pass_all
11123 ;;
11124
cristy73bd4a52010-10-05 11:24:23 +000011125hpux10.20* | hpux11*)
11126 lt_cv_file_magic_cmd=/usr/bin/file
11127 case $host_cpu in
11128 ia64*)
11129 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11130 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11131 ;;
11132 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011133 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 +000011134 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11135 ;;
11136 *)
cristy0c60a692010-11-04 01:09:47 +000011137 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 +000011138 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11139 ;;
11140 esac
11141 ;;
11142
11143interix[3-9]*)
11144 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11146 ;;
11147
11148irix5* | irix6* | nonstopux*)
11149 case $LD in
11150 *-32|*"-32 ") libmagic=32-bit;;
11151 *-n32|*"-n32 ") libmagic=N32;;
11152 *-64|*"-64 ") libmagic=64-bit;;
11153 *) libmagic=never-match;;
11154 esac
11155 lt_cv_deplibs_check_method=pass_all
11156 ;;
11157
cristy99bd5232011-12-07 14:38:20 +000011158# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011159linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011160 lt_cv_deplibs_check_method=pass_all
11161 ;;
11162
11163netbsd*)
11164 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11165 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11166 else
11167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11168 fi
11169 ;;
11170
11171newos6*)
11172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11173 lt_cv_file_magic_cmd=/usr/bin/file
11174 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11175 ;;
11176
11177*nto* | *qnx*)
11178 lt_cv_deplibs_check_method=pass_all
11179 ;;
11180
11181openbsd*)
11182 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11184 else
11185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11186 fi
11187 ;;
11188
11189osf3* | osf4* | osf5*)
11190 lt_cv_deplibs_check_method=pass_all
11191 ;;
11192
11193rdos*)
11194 lt_cv_deplibs_check_method=pass_all
11195 ;;
11196
11197solaris*)
11198 lt_cv_deplibs_check_method=pass_all
11199 ;;
11200
11201sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11202 lt_cv_deplibs_check_method=pass_all
11203 ;;
11204
11205sysv4 | sysv4.3*)
11206 case $host_vendor in
11207 motorola)
11208 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]'
11209 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11210 ;;
11211 ncr)
11212 lt_cv_deplibs_check_method=pass_all
11213 ;;
11214 sequent)
11215 lt_cv_file_magic_cmd='/bin/file'
11216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11217 ;;
11218 sni)
11219 lt_cv_file_magic_cmd='/bin/file'
11220 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11221 lt_cv_file_magic_test_file=/lib/libc.so
11222 ;;
11223 siemens)
11224 lt_cv_deplibs_check_method=pass_all
11225 ;;
11226 pc)
11227 lt_cv_deplibs_check_method=pass_all
11228 ;;
11229 esac
11230 ;;
11231
11232tpf*)
11233 lt_cv_deplibs_check_method=pass_all
11234 ;;
11235esac
11236
11237fi
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11239$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011240
11241file_magic_glob=
11242want_nocaseglob=no
11243if test "$build" = "$host"; then
11244 case $host_os in
11245 mingw* | pw32*)
11246 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11247 want_nocaseglob=yes
11248 else
11249 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11250 fi
11251 ;;
11252 esac
11253fi
11254
cristy73bd4a52010-10-05 11:24:23 +000011255file_magic_cmd=$lt_cv_file_magic_cmd
11256deplibs_check_method=$lt_cv_deplibs_check_method
11257test -z "$deplibs_check_method" && deplibs_check_method=unknown
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
cristyda16f162011-02-19 23:52:17 +000011270
11271
11272
11273
11274
11275
11276
11277
11278
11279
cristy73bd4a52010-10-05 11:24:23 +000011280if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011281 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11282set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011285if ${ac_cv_prog_DLLTOOL+:} false; then :
11286 $as_echo_n "(cached) " >&6
11287else
11288 if test -n "$DLLTOOL"; then
11289 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11290else
11291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292for as_dir in $PATH
11293do
11294 IFS=$as_save_IFS
11295 test -z "$as_dir" && as_dir=.
11296 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011298 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11300 break 2
11301 fi
11302done
11303 done
11304IFS=$as_save_IFS
11305
11306fi
11307fi
11308DLLTOOL=$ac_cv_prog_DLLTOOL
11309if test -n "$DLLTOOL"; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11311$as_echo "$DLLTOOL" >&6; }
11312else
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314$as_echo "no" >&6; }
11315fi
11316
11317
11318fi
11319if test -z "$ac_cv_prog_DLLTOOL"; then
11320 ac_ct_DLLTOOL=$DLLTOOL
11321 # Extract the first word of "dlltool", so it can be a program name with args.
11322set dummy dlltool; ac_word=$2
11323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11324$as_echo_n "checking for $ac_word... " >&6; }
11325if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11326 $as_echo_n "(cached) " >&6
11327else
11328 if test -n "$ac_ct_DLLTOOL"; then
11329 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11330else
11331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332for as_dir in $PATH
11333do
11334 IFS=$as_save_IFS
11335 test -z "$as_dir" && as_dir=.
11336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011338 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11340 break 2
11341 fi
11342done
11343 done
11344IFS=$as_save_IFS
11345
11346fi
11347fi
11348ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11349if test -n "$ac_ct_DLLTOOL"; then
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11351$as_echo "$ac_ct_DLLTOOL" >&6; }
11352else
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354$as_echo "no" >&6; }
11355fi
11356
11357 if test "x$ac_ct_DLLTOOL" = x; then
11358 DLLTOOL="false"
11359 else
11360 case $cross_compiling:$ac_tool_warned in
11361yes:)
11362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11364ac_tool_warned=yes ;;
11365esac
11366 DLLTOOL=$ac_ct_DLLTOOL
11367 fi
11368else
11369 DLLTOOL="$ac_cv_prog_DLLTOOL"
11370fi
11371
11372test -z "$DLLTOOL" && DLLTOOL=dlltool
11373
11374
11375
11376
11377
11378
11379
11380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11381$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11382if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11383 $as_echo_n "(cached) " >&6
11384else
11385 lt_cv_sharedlib_from_linklib_cmd='unknown'
11386
11387case $host_os in
11388cygwin* | mingw* | pw32* | cegcc*)
11389 # two different shell functions defined in ltmain.sh
11390 # decide which to use based on capabilities of $DLLTOOL
11391 case `$DLLTOOL --help 2>&1` in
11392 *--identify-strict*)
11393 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11394 ;;
11395 *)
11396 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11397 ;;
11398 esac
11399 ;;
11400*)
11401 # fallback: assume linklib IS sharedlib
11402 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11403 ;;
11404esac
11405
11406fi
11407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11408$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11409sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11410test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11411
11412
11413
11414
11415
11416
11417
11418if test -n "$ac_tool_prefix"; then
11419 for ac_prog in ar
11420 do
11421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11422set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11424$as_echo_n "checking for $ac_word... " >&6; }
11425if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011426 $as_echo_n "(cached) " >&6
11427else
11428 if test -n "$AR"; then
11429 ac_cv_prog_AR="$AR" # Let the user override the test.
11430else
11431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432for as_dir in $PATH
11433do
11434 IFS=$as_save_IFS
11435 test -z "$as_dir" && as_dir=.
11436 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011438 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11440 break 2
11441 fi
11442done
11443 done
11444IFS=$as_save_IFS
11445
11446fi
11447fi
11448AR=$ac_cv_prog_AR
11449if test -n "$AR"; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11451$as_echo "$AR" >&6; }
11452else
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454$as_echo "no" >&6; }
11455fi
11456
11457
cristyda16f162011-02-19 23:52:17 +000011458 test -n "$AR" && break
11459 done
cristy73bd4a52010-10-05 11:24:23 +000011460fi
cristyda16f162011-02-19 23:52:17 +000011461if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011462 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011463 for ac_prog in ar
11464do
11465 # Extract the first word of "$ac_prog", so it can be a program name with args.
11466set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11468$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011469if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011470 $as_echo_n "(cached) " >&6
11471else
11472 if test -n "$ac_ct_AR"; then
11473 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11474else
11475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476for as_dir in $PATH
11477do
11478 IFS=$as_save_IFS
11479 test -z "$as_dir" && as_dir=.
11480 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011482 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11484 break 2
11485 fi
11486done
11487 done
11488IFS=$as_save_IFS
11489
11490fi
11491fi
11492ac_ct_AR=$ac_cv_prog_ac_ct_AR
11493if test -n "$ac_ct_AR"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11495$as_echo "$ac_ct_AR" >&6; }
11496else
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498$as_echo "no" >&6; }
11499fi
11500
cristyda16f162011-02-19 23:52:17 +000011501
11502 test -n "$ac_ct_AR" && break
11503done
11504
cristy73bd4a52010-10-05 11:24:23 +000011505 if test "x$ac_ct_AR" = x; then
11506 AR="false"
11507 else
11508 case $cross_compiling:$ac_tool_warned in
11509yes:)
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11512ac_tool_warned=yes ;;
11513esac
11514 AR=$ac_ct_AR
11515 fi
cristy73bd4a52010-10-05 11:24:23 +000011516fi
11517
cristyda16f162011-02-19 23:52:17 +000011518: ${AR=ar}
11519: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
cristyda16f162011-02-19 23:52:17 +000011531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11532$as_echo_n "checking for archiver @FILE support... " >&6; }
11533if ${lt_cv_ar_at_file+:} false; then :
11534 $as_echo_n "(cached) " >&6
11535else
11536 lt_cv_ar_at_file=no
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538/* end confdefs.h. */
11539
11540int
11541main ()
11542{
11543
11544 ;
11545 return 0;
11546}
11547_ACEOF
11548if ac_fn_c_try_compile "$LINENO"; then :
11549 echo conftest.$ac_objext > conftest.lst
11550 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11552 (eval $lt_ar_try) 2>&5
11553 ac_status=$?
11554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11555 test $ac_status = 0; }
11556 if test "$ac_status" -eq 0; then
11557 # Ensure the archiver fails upon bogus file names.
11558 rm -f conftest.$ac_objext libconftest.a
11559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11560 (eval $lt_ar_try) 2>&5
11561 ac_status=$?
11562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11563 test $ac_status = 0; }
11564 if test "$ac_status" -ne 0; then
11565 lt_cv_ar_at_file=@
11566 fi
11567 fi
11568 rm -f conftest.* libconftest.a
11569
11570fi
11571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11572
11573fi
11574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11575$as_echo "$lt_cv_ar_at_file" >&6; }
11576
11577if test "x$lt_cv_ar_at_file" = xno; then
11578 archiver_list_spec=
11579else
11580 archiver_list_spec=$lt_cv_ar_at_file
11581fi
11582
11583
11584
11585
11586
11587
11588
cristy73bd4a52010-10-05 11:24:23 +000011589if test -n "$ac_tool_prefix"; then
11590 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11591set dummy ${ac_tool_prefix}strip; ac_word=$2
11592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011594if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011595 $as_echo_n "(cached) " >&6
11596else
11597 if test -n "$STRIP"; then
11598 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11599else
11600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601for as_dir in $PATH
11602do
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
11605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011607 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11609 break 2
11610 fi
11611done
11612 done
11613IFS=$as_save_IFS
11614
11615fi
11616fi
11617STRIP=$ac_cv_prog_STRIP
11618if test -n "$STRIP"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11620$as_echo "$STRIP" >&6; }
11621else
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623$as_echo "no" >&6; }
11624fi
11625
11626
11627fi
11628if test -z "$ac_cv_prog_STRIP"; then
11629 ac_ct_STRIP=$STRIP
11630 # Extract the first word of "strip", so it can be a program name with args.
11631set dummy strip; ac_word=$2
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011634if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011635 $as_echo_n "(cached) " >&6
11636else
11637 if test -n "$ac_ct_STRIP"; then
11638 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11639else
11640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641for as_dir in $PATH
11642do
11643 IFS=$as_save_IFS
11644 test -z "$as_dir" && as_dir=.
11645 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011647 ac_cv_prog_ac_ct_STRIP="strip"
11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 break 2
11650 fi
11651done
11652 done
11653IFS=$as_save_IFS
11654
11655fi
11656fi
11657ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11658if test -n "$ac_ct_STRIP"; then
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11660$as_echo "$ac_ct_STRIP" >&6; }
11661else
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663$as_echo "no" >&6; }
11664fi
11665
11666 if test "x$ac_ct_STRIP" = x; then
11667 STRIP=":"
11668 else
11669 case $cross_compiling:$ac_tool_warned in
11670yes:)
11671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11673ac_tool_warned=yes ;;
11674esac
11675 STRIP=$ac_ct_STRIP
11676 fi
11677else
11678 STRIP="$ac_cv_prog_STRIP"
11679fi
11680
11681test -z "$STRIP" && STRIP=:
11682
11683
11684
11685
11686
11687
11688if test -n "$ac_tool_prefix"; then
11689 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11690set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11692$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011693if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011694 $as_echo_n "(cached) " >&6
11695else
11696 if test -n "$RANLIB"; then
11697 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11698else
11699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700for as_dir in $PATH
11701do
11702 IFS=$as_save_IFS
11703 test -z "$as_dir" && as_dir=.
11704 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011706 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11708 break 2
11709 fi
11710done
11711 done
11712IFS=$as_save_IFS
11713
11714fi
11715fi
11716RANLIB=$ac_cv_prog_RANLIB
11717if test -n "$RANLIB"; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11719$as_echo "$RANLIB" >&6; }
11720else
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722$as_echo "no" >&6; }
11723fi
11724
11725
11726fi
11727if test -z "$ac_cv_prog_RANLIB"; then
11728 ac_ct_RANLIB=$RANLIB
11729 # Extract the first word of "ranlib", so it can be a program name with args.
11730set dummy ranlib; ac_word=$2
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11732$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011733if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011734 $as_echo_n "(cached) " >&6
11735else
11736 if test -n "$ac_ct_RANLIB"; then
11737 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11738else
11739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740for as_dir in $PATH
11741do
11742 IFS=$as_save_IFS
11743 test -z "$as_dir" && as_dir=.
11744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011746 ac_cv_prog_ac_ct_RANLIB="ranlib"
11747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11748 break 2
11749 fi
11750done
11751 done
11752IFS=$as_save_IFS
11753
11754fi
11755fi
11756ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11757if test -n "$ac_ct_RANLIB"; then
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11759$as_echo "$ac_ct_RANLIB" >&6; }
11760else
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762$as_echo "no" >&6; }
11763fi
11764
11765 if test "x$ac_ct_RANLIB" = x; then
11766 RANLIB=":"
11767 else
11768 case $cross_compiling:$ac_tool_warned in
11769yes:)
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11772ac_tool_warned=yes ;;
11773esac
11774 RANLIB=$ac_ct_RANLIB
11775 fi
11776else
11777 RANLIB="$ac_cv_prog_RANLIB"
11778fi
11779
11780test -z "$RANLIB" && RANLIB=:
11781
11782
11783
11784
11785
11786
11787# Determine commands to create old-style static archives.
11788old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11789old_postinstall_cmds='chmod 644 $oldlib'
11790old_postuninstall_cmds=
11791
11792if test -n "$RANLIB"; then
11793 case $host_os in
11794 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011795 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011796 ;;
11797 *)
cristy99bd5232011-12-07 14:38:20 +000011798 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011799 ;;
11800 esac
cristy99bd5232011-12-07 14:38:20 +000011801 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011802fi
11803
cristy0c60a692010-11-04 01:09:47 +000011804case $host_os in
11805 darwin*)
11806 lock_old_archive_extraction=yes ;;
11807 *)
11808 lock_old_archive_extraction=no ;;
11809esac
11810
11811
11812
11813
11814
11815
cristy73bd4a52010-10-05 11:24:23 +000011816
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
11849# If no C compiler was specified, use CC.
11850LTCC=${LTCC-"$CC"}
11851
11852# If no C compiler flags were specified, use CFLAGS.
11853LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11854
11855# Allow CC to be a program name with arguments.
11856compiler=$CC
11857
11858
11859# Check for command to grab the raw symbol name followed by C symbol from nm.
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11861$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011862if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011863 $as_echo_n "(cached) " >&6
11864else
11865
11866# These are sane defaults that work on at least a few old systems.
11867# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11868
11869# Character class describing NM global symbol codes.
11870symcode='[BCDEGRST]'
11871
11872# Regexp to match symbols that can be accessed directly from C.
11873sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11874
11875# Define system-specific variables.
11876case $host_os in
11877aix*)
11878 symcode='[BCDT]'
11879 ;;
11880cygwin* | mingw* | pw32* | cegcc*)
11881 symcode='[ABCDGISTW]'
11882 ;;
11883hpux*)
11884 if test "$host_cpu" = ia64; then
11885 symcode='[ABCDEGRST]'
11886 fi
11887 ;;
11888irix* | nonstopux*)
11889 symcode='[BCDEGRST]'
11890 ;;
11891osf*)
11892 symcode='[BCDEGQRST]'
11893 ;;
11894solaris*)
11895 symcode='[BDRT]'
11896 ;;
11897sco3.2v5*)
11898 symcode='[DT]'
11899 ;;
11900sysv4.2uw2*)
11901 symcode='[DT]'
11902 ;;
11903sysv5* | sco5v6* | unixware* | OpenUNIX*)
11904 symcode='[ABDT]'
11905 ;;
11906sysv4)
11907 symcode='[DFNSTU]'
11908 ;;
11909esac
11910
11911# If we're using GNU nm, then use its standard symbol codes.
11912case `$NM -V 2>&1` in
11913*GNU* | *'with BFD'*)
11914 symcode='[ABCDGIRSTW]' ;;
11915esac
11916
11917# Transform an extracted symbol line into a proper C declaration.
11918# Some systems (esp. on ia64) link data and code symbols differently,
11919# so use this general approach.
11920lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11921
11922# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011923lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11924lt_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 +000011925
11926# Handle CRLF in mingw tool chain
11927opt_cr=
11928case $build_os in
11929mingw*)
11930 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11931 ;;
11932esac
11933
11934# Try without a prefix underscore, then with it.
11935for ac_symprfx in "" "_"; do
11936
11937 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11938 symxfrm="\\1 $ac_symprfx\\2 \\2"
11939
11940 # Write the raw and C identifiers.
11941 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11942 # Fake it for dumpbin and say T for any non-static function
11943 # and D for any global variable.
11944 # Also find C++ and __fastcall symbols from MSVC++,
11945 # which start with @ or ?.
11946 lt_cv_sys_global_symbol_pipe="$AWK '"\
11947" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011948" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011949" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11950" \$ 0!~/External *\|/{next};"\
11951" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11952" {if(hide[section]) next};"\
11953" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11954" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11955" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11956" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11957" ' prfx=^$ac_symprfx"
11958 else
11959 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11960 fi
cristyda16f162011-02-19 23:52:17 +000011961 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011962
11963 # Check to see that the pipe works correctly.
11964 pipe_works=no
11965
11966 rm -f conftest*
11967 cat > conftest.$ac_ext <<_LT_EOF
11968#ifdef __cplusplus
11969extern "C" {
11970#endif
11971char nm_test_var;
11972void nm_test_func(void);
11973void nm_test_func(void){}
11974#ifdef __cplusplus
11975}
11976#endif
11977int main(){nm_test_var='a';nm_test_func();return(0);}
11978_LT_EOF
11979
11980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11981 (eval $ac_compile) 2>&5
11982 ac_status=$?
11983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11984 test $ac_status = 0; }; then
11985 # Now try to grab the symbols.
11986 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11988 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011989 ac_status=$?
11990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11991 test $ac_status = 0; } && test -s "$nlist"; then
11992 # Try sorting and uniquifying the output.
11993 if sort "$nlist" | uniq > "$nlist"T; then
11994 mv -f "$nlist"T "$nlist"
11995 else
11996 rm -f "$nlist"T
11997 fi
11998
11999 # Make sure that we snagged all the symbols we need.
12000 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12001 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12002 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012003/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12004#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12005/* DATA imports from DLLs on WIN32 con't be const, because runtime
12006 relocations are performed -- see ld's documentation on pseudo-relocs. */
12007# define LT_DLSYM_CONST
12008#elif defined(__osf__)
12009/* This system does not cope well with relocations in const data. */
12010# define LT_DLSYM_CONST
12011#else
12012# define LT_DLSYM_CONST const
12013#endif
12014
cristy73bd4a52010-10-05 11:24:23 +000012015#ifdef __cplusplus
12016extern "C" {
12017#endif
12018
12019_LT_EOF
12020 # Now generate the symbol file.
12021 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12022
12023 cat <<_LT_EOF >> conftest.$ac_ext
12024
12025/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012026LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012027 const char *name;
12028 void *address;
12029}
12030lt__PROGRAM__LTX_preloaded_symbols[] =
12031{
12032 { "@PROGRAM@", (void *) 0 },
12033_LT_EOF
12034 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12035 cat <<\_LT_EOF >> conftest.$ac_ext
12036 {0, (void *) 0}
12037};
12038
12039/* This works around a problem in FreeBSD linker */
12040#ifdef FREEBSD_WORKAROUND
12041static const void *lt_preloaded_setup() {
12042 return lt__PROGRAM__LTX_preloaded_symbols;
12043}
12044#endif
12045
12046#ifdef __cplusplus
12047}
12048#endif
12049_LT_EOF
12050 # Now try linking the two files.
12051 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012052 lt_globsym_save_LIBS=$LIBS
12053 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012054 LIBS="conftstm.$ac_objext"
12055 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12057 (eval $ac_link) 2>&5
12058 ac_status=$?
12059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12060 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12061 pipe_works=yes
12062 fi
cristyda16f162011-02-19 23:52:17 +000012063 LIBS=$lt_globsym_save_LIBS
12064 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012065 else
12066 echo "cannot find nm_test_func in $nlist" >&5
12067 fi
12068 else
12069 echo "cannot find nm_test_var in $nlist" >&5
12070 fi
12071 else
12072 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12073 fi
12074 else
12075 echo "$progname: failed program was:" >&5
12076 cat conftest.$ac_ext >&5
12077 fi
12078 rm -rf conftest* conftst*
12079
12080 # Do not use the global_symbol_pipe unless it works.
12081 if test "$pipe_works" = yes; then
12082 break
12083 else
12084 lt_cv_sys_global_symbol_pipe=
12085 fi
12086done
12087
12088fi
12089
12090if test -z "$lt_cv_sys_global_symbol_pipe"; then
12091 lt_cv_sys_global_symbol_to_cdecl=
12092fi
12093if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12095$as_echo "failed" >&6; }
12096else
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12098$as_echo "ok" >&6; }
12099fi
12100
cristyda16f162011-02-19 23:52:17 +000012101# Response file support.
12102if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12103 nm_file_list_spec='@'
12104elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12105 nm_file_list_spec='@'
12106fi
cristy73bd4a52010-10-05 11:24:23 +000012107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
cristyda16f162011-02-19 23:52:17 +000012128
12129
12130
12131
12132
12133
12134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12135$as_echo_n "checking for sysroot... " >&6; }
12136
12137# Check whether --with-sysroot was given.
12138if test "${with_sysroot+set}" = set; then :
12139 withval=$with_sysroot;
12140else
12141 with_sysroot=no
12142fi
12143
12144
12145lt_sysroot=
12146case ${with_sysroot} in #(
12147 yes)
12148 if test "$GCC" = yes; then
12149 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12150 fi
12151 ;; #(
12152 /*)
12153 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12154 ;; #(
12155 no|'')
12156 ;; #(
12157 *)
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12159$as_echo "${with_sysroot}" >&6; }
12160 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12161 ;;
12162esac
12163
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12165$as_echo "${lt_sysroot:-no}" >&6; }
12166
12167
12168
12169
12170
cristy73bd4a52010-10-05 11:24:23 +000012171# Check whether --enable-libtool-lock was given.
12172if test "${enable_libtool_lock+set}" = set; then :
12173 enableval=$enable_libtool_lock;
12174fi
12175
12176test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12177
12178# Some flags need to be propagated to the compiler or linker for good
12179# libtool support.
12180case $host in
12181ia64-*-hpux*)
12182 # Find out which ABI we are using.
12183 echo 'int i;' > conftest.$ac_ext
12184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12185 (eval $ac_compile) 2>&5
12186 ac_status=$?
12187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12188 test $ac_status = 0; }; then
12189 case `/usr/bin/file conftest.$ac_objext` in
12190 *ELF-32*)
12191 HPUX_IA64_MODE="32"
12192 ;;
12193 *ELF-64*)
12194 HPUX_IA64_MODE="64"
12195 ;;
12196 esac
12197 fi
12198 rm -rf conftest*
12199 ;;
12200*-*-irix6*)
12201 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012202 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12204 (eval $ac_compile) 2>&5
12205 ac_status=$?
12206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12207 test $ac_status = 0; }; then
12208 if test "$lt_cv_prog_gnu_ld" = yes; then
12209 case `/usr/bin/file conftest.$ac_objext` in
12210 *32-bit*)
12211 LD="${LD-ld} -melf32bsmip"
12212 ;;
12213 *N32*)
12214 LD="${LD-ld} -melf32bmipn32"
12215 ;;
12216 *64-bit*)
12217 LD="${LD-ld} -melf64bmip"
12218 ;;
12219 esac
12220 else
12221 case `/usr/bin/file conftest.$ac_objext` in
12222 *32-bit*)
12223 LD="${LD-ld} -32"
12224 ;;
12225 *N32*)
12226 LD="${LD-ld} -n32"
12227 ;;
12228 *64-bit*)
12229 LD="${LD-ld} -64"
12230 ;;
12231 esac
12232 fi
12233 fi
12234 rm -rf conftest*
12235 ;;
12236
12237x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12238s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12239 # Find out which ABI we are using.
12240 echo 'int i;' > conftest.$ac_ext
12241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12242 (eval $ac_compile) 2>&5
12243 ac_status=$?
12244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12245 test $ac_status = 0; }; then
12246 case `/usr/bin/file conftest.o` in
12247 *32-bit*)
12248 case $host in
12249 x86_64-*kfreebsd*-gnu)
12250 LD="${LD-ld} -m elf_i386_fbsd"
12251 ;;
12252 x86_64-*linux*)
12253 LD="${LD-ld} -m elf_i386"
12254 ;;
12255 ppc64-*linux*|powerpc64-*linux*)
12256 LD="${LD-ld} -m elf32ppclinux"
12257 ;;
12258 s390x-*linux*)
12259 LD="${LD-ld} -m elf_s390"
12260 ;;
12261 sparc64-*linux*)
12262 LD="${LD-ld} -m elf32_sparc"
12263 ;;
12264 esac
12265 ;;
12266 *64-bit*)
12267 case $host in
12268 x86_64-*kfreebsd*-gnu)
12269 LD="${LD-ld} -m elf_x86_64_fbsd"
12270 ;;
12271 x86_64-*linux*)
12272 LD="${LD-ld} -m elf_x86_64"
12273 ;;
12274 ppc*-*linux*|powerpc*-*linux*)
12275 LD="${LD-ld} -m elf64ppc"
12276 ;;
12277 s390*-*linux*|s390*-*tpf*)
12278 LD="${LD-ld} -m elf64_s390"
12279 ;;
12280 sparc*-*linux*)
12281 LD="${LD-ld} -m elf64_sparc"
12282 ;;
12283 esac
12284 ;;
12285 esac
12286 fi
12287 rm -rf conftest*
12288 ;;
12289
12290*-*-sco3.2v5*)
12291 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12292 SAVE_CFLAGS="$CFLAGS"
12293 CFLAGS="$CFLAGS -belf"
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12295$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012296if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012297 $as_echo_n "(cached) " >&6
12298else
12299 ac_ext=c
12300ac_cpp='$CPP $CPPFLAGS'
12301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12303ac_compiler_gnu=$ac_cv_c_compiler_gnu
12304
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306/* end confdefs.h. */
12307
12308int
12309main ()
12310{
12311
12312 ;
12313 return 0;
12314}
12315_ACEOF
12316if ac_fn_c_try_link "$LINENO"; then :
12317 lt_cv_cc_needs_belf=yes
12318else
12319 lt_cv_cc_needs_belf=no
12320fi
12321rm -f core conftest.err conftest.$ac_objext \
12322 conftest$ac_exeext conftest.$ac_ext
12323 ac_ext=c
12324ac_cpp='$CPP $CPPFLAGS'
12325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12327ac_compiler_gnu=$ac_cv_c_compiler_gnu
12328
12329fi
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12331$as_echo "$lt_cv_cc_needs_belf" >&6; }
12332 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12333 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12334 CFLAGS="$SAVE_CFLAGS"
12335 fi
12336 ;;
cristy99bd5232011-12-07 14:38:20 +000012337*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012338 # Find out which ABI we are using.
12339 echo 'int i;' > conftest.$ac_ext
12340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12341 (eval $ac_compile) 2>&5
12342 ac_status=$?
12343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12344 test $ac_status = 0; }; then
12345 case `/usr/bin/file conftest.o` in
12346 *64-bit*)
12347 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012348 yes*)
12349 case $host in
12350 i?86-*-solaris*)
12351 LD="${LD-ld} -m elf_x86_64"
12352 ;;
12353 sparc*-*-solaris*)
12354 LD="${LD-ld} -m elf64_sparc"
12355 ;;
12356 esac
12357 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12358 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12359 LD="${LD-ld}_sol2"
12360 fi
12361 ;;
cristy73bd4a52010-10-05 11:24:23 +000012362 *)
12363 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12364 LD="${LD-ld} -64"
12365 fi
12366 ;;
12367 esac
12368 ;;
12369 esac
12370 fi
12371 rm -rf conftest*
12372 ;;
12373esac
12374
12375need_locks="$enable_libtool_lock"
12376
cristyda16f162011-02-19 23:52:17 +000012377if test -n "$ac_tool_prefix"; then
12378 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12379set dummy ${ac_tool_prefix}mt; ac_word=$2
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12381$as_echo_n "checking for $ac_word... " >&6; }
12382if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12383 $as_echo_n "(cached) " >&6
12384else
12385 if test -n "$MANIFEST_TOOL"; then
12386 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12387else
12388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389for as_dir in $PATH
12390do
12391 IFS=$as_save_IFS
12392 test -z "$as_dir" && as_dir=.
12393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012395 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12397 break 2
12398 fi
12399done
12400 done
12401IFS=$as_save_IFS
12402
12403fi
12404fi
12405MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12406if test -n "$MANIFEST_TOOL"; then
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12408$as_echo "$MANIFEST_TOOL" >&6; }
12409else
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411$as_echo "no" >&6; }
12412fi
12413
12414
12415fi
12416if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12417 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12418 # Extract the first word of "mt", so it can be a program name with args.
12419set dummy mt; ac_word=$2
12420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12421$as_echo_n "checking for $ac_word... " >&6; }
12422if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12423 $as_echo_n "(cached) " >&6
12424else
12425 if test -n "$ac_ct_MANIFEST_TOOL"; then
12426 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12427else
12428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429for as_dir in $PATH
12430do
12431 IFS=$as_save_IFS
12432 test -z "$as_dir" && as_dir=.
12433 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012435 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437 break 2
12438 fi
12439done
12440 done
12441IFS=$as_save_IFS
12442
12443fi
12444fi
12445ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12446if test -n "$ac_ct_MANIFEST_TOOL"; then
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12448$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12449else
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451$as_echo "no" >&6; }
12452fi
12453
12454 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12455 MANIFEST_TOOL=":"
12456 else
12457 case $cross_compiling:$ac_tool_warned in
12458yes:)
12459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12461ac_tool_warned=yes ;;
12462esac
12463 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12464 fi
12465else
12466 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12467fi
12468
12469test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12471$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12472if ${lt_cv_path_mainfest_tool+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474else
12475 lt_cv_path_mainfest_tool=no
12476 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12477 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12478 cat conftest.err >&5
12479 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12480 lt_cv_path_mainfest_tool=yes
12481 fi
12482 rm -f conftest*
12483fi
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12485$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12486if test "x$lt_cv_path_mainfest_tool" != xyes; then
12487 MANIFEST_TOOL=:
12488fi
12489
12490
12491
12492
12493
cristy73bd4a52010-10-05 11:24:23 +000012494
12495 case $host_os in
12496 rhapsody* | darwin*)
12497 if test -n "$ac_tool_prefix"; then
12498 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12499set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012502if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012503 $as_echo_n "(cached) " >&6
12504else
12505 if test -n "$DSYMUTIL"; then
12506 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12507else
12508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509for as_dir in $PATH
12510do
12511 IFS=$as_save_IFS
12512 test -z "$as_dir" && as_dir=.
12513 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012515 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12517 break 2
12518 fi
12519done
12520 done
12521IFS=$as_save_IFS
12522
12523fi
12524fi
12525DSYMUTIL=$ac_cv_prog_DSYMUTIL
12526if test -n "$DSYMUTIL"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12528$as_echo "$DSYMUTIL" >&6; }
12529else
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531$as_echo "no" >&6; }
12532fi
12533
12534
12535fi
12536if test -z "$ac_cv_prog_DSYMUTIL"; then
12537 ac_ct_DSYMUTIL=$DSYMUTIL
12538 # Extract the first word of "dsymutil", so it can be a program name with args.
12539set dummy dsymutil; ac_word=$2
12540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12541$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012542if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012543 $as_echo_n "(cached) " >&6
12544else
12545 if test -n "$ac_ct_DSYMUTIL"; then
12546 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12547else
12548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549for as_dir in $PATH
12550do
12551 IFS=$as_save_IFS
12552 test -z "$as_dir" && as_dir=.
12553 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012555 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12557 break 2
12558 fi
12559done
12560 done
12561IFS=$as_save_IFS
12562
12563fi
12564fi
12565ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12566if test -n "$ac_ct_DSYMUTIL"; then
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12568$as_echo "$ac_ct_DSYMUTIL" >&6; }
12569else
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571$as_echo "no" >&6; }
12572fi
12573
12574 if test "x$ac_ct_DSYMUTIL" = x; then
12575 DSYMUTIL=":"
12576 else
12577 case $cross_compiling:$ac_tool_warned in
12578yes:)
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12581ac_tool_warned=yes ;;
12582esac
12583 DSYMUTIL=$ac_ct_DSYMUTIL
12584 fi
12585else
12586 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12587fi
12588
12589 if test -n "$ac_tool_prefix"; then
12590 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12591set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012594if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012595 $as_echo_n "(cached) " >&6
12596else
12597 if test -n "$NMEDIT"; then
12598 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12599else
12600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601for as_dir in $PATH
12602do
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012607 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12610 fi
12611done
12612 done
12613IFS=$as_save_IFS
12614
12615fi
12616fi
12617NMEDIT=$ac_cv_prog_NMEDIT
12618if test -n "$NMEDIT"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12620$as_echo "$NMEDIT" >&6; }
12621else
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623$as_echo "no" >&6; }
12624fi
12625
12626
12627fi
12628if test -z "$ac_cv_prog_NMEDIT"; then
12629 ac_ct_NMEDIT=$NMEDIT
12630 # Extract the first word of "nmedit", so it can be a program name with args.
12631set dummy nmedit; ac_word=$2
12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012634if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012635 $as_echo_n "(cached) " >&6
12636else
12637 if test -n "$ac_ct_NMEDIT"; then
12638 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12639else
12640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641for as_dir in $PATH
12642do
12643 IFS=$as_save_IFS
12644 test -z "$as_dir" && as_dir=.
12645 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012647 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12649 break 2
12650 fi
12651done
12652 done
12653IFS=$as_save_IFS
12654
12655fi
12656fi
12657ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12658if test -n "$ac_ct_NMEDIT"; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12660$as_echo "$ac_ct_NMEDIT" >&6; }
12661else
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663$as_echo "no" >&6; }
12664fi
12665
12666 if test "x$ac_ct_NMEDIT" = x; then
12667 NMEDIT=":"
12668 else
12669 case $cross_compiling:$ac_tool_warned in
12670yes:)
12671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12673ac_tool_warned=yes ;;
12674esac
12675 NMEDIT=$ac_ct_NMEDIT
12676 fi
12677else
12678 NMEDIT="$ac_cv_prog_NMEDIT"
12679fi
12680
12681 if test -n "$ac_tool_prefix"; then
12682 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12683set dummy ${ac_tool_prefix}lipo; ac_word=$2
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012686if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012687 $as_echo_n "(cached) " >&6
12688else
12689 if test -n "$LIPO"; then
12690 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12691else
12692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693for as_dir in $PATH
12694do
12695 IFS=$as_save_IFS
12696 test -z "$as_dir" && as_dir=.
12697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012699 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12701 break 2
12702 fi
12703done
12704 done
12705IFS=$as_save_IFS
12706
12707fi
12708fi
12709LIPO=$ac_cv_prog_LIPO
12710if test -n "$LIPO"; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12712$as_echo "$LIPO" >&6; }
12713else
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715$as_echo "no" >&6; }
12716fi
12717
12718
12719fi
12720if test -z "$ac_cv_prog_LIPO"; then
12721 ac_ct_LIPO=$LIPO
12722 # Extract the first word of "lipo", so it can be a program name with args.
12723set dummy lipo; ac_word=$2
12724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12725$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012726if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012727 $as_echo_n "(cached) " >&6
12728else
12729 if test -n "$ac_ct_LIPO"; then
12730 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12731else
12732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733for as_dir in $PATH
12734do
12735 IFS=$as_save_IFS
12736 test -z "$as_dir" && as_dir=.
12737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012739 ac_cv_prog_ac_ct_LIPO="lipo"
12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12741 break 2
12742 fi
12743done
12744 done
12745IFS=$as_save_IFS
12746
12747fi
12748fi
12749ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12750if test -n "$ac_ct_LIPO"; then
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12752$as_echo "$ac_ct_LIPO" >&6; }
12753else
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755$as_echo "no" >&6; }
12756fi
12757
12758 if test "x$ac_ct_LIPO" = x; then
12759 LIPO=":"
12760 else
12761 case $cross_compiling:$ac_tool_warned in
12762yes:)
12763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12765ac_tool_warned=yes ;;
12766esac
12767 LIPO=$ac_ct_LIPO
12768 fi
12769else
12770 LIPO="$ac_cv_prog_LIPO"
12771fi
12772
12773 if test -n "$ac_tool_prefix"; then
12774 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12775set dummy ${ac_tool_prefix}otool; ac_word=$2
12776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012778if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012779 $as_echo_n "(cached) " >&6
12780else
12781 if test -n "$OTOOL"; then
12782 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12783else
12784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785for as_dir in $PATH
12786do
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012791 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12794 fi
12795done
12796 done
12797IFS=$as_save_IFS
12798
12799fi
12800fi
12801OTOOL=$ac_cv_prog_OTOOL
12802if test -n "$OTOOL"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12804$as_echo "$OTOOL" >&6; }
12805else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807$as_echo "no" >&6; }
12808fi
12809
12810
12811fi
12812if test -z "$ac_cv_prog_OTOOL"; then
12813 ac_ct_OTOOL=$OTOOL
12814 # Extract the first word of "otool", so it can be a program name with args.
12815set dummy otool; ac_word=$2
12816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012818if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012819 $as_echo_n "(cached) " >&6
12820else
12821 if test -n "$ac_ct_OTOOL"; then
12822 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12823else
12824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825for as_dir in $PATH
12826do
12827 IFS=$as_save_IFS
12828 test -z "$as_dir" && as_dir=.
12829 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012831 ac_cv_prog_ac_ct_OTOOL="otool"
12832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12833 break 2
12834 fi
12835done
12836 done
12837IFS=$as_save_IFS
12838
12839fi
12840fi
12841ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12842if test -n "$ac_ct_OTOOL"; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12844$as_echo "$ac_ct_OTOOL" >&6; }
12845else
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847$as_echo "no" >&6; }
12848fi
12849
12850 if test "x$ac_ct_OTOOL" = x; then
12851 OTOOL=":"
12852 else
12853 case $cross_compiling:$ac_tool_warned in
12854yes:)
12855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12857ac_tool_warned=yes ;;
12858esac
12859 OTOOL=$ac_ct_OTOOL
12860 fi
12861else
12862 OTOOL="$ac_cv_prog_OTOOL"
12863fi
12864
12865 if test -n "$ac_tool_prefix"; then
12866 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12867set dummy ${ac_tool_prefix}otool64; ac_word=$2
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012870if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012871 $as_echo_n "(cached) " >&6
12872else
12873 if test -n "$OTOOL64"; then
12874 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12875else
12876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877for as_dir in $PATH
12878do
12879 IFS=$as_save_IFS
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012883 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12885 break 2
12886 fi
12887done
12888 done
12889IFS=$as_save_IFS
12890
12891fi
12892fi
12893OTOOL64=$ac_cv_prog_OTOOL64
12894if test -n "$OTOOL64"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12896$as_echo "$OTOOL64" >&6; }
12897else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899$as_echo "no" >&6; }
12900fi
12901
12902
12903fi
12904if test -z "$ac_cv_prog_OTOOL64"; then
12905 ac_ct_OTOOL64=$OTOOL64
12906 # Extract the first word of "otool64", so it can be a program name with args.
12907set dummy otool64; ac_word=$2
12908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12909$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012910if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012911 $as_echo_n "(cached) " >&6
12912else
12913 if test -n "$ac_ct_OTOOL64"; then
12914 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12915else
12916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917for as_dir in $PATH
12918do
12919 IFS=$as_save_IFS
12920 test -z "$as_dir" && as_dir=.
12921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012923 ac_cv_prog_ac_ct_OTOOL64="otool64"
12924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12925 break 2
12926 fi
12927done
12928 done
12929IFS=$as_save_IFS
12930
12931fi
12932fi
12933ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12934if test -n "$ac_ct_OTOOL64"; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12936$as_echo "$ac_ct_OTOOL64" >&6; }
12937else
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939$as_echo "no" >&6; }
12940fi
12941
12942 if test "x$ac_ct_OTOOL64" = x; then
12943 OTOOL64=":"
12944 else
12945 case $cross_compiling:$ac_tool_warned in
12946yes:)
12947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12949ac_tool_warned=yes ;;
12950esac
12951 OTOOL64=$ac_ct_OTOOL64
12952 fi
12953else
12954 OTOOL64="$ac_cv_prog_OTOOL64"
12955fi
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
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12984$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012985if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012986 $as_echo_n "(cached) " >&6
12987else
12988 lt_cv_apple_cc_single_mod=no
12989 if test -z "${LT_MULTI_MODULE}"; then
12990 # By default we will add the -single_module flag. You can override
12991 # by either setting the environment variable LT_MULTI_MODULE
12992 # non-empty at configure time, or by adding -multi_module to the
12993 # link flags.
12994 rm -rf libconftest.dylib*
12995 echo "int foo(void){return 1;}" > conftest.c
12996 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12997-dynamiclib -Wl,-single_module conftest.c" >&5
12998 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12999 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13000 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013001 # If there is a non-empty error log, and "single_module"
13002 # appears in it, assume the flag caused a linker warning
13003 if test -s conftest.err && $GREP single_module conftest.err; then
13004 cat conftest.err >&5
13005 # Otherwise, if the output was created with a 0 exit code from
13006 # the compiler, it worked.
13007 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013008 lt_cv_apple_cc_single_mod=yes
13009 else
13010 cat conftest.err >&5
13011 fi
13012 rm -rf libconftest.dylib*
13013 rm -f conftest.*
13014 fi
13015fi
13016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13017$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013018
cristy73bd4a52010-10-05 11:24:23 +000013019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13020$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013021if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013022 $as_echo_n "(cached) " >&6
13023else
13024 lt_cv_ld_exported_symbols_list=no
13025 save_LDFLAGS=$LDFLAGS
13026 echo "_main" > conftest.sym
13027 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029/* end confdefs.h. */
13030
13031int
13032main ()
13033{
13034
13035 ;
13036 return 0;
13037}
13038_ACEOF
13039if ac_fn_c_try_link "$LINENO"; then :
13040 lt_cv_ld_exported_symbols_list=yes
13041else
13042 lt_cv_ld_exported_symbols_list=no
13043fi
13044rm -f core conftest.err conftest.$ac_objext \
13045 conftest$ac_exeext conftest.$ac_ext
13046 LDFLAGS="$save_LDFLAGS"
13047
13048fi
13049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13050$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013051
cristy0c60a692010-11-04 01:09:47 +000013052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13053$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013054if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013055 $as_echo_n "(cached) " >&6
13056else
13057 lt_cv_ld_force_load=no
13058 cat > conftest.c << _LT_EOF
13059int forced_loaded() { return 2;}
13060_LT_EOF
13061 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13062 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13063 echo "$AR cru libconftest.a conftest.o" >&5
13064 $AR cru libconftest.a conftest.o 2>&5
13065 echo "$RANLIB libconftest.a" >&5
13066 $RANLIB libconftest.a 2>&5
13067 cat > conftest.c << _LT_EOF
13068int main() { return 0;}
13069_LT_EOF
13070 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13071 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13072 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013073 if test -s conftest.err && $GREP force_load conftest.err; then
13074 cat conftest.err >&5
13075 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013076 lt_cv_ld_force_load=yes
13077 else
13078 cat conftest.err >&5
13079 fi
13080 rm -f conftest.err libconftest.a conftest conftest.c
13081 rm -rf conftest.dSYM
13082
13083fi
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13085$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013086 case $host_os in
13087 rhapsody* | darwin1.[012])
13088 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13089 darwin1.*)
13090 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13091 darwin*) # darwin 5.x on
13092 # if running on 10.5 or later, the deployment target defaults
13093 # to the OS version, if on x86, and 10.4, the deployment
13094 # target defaults to 10.4. Don't you love it?
13095 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13096 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13097 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13098 10.[012]*)
13099 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13100 10.*)
13101 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13102 esac
13103 ;;
13104 esac
13105 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13106 _lt_dar_single_mod='$single_module'
13107 fi
13108 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13109 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13110 else
13111 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13112 fi
cristy0c60a692010-11-04 01:09:47 +000013113 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013114 _lt_dsymutil='~$DSYMUTIL $lib || :'
13115 else
13116 _lt_dsymutil=
13117 fi
13118 ;;
13119 esac
13120
13121for ac_header in dlfcn.h
13122do :
13123 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13124"
cristyda16f162011-02-19 23:52:17 +000013125if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013126 cat >>confdefs.h <<_ACEOF
13127#define HAVE_DLFCN_H 1
13128_ACEOF
13129
13130fi
13131
13132done
13133
13134
13135
cristy73bd4a52010-10-05 11:24:23 +000013136
cristyda16f162011-02-19 23:52:17 +000013137func_stripname_cnf ()
13138{
13139 case ${2} in
13140 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13141 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13142 esac
13143} # func_stripname_cnf
13144
13145
13146
cristy73bd4a52010-10-05 11:24:23 +000013147
13148
13149# Set options
13150enable_win32_dll=yes
13151
13152case $host in
cristy0c60a692010-11-04 01:09:47 +000013153*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013154 if test -n "$ac_tool_prefix"; then
13155 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13156set dummy ${ac_tool_prefix}as; ac_word=$2
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013159if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013160 $as_echo_n "(cached) " >&6
13161else
13162 if test -n "$AS"; then
13163 ac_cv_prog_AS="$AS" # Let the user override the test.
13164else
13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166for as_dir in $PATH
13167do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013172 ac_cv_prog_AS="${ac_tool_prefix}as"
13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13175 fi
13176done
13177 done
13178IFS=$as_save_IFS
13179
13180fi
13181fi
13182AS=$ac_cv_prog_AS
13183if test -n "$AS"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13185$as_echo "$AS" >&6; }
13186else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188$as_echo "no" >&6; }
13189fi
13190
13191
13192fi
13193if test -z "$ac_cv_prog_AS"; then
13194 ac_ct_AS=$AS
13195 # Extract the first word of "as", so it can be a program name with args.
13196set dummy as; ac_word=$2
13197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013199if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013200 $as_echo_n "(cached) " >&6
13201else
13202 if test -n "$ac_ct_AS"; then
13203 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13204else
13205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206for as_dir in $PATH
13207do
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013212 ac_cv_prog_ac_ct_AS="as"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13215 fi
13216done
13217 done
13218IFS=$as_save_IFS
13219
13220fi
13221fi
13222ac_ct_AS=$ac_cv_prog_ac_ct_AS
13223if test -n "$ac_ct_AS"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13225$as_echo "$ac_ct_AS" >&6; }
13226else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228$as_echo "no" >&6; }
13229fi
13230
13231 if test "x$ac_ct_AS" = x; then
13232 AS="false"
13233 else
13234 case $cross_compiling:$ac_tool_warned in
13235yes:)
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13238ac_tool_warned=yes ;;
13239esac
13240 AS=$ac_ct_AS
13241 fi
13242else
13243 AS="$ac_cv_prog_AS"
13244fi
13245
13246 if test -n "$ac_tool_prefix"; then
13247 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13248set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13250$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013251if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013252 $as_echo_n "(cached) " >&6
13253else
13254 if test -n "$DLLTOOL"; then
13255 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13256else
13257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258for as_dir in $PATH
13259do
13260 IFS=$as_save_IFS
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013264 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 break 2
13267 fi
13268done
13269 done
13270IFS=$as_save_IFS
13271
13272fi
13273fi
13274DLLTOOL=$ac_cv_prog_DLLTOOL
13275if test -n "$DLLTOOL"; then
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13277$as_echo "$DLLTOOL" >&6; }
13278else
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13280$as_echo "no" >&6; }
13281fi
13282
13283
13284fi
13285if test -z "$ac_cv_prog_DLLTOOL"; then
13286 ac_ct_DLLTOOL=$DLLTOOL
13287 # Extract the first word of "dlltool", so it can be a program name with args.
13288set dummy dlltool; ac_word=$2
13289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13290$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013291if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013292 $as_echo_n "(cached) " >&6
13293else
13294 if test -n "$ac_ct_DLLTOOL"; then
13295 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13296else
13297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13298for as_dir in $PATH
13299do
13300 IFS=$as_save_IFS
13301 test -z "$as_dir" && as_dir=.
13302 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013304 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13306 break 2
13307 fi
13308done
13309 done
13310IFS=$as_save_IFS
13311
13312fi
13313fi
13314ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13315if test -n "$ac_ct_DLLTOOL"; then
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13317$as_echo "$ac_ct_DLLTOOL" >&6; }
13318else
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320$as_echo "no" >&6; }
13321fi
13322
13323 if test "x$ac_ct_DLLTOOL" = x; then
13324 DLLTOOL="false"
13325 else
13326 case $cross_compiling:$ac_tool_warned in
13327yes:)
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13330ac_tool_warned=yes ;;
13331esac
13332 DLLTOOL=$ac_ct_DLLTOOL
13333 fi
13334else
13335 DLLTOOL="$ac_cv_prog_DLLTOOL"
13336fi
13337
13338 if test -n "$ac_tool_prefix"; then
13339 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13340set dummy ${ac_tool_prefix}objdump; ac_word=$2
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013343if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013344 $as_echo_n "(cached) " >&6
13345else
13346 if test -n "$OBJDUMP"; then
13347 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13348else
13349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350for as_dir in $PATH
13351do
13352 IFS=$as_save_IFS
13353 test -z "$as_dir" && as_dir=.
13354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013356 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 break 2
13359 fi
13360done
13361 done
13362IFS=$as_save_IFS
13363
13364fi
13365fi
13366OBJDUMP=$ac_cv_prog_OBJDUMP
13367if test -n "$OBJDUMP"; then
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13369$as_echo "$OBJDUMP" >&6; }
13370else
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372$as_echo "no" >&6; }
13373fi
13374
13375
13376fi
13377if test -z "$ac_cv_prog_OBJDUMP"; then
13378 ac_ct_OBJDUMP=$OBJDUMP
13379 # Extract the first word of "objdump", so it can be a program name with args.
13380set dummy objdump; ac_word=$2
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13382$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013383if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013384 $as_echo_n "(cached) " >&6
13385else
13386 if test -n "$ac_ct_OBJDUMP"; then
13387 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13388else
13389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13390for as_dir in $PATH
13391do
13392 IFS=$as_save_IFS
13393 test -z "$as_dir" && as_dir=.
13394 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013396 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13398 break 2
13399 fi
13400done
13401 done
13402IFS=$as_save_IFS
13403
13404fi
13405fi
13406ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13407if test -n "$ac_ct_OBJDUMP"; then
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13409$as_echo "$ac_ct_OBJDUMP" >&6; }
13410else
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412$as_echo "no" >&6; }
13413fi
13414
13415 if test "x$ac_ct_OBJDUMP" = x; then
13416 OBJDUMP="false"
13417 else
13418 case $cross_compiling:$ac_tool_warned in
13419yes:)
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13422ac_tool_warned=yes ;;
13423esac
13424 OBJDUMP=$ac_ct_OBJDUMP
13425 fi
13426else
13427 OBJDUMP="$ac_cv_prog_OBJDUMP"
13428fi
13429
13430 ;;
13431esac
13432
13433test -z "$AS" && AS=as
13434
13435
13436
13437
13438
13439test -z "$DLLTOOL" && DLLTOOL=dlltool
13440
13441
13442
13443
13444
13445test -z "$OBJDUMP" && OBJDUMP=objdump
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455 # Check whether --enable-shared was given.
13456if test "${enable_shared+set}" = set; then :
13457 enableval=$enable_shared; p=${PACKAGE-default}
13458 case $enableval in
13459 yes) enable_shared=yes ;;
13460 no) enable_shared=no ;;
13461 *)
13462 enable_shared=no
13463 # Look at the argument we got. We use all the common list separators.
13464 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13465 for pkg in $enableval; do
13466 IFS="$lt_save_ifs"
13467 if test "X$pkg" = "X$p"; then
13468 enable_shared=yes
13469 fi
13470 done
13471 IFS="$lt_save_ifs"
13472 ;;
13473 esac
13474else
13475 enable_shared=yes
13476fi
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486 # Check whether --enable-static was given.
13487if test "${enable_static+set}" = set; then :
13488 enableval=$enable_static; p=${PACKAGE-default}
13489 case $enableval in
13490 yes) enable_static=yes ;;
13491 no) enable_static=no ;;
13492 *)
13493 enable_static=no
13494 # Look at the argument we got. We use all the common list separators.
13495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13496 for pkg in $enableval; do
13497 IFS="$lt_save_ifs"
13498 if test "X$pkg" = "X$p"; then
13499 enable_static=yes
13500 fi
13501 done
13502 IFS="$lt_save_ifs"
13503 ;;
13504 esac
13505else
13506 enable_static=yes
13507fi
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518# Check whether --with-pic was given.
13519if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013520 withval=$with_pic; lt_p=${PACKAGE-default}
13521 case $withval in
13522 yes|no) pic_mode=$withval ;;
13523 *)
13524 pic_mode=default
13525 # Look at the argument we got. We use all the common list separators.
13526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13527 for lt_pkg in $withval; do
13528 IFS="$lt_save_ifs"
13529 if test "X$lt_pkg" = "X$lt_p"; then
13530 pic_mode=yes
13531 fi
13532 done
13533 IFS="$lt_save_ifs"
13534 ;;
13535 esac
cristy73bd4a52010-10-05 11:24:23 +000013536else
13537 pic_mode=default
13538fi
13539
13540
13541test -z "$pic_mode" && pic_mode=default
13542
13543
13544
13545
13546
13547
13548
13549 # Check whether --enable-fast-install was given.
13550if test "${enable_fast_install+set}" = set; then :
13551 enableval=$enable_fast_install; p=${PACKAGE-default}
13552 case $enableval in
13553 yes) enable_fast_install=yes ;;
13554 no) enable_fast_install=no ;;
13555 *)
13556 enable_fast_install=no
13557 # Look at the argument we got. We use all the common list separators.
13558 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13559 for pkg in $enableval; do
13560 IFS="$lt_save_ifs"
13561 if test "X$pkg" = "X$p"; then
13562 enable_fast_install=yes
13563 fi
13564 done
13565 IFS="$lt_save_ifs"
13566 ;;
13567 esac
13568else
13569 enable_fast_install=yes
13570fi
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582# This can be used to rebuild libtool when needed
13583LIBTOOL_DEPS="$ltmain"
13584
13585# Always use our own libtool.
13586LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
cristy0c60a692010-11-04 01:09:47 +000013612
cristy99bd5232011-12-07 14:38:20 +000013613
13614
13615
13616
cristy73bd4a52010-10-05 11:24:23 +000013617test -z "$LN_S" && LN_S="ln -s"
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632if test -n "${ZSH_VERSION+set}" ; then
13633 setopt NO_GLOB_SUBST
13634fi
13635
13636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13637$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013638if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013639 $as_echo_n "(cached) " >&6
13640else
13641 rm -f .libs 2>/dev/null
13642mkdir .libs 2>/dev/null
13643if test -d .libs; then
13644 lt_cv_objdir=.libs
13645else
13646 # MS-DOS does not allow filenames that begin with a dot.
13647 lt_cv_objdir=_libs
13648fi
13649rmdir .libs 2>/dev/null
13650fi
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13652$as_echo "$lt_cv_objdir" >&6; }
13653objdir=$lt_cv_objdir
13654
13655
13656
13657
13658
13659cat >>confdefs.h <<_ACEOF
13660#define LT_OBJDIR "$lt_cv_objdir/"
13661_ACEOF
13662
13663
13664
13665
cristy73bd4a52010-10-05 11:24:23 +000013666case $host_os in
13667aix3*)
13668 # AIX sometimes has problems with the GCC collect2 program. For some
13669 # reason, if we set the COLLECT_NAMES environment variable, the problems
13670 # vanish in a puff of smoke.
13671 if test "X${COLLECT_NAMES+set}" != Xset; then
13672 COLLECT_NAMES=
13673 export COLLECT_NAMES
13674 fi
13675 ;;
13676esac
13677
cristy73bd4a52010-10-05 11:24:23 +000013678# Global variables:
13679ofile=libtool
13680can_build_shared=yes
13681
13682# All known linkers require a `.a' archive for static linking (except MSVC,
13683# which needs '.lib').
13684libext=a
13685
13686with_gnu_ld="$lt_cv_prog_gnu_ld"
13687
13688old_CC="$CC"
13689old_CFLAGS="$CFLAGS"
13690
13691# Set sane defaults for various variables
13692test -z "$CC" && CC=cc
13693test -z "$LTCC" && LTCC=$CC
13694test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13695test -z "$LD" && LD=ld
13696test -z "$ac_objext" && ac_objext=o
13697
13698for cc_temp in $compiler""; do
13699 case $cc_temp in
13700 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13701 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13702 \-*) ;;
13703 *) break;;
13704 esac
13705done
cristy0c60a692010-11-04 01:09:47 +000013706cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013707
13708
13709# Only perform the check for file, if the check method requires it
13710test -z "$MAGIC_CMD" && MAGIC_CMD=file
13711case $deplibs_check_method in
13712file_magic*)
13713 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13715$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013716if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013717 $as_echo_n "(cached) " >&6
13718else
13719 case $MAGIC_CMD in
13720[\\/*] | ?:[\\/]*)
13721 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13722 ;;
13723*)
13724 lt_save_MAGIC_CMD="$MAGIC_CMD"
13725 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13726 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13727 for ac_dir in $ac_dummy; do
13728 IFS="$lt_save_ifs"
13729 test -z "$ac_dir" && ac_dir=.
13730 if test -f $ac_dir/${ac_tool_prefix}file; then
13731 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13732 if test -n "$file_magic_test_file"; then
13733 case $deplibs_check_method in
13734 "file_magic "*)
13735 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13737 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13738 $EGREP "$file_magic_regex" > /dev/null; then
13739 :
13740 else
13741 cat <<_LT_EOF 1>&2
13742
13743*** Warning: the command libtool uses to detect shared libraries,
13744*** $file_magic_cmd, produces output that libtool cannot recognize.
13745*** The result is that libtool may fail to recognize shared libraries
13746*** as such. This will affect the creation of libtool libraries that
13747*** depend on shared libraries, but programs linked with such libtool
13748*** libraries will work regardless of this problem. Nevertheless, you
13749*** may want to report the problem to your system manager and/or to
13750*** bug-libtool@gnu.org
13751
13752_LT_EOF
13753 fi ;;
13754 esac
13755 fi
13756 break
13757 fi
13758 done
13759 IFS="$lt_save_ifs"
13760 MAGIC_CMD="$lt_save_MAGIC_CMD"
13761 ;;
13762esac
13763fi
13764
13765MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13766if test -n "$MAGIC_CMD"; then
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13768$as_echo "$MAGIC_CMD" >&6; }
13769else
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771$as_echo "no" >&6; }
13772fi
13773
13774
13775
13776
13777
13778if test -z "$lt_cv_path_MAGIC_CMD"; then
13779 if test -n "$ac_tool_prefix"; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13781$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013782if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013783 $as_echo_n "(cached) " >&6
13784else
13785 case $MAGIC_CMD in
13786[\\/*] | ?:[\\/]*)
13787 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13788 ;;
13789*)
13790 lt_save_MAGIC_CMD="$MAGIC_CMD"
13791 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13792 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13793 for ac_dir in $ac_dummy; do
13794 IFS="$lt_save_ifs"
13795 test -z "$ac_dir" && ac_dir=.
13796 if test -f $ac_dir/file; then
13797 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13798 if test -n "$file_magic_test_file"; then
13799 case $deplibs_check_method in
13800 "file_magic "*)
13801 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13802 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13803 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13804 $EGREP "$file_magic_regex" > /dev/null; then
13805 :
13806 else
13807 cat <<_LT_EOF 1>&2
13808
13809*** Warning: the command libtool uses to detect shared libraries,
13810*** $file_magic_cmd, produces output that libtool cannot recognize.
13811*** The result is that libtool may fail to recognize shared libraries
13812*** as such. This will affect the creation of libtool libraries that
13813*** depend on shared libraries, but programs linked with such libtool
13814*** libraries will work regardless of this problem. Nevertheless, you
13815*** may want to report the problem to your system manager and/or to
13816*** bug-libtool@gnu.org
13817
13818_LT_EOF
13819 fi ;;
13820 esac
13821 fi
13822 break
13823 fi
13824 done
13825 IFS="$lt_save_ifs"
13826 MAGIC_CMD="$lt_save_MAGIC_CMD"
13827 ;;
13828esac
13829fi
13830
13831MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13832if test -n "$MAGIC_CMD"; then
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13834$as_echo "$MAGIC_CMD" >&6; }
13835else
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837$as_echo "no" >&6; }
13838fi
13839
13840
13841 else
13842 MAGIC_CMD=:
13843 fi
13844fi
13845
13846 fi
13847 ;;
13848esac
13849
13850# Use C for the default configuration in the libtool script
13851
13852lt_save_CC="$CC"
13853ac_ext=c
13854ac_cpp='$CPP $CPPFLAGS'
13855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13857ac_compiler_gnu=$ac_cv_c_compiler_gnu
13858
13859
13860# Source file extension for C test sources.
13861ac_ext=c
13862
13863# Object file extension for compiled C test sources.
13864objext=o
13865objext=$objext
13866
13867# Code to be used in simple compile tests
13868lt_simple_compile_test_code="int some_variable = 0;"
13869
13870# Code to be used in simple link tests
13871lt_simple_link_test_code='int main(){return(0);}'
13872
13873
13874
13875
13876
13877
13878
13879# If no C compiler was specified, use CC.
13880LTCC=${LTCC-"$CC"}
13881
13882# If no C compiler flags were specified, use CFLAGS.
13883LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13884
13885# Allow CC to be a program name with arguments.
13886compiler=$CC
13887
13888# Save the default compiler, since it gets overwritten when the other
13889# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13890compiler_DEFAULT=$CC
13891
13892# save warnings/boilerplate of simple test code
13893ac_outfile=conftest.$ac_objext
13894echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13895eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13896_lt_compiler_boilerplate=`cat conftest.err`
13897$RM conftest*
13898
13899ac_outfile=conftest.$ac_objext
13900echo "$lt_simple_link_test_code" >conftest.$ac_ext
13901eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13902_lt_linker_boilerplate=`cat conftest.err`
13903$RM -r conftest*
13904
13905
13906## CAVEAT EMPTOR:
13907## There is no encapsulation within the following macros, do not change
13908## the running order or otherwise move them around unless you know exactly
13909## what you are doing...
13910if test -n "$compiler"; then
13911
13912lt_prog_compiler_no_builtin_flag=
13913
13914if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013915 case $cc_basename in
13916 nvcc*)
13917 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13918 *)
13919 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13920 esac
cristy73bd4a52010-10-05 11:24:23 +000013921
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13923$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013924if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013925 $as_echo_n "(cached) " >&6
13926else
13927 lt_cv_prog_compiler_rtti_exceptions=no
13928 ac_outfile=conftest.$ac_objext
13929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13930 lt_compiler_flag="-fno-rtti -fno-exceptions"
13931 # Insert the option either (1) after the last *FLAGS variable, or
13932 # (2) before a word containing "conftest.", or (3) at the end.
13933 # Note that $ac_compile itself does not contain backslashes and begins
13934 # with a dollar sign (not a hyphen), so the echo should work correctly.
13935 # The option is referenced via a variable to avoid confusing sed.
13936 lt_compile=`echo "$ac_compile" | $SED \
13937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13939 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013941 (eval "$lt_compile" 2>conftest.err)
13942 ac_status=$?
13943 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013945 if (exit $ac_status) && test -s "$ac_outfile"; then
13946 # The compiler can only warn and ignore the option if not recognized
13947 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013948 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13950 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13951 lt_cv_prog_compiler_rtti_exceptions=yes
13952 fi
13953 fi
13954 $RM conftest*
13955
13956fi
13957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13958$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13959
13960if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13961 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13962else
13963 :
13964fi
13965
13966fi
13967
13968
13969
13970
13971
13972
13973 lt_prog_compiler_wl=
13974lt_prog_compiler_pic=
13975lt_prog_compiler_static=
13976
cristy73bd4a52010-10-05 11:24:23 +000013977
13978 if test "$GCC" = yes; then
13979 lt_prog_compiler_wl='-Wl,'
13980 lt_prog_compiler_static='-static'
13981
13982 case $host_os in
13983 aix*)
13984 # All AIX code is PIC.
13985 if test "$host_cpu" = ia64; then
13986 # AIX 5 now supports IA64 processor
13987 lt_prog_compiler_static='-Bstatic'
13988 fi
13989 ;;
13990
13991 amigaos*)
13992 case $host_cpu in
13993 powerpc)
13994 # see comment about AmigaOS4 .so support
13995 lt_prog_compiler_pic='-fPIC'
13996 ;;
13997 m68k)
13998 # FIXME: we need at least 68020 code to build shared libraries, but
13999 # adding the `-m68020' flag to GCC prevents building anything better,
14000 # like `-m68040'.
14001 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14002 ;;
14003 esac
14004 ;;
14005
14006 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14007 # PIC is the default for these OSes.
14008 ;;
14009
14010 mingw* | cygwin* | pw32* | os2* | cegcc*)
14011 # This hack is so that the source file can tell whether it is being
14012 # built for inclusion in a dll (and should export symbols for example).
14013 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14014 # (--disable-auto-import) libraries
14015 lt_prog_compiler_pic='-DDLL_EXPORT'
14016 ;;
14017
14018 darwin* | rhapsody*)
14019 # PIC is the default on this platform
14020 # Common symbols not allowed in MH_DYLIB files
14021 lt_prog_compiler_pic='-fno-common'
14022 ;;
14023
cristy0c60a692010-11-04 01:09:47 +000014024 haiku*)
14025 # PIC is the default for Haiku.
14026 # The "-static" flag exists, but is broken.
14027 lt_prog_compiler_static=
14028 ;;
14029
cristy73bd4a52010-10-05 11:24:23 +000014030 hpux*)
14031 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14032 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14033 # sets the default TLS model and affects inlining.
14034 case $host_cpu in
14035 hppa*64*)
14036 # +Z the default
14037 ;;
14038 *)
14039 lt_prog_compiler_pic='-fPIC'
14040 ;;
14041 esac
14042 ;;
14043
14044 interix[3-9]*)
14045 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14046 # Instead, we relocate shared libraries at runtime.
14047 ;;
14048
14049 msdosdjgpp*)
14050 # Just because we use GCC doesn't mean we suddenly get shared libraries
14051 # on systems that don't support them.
14052 lt_prog_compiler_can_build_shared=no
14053 enable_shared=no
14054 ;;
14055
14056 *nto* | *qnx*)
14057 # QNX uses GNU C++, but need to define -shared option too, otherwise
14058 # it will coredump.
14059 lt_prog_compiler_pic='-fPIC -shared'
14060 ;;
14061
14062 sysv4*MP*)
14063 if test -d /usr/nec; then
14064 lt_prog_compiler_pic=-Kconform_pic
14065 fi
14066 ;;
14067
14068 *)
14069 lt_prog_compiler_pic='-fPIC'
14070 ;;
14071 esac
cristy0c60a692010-11-04 01:09:47 +000014072
14073 case $cc_basename in
14074 nvcc*) # Cuda Compiler Driver 2.2
14075 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014076 if test -n "$lt_prog_compiler_pic"; then
14077 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14078 fi
cristy0c60a692010-11-04 01:09:47 +000014079 ;;
14080 esac
cristy73bd4a52010-10-05 11:24:23 +000014081 else
14082 # PORTME Check for flag to pass linker flags through the system compiler.
14083 case $host_os in
14084 aix*)
14085 lt_prog_compiler_wl='-Wl,'
14086 if test "$host_cpu" = ia64; then
14087 # AIX 5 now supports IA64 processor
14088 lt_prog_compiler_static='-Bstatic'
14089 else
14090 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14091 fi
14092 ;;
14093
14094 mingw* | cygwin* | pw32* | os2* | cegcc*)
14095 # This hack is so that the source file can tell whether it is being
14096 # built for inclusion in a dll (and should export symbols for example).
14097 lt_prog_compiler_pic='-DDLL_EXPORT'
14098 ;;
14099
14100 hpux9* | hpux10* | hpux11*)
14101 lt_prog_compiler_wl='-Wl,'
14102 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14103 # not for PA HP-UX.
14104 case $host_cpu in
14105 hppa*64*|ia64*)
14106 # +Z the default
14107 ;;
14108 *)
14109 lt_prog_compiler_pic='+Z'
14110 ;;
14111 esac
14112 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14113 lt_prog_compiler_static='${wl}-a ${wl}archive'
14114 ;;
14115
14116 irix5* | irix6* | nonstopux*)
14117 lt_prog_compiler_wl='-Wl,'
14118 # PIC (with -KPIC) is the default.
14119 lt_prog_compiler_static='-non_shared'
14120 ;;
14121
cristy0c60a692010-11-04 01:09:47 +000014122 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014123 case $cc_basename in
14124 # old Intel for x86_64 which still supported -KPIC.
14125 ecc*)
14126 lt_prog_compiler_wl='-Wl,'
14127 lt_prog_compiler_pic='-KPIC'
14128 lt_prog_compiler_static='-static'
14129 ;;
14130 # icc used to be incompatible with GCC.
14131 # ICC 10 doesn't accept -KPIC any more.
14132 icc* | ifort*)
14133 lt_prog_compiler_wl='-Wl,'
14134 lt_prog_compiler_pic='-fPIC'
14135 lt_prog_compiler_static='-static'
14136 ;;
14137 # Lahey Fortran 8.1.
14138 lf95*)
14139 lt_prog_compiler_wl='-Wl,'
14140 lt_prog_compiler_pic='--shared'
14141 lt_prog_compiler_static='--static'
14142 ;;
cristyda16f162011-02-19 23:52:17 +000014143 nagfor*)
14144 # NAG Fortran compiler
14145 lt_prog_compiler_wl='-Wl,-Wl,,'
14146 lt_prog_compiler_pic='-PIC'
14147 lt_prog_compiler_static='-Bstatic'
14148 ;;
cristy0c60a692010-11-04 01:09:47 +000014149 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014150 # Portland Group compilers (*not* the Pentium gcc compiler,
14151 # which looks to be a dead project)
14152 lt_prog_compiler_wl='-Wl,'
14153 lt_prog_compiler_pic='-fpic'
14154 lt_prog_compiler_static='-Bstatic'
14155 ;;
14156 ccc*)
14157 lt_prog_compiler_wl='-Wl,'
14158 # All Alpha code is PIC.
14159 lt_prog_compiler_static='-non_shared'
14160 ;;
cristy0c60a692010-11-04 01:09:47 +000014161 xl* | bgxl* | bgf* | mpixl*)
14162 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014163 lt_prog_compiler_wl='-Wl,'
14164 lt_prog_compiler_pic='-qpic'
14165 lt_prog_compiler_static='-qstaticlink'
14166 ;;
14167 *)
14168 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014169 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014170 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14171 lt_prog_compiler_pic='-KPIC'
14172 lt_prog_compiler_static='-Bstatic'
14173 lt_prog_compiler_wl=''
14174 ;;
cristy99bd5232011-12-07 14:38:20 +000014175 *Sun\ F* | *Sun*Fortran*)
14176 lt_prog_compiler_pic='-KPIC'
14177 lt_prog_compiler_static='-Bstatic'
14178 lt_prog_compiler_wl='-Qoption ld '
14179 ;;
cristy73bd4a52010-10-05 11:24:23 +000014180 *Sun\ C*)
14181 # Sun C 5.9
14182 lt_prog_compiler_pic='-KPIC'
14183 lt_prog_compiler_static='-Bstatic'
14184 lt_prog_compiler_wl='-Wl,'
14185 ;;
cristy99bd5232011-12-07 14:38:20 +000014186 *Intel*\ [CF]*Compiler*)
14187 lt_prog_compiler_wl='-Wl,'
14188 lt_prog_compiler_pic='-fPIC'
14189 lt_prog_compiler_static='-static'
14190 ;;
14191 *Portland\ Group*)
14192 lt_prog_compiler_wl='-Wl,'
14193 lt_prog_compiler_pic='-fpic'
14194 lt_prog_compiler_static='-Bstatic'
14195 ;;
cristy73bd4a52010-10-05 11:24:23 +000014196 esac
14197 ;;
14198 esac
14199 ;;
14200
14201 newsos6)
14202 lt_prog_compiler_pic='-KPIC'
14203 lt_prog_compiler_static='-Bstatic'
14204 ;;
14205
14206 *nto* | *qnx*)
14207 # QNX uses GNU C++, but need to define -shared option too, otherwise
14208 # it will coredump.
14209 lt_prog_compiler_pic='-fPIC -shared'
14210 ;;
14211
14212 osf3* | osf4* | osf5*)
14213 lt_prog_compiler_wl='-Wl,'
14214 # All OSF/1 code is PIC.
14215 lt_prog_compiler_static='-non_shared'
14216 ;;
14217
14218 rdos*)
14219 lt_prog_compiler_static='-non_shared'
14220 ;;
14221
14222 solaris*)
14223 lt_prog_compiler_pic='-KPIC'
14224 lt_prog_compiler_static='-Bstatic'
14225 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014226 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014227 lt_prog_compiler_wl='-Qoption ld ';;
14228 *)
14229 lt_prog_compiler_wl='-Wl,';;
14230 esac
14231 ;;
14232
14233 sunos4*)
14234 lt_prog_compiler_wl='-Qoption ld '
14235 lt_prog_compiler_pic='-PIC'
14236 lt_prog_compiler_static='-Bstatic'
14237 ;;
14238
14239 sysv4 | sysv4.2uw2* | sysv4.3*)
14240 lt_prog_compiler_wl='-Wl,'
14241 lt_prog_compiler_pic='-KPIC'
14242 lt_prog_compiler_static='-Bstatic'
14243 ;;
14244
14245 sysv4*MP*)
14246 if test -d /usr/nec ;then
14247 lt_prog_compiler_pic='-Kconform_pic'
14248 lt_prog_compiler_static='-Bstatic'
14249 fi
14250 ;;
14251
14252 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14253 lt_prog_compiler_wl='-Wl,'
14254 lt_prog_compiler_pic='-KPIC'
14255 lt_prog_compiler_static='-Bstatic'
14256 ;;
14257
14258 unicos*)
14259 lt_prog_compiler_wl='-Wl,'
14260 lt_prog_compiler_can_build_shared=no
14261 ;;
14262
14263 uts4*)
14264 lt_prog_compiler_pic='-pic'
14265 lt_prog_compiler_static='-Bstatic'
14266 ;;
14267
14268 *)
14269 lt_prog_compiler_can_build_shared=no
14270 ;;
14271 esac
14272 fi
14273
14274case $host_os in
14275 # For platforms which do not support PIC, -DPIC is meaningless:
14276 *djgpp*)
14277 lt_prog_compiler_pic=
14278 ;;
14279 *)
14280 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14281 ;;
14282esac
cristy73bd4a52010-10-05 11:24:23 +000014283
cristyda16f162011-02-19 23:52:17 +000014284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14285$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14286if ${lt_cv_prog_compiler_pic+:} false; then :
14287 $as_echo_n "(cached) " >&6
14288else
14289 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14290fi
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14292$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14293lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014294
14295#
14296# Check to make sure the PIC flag actually works.
14297#
14298if test -n "$lt_prog_compiler_pic"; then
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14300$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014301if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014302 $as_echo_n "(cached) " >&6
14303else
14304 lt_cv_prog_compiler_pic_works=no
14305 ac_outfile=conftest.$ac_objext
14306 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14307 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14308 # Insert the option either (1) after the last *FLAGS variable, or
14309 # (2) before a word containing "conftest.", or (3) at the end.
14310 # Note that $ac_compile itself does not contain backslashes and begins
14311 # with a dollar sign (not a hyphen), so the echo should work correctly.
14312 # The option is referenced via a variable to avoid confusing sed.
14313 lt_compile=`echo "$ac_compile" | $SED \
14314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14316 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014317 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014318 (eval "$lt_compile" 2>conftest.err)
14319 ac_status=$?
14320 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014322 if (exit $ac_status) && test -s "$ac_outfile"; then
14323 # The compiler can only warn and ignore the option if not recognized
14324 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014325 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14327 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14328 lt_cv_prog_compiler_pic_works=yes
14329 fi
14330 fi
14331 $RM conftest*
14332
14333fi
14334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14335$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14336
14337if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14338 case $lt_prog_compiler_pic in
14339 "" | " "*) ;;
14340 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14341 esac
14342else
14343 lt_prog_compiler_pic=
14344 lt_prog_compiler_can_build_shared=no
14345fi
14346
14347fi
14348
14349
14350
14351
14352
14353
cristyda16f162011-02-19 23:52:17 +000014354
14355
14356
14357
14358
cristy73bd4a52010-10-05 11:24:23 +000014359#
14360# Check to make sure the static flag actually works.
14361#
14362wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14364$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014365if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014366 $as_echo_n "(cached) " >&6
14367else
14368 lt_cv_prog_compiler_static_works=no
14369 save_LDFLAGS="$LDFLAGS"
14370 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14371 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14372 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14373 # The linker can only warn and ignore the option if not recognized
14374 # So say no if there are warnings
14375 if test -s conftest.err; then
14376 # Append any errors to the config.log.
14377 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014378 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014379 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14380 if diff conftest.exp conftest.er2 >/dev/null; then
14381 lt_cv_prog_compiler_static_works=yes
14382 fi
14383 else
14384 lt_cv_prog_compiler_static_works=yes
14385 fi
14386 fi
14387 $RM -r conftest*
14388 LDFLAGS="$save_LDFLAGS"
14389
14390fi
14391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14392$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14393
14394if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14395 :
14396else
14397 lt_prog_compiler_static=
14398fi
14399
14400
14401
14402
14403
14404
14405
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14407$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014408if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014409 $as_echo_n "(cached) " >&6
14410else
14411 lt_cv_prog_compiler_c_o=no
14412 $RM -r conftest 2>/dev/null
14413 mkdir conftest
14414 cd conftest
14415 mkdir out
14416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14417
14418 lt_compiler_flag="-o out/conftest2.$ac_objext"
14419 # Insert the option either (1) after the last *FLAGS variable, or
14420 # (2) before a word containing "conftest.", or (3) at the end.
14421 # Note that $ac_compile itself does not contain backslashes and begins
14422 # with a dollar sign (not a hyphen), so the echo should work correctly.
14423 lt_compile=`echo "$ac_compile" | $SED \
14424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14426 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014428 (eval "$lt_compile" 2>out/conftest.err)
14429 ac_status=$?
14430 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014432 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14433 then
14434 # The compiler can only warn and ignore the option if not recognized
14435 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014437 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14438 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14439 lt_cv_prog_compiler_c_o=yes
14440 fi
14441 fi
14442 chmod u+w . 2>&5
14443 $RM conftest*
14444 # SGI C++ compiler will create directory out/ii_files/ for
14445 # template instantiation
14446 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14447 $RM out/* && rmdir out
14448 cd ..
14449 $RM -r conftest
14450 $RM conftest*
14451
14452fi
14453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14454$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14455
14456
14457
14458
14459
14460
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14462$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014463if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014464 $as_echo_n "(cached) " >&6
14465else
14466 lt_cv_prog_compiler_c_o=no
14467 $RM -r conftest 2>/dev/null
14468 mkdir conftest
14469 cd conftest
14470 mkdir out
14471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14472
14473 lt_compiler_flag="-o out/conftest2.$ac_objext"
14474 # Insert the option either (1) after the last *FLAGS variable, or
14475 # (2) before a word containing "conftest.", or (3) at the end.
14476 # Note that $ac_compile itself does not contain backslashes and begins
14477 # with a dollar sign (not a hyphen), so the echo should work correctly.
14478 lt_compile=`echo "$ac_compile" | $SED \
14479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14481 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014483 (eval "$lt_compile" 2>out/conftest.err)
14484 ac_status=$?
14485 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014487 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14488 then
14489 # The compiler can only warn and ignore the option if not recognized
14490 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014492 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14493 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14494 lt_cv_prog_compiler_c_o=yes
14495 fi
14496 fi
14497 chmod u+w . 2>&5
14498 $RM conftest*
14499 # SGI C++ compiler will create directory out/ii_files/ for
14500 # template instantiation
14501 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14502 $RM out/* && rmdir out
14503 cd ..
14504 $RM -r conftest
14505 $RM conftest*
14506
14507fi
14508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14509$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14510
14511
14512
14513
14514hard_links="nottested"
14515if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14516 # do not overwrite the value of need_locks provided by the user
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14518$as_echo_n "checking if we can lock with hard links... " >&6; }
14519 hard_links=yes
14520 $RM conftest*
14521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14522 touch conftest.a
14523 ln conftest.a conftest.b 2>&5 || hard_links=no
14524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14526$as_echo "$hard_links" >&6; }
14527 if test "$hard_links" = no; then
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14529$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14530 need_locks=warn
14531 fi
14532else
14533 need_locks=no
14534fi
14535
14536
14537
14538
14539
14540
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14542$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14543
14544 runpath_var=
14545 allow_undefined_flag=
14546 always_export_symbols=no
14547 archive_cmds=
14548 archive_expsym_cmds=
14549 compiler_needs_object=no
14550 enable_shared_with_static_runtimes=no
14551 export_dynamic_flag_spec=
14552 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14553 hardcode_automatic=no
14554 hardcode_direct=no
14555 hardcode_direct_absolute=no
14556 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014557 hardcode_libdir_separator=
14558 hardcode_minus_L=no
14559 hardcode_shlibpath_var=unsupported
14560 inherit_rpath=no
14561 link_all_deplibs=unknown
14562 module_cmds=
14563 module_expsym_cmds=
14564 old_archive_from_new_cmds=
14565 old_archive_from_expsyms_cmds=
14566 thread_safe_flag_spec=
14567 whole_archive_flag_spec=
14568 # include_expsyms should be a list of space-separated symbols to be *always*
14569 # included in the symbol list
14570 include_expsyms=
14571 # exclude_expsyms can be an extended regexp of symbols to exclude
14572 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14573 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14574 # as well as any symbol that contains `d'.
14575 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14576 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14577 # platforms (ab)use it in PIC code, but their linkers get confused if
14578 # the symbol is explicitly referenced. Since portable code cannot
14579 # rely on this symbol name, it's probably fine to never include it in
14580 # preloaded symbol tables.
14581 # Exclude shared library initialization/finalization symbols.
14582 extract_expsyms_cmds=
14583
14584 case $host_os in
14585 cygwin* | mingw* | pw32* | cegcc*)
14586 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14587 # When not using gcc, we currently assume that we are using
14588 # Microsoft Visual C++.
14589 if test "$GCC" != yes; then
14590 with_gnu_ld=no
14591 fi
14592 ;;
14593 interix*)
14594 # we just hope/assume this is gcc and not c89 (= MSVC++)
14595 with_gnu_ld=yes
14596 ;;
14597 openbsd*)
14598 with_gnu_ld=no
14599 ;;
14600 esac
14601
14602 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014603
14604 # On some targets, GNU ld is compatible enough with the native linker
14605 # that we're better off using the native interface for both.
14606 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014607 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014608 case $host_os in
14609 aix*)
14610 # The AIX port of GNU ld has always aspired to compatibility
14611 # with the native linker. However, as the warning in the GNU ld
14612 # block says, versions before 2.19.5* couldn't really create working
14613 # shared libraries, regardless of the interface used.
14614 case `$LD -v 2>&1` in
14615 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14616 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14617 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14618 *)
14619 lt_use_gnu_ld_interface=yes
14620 ;;
14621 esac
14622 ;;
14623 *)
14624 lt_use_gnu_ld_interface=yes
14625 ;;
14626 esac
14627 fi
14628
14629 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014630 # If archive_cmds runs LD, not CC, wlarc should be empty
14631 wlarc='${wl}'
14632
14633 # Set some defaults for GNU ld with shared library support. These
14634 # are reset later if shared libraries are not supported. Putting them
14635 # here allows them to be overridden if necessary.
14636 runpath_var=LD_RUN_PATH
14637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14638 export_dynamic_flag_spec='${wl}--export-dynamic'
14639 # ancient GNU ld didn't support --whole-archive et. al.
14640 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14641 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14642 else
14643 whole_archive_flag_spec=
14644 fi
14645 supports_anon_versioning=no
14646 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014647 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014648 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14649 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14650 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14651 *\ 2.11.*) ;; # other 2.11 versions
14652 *) supports_anon_versioning=yes ;;
14653 esac
14654
14655 # See if GNU ld supports shared libraries.
14656 case $host_os in
14657 aix[3-9]*)
14658 # On AIX/PPC, the GNU linker is very broken
14659 if test "$host_cpu" != ia64; then
14660 ld_shlibs=no
14661 cat <<_LT_EOF 1>&2
14662
cristy0c60a692010-11-04 01:09:47 +000014663*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014664*** to be unable to reliably create shared libraries on AIX.
14665*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014666*** really care for shared libraries, you may want to install binutils
14667*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14668*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014669
14670_LT_EOF
14671 fi
14672 ;;
14673
14674 amigaos*)
14675 case $host_cpu in
14676 powerpc)
14677 # see comment about AmigaOS4 .so support
14678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14679 archive_expsym_cmds=''
14680 ;;
14681 m68k)
14682 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)'
14683 hardcode_libdir_flag_spec='-L$libdir'
14684 hardcode_minus_L=yes
14685 ;;
14686 esac
14687 ;;
14688
14689 beos*)
14690 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14691 allow_undefined_flag=unsupported
14692 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14693 # support --undefined. This deserves some investigation. FIXME
14694 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14695 else
14696 ld_shlibs=no
14697 fi
14698 ;;
14699
14700 cygwin* | mingw* | pw32* | cegcc*)
14701 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14702 # as there is no search path for DLLs.
14703 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014704 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014705 allow_undefined_flag=unsupported
14706 always_export_symbols=no
14707 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014708 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'
14709 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 +000014710
14711 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14713 # If the export-symbols file already is a .def file (1st line
14714 # is EXPORTS), use it as is; otherwise, prepend...
14715 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14716 cp $export_symbols $output_objdir/$soname.def;
14717 else
14718 echo EXPORTS > $output_objdir/$soname.def;
14719 cat $export_symbols >> $output_objdir/$soname.def;
14720 fi~
14721 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14722 else
14723 ld_shlibs=no
14724 fi
14725 ;;
14726
cristy0c60a692010-11-04 01:09:47 +000014727 haiku*)
14728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14729 link_all_deplibs=yes
14730 ;;
14731
cristy73bd4a52010-10-05 11:24:23 +000014732 interix[3-9]*)
14733 hardcode_direct=no
14734 hardcode_shlibpath_var=no
14735 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14736 export_dynamic_flag_spec='${wl}-E'
14737 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14738 # Instead, shared libraries are loaded at an image base (0x10000000 by
14739 # default) and relocated if they conflict, which is a slow very memory
14740 # consuming and fragmenting process. To avoid this, we pick a random,
14741 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14742 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14743 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14744 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'
14745 ;;
14746
cristy0c60a692010-11-04 01:09:47 +000014747 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014748 tmp_diet=no
14749 if test "$host_os" = linux-dietlibc; then
14750 case $cc_basename in
14751 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14752 esac
14753 fi
14754 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14755 && test "$tmp_diet" = no
14756 then
cristyda16f162011-02-19 23:52:17 +000014757 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014758 tmp_sharedflag='-shared'
14759 case $cc_basename,$host_cpu in
14760 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014761 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 +000014762 tmp_addflag=' $pic_flag'
14763 ;;
cristy0c60a692010-11-04 01:09:47 +000014764 pgf77* | pgf90* | pgf95* | pgfortran*)
14765 # Portland Group f77 and f90 compilers
14766 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 +000014767 tmp_addflag=' $pic_flag -Mnomain' ;;
14768 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14769 tmp_addflag=' -i_dynamic' ;;
14770 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14771 tmp_addflag=' -i_dynamic -nofor_main' ;;
14772 ifc* | ifort*) # Intel Fortran compiler
14773 tmp_addflag=' -nofor_main' ;;
14774 lf95*) # Lahey Fortran 8.1
14775 whole_archive_flag_spec=
14776 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014777 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014778 tmp_sharedflag='-qmkshrobj'
14779 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014780 nvcc*) # Cuda Compiler Driver 2.2
14781 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'
14782 compiler_needs_object=yes
14783 ;;
cristy73bd4a52010-10-05 11:24:23 +000014784 esac
14785 case `$CC -V 2>&1 | sed 5q` in
14786 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014787 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 +000014788 compiler_needs_object=yes
14789 tmp_sharedflag='-G' ;;
14790 *Sun\ F*) # Sun Fortran 8.3
14791 tmp_sharedflag='-G' ;;
14792 esac
14793 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14794
14795 if test "x$supports_anon_versioning" = xyes; then
14796 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14798 echo "local: *; };" >> $output_objdir/$libname.ver~
14799 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14800 fi
14801
14802 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014803 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014804 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14805 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014807 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014808 if test "x$supports_anon_versioning" = xyes; then
14809 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14810 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14811 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014812 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014813 fi
14814 ;;
14815 esac
14816 else
14817 ld_shlibs=no
14818 fi
14819 ;;
14820
14821 netbsd*)
14822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14823 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14824 wlarc=
14825 else
cristyda16f162011-02-19 23:52:17 +000014826 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14827 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 +000014828 fi
14829 ;;
14830
14831 solaris*)
14832 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14833 ld_shlibs=no
14834 cat <<_LT_EOF 1>&2
14835
14836*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14837*** create shared libraries on Solaris systems. Therefore, libtool
14838*** is disabling shared libraries support. We urge you to upgrade GNU
14839*** binutils to release 2.9.1 or newer. Another option is to modify
14840*** your PATH or compiler configuration so that the native linker is
14841*** used, and then restart.
14842
14843_LT_EOF
14844 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014845 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14846 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 +000014847 else
14848 ld_shlibs=no
14849 fi
14850 ;;
14851
14852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14853 case `$LD -v 2>&1` in
14854 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14855 ld_shlibs=no
14856 cat <<_LT_EOF 1>&2
14857
14858*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14859*** reliably create shared libraries on SCO systems. Therefore, libtool
14860*** is disabling shared libraries support. We urge you to upgrade GNU
14861*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14862*** your PATH or compiler configuration so that the native linker is
14863*** used, and then restart.
14864
14865_LT_EOF
14866 ;;
14867 *)
14868 # For security reasons, it is highly recommended that you always
14869 # use absolute paths for naming shared libraries, and exclude the
14870 # DT_RUNPATH tag from executables and libraries. But doing so
14871 # requires that you compile everything twice, which is a pain.
14872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14875 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14876 else
14877 ld_shlibs=no
14878 fi
14879 ;;
14880 esac
14881 ;;
14882
14883 sunos4*)
14884 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14885 wlarc=
14886 hardcode_direct=yes
14887 hardcode_shlibpath_var=no
14888 ;;
14889
14890 *)
14891 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014892 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14893 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 +000014894 else
14895 ld_shlibs=no
14896 fi
14897 ;;
14898 esac
14899
14900 if test "$ld_shlibs" = no; then
14901 runpath_var=
14902 hardcode_libdir_flag_spec=
14903 export_dynamic_flag_spec=
14904 whole_archive_flag_spec=
14905 fi
14906 else
14907 # PORTME fill in a description of your system's linker (not GNU ld)
14908 case $host_os in
14909 aix3*)
14910 allow_undefined_flag=unsupported
14911 always_export_symbols=yes
14912 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'
14913 # Note: this linker hardcodes the directories in LIBPATH if there
14914 # are no directories specified by -L.
14915 hardcode_minus_L=yes
14916 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14917 # Neither direct hardcoding nor static linking is supported with a
14918 # broken collect2.
14919 hardcode_direct=unsupported
14920 fi
14921 ;;
14922
14923 aix[4-9]*)
14924 if test "$host_cpu" = ia64; then
14925 # On IA64, the linker does run time linking by default, so we don't
14926 # have to do anything special.
14927 aix_use_runtimelinking=no
14928 exp_sym_flag='-Bexport'
14929 no_entry_flag=""
14930 else
14931 # If we're using GNU nm, then we don't want the "-C" option.
14932 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014933 # Also, AIX nm treats weak defined symbols like other global
14934 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014935 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014936 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 +000014937 else
14938 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'
14939 fi
14940 aix_use_runtimelinking=no
14941
14942 # Test if we are trying to use run time linking or normal
14943 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14944 # need to do runtime linking.
14945 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14946 for ld_flag in $LDFLAGS; do
14947 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14948 aix_use_runtimelinking=yes
14949 break
14950 fi
14951 done
14952 ;;
14953 esac
14954
14955 exp_sym_flag='-bexport'
14956 no_entry_flag='-bnoentry'
14957 fi
14958
14959 # When large executables or shared objects are built, AIX ld can
14960 # have problems creating the table of contents. If linking a library
14961 # or program results in "error TOC overflow" add -mminimal-toc to
14962 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14963 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14964
14965 archive_cmds=''
14966 hardcode_direct=yes
14967 hardcode_direct_absolute=yes
14968 hardcode_libdir_separator=':'
14969 link_all_deplibs=yes
14970 file_list_spec='${wl}-f,'
14971
14972 if test "$GCC" = yes; then
14973 case $host_os in aix4.[012]|aix4.[012].*)
14974 # We only want to do this on AIX 4.2 and lower, the check
14975 # below for broken collect2 doesn't work under 4.3+
14976 collect2name=`${CC} -print-prog-name=collect2`
14977 if test -f "$collect2name" &&
14978 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14979 then
14980 # We have reworked collect2
14981 :
14982 else
14983 # We have old collect2
14984 hardcode_direct=unsupported
14985 # It fails to find uninstalled libraries when the uninstalled
14986 # path is not listed in the libpath. Setting hardcode_minus_L
14987 # to unsupported forces relinking
14988 hardcode_minus_L=yes
14989 hardcode_libdir_flag_spec='-L$libdir'
14990 hardcode_libdir_separator=
14991 fi
14992 ;;
14993 esac
14994 shared_flag='-shared'
14995 if test "$aix_use_runtimelinking" = yes; then
14996 shared_flag="$shared_flag "'${wl}-G'
14997 fi
14998 else
14999 # not using gcc
15000 if test "$host_cpu" = ia64; then
15001 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15002 # chokes on -Wl,-G. The following line is correct:
15003 shared_flag='-G'
15004 else
15005 if test "$aix_use_runtimelinking" = yes; then
15006 shared_flag='${wl}-G'
15007 else
15008 shared_flag='${wl}-bM:SRE'
15009 fi
15010 fi
15011 fi
15012
15013 export_dynamic_flag_spec='${wl}-bexpall'
15014 # It seems that -bexpall does not export symbols beginning with
15015 # underscore (_), so it is better to generate a list of symbols to export.
15016 always_export_symbols=yes
15017 if test "$aix_use_runtimelinking" = yes; then
15018 # Warning - without using the other runtime loading flags (-brtl),
15019 # -berok will link without error, but may produce a broken library.
15020 allow_undefined_flag='-berok'
15021 # Determine the default libpath from the value encoded in an
15022 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015023 if test "${lt_cv_aix_libpath+set}" = set; then
15024 aix_libpath=$lt_cv_aix_libpath
15025else
15026 if ${lt_cv_aix_libpath_+:} false; then :
15027 $as_echo_n "(cached) " >&6
15028else
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015030/* end confdefs.h. */
15031
15032int
15033main ()
15034{
15035
15036 ;
15037 return 0;
15038}
15039_ACEOF
15040if ac_fn_c_try_link "$LINENO"; then :
15041
cristyda16f162011-02-19 23:52:17 +000015042 lt_aix_libpath_sed='
15043 /Import File Strings/,/^$/ {
15044 /^0/ {
15045 s/^0 *\([^ ]*\) *$/\1/
15046 p
15047 }
15048 }'
15049 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15050 # Check for a 64-bit object if we didn't find anything.
15051 if test -z "$lt_cv_aix_libpath_"; then
15052 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15053 fi
cristy73bd4a52010-10-05 11:24:23 +000015054fi
15055rm -f core conftest.err conftest.$ac_objext \
15056 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015057 if test -z "$lt_cv_aix_libpath_"; then
15058 lt_cv_aix_libpath_="/usr/lib:/lib"
15059 fi
15060
15061fi
15062
15063 aix_libpath=$lt_cv_aix_libpath_
15064fi
cristy73bd4a52010-10-05 11:24:23 +000015065
15066 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015067 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 +000015068 else
15069 if test "$host_cpu" = ia64; then
15070 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15071 allow_undefined_flag="-z nodefs"
15072 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"
15073 else
15074 # Determine the default libpath from the value encoded in an
15075 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015076 if test "${lt_cv_aix_libpath+set}" = set; then
15077 aix_libpath=$lt_cv_aix_libpath
15078else
15079 if ${lt_cv_aix_libpath_+:} false; then :
15080 $as_echo_n "(cached) " >&6
15081else
15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015083/* end confdefs.h. */
15084
15085int
15086main ()
15087{
15088
15089 ;
15090 return 0;
15091}
15092_ACEOF
15093if ac_fn_c_try_link "$LINENO"; then :
15094
cristyda16f162011-02-19 23:52:17 +000015095 lt_aix_libpath_sed='
15096 /Import File Strings/,/^$/ {
15097 /^0/ {
15098 s/^0 *\([^ ]*\) *$/\1/
15099 p
15100 }
15101 }'
15102 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15103 # Check for a 64-bit object if we didn't find anything.
15104 if test -z "$lt_cv_aix_libpath_"; then
15105 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15106 fi
cristy73bd4a52010-10-05 11:24:23 +000015107fi
15108rm -f core conftest.err conftest.$ac_objext \
15109 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015110 if test -z "$lt_cv_aix_libpath_"; then
15111 lt_cv_aix_libpath_="/usr/lib:/lib"
15112 fi
15113
15114fi
15115
15116 aix_libpath=$lt_cv_aix_libpath_
15117fi
cristy73bd4a52010-10-05 11:24:23 +000015118
15119 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15120 # Warning - without using the other run time loading flags,
15121 # -berok will link without error, but may produce a broken library.
15122 no_undefined_flag=' ${wl}-bernotok'
15123 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015124 if test "$with_gnu_ld" = yes; then
15125 # We only use this code for GNU lds that support --whole-archive.
15126 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15127 else
15128 # Exported symbols can be pulled into shared objects from archives
15129 whole_archive_flag_spec='$convenience'
15130 fi
cristy73bd4a52010-10-05 11:24:23 +000015131 archive_cmds_need_lc=yes
15132 # This is similar to how AIX traditionally builds its shared libraries.
15133 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'
15134 fi
15135 fi
15136 ;;
15137
15138 amigaos*)
15139 case $host_cpu in
15140 powerpc)
15141 # see comment about AmigaOS4 .so support
15142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15143 archive_expsym_cmds=''
15144 ;;
15145 m68k)
15146 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)'
15147 hardcode_libdir_flag_spec='-L$libdir'
15148 hardcode_minus_L=yes
15149 ;;
15150 esac
15151 ;;
15152
15153 bsdi[45]*)
15154 export_dynamic_flag_spec=-rdynamic
15155 ;;
15156
15157 cygwin* | mingw* | pw32* | cegcc*)
15158 # When not using gcc, we currently assume that we are using
15159 # Microsoft Visual C++.
15160 # hardcode_libdir_flag_spec is actually meaningless, as there is
15161 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015162 case $cc_basename in
15163 cl*)
15164 # Native MSVC
15165 hardcode_libdir_flag_spec=' '
15166 allow_undefined_flag=unsupported
15167 always_export_symbols=yes
15168 file_list_spec='@'
15169 # Tell ltmain to make .lib files, not .a files.
15170 libext=lib
15171 # Tell ltmain to make .dll files, not .so files.
15172 shrext_cmds=".dll"
15173 # FIXME: Setting linknames here is a bad hack.
15174 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15175 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15176 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15177 else
15178 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15179 fi~
15180 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15181 linknames='
15182 # The linker will not automatically build a static lib if we build a DLL.
15183 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15184 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015185 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015186 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15187 # Don't use ranlib
15188 old_postinstall_cmds='chmod 644 $oldlib'
15189 postlink_cmds='lt_outputfile="@OUTPUT@"~
15190 lt_tool_outputfile="@TOOL_OUTPUT@"~
15191 case $lt_outputfile in
15192 *.exe|*.EXE) ;;
15193 *)
15194 lt_outputfile="$lt_outputfile.exe"
15195 lt_tool_outputfile="$lt_tool_outputfile.exe"
15196 ;;
15197 esac~
15198 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15199 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15200 $RM "$lt_outputfile.manifest";
15201 fi'
15202 ;;
15203 *)
15204 # Assume MSVC wrapper
15205 hardcode_libdir_flag_spec=' '
15206 allow_undefined_flag=unsupported
15207 # Tell ltmain to make .lib files, not .a files.
15208 libext=lib
15209 # Tell ltmain to make .dll files, not .so files.
15210 shrext_cmds=".dll"
15211 # FIXME: Setting linknames here is a bad hack.
15212 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15213 # The linker will automatically build a .lib file if we build a DLL.
15214 old_archive_from_new_cmds='true'
15215 # FIXME: Should let the user specify the lib program.
15216 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15217 enable_shared_with_static_runtimes=yes
15218 ;;
15219 esac
cristy73bd4a52010-10-05 11:24:23 +000015220 ;;
15221
15222 darwin* | rhapsody*)
15223
15224
15225 archive_cmds_need_lc=no
15226 hardcode_direct=no
15227 hardcode_automatic=yes
15228 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015229 if test "$lt_cv_ld_force_load" = "yes"; then
15230 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 +000015231
cristy0c60a692010-11-04 01:09:47 +000015232 else
15233 whole_archive_flag_spec=''
15234 fi
cristy73bd4a52010-10-05 11:24:23 +000015235 link_all_deplibs=yes
15236 allow_undefined_flag="$_lt_dar_allow_undefined"
15237 case $cc_basename in
15238 ifort*) _lt_dar_can_shared=yes ;;
15239 *) _lt_dar_can_shared=$GCC ;;
15240 esac
15241 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015242 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015243 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15244 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15245 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}"
15246 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}"
15247
15248 else
15249 ld_shlibs=no
15250 fi
15251
15252 ;;
15253
15254 dgux*)
15255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15256 hardcode_libdir_flag_spec='-L$libdir'
15257 hardcode_shlibpath_var=no
15258 ;;
15259
cristy73bd4a52010-10-05 11:24:23 +000015260 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15261 # support. Future versions do this automatically, but an explicit c++rt0.o
15262 # does not break anything, and helps significantly (at the cost of a little
15263 # extra space).
15264 freebsd2.2*)
15265 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15266 hardcode_libdir_flag_spec='-R$libdir'
15267 hardcode_direct=yes
15268 hardcode_shlibpath_var=no
15269 ;;
15270
15271 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015272 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015273 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15274 hardcode_direct=yes
15275 hardcode_minus_L=yes
15276 hardcode_shlibpath_var=no
15277 ;;
15278
15279 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15280 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015281 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015282 hardcode_libdir_flag_spec='-R$libdir'
15283 hardcode_direct=yes
15284 hardcode_shlibpath_var=no
15285 ;;
15286
15287 hpux9*)
15288 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015289 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 +000015290 else
15291 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'
15292 fi
15293 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15294 hardcode_libdir_separator=:
15295 hardcode_direct=yes
15296
15297 # hardcode_minus_L: Not really in the search PATH,
15298 # but as the default location of the library.
15299 hardcode_minus_L=yes
15300 export_dynamic_flag_spec='${wl}-E'
15301 ;;
15302
15303 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015304 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015305 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 +000015306 else
15307 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15308 fi
15309 if test "$with_gnu_ld" = no; then
15310 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015311 hardcode_libdir_separator=:
15312 hardcode_direct=yes
15313 hardcode_direct_absolute=yes
15314 export_dynamic_flag_spec='${wl}-E'
15315 # hardcode_minus_L: Not really in the search PATH,
15316 # but as the default location of the library.
15317 hardcode_minus_L=yes
15318 fi
15319 ;;
15320
15321 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015322 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015323 case $host_cpu in
15324 hppa*64*)
15325 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15326 ;;
15327 ia64*)
cristyda16f162011-02-19 23:52:17 +000015328 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015329 ;;
15330 *)
cristyda16f162011-02-19 23:52:17 +000015331 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 +000015332 ;;
15333 esac
15334 else
15335 case $host_cpu in
15336 hppa*64*)
15337 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15338 ;;
15339 ia64*)
15340 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15341 ;;
15342 *)
cristy0c60a692010-11-04 01:09:47 +000015343
15344 # Older versions of the 11.00 compiler do not understand -b yet
15345 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15347$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015348if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015349 $as_echo_n "(cached) " >&6
15350else
15351 lt_cv_prog_compiler__b=no
15352 save_LDFLAGS="$LDFLAGS"
15353 LDFLAGS="$LDFLAGS -b"
15354 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15355 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15356 # The linker can only warn and ignore the option if not recognized
15357 # So say no if there are warnings
15358 if test -s conftest.err; then
15359 # Append any errors to the config.log.
15360 cat conftest.err 1>&5
15361 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15363 if diff conftest.exp conftest.er2 >/dev/null; then
15364 lt_cv_prog_compiler__b=yes
15365 fi
15366 else
15367 lt_cv_prog_compiler__b=yes
15368 fi
15369 fi
15370 $RM -r conftest*
15371 LDFLAGS="$save_LDFLAGS"
15372
15373fi
15374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15375$as_echo "$lt_cv_prog_compiler__b" >&6; }
15376
15377if test x"$lt_cv_prog_compiler__b" = xyes; then
15378 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15379else
15380 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15381fi
15382
cristy73bd4a52010-10-05 11:24:23 +000015383 ;;
15384 esac
15385 fi
15386 if test "$with_gnu_ld" = no; then
15387 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15388 hardcode_libdir_separator=:
15389
15390 case $host_cpu in
15391 hppa*64*|ia64*)
15392 hardcode_direct=no
15393 hardcode_shlibpath_var=no
15394 ;;
15395 *)
15396 hardcode_direct=yes
15397 hardcode_direct_absolute=yes
15398 export_dynamic_flag_spec='${wl}-E'
15399
15400 # hardcode_minus_L: Not really in the search PATH,
15401 # but as the default location of the library.
15402 hardcode_minus_L=yes
15403 ;;
15404 esac
15405 fi
15406 ;;
15407
15408 irix5* | irix6* | nonstopux*)
15409 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015410 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 +000015411 # Try to use the -exported_symbol ld option, if it does not
15412 # work, assume that -exports_file does not work either and
15413 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015414 # This should be the same for all languages, so no per-tag cache variable.
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15416$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15417if ${lt_cv_irix_exported_symbol+:} false; then :
15418 $as_echo_n "(cached) " >&6
15419else
15420 save_LDFLAGS="$LDFLAGS"
15421 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015423/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015424int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015425_ACEOF
15426if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015427 lt_cv_irix_exported_symbol=yes
15428else
15429 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015430fi
15431rm -f core conftest.err conftest.$ac_objext \
15432 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015433 LDFLAGS="$save_LDFLAGS"
15434fi
15435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15436$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15437 if test "$lt_cv_irix_exported_symbol" = yes; then
15438 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'
15439 fi
cristy73bd4a52010-10-05 11:24:23 +000015440 else
cristy0c60a692010-11-04 01:09:47 +000015441 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'
15442 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 +000015443 fi
15444 archive_cmds_need_lc='no'
15445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15446 hardcode_libdir_separator=:
15447 inherit_rpath=yes
15448 link_all_deplibs=yes
15449 ;;
15450
15451 netbsd*)
15452 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15454 else
15455 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15456 fi
15457 hardcode_libdir_flag_spec='-R$libdir'
15458 hardcode_direct=yes
15459 hardcode_shlibpath_var=no
15460 ;;
15461
15462 newsos6)
15463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15464 hardcode_direct=yes
15465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15466 hardcode_libdir_separator=:
15467 hardcode_shlibpath_var=no
15468 ;;
15469
15470 *nto* | *qnx*)
15471 ;;
15472
15473 openbsd*)
15474 if test -f /usr/libexec/ld.so; then
15475 hardcode_direct=yes
15476 hardcode_shlibpath_var=no
15477 hardcode_direct_absolute=yes
15478 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15479 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15480 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15481 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15482 export_dynamic_flag_spec='${wl}-E'
15483 else
15484 case $host_os in
15485 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15487 hardcode_libdir_flag_spec='-R$libdir'
15488 ;;
15489 *)
15490 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15491 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15492 ;;
15493 esac
15494 fi
15495 else
15496 ld_shlibs=no
15497 fi
15498 ;;
15499
15500 os2*)
15501 hardcode_libdir_flag_spec='-L$libdir'
15502 hardcode_minus_L=yes
15503 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015504 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 +000015505 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15506 ;;
15507
15508 osf3*)
15509 if test "$GCC" = yes; then
15510 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015511 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 +000015512 else
15513 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015514 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 +000015515 fi
15516 archive_cmds_need_lc='no'
15517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15518 hardcode_libdir_separator=:
15519 ;;
15520
15521 osf4* | osf5*) # as osf3* with the addition of -msym flag
15522 if test "$GCC" = yes; then
15523 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015524 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 +000015525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15526 else
15527 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015528 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 +000015529 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 +000015530 $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 +000015531
15532 # Both c and cxx compiler support -rpath directly
15533 hardcode_libdir_flag_spec='-rpath $libdir'
15534 fi
15535 archive_cmds_need_lc='no'
15536 hardcode_libdir_separator=:
15537 ;;
15538
15539 solaris*)
15540 no_undefined_flag=' -z defs'
15541 if test "$GCC" = yes; then
15542 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015543 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 +000015544 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 +000015545 $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 +000015546 else
15547 case `$CC -V 2>&1` in
15548 *"Compilers 5.0"*)
15549 wlarc=''
15550 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15551 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15552 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15553 ;;
15554 *)
15555 wlarc='${wl}'
15556 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15558 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15559 ;;
15560 esac
15561 fi
15562 hardcode_libdir_flag_spec='-R$libdir'
15563 hardcode_shlibpath_var=no
15564 case $host_os in
15565 solaris2.[0-5] | solaris2.[0-5].*) ;;
15566 *)
15567 # The compiler driver will combine and reorder linker options,
15568 # but understands `-z linker_flag'. GCC discards it without `$wl',
15569 # but is careful enough not to reorder.
15570 # Supported since Solaris 2.6 (maybe 2.5.1?)
15571 if test "$GCC" = yes; then
15572 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15573 else
15574 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15575 fi
15576 ;;
15577 esac
15578 link_all_deplibs=yes
15579 ;;
15580
15581 sunos4*)
15582 if test "x$host_vendor" = xsequent; then
15583 # Use $CC to link under sequent, because it throws in some extra .o
15584 # files that make .init and .fini sections work.
15585 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15586 else
15587 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15588 fi
15589 hardcode_libdir_flag_spec='-L$libdir'
15590 hardcode_direct=yes
15591 hardcode_minus_L=yes
15592 hardcode_shlibpath_var=no
15593 ;;
15594
15595 sysv4)
15596 case $host_vendor in
15597 sni)
15598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15599 hardcode_direct=yes # is this really true???
15600 ;;
15601 siemens)
15602 ## LD is ld it makes a PLAMLIB
15603 ## CC just makes a GrossModule.
15604 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15605 reload_cmds='$CC -r -o $output$reload_objs'
15606 hardcode_direct=no
15607 ;;
15608 motorola)
15609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15610 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15611 ;;
15612 esac
15613 runpath_var='LD_RUN_PATH'
15614 hardcode_shlibpath_var=no
15615 ;;
15616
15617 sysv4.3*)
15618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15619 hardcode_shlibpath_var=no
15620 export_dynamic_flag_spec='-Bexport'
15621 ;;
15622
15623 sysv4*MP*)
15624 if test -d /usr/nec; then
15625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15626 hardcode_shlibpath_var=no
15627 runpath_var=LD_RUN_PATH
15628 hardcode_runpath_var=yes
15629 ld_shlibs=yes
15630 fi
15631 ;;
15632
15633 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15634 no_undefined_flag='${wl}-z,text'
15635 archive_cmds_need_lc=no
15636 hardcode_shlibpath_var=no
15637 runpath_var='LD_RUN_PATH'
15638
15639 if test "$GCC" = yes; then
15640 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15641 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15642 else
15643 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15644 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15645 fi
15646 ;;
15647
15648 sysv5* | sco3.2v5* | sco5v6*)
15649 # Note: We can NOT use -z defs as we might desire, because we do not
15650 # link with -lc, and that would cause any symbols used from libc to
15651 # always be unresolved, which means just about no library would
15652 # ever link correctly. If we're not using GNU ld we use -z text
15653 # though, which does catch some bad symbols but isn't as heavy-handed
15654 # as -z defs.
15655 no_undefined_flag='${wl}-z,text'
15656 allow_undefined_flag='${wl}-z,nodefs'
15657 archive_cmds_need_lc=no
15658 hardcode_shlibpath_var=no
15659 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15660 hardcode_libdir_separator=':'
15661 link_all_deplibs=yes
15662 export_dynamic_flag_spec='${wl}-Bexport'
15663 runpath_var='LD_RUN_PATH'
15664
15665 if test "$GCC" = yes; then
15666 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15667 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15668 else
15669 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15670 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15671 fi
15672 ;;
15673
15674 uts4*)
15675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15676 hardcode_libdir_flag_spec='-L$libdir'
15677 hardcode_shlibpath_var=no
15678 ;;
15679
15680 *)
15681 ld_shlibs=no
15682 ;;
15683 esac
15684
15685 if test x$host_vendor = xsni; then
15686 case $host in
15687 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15688 export_dynamic_flag_spec='${wl}-Blargedynsym'
15689 ;;
15690 esac
15691 fi
15692 fi
15693
15694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15695$as_echo "$ld_shlibs" >&6; }
15696test "$ld_shlibs" = no && can_build_shared=no
15697
15698with_gnu_ld=$with_gnu_ld
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714#
15715# Do we need to explicitly link libc?
15716#
15717case "x$archive_cmds_need_lc" in
15718x|xyes)
15719 # Assume -lc should be added
15720 archive_cmds_need_lc=yes
15721
15722 if test "$enable_shared" = yes && test "$GCC" = yes; then
15723 case $archive_cmds in
15724 *'~'*)
15725 # FIXME: we may have to deal with multi-command sequences.
15726 ;;
15727 '$CC '*)
15728 # Test whether the compiler implicitly links with -lc since on some
15729 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15730 # to ld, don't add -lc before -lgcc.
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15732$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015733if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015734 $as_echo_n "(cached) " >&6
15735else
15736 $RM conftest*
15737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015738
cristy0c60a692010-11-04 01:09:47 +000015739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015740 (eval $ac_compile) 2>&5
15741 ac_status=$?
15742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15743 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015744 soname=conftest
15745 lib=conftest
15746 libobjs=conftest.$ac_objext
15747 deplibs=
15748 wl=$lt_prog_compiler_wl
15749 pic_flag=$lt_prog_compiler_pic
15750 compiler_flags=-v
15751 linker_flags=-v
15752 verstring=
15753 output_objdir=.
15754 libname=conftest
15755 lt_save_allow_undefined_flag=$allow_undefined_flag
15756 allow_undefined_flag=
15757 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 +000015758 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15759 ac_status=$?
15760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15761 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015762 then
15763 lt_cv_archive_cmds_need_lc=no
15764 else
15765 lt_cv_archive_cmds_need_lc=yes
15766 fi
15767 allow_undefined_flag=$lt_save_allow_undefined_flag
15768 else
15769 cat conftest.err 1>&5
15770 fi
15771 $RM conftest*
15772
15773fi
15774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15775$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15776 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015777 ;;
15778 esac
15779 fi
15780 ;;
15781esac
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
15933
cristy73bd4a52010-10-05 11:24:23 +000015934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15935$as_echo_n "checking dynamic linker characteristics... " >&6; }
15936
15937if test "$GCC" = yes; then
15938 case $host_os in
15939 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15940 *) lt_awk_arg="/^libraries:/" ;;
15941 esac
cristy0c60a692010-11-04 01:09:47 +000015942 case $host_os in
15943 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15944 *) lt_sed_strip_eq="s,=/,/,g" ;;
15945 esac
15946 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15947 case $lt_search_path_spec in
15948 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015949 # if the path contains ";" then we assume it to be the separator
15950 # otherwise default to the standard path separator (i.e. ":") - it is
15951 # assumed that no part of a normal pathname contains ";" but that should
15952 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015953 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15954 ;;
15955 *)
15956 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15957 ;;
15958 esac
cristy73bd4a52010-10-05 11:24:23 +000015959 # Ok, now we have the path, separated by spaces, we can step through it
15960 # and add multilib dir if necessary.
15961 lt_tmp_lt_search_path_spec=
15962 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15963 for lt_sys_path in $lt_search_path_spec; do
15964 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15965 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15966 else
15967 test -d "$lt_sys_path" && \
15968 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15969 fi
15970 done
cristy0c60a692010-11-04 01:09:47 +000015971 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015972BEGIN {RS=" "; FS="/|\n";} {
15973 lt_foo="";
15974 lt_count=0;
15975 for (lt_i = NF; lt_i > 0; lt_i--) {
15976 if ($lt_i != "" && $lt_i != ".") {
15977 if ($lt_i == "..") {
15978 lt_count++;
15979 } else {
15980 if (lt_count == 0) {
15981 lt_foo="/" $lt_i lt_foo;
15982 } else {
15983 lt_count--;
15984 }
15985 }
15986 }
15987 }
15988 if (lt_foo != "") { lt_freq[lt_foo]++; }
15989 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15990}'`
cristy0c60a692010-11-04 01:09:47 +000015991 # AWK program above erroneously prepends '/' to C:/dos/paths
15992 # for these hosts.
15993 case $host_os in
15994 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15995 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15996 esac
15997 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015998else
15999 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16000fi
16001library_names_spec=
16002libname_spec='lib$name'
16003soname_spec=
16004shrext_cmds=".so"
16005postinstall_cmds=
16006postuninstall_cmds=
16007finish_cmds=
16008finish_eval=
16009shlibpath_var=
16010shlibpath_overrides_runpath=unknown
16011version_type=none
16012dynamic_linker="$host_os ld.so"
16013sys_lib_dlsearch_path_spec="/lib /usr/lib"
16014need_lib_prefix=unknown
16015hardcode_into_libs=no
16016
16017# when you set need_version to no, make sure it does not cause -set_version
16018# flags to be left without arguments
16019need_version=unknown
16020
16021case $host_os in
16022aix3*)
cristy99bd5232011-12-07 14:38:20 +000016023 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016024 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16025 shlibpath_var=LIBPATH
16026
16027 # AIX 3 has no versioning support, so we append a major version to the name.
16028 soname_spec='${libname}${release}${shared_ext}$major'
16029 ;;
16030
16031aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016032 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016033 need_lib_prefix=no
16034 need_version=no
16035 hardcode_into_libs=yes
16036 if test "$host_cpu" = ia64; then
16037 # AIX 5 supports IA64
16038 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16039 shlibpath_var=LD_LIBRARY_PATH
16040 else
16041 # With GCC up to 2.95.x, collect2 would create an import file
16042 # for dependence libraries. The import file would start with
16043 # the line `#! .'. This would cause the generated library to
16044 # depend on `.', always an invalid library. This was fixed in
16045 # development snapshots of GCC prior to 3.0.
16046 case $host_os in
16047 aix4 | aix4.[01] | aix4.[01].*)
16048 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16049 echo ' yes '
16050 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16051 :
16052 else
16053 can_build_shared=no
16054 fi
16055 ;;
16056 esac
16057 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16058 # soname into executable. Probably we can add versioning support to
16059 # collect2, so additional links can be useful in future.
16060 if test "$aix_use_runtimelinking" = yes; then
16061 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16062 # instead of lib<name>.a to let people know that these are not
16063 # typical AIX shared libraries.
16064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16065 else
16066 # We preserve .a as extension for shared libraries through AIX4.2
16067 # and later when we are not doing run time linking.
16068 library_names_spec='${libname}${release}.a $libname.a'
16069 soname_spec='${libname}${release}${shared_ext}$major'
16070 fi
16071 shlibpath_var=LIBPATH
16072 fi
16073 ;;
16074
16075amigaos*)
16076 case $host_cpu in
16077 powerpc)
16078 # Since July 2007 AmigaOS4 officially supports .so libraries.
16079 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081 ;;
16082 m68k)
16083 library_names_spec='$libname.ixlibrary $libname.a'
16084 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016085 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 +000016086 ;;
16087 esac
16088 ;;
16089
16090beos*)
16091 library_names_spec='${libname}${shared_ext}'
16092 dynamic_linker="$host_os ld.so"
16093 shlibpath_var=LIBRARY_PATH
16094 ;;
16095
16096bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016097 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016098 need_version=no
16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16100 soname_spec='${libname}${release}${shared_ext}$major'
16101 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16102 shlibpath_var=LD_LIBRARY_PATH
16103 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16104 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16105 # the default ld.so.conf also contains /usr/contrib/lib and
16106 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16107 # libtool to hard-code these into programs
16108 ;;
16109
16110cygwin* | mingw* | pw32* | cegcc*)
16111 version_type=windows
16112 shrext_cmds=".dll"
16113 need_version=no
16114 need_lib_prefix=no
16115
cristyda16f162011-02-19 23:52:17 +000016116 case $GCC,$cc_basename in
16117 yes,*)
16118 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016119 library_names_spec='$libname.dll.a'
16120 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16121 postinstall_cmds='base_file=`basename \${file}`~
16122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16123 dldir=$destdir/`dirname \$dlpath`~
16124 test -d \$dldir || mkdir -p \$dldir~
16125 $install_prog $dir/$dlname \$dldir/$dlname~
16126 chmod a+x \$dldir/$dlname~
16127 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16128 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16129 fi'
16130 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16131 dlpath=$dir/\$dldll~
16132 $RM \$dlpath'
16133 shlibpath_overrides_runpath=yes
16134
16135 case $host_os in
16136 cygwin*)
16137 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16138 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016139
16140 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016141 ;;
16142 mingw* | cegcc*)
16143 # MinGW DLLs use traditional 'lib' prefix
16144 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016145 ;;
16146 pw32*)
16147 # pw32 DLLs use 'pw' prefix rather than 'lib'
16148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16149 ;;
16150 esac
cristyda16f162011-02-19 23:52:17 +000016151 dynamic_linker='Win32 ld.exe'
16152 ;;
16153
16154 *,cl*)
16155 # Native MSVC
16156 libname_spec='$name'
16157 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16158 library_names_spec='${libname}.dll.lib'
16159
16160 case $build_os in
16161 mingw*)
16162 sys_lib_search_path_spec=
16163 lt_save_ifs=$IFS
16164 IFS=';'
16165 for lt_path in $LIB
16166 do
16167 IFS=$lt_save_ifs
16168 # Let DOS variable expansion print the short 8.3 style file name.
16169 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16170 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16171 done
16172 IFS=$lt_save_ifs
16173 # Convert to MSYS style.
16174 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16175 ;;
16176 cygwin*)
16177 # Convert to unix form, then to dos form, then back to unix form
16178 # but this time dos style (no spaces!) so that the unix form looks
16179 # like /cygdrive/c/PROGRA~1:/cygdr...
16180 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16181 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16182 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16183 ;;
16184 *)
16185 sys_lib_search_path_spec="$LIB"
16186 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16187 # It is most probably a Windows format PATH.
16188 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16189 else
16190 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16191 fi
16192 # FIXME: find the short name or the path components, as spaces are
16193 # common. (e.g. "Program Files" -> "PROGRA~1")
16194 ;;
16195 esac
16196
16197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16198 postinstall_cmds='base_file=`basename \${file}`~
16199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16200 dldir=$destdir/`dirname \$dlpath`~
16201 test -d \$dldir || mkdir -p \$dldir~
16202 $install_prog $dir/$dlname \$dldir/$dlname'
16203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16204 dlpath=$dir/\$dldll~
16205 $RM \$dlpath'
16206 shlibpath_overrides_runpath=yes
16207 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016208 ;;
16209
16210 *)
cristyda16f162011-02-19 23:52:17 +000016211 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016212 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016213 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016214 ;;
16215 esac
cristy73bd4a52010-10-05 11:24:23 +000016216 # FIXME: first we should search . and the directory the executable is in
16217 shlibpath_var=PATH
16218 ;;
16219
16220darwin* | rhapsody*)
16221 dynamic_linker="$host_os dyld"
16222 version_type=darwin
16223 need_lib_prefix=no
16224 need_version=no
16225 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16226 soname_spec='${libname}${release}${major}$shared_ext'
16227 shlibpath_overrides_runpath=yes
16228 shlibpath_var=DYLD_LIBRARY_PATH
16229 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16230
16231 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16233 ;;
16234
16235dgux*)
cristy99bd5232011-12-07 14:38:20 +000016236 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016237 need_lib_prefix=no
16238 need_version=no
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16240 soname_spec='${libname}${release}${shared_ext}$major'
16241 shlibpath_var=LD_LIBRARY_PATH
16242 ;;
16243
cristy73bd4a52010-10-05 11:24:23 +000016244freebsd* | dragonfly*)
16245 # DragonFly does not have aout. When/if they implement a new
16246 # versioning mechanism, adjust this.
16247 if test -x /usr/bin/objformat; then
16248 objformat=`/usr/bin/objformat`
16249 else
16250 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016251 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016252 *) objformat=elf ;;
16253 esac
16254 fi
16255 version_type=freebsd-$objformat
16256 case $version_type in
16257 freebsd-elf*)
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16259 need_version=no
16260 need_lib_prefix=no
16261 ;;
16262 freebsd-*)
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16264 need_version=yes
16265 ;;
16266 esac
16267 shlibpath_var=LD_LIBRARY_PATH
16268 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016269 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016270 shlibpath_overrides_runpath=yes
16271 ;;
16272 freebsd3.[01]* | freebsdelf3.[01]*)
16273 shlibpath_overrides_runpath=yes
16274 hardcode_into_libs=yes
16275 ;;
16276 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16277 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16278 shlibpath_overrides_runpath=no
16279 hardcode_into_libs=yes
16280 ;;
16281 *) # from 4.6 on, and DragonFly
16282 shlibpath_overrides_runpath=yes
16283 hardcode_into_libs=yes
16284 ;;
16285 esac
16286 ;;
16287
16288gnu*)
cristy99bd5232011-12-07 14:38:20 +000016289 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016290 need_lib_prefix=no
16291 need_version=no
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016295 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016296 hardcode_into_libs=yes
16297 ;;
16298
cristy0c60a692010-11-04 01:09:47 +000016299haiku*)
cristy99bd5232011-12-07 14:38:20 +000016300 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016301 need_lib_prefix=no
16302 need_version=no
16303 dynamic_linker="$host_os runtime_loader"
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16305 soname_spec='${libname}${release}${shared_ext}$major'
16306 shlibpath_var=LIBRARY_PATH
16307 shlibpath_overrides_runpath=yes
16308 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16309 hardcode_into_libs=yes
16310 ;;
16311
cristy73bd4a52010-10-05 11:24:23 +000016312hpux9* | hpux10* | hpux11*)
16313 # Give a soname corresponding to the major version so that dld.sl refuses to
16314 # link against other versions.
16315 version_type=sunos
16316 need_lib_prefix=no
16317 need_version=no
16318 case $host_cpu in
16319 ia64*)
16320 shrext_cmds='.so'
16321 hardcode_into_libs=yes
16322 dynamic_linker="$host_os dld.so"
16323 shlibpath_var=LD_LIBRARY_PATH
16324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16326 soname_spec='${libname}${release}${shared_ext}$major'
16327 if test "X$HPUX_IA64_MODE" = X32; then
16328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16329 else
16330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16331 fi
16332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16333 ;;
16334 hppa*64*)
16335 shrext_cmds='.sl'
16336 hardcode_into_libs=yes
16337 dynamic_linker="$host_os dld.sl"
16338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16341 soname_spec='${libname}${release}${shared_ext}$major'
16342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16344 ;;
16345 *)
16346 shrext_cmds='.sl'
16347 dynamic_linker="$host_os dld.sl"
16348 shlibpath_var=SHLIB_PATH
16349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16351 soname_spec='${libname}${release}${shared_ext}$major'
16352 ;;
16353 esac
cristy0c60a692010-11-04 01:09:47 +000016354 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016355 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016356 # or fails outright, so override atomically:
16357 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016358 ;;
16359
16360interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016361 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016362 need_lib_prefix=no
16363 need_version=no
16364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16365 soname_spec='${libname}${release}${shared_ext}$major'
16366 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16367 shlibpath_var=LD_LIBRARY_PATH
16368 shlibpath_overrides_runpath=no
16369 hardcode_into_libs=yes
16370 ;;
16371
16372irix5* | irix6* | nonstopux*)
16373 case $host_os in
16374 nonstopux*) version_type=nonstopux ;;
16375 *)
16376 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016377 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016378 else
16379 version_type=irix
16380 fi ;;
16381 esac
16382 need_lib_prefix=no
16383 need_version=no
16384 soname_spec='${libname}${release}${shared_ext}$major'
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16386 case $host_os in
16387 irix5* | nonstopux*)
16388 libsuff= shlibsuff=
16389 ;;
16390 *)
16391 case $LD in # libtool.m4 will add one of these switches to LD
16392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16393 libsuff= shlibsuff= libmagic=32-bit;;
16394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16395 libsuff=32 shlibsuff=N32 libmagic=N32;;
16396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16397 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16398 *) libsuff= shlibsuff= libmagic=never-match;;
16399 esac
16400 ;;
16401 esac
16402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16403 shlibpath_overrides_runpath=no
16404 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16405 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16406 hardcode_into_libs=yes
16407 ;;
16408
16409# No shared lib support for Linux oldld, aout, or coff.
16410linux*oldld* | linux*aout* | linux*coff*)
16411 dynamic_linker=no
16412 ;;
16413
cristy99bd5232011-12-07 14:38:20 +000016414# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016415linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016416 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016417 need_lib_prefix=no
16418 need_version=no
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016424
cristy73bd4a52010-10-05 11:24:23 +000016425 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016426 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016427 $as_echo_n "(cached) " >&6
16428else
16429 lt_cv_shlibpath_overrides_runpath=no
16430 save_LDFLAGS=$LDFLAGS
16431 save_libdir=$libdir
16432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016435/* end confdefs.h. */
16436
16437int
16438main ()
16439{
16440
16441 ;
16442 return 0;
16443}
16444_ACEOF
16445if ac_fn_c_try_link "$LINENO"; then :
16446 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016447 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016448fi
16449fi
16450rm -f core conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016452 LDFLAGS=$save_LDFLAGS
16453 libdir=$save_libdir
16454
16455fi
16456
16457 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016458
16459 # This implies no fast_install, which is unacceptable.
16460 # Some rework will be needed to allow for fast_install
16461 # before this can be enabled.
16462 hardcode_into_libs=yes
16463
16464 # Add ABI-specific directories to the system library path.
16465 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16466
16467 # Append ld.so.conf contents to the search path
16468 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016469 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 +000016470 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016471
cristy73bd4a52010-10-05 11:24:23 +000016472 fi
16473
16474 # We used to test for /lib/ld.so.1 and disable shared libraries on
16475 # powerpc, because MkLinux only supported shared libraries with the
16476 # GNU dynamic linker. Since this was broken with cross compilers,
16477 # most powerpc-linux boxes support dynamic linking these days and
16478 # people can always --disable-shared, the test was removed, and we
16479 # assume the GNU/Linux dynamic linker is in use.
16480 dynamic_linker='GNU/Linux ld.so'
16481 ;;
16482
16483netbsd*)
16484 version_type=sunos
16485 need_lib_prefix=no
16486 need_version=no
16487 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16490 dynamic_linker='NetBSD (a.out) ld.so'
16491 else
16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16493 soname_spec='${libname}${release}${shared_ext}$major'
16494 dynamic_linker='NetBSD ld.elf_so'
16495 fi
16496 shlibpath_var=LD_LIBRARY_PATH
16497 shlibpath_overrides_runpath=yes
16498 hardcode_into_libs=yes
16499 ;;
16500
16501newsos6)
cristy99bd5232011-12-07 14:38:20 +000016502 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16504 shlibpath_var=LD_LIBRARY_PATH
16505 shlibpath_overrides_runpath=yes
16506 ;;
16507
16508*nto* | *qnx*)
16509 version_type=qnx
16510 need_lib_prefix=no
16511 need_version=no
16512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16513 soname_spec='${libname}${release}${shared_ext}$major'
16514 shlibpath_var=LD_LIBRARY_PATH
16515 shlibpath_overrides_runpath=no
16516 hardcode_into_libs=yes
16517 dynamic_linker='ldqnx.so'
16518 ;;
16519
16520openbsd*)
16521 version_type=sunos
16522 sys_lib_dlsearch_path_spec="/usr/lib"
16523 need_lib_prefix=no
16524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16525 case $host_os in
16526 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16527 *) need_version=no ;;
16528 esac
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16531 shlibpath_var=LD_LIBRARY_PATH
16532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16533 case $host_os in
16534 openbsd2.[89] | openbsd2.[89].*)
16535 shlibpath_overrides_runpath=no
16536 ;;
16537 *)
16538 shlibpath_overrides_runpath=yes
16539 ;;
16540 esac
16541 else
16542 shlibpath_overrides_runpath=yes
16543 fi
16544 ;;
16545
16546os2*)
16547 libname_spec='$name'
16548 shrext_cmds=".dll"
16549 need_lib_prefix=no
16550 library_names_spec='$libname${shared_ext} $libname.a'
16551 dynamic_linker='OS/2 ld.exe'
16552 shlibpath_var=LIBPATH
16553 ;;
16554
16555osf3* | osf4* | osf5*)
16556 version_type=osf
16557 need_lib_prefix=no
16558 need_version=no
16559 soname_spec='${libname}${release}${shared_ext}$major'
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16561 shlibpath_var=LD_LIBRARY_PATH
16562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16564 ;;
16565
16566rdos*)
16567 dynamic_linker=no
16568 ;;
16569
16570solaris*)
cristy99bd5232011-12-07 14:38:20 +000016571 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016572 need_lib_prefix=no
16573 need_version=no
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16575 soname_spec='${libname}${release}${shared_ext}$major'
16576 shlibpath_var=LD_LIBRARY_PATH
16577 shlibpath_overrides_runpath=yes
16578 hardcode_into_libs=yes
16579 # ldd complains unless libraries are executable
16580 postinstall_cmds='chmod +x $lib'
16581 ;;
16582
16583sunos4*)
16584 version_type=sunos
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16587 shlibpath_var=LD_LIBRARY_PATH
16588 shlibpath_overrides_runpath=yes
16589 if test "$with_gnu_ld" = yes; then
16590 need_lib_prefix=no
16591 fi
16592 need_version=yes
16593 ;;
16594
16595sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016596 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16598 soname_spec='${libname}${release}${shared_ext}$major'
16599 shlibpath_var=LD_LIBRARY_PATH
16600 case $host_vendor in
16601 sni)
16602 shlibpath_overrides_runpath=no
16603 need_lib_prefix=no
16604 runpath_var=LD_RUN_PATH
16605 ;;
16606 siemens)
16607 need_lib_prefix=no
16608 ;;
16609 motorola)
16610 need_lib_prefix=no
16611 need_version=no
16612 shlibpath_overrides_runpath=no
16613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16614 ;;
16615 esac
16616 ;;
16617
16618sysv4*MP*)
16619 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016620 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16622 soname_spec='$libname${shared_ext}.$major'
16623 shlibpath_var=LD_LIBRARY_PATH
16624 fi
16625 ;;
16626
16627sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16628 version_type=freebsd-elf
16629 need_lib_prefix=no
16630 need_version=no
16631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16632 soname_spec='${libname}${release}${shared_ext}$major'
16633 shlibpath_var=LD_LIBRARY_PATH
16634 shlibpath_overrides_runpath=yes
16635 hardcode_into_libs=yes
16636 if test "$with_gnu_ld" = yes; then
16637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16638 else
16639 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16640 case $host_os in
16641 sco3.2v5*)
16642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16643 ;;
16644 esac
16645 fi
16646 sys_lib_dlsearch_path_spec='/usr/lib'
16647 ;;
16648
16649tpf*)
16650 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016651 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016652 need_lib_prefix=no
16653 need_version=no
16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16655 shlibpath_var=LD_LIBRARY_PATH
16656 shlibpath_overrides_runpath=no
16657 hardcode_into_libs=yes
16658 ;;
16659
16660uts4*)
cristy99bd5232011-12-07 14:38:20 +000016661 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16663 soname_spec='${libname}${release}${shared_ext}$major'
16664 shlibpath_var=LD_LIBRARY_PATH
16665 ;;
16666
16667*)
16668 dynamic_linker=no
16669 ;;
16670esac
16671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16672$as_echo "$dynamic_linker" >&6; }
16673test "$dynamic_linker" = no && can_build_shared=no
16674
16675variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16676if test "$GCC" = yes; then
16677 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16678fi
16679
16680if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16681 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16682fi
16683if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16684 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16685fi
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
16772
cristy0c60a692010-11-04 01:09:47 +000016773
16774
16775
16776
16777
cristy73bd4a52010-10-05 11:24:23 +000016778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16779$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16780hardcode_action=
16781if test -n "$hardcode_libdir_flag_spec" ||
16782 test -n "$runpath_var" ||
16783 test "X$hardcode_automatic" = "Xyes" ; then
16784
16785 # We can hardcode non-existent directories.
16786 if test "$hardcode_direct" != no &&
16787 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16788 # have to relink, otherwise we might link with an installed library
16789 # when we should be linking with a yet-to-be-installed one
16790 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16791 test "$hardcode_minus_L" != no; then
16792 # Linking always hardcodes the temporary library directory.
16793 hardcode_action=relink
16794 else
16795 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16796 hardcode_action=immediate
16797 fi
16798else
16799 # We cannot hardcode anything, or else we can only hardcode existing
16800 # directories.
16801 hardcode_action=unsupported
16802fi
16803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16804$as_echo "$hardcode_action" >&6; }
16805
16806if test "$hardcode_action" = relink ||
16807 test "$inherit_rpath" = yes; then
16808 # Fast installation is not supported
16809 enable_fast_install=no
16810elif test "$shlibpath_overrides_runpath" = yes ||
16811 test "$enable_shared" = no; then
16812 # Fast installation is not necessary
16813 enable_fast_install=needless
16814fi
16815
16816
16817
16818
16819
16820
16821 if test "x$enable_dlopen" != xyes; then
16822 enable_dlopen=unknown
16823 enable_dlopen_self=unknown
16824 enable_dlopen_self_static=unknown
16825else
16826 lt_cv_dlopen=no
16827 lt_cv_dlopen_libs=
16828
16829 case $host_os in
16830 beos*)
16831 lt_cv_dlopen="load_add_on"
16832 lt_cv_dlopen_libs=
16833 lt_cv_dlopen_self=yes
16834 ;;
16835
16836 mingw* | pw32* | cegcc*)
16837 lt_cv_dlopen="LoadLibrary"
16838 lt_cv_dlopen_libs=
16839 ;;
16840
16841 cygwin*)
16842 lt_cv_dlopen="dlopen"
16843 lt_cv_dlopen_libs=
16844 ;;
16845
16846 darwin*)
16847 # if libdl is installed we need to link against it
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16849$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016850if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016851 $as_echo_n "(cached) " >&6
16852else
16853 ac_check_lib_save_LIBS=$LIBS
16854LIBS="-ldl $LIBS"
16855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856/* end confdefs.h. */
16857
16858/* Override any GCC internal prototype to avoid an error.
16859 Use char because int might match the return type of a GCC
16860 builtin and then its argument prototype would still apply. */
16861#ifdef __cplusplus
16862extern "C"
16863#endif
16864char dlopen ();
16865int
16866main ()
16867{
16868return dlopen ();
16869 ;
16870 return 0;
16871}
16872_ACEOF
16873if ac_fn_c_try_link "$LINENO"; then :
16874 ac_cv_lib_dl_dlopen=yes
16875else
16876 ac_cv_lib_dl_dlopen=no
16877fi
16878rm -f core conftest.err conftest.$ac_objext \
16879 conftest$ac_exeext conftest.$ac_ext
16880LIBS=$ac_check_lib_save_LIBS
16881fi
16882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16883$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016884if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16886else
16887
16888 lt_cv_dlopen="dyld"
16889 lt_cv_dlopen_libs=
16890 lt_cv_dlopen_self=yes
16891
16892fi
16893
16894 ;;
16895
16896 *)
16897 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016898if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016899 lt_cv_dlopen="shl_load"
16900else
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16902$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016903if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016904 $as_echo_n "(cached) " >&6
16905else
16906 ac_check_lib_save_LIBS=$LIBS
16907LIBS="-ldld $LIBS"
16908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909/* end confdefs.h. */
16910
16911/* Override any GCC internal prototype to avoid an error.
16912 Use char because int might match the return type of a GCC
16913 builtin and then its argument prototype would still apply. */
16914#ifdef __cplusplus
16915extern "C"
16916#endif
16917char shl_load ();
16918int
16919main ()
16920{
16921return shl_load ();
16922 ;
16923 return 0;
16924}
16925_ACEOF
16926if ac_fn_c_try_link "$LINENO"; then :
16927 ac_cv_lib_dld_shl_load=yes
16928else
16929 ac_cv_lib_dld_shl_load=no
16930fi
16931rm -f core conftest.err conftest.$ac_objext \
16932 conftest$ac_exeext conftest.$ac_ext
16933LIBS=$ac_check_lib_save_LIBS
16934fi
16935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16936$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016937if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016938 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16939else
16940 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016941if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016942 lt_cv_dlopen="dlopen"
16943else
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16945$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016946if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016947 $as_echo_n "(cached) " >&6
16948else
16949 ac_check_lib_save_LIBS=$LIBS
16950LIBS="-ldl $LIBS"
16951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16952/* end confdefs.h. */
16953
16954/* Override any GCC internal prototype to avoid an error.
16955 Use char because int might match the return type of a GCC
16956 builtin and then its argument prototype would still apply. */
16957#ifdef __cplusplus
16958extern "C"
16959#endif
16960char dlopen ();
16961int
16962main ()
16963{
16964return dlopen ();
16965 ;
16966 return 0;
16967}
16968_ACEOF
16969if ac_fn_c_try_link "$LINENO"; then :
16970 ac_cv_lib_dl_dlopen=yes
16971else
16972 ac_cv_lib_dl_dlopen=no
16973fi
16974rm -f core conftest.err conftest.$ac_objext \
16975 conftest$ac_exeext conftest.$ac_ext
16976LIBS=$ac_check_lib_save_LIBS
16977fi
16978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16979$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016980if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16982else
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16984$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016985if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016986 $as_echo_n "(cached) " >&6
16987else
16988 ac_check_lib_save_LIBS=$LIBS
16989LIBS="-lsvld $LIBS"
16990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991/* end confdefs.h. */
16992
16993/* Override any GCC internal prototype to avoid an error.
16994 Use char because int might match the return type of a GCC
16995 builtin and then its argument prototype would still apply. */
16996#ifdef __cplusplus
16997extern "C"
16998#endif
16999char dlopen ();
17000int
17001main ()
17002{
17003return dlopen ();
17004 ;
17005 return 0;
17006}
17007_ACEOF
17008if ac_fn_c_try_link "$LINENO"; then :
17009 ac_cv_lib_svld_dlopen=yes
17010else
17011 ac_cv_lib_svld_dlopen=no
17012fi
17013rm -f core conftest.err conftest.$ac_objext \
17014 conftest$ac_exeext conftest.$ac_ext
17015LIBS=$ac_check_lib_save_LIBS
17016fi
17017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17018$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017019if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17021else
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17023$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017024if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017025 $as_echo_n "(cached) " >&6
17026else
17027 ac_check_lib_save_LIBS=$LIBS
17028LIBS="-ldld $LIBS"
17029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030/* end confdefs.h. */
17031
17032/* Override any GCC internal prototype to avoid an error.
17033 Use char because int might match the return type of a GCC
17034 builtin and then its argument prototype would still apply. */
17035#ifdef __cplusplus
17036extern "C"
17037#endif
17038char dld_link ();
17039int
17040main ()
17041{
17042return dld_link ();
17043 ;
17044 return 0;
17045}
17046_ACEOF
17047if ac_fn_c_try_link "$LINENO"; then :
17048 ac_cv_lib_dld_dld_link=yes
17049else
17050 ac_cv_lib_dld_dld_link=no
17051fi
17052rm -f core conftest.err conftest.$ac_objext \
17053 conftest$ac_exeext conftest.$ac_ext
17054LIBS=$ac_check_lib_save_LIBS
17055fi
17056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17057$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017058if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017059 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17060fi
17061
17062
17063fi
17064
17065
17066fi
17067
17068
17069fi
17070
17071
17072fi
17073
17074
17075fi
17076
17077 ;;
17078 esac
17079
17080 if test "x$lt_cv_dlopen" != xno; then
17081 enable_dlopen=yes
17082 else
17083 enable_dlopen=no
17084 fi
17085
17086 case $lt_cv_dlopen in
17087 dlopen)
17088 save_CPPFLAGS="$CPPFLAGS"
17089 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17090
17091 save_LDFLAGS="$LDFLAGS"
17092 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17093
17094 save_LIBS="$LIBS"
17095 LIBS="$lt_cv_dlopen_libs $LIBS"
17096
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17098$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017099if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017100 $as_echo_n "(cached) " >&6
17101else
17102 if test "$cross_compiling" = yes; then :
17103 lt_cv_dlopen_self=cross
17104else
17105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17106 lt_status=$lt_dlunknown
17107 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017108#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017109#include "confdefs.h"
17110
17111#if HAVE_DLFCN_H
17112#include <dlfcn.h>
17113#endif
17114
17115#include <stdio.h>
17116
17117#ifdef RTLD_GLOBAL
17118# define LT_DLGLOBAL RTLD_GLOBAL
17119#else
17120# ifdef DL_GLOBAL
17121# define LT_DLGLOBAL DL_GLOBAL
17122# else
17123# define LT_DLGLOBAL 0
17124# endif
17125#endif
17126
17127/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17128 find out it does not work in some platform. */
17129#ifndef LT_DLLAZY_OR_NOW
17130# ifdef RTLD_LAZY
17131# define LT_DLLAZY_OR_NOW RTLD_LAZY
17132# else
17133# ifdef DL_LAZY
17134# define LT_DLLAZY_OR_NOW DL_LAZY
17135# else
17136# ifdef RTLD_NOW
17137# define LT_DLLAZY_OR_NOW RTLD_NOW
17138# else
17139# ifdef DL_NOW
17140# define LT_DLLAZY_OR_NOW DL_NOW
17141# else
17142# define LT_DLLAZY_OR_NOW 0
17143# endif
17144# endif
17145# endif
17146# endif
17147#endif
17148
cristy0c60a692010-11-04 01:09:47 +000017149/* When -fvisbility=hidden is used, assume the code has been annotated
17150 correspondingly for the symbols needed. */
17151#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017152int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017153#endif
17154
cristyda16f162011-02-19 23:52:17 +000017155int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017156int main ()
17157{
17158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17159 int status = $lt_dlunknown;
17160
17161 if (self)
17162 {
17163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017164 else
17165 {
17166 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17167 else puts (dlerror ());
17168 }
cristy73bd4a52010-10-05 11:24:23 +000017169 /* dlclose (self); */
17170 }
17171 else
17172 puts (dlerror ());
17173
17174 return status;
17175}
17176_LT_EOF
17177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17178 (eval $ac_link) 2>&5
17179 ac_status=$?
17180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17181 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17182 (./conftest; exit; ) >&5 2>/dev/null
17183 lt_status=$?
17184 case x$lt_status in
17185 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17186 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17187 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17188 esac
17189 else :
17190 # compilation failed
17191 lt_cv_dlopen_self=no
17192 fi
17193fi
17194rm -fr conftest*
17195
17196
17197fi
17198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17199$as_echo "$lt_cv_dlopen_self" >&6; }
17200
17201 if test "x$lt_cv_dlopen_self" = xyes; then
17202 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17204$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017205if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017206 $as_echo_n "(cached) " >&6
17207else
17208 if test "$cross_compiling" = yes; then :
17209 lt_cv_dlopen_self_static=cross
17210else
17211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17212 lt_status=$lt_dlunknown
17213 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017214#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017215#include "confdefs.h"
17216
17217#if HAVE_DLFCN_H
17218#include <dlfcn.h>
17219#endif
17220
17221#include <stdio.h>
17222
17223#ifdef RTLD_GLOBAL
17224# define LT_DLGLOBAL RTLD_GLOBAL
17225#else
17226# ifdef DL_GLOBAL
17227# define LT_DLGLOBAL DL_GLOBAL
17228# else
17229# define LT_DLGLOBAL 0
17230# endif
17231#endif
17232
17233/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17234 find out it does not work in some platform. */
17235#ifndef LT_DLLAZY_OR_NOW
17236# ifdef RTLD_LAZY
17237# define LT_DLLAZY_OR_NOW RTLD_LAZY
17238# else
17239# ifdef DL_LAZY
17240# define LT_DLLAZY_OR_NOW DL_LAZY
17241# else
17242# ifdef RTLD_NOW
17243# define LT_DLLAZY_OR_NOW RTLD_NOW
17244# else
17245# ifdef DL_NOW
17246# define LT_DLLAZY_OR_NOW DL_NOW
17247# else
17248# define LT_DLLAZY_OR_NOW 0
17249# endif
17250# endif
17251# endif
17252# endif
17253#endif
17254
cristy0c60a692010-11-04 01:09:47 +000017255/* When -fvisbility=hidden is used, assume the code has been annotated
17256 correspondingly for the symbols needed. */
17257#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017258int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017259#endif
17260
cristyda16f162011-02-19 23:52:17 +000017261int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017262int main ()
17263{
17264 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17265 int status = $lt_dlunknown;
17266
17267 if (self)
17268 {
17269 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017270 else
17271 {
17272 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17273 else puts (dlerror ());
17274 }
cristy73bd4a52010-10-05 11:24:23 +000017275 /* dlclose (self); */
17276 }
17277 else
17278 puts (dlerror ());
17279
17280 return status;
17281}
17282_LT_EOF
17283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17284 (eval $ac_link) 2>&5
17285 ac_status=$?
17286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17287 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17288 (./conftest; exit; ) >&5 2>/dev/null
17289 lt_status=$?
17290 case x$lt_status in
17291 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17292 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17293 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17294 esac
17295 else :
17296 # compilation failed
17297 lt_cv_dlopen_self_static=no
17298 fi
17299fi
17300rm -fr conftest*
17301
17302
17303fi
17304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17305$as_echo "$lt_cv_dlopen_self_static" >&6; }
17306 fi
17307
17308 CPPFLAGS="$save_CPPFLAGS"
17309 LDFLAGS="$save_LDFLAGS"
17310 LIBS="$save_LIBS"
17311 ;;
17312 esac
17313
17314 case $lt_cv_dlopen_self in
17315 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17316 *) enable_dlopen_self=unknown ;;
17317 esac
17318
17319 case $lt_cv_dlopen_self_static in
17320 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17321 *) enable_dlopen_self_static=unknown ;;
17322 esac
17323fi
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341striplib=
17342old_striplib=
17343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17344$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17345if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17346 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17347 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17349$as_echo "yes" >&6; }
17350else
17351# FIXME - insert some real tests, host_os isn't really good enough
17352 case $host_os in
17353 darwin*)
17354 if test -n "$STRIP" ; then
17355 striplib="$STRIP -x"
17356 old_striplib="$STRIP -S"
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17358$as_echo "yes" >&6; }
17359 else
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17361$as_echo "no" >&6; }
17362 fi
17363 ;;
17364 *)
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17366$as_echo "no" >&6; }
17367 ;;
17368 esac
17369fi
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382 # Report which library types will actually be built
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17384$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17386$as_echo "$can_build_shared" >&6; }
17387
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17389$as_echo_n "checking whether to build shared libraries... " >&6; }
17390 test "$can_build_shared" = "no" && enable_shared=no
17391
17392 # On AIX, shared libraries and static libraries use the same namespace, and
17393 # are all built from PIC.
17394 case $host_os in
17395 aix3*)
17396 test "$enable_shared" = yes && enable_static=no
17397 if test -n "$RANLIB"; then
17398 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17399 postinstall_cmds='$RANLIB $lib'
17400 fi
17401 ;;
17402
17403 aix[4-9]*)
17404 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17405 test "$enable_shared" = yes && enable_static=no
17406 fi
17407 ;;
17408 esac
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17410$as_echo "$enable_shared" >&6; }
17411
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17413$as_echo_n "checking whether to build static libraries... " >&6; }
17414 # Make sure either enable_shared or enable_static is yes.
17415 test "$enable_shared" = yes || enable_static=yes
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17417$as_echo "$enable_static" >&6; }
17418
17419
17420
17421
17422fi
17423ac_ext=c
17424ac_cpp='$CPP $CPPFLAGS'
17425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17427ac_compiler_gnu=$ac_cv_c_compiler_gnu
17428
17429CC="$lt_save_CC"
17430
cristy0c60a692010-11-04 01:09:47 +000017431 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17432 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17433 (test "X$CXX" != "Xg++"))) ; then
17434 ac_ext=cpp
17435ac_cpp='$CXXCPP $CPPFLAGS'
17436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17440$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17441if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017442 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017443 $as_echo_n "(cached) " >&6
17444else
17445 # Double quotes because CXXCPP needs to be expanded
17446 for CXXCPP in "$CXX -E" "/lib/cpp"
17447 do
17448 ac_preproc_ok=false
17449for ac_cxx_preproc_warn_flag in '' yes
17450do
17451 # Use a header file that comes with gcc, so configuring glibc
17452 # with a fresh cross-compiler works.
17453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17454 # <limits.h> exists even on freestanding compilers.
17455 # On the NeXT, cc -E runs the code through the compiler's parser,
17456 # not just through cpp. "Syntax error" is here to catch this case.
17457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458/* end confdefs.h. */
17459#ifdef __STDC__
17460# include <limits.h>
17461#else
17462# include <assert.h>
17463#endif
17464 Syntax error
17465_ACEOF
17466if ac_fn_cxx_try_cpp "$LINENO"; then :
17467
17468else
17469 # Broken: fails on valid input.
17470continue
17471fi
cristyda16f162011-02-19 23:52:17 +000017472rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017473
17474 # OK, works on sane cases. Now check whether nonexistent headers
17475 # can be detected and how.
17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477/* end confdefs.h. */
17478#include <ac_nonexistent.h>
17479_ACEOF
17480if ac_fn_cxx_try_cpp "$LINENO"; then :
17481 # Broken: success on invalid input.
17482continue
17483else
17484 # Passes both tests.
17485ac_preproc_ok=:
17486break
17487fi
cristyda16f162011-02-19 23:52:17 +000017488rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017489
17490done
17491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017492rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017493if $ac_preproc_ok; then :
17494 break
17495fi
17496
17497 done
17498 ac_cv_prog_CXXCPP=$CXXCPP
17499
17500fi
17501 CXXCPP=$ac_cv_prog_CXXCPP
17502else
17503 ac_cv_prog_CXXCPP=$CXXCPP
17504fi
17505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17506$as_echo "$CXXCPP" >&6; }
17507ac_preproc_ok=false
17508for ac_cxx_preproc_warn_flag in '' yes
17509do
17510 # Use a header file that comes with gcc, so configuring glibc
17511 # with a fresh cross-compiler works.
17512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17513 # <limits.h> exists even on freestanding compilers.
17514 # On the NeXT, cc -E runs the code through the compiler's parser,
17515 # not just through cpp. "Syntax error" is here to catch this case.
17516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17517/* end confdefs.h. */
17518#ifdef __STDC__
17519# include <limits.h>
17520#else
17521# include <assert.h>
17522#endif
17523 Syntax error
17524_ACEOF
17525if ac_fn_cxx_try_cpp "$LINENO"; then :
17526
17527else
17528 # Broken: fails on valid input.
17529continue
17530fi
cristyda16f162011-02-19 23:52:17 +000017531rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017532
17533 # OK, works on sane cases. Now check whether nonexistent headers
17534 # can be detected and how.
17535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17536/* end confdefs.h. */
17537#include <ac_nonexistent.h>
17538_ACEOF
17539if ac_fn_cxx_try_cpp "$LINENO"; then :
17540 # Broken: success on invalid input.
17541continue
17542else
17543 # Passes both tests.
17544ac_preproc_ok=:
17545break
17546fi
cristyda16f162011-02-19 23:52:17 +000017547rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017548
17549done
17550# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017551rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017552if $ac_preproc_ok; then :
17553
17554else
17555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17557as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17558See \`config.log' for more details" "$LINENO" 5; }
17559fi
17560
17561ac_ext=c
17562ac_cpp='$CPP $CPPFLAGS'
17563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17565ac_compiler_gnu=$ac_cv_c_compiler_gnu
17566
17567else
17568 _lt_caught_CXX_error=yes
17569fi
cristy73bd4a52010-10-05 11:24:23 +000017570
17571ac_ext=cpp
17572ac_cpp='$CXXCPP $CPPFLAGS'
17573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17576
17577archive_cmds_need_lc_CXX=no
17578allow_undefined_flag_CXX=
17579always_export_symbols_CXX=no
17580archive_expsym_cmds_CXX=
17581compiler_needs_object_CXX=no
17582export_dynamic_flag_spec_CXX=
17583hardcode_direct_CXX=no
17584hardcode_direct_absolute_CXX=no
17585hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017586hardcode_libdir_separator_CXX=
17587hardcode_minus_L_CXX=no
17588hardcode_shlibpath_var_CXX=unsupported
17589hardcode_automatic_CXX=no
17590inherit_rpath_CXX=no
17591module_cmds_CXX=
17592module_expsym_cmds_CXX=
17593link_all_deplibs_CXX=unknown
17594old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017595reload_flag_CXX=$reload_flag
17596reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017597no_undefined_flag_CXX=
17598whole_archive_flag_spec_CXX=
17599enable_shared_with_static_runtimes_CXX=no
17600
17601# Source file extension for C++ test sources.
17602ac_ext=cpp
17603
17604# Object file extension for compiled C++ test sources.
17605objext=o
17606objext_CXX=$objext
17607
17608# No sense in running all these tests if we already determined that
17609# the CXX compiler isn't working. Some variables (like enable_shared)
17610# are currently assumed to apply to all compilers on this platform,
17611# and will be corrupted by setting them based on a non-working compiler.
17612if test "$_lt_caught_CXX_error" != yes; then
17613 # Code to be used in simple compile tests
17614 lt_simple_compile_test_code="int some_variable = 0;"
17615
17616 # Code to be used in simple link tests
17617 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17618
17619 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17620
17621
17622
17623
17624
17625
17626# If no C compiler was specified, use CC.
17627LTCC=${LTCC-"$CC"}
17628
17629# If no C compiler flags were specified, use CFLAGS.
17630LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17631
17632# Allow CC to be a program name with arguments.
17633compiler=$CC
17634
17635
17636 # save warnings/boilerplate of simple test code
17637 ac_outfile=conftest.$ac_objext
17638echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17639eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17640_lt_compiler_boilerplate=`cat conftest.err`
17641$RM conftest*
17642
17643 ac_outfile=conftest.$ac_objext
17644echo "$lt_simple_link_test_code" >conftest.$ac_ext
17645eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17646_lt_linker_boilerplate=`cat conftest.err`
17647$RM -r conftest*
17648
17649
17650 # Allow CC to be a program name with arguments.
17651 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017652 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017653 lt_save_LD=$LD
17654 lt_save_GCC=$GCC
17655 GCC=$GXX
17656 lt_save_with_gnu_ld=$with_gnu_ld
17657 lt_save_path_LD=$lt_cv_path_LD
17658 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17659 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17660 else
17661 $as_unset lt_cv_prog_gnu_ld
17662 fi
17663 if test -n "${lt_cv_path_LDCXX+set}"; then
17664 lt_cv_path_LD=$lt_cv_path_LDCXX
17665 else
17666 $as_unset lt_cv_path_LD
17667 fi
17668 test -z "${LDCXX+set}" || LD=$LDCXX
17669 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017670 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017671 compiler=$CC
17672 compiler_CXX=$CC
17673 for cc_temp in $compiler""; do
17674 case $cc_temp in
17675 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17676 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17677 \-*) ;;
17678 *) break;;
17679 esac
17680done
cristy0c60a692010-11-04 01:09:47 +000017681cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017682
17683
17684 if test -n "$compiler"; then
17685 # We don't want -fno-exception when compiling C++ code, so set the
17686 # no_builtin_flag separately
17687 if test "$GXX" = yes; then
17688 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17689 else
17690 lt_prog_compiler_no_builtin_flag_CXX=
17691 fi
17692
17693 if test "$GXX" = yes; then
17694 # Set up default GNU C++ configuration
17695
17696
17697
17698# Check whether --with-gnu-ld was given.
17699if test "${with_gnu_ld+set}" = set; then :
17700 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17701else
17702 with_gnu_ld=no
17703fi
17704
17705ac_prog=ld
17706if test "$GCC" = yes; then
17707 # Check if gcc -print-prog-name=ld gives a path.
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17709$as_echo_n "checking for ld used by $CC... " >&6; }
17710 case $host in
17711 *-*-mingw*)
17712 # gcc leaves a trailing carriage return which upsets mingw
17713 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17714 *)
17715 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17716 esac
17717 case $ac_prog in
17718 # Accept absolute paths.
17719 [\\/]* | ?:[\\/]*)
17720 re_direlt='/[^/][^/]*/\.\./'
17721 # Canonicalize the pathname of ld
17722 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17723 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17724 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17725 done
17726 test -z "$LD" && LD="$ac_prog"
17727 ;;
17728 "")
17729 # If it fails, then pretend we aren't using GCC.
17730 ac_prog=ld
17731 ;;
17732 *)
17733 # If it is relative, then search for the first ld in PATH.
17734 with_gnu_ld=unknown
17735 ;;
17736 esac
17737elif test "$with_gnu_ld" = yes; then
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17739$as_echo_n "checking for GNU ld... " >&6; }
17740else
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17742$as_echo_n "checking for non-GNU ld... " >&6; }
17743fi
cristyda16f162011-02-19 23:52:17 +000017744if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017745 $as_echo_n "(cached) " >&6
17746else
17747 if test -z "$LD"; then
17748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17749 for ac_dir in $PATH; do
17750 IFS="$lt_save_ifs"
17751 test -z "$ac_dir" && ac_dir=.
17752 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17753 lt_cv_path_LD="$ac_dir/$ac_prog"
17754 # Check to see if the program is GNU ld. I'd rather use --version,
17755 # but apparently some variants of GNU ld only accept -v.
17756 # Break only if it was the GNU/non-GNU ld that we prefer.
17757 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17758 *GNU* | *'with BFD'*)
17759 test "$with_gnu_ld" != no && break
17760 ;;
17761 *)
17762 test "$with_gnu_ld" != yes && break
17763 ;;
17764 esac
17765 fi
17766 done
17767 IFS="$lt_save_ifs"
17768else
17769 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17770fi
17771fi
17772
17773LD="$lt_cv_path_LD"
17774if test -n "$LD"; then
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17776$as_echo "$LD" >&6; }
17777else
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17779$as_echo "no" >&6; }
17780fi
cristy98dddb52010-11-04 00:30:15 +000017781test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17783$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017784if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017785 $as_echo_n "(cached) " >&6
17786else
17787 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17788case `$LD -v 2>&1 </dev/null` in
17789*GNU* | *'with BFD'*)
17790 lt_cv_prog_gnu_ld=yes
17791 ;;
17792*)
17793 lt_cv_prog_gnu_ld=no
17794 ;;
17795esac
17796fi
17797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17798$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17799with_gnu_ld=$lt_cv_prog_gnu_ld
17800
17801
17802
17803
17804
17805
17806
17807 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17808 # archiving commands below assume that GNU ld is being used.
17809 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017810 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17811 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 +000017812
17813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17815
17816 # If archive_cmds runs LD, not CC, wlarc should be empty
17817 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17818 # investigate it a little bit more. (MM)
17819 wlarc='${wl}'
17820
17821 # ancient GNU ld didn't support --whole-archive et. al.
17822 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17823 $GREP 'no-whole-archive' > /dev/null; then
17824 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17825 else
17826 whole_archive_flag_spec_CXX=
17827 fi
17828 else
17829 with_gnu_ld=no
17830 wlarc=
17831
17832 # A generic and very simple default shared library creation
17833 # command for GNU C++ for the case where it uses the native
17834 # linker, instead of GNU ld. If possible, this setting should
17835 # overridden to take advantage of the native linker features on
17836 # the platform it is being used on.
17837 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17838 fi
17839
17840 # Commands to make compiler produce verbose output that lists
17841 # what "hidden" libraries, object files and flags are used when
17842 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017843 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017844
17845 else
17846 GXX=no
17847 with_gnu_ld=no
17848 wlarc=
17849 fi
17850
17851 # PORTME: fill in a description of your system's C++ link characteristics
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17853$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17854 ld_shlibs_CXX=yes
17855 case $host_os in
17856 aix3*)
17857 # FIXME: insert proper C++ library support
17858 ld_shlibs_CXX=no
17859 ;;
17860 aix[4-9]*)
17861 if test "$host_cpu" = ia64; then
17862 # On IA64, the linker does run time linking by default, so we don't
17863 # have to do anything special.
17864 aix_use_runtimelinking=no
17865 exp_sym_flag='-Bexport'
17866 no_entry_flag=""
17867 else
17868 aix_use_runtimelinking=no
17869
17870 # Test if we are trying to use run time linking or normal
17871 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17872 # need to do runtime linking.
17873 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17874 for ld_flag in $LDFLAGS; do
17875 case $ld_flag in
17876 *-brtl*)
17877 aix_use_runtimelinking=yes
17878 break
17879 ;;
17880 esac
17881 done
17882 ;;
17883 esac
17884
17885 exp_sym_flag='-bexport'
17886 no_entry_flag='-bnoentry'
17887 fi
17888
17889 # When large executables or shared objects are built, AIX ld can
17890 # have problems creating the table of contents. If linking a library
17891 # or program results in "error TOC overflow" add -mminimal-toc to
17892 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17893 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17894
17895 archive_cmds_CXX=''
17896 hardcode_direct_CXX=yes
17897 hardcode_direct_absolute_CXX=yes
17898 hardcode_libdir_separator_CXX=':'
17899 link_all_deplibs_CXX=yes
17900 file_list_spec_CXX='${wl}-f,'
17901
17902 if test "$GXX" = yes; then
17903 case $host_os in aix4.[012]|aix4.[012].*)
17904 # We only want to do this on AIX 4.2 and lower, the check
17905 # below for broken collect2 doesn't work under 4.3+
17906 collect2name=`${CC} -print-prog-name=collect2`
17907 if test -f "$collect2name" &&
17908 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17909 then
17910 # We have reworked collect2
17911 :
17912 else
17913 # We have old collect2
17914 hardcode_direct_CXX=unsupported
17915 # It fails to find uninstalled libraries when the uninstalled
17916 # path is not listed in the libpath. Setting hardcode_minus_L
17917 # to unsupported forces relinking
17918 hardcode_minus_L_CXX=yes
17919 hardcode_libdir_flag_spec_CXX='-L$libdir'
17920 hardcode_libdir_separator_CXX=
17921 fi
17922 esac
17923 shared_flag='-shared'
17924 if test "$aix_use_runtimelinking" = yes; then
17925 shared_flag="$shared_flag "'${wl}-G'
17926 fi
17927 else
17928 # not using gcc
17929 if test "$host_cpu" = ia64; then
17930 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17931 # chokes on -Wl,-G. The following line is correct:
17932 shared_flag='-G'
17933 else
17934 if test "$aix_use_runtimelinking" = yes; then
17935 shared_flag='${wl}-G'
17936 else
17937 shared_flag='${wl}-bM:SRE'
17938 fi
17939 fi
17940 fi
17941
17942 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17943 # It seems that -bexpall does not export symbols beginning with
17944 # underscore (_), so it is better to generate a list of symbols to
17945 # export.
17946 always_export_symbols_CXX=yes
17947 if test "$aix_use_runtimelinking" = yes; then
17948 # Warning - without using the other runtime loading flags (-brtl),
17949 # -berok will link without error, but may produce a broken library.
17950 allow_undefined_flag_CXX='-berok'
17951 # Determine the default libpath from the value encoded in an empty
17952 # executable.
cristyda16f162011-02-19 23:52:17 +000017953 if test "${lt_cv_aix_libpath+set}" = set; then
17954 aix_libpath=$lt_cv_aix_libpath
17955else
17956 if ${lt_cv_aix_libpath__CXX+:} false; then :
17957 $as_echo_n "(cached) " >&6
17958else
17959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017960/* end confdefs.h. */
17961
17962int
17963main ()
17964{
17965
17966 ;
17967 return 0;
17968}
17969_ACEOF
17970if ac_fn_cxx_try_link "$LINENO"; then :
17971
cristyda16f162011-02-19 23:52:17 +000017972 lt_aix_libpath_sed='
17973 /Import File Strings/,/^$/ {
17974 /^0/ {
17975 s/^0 *\([^ ]*\) *$/\1/
17976 p
17977 }
17978 }'
17979 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17980 # Check for a 64-bit object if we didn't find anything.
17981 if test -z "$lt_cv_aix_libpath__CXX"; then
17982 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17983 fi
cristy73bd4a52010-10-05 11:24:23 +000017984fi
17985rm -f core conftest.err conftest.$ac_objext \
17986 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017987 if test -z "$lt_cv_aix_libpath__CXX"; then
17988 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17989 fi
17990
17991fi
17992
17993 aix_libpath=$lt_cv_aix_libpath__CXX
17994fi
cristy73bd4a52010-10-05 11:24:23 +000017995
17996 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17997
cristy0c60a692010-11-04 01:09:47 +000017998 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 +000017999 else
18000 if test "$host_cpu" = ia64; then
18001 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18002 allow_undefined_flag_CXX="-z nodefs"
18003 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"
18004 else
18005 # Determine the default libpath from the value encoded in an
18006 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018007 if test "${lt_cv_aix_libpath+set}" = set; then
18008 aix_libpath=$lt_cv_aix_libpath
18009else
18010 if ${lt_cv_aix_libpath__CXX+:} false; then :
18011 $as_echo_n "(cached) " >&6
18012else
18013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018014/* end confdefs.h. */
18015
18016int
18017main ()
18018{
18019
18020 ;
18021 return 0;
18022}
18023_ACEOF
18024if ac_fn_cxx_try_link "$LINENO"; then :
18025
cristyda16f162011-02-19 23:52:17 +000018026 lt_aix_libpath_sed='
18027 /Import File Strings/,/^$/ {
18028 /^0/ {
18029 s/^0 *\([^ ]*\) *$/\1/
18030 p
18031 }
18032 }'
18033 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18034 # Check for a 64-bit object if we didn't find anything.
18035 if test -z "$lt_cv_aix_libpath__CXX"; then
18036 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18037 fi
cristy73bd4a52010-10-05 11:24:23 +000018038fi
18039rm -f core conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018041 if test -z "$lt_cv_aix_libpath__CXX"; then
18042 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18043 fi
18044
18045fi
18046
18047 aix_libpath=$lt_cv_aix_libpath__CXX
18048fi
cristy73bd4a52010-10-05 11:24:23 +000018049
18050 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18051 # Warning - without using the other run time loading flags,
18052 # -berok will link without error, but may produce a broken library.
18053 no_undefined_flag_CXX=' ${wl}-bernotok'
18054 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018055 if test "$with_gnu_ld" = yes; then
18056 # We only use this code for GNU lds that support --whole-archive.
18057 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18058 else
18059 # Exported symbols can be pulled into shared objects from archives
18060 whole_archive_flag_spec_CXX='$convenience'
18061 fi
cristy73bd4a52010-10-05 11:24:23 +000018062 archive_cmds_need_lc_CXX=yes
18063 # This is similar to how AIX traditionally builds its shared
18064 # libraries.
18065 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'
18066 fi
18067 fi
18068 ;;
18069
18070 beos*)
18071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18072 allow_undefined_flag_CXX=unsupported
18073 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18074 # support --undefined. This deserves some investigation. FIXME
18075 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18076 else
18077 ld_shlibs_CXX=no
18078 fi
18079 ;;
18080
18081 chorus*)
18082 case $cc_basename in
18083 *)
18084 # FIXME: insert proper C++ library support
18085 ld_shlibs_CXX=no
18086 ;;
18087 esac
18088 ;;
18089
18090 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018091 case $GXX,$cc_basename in
18092 ,cl* | no,cl*)
18093 # Native MSVC
18094 # hardcode_libdir_flag_spec is actually meaningless, as there is
18095 # no search path for DLLs.
18096 hardcode_libdir_flag_spec_CXX=' '
18097 allow_undefined_flag_CXX=unsupported
18098 always_export_symbols_CXX=yes
18099 file_list_spec_CXX='@'
18100 # Tell ltmain to make .lib files, not .a files.
18101 libext=lib
18102 # Tell ltmain to make .dll files, not .so files.
18103 shrext_cmds=".dll"
18104 # FIXME: Setting linknames here is a bad hack.
18105 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18106 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18107 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18108 else
18109 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18110 fi~
18111 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18112 linknames='
18113 # The linker will not automatically build a static lib if we build a DLL.
18114 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18115 enable_shared_with_static_runtimes_CXX=yes
18116 # Don't use ranlib
18117 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18118 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18119 lt_tool_outputfile="@TOOL_OUTPUT@"~
18120 case $lt_outputfile in
18121 *.exe|*.EXE) ;;
18122 *)
18123 lt_outputfile="$lt_outputfile.exe"
18124 lt_tool_outputfile="$lt_tool_outputfile.exe"
18125 ;;
18126 esac~
18127 func_to_tool_file "$lt_outputfile"~
18128 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18129 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18130 $RM "$lt_outputfile.manifest";
18131 fi'
18132 ;;
18133 *)
18134 # g++
18135 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18136 # as there is no search path for DLLs.
18137 hardcode_libdir_flag_spec_CXX='-L$libdir'
18138 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18139 allow_undefined_flag_CXX=unsupported
18140 always_export_symbols_CXX=no
18141 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018142
cristyda16f162011-02-19 23:52:17 +000018143 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18144 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'
18145 # If the export-symbols file already is a .def file (1st line
18146 # is EXPORTS), use it as is; otherwise, prepend...
18147 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18148 cp $export_symbols $output_objdir/$soname.def;
18149 else
18150 echo EXPORTS > $output_objdir/$soname.def;
18151 cat $export_symbols >> $output_objdir/$soname.def;
18152 fi~
18153 $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'
18154 else
18155 ld_shlibs_CXX=no
18156 fi
18157 ;;
18158 esac
18159 ;;
cristy73bd4a52010-10-05 11:24:23 +000018160 darwin* | rhapsody*)
18161
18162
18163 archive_cmds_need_lc_CXX=no
18164 hardcode_direct_CXX=no
18165 hardcode_automatic_CXX=yes
18166 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018167 if test "$lt_cv_ld_force_load" = "yes"; then
18168 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 +000018169
cristy0c60a692010-11-04 01:09:47 +000018170 else
18171 whole_archive_flag_spec_CXX=''
18172 fi
cristy73bd4a52010-10-05 11:24:23 +000018173 link_all_deplibs_CXX=yes
18174 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18175 case $cc_basename in
18176 ifort*) _lt_dar_can_shared=yes ;;
18177 *) _lt_dar_can_shared=$GCC ;;
18178 esac
18179 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018180 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018181 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}"
18182 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18183 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}"
18184 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}"
18185 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18186 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}"
18187 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}"
18188 fi
18189
18190 else
18191 ld_shlibs_CXX=no
18192 fi
18193
18194 ;;
18195
18196 dgux*)
18197 case $cc_basename in
18198 ec++*)
18199 # FIXME: insert proper C++ library support
18200 ld_shlibs_CXX=no
18201 ;;
18202 ghcx*)
18203 # Green Hills C++ Compiler
18204 # FIXME: insert proper C++ library support
18205 ld_shlibs_CXX=no
18206 ;;
18207 *)
18208 # FIXME: insert proper C++ library support
18209 ld_shlibs_CXX=no
18210 ;;
18211 esac
18212 ;;
18213
cristy99bd5232011-12-07 14:38:20 +000018214 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018215 # C++ shared libraries reported to be fairly broken before
18216 # switch to ELF
18217 ld_shlibs_CXX=no
18218 ;;
18219
18220 freebsd-elf*)
18221 archive_cmds_need_lc_CXX=no
18222 ;;
18223
18224 freebsd* | dragonfly*)
18225 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18226 # conventions
18227 ld_shlibs_CXX=yes
18228 ;;
18229
18230 gnu*)
18231 ;;
18232
cristy0c60a692010-11-04 01:09:47 +000018233 haiku*)
18234 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18235 link_all_deplibs_CXX=yes
18236 ;;
18237
cristy73bd4a52010-10-05 11:24:23 +000018238 hpux9*)
18239 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18240 hardcode_libdir_separator_CXX=:
18241 export_dynamic_flag_spec_CXX='${wl}-E'
18242 hardcode_direct_CXX=yes
18243 hardcode_minus_L_CXX=yes # Not in the search PATH,
18244 # but as the default
18245 # location of the library.
18246
18247 case $cc_basename in
18248 CC*)
18249 # FIXME: insert proper C++ library support
18250 ld_shlibs_CXX=no
18251 ;;
18252 aCC*)
18253 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'
18254 # Commands to make compiler produce verbose output that lists
18255 # what "hidden" libraries, object files and flags are used when
18256 # linking a shared library.
18257 #
18258 # There doesn't appear to be a way to prevent this compiler from
18259 # explicitly linking system object files so we need to strip them
18260 # from the output so that they don't get included in the library
18261 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018262 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 +000018263 ;;
18264 *)
18265 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018266 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 +000018267 else
18268 # FIXME: insert proper C++ library support
18269 ld_shlibs_CXX=no
18270 fi
18271 ;;
18272 esac
18273 ;;
18274
18275 hpux10*|hpux11*)
18276 if test $with_gnu_ld = no; then
18277 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18278 hardcode_libdir_separator_CXX=:
18279
18280 case $host_cpu in
18281 hppa*64*|ia64*)
18282 ;;
18283 *)
18284 export_dynamic_flag_spec_CXX='${wl}-E'
18285 ;;
18286 esac
18287 fi
18288 case $host_cpu in
18289 hppa*64*|ia64*)
18290 hardcode_direct_CXX=no
18291 hardcode_shlibpath_var_CXX=no
18292 ;;
18293 *)
18294 hardcode_direct_CXX=yes
18295 hardcode_direct_absolute_CXX=yes
18296 hardcode_minus_L_CXX=yes # Not in the search PATH,
18297 # but as the default
18298 # location of the library.
18299 ;;
18300 esac
18301
18302 case $cc_basename in
18303 CC*)
18304 # FIXME: insert proper C++ library support
18305 ld_shlibs_CXX=no
18306 ;;
18307 aCC*)
18308 case $host_cpu in
18309 hppa*64*)
18310 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18311 ;;
18312 ia64*)
18313 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18314 ;;
18315 *)
18316 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18317 ;;
18318 esac
18319 # Commands to make compiler produce verbose output that lists
18320 # what "hidden" libraries, object files and flags are used when
18321 # linking a shared library.
18322 #
18323 # There doesn't appear to be a way to prevent this compiler from
18324 # explicitly linking system object files so we need to strip them
18325 # from the output so that they don't get included in the library
18326 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018327 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 +000018328 ;;
18329 *)
18330 if test "$GXX" = yes; then
18331 if test $with_gnu_ld = no; then
18332 case $host_cpu in
18333 hppa*64*)
18334 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18335 ;;
18336 ia64*)
cristyda16f162011-02-19 23:52:17 +000018337 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 +000018338 ;;
18339 *)
cristyda16f162011-02-19 23:52:17 +000018340 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 +000018341 ;;
18342 esac
18343 fi
18344 else
18345 # FIXME: insert proper C++ library support
18346 ld_shlibs_CXX=no
18347 fi
18348 ;;
18349 esac
18350 ;;
18351
18352 interix[3-9]*)
18353 hardcode_direct_CXX=no
18354 hardcode_shlibpath_var_CXX=no
18355 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18356 export_dynamic_flag_spec_CXX='${wl}-E'
18357 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18358 # Instead, shared libraries are loaded at an image base (0x10000000 by
18359 # default) and relocated if they conflict, which is a slow very memory
18360 # consuming and fragmenting process. To avoid this, we pick a random,
18361 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18362 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18363 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'
18364 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'
18365 ;;
18366 irix5* | irix6*)
18367 case $cc_basename in
18368 CC*)
18369 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018370 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 +000018371
18372 # Archives containing C++ object files must be created using
18373 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18374 # necessary to make sure instantiated templates are included
18375 # in the archive.
18376 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18377 ;;
18378 *)
18379 if test "$GXX" = yes; then
18380 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018381 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 +000018382 else
cristyda16f162011-02-19 23:52:17 +000018383 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 +000018384 fi
18385 fi
18386 link_all_deplibs_CXX=yes
18387 ;;
18388 esac
18389 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18390 hardcode_libdir_separator_CXX=:
18391 inherit_rpath_CXX=yes
18392 ;;
18393
cristy0c60a692010-11-04 01:09:47 +000018394 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018395 case $cc_basename in
18396 KCC*)
18397 # Kuck and Associates, Inc. (KAI) C++ Compiler
18398
18399 # KCC will only create a shared library if the output file
18400 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18401 # to its proper name (with version) after linking.
18402 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'
18403 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'
18404 # Commands to make compiler produce verbose output that lists
18405 # what "hidden" libraries, object files and flags are used when
18406 # linking a shared library.
18407 #
18408 # There doesn't appear to be a way to prevent this compiler from
18409 # explicitly linking system object files so we need to strip them
18410 # from the output so that they don't get included in the library
18411 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018412 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 +000018413
18414 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18415 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18416
18417 # Archives containing C++ object files must be created using
18418 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18419 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18420 ;;
18421 icpc* | ecpc* )
18422 # Intel C++
18423 with_gnu_ld=yes
18424 # version 8.0 and above of icpc choke on multiply defined symbols
18425 # if we add $predep_objects and $postdep_objects, however 7.1 and
18426 # earlier do not add the objects themselves.
18427 case `$CC -V 2>&1` in
18428 *"Version 7."*)
18429 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18430 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'
18431 ;;
18432 *) # Version 8.0 or newer
18433 tmp_idyn=
18434 case $host_cpu in
18435 ia64*) tmp_idyn=' -i_dynamic';;
18436 esac
18437 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18438 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'
18439 ;;
18440 esac
18441 archive_cmds_need_lc_CXX=no
18442 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18443 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18444 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18445 ;;
18446 pgCC* | pgcpp*)
18447 # Portland Group C++ compiler
18448 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018449 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018450 prelink_cmds_CXX='tpldir=Template.dir~
18451 rm -rf $tpldir~
18452 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018453 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018454 old_archive_cmds_CXX='tpldir=Template.dir~
18455 rm -rf $tpldir~
18456 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018457 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018458 $RANLIB $oldlib'
18459 archive_cmds_CXX='tpldir=Template.dir~
18460 rm -rf $tpldir~
18461 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018462 $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 +000018463 archive_expsym_cmds_CXX='tpldir=Template.dir~
18464 rm -rf $tpldir~
18465 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018466 $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 +000018467 ;;
cristy0c60a692010-11-04 01:09:47 +000018468 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018469 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18470 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'
18471 ;;
18472 esac
18473
18474 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18475 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018476 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 +000018477 ;;
18478 cxx*)
18479 # Compaq C++
18480 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18481 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'
18482
18483 runpath_var=LD_RUN_PATH
18484 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18485 hardcode_libdir_separator_CXX=:
18486
18487 # Commands to make compiler produce verbose output that lists
18488 # what "hidden" libraries, object files and flags are used when
18489 # linking a shared library.
18490 #
18491 # There doesn't appear to be a way to prevent this compiler from
18492 # explicitly linking system object files so we need to strip them
18493 # from the output so that they don't get included in the library
18494 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018495 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 +000018496 ;;
cristy0c60a692010-11-04 01:09:47 +000018497 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018498 # IBM XL 8.0 on PPC, with GNU ld
18499 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18500 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18501 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18502 if test "x$supports_anon_versioning" = xyes; then
18503 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18504 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18505 echo "local: *; };" >> $output_objdir/$libname.ver~
18506 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18507 fi
18508 ;;
18509 *)
18510 case `$CC -V 2>&1 | sed 5q` in
18511 *Sun\ C*)
18512 # Sun C++ 5.9
18513 no_undefined_flag_CXX=' -zdefs'
18514 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18515 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'
18516 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018517 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 +000018518 compiler_needs_object_CXX=yes
18519
18520 # Not sure whether something based on
18521 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18522 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018523 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018524
18525 # Archives containing C++ object files must be created using
18526 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18527 # necessary to make sure instantiated templates are included
18528 # in the archive.
18529 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18530 ;;
18531 esac
18532 ;;
18533 esac
18534 ;;
18535
18536 lynxos*)
18537 # FIXME: insert proper C++ library support
18538 ld_shlibs_CXX=no
18539 ;;
18540
18541 m88k*)
18542 # FIXME: insert proper C++ library support
18543 ld_shlibs_CXX=no
18544 ;;
18545
18546 mvs*)
18547 case $cc_basename in
18548 cxx*)
18549 # FIXME: insert proper C++ library support
18550 ld_shlibs_CXX=no
18551 ;;
18552 *)
18553 # FIXME: insert proper C++ library support
18554 ld_shlibs_CXX=no
18555 ;;
18556 esac
18557 ;;
18558
18559 netbsd*)
18560 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18561 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18562 wlarc=
18563 hardcode_libdir_flag_spec_CXX='-R$libdir'
18564 hardcode_direct_CXX=yes
18565 hardcode_shlibpath_var_CXX=no
18566 fi
18567 # Workaround some broken pre-1.5 toolchains
18568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18569 ;;
18570
18571 *nto* | *qnx*)
18572 ld_shlibs_CXX=yes
18573 ;;
18574
18575 openbsd2*)
18576 # C++ shared libraries are fairly broken
18577 ld_shlibs_CXX=no
18578 ;;
18579
18580 openbsd*)
18581 if test -f /usr/libexec/ld.so; then
18582 hardcode_direct_CXX=yes
18583 hardcode_shlibpath_var_CXX=no
18584 hardcode_direct_absolute_CXX=yes
18585 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18586 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18587 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18588 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18589 export_dynamic_flag_spec_CXX='${wl}-E'
18590 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18591 fi
cristy0c60a692010-11-04 01:09:47 +000018592 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018593 else
18594 ld_shlibs_CXX=no
18595 fi
18596 ;;
18597
18598 osf3* | osf4* | osf5*)
18599 case $cc_basename in
18600 KCC*)
18601 # Kuck and Associates, Inc. (KAI) C++ Compiler
18602
18603 # KCC will only create a shared library if the output file
18604 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18605 # to its proper name (with version) after linking.
18606 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'
18607
18608 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18609 hardcode_libdir_separator_CXX=:
18610
18611 # Archives containing C++ object files must be created using
18612 # the KAI C++ compiler.
18613 case $host in
18614 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18615 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18616 esac
18617 ;;
18618 RCC*)
18619 # Rational C++ 2.4.1
18620 # FIXME: insert proper C++ library support
18621 ld_shlibs_CXX=no
18622 ;;
18623 cxx*)
18624 case $host in
18625 osf3*)
18626 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018627 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 +000018628 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18629 ;;
18630 *)
18631 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018632 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 +000018633 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18634 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018635 $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 +000018636 $RM $lib.exp'
18637 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18638 ;;
18639 esac
18640
18641 hardcode_libdir_separator_CXX=:
18642
18643 # Commands to make compiler produce verbose output that lists
18644 # what "hidden" libraries, object files and flags are used when
18645 # linking a shared library.
18646 #
18647 # There doesn't appear to be a way to prevent this compiler from
18648 # explicitly linking system object files so we need to strip them
18649 # from the output so that they don't get included in the library
18650 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018651 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 +000018652 ;;
18653 *)
18654 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18655 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18656 case $host in
18657 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018658 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 +000018659 ;;
18660 *)
cristyda16f162011-02-19 23:52:17 +000018661 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 +000018662 ;;
18663 esac
18664
18665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18666 hardcode_libdir_separator_CXX=:
18667
18668 # Commands to make compiler produce verbose output that lists
18669 # what "hidden" libraries, object files and flags are used when
18670 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018671 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018672
18673 else
18674 # FIXME: insert proper C++ library support
18675 ld_shlibs_CXX=no
18676 fi
18677 ;;
18678 esac
18679 ;;
18680
18681 psos*)
18682 # FIXME: insert proper C++ library support
18683 ld_shlibs_CXX=no
18684 ;;
18685
18686 sunos4*)
18687 case $cc_basename in
18688 CC*)
18689 # Sun C++ 4.x
18690 # FIXME: insert proper C++ library support
18691 ld_shlibs_CXX=no
18692 ;;
18693 lcc*)
18694 # Lucid
18695 # FIXME: insert proper C++ library support
18696 ld_shlibs_CXX=no
18697 ;;
18698 *)
18699 # FIXME: insert proper C++ library support
18700 ld_shlibs_CXX=no
18701 ;;
18702 esac
18703 ;;
18704
18705 solaris*)
18706 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018707 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018708 # Sun C++ 4.2, 5.x and Centerline C++
18709 archive_cmds_need_lc_CXX=yes
18710 no_undefined_flag_CXX=' -zdefs'
18711 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18712 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18713 $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'
18714
18715 hardcode_libdir_flag_spec_CXX='-R$libdir'
18716 hardcode_shlibpath_var_CXX=no
18717 case $host_os in
18718 solaris2.[0-5] | solaris2.[0-5].*) ;;
18719 *)
18720 # The compiler driver will combine and reorder linker options,
18721 # but understands `-z linker_flag'.
18722 # Supported since Solaris 2.6 (maybe 2.5.1?)
18723 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18724 ;;
18725 esac
18726 link_all_deplibs_CXX=yes
18727
cristy0c60a692010-11-04 01:09:47 +000018728 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018729
18730 # Archives containing C++ object files must be created using
18731 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18732 # necessary to make sure instantiated templates are included
18733 # in the archive.
18734 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18735 ;;
18736 gcx*)
18737 # Green Hills C++ Compiler
18738 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18739
18740 # The C++ compiler must be used to create the archive.
18741 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18742 ;;
18743 *)
18744 # GNU C++ compiler with Solaris linker
18745 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18746 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18747 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018748 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 +000018749 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 +000018750 $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 +000018751
18752 # Commands to make compiler produce verbose output that lists
18753 # what "hidden" libraries, object files and flags are used when
18754 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018755 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018756 else
18757 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18758 # platform.
18759 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18760 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18761 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18762
18763 # Commands to make compiler produce verbose output that lists
18764 # what "hidden" libraries, object files and flags are used when
18765 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018766 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018767 fi
18768
18769 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18770 case $host_os in
18771 solaris2.[0-5] | solaris2.[0-5].*) ;;
18772 *)
18773 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18774 ;;
18775 esac
18776 fi
18777 ;;
18778 esac
18779 ;;
18780
18781 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18782 no_undefined_flag_CXX='${wl}-z,text'
18783 archive_cmds_need_lc_CXX=no
18784 hardcode_shlibpath_var_CXX=no
18785 runpath_var='LD_RUN_PATH'
18786
18787 case $cc_basename in
18788 CC*)
18789 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18790 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18791 ;;
18792 *)
18793 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18794 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18795 ;;
18796 esac
18797 ;;
18798
18799 sysv5* | sco3.2v5* | sco5v6*)
18800 # Note: We can NOT use -z defs as we might desire, because we do not
18801 # link with -lc, and that would cause any symbols used from libc to
18802 # always be unresolved, which means just about no library would
18803 # ever link correctly. If we're not using GNU ld we use -z text
18804 # though, which does catch some bad symbols but isn't as heavy-handed
18805 # as -z defs.
18806 no_undefined_flag_CXX='${wl}-z,text'
18807 allow_undefined_flag_CXX='${wl}-z,nodefs'
18808 archive_cmds_need_lc_CXX=no
18809 hardcode_shlibpath_var_CXX=no
18810 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18811 hardcode_libdir_separator_CXX=':'
18812 link_all_deplibs_CXX=yes
18813 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18814 runpath_var='LD_RUN_PATH'
18815
18816 case $cc_basename in
18817 CC*)
18818 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18819 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 +000018820 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18821 '"$old_archive_cmds_CXX"
18822 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18823 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018824 ;;
18825 *)
18826 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18827 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18828 ;;
18829 esac
18830 ;;
18831
18832 tandem*)
18833 case $cc_basename in
18834 NCC*)
18835 # NonStop-UX NCC 3.20
18836 # FIXME: insert proper C++ library support
18837 ld_shlibs_CXX=no
18838 ;;
18839 *)
18840 # FIXME: insert proper C++ library support
18841 ld_shlibs_CXX=no
18842 ;;
18843 esac
18844 ;;
18845
18846 vxworks*)
18847 # FIXME: insert proper C++ library support
18848 ld_shlibs_CXX=no
18849 ;;
18850
18851 *)
18852 # FIXME: insert proper C++ library support
18853 ld_shlibs_CXX=no
18854 ;;
18855 esac
18856
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18858$as_echo "$ld_shlibs_CXX" >&6; }
18859 test "$ld_shlibs_CXX" = no && can_build_shared=no
18860
18861 GCC_CXX="$GXX"
18862 LD_CXX="$LD"
18863
18864 ## CAVEAT EMPTOR:
18865 ## There is no encapsulation within the following macros, do not change
18866 ## the running order or otherwise move them around unless you know exactly
18867 ## what you are doing...
18868 # Dependencies to place before and after the object being linked:
18869predep_objects_CXX=
18870postdep_objects_CXX=
18871predeps_CXX=
18872postdeps_CXX=
18873compiler_lib_search_path_CXX=
18874
18875cat > conftest.$ac_ext <<_LT_EOF
18876class Foo
18877{
18878public:
18879 Foo (void) { a = 0; }
18880private:
18881 int a;
18882};
18883_LT_EOF
18884
cristyda16f162011-02-19 23:52:17 +000018885
18886_lt_libdeps_save_CFLAGS=$CFLAGS
18887case "$CC $CFLAGS " in #(
18888*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18889*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018890*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018891esac
18892
cristy73bd4a52010-10-05 11:24:23 +000018893if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18894 (eval $ac_compile) 2>&5
18895 ac_status=$?
18896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18897 test $ac_status = 0; }; then
18898 # Parse the compiler output and extract the necessary
18899 # objects, libraries and library flags.
18900
18901 # Sentinel used to keep track of whether or not we are before
18902 # the conftest object file.
18903 pre_test_object_deps_done=no
18904
18905 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018906 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018907
18908 -L* | -R* | -l*)
18909 # Some compilers place space between "-{L,R}" and the path.
18910 # Remove the space.
18911 if test $p = "-L" ||
18912 test $p = "-R"; then
18913 prev=$p
18914 continue
cristy73bd4a52010-10-05 11:24:23 +000018915 fi
18916
cristyda16f162011-02-19 23:52:17 +000018917 # Expand the sysroot to ease extracting the directories later.
18918 if test -z "$prev"; then
18919 case $p in
18920 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18921 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18922 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18923 esac
18924 fi
18925 case $p in
18926 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18927 esac
cristy73bd4a52010-10-05 11:24:23 +000018928 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018929 case ${prev} in
18930 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018931 # Internal compiler library paths should come after those
18932 # provided the user. The postdeps already come after the
18933 # user supplied libs so there is no need to process them.
18934 if test -z "$compiler_lib_search_path_CXX"; then
18935 compiler_lib_search_path_CXX="${prev}${p}"
18936 else
18937 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18938 fi
18939 ;;
18940 # The "-l" case would never come before the object being
18941 # linked, so don't bother handling this case.
18942 esac
18943 else
18944 if test -z "$postdeps_CXX"; then
18945 postdeps_CXX="${prev}${p}"
18946 else
18947 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18948 fi
18949 fi
cristyda16f162011-02-19 23:52:17 +000018950 prev=
cristy73bd4a52010-10-05 11:24:23 +000018951 ;;
18952
cristyda16f162011-02-19 23:52:17 +000018953 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018954 *.$objext)
18955 # This assumes that the test object file only shows up
18956 # once in the compiler output.
18957 if test "$p" = "conftest.$objext"; then
18958 pre_test_object_deps_done=yes
18959 continue
18960 fi
18961
18962 if test "$pre_test_object_deps_done" = no; then
18963 if test -z "$predep_objects_CXX"; then
18964 predep_objects_CXX="$p"
18965 else
18966 predep_objects_CXX="$predep_objects_CXX $p"
18967 fi
18968 else
18969 if test -z "$postdep_objects_CXX"; then
18970 postdep_objects_CXX="$p"
18971 else
18972 postdep_objects_CXX="$postdep_objects_CXX $p"
18973 fi
18974 fi
18975 ;;
18976
18977 *) ;; # Ignore the rest.
18978
18979 esac
18980 done
18981
18982 # Clean up.
18983 rm -f a.out a.exe
18984else
18985 echo "libtool.m4: error: problem compiling CXX test program"
18986fi
18987
18988$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018989CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018990
18991# PORTME: override above test on systems where it is broken
18992case $host_os in
18993interix[3-9]*)
18994 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18995 # hack all around it, let's just trust "g++" to DTRT.
18996 predep_objects_CXX=
18997 postdep_objects_CXX=
18998 postdeps_CXX=
18999 ;;
19000
19001linux*)
19002 case `$CC -V 2>&1 | sed 5q` in
19003 *Sun\ C*)
19004 # Sun C++ 5.9
19005
19006 # The more standards-conforming stlport4 library is
19007 # incompatible with the Cstd library. Avoid specifying
19008 # it if it's in CXXFLAGS. Ignore libCrun as
19009 # -library=stlport4 depends on it.
19010 case " $CXX $CXXFLAGS " in
19011 *" -library=stlport4 "*)
19012 solaris_use_stlport4=yes
19013 ;;
19014 esac
19015
19016 if test "$solaris_use_stlport4" != yes; then
19017 postdeps_CXX='-library=Cstd -library=Crun'
19018 fi
19019 ;;
19020 esac
19021 ;;
19022
19023solaris*)
19024 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019025 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019026 # The more standards-conforming stlport4 library is
19027 # incompatible with the Cstd library. Avoid specifying
19028 # it if it's in CXXFLAGS. Ignore libCrun as
19029 # -library=stlport4 depends on it.
19030 case " $CXX $CXXFLAGS " in
19031 *" -library=stlport4 "*)
19032 solaris_use_stlport4=yes
19033 ;;
19034 esac
19035
19036 # Adding this requires a known-good setup of shared libraries for
19037 # Sun compiler versions before 5.6, else PIC objects from an old
19038 # archive will be linked into the output, leading to subtle bugs.
19039 if test "$solaris_use_stlport4" != yes; then
19040 postdeps_CXX='-library=Cstd -library=Crun'
19041 fi
19042 ;;
19043 esac
19044 ;;
19045esac
19046
19047
19048case " $postdeps_CXX " in
19049*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19050esac
19051 compiler_lib_search_dirs_CXX=
19052if test -n "${compiler_lib_search_path_CXX}"; then
19053 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19054fi
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
19086 lt_prog_compiler_wl_CXX=
19087lt_prog_compiler_pic_CXX=
19088lt_prog_compiler_static_CXX=
19089
cristy73bd4a52010-10-05 11:24:23 +000019090
19091 # C++ specific cases for pic, static, wl, etc.
19092 if test "$GXX" = yes; then
19093 lt_prog_compiler_wl_CXX='-Wl,'
19094 lt_prog_compiler_static_CXX='-static'
19095
19096 case $host_os in
19097 aix*)
19098 # All AIX code is PIC.
19099 if test "$host_cpu" = ia64; then
19100 # AIX 5 now supports IA64 processor
19101 lt_prog_compiler_static_CXX='-Bstatic'
19102 fi
19103 ;;
19104
19105 amigaos*)
19106 case $host_cpu in
19107 powerpc)
19108 # see comment about AmigaOS4 .so support
19109 lt_prog_compiler_pic_CXX='-fPIC'
19110 ;;
19111 m68k)
19112 # FIXME: we need at least 68020 code to build shared libraries, but
19113 # adding the `-m68020' flag to GCC prevents building anything better,
19114 # like `-m68040'.
19115 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19116 ;;
19117 esac
19118 ;;
19119
19120 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19121 # PIC is the default for these OSes.
19122 ;;
19123 mingw* | cygwin* | os2* | pw32* | cegcc*)
19124 # This hack is so that the source file can tell whether it is being
19125 # built for inclusion in a dll (and should export symbols for example).
19126 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19127 # (--disable-auto-import) libraries
19128 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19129 ;;
19130 darwin* | rhapsody*)
19131 # PIC is the default on this platform
19132 # Common symbols not allowed in MH_DYLIB files
19133 lt_prog_compiler_pic_CXX='-fno-common'
19134 ;;
19135 *djgpp*)
19136 # DJGPP does not support shared libraries at all
19137 lt_prog_compiler_pic_CXX=
19138 ;;
cristy0c60a692010-11-04 01:09:47 +000019139 haiku*)
19140 # PIC is the default for Haiku.
19141 # The "-static" flag exists, but is broken.
19142 lt_prog_compiler_static_CXX=
19143 ;;
cristy73bd4a52010-10-05 11:24:23 +000019144 interix[3-9]*)
19145 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19146 # Instead, we relocate shared libraries at runtime.
19147 ;;
19148 sysv4*MP*)
19149 if test -d /usr/nec; then
19150 lt_prog_compiler_pic_CXX=-Kconform_pic
19151 fi
19152 ;;
19153 hpux*)
19154 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19155 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19156 # sets the default TLS model and affects inlining.
19157 case $host_cpu in
19158 hppa*64*)
19159 ;;
19160 *)
19161 lt_prog_compiler_pic_CXX='-fPIC'
19162 ;;
19163 esac
19164 ;;
19165 *qnx* | *nto*)
19166 # QNX uses GNU C++, but need to define -shared option too, otherwise
19167 # it will coredump.
19168 lt_prog_compiler_pic_CXX='-fPIC -shared'
19169 ;;
19170 *)
19171 lt_prog_compiler_pic_CXX='-fPIC'
19172 ;;
19173 esac
19174 else
19175 case $host_os in
19176 aix[4-9]*)
19177 # All AIX code is PIC.
19178 if test "$host_cpu" = ia64; then
19179 # AIX 5 now supports IA64 processor
19180 lt_prog_compiler_static_CXX='-Bstatic'
19181 else
19182 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19183 fi
19184 ;;
19185 chorus*)
19186 case $cc_basename in
19187 cxch68*)
19188 # Green Hills C++ Compiler
19189 # _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"
19190 ;;
19191 esac
19192 ;;
cristyda16f162011-02-19 23:52:17 +000019193 mingw* | cygwin* | os2* | pw32* | cegcc*)
19194 # This hack is so that the source file can tell whether it is being
19195 # built for inclusion in a dll (and should export symbols for example).
19196 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19197 ;;
cristy73bd4a52010-10-05 11:24:23 +000019198 dgux*)
19199 case $cc_basename in
19200 ec++*)
19201 lt_prog_compiler_pic_CXX='-KPIC'
19202 ;;
19203 ghcx*)
19204 # Green Hills C++ Compiler
19205 lt_prog_compiler_pic_CXX='-pic'
19206 ;;
19207 *)
19208 ;;
19209 esac
19210 ;;
19211 freebsd* | dragonfly*)
19212 # FreeBSD uses GNU C++
19213 ;;
19214 hpux9* | hpux10* | hpux11*)
19215 case $cc_basename in
19216 CC*)
19217 lt_prog_compiler_wl_CXX='-Wl,'
19218 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19219 if test "$host_cpu" != ia64; then
19220 lt_prog_compiler_pic_CXX='+Z'
19221 fi
19222 ;;
19223 aCC*)
19224 lt_prog_compiler_wl_CXX='-Wl,'
19225 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19226 case $host_cpu in
19227 hppa*64*|ia64*)
19228 # +Z the default
19229 ;;
19230 *)
19231 lt_prog_compiler_pic_CXX='+Z'
19232 ;;
19233 esac
19234 ;;
19235 *)
19236 ;;
19237 esac
19238 ;;
19239 interix*)
19240 # This is c89, which is MS Visual C++ (no shared libs)
19241 # Anyone wants to do a port?
19242 ;;
19243 irix5* | irix6* | nonstopux*)
19244 case $cc_basename in
19245 CC*)
19246 lt_prog_compiler_wl_CXX='-Wl,'
19247 lt_prog_compiler_static_CXX='-non_shared'
19248 # CC pic flag -KPIC is the default.
19249 ;;
19250 *)
19251 ;;
19252 esac
19253 ;;
cristy0c60a692010-11-04 01:09:47 +000019254 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019255 case $cc_basename in
19256 KCC*)
19257 # KAI C++ Compiler
19258 lt_prog_compiler_wl_CXX='--backend -Wl,'
19259 lt_prog_compiler_pic_CXX='-fPIC'
19260 ;;
19261 ecpc* )
19262 # old Intel C++ for x86_64 which still supported -KPIC.
19263 lt_prog_compiler_wl_CXX='-Wl,'
19264 lt_prog_compiler_pic_CXX='-KPIC'
19265 lt_prog_compiler_static_CXX='-static'
19266 ;;
19267 icpc* )
19268 # Intel C++, used to be incompatible with GCC.
19269 # ICC 10 doesn't accept -KPIC any more.
19270 lt_prog_compiler_wl_CXX='-Wl,'
19271 lt_prog_compiler_pic_CXX='-fPIC'
19272 lt_prog_compiler_static_CXX='-static'
19273 ;;
19274 pgCC* | pgcpp*)
19275 # Portland Group C++ compiler
19276 lt_prog_compiler_wl_CXX='-Wl,'
19277 lt_prog_compiler_pic_CXX='-fpic'
19278 lt_prog_compiler_static_CXX='-Bstatic'
19279 ;;
19280 cxx*)
19281 # Compaq C++
19282 # Make sure the PIC flag is empty. It appears that all Alpha
19283 # Linux and Compaq Tru64 Unix objects are PIC.
19284 lt_prog_compiler_pic_CXX=
19285 lt_prog_compiler_static_CXX='-non_shared'
19286 ;;
cristy0c60a692010-11-04 01:09:47 +000019287 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19288 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019289 lt_prog_compiler_wl_CXX='-Wl,'
19290 lt_prog_compiler_pic_CXX='-qpic'
19291 lt_prog_compiler_static_CXX='-qstaticlink'
19292 ;;
19293 *)
19294 case `$CC -V 2>&1 | sed 5q` in
19295 *Sun\ C*)
19296 # Sun C++ 5.9
19297 lt_prog_compiler_pic_CXX='-KPIC'
19298 lt_prog_compiler_static_CXX='-Bstatic'
19299 lt_prog_compiler_wl_CXX='-Qoption ld '
19300 ;;
19301 esac
19302 ;;
19303 esac
19304 ;;
19305 lynxos*)
19306 ;;
19307 m88k*)
19308 ;;
19309 mvs*)
19310 case $cc_basename in
19311 cxx*)
19312 lt_prog_compiler_pic_CXX='-W c,exportall'
19313 ;;
19314 *)
19315 ;;
19316 esac
19317 ;;
19318 netbsd*)
19319 ;;
19320 *qnx* | *nto*)
19321 # QNX uses GNU C++, but need to define -shared option too, otherwise
19322 # it will coredump.
19323 lt_prog_compiler_pic_CXX='-fPIC -shared'
19324 ;;
19325 osf3* | osf4* | osf5*)
19326 case $cc_basename in
19327 KCC*)
19328 lt_prog_compiler_wl_CXX='--backend -Wl,'
19329 ;;
19330 RCC*)
19331 # Rational C++ 2.4.1
19332 lt_prog_compiler_pic_CXX='-pic'
19333 ;;
19334 cxx*)
19335 # Digital/Compaq C++
19336 lt_prog_compiler_wl_CXX='-Wl,'
19337 # Make sure the PIC flag is empty. It appears that all Alpha
19338 # Linux and Compaq Tru64 Unix objects are PIC.
19339 lt_prog_compiler_pic_CXX=
19340 lt_prog_compiler_static_CXX='-non_shared'
19341 ;;
19342 *)
19343 ;;
19344 esac
19345 ;;
19346 psos*)
19347 ;;
19348 solaris*)
19349 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019350 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019351 # Sun C++ 4.2, 5.x and Centerline C++
19352 lt_prog_compiler_pic_CXX='-KPIC'
19353 lt_prog_compiler_static_CXX='-Bstatic'
19354 lt_prog_compiler_wl_CXX='-Qoption ld '
19355 ;;
19356 gcx*)
19357 # Green Hills C++ Compiler
19358 lt_prog_compiler_pic_CXX='-PIC'
19359 ;;
19360 *)
19361 ;;
19362 esac
19363 ;;
19364 sunos4*)
19365 case $cc_basename in
19366 CC*)
19367 # Sun C++ 4.x
19368 lt_prog_compiler_pic_CXX='-pic'
19369 lt_prog_compiler_static_CXX='-Bstatic'
19370 ;;
19371 lcc*)
19372 # Lucid
19373 lt_prog_compiler_pic_CXX='-pic'
19374 ;;
19375 *)
19376 ;;
19377 esac
19378 ;;
19379 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19380 case $cc_basename in
19381 CC*)
19382 lt_prog_compiler_wl_CXX='-Wl,'
19383 lt_prog_compiler_pic_CXX='-KPIC'
19384 lt_prog_compiler_static_CXX='-Bstatic'
19385 ;;
19386 esac
19387 ;;
19388 tandem*)
19389 case $cc_basename in
19390 NCC*)
19391 # NonStop-UX NCC 3.20
19392 lt_prog_compiler_pic_CXX='-KPIC'
19393 ;;
19394 *)
19395 ;;
19396 esac
19397 ;;
19398 vxworks*)
19399 ;;
19400 *)
19401 lt_prog_compiler_can_build_shared_CXX=no
19402 ;;
19403 esac
19404 fi
19405
19406case $host_os in
19407 # For platforms which do not support PIC, -DPIC is meaningless:
19408 *djgpp*)
19409 lt_prog_compiler_pic_CXX=
19410 ;;
19411 *)
19412 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19413 ;;
19414esac
cristy73bd4a52010-10-05 11:24:23 +000019415
cristyda16f162011-02-19 23:52:17 +000019416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19417$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19418if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19419 $as_echo_n "(cached) " >&6
19420else
19421 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19422fi
19423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19424$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19425lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019426
19427#
19428# Check to make sure the PIC flag actually works.
19429#
19430if test -n "$lt_prog_compiler_pic_CXX"; then
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19432$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019433if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019434 $as_echo_n "(cached) " >&6
19435else
19436 lt_cv_prog_compiler_pic_works_CXX=no
19437 ac_outfile=conftest.$ac_objext
19438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19439 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19440 # Insert the option either (1) after the last *FLAGS variable, or
19441 # (2) before a word containing "conftest.", or (3) at the end.
19442 # Note that $ac_compile itself does not contain backslashes and begins
19443 # with a dollar sign (not a hyphen), so the echo should work correctly.
19444 # The option is referenced via a variable to avoid confusing sed.
19445 lt_compile=`echo "$ac_compile" | $SED \
19446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19448 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019449 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019450 (eval "$lt_compile" 2>conftest.err)
19451 ac_status=$?
19452 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019454 if (exit $ac_status) && test -s "$ac_outfile"; then
19455 # The compiler can only warn and ignore the option if not recognized
19456 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19460 lt_cv_prog_compiler_pic_works_CXX=yes
19461 fi
19462 fi
19463 $RM conftest*
19464
19465fi
19466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19467$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19468
19469if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19470 case $lt_prog_compiler_pic_CXX in
19471 "" | " "*) ;;
19472 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19473 esac
19474else
19475 lt_prog_compiler_pic_CXX=
19476 lt_prog_compiler_can_build_shared_CXX=no
19477fi
19478
19479fi
19480
19481
19482
cristyda16f162011-02-19 23:52:17 +000019483
19484
cristy73bd4a52010-10-05 11:24:23 +000019485#
19486# Check to make sure the static flag actually works.
19487#
19488wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19490$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019491if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019492 $as_echo_n "(cached) " >&6
19493else
19494 lt_cv_prog_compiler_static_works_CXX=no
19495 save_LDFLAGS="$LDFLAGS"
19496 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19497 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19499 # The linker can only warn and ignore the option if not recognized
19500 # So say no if there are warnings
19501 if test -s conftest.err; then
19502 # Append any errors to the config.log.
19503 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019504 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19506 if diff conftest.exp conftest.er2 >/dev/null; then
19507 lt_cv_prog_compiler_static_works_CXX=yes
19508 fi
19509 else
19510 lt_cv_prog_compiler_static_works_CXX=yes
19511 fi
19512 fi
19513 $RM -r conftest*
19514 LDFLAGS="$save_LDFLAGS"
19515
19516fi
19517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19518$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19519
19520if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19521 :
19522else
19523 lt_prog_compiler_static_CXX=
19524fi
19525
19526
19527
19528
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19530$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019531if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019532 $as_echo_n "(cached) " >&6
19533else
19534 lt_cv_prog_compiler_c_o_CXX=no
19535 $RM -r conftest 2>/dev/null
19536 mkdir conftest
19537 cd conftest
19538 mkdir out
19539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19540
19541 lt_compiler_flag="-o out/conftest2.$ac_objext"
19542 # Insert the option either (1) after the last *FLAGS variable, or
19543 # (2) before a word containing "conftest.", or (3) at the end.
19544 # Note that $ac_compile itself does not contain backslashes and begins
19545 # with a dollar sign (not a hyphen), so the echo should work correctly.
19546 lt_compile=`echo "$ac_compile" | $SED \
19547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19549 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019551 (eval "$lt_compile" 2>out/conftest.err)
19552 ac_status=$?
19553 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019555 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19556 then
19557 # The compiler can only warn and ignore the option if not recognized
19558 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019559 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019560 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19561 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19562 lt_cv_prog_compiler_c_o_CXX=yes
19563 fi
19564 fi
19565 chmod u+w . 2>&5
19566 $RM conftest*
19567 # SGI C++ compiler will create directory out/ii_files/ for
19568 # template instantiation
19569 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19570 $RM out/* && rmdir out
19571 cd ..
19572 $RM -r conftest
19573 $RM conftest*
19574
19575fi
19576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19577$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19578
19579
19580
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19582$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019583if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019584 $as_echo_n "(cached) " >&6
19585else
19586 lt_cv_prog_compiler_c_o_CXX=no
19587 $RM -r conftest 2>/dev/null
19588 mkdir conftest
19589 cd conftest
19590 mkdir out
19591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19592
19593 lt_compiler_flag="-o out/conftest2.$ac_objext"
19594 # Insert the option either (1) after the last *FLAGS variable, or
19595 # (2) before a word containing "conftest.", or (3) at the end.
19596 # Note that $ac_compile itself does not contain backslashes and begins
19597 # with a dollar sign (not a hyphen), so the echo should work correctly.
19598 lt_compile=`echo "$ac_compile" | $SED \
19599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19601 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019603 (eval "$lt_compile" 2>out/conftest.err)
19604 ac_status=$?
19605 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019607 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19608 then
19609 # The compiler can only warn and ignore the option if not recognized
19610 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19614 lt_cv_prog_compiler_c_o_CXX=yes
19615 fi
19616 fi
19617 chmod u+w . 2>&5
19618 $RM conftest*
19619 # SGI C++ compiler will create directory out/ii_files/ for
19620 # template instantiation
19621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19622 $RM out/* && rmdir out
19623 cd ..
19624 $RM -r conftest
19625 $RM conftest*
19626
19627fi
19628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19629$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19630
19631
19632
19633
19634hard_links="nottested"
19635if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19636 # do not overwrite the value of need_locks provided by the user
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19638$as_echo_n "checking if we can lock with hard links... " >&6; }
19639 hard_links=yes
19640 $RM conftest*
19641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19642 touch conftest.a
19643 ln conftest.a conftest.b 2>&5 || hard_links=no
19644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19646$as_echo "$hard_links" >&6; }
19647 if test "$hard_links" = no; then
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19649$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19650 need_locks=warn
19651 fi
19652else
19653 need_locks=no
19654fi
19655
19656
19657
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19659$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19660
19661 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019662 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019663 case $host_os in
19664 aix[4-9]*)
19665 # If we're using GNU nm, then we don't want the "-C" option.
19666 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019667 # Also, AIX nm treats weak defined symbols like other global defined
19668 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019669 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019670 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 +000019671 else
19672 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'
19673 fi
19674 ;;
19675 pw32*)
19676 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019677 ;;
cristy73bd4a52010-10-05 11:24:23 +000019678 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019679 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019680 cl*)
19681 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19682 ;;
cristyda16f162011-02-19 23:52:17 +000019683 *)
19684 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'
19685 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19686 ;;
19687 esac
19688 ;;
cristy73bd4a52010-10-05 11:24:23 +000019689 *)
19690 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019691 ;;
cristy73bd4a52010-10-05 11:24:23 +000019692 esac
cristy73bd4a52010-10-05 11:24:23 +000019693
19694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19695$as_echo "$ld_shlibs_CXX" >&6; }
19696test "$ld_shlibs_CXX" = no && can_build_shared=no
19697
19698with_gnu_ld_CXX=$with_gnu_ld
19699
19700
19701
19702
19703
19704
19705#
19706# Do we need to explicitly link libc?
19707#
19708case "x$archive_cmds_need_lc_CXX" in
19709x|xyes)
19710 # Assume -lc should be added
19711 archive_cmds_need_lc_CXX=yes
19712
19713 if test "$enable_shared" = yes && test "$GCC" = yes; then
19714 case $archive_cmds_CXX in
19715 *'~'*)
19716 # FIXME: we may have to deal with multi-command sequences.
19717 ;;
19718 '$CC '*)
19719 # Test whether the compiler implicitly links with -lc since on some
19720 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19721 # to ld, don't add -lc before -lgcc.
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19723$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019724if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019725 $as_echo_n "(cached) " >&6
19726else
19727 $RM conftest*
19728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019729
cristy0c60a692010-11-04 01:09:47 +000019730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019731 (eval $ac_compile) 2>&5
19732 ac_status=$?
19733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19734 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019735 soname=conftest
19736 lib=conftest
19737 libobjs=conftest.$ac_objext
19738 deplibs=
19739 wl=$lt_prog_compiler_wl_CXX
19740 pic_flag=$lt_prog_compiler_pic_CXX
19741 compiler_flags=-v
19742 linker_flags=-v
19743 verstring=
19744 output_objdir=.
19745 libname=conftest
19746 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19747 allow_undefined_flag_CXX=
19748 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 +000019749 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19750 ac_status=$?
19751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19752 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019753 then
19754 lt_cv_archive_cmds_need_lc_CXX=no
19755 else
19756 lt_cv_archive_cmds_need_lc_CXX=yes
19757 fi
19758 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19759 else
19760 cat conftest.err 1>&5
19761 fi
19762 $RM conftest*
19763
19764fi
19765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19766$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19767 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019768 ;;
19769 esac
19770 fi
19771 ;;
19772esac
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
19834
cristy73bd4a52010-10-05 11:24:23 +000019835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19836$as_echo_n "checking dynamic linker characteristics... " >&6; }
19837
19838library_names_spec=
19839libname_spec='lib$name'
19840soname_spec=
19841shrext_cmds=".so"
19842postinstall_cmds=
19843postuninstall_cmds=
19844finish_cmds=
19845finish_eval=
19846shlibpath_var=
19847shlibpath_overrides_runpath=unknown
19848version_type=none
19849dynamic_linker="$host_os ld.so"
19850sys_lib_dlsearch_path_spec="/lib /usr/lib"
19851need_lib_prefix=unknown
19852hardcode_into_libs=no
19853
19854# when you set need_version to no, make sure it does not cause -set_version
19855# flags to be left without arguments
19856need_version=unknown
19857
19858case $host_os in
19859aix3*)
cristy99bd5232011-12-07 14:38:20 +000019860 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19862 shlibpath_var=LIBPATH
19863
19864 # AIX 3 has no versioning support, so we append a major version to the name.
19865 soname_spec='${libname}${release}${shared_ext}$major'
19866 ;;
19867
19868aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019869 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019870 need_lib_prefix=no
19871 need_version=no
19872 hardcode_into_libs=yes
19873 if test "$host_cpu" = ia64; then
19874 # AIX 5 supports IA64
19875 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19876 shlibpath_var=LD_LIBRARY_PATH
19877 else
19878 # With GCC up to 2.95.x, collect2 would create an import file
19879 # for dependence libraries. The import file would start with
19880 # the line `#! .'. This would cause the generated library to
19881 # depend on `.', always an invalid library. This was fixed in
19882 # development snapshots of GCC prior to 3.0.
19883 case $host_os in
19884 aix4 | aix4.[01] | aix4.[01].*)
19885 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19886 echo ' yes '
19887 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19888 :
19889 else
19890 can_build_shared=no
19891 fi
19892 ;;
19893 esac
19894 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19895 # soname into executable. Probably we can add versioning support to
19896 # collect2, so additional links can be useful in future.
19897 if test "$aix_use_runtimelinking" = yes; then
19898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19899 # instead of lib<name>.a to let people know that these are not
19900 # typical AIX shared libraries.
19901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19902 else
19903 # We preserve .a as extension for shared libraries through AIX4.2
19904 # and later when we are not doing run time linking.
19905 library_names_spec='${libname}${release}.a $libname.a'
19906 soname_spec='${libname}${release}${shared_ext}$major'
19907 fi
19908 shlibpath_var=LIBPATH
19909 fi
19910 ;;
19911
19912amigaos*)
19913 case $host_cpu in
19914 powerpc)
19915 # Since July 2007 AmigaOS4 officially supports .so libraries.
19916 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19918 ;;
19919 m68k)
19920 library_names_spec='$libname.ixlibrary $libname.a'
19921 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019922 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 +000019923 ;;
19924 esac
19925 ;;
19926
19927beos*)
19928 library_names_spec='${libname}${shared_ext}'
19929 dynamic_linker="$host_os ld.so"
19930 shlibpath_var=LIBRARY_PATH
19931 ;;
19932
19933bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019934 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019935 need_version=no
19936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19937 soname_spec='${libname}${release}${shared_ext}$major'
19938 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19939 shlibpath_var=LD_LIBRARY_PATH
19940 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19941 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19942 # the default ld.so.conf also contains /usr/contrib/lib and
19943 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19944 # libtool to hard-code these into programs
19945 ;;
19946
19947cygwin* | mingw* | pw32* | cegcc*)
19948 version_type=windows
19949 shrext_cmds=".dll"
19950 need_version=no
19951 need_lib_prefix=no
19952
cristyda16f162011-02-19 23:52:17 +000019953 case $GCC,$cc_basename in
19954 yes,*)
19955 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019956 library_names_spec='$libname.dll.a'
19957 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19958 postinstall_cmds='base_file=`basename \${file}`~
19959 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19960 dldir=$destdir/`dirname \$dlpath`~
19961 test -d \$dldir || mkdir -p \$dldir~
19962 $install_prog $dir/$dlname \$dldir/$dlname~
19963 chmod a+x \$dldir/$dlname~
19964 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19965 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19966 fi'
19967 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19968 dlpath=$dir/\$dldll~
19969 $RM \$dlpath'
19970 shlibpath_overrides_runpath=yes
19971
19972 case $host_os in
19973 cygwin*)
19974 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19975 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019976
cristy73bd4a52010-10-05 11:24:23 +000019977 ;;
19978 mingw* | cegcc*)
19979 # MinGW DLLs use traditional 'lib' prefix
19980 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019981 ;;
19982 pw32*)
19983 # pw32 DLLs use 'pw' prefix rather than 'lib'
19984 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19985 ;;
19986 esac
cristyda16f162011-02-19 23:52:17 +000019987 dynamic_linker='Win32 ld.exe'
19988 ;;
19989
19990 *,cl*)
19991 # Native MSVC
19992 libname_spec='$name'
19993 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19994 library_names_spec='${libname}.dll.lib'
19995
19996 case $build_os in
19997 mingw*)
19998 sys_lib_search_path_spec=
19999 lt_save_ifs=$IFS
20000 IFS=';'
20001 for lt_path in $LIB
20002 do
20003 IFS=$lt_save_ifs
20004 # Let DOS variable expansion print the short 8.3 style file name.
20005 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20006 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20007 done
20008 IFS=$lt_save_ifs
20009 # Convert to MSYS style.
20010 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20011 ;;
20012 cygwin*)
20013 # Convert to unix form, then to dos form, then back to unix form
20014 # but this time dos style (no spaces!) so that the unix form looks
20015 # like /cygdrive/c/PROGRA~1:/cygdr...
20016 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20017 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20018 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20019 ;;
20020 *)
20021 sys_lib_search_path_spec="$LIB"
20022 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20023 # It is most probably a Windows format PATH.
20024 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20025 else
20026 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20027 fi
20028 # FIXME: find the short name or the path components, as spaces are
20029 # common. (e.g. "Program Files" -> "PROGRA~1")
20030 ;;
20031 esac
20032
20033 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20034 postinstall_cmds='base_file=`basename \${file}`~
20035 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20036 dldir=$destdir/`dirname \$dlpath`~
20037 test -d \$dldir || mkdir -p \$dldir~
20038 $install_prog $dir/$dlname \$dldir/$dlname'
20039 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20040 dlpath=$dir/\$dldll~
20041 $RM \$dlpath'
20042 shlibpath_overrides_runpath=yes
20043 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020044 ;;
20045
20046 *)
cristyda16f162011-02-19 23:52:17 +000020047 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020048 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020049 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020050 ;;
20051 esac
cristy73bd4a52010-10-05 11:24:23 +000020052 # FIXME: first we should search . and the directory the executable is in
20053 shlibpath_var=PATH
20054 ;;
20055
20056darwin* | rhapsody*)
20057 dynamic_linker="$host_os dyld"
20058 version_type=darwin
20059 need_lib_prefix=no
20060 need_version=no
20061 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20062 soname_spec='${libname}${release}${major}$shared_ext'
20063 shlibpath_overrides_runpath=yes
20064 shlibpath_var=DYLD_LIBRARY_PATH
20065 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20066
20067 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20068 ;;
20069
20070dgux*)
cristy99bd5232011-12-07 14:38:20 +000020071 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020072 need_lib_prefix=no
20073 need_version=no
20074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20075 soname_spec='${libname}${release}${shared_ext}$major'
20076 shlibpath_var=LD_LIBRARY_PATH
20077 ;;
20078
cristy73bd4a52010-10-05 11:24:23 +000020079freebsd* | dragonfly*)
20080 # DragonFly does not have aout. When/if they implement a new
20081 # versioning mechanism, adjust this.
20082 if test -x /usr/bin/objformat; then
20083 objformat=`/usr/bin/objformat`
20084 else
20085 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020086 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020087 *) objformat=elf ;;
20088 esac
20089 fi
20090 version_type=freebsd-$objformat
20091 case $version_type in
20092 freebsd-elf*)
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20094 need_version=no
20095 need_lib_prefix=no
20096 ;;
20097 freebsd-*)
20098 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20099 need_version=yes
20100 ;;
20101 esac
20102 shlibpath_var=LD_LIBRARY_PATH
20103 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020104 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020105 shlibpath_overrides_runpath=yes
20106 ;;
20107 freebsd3.[01]* | freebsdelf3.[01]*)
20108 shlibpath_overrides_runpath=yes
20109 hardcode_into_libs=yes
20110 ;;
20111 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20112 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20113 shlibpath_overrides_runpath=no
20114 hardcode_into_libs=yes
20115 ;;
20116 *) # from 4.6 on, and DragonFly
20117 shlibpath_overrides_runpath=yes
20118 hardcode_into_libs=yes
20119 ;;
20120 esac
20121 ;;
20122
20123gnu*)
cristy99bd5232011-12-07 14:38:20 +000020124 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020125 need_lib_prefix=no
20126 need_version=no
20127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20128 soname_spec='${libname}${release}${shared_ext}$major'
20129 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020130 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020131 hardcode_into_libs=yes
20132 ;;
20133
cristy0c60a692010-11-04 01:09:47 +000020134haiku*)
cristy99bd5232011-12-07 14:38:20 +000020135 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020136 need_lib_prefix=no
20137 need_version=no
20138 dynamic_linker="$host_os runtime_loader"
20139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20140 soname_spec='${libname}${release}${shared_ext}$major'
20141 shlibpath_var=LIBRARY_PATH
20142 shlibpath_overrides_runpath=yes
20143 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20144 hardcode_into_libs=yes
20145 ;;
20146
cristy73bd4a52010-10-05 11:24:23 +000020147hpux9* | hpux10* | hpux11*)
20148 # Give a soname corresponding to the major version so that dld.sl refuses to
20149 # link against other versions.
20150 version_type=sunos
20151 need_lib_prefix=no
20152 need_version=no
20153 case $host_cpu in
20154 ia64*)
20155 shrext_cmds='.so'
20156 hardcode_into_libs=yes
20157 dynamic_linker="$host_os dld.so"
20158 shlibpath_var=LD_LIBRARY_PATH
20159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20161 soname_spec='${libname}${release}${shared_ext}$major'
20162 if test "X$HPUX_IA64_MODE" = X32; then
20163 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20164 else
20165 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20166 fi
20167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20168 ;;
20169 hppa*64*)
20170 shrext_cmds='.sl'
20171 hardcode_into_libs=yes
20172 dynamic_linker="$host_os dld.sl"
20173 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20174 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20176 soname_spec='${libname}${release}${shared_ext}$major'
20177 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20179 ;;
20180 *)
20181 shrext_cmds='.sl'
20182 dynamic_linker="$host_os dld.sl"
20183 shlibpath_var=SHLIB_PATH
20184 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20186 soname_spec='${libname}${release}${shared_ext}$major'
20187 ;;
20188 esac
cristy0c60a692010-11-04 01:09:47 +000020189 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020190 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020191 # or fails outright, so override atomically:
20192 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020193 ;;
20194
20195interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020196 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020197 need_lib_prefix=no
20198 need_version=no
20199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20200 soname_spec='${libname}${release}${shared_ext}$major'
20201 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20202 shlibpath_var=LD_LIBRARY_PATH
20203 shlibpath_overrides_runpath=no
20204 hardcode_into_libs=yes
20205 ;;
20206
20207irix5* | irix6* | nonstopux*)
20208 case $host_os in
20209 nonstopux*) version_type=nonstopux ;;
20210 *)
20211 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020212 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020213 else
20214 version_type=irix
20215 fi ;;
20216 esac
20217 need_lib_prefix=no
20218 need_version=no
20219 soname_spec='${libname}${release}${shared_ext}$major'
20220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20221 case $host_os in
20222 irix5* | nonstopux*)
20223 libsuff= shlibsuff=
20224 ;;
20225 *)
20226 case $LD in # libtool.m4 will add one of these switches to LD
20227 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20228 libsuff= shlibsuff= libmagic=32-bit;;
20229 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20230 libsuff=32 shlibsuff=N32 libmagic=N32;;
20231 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20232 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20233 *) libsuff= shlibsuff= libmagic=never-match;;
20234 esac
20235 ;;
20236 esac
20237 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20238 shlibpath_overrides_runpath=no
20239 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20240 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20241 hardcode_into_libs=yes
20242 ;;
20243
20244# No shared lib support for Linux oldld, aout, or coff.
20245linux*oldld* | linux*aout* | linux*coff*)
20246 dynamic_linker=no
20247 ;;
20248
cristy99bd5232011-12-07 14:38:20 +000020249# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020250linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020251 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020252 need_lib_prefix=no
20253 need_version=no
20254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20255 soname_spec='${libname}${release}${shared_ext}$major'
20256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20257 shlibpath_var=LD_LIBRARY_PATH
20258 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020259
cristy73bd4a52010-10-05 11:24:23 +000020260 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020261 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020262 $as_echo_n "(cached) " >&6
20263else
20264 lt_cv_shlibpath_overrides_runpath=no
20265 save_LDFLAGS=$LDFLAGS
20266 save_libdir=$libdir
20267 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20268 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020270/* end confdefs.h. */
20271
20272int
20273main ()
20274{
20275
20276 ;
20277 return 0;
20278}
20279_ACEOF
20280if ac_fn_cxx_try_link "$LINENO"; then :
20281 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020282 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020283fi
20284fi
20285rm -f core conftest.err conftest.$ac_objext \
20286 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020287 LDFLAGS=$save_LDFLAGS
20288 libdir=$save_libdir
20289
20290fi
20291
20292 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020293
20294 # This implies no fast_install, which is unacceptable.
20295 # Some rework will be needed to allow for fast_install
20296 # before this can be enabled.
20297 hardcode_into_libs=yes
20298
20299 # Add ABI-specific directories to the system library path.
20300 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20301
20302 # Append ld.so.conf contents to the search path
20303 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020304 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 +000020305 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020306
cristy73bd4a52010-10-05 11:24:23 +000020307 fi
20308
20309 # We used to test for /lib/ld.so.1 and disable shared libraries on
20310 # powerpc, because MkLinux only supported shared libraries with the
20311 # GNU dynamic linker. Since this was broken with cross compilers,
20312 # most powerpc-linux boxes support dynamic linking these days and
20313 # people can always --disable-shared, the test was removed, and we
20314 # assume the GNU/Linux dynamic linker is in use.
20315 dynamic_linker='GNU/Linux ld.so'
20316 ;;
20317
20318netbsd*)
20319 version_type=sunos
20320 need_lib_prefix=no
20321 need_version=no
20322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20325 dynamic_linker='NetBSD (a.out) ld.so'
20326 else
20327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20328 soname_spec='${libname}${release}${shared_ext}$major'
20329 dynamic_linker='NetBSD ld.elf_so'
20330 fi
20331 shlibpath_var=LD_LIBRARY_PATH
20332 shlibpath_overrides_runpath=yes
20333 hardcode_into_libs=yes
20334 ;;
20335
20336newsos6)
cristy99bd5232011-12-07 14:38:20 +000020337 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20339 shlibpath_var=LD_LIBRARY_PATH
20340 shlibpath_overrides_runpath=yes
20341 ;;
20342
20343*nto* | *qnx*)
20344 version_type=qnx
20345 need_lib_prefix=no
20346 need_version=no
20347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20348 soname_spec='${libname}${release}${shared_ext}$major'
20349 shlibpath_var=LD_LIBRARY_PATH
20350 shlibpath_overrides_runpath=no
20351 hardcode_into_libs=yes
20352 dynamic_linker='ldqnx.so'
20353 ;;
20354
20355openbsd*)
20356 version_type=sunos
20357 sys_lib_dlsearch_path_spec="/usr/lib"
20358 need_lib_prefix=no
20359 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20360 case $host_os in
20361 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20362 *) need_version=no ;;
20363 esac
20364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20366 shlibpath_var=LD_LIBRARY_PATH
20367 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20368 case $host_os in
20369 openbsd2.[89] | openbsd2.[89].*)
20370 shlibpath_overrides_runpath=no
20371 ;;
20372 *)
20373 shlibpath_overrides_runpath=yes
20374 ;;
20375 esac
20376 else
20377 shlibpath_overrides_runpath=yes
20378 fi
20379 ;;
20380
20381os2*)
20382 libname_spec='$name'
20383 shrext_cmds=".dll"
20384 need_lib_prefix=no
20385 library_names_spec='$libname${shared_ext} $libname.a'
20386 dynamic_linker='OS/2 ld.exe'
20387 shlibpath_var=LIBPATH
20388 ;;
20389
20390osf3* | osf4* | osf5*)
20391 version_type=osf
20392 need_lib_prefix=no
20393 need_version=no
20394 soname_spec='${libname}${release}${shared_ext}$major'
20395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20396 shlibpath_var=LD_LIBRARY_PATH
20397 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20398 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20399 ;;
20400
20401rdos*)
20402 dynamic_linker=no
20403 ;;
20404
20405solaris*)
cristy99bd5232011-12-07 14:38:20 +000020406 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020407 need_lib_prefix=no
20408 need_version=no
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20410 soname_spec='${libname}${release}${shared_ext}$major'
20411 shlibpath_var=LD_LIBRARY_PATH
20412 shlibpath_overrides_runpath=yes
20413 hardcode_into_libs=yes
20414 # ldd complains unless libraries are executable
20415 postinstall_cmds='chmod +x $lib'
20416 ;;
20417
20418sunos4*)
20419 version_type=sunos
20420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20421 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20422 shlibpath_var=LD_LIBRARY_PATH
20423 shlibpath_overrides_runpath=yes
20424 if test "$with_gnu_ld" = yes; then
20425 need_lib_prefix=no
20426 fi
20427 need_version=yes
20428 ;;
20429
20430sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020431 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433 soname_spec='${libname}${release}${shared_ext}$major'
20434 shlibpath_var=LD_LIBRARY_PATH
20435 case $host_vendor in
20436 sni)
20437 shlibpath_overrides_runpath=no
20438 need_lib_prefix=no
20439 runpath_var=LD_RUN_PATH
20440 ;;
20441 siemens)
20442 need_lib_prefix=no
20443 ;;
20444 motorola)
20445 need_lib_prefix=no
20446 need_version=no
20447 shlibpath_overrides_runpath=no
20448 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20449 ;;
20450 esac
20451 ;;
20452
20453sysv4*MP*)
20454 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020455 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020456 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20457 soname_spec='$libname${shared_ext}.$major'
20458 shlibpath_var=LD_LIBRARY_PATH
20459 fi
20460 ;;
20461
20462sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20463 version_type=freebsd-elf
20464 need_lib_prefix=no
20465 need_version=no
20466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20467 soname_spec='${libname}${release}${shared_ext}$major'
20468 shlibpath_var=LD_LIBRARY_PATH
20469 shlibpath_overrides_runpath=yes
20470 hardcode_into_libs=yes
20471 if test "$with_gnu_ld" = yes; then
20472 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20473 else
20474 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20475 case $host_os in
20476 sco3.2v5*)
20477 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20478 ;;
20479 esac
20480 fi
20481 sys_lib_dlsearch_path_spec='/usr/lib'
20482 ;;
20483
20484tpf*)
20485 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020486 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020487 need_lib_prefix=no
20488 need_version=no
20489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20490 shlibpath_var=LD_LIBRARY_PATH
20491 shlibpath_overrides_runpath=no
20492 hardcode_into_libs=yes
20493 ;;
20494
20495uts4*)
cristy99bd5232011-12-07 14:38:20 +000020496 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20498 soname_spec='${libname}${release}${shared_ext}$major'
20499 shlibpath_var=LD_LIBRARY_PATH
20500 ;;
20501
20502*)
20503 dynamic_linker=no
20504 ;;
20505esac
20506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20507$as_echo "$dynamic_linker" >&6; }
20508test "$dynamic_linker" = no && can_build_shared=no
20509
20510variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20511if test "$GCC" = yes; then
20512 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20513fi
20514
20515if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20516 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20517fi
20518if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20519 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20520fi
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
20556
cristy0c60a692010-11-04 01:09:47 +000020557
20558
cristy73bd4a52010-10-05 11:24:23 +000020559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20560$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20561hardcode_action_CXX=
20562if test -n "$hardcode_libdir_flag_spec_CXX" ||
20563 test -n "$runpath_var_CXX" ||
20564 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20565
20566 # We can hardcode non-existent directories.
20567 if test "$hardcode_direct_CXX" != no &&
20568 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20569 # have to relink, otherwise we might link with an installed library
20570 # when we should be linking with a yet-to-be-installed one
20571 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20572 test "$hardcode_minus_L_CXX" != no; then
20573 # Linking always hardcodes the temporary library directory.
20574 hardcode_action_CXX=relink
20575 else
20576 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20577 hardcode_action_CXX=immediate
20578 fi
20579else
20580 # We cannot hardcode anything, or else we can only hardcode existing
20581 # directories.
20582 hardcode_action_CXX=unsupported
20583fi
20584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20585$as_echo "$hardcode_action_CXX" >&6; }
20586
20587if test "$hardcode_action_CXX" = relink ||
20588 test "$inherit_rpath_CXX" = yes; then
20589 # Fast installation is not supported
20590 enable_fast_install=no
20591elif test "$shlibpath_overrides_runpath" = yes ||
20592 test "$enable_shared" = no; then
20593 # Fast installation is not necessary
20594 enable_fast_install=needless
20595fi
20596
20597
20598
20599
20600
20601
20602
20603 fi # test -n "$compiler"
20604
20605 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020606 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020607 LDCXX=$LD
20608 LD=$lt_save_LD
20609 GCC=$lt_save_GCC
20610 with_gnu_ld=$lt_save_with_gnu_ld
20611 lt_cv_path_LDCXX=$lt_cv_path_LD
20612 lt_cv_path_LD=$lt_save_path_LD
20613 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20614 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20615fi # test "$_lt_caught_CXX_error" != yes
20616
20617ac_ext=c
20618ac_cpp='$CPP $CPPFLAGS'
20619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20621ac_compiler_gnu=$ac_cv_c_compiler_gnu
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
cristy99bd5232011-12-07 14:38:20 +000020635
20636
cristy73bd4a52010-10-05 11:24:23 +000020637 ac_config_commands="$ac_config_commands libtool"
20638
20639
20640
20641
20642# Only expand once:
20643
20644
20645
cristy3ed852e2009-09-05 21:47:34 +000020646
20647
cristy3ed852e2009-09-05 21:47:34 +000020648# Check to see if building shared libraries
20649libtool_build_shared_libs='no'
20650if test "$enable_shared" = 'yes'; then
20651 libtool_build_shared_libs='yes'
20652fi
20653
20654# Check to see if building static libraries
20655libtool_build_static_libs='no'
20656if test "$enable_static" = 'yes'; then
20657 libtool_build_static_libs='yes'
20658fi
20659
cristy73bd4a52010-10-05 11:24:23 +000020660 if test "${libtool_build_shared_libs}" = 'yes'; then
20661 WITH_SHARED_LIBS_TRUE=
20662 WITH_SHARED_LIBS_FALSE='#'
20663else
20664 WITH_SHARED_LIBS_TRUE='#'
20665 WITH_SHARED_LIBS_FALSE=
20666fi
20667
cristy3ed852e2009-09-05 21:47:34 +000020668#
20669# Enable support for building loadable modules
20670#
cristyaf4cbf32012-10-16 23:47:41 +000020671build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020672
20673# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020674if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020675 withval=$with_modules; with_modules=$withval
20676else
cristy5a1cefd2010-01-06 20:42:35 +000020677 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020678fi
20679
20680
20681# Only allow building loadable modules if we are building shared libraries
20682if test "$with_modules" != 'no' ; then
20683 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020684 { $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 +000020685$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020686 build_modules='no'
20687 else
20688 build_modules='yes'
20689 fi
cristy3ed852e2009-09-05 21:47:34 +000020690fi
cristyc6722092012-10-14 00:19:31 +000020691if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020692
cristy8b350f62009-11-15 23:12:43 +000020693$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020694
20695fi
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'
cristy09b53e12011-10-14 12:47:22 +000023461{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23462$as_echo "$as_me: $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'
cristy09b53e12011-10-14 12:47:22 +000023468{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23469$as_echo "$as_me: $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'
cristy09b53e12011-10-14 12:47:22 +000023475{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23476$as_echo "$as_me: $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'
cristy09b53e12011-10-14 12:47:22 +000023482{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23483$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000023497{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23498$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000023513{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23514$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000023534{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23535$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000023555{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23556$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000023571{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23572$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000023587{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23588$as_echo "$as_me: $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 :
cristy09b53e12011-10-14 12:47:22 +000023606 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23607$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023608else
cristy09b53e12011-10-14 12:47:22 +000023609 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23610$as_echo "$as_me: 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 :
cristy09b53e12011-10-14 12:47:22 +000023625 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23626$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000023631 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23632$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000024802 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24803$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000024809 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24810$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000025582 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25583$as_echo "$as_me: $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; }
cristy09b53e12011-10-14 12:47:22 +000026084 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26085$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000026184 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26185$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000026193 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26194$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026195 have_umem='yes'
26196 fi
26197 else
cristy09b53e12011-10-14 12:47:22 +000026198 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26199$as_echo "$as_me: 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=''
cristy09b53e12011-10-14 12:47:22 +000026342 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26343$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000026346 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26347$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000026450 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26451$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000026459 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26460$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026461 have_bzlib='yes'
26462 fi
26463 else
cristy09b53e12011-10-14 12:47:22 +000026464 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26465$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000027169 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27170$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000027173 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27174$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000027389 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27390$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000027393 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27394$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000027670 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27671$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000027679 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27680$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027681 have_zlib='yes'
27682 fi
27683 else
cristy09b53e12011-10-14 12:47:22 +000027684 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27685$as_echo "$as_me: 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
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27704$as_echo "$as_me: -------------------------------------------------------------" >&6;}
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
27706$as_echo_n "checking for libltdl... " >&6; }
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27708$as_echo "$as_me: " >&6;}
27709 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
cristy09b53e12011-10-14 12:47:22 +000027869 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27870$as_echo "$as_me: -------------------------------------------------------------" >&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
cristy09b53e12011-10-14 12:47:22 +000027938 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27939$as_echo "$as_me: " >&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
cristy3ed852e2009-09-05 21:47:34 +000027948 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27949 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
cristy09b53e12011-10-14 12:47:22 +000027983 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27984$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000027987 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27988$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000028150 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28151$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000028160 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28161$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028162 have_dps='yes'
28163 fi
28164 else
cristy09b53e12011-10-14 12:47:22 +000028165 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28166$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000028200 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28201$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000028204 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28205$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000028262 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28263$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000028271 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28272$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028273 have_djvu='yes'
28274 fi
28275 else
cristy09b53e12011-10-14 12:47:22 +000028276 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28277$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000028327 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28328$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000028331 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28332$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000028389 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28390$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000028398 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28399$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028400 have_fftw='yes'
28401 fi
28402 else
cristy09b53e12011-10-14 12:47:22 +000028403 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28404$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000028437 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28438$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000028441 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28442$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000028512 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28513$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028514 have_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
cristy09b53e12011-10-14 12:47:22 +000028520 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28521$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028522 have_fpx='yes'
28523 PERLMAINCC="$CXX"
28524 fi
28525 else
cristy09b53e12011-10-14 12:47:22 +000028526 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28527$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028528 fi
28529fi
cristy73bd4a52010-10-05 11:24:23 +000028530 if test "$have_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
cristy09b53e12011-10-14 12:47:22 +000028562 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28563$as_echo "$as_me: -------------------------------------------------------------" >&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
cristy09b53e12011-10-14 12:47:22 +000028631 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28632$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000028676 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28677$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28681$as_echo "$as_me: " >&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=''
cristy09b53e12011-10-14 12:47:22 +000028821 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28822$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000028834 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28835$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028836 have_freetype='yes'
28837 fi
cristy81beccd2011-10-03 18:17:24 +000028838 else
cristy09b53e12011-10-14 12:47:22 +000028839 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28840$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000028877 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28878$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000028881 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28882$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000028988 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28989$as_echo "$as_me: 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'
cristy09b53e12011-10-14 12:47:22 +000028995 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
28996$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028997 else
cristy09b53e12011-10-14 12:47:22 +000028998 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
28999$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000029009 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29010$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000029079 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29080$as_echo "$as_me: -------------------------------------------------------------" >&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
cristy09b53e12011-10-14 12:47:22 +000029148 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29149$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000029189 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29190$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000029193 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29194$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000029251 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29252$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000029260 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29261$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029262 have_jbig='yes'
29263 fi
29264 else
cristy09b53e12011-10-14 12:47:22 +000029265 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29266$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000029299 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29300$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000029303 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29304$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000029422 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29423$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000029431 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29432$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029433 have_jpeg='yes'
29434 fi
29435 else
cristy09b53e12011-10-14 12:47:22 +000029436 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29437$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000029470 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29471$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000029474 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29475$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000029532 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29533$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000029541 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29542$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029543 have_jp2='yes'
29544 fi
29545 else
cristy09b53e12011-10-14 12:47:22 +000029546 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29547$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000029593 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29594$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000029597 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29598$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000029684 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29685$as_echo "$as_me: 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"
cristy09b53e12011-10-14 12:47:22 +000029690 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29691$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029692 have_lcms2='yes'
29693 fi
cristyd09bcf92010-03-25 03:04:45 +000029694 else
cristy09b53e12011-10-14 12:47:22 +000029695 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29696$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000029709 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29710$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000029713 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29714$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000029802 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29803$as_echo "$as_me: 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"
cristy09b53e12011-10-14 12:47:22 +000029808 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29809$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029810 have_lcms='yes'
29811 fi
cristy3ed852e2009-09-05 21:47:34 +000029812 else
cristy09b53e12011-10-14 12:47:22 +000029813 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29814$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000029856 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29857$as_echo "$as_me: -------------------------------------------------------------" >&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
cristy09b53e12011-10-14 12:47:22 +000029925 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29926$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000029963 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29964$as_echo "$as_me: -------------------------------------------------------------" >&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
30032 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030033$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000030078 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30079$as_echo "$as_me: -------------------------------------------------------------" >&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
cristy09b53e12011-10-14 12:47:22 +000030147 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30148$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000030394 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30395$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000030398 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30399$as_echo "$as_me: " >&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`
cristy09b53e12011-10-14 12:47:22 +000030455 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30456$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030457 else
30458 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030459 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30460$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030461 fi
30462 else
30463 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030464 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30465$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000030735 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30736$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000030744 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30745$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000030790 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30791$as_echo "$as_me: -------------------------------------------------------------" >&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
cristy09b53e12011-10-14 12:47:22 +000030859 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30860$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000030928 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30929$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000030989 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30990$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000030993 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30994$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000031227 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31228$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000031236 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31237$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000031268 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31269$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000031302 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31303$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000031306 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31307$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000031364 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31365$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000031373 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31374$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031375 have_webp='yes'
31376 fi
31377 else
cristy09b53e12011-10-14 12:47:22 +000031378 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31379$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000031601 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31602$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000031605 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31606$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000031801 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31802$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000031812 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31813$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031814 have_xml='yes'
31815 fi
31816 else
cristy09b53e12011-10-14 12:47:22 +000031817 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31818$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000032049{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32050$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000032053{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32054$as_echo "$as_me: " >&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" />'
cristy09b53e12011-10-14 12:47:22 +000033926 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
33927$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000033928else
cristy09b53e12011-10-14 12:47:22 +000033929 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33930$as_echo "$as_me: 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" />'
cristy09b53e12011-10-14 12:47:22 +000033990 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
33991$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000033992else
cristy09b53e12011-10-14 12:47:22 +000033993 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33994$as_echo "$as_me: 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
cristy09b53e12011-10-14 12:47:22 +000034368 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34369$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000034372 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34373$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000034382 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34383$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000034393 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34394$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000034404 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34405$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000034423 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34424$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000034427 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34428$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000034437 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34438$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000034448 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34449$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000034459 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34460$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000034480 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34481$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000034484 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34485$as_echo "$as_me: " >&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
cristy09b53e12011-10-14 12:47:22 +000034493 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34494$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000034504 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34505$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000034515 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34516$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000034526 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34527$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000034537 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34538$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000034548 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34549$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000034559 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34560$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000034570 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34571$as_echo "$as_me: $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
cristy09b53e12011-10-14 12:47:22 +000034591 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34592$as_echo "$as_me: -------------------------------------------------------------" >&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; }
cristy09b53e12011-10-14 12:47:22 +000034595 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34596$as_echo "$as_me: " >&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
34784# Create a simple string containing format names for all delegate libraries
34785DELEGATES=''
34786if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34787if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34788if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34789if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34790if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34791if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34792if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34793if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34794if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34795if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34796if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34797if test "$have_jpeg" = 'yes'; then
34798 DELEGATES="$DELEGATES jpeg";
34799 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34800fi
34801if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034802if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034803if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34804if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034805if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034806if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34807if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000034808if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000034809if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34810if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34811if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34812if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34813if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34814if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34815if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34816
34817
34818
34819#
34820# Handle special compiler flags
34821#
34822
34823# Add '-p' if prof source profiling support enabled
34824if test "$enable_prof" = 'yes'; then
34825 CFLAGS="-p $CFLAGS"
34826 CXXFLAGS="-p $CXXFLAGS"
34827 LDFLAGS="-p $LDFLAGS"
34828fi
34829
34830# Add '-pg' if gprof source profiling support enabled
34831if test "$enable_gprof" = 'yes'; then
34832 CFLAGS="-pg $CFLAGS"
34833 CXXFLAGS="-pg $CXXFLAGS"
34834 LDFLAGS="-pg $LDFLAGS"
34835fi
34836
34837# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34838# This is a gcc-specific feature
34839if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034841$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034842if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034843 $as_echo_n "(cached) " >&6
34844else
34845 ac_check_lib_save_LIBS=$LIBS
34846LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034848/* end confdefs.h. */
34849
34850/* Override any GCC internal prototype to avoid an error.
34851 Use char because int might match the return type of a GCC
34852 builtin and then its argument prototype would still apply. */
34853#ifdef __cplusplus
34854extern "C"
34855#endif
34856char _gcov_init ();
34857int
34858main ()
34859{
34860return _gcov_init ();
34861 ;
34862 return 0;
34863}
34864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034865if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034866 ac_cv_lib_gcov__gcov_init=yes
34867else
cristy8b350f62009-11-15 23:12:43 +000034868 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034869fi
cristy8b350f62009-11-15 23:12:43 +000034870rm -f core conftest.err conftest.$ac_objext \
34871 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034872LIBS=$ac_check_lib_save_LIBS
34873fi
cristy8b350f62009-11-15 23:12:43 +000034874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034875$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034876if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034877 cat >>confdefs.h <<_ACEOF
34878#define HAVE_LIBGCOV 1
34879_ACEOF
34880
34881 LIBS="-lgcov $LIBS"
34882
34883fi
34884
cristy8b350f62009-11-15 23:12:43 +000034885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034886$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034887if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034888 $as_echo_n "(cached) " >&6
34889else
34890 ac_check_lib_save_LIBS=$LIBS
34891LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034893/* end confdefs.h. */
34894
34895/* Override any GCC internal prototype to avoid an error.
34896 Use char because int might match the return type of a GCC
34897 builtin and then its argument prototype would still apply. */
34898#ifdef __cplusplus
34899extern "C"
34900#endif
34901char __gcov_init ();
34902int
34903main ()
34904{
34905return __gcov_init ();
34906 ;
34907 return 0;
34908}
34909_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034910if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034911 ac_cv_lib_gcov___gcov_init=yes
34912else
cristy8b350f62009-11-15 23:12:43 +000034913 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034914fi
cristy8b350f62009-11-15 23:12:43 +000034915rm -f core conftest.err conftest.$ac_objext \
34916 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034917LIBS=$ac_check_lib_save_LIBS
34918fi
cristy8b350f62009-11-15 23:12:43 +000034919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034920$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034921if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034922 cat >>confdefs.h <<_ACEOF
34923#define HAVE_LIBGCOV 1
34924_ACEOF
34925
34926 LIBS="-lgcov $LIBS"
34927
34928fi
34929
34930 case "$target_os" in
34931 darwin*)
34932 OSX_GCOV_LDFLAG="-Wl,-single_module"
34933 ;;
34934 *)
34935 OSX_GCOV_LDFLAG=""
34936 ;;
34937 esac
34938
34939 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34940 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34941 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34942fi
34943
34944#
34945# Build library dependency list for libMagickCore
34946#
34947
cristyc6722092012-10-14 00:19:31 +000034948if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000034949 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 +000034950else
cristy3a75f062012-09-08 23:29:40 +000034951 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 +000034952fi
34953
34954
34955#
34956# Remove extraneous spaces from output variables (asthetic)
34957#
34958X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34959X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34960X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34961X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34962
34963CC=`echo $CC | sed -e 's/ */ /g'`
34964CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34965CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34966CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34967DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34968DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34969LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34970TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34971MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34972#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34973
34974# Pass only user-provided LIBS as "global" libraries
34975LIBS=$USER_LIBS
34976
34977#AC_SUBST(CPPFLAGS)
34978
34979#AC_SUBST(LDFLAGS)
34980#AC_SUBST(X_PRE_LIBS)
34981#AC_SUBST(X_LIBS)
34982#AC_SUBST(X_EXTRA_LIBS)
34983
34984MAGICK_CFLAGS=$CFLAGS
34985MAGICK_CXXFLAGS="$CXXFLAGS"
34986MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
34987MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
34988MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000034989MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000034990
34991
34992
34993
34994
34995
34996
34997
cristyfd9dcd42010-08-08 18:07:02 +000034998
cristy154f9fa2012-12-05 19:30:42 +000034999
cristy3ed852e2009-09-05 21:47:34 +000035000# Set configured scripts to executable.
35001ac_config_commands="$ac_config_commands default"
35002
cristy2bd4b6e2012-07-22 15:29:11 +000035003ac_config_commands="$ac_config_commands magick.sh.in"
35004
cristy3ed852e2009-09-05 21:47:34 +000035005ac_config_commands="$ac_config_commands MagickCore-config.in"
35006
cristy3ed852e2009-09-05 21:47:34 +000035007ac_config_commands="$ac_config_commands MagickWand-config.in"
35008
cristy3ed852e2009-09-05 21:47:34 +000035009ac_config_commands="$ac_config_commands Magick++-config.in"
35010
35011ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35012
35013
cristy09b53e12011-10-14 12:47:22 +000035014{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35015$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35016{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35017$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035018cat >confcache <<\_ACEOF
35019# This file is a shell script that caches the results of configure
35020# tests run on this system so they can be shared between configure
35021# scripts and configure runs, see configure's option --config-cache.
35022# It is not useful on other systems. If it contains results you don't
35023# want to keep, you may remove or edit it.
35024#
35025# config.status only pays attention to the cache file if you give it
35026# the --recheck option to rerun configure.
35027#
35028# `ac_cv_env_foo' variables (set or unset) will be overridden when
35029# loading this file, other *unset* `ac_cv_foo' will be assigned the
35030# following values.
35031
35032_ACEOF
35033
35034# The following way of writing the cache mishandles newlines in values,
35035# but we know of no workaround that is simple, portable, and efficient.
35036# So, we kill variables containing newlines.
35037# Ultrix sh set writes to stderr and can't be redirected directly,
35038# and sets the high bit in the cache file unless we assign to the vars.
35039(
35040 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35041 eval ac_val=\$$ac_var
35042 case $ac_val in #(
35043 *${as_nl}*)
35044 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035046$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35047 esac
35048 case $ac_var in #(
35049 _ | IFS | as_nl) ;; #(
35050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035051 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035052 esac ;;
35053 esac
35054 done
35055
35056 (set) 2>&1 |
35057 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35058 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035059 # `set' does not quote correctly, so add quotes: double-quote
35060 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035061 sed -n \
35062 "s/'/'\\\\''/g;
35063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35064 ;; #(
35065 *)
35066 # `set' quotes correctly as required by POSIX, so do not add quotes.
35067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35068 ;;
35069 esac |
35070 sort
35071) |
35072 sed '
35073 /^ac_cv_env_/b end
35074 t clear
35075 :clear
35076 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35077 t end
35078 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35079 :end' >>confcache
35080if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35081 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035082 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035083 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035084$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035085 if test ! -f "$cache_file" || test -h "$cache_file"; then
35086 cat confcache >"$cache_file"
35087 else
35088 case $cache_file in #(
35089 */* | ?:*)
35090 mv -f confcache "$cache_file"$$ &&
35091 mv -f "$cache_file"$$ "$cache_file" ;; #(
35092 *)
35093 mv -f confcache "$cache_file" ;;
35094 esac
35095 fi
35096 fi
cristy3ed852e2009-09-05 21:47:34 +000035097 else
cristy8b350f62009-11-15 23:12:43 +000035098 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035099$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35100 fi
35101fi
35102rm -f confcache
35103
35104test "x$prefix" = xNONE && prefix=$ac_default_prefix
35105# Let make expand exec_prefix.
35106test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35107
35108DEFS=-DHAVE_CONFIG_H
35109
35110ac_libobjs=
35111ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035112U=
cristy3ed852e2009-09-05 21:47:34 +000035113for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35114 # 1. Remove the extension, and $U if already installed.
35115 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35116 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35117 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35118 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035119 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35120 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035121done
35122LIBOBJS=$ac_libobjs
35123
35124LTLIBOBJS=$ac_ltlibobjs
35125
35126
cristyc0890a62012-07-19 00:18:20 +000035127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35128$as_echo_n "checking that generated files are newer than configure... " >&6; }
35129 if test -n "$am_sleep_pid"; then
35130 # Hide warnings about reused PIDs.
35131 wait $am_sleep_pid 2>/dev/null
35132 fi
35133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35134$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035135 if test -n "$EXEEXT"; then
35136 am__EXEEXT_TRUE=
35137 am__EXEEXT_FALSE='#'
35138else
35139 am__EXEEXT_TRUE='#'
35140 am__EXEEXT_FALSE=
35141fi
cristy3ed852e2009-09-05 21:47:34 +000035142
cristy73bd4a52010-10-05 11:24:23 +000035143if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035144 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035145Usually this means the macro was only invoked conditionally." "$LINENO" 5
35146fi
35147if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035148 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035149Usually this means the macro was only invoked conditionally." "$LINENO" 5
35150fi
35151if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035152 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035153Usually this means the macro was only invoked conditionally." "$LINENO" 5
35154fi
35155if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035156 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035157Usually this means the macro was only invoked conditionally." "$LINENO" 5
35158fi
cristy9b86f202012-11-28 21:55:35 +000035159if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35160 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35161Usually this means the macro was only invoked conditionally." "$LINENO" 5
35162fi
cristy73bd4a52010-10-05 11:24:23 +000035163if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035164 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035165Usually this means the macro was only invoked conditionally." "$LINENO" 5
35166fi
35167if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035168 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035169Usually this means the macro was only invoked conditionally." "$LINENO" 5
35170fi
35171if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035172 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035173Usually this means the macro was only invoked conditionally." "$LINENO" 5
35174fi
35175if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035176 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035177Usually this means the macro was only invoked conditionally." "$LINENO" 5
35178fi
cristy73bd4a52010-10-05 11:24:23 +000035179if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035180 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035181Usually this means the macro was only invoked conditionally." "$LINENO" 5
35182fi
35183if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035184 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035185Usually this means the macro was only invoked conditionally." "$LINENO" 5
35186fi
cristy73bd4a52010-10-05 11:24:23 +000035187if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035188 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035189Usually this means the macro was only invoked conditionally." "$LINENO" 5
35190fi
cristy71d8c202012-03-20 17:05:01 +000035191if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35192 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35193Usually this means the macro was only invoked conditionally." "$LINENO" 5
35194fi
cristy73bd4a52010-10-05 11:24:23 +000035195
35196if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035197 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035198Usually this means the macro was only invoked conditionally." "$LINENO" 5
35199fi
35200if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035201 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035202Usually this means the macro was only invoked conditionally." "$LINENO" 5
35203fi
35204if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035205 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035206Usually this means the macro was only invoked conditionally." "$LINENO" 5
35207fi
35208if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035209 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035210Usually this means the macro was only invoked conditionally." "$LINENO" 5
35211fi
35212if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035213 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035214Usually this means the macro was only invoked conditionally." "$LINENO" 5
35215fi
35216if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035217 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035218Usually this means the macro was only invoked conditionally." "$LINENO" 5
35219fi
cristy5eef09f2012-10-16 12:08:28 +000035220if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35221 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35222Usually this means the macro was only invoked conditionally." "$LINENO" 5
35223fi
cristy73bd4a52010-10-05 11:24:23 +000035224if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035225 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035226Usually this means the macro was only invoked conditionally." "$LINENO" 5
35227fi
35228if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035229 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035230Usually this means the macro was only invoked conditionally." "$LINENO" 5
35231fi
35232if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035233 as_fn_error $? "conditional \"DJVU_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 "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035237 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035238Usually this means the macro was only invoked conditionally." "$LINENO" 5
35239fi
35240if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035241 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035242Usually this means the macro was only invoked conditionally." "$LINENO" 5
35243fi
35244if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035245 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035246Usually this means the macro was only invoked conditionally." "$LINENO" 5
35247fi
35248if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035249 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035250Usually this means the macro was only invoked conditionally." "$LINENO" 5
35251fi
35252if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035253 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035254Usually this means the macro was only invoked conditionally." "$LINENO" 5
35255fi
35256if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035257 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035258Usually this means the macro was only invoked conditionally." "$LINENO" 5
35259fi
35260if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035261 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035262Usually this means the macro was only invoked conditionally." "$LINENO" 5
35263fi
35264if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035265 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035266Usually this means the macro was only invoked conditionally." "$LINENO" 5
35267fi
35268if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035269 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035270Usually this means the macro was only invoked conditionally." "$LINENO" 5
35271fi
35272if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035273 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035274Usually this means the macro was only invoked conditionally." "$LINENO" 5
35275fi
35276if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035277 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035278Usually this means the macro was only invoked conditionally." "$LINENO" 5
35279fi
cristyfbb0ef02010-12-19 02:32:11 +000035280if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35281 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35282Usually this means the macro was only invoked conditionally." "$LINENO" 5
35283fi
cristy73bd4a52010-10-05 11:24:23 +000035284if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035285 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035286Usually this means the macro was only invoked conditionally." "$LINENO" 5
35287fi
cristy41cbe8a2011-10-27 01:35:18 +000035288if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35289 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35290Usually this means the macro was only invoked conditionally." "$LINENO" 5
35291fi
cristya054b762012-03-26 23:16:00 +000035292if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35293 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035294Usually this means the macro was only invoked conditionally." "$LINENO" 5
35295fi
cristy73bd4a52010-10-05 11:24:23 +000035296if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035297 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035298Usually this means the macro was only invoked conditionally." "$LINENO" 5
35299fi
35300if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035301 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035302Usually this means the macro was only invoked conditionally." "$LINENO" 5
35303fi
35304if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035305 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035306Usually this means the macro was only invoked conditionally." "$LINENO" 5
35307fi
35308if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035309 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035310Usually this means the macro was only invoked conditionally." "$LINENO" 5
35311fi
cristyb1860752011-03-14 00:27:46 +000035312if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35313 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35314Usually this means the macro was only invoked conditionally." "$LINENO" 5
35315fi
cristy73bd4a52010-10-05 11:24:23 +000035316if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035317 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035318Usually this means the macro was only invoked conditionally." "$LINENO" 5
35319fi
35320if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035321 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035322Usually this means the macro was only invoked conditionally." "$LINENO" 5
35323fi
35324if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035325 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035326Usually this means the macro was only invoked conditionally." "$LINENO" 5
35327fi
35328if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035329 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035330Usually this means the macro was only invoked conditionally." "$LINENO" 5
35331fi
35332if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035333 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035334Usually this means the macro was only invoked conditionally." "$LINENO" 5
35335fi
35336if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035337 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035338Usually this means the macro was only invoked conditionally." "$LINENO" 5
35339fi
35340if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035341 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035342Usually this means the macro was only invoked conditionally." "$LINENO" 5
35343fi
35344if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035345 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035346Usually this means the macro was only invoked conditionally." "$LINENO" 5
35347fi
cristy3ed852e2009-09-05 21:47:34 +000035348
cristyda16f162011-02-19 23:52:17 +000035349: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035350ac_write_fail=0
35351ac_clean_files_save=$ac_clean_files
35352ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035353{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035354$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035355as_write_fail=0
35356cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035357#! $SHELL
35358# Generated by $as_me.
35359# Run this file to recreate the current configuration.
35360# Compiler output produced by configure, useful for debugging
35361# configure, is in config.log if it exists.
35362
35363debug=false
35364ac_cs_recheck=false
35365ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035366
cristy8b350f62009-11-15 23:12:43 +000035367SHELL=\${CONFIG_SHELL-$SHELL}
35368export SHELL
35369_ASEOF
35370cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35371## -------------------- ##
35372## M4sh Initialization. ##
35373## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035374
35375# Be more Bourne compatible
35376DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035377if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035378 emulate sh
35379 NULLCMD=:
35380 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35381 # is contrary to our usage. Disable this feature.
35382 alias -g '${1+"$@"}'='"$@"'
35383 setopt NO_GLOB_SUBST
35384else
cristy8b350f62009-11-15 23:12:43 +000035385 case `(set -o) 2>/dev/null` in #(
35386 *posix*) :
35387 set -o posix ;; #(
35388 *) :
35389 ;;
cristy3ed852e2009-09-05 21:47:34 +000035390esac
cristy3ed852e2009-09-05 21:47:34 +000035391fi
35392
35393
cristy3ed852e2009-09-05 21:47:34 +000035394as_nl='
35395'
35396export as_nl
35397# Printing a long string crashes Solaris 7 /usr/bin/printf.
35398as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35399as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35400as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035401# Prefer a ksh shell builtin over an external printf program on Solaris,
35402# but without wasting forks for bash or zsh.
35403if test -z "$BASH_VERSION$ZSH_VERSION" \
35404 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35405 as_echo='print -r --'
35406 as_echo_n='print -rn --'
35407elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035408 as_echo='printf %s\n'
35409 as_echo_n='printf %s'
35410else
35411 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35412 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35413 as_echo_n='/usr/ucb/echo -n'
35414 else
35415 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35416 as_echo_n_body='eval
35417 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035418 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035419 *"$as_nl"*)
35420 expr "X$arg" : "X\\(.*\\)$as_nl";
35421 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35422 esac;
35423 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35424 '
35425 export as_echo_n_body
35426 as_echo_n='sh -c $as_echo_n_body as_echo'
35427 fi
35428 export as_echo_body
35429 as_echo='sh -c $as_echo_body as_echo'
35430fi
35431
35432# The user is always right.
35433if test "${PATH_SEPARATOR+set}" != set; then
35434 PATH_SEPARATOR=:
35435 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35436 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35437 PATH_SEPARATOR=';'
35438 }
35439fi
35440
cristy3ed852e2009-09-05 21:47:34 +000035441
35442# IFS
35443# We need space, tab and new line, in precisely that order. Quoting is
35444# there to prevent editors from complaining about space-tab.
35445# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35446# splitting by setting IFS to empty value.)
35447IFS=" "" $as_nl"
35448
35449# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035450as_myself=
cristy8b350f62009-11-15 23:12:43 +000035451case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035452 *[\\/]* ) as_myself=$0 ;;
35453 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35454for as_dir in $PATH
35455do
35456 IFS=$as_save_IFS
35457 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035458 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35459 done
cristy3ed852e2009-09-05 21:47:34 +000035460IFS=$as_save_IFS
35461
35462 ;;
35463esac
35464# We did not find ourselves, most probably we were run as `sh COMMAND'
35465# in which case we are not to be found in the path.
35466if test "x$as_myself" = x; then
35467 as_myself=$0
35468fi
35469if test ! -f "$as_myself"; then
35470 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035471 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035472fi
35473
cristy8b350f62009-11-15 23:12:43 +000035474# Unset variables that we do not need and which cause bugs (e.g. in
35475# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35476# suppresses any "Segmentation fault" message there. '((' could
35477# trigger a bug in pdksh 5.2.14.
35478for as_var in BASH_ENV ENV MAIL MAILPATH
35479do eval test x\${$as_var+set} = xset \
35480 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035481done
35482PS1='$ '
35483PS2='> '
35484PS4='+ '
35485
35486# NLS nuisances.
35487LC_ALL=C
35488export LC_ALL
35489LANGUAGE=C
35490export LANGUAGE
35491
cristy8b350f62009-11-15 23:12:43 +000035492# CDPATH.
35493(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35494
35495
cristy98dddb52010-11-04 00:30:15 +000035496# as_fn_error STATUS ERROR [LINENO LOG_FD]
35497# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035498# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35499# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035500# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035501as_fn_error ()
35502{
cristy98dddb52010-11-04 00:30:15 +000035503 as_status=$1; test $as_status -eq 0 && as_status=1
35504 if test "$4"; then
35505 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35506 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035507 fi
cristy98dddb52010-11-04 00:30:15 +000035508 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035509 as_fn_exit $as_status
35510} # as_fn_error
35511
35512
35513# as_fn_set_status STATUS
35514# -----------------------
35515# Set $? to STATUS, without forking.
35516as_fn_set_status ()
35517{
35518 return $1
35519} # as_fn_set_status
35520
35521# as_fn_exit STATUS
35522# -----------------
35523# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35524as_fn_exit ()
35525{
35526 set +e
35527 as_fn_set_status $1
35528 exit $1
35529} # as_fn_exit
35530
35531# as_fn_unset VAR
35532# ---------------
35533# Portably unset VAR.
35534as_fn_unset ()
35535{
35536 { eval $1=; unset $1;}
35537}
35538as_unset=as_fn_unset
35539# as_fn_append VAR VALUE
35540# ----------------------
35541# Append the text in VALUE to the end of the definition contained in VAR. Take
35542# advantage of any shell optimizations that allow amortized linear growth over
35543# repeated appends, instead of the typical quadratic growth present in naive
35544# implementations.
35545if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35546 eval 'as_fn_append ()
35547 {
35548 eval $1+=\$2
35549 }'
35550else
35551 as_fn_append ()
35552 {
35553 eval $1=\$$1\$2
35554 }
35555fi # as_fn_append
35556
35557# as_fn_arith ARG...
35558# ------------------
35559# Perform arithmetic evaluation on the ARGs, and store the result in the
35560# global $as_val. Take advantage of shells that can avoid forks. The arguments
35561# must be portable across $(()) and expr.
35562if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35563 eval 'as_fn_arith ()
35564 {
35565 as_val=$(( $* ))
35566 }'
35567else
35568 as_fn_arith ()
35569 {
35570 as_val=`expr "$@" || test $? -eq 1`
35571 }
35572fi # as_fn_arith
35573
35574
cristy3ed852e2009-09-05 21:47:34 +000035575if expr a : '\(a\)' >/dev/null 2>&1 &&
35576 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35577 as_expr=expr
35578else
35579 as_expr=false
35580fi
35581
35582if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35583 as_basename=basename
35584else
35585 as_basename=false
35586fi
35587
cristy8b350f62009-11-15 23:12:43 +000035588if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35589 as_dirname=dirname
35590else
35591 as_dirname=false
35592fi
cristy3ed852e2009-09-05 21:47:34 +000035593
cristy3ed852e2009-09-05 21:47:34 +000035594as_me=`$as_basename -- "$0" ||
35595$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35596 X"$0" : 'X\(//\)$' \| \
35597 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35598$as_echo X/"$0" |
35599 sed '/^.*\/\([^/][^/]*\)\/*$/{
35600 s//\1/
35601 q
35602 }
35603 /^X\/\(\/\/\)$/{
35604 s//\1/
35605 q
35606 }
35607 /^X\/\(\/\).*/{
35608 s//\1/
35609 q
35610 }
35611 s/.*/./; q'`
35612
cristy8b350f62009-11-15 23:12:43 +000035613# Avoid depending upon Character Ranges.
35614as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35615as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35616as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35617as_cr_digits='0123456789'
35618as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035619
35620ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035621case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035622-n*)
cristy8b350f62009-11-15 23:12:43 +000035623 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035624 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035625 xy) ECHO_C='\c';;
35626 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35627 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035628 esac;;
35629*)
35630 ECHO_N='-n';;
35631esac
cristy3ed852e2009-09-05 21:47:34 +000035632
35633rm -f conf$$ conf$$.exe conf$$.file
35634if test -d conf$$.dir; then
35635 rm -f conf$$.dir/conf$$.file
35636else
35637 rm -f conf$$.dir
35638 mkdir conf$$.dir 2>/dev/null
35639fi
35640if (echo >conf$$.file) 2>/dev/null; then
35641 if ln -s conf$$.file conf$$ 2>/dev/null; then
35642 as_ln_s='ln -s'
35643 # ... but there are two gotchas:
35644 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35645 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000035646 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000035647 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000035648 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035649 elif ln conf$$.file conf$$ 2>/dev/null; then
35650 as_ln_s=ln
35651 else
cristy14fefe52012-05-21 00:59:18 +000035652 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035653 fi
35654else
cristy14fefe52012-05-21 00:59:18 +000035655 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035656fi
35657rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35658rmdir conf$$.dir 2>/dev/null
35659
cristy8b350f62009-11-15 23:12:43 +000035660
35661# as_fn_mkdir_p
35662# -------------
35663# Create "$as_dir" as a directory, including parents if necessary.
35664as_fn_mkdir_p ()
35665{
35666
35667 case $as_dir in #(
35668 -*) as_dir=./$as_dir;;
35669 esac
35670 test -d "$as_dir" || eval $as_mkdir_p || {
35671 as_dirs=
35672 while :; do
35673 case $as_dir in #(
35674 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35675 *) as_qdir=$as_dir;;
35676 esac
35677 as_dirs="'$as_qdir' $as_dirs"
35678 as_dir=`$as_dirname -- "$as_dir" ||
35679$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35680 X"$as_dir" : 'X\(//\)[^/]' \| \
35681 X"$as_dir" : 'X\(//\)$' \| \
35682 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35683$as_echo X"$as_dir" |
35684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35685 s//\1/
35686 q
35687 }
35688 /^X\(\/\/\)[^/].*/{
35689 s//\1/
35690 q
35691 }
35692 /^X\(\/\/\)$/{
35693 s//\1/
35694 q
35695 }
35696 /^X\(\/\).*/{
35697 s//\1/
35698 q
35699 }
35700 s/.*/./; q'`
35701 test -d "$as_dir" && break
35702 done
35703 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035704 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035705
35706
35707} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035708if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035709 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035710else
35711 test -d ./-p && rmdir ./-p
35712 as_mkdir_p=false
35713fi
35714
cristy14fefe52012-05-21 00:59:18 +000035715
35716# as_fn_executable_p FILE
35717# -----------------------
35718# Test if FILE is an executable regular file.
35719as_fn_executable_p ()
35720{
35721 test -f "$1" && test -x "$1"
35722} # as_fn_executable_p
35723as_test_x='test -x'
35724as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000035725
35726# Sed expression to map a string onto a valid CPP name.
35727as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35728
35729# Sed expression to map a string onto a valid variable name.
35730as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35731
35732
35733exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035734## ----------------------------------- ##
35735## Main body of $CONFIG_STATUS script. ##
35736## ----------------------------------- ##
35737_ASEOF
35738test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035739
cristy8b350f62009-11-15 23:12:43 +000035740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35741# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035742# report actual input values of CONFIG_FILES etc. instead of their
35743# values after options handling.
35744ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035745This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000035746generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035747
35748 CONFIG_FILES = $CONFIG_FILES
35749 CONFIG_HEADERS = $CONFIG_HEADERS
35750 CONFIG_LINKS = $CONFIG_LINKS
35751 CONFIG_COMMANDS = $CONFIG_COMMANDS
35752 $ $0 $@
35753
35754on `(hostname || uname -n) 2>/dev/null | sed 1q`
35755"
35756
35757_ACEOF
35758
35759case $ac_config_files in *"
35760"*) set x $ac_config_files; shift; ac_config_files=$*;;
35761esac
35762
35763case $ac_config_headers in *"
35764"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35765esac
35766
35767
35768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35769# Files that config.status was made for.
35770config_files="$ac_config_files"
35771config_headers="$ac_config_headers"
35772config_commands="$ac_config_commands"
35773
35774_ACEOF
35775
35776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35777ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035778\`$as_me' instantiates files and other configuration actions
35779from templates according to the current configuration. Unless the files
35780and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035781
cristy8b350f62009-11-15 23:12:43 +000035782Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035783
35784 -h, --help print this help, then exit
35785 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035786 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035787 -q, --quiet, --silent
35788 do not print progress messages
35789 -d, --debug don't remove temporary files
35790 --recheck update $as_me by reconfiguring in the same conditions
35791 --file=FILE[:TEMPLATE]
35792 instantiate the configuration file FILE
35793 --header=FILE[:TEMPLATE]
35794 instantiate the configuration header FILE
35795
35796Configuration files:
35797$config_files
35798
35799Configuration headers:
35800$config_headers
35801
35802Configuration commands:
35803$config_commands
35804
cristy8b350f62009-11-15 23:12:43 +000035805Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035806
35807_ACEOF
35808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035809ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035810ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035811ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000035812configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000035813 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035814
cristy14fefe52012-05-21 00:59:18 +000035815Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035816This config.status script is free software; the Free Software Foundation
35817gives unlimited permission to copy, distribute and modify it."
35818
35819ac_pwd='$ac_pwd'
35820srcdir='$srcdir'
35821INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035822MKDIR_P='$MKDIR_P'
35823AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035824test -n "\$AWK" || AWK=awk
35825_ACEOF
35826
35827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35828# The default lists apply if the user does not specify any file.
35829ac_need_defaults=:
35830while test $# != 0
35831do
35832 case $1 in
cristyda16f162011-02-19 23:52:17 +000035833 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035834 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35835 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35836 ac_shift=:
35837 ;;
cristyda16f162011-02-19 23:52:17 +000035838 --*=)
35839 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35840 ac_optarg=
35841 ac_shift=:
35842 ;;
cristy3ed852e2009-09-05 21:47:34 +000035843 *)
35844 ac_option=$1
35845 ac_optarg=$2
35846 ac_shift=shift
35847 ;;
35848 esac
35849
35850 case $ac_option in
35851 # Handling of the options.
35852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35853 ac_cs_recheck=: ;;
35854 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35855 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035856 --config | --confi | --conf | --con | --co | --c )
35857 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035858 --debug | --debu | --deb | --de | --d | -d )
35859 debug=: ;;
35860 --file | --fil | --fi | --f )
35861 $ac_shift
35862 case $ac_optarg in
35863 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035864 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035865 esac
cristy8b350f62009-11-15 23:12:43 +000035866 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035867 ac_need_defaults=false;;
35868 --header | --heade | --head | --hea )
35869 $ac_shift
35870 case $ac_optarg in
35871 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35872 esac
cristy8b350f62009-11-15 23:12:43 +000035873 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035874 ac_need_defaults=false;;
35875 --he | --h)
35876 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035877 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035878Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035879 --help | --hel | -h )
35880 $as_echo "$ac_cs_usage"; exit ;;
35881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35882 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35883 ac_cs_silent=: ;;
35884
35885 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035886 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035887Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035888
cristy8b350f62009-11-15 23:12:43 +000035889 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035890 ac_need_defaults=false ;;
35891
35892 esac
35893 shift
35894done
35895
35896ac_configure_extra_args=
35897
35898if $ac_cs_silent; then
35899 exec 6>/dev/null
35900 ac_configure_extra_args="$ac_configure_extra_args --silent"
35901fi
35902
35903_ACEOF
35904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35905if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000035906 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000035907 shift
35908 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35909 CONFIG_SHELL='$SHELL'
35910 export CONFIG_SHELL
35911 exec "\$@"
35912fi
35913
35914_ACEOF
35915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35916exec 5>>config.log
35917{
35918 echo
35919 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35920## Running $as_me. ##
35921_ASBOX
35922 $as_echo "$ac_log"
35923} >&5
35924
35925_ACEOF
35926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035927#
35928# INIT-COMMANDS
35929#
35930PACKAGE="$PACKAGE"
35931AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35932
35933
35934# The HP-UX ksh and POSIX shell print the target directory to stdout
35935# if CDPATH is set.
35936(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35937
35938sed_quote_subst='$sed_quote_subst'
35939double_quote_subst='$double_quote_subst'
35940delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000035941SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35942Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35943GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35944EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35945FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35946SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35947ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35948LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35949macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35950macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35951AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35952DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35953OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35954enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35955enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35956pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35957enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000035958PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035959host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35960host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35961host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35962build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35963build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35964build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35965NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35966LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35967max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35968ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35969exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35970lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35971lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35972lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035973lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35974lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035975reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35976reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35977deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35978file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035979file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35980want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35981sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035982AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35983AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035984archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035985STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35986RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35987old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35988old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35989old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35990lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35991CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35992CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35993compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35994GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35995lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35996lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35997lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35998lt_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 +000035999nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36000lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036001objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36002MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36003lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036004lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036005lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036006lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36007lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36008need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036009MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036010DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36011NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36012LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36013OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36014OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36015libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36016shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36017extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36018archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36019enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36020export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36021whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36022compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36023old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36024old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36025archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36026archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36027module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36028module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36029with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36030allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36031no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36032hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036033hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36034hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36035hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36036hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36037hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36038hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36039inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36040link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036041always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36042export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36043exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36044include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36045prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036046postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036047file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36048variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36049need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36050need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36051version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36052runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36053shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36054shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36055libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36056library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36057soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36058install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36059postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36060postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36061finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36062finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36063hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36064sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36065sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36066hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36067enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36068enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36069enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36070old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36071striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36072compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36073predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36074postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36075predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36076postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36077compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36078LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36079reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36080reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36081old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36082compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36083GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36084lt_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 +000036085lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036086lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036087lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36088lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36089archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36090enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36091export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36092whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36093compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36094old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36095old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36096archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36097archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36098module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36099module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36100with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36101allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36102no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36103hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036104hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36105hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36106hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36107hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36108hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36109hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36110inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36111link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036112always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36113export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36114exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36115include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36116prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036117postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036118file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36119hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36120compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36121predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36122postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36123predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36124postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36125compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036126
36127LTCC='$LTCC'
36128LTCFLAGS='$LTCFLAGS'
36129compiler='$compiler_DEFAULT'
36130
cristy0c60a692010-11-04 01:09:47 +000036131# A function that is used when there is no print builtin or printf.
36132func_fallback_echo ()
36133{
36134 eval 'cat <<_LTECHO_EOF
36135\$1
36136_LTECHO_EOF'
36137}
36138
cristy73bd4a52010-10-05 11:24:23 +000036139# Quote evaled strings.
36140for var in SED \
36141GREP \
36142EGREP \
36143FGREP \
cristy0c60a692010-11-04 01:09:47 +000036144SHELL \
36145ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036146LD \
cristy0c60a692010-11-04 01:09:47 +000036147AS \
36148DLLTOOL \
36149OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036150PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036151NM \
36152LN_S \
36153lt_SP2NL \
36154lt_NL2SP \
36155reload_flag \
36156deplibs_check_method \
36157file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036158file_magic_glob \
36159want_nocaseglob \
36160sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036161AR \
36162AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036163archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036164STRIP \
36165RANLIB \
36166CC \
36167CFLAGS \
36168compiler \
36169lt_cv_sys_global_symbol_pipe \
36170lt_cv_sys_global_symbol_to_cdecl \
36171lt_cv_sys_global_symbol_to_c_name_address \
36172lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036173nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036174lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036175lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036176lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036177lt_prog_compiler_static \
36178lt_cv_prog_compiler_c_o \
36179need_locks \
cristyda16f162011-02-19 23:52:17 +000036180MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036181DSYMUTIL \
36182NMEDIT \
36183LIPO \
36184OTOOL \
36185OTOOL64 \
36186shrext_cmds \
36187export_dynamic_flag_spec \
36188whole_archive_flag_spec \
36189compiler_needs_object \
36190with_gnu_ld \
36191allow_undefined_flag \
36192no_undefined_flag \
36193hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036194hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036195exclude_expsyms \
36196include_expsyms \
36197file_list_spec \
36198variables_saved_for_relink \
36199libname_spec \
36200library_names_spec \
36201soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036202install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036203finish_eval \
36204old_striplib \
36205striplib \
36206compiler_lib_search_dirs \
36207predep_objects \
36208postdep_objects \
36209predeps \
36210postdeps \
36211compiler_lib_search_path \
36212LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036213reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036214compiler_CXX \
36215lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036216lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036217lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036218lt_prog_compiler_static_CXX \
36219lt_cv_prog_compiler_c_o_CXX \
36220export_dynamic_flag_spec_CXX \
36221whole_archive_flag_spec_CXX \
36222compiler_needs_object_CXX \
36223with_gnu_ld_CXX \
36224allow_undefined_flag_CXX \
36225no_undefined_flag_CXX \
36226hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036227hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036228exclude_expsyms_CXX \
36229include_expsyms_CXX \
36230file_list_spec_CXX \
36231compiler_lib_search_dirs_CXX \
36232predep_objects_CXX \
36233postdep_objects_CXX \
36234predeps_CXX \
36235postdeps_CXX \
36236compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036237 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036238 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036239 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036240 ;;
36241 *)
36242 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36243 ;;
36244 esac
36245done
36246
36247# Double-quote double-evaled strings.
36248for var in reload_cmds \
36249old_postinstall_cmds \
36250old_postuninstall_cmds \
36251old_archive_cmds \
36252extract_expsyms_cmds \
36253old_archive_from_new_cmds \
36254old_archive_from_expsyms_cmds \
36255archive_cmds \
36256archive_expsym_cmds \
36257module_cmds \
36258module_expsym_cmds \
36259export_symbols_cmds \
36260prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036261postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036262postinstall_cmds \
36263postuninstall_cmds \
36264finish_cmds \
36265sys_lib_search_path_spec \
36266sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036267reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036268old_archive_cmds_CXX \
36269old_archive_from_new_cmds_CXX \
36270old_archive_from_expsyms_cmds_CXX \
36271archive_cmds_CXX \
36272archive_expsym_cmds_CXX \
36273module_cmds_CXX \
36274module_expsym_cmds_CXX \
36275export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036276prelink_cmds_CXX \
36277postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036278 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036279 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036280 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036281 ;;
36282 *)
36283 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36284 ;;
36285 esac
36286done
36287
cristy73bd4a52010-10-05 11:24:23 +000036288ac_aux_dir='$ac_aux_dir'
36289xsi_shell='$xsi_shell'
36290lt_shell_append='$lt_shell_append'
36291
36292# See if we are running on zsh, and set the options which allow our
36293# commands through without removal of \ escapes INIT.
36294if test -n "\${ZSH_VERSION+set}" ; then
36295 setopt NO_GLOB_SUBST
36296fi
36297
36298
36299 PACKAGE='$PACKAGE'
36300 VERSION='$VERSION'
36301 TIMESTAMP='$TIMESTAMP'
36302 RM='$RM'
36303 ofile='$ofile'
36304
36305
36306
36307
36308
36309
cristy3ed852e2009-09-05 21:47:34 +000036310_ACEOF
36311
36312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36313
36314# Handling of arguments.
36315for ac_config_target in $ac_config_targets
36316do
36317 case $ac_config_target in
36318 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036319 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036320 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036321 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36322 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36323 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36324 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36325 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036326 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036327 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036328 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36329 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36330 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36331 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36332 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036333 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036334 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36335 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036336 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36337 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36338 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036339 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36340 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36341 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36342 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36343 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36344 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36345 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36346 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36347 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36348 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36349 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36350 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36351 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36352 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36353 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36354 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36355 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036356 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36357 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036358 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36359 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036360 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036361 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036362 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036363 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036364 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36365 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36366
cristy98dddb52010-11-04 00:30:15 +000036367 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036368 esac
36369done
36370
36371
36372# If the user did not use the arguments to specify the items to instantiate,
36373# then the envvar interface is used. Set only those that are not.
36374# We use the long form for the default assignment because of an extremely
36375# bizarre bug on SunOS 4.1.3.
36376if $ac_need_defaults; then
36377 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36378 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36379 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36380fi
36381
36382# Have a temporary directory for convenience. Make it in the build tree
36383# simply because there is no reason against having it here, and in addition,
36384# creating and moving files from /tmp can sometimes cause problems.
36385# Hook for its removal unless debugging.
36386# Note that there is a small window in which the directory will not be cleaned:
36387# after its creation but before its name has been assigned to `$tmp'.
36388$debug ||
36389{
cristyda16f162011-02-19 23:52:17 +000036390 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036391 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036392 : "${ac_tmp:=$tmp}"
36393 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036394' 0
cristy8b350f62009-11-15 23:12:43 +000036395 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036396}
36397# Create a (secure) tmp directory for tmp files.
36398
36399{
36400 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036401 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036402} ||
36403{
36404 tmp=./conf$$-$RANDOM
36405 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036406} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036407ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036408
36409# Set up the scripts for CONFIG_FILES section.
36410# No need to generate them if there are no CONFIG_FILES.
36411# This happens for instance with `./config.status config.h'.
36412if test -n "$CONFIG_FILES"; then
36413
36414
cristy8b350f62009-11-15 23:12:43 +000036415ac_cr=`echo X | tr X '\015'`
36416# On cygwin, bash can eat \r inside `` if the user requested igncr.
36417# But we know of no other shell where ac_cr would be empty at this
36418# point, so we can use a bashism as a fallback.
36419if test "x$ac_cr" = x; then
36420 eval ac_cr=\$\'\\r\'
36421fi
cristy3ed852e2009-09-05 21:47:34 +000036422ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36423if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036424 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036425else
36426 ac_cs_awk_cr=$ac_cr
36427fi
36428
cristyda16f162011-02-19 23:52:17 +000036429echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036430_ACEOF
36431
36432
36433{
36434 echo "cat >conf$$subs.awk <<_ACEOF" &&
36435 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36436 echo "_ACEOF"
36437} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036438 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36439ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036440ac_delim='%!_!# '
36441for ac_last_try in false false false false false :; do
36442 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036443 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036444
36445 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36446 if test $ac_delim_n = $ac_delim_num; then
36447 break
36448 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036449 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036450 else
36451 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36452 fi
36453done
36454rm -f conf$$subs.sh
36455
36456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036457cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036458_ACEOF
36459sed -n '
36460h
36461s/^/S["/; s/!.*/"]=/
36462p
36463g
36464s/^[^!]*!//
36465:repl
36466t repl
36467s/'"$ac_delim"'$//
36468t delim
36469:nl
36470h
cristycd4c5312009-11-22 01:19:08 +000036471s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036472t more1
36473s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36474p
36475n
36476b repl
36477:more1
36478s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36479p
36480g
36481s/.\{148\}//
36482t nl
36483:delim
36484h
cristycd4c5312009-11-22 01:19:08 +000036485s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036486t more2
36487s/["\\]/\\&/g; s/^/"/; s/$/"/
36488p
36489b
36490:more2
36491s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36492p
36493g
36494s/.\{148\}//
36495t delim
36496' <conf$$subs.awk | sed '
36497/^[^""]/{
36498 N
36499 s/\n//
36500}
36501' >>$CONFIG_STATUS || ac_write_fail=1
36502rm -f conf$$subs.awk
36503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36504_ACAWK
cristyda16f162011-02-19 23:52:17 +000036505cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036506 for (key in S) S_is_set[key] = 1
36507 FS = ""
36508
36509}
36510{
36511 line = $ 0
36512 nfields = split(line, field, "@")
36513 substed = 0
36514 len = length(field[1])
36515 for (i = 2; i < nfields; i++) {
36516 key = field[i]
36517 keylen = length(key)
36518 if (S_is_set[key]) {
36519 value = S[key]
36520 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36521 len += length(value) + length(field[++i])
36522 substed = 1
36523 } else
36524 len += 1 + keylen
36525 }
36526
36527 print line
36528}
36529
36530_ACAWK
36531_ACEOF
36532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36533if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36534 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36535else
36536 cat
cristyda16f162011-02-19 23:52:17 +000036537fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036538 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036539_ACEOF
36540
cristy98dddb52010-11-04 00:30:15 +000036541# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36542# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036543# trailing colons and then remove the whole line if VPATH becomes empty
36544# (actually we leave an empty line to preserve line numbers).
36545if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036546 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36547h
36548s///
36549s/^/:/
36550s/[ ]*$/:/
36551s/:\$(srcdir):/:/g
36552s/:\${srcdir}:/:/g
36553s/:@srcdir@:/:/g
36554s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036555s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036556x
36557s/\(=[ ]*\).*/\1/
36558G
36559s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036560s/^[^=]*=[ ]*$//
36561}'
36562fi
36563
36564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36565fi # test -n "$CONFIG_FILES"
36566
36567# Set up the scripts for CONFIG_HEADERS section.
36568# No need to generate them if there are no CONFIG_HEADERS.
36569# This happens for instance with `./config.status Makefile'.
36570if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036571cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036572BEGIN {
36573_ACEOF
36574
36575# Transform confdefs.h into an awk script `defines.awk', embedded as
36576# here-document in config.status, that substitutes the proper values into
36577# config.h.in to produce config.h.
36578
36579# Create a delimiter string that does not exist in confdefs.h, to ease
36580# handling of long lines.
36581ac_delim='%!_!# '
36582for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036583 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36584 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036585 break
36586 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036587 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036588 else
36589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36590 fi
36591done
36592
36593# For the awk script, D is an array of macro values keyed by name,
36594# likewise P contains macro parameters if any. Preserve backslash
36595# newline sequences.
36596
36597ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36598sed -n '
36599s/.\{148\}/&'"$ac_delim"'/g
36600t rset
36601:rset
36602s/^[ ]*#[ ]*define[ ][ ]*/ /
36603t def
36604d
36605:def
36606s/\\$//
36607t bsnl
36608s/["\\]/\\&/g
36609s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36610D["\1"]=" \3"/p
36611s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36612d
36613:bsnl
36614s/["\\]/\\&/g
36615s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36616D["\1"]=" \3\\\\\\n"\\/p
36617t cont
36618s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36619t cont
36620d
36621:cont
36622n
36623s/.\{148\}/&'"$ac_delim"'/g
36624t clear
36625:clear
36626s/\\$//
36627t bsnlc
36628s/["\\]/\\&/g; s/^/"/; s/$/"/p
36629d
36630:bsnlc
36631s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36632b cont
36633' <confdefs.h | sed '
36634s/'"$ac_delim"'/"\\\
36635"/g' >>$CONFIG_STATUS || ac_write_fail=1
36636
36637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36638 for (key in D) D_is_set[key] = 1
36639 FS = ""
36640}
36641/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36642 line = \$ 0
36643 split(line, arg, " ")
36644 if (arg[1] == "#") {
36645 defundef = arg[2]
36646 mac1 = arg[3]
36647 } else {
36648 defundef = substr(arg[1], 2)
36649 mac1 = arg[2]
36650 }
36651 split(mac1, mac2, "(") #)
36652 macro = mac2[1]
36653 prefix = substr(line, 1, index(line, defundef) - 1)
36654 if (D_is_set[macro]) {
36655 # Preserve the white space surrounding the "#".
36656 print prefix "define", macro P[macro] D[macro]
36657 next
36658 } else {
36659 # Replace #undef with comments. This is necessary, for example,
36660 # in the case of _POSIX_SOURCE, which is predefined and required
36661 # on some systems where configure will not decide to define it.
36662 if (defundef == "undef") {
36663 print "/*", prefix defundef, macro, "*/"
36664 next
36665 }
36666 }
36667}
36668{ print }
36669_ACAWK
36670_ACEOF
36671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036672 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036673fi # test -n "$CONFIG_HEADERS"
36674
36675
36676eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36677shift
36678for ac_tag
36679do
36680 case $ac_tag in
36681 :[FHLC]) ac_mode=$ac_tag; continue;;
36682 esac
36683 case $ac_mode$ac_tag in
36684 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036685 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036686 :[FH]-) ac_tag=-:-;;
36687 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36688 esac
36689 ac_save_IFS=$IFS
36690 IFS=:
36691 set x $ac_tag
36692 IFS=$ac_save_IFS
36693 shift
36694 ac_file=$1
36695 shift
36696
36697 case $ac_mode in
36698 :L) ac_source=$1;;
36699 :[FH])
36700 ac_file_inputs=
36701 for ac_f
36702 do
36703 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036704 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036705 *) # Look for the file first in the build tree, then in the source tree
36706 # (if the path is not absolute). The absolute path cannot be DOS-style,
36707 # because $ac_f cannot contain `:'.
36708 test -f "$ac_f" ||
36709 case $ac_f in
36710 [\\/$]*) false;;
36711 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36712 esac ||
cristy98dddb52010-11-04 00:30:15 +000036713 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036714 esac
36715 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036716 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036717 done
36718
36719 # Let's still pretend it is `configure' which instantiates (i.e., don't
36720 # use $as_me), people would be surprised to read:
36721 # /* config.h. Generated by config.status. */
36722 configure_input='Generated from '`
36723 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36724 `' by configure.'
36725 if test x"$ac_file" != x-; then
36726 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036727 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036728$as_echo "$as_me: creating $ac_file" >&6;}
36729 fi
36730 # Neutralize special characters interpreted by sed in replacement strings.
36731 case $configure_input in #(
36732 *\&* | *\|* | *\\* )
36733 ac_sed_conf_input=`$as_echo "$configure_input" |
36734 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36735 *) ac_sed_conf_input=$configure_input;;
36736 esac
36737
36738 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036739 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036741 esac
36742 ;;
36743 esac
36744
36745 ac_dir=`$as_dirname -- "$ac_file" ||
36746$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36747 X"$ac_file" : 'X\(//\)[^/]' \| \
36748 X"$ac_file" : 'X\(//\)$' \| \
36749 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36750$as_echo X"$ac_file" |
36751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36752 s//\1/
36753 q
36754 }
36755 /^X\(\/\/\)[^/].*/{
36756 s//\1/
36757 q
36758 }
36759 /^X\(\/\/\)$/{
36760 s//\1/
36761 q
36762 }
36763 /^X\(\/\).*/{
36764 s//\1/
36765 q
36766 }
36767 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036768 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036769 ac_builddir=.
36770
36771case "$ac_dir" in
36772.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36773*)
36774 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36775 # A ".." for each directory in $ac_dir_suffix.
36776 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36777 case $ac_top_builddir_sub in
36778 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36779 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36780 esac ;;
36781esac
36782ac_abs_top_builddir=$ac_pwd
36783ac_abs_builddir=$ac_pwd$ac_dir_suffix
36784# for backward compatibility:
36785ac_top_builddir=$ac_top_build_prefix
36786
36787case $srcdir in
36788 .) # We are building in place.
36789 ac_srcdir=.
36790 ac_top_srcdir=$ac_top_builddir_sub
36791 ac_abs_top_srcdir=$ac_pwd ;;
36792 [\\/]* | ?:[\\/]* ) # Absolute name.
36793 ac_srcdir=$srcdir$ac_dir_suffix;
36794 ac_top_srcdir=$srcdir
36795 ac_abs_top_srcdir=$srcdir ;;
36796 *) # Relative name.
36797 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36798 ac_top_srcdir=$ac_top_build_prefix$srcdir
36799 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36800esac
36801ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36802
36803
36804 case $ac_mode in
36805 :F)
36806 #
36807 # CONFIG_FILE
36808 #
36809
36810 case $INSTALL in
36811 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36812 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36813 esac
cristy73bd4a52010-10-05 11:24:23 +000036814 ac_MKDIR_P=$MKDIR_P
36815 case $MKDIR_P in
36816 [\\/$]* | ?:[\\/]* ) ;;
36817 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36818 esac
cristy3ed852e2009-09-05 21:47:34 +000036819_ACEOF
36820
36821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36822# If the template does not know about datarootdir, expand it.
36823# FIXME: This hack should be removed a few years after 2.60.
36824ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036825ac_sed_dataroot='
36826/datarootdir/ {
36827 p
36828 q
36829}
36830/@datadir@/p
36831/@docdir@/p
36832/@infodir@/p
36833/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036834/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036835case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36836*datarootdir*) ac_datarootdir_seen=yes;;
36837*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036839$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36840_ACEOF
36841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36842 ac_datarootdir_hack='
36843 s&@datadir@&$datadir&g
36844 s&@docdir@&$docdir&g
36845 s&@infodir@&$infodir&g
36846 s&@localedir@&$localedir&g
36847 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036848 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036849esac
36850_ACEOF
36851
36852# Neutralize VPATH when `$srcdir' = `.'.
36853# Shell code in configure.ac might set extrasub.
36854# FIXME: do we really want to maintain this feature?
36855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36856ac_sed_extra="$ac_vpsub
36857$extrasub
36858_ACEOF
36859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36860:t
36861/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36862s|@configure_input@|$ac_sed_conf_input|;t t
36863s&@top_builddir@&$ac_top_builddir_sub&;t t
36864s&@top_build_prefix@&$ac_top_build_prefix&;t t
36865s&@srcdir@&$ac_srcdir&;t t
36866s&@abs_srcdir@&$ac_abs_srcdir&;t t
36867s&@top_srcdir@&$ac_top_srcdir&;t t
36868s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36869s&@builddir@&$ac_builddir&;t t
36870s&@abs_builddir@&$ac_abs_builddir&;t t
36871s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36872s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036873s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036874$ac_datarootdir_hack
36875"
cristyda16f162011-02-19 23:52:17 +000036876eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36877 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036878
36879test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036880 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36881 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36882 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036884which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036885$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036886which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036887
cristyda16f162011-02-19 23:52:17 +000036888 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036889 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036890 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36891 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036892 esac \
cristy98dddb52010-11-04 00:30:15 +000036893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036894 ;;
36895 :H)
36896 #
36897 # CONFIG_HEADER
36898 #
36899 if test x"$ac_file" != x-; then
36900 {
36901 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036902 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36903 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036904 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036905 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036906 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036907$as_echo "$as_me: $ac_file is unchanged" >&6;}
36908 else
36909 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036910 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036912 fi
36913 else
36914 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036915 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036916 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036917 fi
cristy73bd4a52010-10-05 11:24:23 +000036918# Compute "$ac_file"'s index in $config_headers.
36919_am_arg="$ac_file"
36920_am_stamp_count=1
36921for _am_header in $config_headers :; do
36922 case $_am_header in
36923 $_am_arg | $_am_arg:* )
36924 break ;;
36925 * )
36926 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36927 esac
36928done
36929echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36930$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36931 X"$_am_arg" : 'X\(//\)[^/]' \| \
36932 X"$_am_arg" : 'X\(//\)$' \| \
36933 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36934$as_echo X"$_am_arg" |
36935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36936 s//\1/
36937 q
36938 }
36939 /^X\(\/\/\)[^/].*/{
36940 s//\1/
36941 q
36942 }
36943 /^X\(\/\/\)$/{
36944 s//\1/
36945 q
36946 }
36947 /^X\(\/\).*/{
36948 s//\1/
36949 q
36950 }
36951 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000036952 ;;
36953
cristy8b350f62009-11-15 23:12:43 +000036954 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000036955$as_echo "$as_me: executing $ac_file commands" >&6;}
36956 ;;
36957 esac
36958
36959
36960 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000036961 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000036962ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36963ac_prefix_conf_PKG=`echo MagickCore`
36964ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36965ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
36966ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36967if test ".$ac_prefix_conf_INP" = "."; then
36968 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36969 case "$ac_file" in
36970 *.h) ac_prefix_conf_INP=$ac_file ;;
36971 *)
36972 esac
36973 test ".$ac_prefix_conf_INP" != "." && break
36974 done
36975fi
36976if test ".$ac_prefix_conf_INP" = "."; then
36977 case "$ac_prefix_conf_OUT" in
36978 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36979 ;;
36980 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36981 ;;
36982 *) ac_prefix_conf_INP=config.h
36983 ;;
36984 esac
36985fi
36986if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000036987 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000036988else
36989 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36990 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36991 fi fi
36992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36993$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36994 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000036995 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36996 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36997 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36998 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36999 $as_echo "#endif/" >> conftest.prefix
37000 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37001 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37002 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037003 # now executing _script on _DEF input to create _OUT output file
37004 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37005 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37006 echo ' ' >>$tmp/pconfig.h
37007 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37008
37009 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37010 echo ' ' >>$tmp/pconfig.h
37011 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37012 echo "#endif" >>$tmp/pconfig.h
37013 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37014 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37015$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37016 else
37017 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37018$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37019 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37020 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37021 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37022$as_echo X"$ac_prefix_conf_OUT" |
37023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37024 s//\1/
37025 q
37026 }
37027 /^X\(\/\/\)[^/].*/{
37028 s//\1/
37029 q
37030 }
37031 /^X\(\/\/\)$/{
37032 s//\1/
37033 q
37034 }
37035 /^X\(\/\).*/{
37036 s//\1/
37037 q
37038 }
37039 s/.*/./; q'`
37040 as_dir="$ac_dir"; as_fn_mkdir_p
37041 rm -f "$ac_prefix_conf_OUT"
37042 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37043 fi
37044 cp conftest.prefix _configs.sed
37045 else
cristy98dddb52010-11-04 00:30:15 +000037046 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 +000037047 fi
37048 rm -f conftest.*
37049fi
37050 ;;
37051 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37052 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37053 # are listed without --file. Let's play safe and only enable the eval
37054 # if we detect the quoting.
37055 case $CONFIG_FILES in
37056 *\'*) eval set x "$CONFIG_FILES" ;;
37057 *) set x $CONFIG_FILES ;;
37058 esac
37059 shift
37060 for mf
37061 do
37062 # Strip MF so we end up with the name of the file.
37063 mf=`echo "$mf" | sed -e 's/:.*$//'`
37064 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037065 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037066 # some people rename them; so instead we look at the file content.
37067 # Grep'ing the first line is not enough: some people post-process
37068 # each Makefile.in and add a new line on top of each file to say so.
37069 # Grep'ing the whole file is not good either: AIX grep has a line
37070 # limit of 2048, but all sed's we know have understand at least 4000.
37071 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37072 dirpart=`$as_dirname -- "$mf" ||
37073$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37074 X"$mf" : 'X\(//\)[^/]' \| \
37075 X"$mf" : 'X\(//\)$' \| \
37076 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37077$as_echo X"$mf" |
37078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37079 s//\1/
37080 q
37081 }
37082 /^X\(\/\/\)[^/].*/{
37083 s//\1/
37084 q
37085 }
37086 /^X\(\/\/\)$/{
37087 s//\1/
37088 q
37089 }
37090 /^X\(\/\).*/{
37091 s//\1/
37092 q
37093 }
37094 s/.*/./; q'`
37095 else
37096 continue
37097 fi
37098 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037099 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037100 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37101 test -z "$DEPDIR" && continue
37102 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37103 test -z "am__include" && continue
37104 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037105 # Find all dependency output files, they are included files with
37106 # $(DEPDIR) in their names. We invoke sed twice because it is the
37107 # simplest approach to changing $(DEPDIR) to its actual value in the
37108 # expansion.
37109 for file in `sed -n "
37110 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037111 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037112 # Make sure the directory exists.
37113 test -f "$dirpart/$file" && continue
37114 fdir=`$as_dirname -- "$file" ||
37115$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37116 X"$file" : 'X\(//\)[^/]' \| \
37117 X"$file" : 'X\(//\)$' \| \
37118 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37119$as_echo X"$file" |
37120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37121 s//\1/
37122 q
37123 }
37124 /^X\(\/\/\)[^/].*/{
37125 s//\1/
37126 q
37127 }
37128 /^X\(\/\/\)$/{
37129 s//\1/
37130 q
37131 }
37132 /^X\(\/\).*/{
37133 s//\1/
37134 q
37135 }
37136 s/.*/./; q'`
37137 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37138 # echo "creating $dirpart/$file"
37139 echo '# dummy' > "$dirpart/$file"
37140 done
37141 done
37142}
37143 ;;
37144 "libtool":C)
37145
37146 # See if we are running on zsh, and set the options which allow our
37147 # commands through without removal of \ escapes.
37148 if test -n "${ZSH_VERSION+set}" ; then
37149 setopt NO_GLOB_SUBST
37150 fi
37151
37152 cfgfile="${ofile}T"
37153 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37154 $RM "$cfgfile"
37155
37156 cat <<_LT_EOF >> "$cfgfile"
37157#! $SHELL
37158
37159# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37160# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37161# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37162# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37163#
37164# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037165# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37166# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037167# Written by Gordon Matzigkeit, 1996
37168#
37169# This file is part of GNU Libtool.
37170#
37171# GNU Libtool is free software; you can redistribute it and/or
37172# modify it under the terms of the GNU General Public License as
37173# published by the Free Software Foundation; either version 2 of
37174# the License, or (at your option) any later version.
37175#
37176# As a special exception to the GNU General Public License,
37177# if you distribute this file as part of a program or library that
37178# is built using GNU Libtool, you may include this file under the
37179# same distribution terms that you use for the rest of that program.
37180#
37181# GNU Libtool is distributed in the hope that it will be useful,
37182# but WITHOUT ANY WARRANTY; without even the implied warranty of
37183# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37184# GNU General Public License for more details.
37185#
37186# You should have received a copy of the GNU General Public License
37187# along with GNU Libtool; see the file COPYING. If not, a copy
37188# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37189# obtained by writing to the Free Software Foundation, Inc.,
37190# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37191
37192
37193# The names of the tagged configurations supported by this script.
37194available_tags="CXX "
37195
37196# ### BEGIN LIBTOOL CONFIG
37197
37198# A sed program that does not truncate output.
37199SED=$lt_SED
37200
37201# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37202Xsed="\$SED -e 1s/^X//"
37203
37204# A grep program that handles long lines.
37205GREP=$lt_GREP
37206
37207# An ERE matcher.
37208EGREP=$lt_EGREP
37209
37210# A literal string matcher.
37211FGREP=$lt_FGREP
37212
cristy0c60a692010-11-04 01:09:47 +000037213# Shell to use when invoking shell scripts.
37214SHELL=$lt_SHELL
37215
37216# An echo program that protects backslashes.
37217ECHO=$lt_ECHO
37218
cristy73bd4a52010-10-05 11:24:23 +000037219# Which release of libtool.m4 was used?
37220macro_version=$macro_version
37221macro_revision=$macro_revision
37222
37223# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037224AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037225
37226# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037227DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037228
37229# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037230OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037231
37232# Whether or not to build shared libraries.
37233build_libtool_libs=$enable_shared
37234
37235# Whether or not to build static libraries.
37236build_old_libs=$enable_static
37237
37238# What type of objects to build.
37239pic_mode=$pic_mode
37240
37241# Whether or not to optimize for fast installation.
37242fast_install=$enable_fast_install
37243
cristy99bd5232011-12-07 14:38:20 +000037244# The PATH separator for the build system.
37245PATH_SEPARATOR=$lt_PATH_SEPARATOR
37246
cristy73bd4a52010-10-05 11:24:23 +000037247# The host system.
37248host_alias=$host_alias
37249host=$host
37250host_os=$host_os
37251
37252# The build system.
37253build_alias=$build_alias
37254build=$build
37255build_os=$build_os
37256
37257# A BSD- or MS-compatible name lister.
37258NM=$lt_NM
37259
37260# Whether we need soft or hard links.
37261LN_S=$lt_LN_S
37262
37263# What is the maximum length of a command?
37264max_cmd_len=$max_cmd_len
37265
37266# Object file suffix (normally "o").
37267objext=$ac_objext
37268
37269# Executable file suffix (normally "").
37270exeext=$exeext
37271
37272# whether the shell understands "unset".
37273lt_unset=$lt_unset
37274
37275# turn spaces into newlines.
37276SP2NL=$lt_lt_SP2NL
37277
37278# turn newlines into spaces.
37279NL2SP=$lt_lt_NL2SP
37280
cristyda16f162011-02-19 23:52:17 +000037281# convert \$build file names to \$host format.
37282to_host_file_cmd=$lt_cv_to_host_file_cmd
37283
37284# convert \$build files to toolchain format.
37285to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37286
cristy73bd4a52010-10-05 11:24:23 +000037287# Method to check whether dependent libraries are shared objects.
37288deplibs_check_method=$lt_deplibs_check_method
37289
cristyda16f162011-02-19 23:52:17 +000037290# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037291file_magic_cmd=$lt_file_magic_cmd
37292
cristyda16f162011-02-19 23:52:17 +000037293# How to find potential files when deplibs_check_method = "file_magic".
37294file_magic_glob=$lt_file_magic_glob
37295
37296# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37297want_nocaseglob=$lt_want_nocaseglob
37298
37299# Command to associate shared and link libraries.
37300sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37301
cristy73bd4a52010-10-05 11:24:23 +000037302# The archiver.
37303AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037304
37305# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037306AR_FLAGS=$lt_AR_FLAGS
37307
cristyda16f162011-02-19 23:52:17 +000037308# How to feed a file listing to the archiver.
37309archiver_list_spec=$lt_archiver_list_spec
37310
cristy73bd4a52010-10-05 11:24:23 +000037311# A symbol stripping program.
37312STRIP=$lt_STRIP
37313
37314# Commands used to install an old-style archive.
37315RANLIB=$lt_RANLIB
37316old_postinstall_cmds=$lt_old_postinstall_cmds
37317old_postuninstall_cmds=$lt_old_postuninstall_cmds
37318
cristy0c60a692010-11-04 01:09:47 +000037319# Whether to use a lock for old archive extraction.
37320lock_old_archive_extraction=$lock_old_archive_extraction
37321
cristy73bd4a52010-10-05 11:24:23 +000037322# A C compiler.
37323LTCC=$lt_CC
37324
37325# LTCC compiler flags.
37326LTCFLAGS=$lt_CFLAGS
37327
37328# Take the output of nm and produce a listing of raw symbols and C names.
37329global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37330
37331# Transform the output of nm in a proper C declaration.
37332global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37333
37334# Transform the output of nm in a C name address pair.
37335global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37336
37337# Transform the output of nm in a C name address pair when lib prefix is needed.
37338global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37339
cristyda16f162011-02-19 23:52:17 +000037340# Specify filename containing input files for \$NM.
37341nm_file_list_spec=$lt_nm_file_list_spec
37342
37343# The root where to search for dependent libraries,and in which our libraries should be installed.
37344lt_sysroot=$lt_sysroot
37345
cristy73bd4a52010-10-05 11:24:23 +000037346# The name of the directory that contains temporary libtool files.
37347objdir=$objdir
37348
cristy73bd4a52010-10-05 11:24:23 +000037349# Used to examine libraries when file_magic_cmd begins with "file".
37350MAGIC_CMD=$MAGIC_CMD
37351
37352# Must we lock files when doing compilation?
37353need_locks=$lt_need_locks
37354
cristyda16f162011-02-19 23:52:17 +000037355# Manifest tool.
37356MANIFEST_TOOL=$lt_MANIFEST_TOOL
37357
cristy73bd4a52010-10-05 11:24:23 +000037358# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37359DSYMUTIL=$lt_DSYMUTIL
37360
37361# Tool to change global to local symbols on Mac OS X.
37362NMEDIT=$lt_NMEDIT
37363
37364# Tool to manipulate fat objects and archives on Mac OS X.
37365LIPO=$lt_LIPO
37366
37367# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37368OTOOL=$lt_OTOOL
37369
37370# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37371OTOOL64=$lt_OTOOL64
37372
37373# Old archive suffix (normally "a").
37374libext=$libext
37375
37376# Shared library suffix (normally ".so").
37377shrext_cmds=$lt_shrext_cmds
37378
37379# The commands to extract the exported symbol list from a shared archive.
37380extract_expsyms_cmds=$lt_extract_expsyms_cmds
37381
37382# Variables whose values should be saved in libtool wrapper scripts and
37383# restored at link time.
37384variables_saved_for_relink=$lt_variables_saved_for_relink
37385
37386# Do we need the "lib" prefix for modules?
37387need_lib_prefix=$need_lib_prefix
37388
37389# Do we need a version for libraries?
37390need_version=$need_version
37391
37392# Library versioning type.
37393version_type=$version_type
37394
37395# Shared library runtime path variable.
37396runpath_var=$runpath_var
37397
37398# Shared library path variable.
37399shlibpath_var=$shlibpath_var
37400
37401# Is shlibpath searched before the hard-coded library search path?
37402shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37403
37404# Format of library name prefix.
37405libname_spec=$lt_libname_spec
37406
37407# List of archive names. First name is the real one, the rest are links.
37408# The last name is the one that the linker finds with -lNAME
37409library_names_spec=$lt_library_names_spec
37410
37411# The coded name of the library, if different from the real name.
37412soname_spec=$lt_soname_spec
37413
cristy0c60a692010-11-04 01:09:47 +000037414# Permission mode override for installation of shared libraries.
37415install_override_mode=$lt_install_override_mode
37416
cristy73bd4a52010-10-05 11:24:23 +000037417# Command to use after installation of a shared archive.
37418postinstall_cmds=$lt_postinstall_cmds
37419
37420# Command to use after uninstallation of a shared archive.
37421postuninstall_cmds=$lt_postuninstall_cmds
37422
37423# Commands used to finish a libtool library installation in a directory.
37424finish_cmds=$lt_finish_cmds
37425
37426# As "finish_cmds", except a single script fragment to be evaled but
37427# not shown.
37428finish_eval=$lt_finish_eval
37429
37430# Whether we should hardcode library paths into libraries.
37431hardcode_into_libs=$hardcode_into_libs
37432
37433# Compile-time system search path for libraries.
37434sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37435
37436# Run-time system search path for libraries.
37437sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37438
37439# Whether dlopen is supported.
37440dlopen_support=$enable_dlopen
37441
37442# Whether dlopen of programs is supported.
37443dlopen_self=$enable_dlopen_self
37444
37445# Whether dlopen of statically linked programs is supported.
37446dlopen_self_static=$enable_dlopen_self_static
37447
37448# Commands to strip libraries.
37449old_striplib=$lt_old_striplib
37450striplib=$lt_striplib
37451
37452
37453# The linker used to build libraries.
37454LD=$lt_LD
37455
cristy0c60a692010-11-04 01:09:47 +000037456# How to create reloadable object files.
37457reload_flag=$lt_reload_flag
37458reload_cmds=$lt_reload_cmds
37459
cristy73bd4a52010-10-05 11:24:23 +000037460# Commands used to build an old-style archive.
37461old_archive_cmds=$lt_old_archive_cmds
37462
37463# A language specific compiler.
37464CC=$lt_compiler
37465
37466# Is the compiler the GNU compiler?
37467with_gcc=$GCC
37468
37469# Compiler flag to turn off builtin functions.
37470no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37471
cristy73bd4a52010-10-05 11:24:23 +000037472# Additional compiler flags for building library objects.
37473pic_flag=$lt_lt_prog_compiler_pic
37474
cristyda16f162011-02-19 23:52:17 +000037475# How to pass a linker flag through the compiler.
37476wl=$lt_lt_prog_compiler_wl
37477
cristy73bd4a52010-10-05 11:24:23 +000037478# Compiler flag to prevent dynamic linking.
37479link_static_flag=$lt_lt_prog_compiler_static
37480
37481# Does compiler simultaneously support -c and -o options?
37482compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37483
37484# Whether or not to add -lc for building shared libraries.
37485build_libtool_need_lc=$archive_cmds_need_lc
37486
37487# Whether or not to disallow shared libs when runtime libs are static.
37488allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37489
37490# Compiler flag to allow reflexive dlopens.
37491export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37492
37493# Compiler flag to generate shared objects directly from archives.
37494whole_archive_flag_spec=$lt_whole_archive_flag_spec
37495
37496# Whether the compiler copes with passing no objects directly.
37497compiler_needs_object=$lt_compiler_needs_object
37498
37499# Create an old-style archive from a shared archive.
37500old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37501
37502# Create a temporary old-style archive to link instead of a shared archive.
37503old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37504
37505# Commands used to build a shared archive.
37506archive_cmds=$lt_archive_cmds
37507archive_expsym_cmds=$lt_archive_expsym_cmds
37508
37509# Commands used to build a loadable module if different from building
37510# a shared archive.
37511module_cmds=$lt_module_cmds
37512module_expsym_cmds=$lt_module_expsym_cmds
37513
37514# Whether we are building with GNU ld or not.
37515with_gnu_ld=$lt_with_gnu_ld
37516
37517# Flag that allows shared libraries with undefined symbols to be built.
37518allow_undefined_flag=$lt_allow_undefined_flag
37519
37520# Flag that enforces no undefined symbols.
37521no_undefined_flag=$lt_no_undefined_flag
37522
37523# Flag to hardcode \$libdir into a binary during linking.
37524# This must work even if \$libdir does not exist
37525hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37526
cristy73bd4a52010-10-05 11:24:23 +000037527# Whether we need a single "-rpath" flag with a separated argument.
37528hardcode_libdir_separator=$lt_hardcode_libdir_separator
37529
37530# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37531# DIR into the resulting binary.
37532hardcode_direct=$hardcode_direct
37533
37534# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37535# DIR into the resulting binary and the resulting library dependency is
37536# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37537# library is relocated.
37538hardcode_direct_absolute=$hardcode_direct_absolute
37539
37540# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37541# into the resulting binary.
37542hardcode_minus_L=$hardcode_minus_L
37543
37544# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37545# into the resulting binary.
37546hardcode_shlibpath_var=$hardcode_shlibpath_var
37547
37548# Set to "yes" if building a shared library automatically hardcodes DIR
37549# into the library and all subsequent libraries and executables linked
37550# against it.
37551hardcode_automatic=$hardcode_automatic
37552
37553# Set to yes if linker adds runtime paths of dependent libraries
37554# to runtime path list.
37555inherit_rpath=$inherit_rpath
37556
37557# Whether libtool must link a program against all its dependency libraries.
37558link_all_deplibs=$link_all_deplibs
37559
cristy73bd4a52010-10-05 11:24:23 +000037560# Set to "yes" if exported symbols are required.
37561always_export_symbols=$always_export_symbols
37562
37563# The commands to list exported symbols.
37564export_symbols_cmds=$lt_export_symbols_cmds
37565
37566# Symbols that should not be listed in the preloaded symbols.
37567exclude_expsyms=$lt_exclude_expsyms
37568
37569# Symbols that must always be exported.
37570include_expsyms=$lt_include_expsyms
37571
37572# Commands necessary for linking programs (against libraries) with templates.
37573prelink_cmds=$lt_prelink_cmds
37574
cristyda16f162011-02-19 23:52:17 +000037575# Commands necessary for finishing linking programs.
37576postlink_cmds=$lt_postlink_cmds
37577
cristy73bd4a52010-10-05 11:24:23 +000037578# Specify filename containing input files.
37579file_list_spec=$lt_file_list_spec
37580
37581# How to hardcode a shared library path into an executable.
37582hardcode_action=$hardcode_action
37583
37584# The directories searched by this compiler when creating a shared library.
37585compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37586
37587# Dependencies to place before and after the objects being linked to
37588# create a shared library.
37589predep_objects=$lt_predep_objects
37590postdep_objects=$lt_postdep_objects
37591predeps=$lt_predeps
37592postdeps=$lt_postdeps
37593
37594# The library search path used internally by the compiler when linking
37595# a shared library.
37596compiler_lib_search_path=$lt_compiler_lib_search_path
37597
37598# ### END LIBTOOL CONFIG
37599
37600_LT_EOF
37601
37602 case $host_os in
37603 aix3*)
37604 cat <<\_LT_EOF >> "$cfgfile"
37605# AIX sometimes has problems with the GCC collect2 program. For some
37606# reason, if we set the COLLECT_NAMES environment variable, the problems
37607# vanish in a puff of smoke.
37608if test "X${COLLECT_NAMES+set}" != Xset; then
37609 COLLECT_NAMES=
37610 export COLLECT_NAMES
37611fi
37612_LT_EOF
37613 ;;
37614 esac
37615
37616
37617ltmain="$ac_aux_dir/ltmain.sh"
37618
37619
37620 # We use sed instead of cat because bash on DJGPP gets confused if
37621 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37622 # text mode, it properly converts lines to CR/LF. This bash problem
37623 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037624 sed '$q' "$ltmain" >> "$cfgfile" \
37625 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037626
cristyda16f162011-02-19 23:52:17 +000037627 if test x"$xsi_shell" = xyes; then
37628 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37629func_dirname ()\
37630{\
37631\ case ${1} in\
37632\ */*) func_dirname_result="${1%/*}${2}" ;;\
37633\ * ) func_dirname_result="${3}" ;;\
37634\ esac\
37635} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37636 && mv -f "$cfgfile.tmp" "$cfgfile" \
37637 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37638test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037639
37640
cristyda16f162011-02-19 23:52:17 +000037641 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37642func_basename ()\
37643{\
37644\ func_basename_result="${1##*/}"\
37645} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37646 && mv -f "$cfgfile.tmp" "$cfgfile" \
37647 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37648test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037649
37650
cristyda16f162011-02-19 23:52:17 +000037651 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37652func_dirname_and_basename ()\
37653{\
37654\ case ${1} in\
37655\ */*) func_dirname_result="${1%/*}${2}" ;;\
37656\ * ) func_dirname_result="${3}" ;;\
37657\ esac\
37658\ func_basename_result="${1##*/}"\
37659} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37660 && mv -f "$cfgfile.tmp" "$cfgfile" \
37661 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37662test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037663
cristyda16f162011-02-19 23:52:17 +000037664
37665 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37666func_stripname ()\
37667{\
37668\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37669\ # positional parameters, so assign one to ordinary parameter first.\
37670\ func_stripname_result=${3}\
37671\ func_stripname_result=${func_stripname_result#"${1}"}\
37672\ func_stripname_result=${func_stripname_result%"${2}"}\
37673} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37674 && mv -f "$cfgfile.tmp" "$cfgfile" \
37675 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37676test 0 -eq $? || _lt_function_replace_fail=:
37677
37678
37679 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37680func_split_long_opt ()\
37681{\
37682\ func_split_long_opt_name=${1%%=*}\
37683\ func_split_long_opt_arg=${1#*=}\
37684} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37685 && mv -f "$cfgfile.tmp" "$cfgfile" \
37686 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37687test 0 -eq $? || _lt_function_replace_fail=:
37688
37689
37690 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37691func_split_short_opt ()\
37692{\
37693\ func_split_short_opt_arg=${1#??}\
37694\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37695} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37696 && mv -f "$cfgfile.tmp" "$cfgfile" \
37697 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37698test 0 -eq $? || _lt_function_replace_fail=:
37699
37700
37701 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37702func_lo2o ()\
37703{\
37704\ case ${1} in\
37705\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37706\ *) func_lo2o_result=${1} ;;\
37707\ esac\
37708} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37709 && mv -f "$cfgfile.tmp" "$cfgfile" \
37710 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37711test 0 -eq $? || _lt_function_replace_fail=:
37712
37713
37714 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37715func_xform ()\
37716{\
37717 func_xform_result=${1%.*}.lo\
37718} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37719 && mv -f "$cfgfile.tmp" "$cfgfile" \
37720 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37721test 0 -eq $? || _lt_function_replace_fail=:
37722
37723
37724 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37725func_arith ()\
37726{\
37727 func_arith_result=$(( $* ))\
37728} # Extended-shell func_arith 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=:
37732
37733
37734 sed -e '/^func_len ()$/,/^} # func_len /c\
37735func_len ()\
37736{\
37737 func_len_result=${#1}\
37738} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37739 && mv -f "$cfgfile.tmp" "$cfgfile" \
37740 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37741test 0 -eq $? || _lt_function_replace_fail=:
37742
37743fi
37744
37745if test x"$lt_shell_append" = xyes; then
37746 sed -e '/^func_append ()$/,/^} # func_append /c\
37747func_append ()\
37748{\
37749 eval "${1}+=\\${2}"\
37750} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37751 && mv -f "$cfgfile.tmp" "$cfgfile" \
37752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37753test 0 -eq $? || _lt_function_replace_fail=:
37754
37755
37756 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37757func_append_quoted ()\
37758{\
37759\ func_quote_for_eval "${2}"\
37760\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37761} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37762 && mv -f "$cfgfile.tmp" "$cfgfile" \
37763 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37764test 0 -eq $? || _lt_function_replace_fail=:
37765
37766
37767 # Save a `func_append' function call where possible by direct use of '+='
37768 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37769 && mv -f "$cfgfile.tmp" "$cfgfile" \
37770 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37771 test 0 -eq $? || _lt_function_replace_fail=:
37772else
37773 # Save a `func_append' function call even when '+=' is not available
37774 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37775 && mv -f "$cfgfile.tmp" "$cfgfile" \
37776 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37777 test 0 -eq $? || _lt_function_replace_fail=:
37778fi
37779
37780if test x"$_lt_function_replace_fail" = x":"; then
37781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37782$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37783fi
37784
37785
37786 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037787 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37788 chmod +x "$ofile"
37789
37790
37791 cat <<_LT_EOF >> "$ofile"
37792
37793# ### BEGIN LIBTOOL TAG CONFIG: CXX
37794
37795# The linker used to build libraries.
37796LD=$lt_LD_CXX
37797
cristy0c60a692010-11-04 01:09:47 +000037798# How to create reloadable object files.
37799reload_flag=$lt_reload_flag_CXX
37800reload_cmds=$lt_reload_cmds_CXX
37801
cristy73bd4a52010-10-05 11:24:23 +000037802# Commands used to build an old-style archive.
37803old_archive_cmds=$lt_old_archive_cmds_CXX
37804
37805# A language specific compiler.
37806CC=$lt_compiler_CXX
37807
37808# Is the compiler the GNU compiler?
37809with_gcc=$GCC_CXX
37810
37811# Compiler flag to turn off builtin functions.
37812no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37813
cristy73bd4a52010-10-05 11:24:23 +000037814# Additional compiler flags for building library objects.
37815pic_flag=$lt_lt_prog_compiler_pic_CXX
37816
cristyda16f162011-02-19 23:52:17 +000037817# How to pass a linker flag through the compiler.
37818wl=$lt_lt_prog_compiler_wl_CXX
37819
cristy73bd4a52010-10-05 11:24:23 +000037820# Compiler flag to prevent dynamic linking.
37821link_static_flag=$lt_lt_prog_compiler_static_CXX
37822
37823# Does compiler simultaneously support -c and -o options?
37824compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37825
37826# Whether or not to add -lc for building shared libraries.
37827build_libtool_need_lc=$archive_cmds_need_lc_CXX
37828
37829# Whether or not to disallow shared libs when runtime libs are static.
37830allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37831
37832# Compiler flag to allow reflexive dlopens.
37833export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37834
37835# Compiler flag to generate shared objects directly from archives.
37836whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37837
37838# Whether the compiler copes with passing no objects directly.
37839compiler_needs_object=$lt_compiler_needs_object_CXX
37840
37841# Create an old-style archive from a shared archive.
37842old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37843
37844# Create a temporary old-style archive to link instead of a shared archive.
37845old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37846
37847# Commands used to build a shared archive.
37848archive_cmds=$lt_archive_cmds_CXX
37849archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37850
37851# Commands used to build a loadable module if different from building
37852# a shared archive.
37853module_cmds=$lt_module_cmds_CXX
37854module_expsym_cmds=$lt_module_expsym_cmds_CXX
37855
37856# Whether we are building with GNU ld or not.
37857with_gnu_ld=$lt_with_gnu_ld_CXX
37858
37859# Flag that allows shared libraries with undefined symbols to be built.
37860allow_undefined_flag=$lt_allow_undefined_flag_CXX
37861
37862# Flag that enforces no undefined symbols.
37863no_undefined_flag=$lt_no_undefined_flag_CXX
37864
37865# Flag to hardcode \$libdir into a binary during linking.
37866# This must work even if \$libdir does not exist
37867hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37868
cristy73bd4a52010-10-05 11:24:23 +000037869# Whether we need a single "-rpath" flag with a separated argument.
37870hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37871
37872# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37873# DIR into the resulting binary.
37874hardcode_direct=$hardcode_direct_CXX
37875
37876# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37877# DIR into the resulting binary and the resulting library dependency is
37878# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37879# library is relocated.
37880hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37881
37882# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37883# into the resulting binary.
37884hardcode_minus_L=$hardcode_minus_L_CXX
37885
37886# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37887# into the resulting binary.
37888hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37889
37890# Set to "yes" if building a shared library automatically hardcodes DIR
37891# into the library and all subsequent libraries and executables linked
37892# against it.
37893hardcode_automatic=$hardcode_automatic_CXX
37894
37895# Set to yes if linker adds runtime paths of dependent libraries
37896# to runtime path list.
37897inherit_rpath=$inherit_rpath_CXX
37898
37899# Whether libtool must link a program against all its dependency libraries.
37900link_all_deplibs=$link_all_deplibs_CXX
37901
cristy73bd4a52010-10-05 11:24:23 +000037902# Set to "yes" if exported symbols are required.
37903always_export_symbols=$always_export_symbols_CXX
37904
37905# The commands to list exported symbols.
37906export_symbols_cmds=$lt_export_symbols_cmds_CXX
37907
37908# Symbols that should not be listed in the preloaded symbols.
37909exclude_expsyms=$lt_exclude_expsyms_CXX
37910
37911# Symbols that must always be exported.
37912include_expsyms=$lt_include_expsyms_CXX
37913
37914# Commands necessary for linking programs (against libraries) with templates.
37915prelink_cmds=$lt_prelink_cmds_CXX
37916
cristyda16f162011-02-19 23:52:17 +000037917# Commands necessary for finishing linking programs.
37918postlink_cmds=$lt_postlink_cmds_CXX
37919
cristy73bd4a52010-10-05 11:24:23 +000037920# Specify filename containing input files.
37921file_list_spec=$lt_file_list_spec_CXX
37922
37923# How to hardcode a shared library path into an executable.
37924hardcode_action=$hardcode_action_CXX
37925
37926# The directories searched by this compiler when creating a shared library.
37927compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37928
37929# Dependencies to place before and after the objects being linked to
37930# create a shared library.
37931predep_objects=$lt_predep_objects_CXX
37932postdep_objects=$lt_postdep_objects_CXX
37933predeps=$lt_predeps_CXX
37934postdeps=$lt_postdeps_CXX
37935
37936# The library search path used internally by the compiler when linking
37937# a shared library.
37938compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37939
37940# ### END LIBTOOL TAG CONFIG: CXX
37941_LT_EOF
37942
37943 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037944 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000037945 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000037946 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000037947 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37948 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37949
37950 esac
37951done # for ac_tag
37952
37953
cristy8b350f62009-11-15 23:12:43 +000037954as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000037955_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000037956ac_clean_files=$ac_clean_files_save
37957
37958test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000037959 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037960
37961
37962# configure is writing to config.log, and then calls config.status.
37963# config.status does its own redirection, appending to config.log.
37964# Unfortunately, on DOS this fails, as config.log is still kept open
37965# by configure, so config.status won't be able to write to it; its
37966# output is simply discarded. So we exec the FD to /dev/null,
37967# effectively closing config.log, so it can be properly (re)opened and
37968# appended to by config.status. When coming back to configure, we
37969# need to make the FD available again.
37970if test "$no_create" != yes; then
37971 ac_cs_success=:
37972 ac_config_status_args=
37973 test "$silent" = yes &&
37974 ac_config_status_args="$ac_config_status_args --quiet"
37975 exec 5>/dev/null
37976 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37977 exec 5>>config.log
37978 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37979 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000037980 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000037981fi
37982if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000037983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000037984$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37985fi
37986
37987
37988rm -f magick-version
37989
cristy430a7312010-01-21 20:44:04 +000037990result_dejavu_font_dir='none'
37991if test "${dejavu_font_dir}x" != 'x'; then
37992 result_dejavu_font_dir=$dejavu_font_dir
37993fi
37994
cristy3ed852e2009-09-05 21:47:34 +000037995result_ghostscript_font_dir='none'
37996if test "${ghostscript_font_dir}x" != 'x'; then
37997 result_ghostscript_font_dir=$ghostscript_font_dir
37998fi
37999
38000result_windows_font_dir='none'
38001if test "${windows_font_dir}x" != 'x'; then
38002 result_windows_font_dir=${windows_font_dir}
38003fi
38004
cristy09b53e12011-10-14 12:47:22 +000038005{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038006ImageMagick is configured as follows. Please verify that this configuration
38007matches your expectations.
38008
38009Host system type: $host
38010Build system type: $build
38011
38012 Option Value
38013-------------------------------------------------------------------------------
38014Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38015Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038016Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038017GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38018Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38019High Dynamic Range Imagery
38020 --enable-hdri=$enable_hdri $enable_hdri
38021
38022Delegate Configuration:
38023BZLIB --with-bzlib=$with_bzlib $have_bzlib
38024Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038025Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038026DJVU --with-djvu=$with_djvu $have_djvu
38027DPS --with-dps=$with_dps $have_dps
38028FFTW --with-fftw=$with_fftw $have_fftw
38029FlashPIX --with-fpx=$with_fpx $have_fpx
38030FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38031FreeType --with-freetype=$with_freetype $have_freetype
38032GhostPCL None $PCLDelegate ($PCLVersion)
38033GhostXPS None $XPSDelegate ($XPSVersion)
38034Ghostscript None $PSDelegate ($GSVersion)
38035Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38036Ghostscript lib --with-gslib=$with_gslib $have_gslib
38037Graphviz --with-gvc=$with_gvc $have_gvc
38038JBIG --with-jbig=$with_jbig $have_jbig
38039JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38040JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038041LCMS v1 --with-lcms=$with_lcms $have_lcms
38042LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038043LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038044LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038045LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038046Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38047OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038048PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038049PERL --with-perl=$with_perl $have_perl
38050PNG --with-png=$with_png $have_png
38051RSVG --with-rsvg=$with_rsvg $have_rsvg
38052TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038053WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038054Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038055WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038056X11 --with-x=$with_x $have_x
38057XML --with-xml=$with_xml $have_xml
38058ZLIB --with-zlib=$with_zlib $have_zlib
38059
38060X11 Configuration:
38061 X_CFLAGS = $X_CFLAGS
38062 X_PRE_LIBS = $X_PRE_LIBS
38063 X_LIBS = $X_LIBS
38064 X_EXTRA_LIBS = $X_EXTRA_LIBS
38065
38066Options used to compile and link:
38067 PREFIX = $PREFIX_DIR
38068 EXEC-PREFIX = $EXEC_PREFIX_DIR
38069 VERSION = $PACKAGE_VERSION
38070 CC = $CC
38071 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038072 CPPFLAGS = $MAGICK_CPPFLAGS
38073 PCFLAGS = $MAGICK_PCFLAGS
38074 DEFS = $DEFS
38075 LDFLAGS = $LDFLAGS
38076 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38077 LIBS = $MAGICK_LIBS
38078 CXX = $CXX
38079 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038080 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038081" >&5
cristy09b53e12011-10-14 12:47:22 +000038082$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038083ImageMagick is configured as follows. Please verify that this configuration
38084matches your expectations.
38085
38086Host system type: $host
38087Build system type: $build
38088
38089 Option Value
38090-------------------------------------------------------------------------------
38091Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38092Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038093Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038094GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38095Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38096High Dynamic Range Imagery
38097 --enable-hdri=$enable_hdri $enable_hdri
38098
38099Delegate Configuration:
38100BZLIB --with-bzlib=$with_bzlib $have_bzlib
38101Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038102Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038103DJVU --with-djvu=$with_djvu $have_djvu
38104DPS --with-dps=$with_dps $have_dps
38105FFTW --with-fftw=$with_fftw $have_fftw
38106FlashPIX --with-fpx=$with_fpx $have_fpx
38107FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38108FreeType --with-freetype=$with_freetype $have_freetype
38109GhostPCL None $PCLDelegate ($PCLVersion)
38110GhostXPS None $XPSDelegate ($XPSVersion)
38111Ghostscript None $PSDelegate ($GSVersion)
38112Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38113Ghostscript lib --with-gslib=$with_gslib $have_gslib
38114Graphviz --with-gvc=$with_gvc $have_gvc
38115JBIG --with-jbig=$with_jbig $have_jbig
38116JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38117JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038118LCMS v1 --with-lcms=$with_lcms $have_lcms
38119LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038120LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038121LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038122LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038123Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38124OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038125PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038126PERL --with-perl=$with_perl $have_perl
38127PNG --with-png=$with_png $have_png
38128RSVG --with-rsvg=$with_rsvg $have_rsvg
38129TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038130WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038131Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038132WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038133X11 --with-x=$with_x $have_x
38134XML --with-xml=$with_xml $have_xml
38135ZLIB --with-zlib=$with_zlib $have_zlib
38136
38137X11 Configuration:
38138 X_CFLAGS = $X_CFLAGS
38139 X_PRE_LIBS = $X_PRE_LIBS
38140 X_LIBS = $X_LIBS
38141 X_EXTRA_LIBS = $X_EXTRA_LIBS
38142
38143Options used to compile and link:
38144 PREFIX = $PREFIX_DIR
38145 EXEC-PREFIX = $EXEC_PREFIX_DIR
38146 VERSION = $PACKAGE_VERSION
38147 CC = $CC
38148 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038149 CPPFLAGS = $MAGICK_CPPFLAGS
38150 PCFLAGS = $MAGICK_PCFLAGS
38151 DEFS = $DEFS
38152 LDFLAGS = $LDFLAGS
38153 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38154 LIBS = $MAGICK_LIBS
38155 CXX = $CXX
38156 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038157 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038158" >&6;}