blob: 23ada52780972010566eca67033de6334597a64a [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000695UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000697SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000699RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700RMDelegate
701RLEEncodeDelegate
702PSDelegate
703POVDelegate
704PGPDecodeDelegate
705PCLDelegate
706MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000707MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708MPEGEncodeDelegate
709MPEGDecodeDelegate
710MANDelegate
711LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000712LPRDelegate
713LPDelegate
714ILBMEncodeDelegate
715ILBMDecodeDelegate
716HTMLDecodeDelegate
717HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718GnuplotDecodeDelegate
719MogrifyDelegate
720DisplayDelegate
721ConvertDelegate
722FIGDecodeDelegate
723EditorDelegate
724EchoDelegate
725DVIDecodeDelegate
726GVCDecodeDelegate
727DNGDecodeDelegate
728CatDelegate
729CGMDecodeDelegate
730BrowseDelegate
731BZIPDelegate
732BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000733AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000734SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000735SHAREARCH_RELATIVE_PATH
736SHAREARCH_DIRNAME
737SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000738SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000739CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000740DOCUMENTATION_PATH
741FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000742FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000743CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744CODER_DIRNAME
745MODULES_PATH
746MODULES_RELATIVE_PATH
747MODULES_DIRNAME
748MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000749LIB_BIN_DIR_PATH
750LIB_BIN_DIR_RELATIVE_PATH
751LIB_BIN_DIR
752LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000753LIBRARY_PATH
754EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000755INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000756INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000757PERLMAINCC
758XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000759XML_DELEGATE_FALSE
760XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000761xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000762WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000763WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000764WMF_DELEGATE_FALSE
765WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000766WEBP_LIBS
767WEBP_DELEGATE_FALSE
768WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000769TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000770TIFF_DELEGATE_FALSE
771TIFF_DELEGATE_TRUE
772CAIRO_DELEGATE_FALSE
773CAIRO_DELEGATE_TRUE
774RSVG_DELEGATE_FALSE
775RSVG_DELEGATE_TRUE
776CAIRO_SVG_LIBS
777CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000778RSVG_LIBS
779RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000780PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000781PNG_DELEGATE_FALSE
782PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000783PANGOCAIRO_DELEGATE_FALSE
784PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000785PANGO_DELEGATE_FALSE
786PANGO_DELEGATE_TRUE
787PANGO_LIBS
788PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000789OPENEXR_DELEGATE_FALSE
790OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000791OPENEXR_LIBS
792OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000793LZMA_DELEGATE_FALSE
794LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000795LZMA_LIBS
796LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000797LQR_DELEGATE_FALSE
798LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799LQR_LIBS
800LQR_CFLAGS
801LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000802LCMS_DELEGATE_FALSE
803LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805JP2_DELEGATE_FALSE
806JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000808JPEG_DELEGATE_FALSE
809JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811JBIG_DELEGATE_FALSE
812JBIG_DELEGATE_TRUE
813GVC_DELEGATE_FALSE
814GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815GVC_LIBS
816GVC_CFLAGS
817GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000818GS_DELEGATE_FALSE
819GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000820FREETYPE_DELEGATE_FALSE
821FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000822FREETYPE_LIBS
823FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000824FONTCONFIG_DELEGATE_FALSE
825FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826FONTCONFIG_LIBS
827FONTCONFIG_CFLAGS
828FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000829FPX_DELEGATE_FALSE
830FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000831FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832FFTW_DELEGATE_FALSE
833FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000835DJVU_DELEGATE_FALSE
836DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000837DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838DPS_DELEGATE_FALSE
839DPS_DELEGATE_TRUE
840AUTOTRACE_DELEGATE_FALSE
841AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000842AUTOTRACE_LIBS
843AUTOTRACE_CFLAGS
844LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000845WITH_LTDL_FALSE
846WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000847ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000848ZLIB_DELEGATE_FALSE
849ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000850XEXT_LIBS
851X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000852X11_DELEGATE_FALSE
853X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000854X_EXTRA_LIBS
855X_LIBS
856X_PRE_LIBS
857X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000858XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000859BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000860BZLIB_DELEGATE_FALSE
861BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862CCMALLOCDelegate
863UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000864HasUMEM_FALSE
865HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000866THREAD_LIBS
867GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000868WITH_MAGICK_PLUS_PLUS_FALSE
869WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000870OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000871MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000872POW_LIB
873LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000874UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000875UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000876UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000877UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000878UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000879UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000880INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000881INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000882UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000883UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000884INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000885INT32_T
886UINT16_T
887INT16_T
888UINT8_T
889INT8_T
890LIBRARY_EXTRA_CPPFLAGS
891MODULE_EXTRA_CPPFLAGS
892LIBSTDCLDFLAGS
893PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000894MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000895MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000896QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000897LEGACY_SUPPORT_FALSE
898LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000899MAINT
900MAINTAINER_MODE_FALSE
901MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000902MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000903WITH_MODULES_FALSE
904WITH_MODULES_TRUE
905WITH_SHARED_LIBS_FALSE
906WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000907LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000908CXXCPP
909OTOOL64
910OTOOL
911LIPO
912NMEDIT
913DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000914MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000915RANLIB
cristyda16f162011-02-19 23:52:17 +0000916ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000917AR
918NM
919ac_ct_DUMPBIN
920DUMPBIN
921LIBTOOL
922OBJDUMP
923DLLTOOL
924AS
cristy3ed852e2009-09-05 21:47:34 +0000925LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000926CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000927CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000928OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000929PTHREAD_CFLAGS
930PTHREAD_LIBS
931PTHREAD_CC
932ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000933pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000934SHAREARCH_DIR
935INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000936WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000937USING_CL_FALSE
938USING_CL_TRUE
939CYGWIN_BUILD_FALSE
940CYGWIN_BUILD_TRUE
941WIN32_NATIVE_BUILD_FALSE
942WIN32_NATIVE_BUILD_TRUE
943WINGDI32_DELEGATE_FALSE
944WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000945GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000946HAVE_LD_VERSION_SCRIPT_FALSE
947HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000948PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000949PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000950LN_S
cristy3ed852e2009-09-05 21:47:34 +0000951LD
cristy73bd4a52010-10-05 11:24:23 +0000952FGREP
953SED
954am__fastdepCXX_FALSE
955am__fastdepCXX_TRUE
956CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000957ac_ct_CXX
958CXXFLAGS
959CXX
cristya0b81c32010-01-22 02:54:33 +0000960EGREP
961GREP
962CPP
cristy73bd4a52010-10-05 11:24:23 +0000963am__fastdepCC_FALSE
964am__fastdepCC_TRUE
965CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000966am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000967AMDEPBACKSLASH
968AMDEP_FALSE
969AMDEP_TRUE
970am__quote
971am__include
972DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000973OBJEXT
974EXEEXT
975ac_ct_CC
976CPPFLAGS
977LDFLAGS
978CFLAGS
979CC
980DIRSEP
981MAGICK_FILTER_MODULE_PATH
982MAGICK_CONFIGURE_BUILD_PATH
983MAGICK_CONFIGURE_SRC_PATH
984MAGICK_CODER_MODULE_PATH
985MAN_DIR
986INFO_DIR
987PERSISTINCLUDE_DIR
988INCLUDE_DIR
989LIB_DIR
990LOCALSTATE_DIR
991SHAREDSTATE_DIR
992SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000993DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000994DATA_DIR
995LIBEXEC_DIR
996SBIN_DIR
997BIN_DIR
998EXEC_PREFIX_DIR
999PREFIX_DIR
1000CONFIG_STATUS_DEPENDENCIES
1001MAGICK_LIB_VERSION_NUMBER
1002MAGICK_LIB_VERSION_TEXT
1003MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001004AM_BACKSLASH
1005AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001006AM_DEFAULT_V
1007AM_V
cristy73bd4a52010-10-05 11:24:23 +00001008am__untar
1009am__tar
1010AMTAR
1011am__leading_dot
1012SET_MAKE
1013AWK
1014mkdir_p
1015MKDIR_P
1016INSTALL_STRIP_PROGRAM
1017STRIP
1018install_sh
1019MAKEINFO
1020AUTOHEADER
1021AUTOMAKE
1022AUTOCONF
1023ACLOCAL
1024VERSION
1025PACKAGE
1026CYGPATH_W
1027am__isrc
1028INSTALL_DATA
1029INSTALL_SCRIPT
1030INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001031PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001032PACKAGE_RELEASE_DATE
1033PACKAGE_LIB_VERSION_NUMBER
1034PACKAGE_LIB_VERSION
1035PACKAGE_CHANGE_DATE
1036PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001037PACKAGE_PERL_VERSION
cristybab87c32010-02-09 20:54:22 +00001038MAGICK_LIBRARY_VERSION_INFO
1039MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001040MAGICK_LIBRARY_AGE
1041MAGICK_LIBRARY_REVISION
1042MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001043MAGICK_SVN_REVISION
1044MAGICK_VERSION
1045MAGICK_PATCHLEVEL_VERSION
1046MAGICK_MICRO_VERSION
1047MAGICK_MINOR_VERSION
1048MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001049MAGICK_TARGET_OS
1050MAGICK_TARGET_VENDOR
1051MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001052target_os
1053target_vendor
1054target_cpu
1055target
1056host_os
1057host_vendor
1058host_cpu
1059host
1060build_os
1061build_vendor
1062build_cpu
1063build
1064CONFIGURE_ARGS
1065DISTCHECK_CONFIG_FLAGS
1066target_alias
1067host_alias
1068build_alias
1069LIBS
1070ECHO_T
1071ECHO_N
1072ECHO_C
1073DEFS
1074mandir
1075localedir
1076libdir
1077psdir
1078pdfdir
1079dvidir
1080htmldir
1081infodir
1082docdir
1083oldincludedir
1084includedir
1085localstatedir
1086sharedstatedir
1087sysconfdir
1088datadir
1089datarootdir
1090libexecdir
1091sbindir
1092bindir
1093program_transform_name
1094prefix
1095exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001096PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001097PACKAGE_BUGREPORT
1098PACKAGE_STRING
1099PACKAGE_VERSION
1100PACKAGE_TARNAME
1101PACKAGE_NAME
1102PATH_SEPARATOR
1103SHELL'
1104ac_subst_files=''
1105ac_user_opts='
1106enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001107enable_silent_rules
1108enable_dependency_tracking
1109with_gnu_ld
1110with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001111with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001112enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001113enable_bounds_checking
1114enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001115with_includearch_dir
1116with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001117with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001118with_threads
1119enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001120enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001121enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001122enable_shared
1123enable_static
1124with_pic
1125enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001126with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001127enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001128with_modules
1129enable_delegate_build
1130enable_deprecated
1131enable_installed
1132enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001133enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001134enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001135enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001136enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001137enable_ccmalloc
1138enable_efence
1139enable_prof
1140enable_gprof
1141enable_gcov
1142with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001143enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001144with_quantum_depth
1145with_cache
1146with_frozenpaths
1147with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001148with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001149with_perl
1150with_perl_options
1151with_umem
1152with_libstdc
1153with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001154with_x
cristy3ed852e2009-09-05 21:47:34 +00001155with_zlib
1156with_autotrace
1157with_dps
1158with_djvu
cristy430a7312010-01-21 20:44:04 +00001159with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001160with_fftw
1161with_fpx
1162with_fontconfig
1163with_freetype
1164with_gslib
1165with_fontpath
1166with_gs_font_dir
1167with_gvc
1168with_jbig
1169with_jpeg
1170with_jp2
1171with_lcms
cristy71203402010-06-18 13:12:03 +00001172with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001173with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001174with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001175with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001176with_pango
cristy3ed852e2009-09-05 21:47:34 +00001177with_png
1178with_rsvg
1179with_tiff
cristyb1860752011-03-14 00:27:46 +00001180with_webp
cristy3ed852e2009-09-05 21:47:34 +00001181with_windows_font_dir
1182with_wmf
1183with_xml
1184'
1185 ac_precious_vars='build_alias
1186host_alias
1187target_alias
1188CC
1189CFLAGS
1190LDFLAGS
1191LIBS
1192CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001193CPP
cristy3ed852e2009-09-05 21:47:34 +00001194CXX
1195CXXFLAGS
1196CCC
cristy73bd4a52010-10-05 11:24:23 +00001197PKG_CONFIG
1198CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001199XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001200AUTOTRACE_CFLAGS
1201AUTOTRACE_LIBS
1202FONTCONFIG_CFLAGS
1203FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001204FREETYPE_CFLAGS
1205FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001206GVC_CFLAGS
1207GVC_LIBS
1208LQR_CFLAGS
1209LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001210LZMA_CFLAGS
1211LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001212OPENEXR_CFLAGS
1213OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001214PANGO_CFLAGS
1215PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001216RSVG_CFLAGS
1217RSVG_LIBS
1218CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001219CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001220
1221
1222# Initialize some variables set by options.
1223ac_init_help=
1224ac_init_version=false
1225ac_unrecognized_opts=
1226ac_unrecognized_sep=
1227# The variables have the same names as the options, with
1228# dashes changed to underlines.
1229cache_file=/dev/null
1230exec_prefix=NONE
1231no_create=
1232no_recursion=
1233prefix=NONE
1234program_prefix=NONE
1235program_suffix=NONE
1236program_transform_name=s,x,x,
1237silent=
1238site=
1239srcdir=
1240verbose=
1241x_includes=NONE
1242x_libraries=NONE
1243
1244# Installation directory options.
1245# These are left unexpanded so users can "make install exec_prefix=/foo"
1246# and all the variables that are supposed to be based on exec_prefix
1247# by default will actually change.
1248# Use braces instead of parens because sh, perl, etc. also accept them.
1249# (The list follows the same order as the GNU Coding Standards.)
1250bindir='${exec_prefix}/bin'
1251sbindir='${exec_prefix}/sbin'
1252libexecdir='${exec_prefix}/libexec'
1253datarootdir='${prefix}/share'
1254datadir='${datarootdir}'
1255sysconfdir='${prefix}/etc'
1256sharedstatedir='${prefix}/com'
1257localstatedir='${prefix}/var'
1258includedir='${prefix}/include'
1259oldincludedir='/usr/include'
1260docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1261infodir='${datarootdir}/info'
1262htmldir='${docdir}'
1263dvidir='${docdir}'
1264pdfdir='${docdir}'
1265psdir='${docdir}'
1266libdir='${exec_prefix}/lib'
1267localedir='${datarootdir}/locale'
1268mandir='${datarootdir}/man'
1269
1270ac_prev=
1271ac_dashdash=
1272for ac_option
1273do
1274 # If the previous option needs an argument, assign it.
1275 if test -n "$ac_prev"; then
1276 eval $ac_prev=\$ac_option
1277 ac_prev=
1278 continue
1279 fi
1280
1281 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001282 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1283 *=) ac_optarg= ;;
1284 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001285 esac
1286
1287 # Accept the important Cygnus configure options, so we can diagnose typos.
1288
1289 case $ac_dashdash$ac_option in
1290 --)
1291 ac_dashdash=yes ;;
1292
1293 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1294 ac_prev=bindir ;;
1295 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1296 bindir=$ac_optarg ;;
1297
1298 -build | --build | --buil | --bui | --bu)
1299 ac_prev=build_alias ;;
1300 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1301 build_alias=$ac_optarg ;;
1302
1303 -cache-file | --cache-file | --cache-fil | --cache-fi \
1304 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1305 ac_prev=cache_file ;;
1306 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1307 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1308 cache_file=$ac_optarg ;;
1309
1310 --config-cache | -C)
1311 cache_file=config.cache ;;
1312
1313 -datadir | --datadir | --datadi | --datad)
1314 ac_prev=datadir ;;
1315 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1316 datadir=$ac_optarg ;;
1317
1318 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1319 | --dataroo | --dataro | --datar)
1320 ac_prev=datarootdir ;;
1321 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1322 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1323 datarootdir=$ac_optarg ;;
1324
1325 -disable-* | --disable-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001329 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1333 *"
1334"enable_$ac_useropt"
1335"*) ;;
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1338 esac
1339 eval enable_$ac_useropt=no ;;
1340
1341 -docdir | --docdir | --docdi | --doc | --do)
1342 ac_prev=docdir ;;
1343 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1344 docdir=$ac_optarg ;;
1345
1346 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1347 ac_prev=dvidir ;;
1348 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1349 dvidir=$ac_optarg ;;
1350
1351 -enable-* | --enable-*)
1352 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001355 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1359 *"
1360"enable_$ac_useropt"
1361"*) ;;
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1364 esac
1365 eval enable_$ac_useropt=\$ac_optarg ;;
1366
1367 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1368 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1369 | --exec | --exe | --ex)
1370 ac_prev=exec_prefix ;;
1371 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1372 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1373 | --exec=* | --exe=* | --ex=*)
1374 exec_prefix=$ac_optarg ;;
1375
1376 -gas | --gas | --ga | --g)
1377 # Obsolete; use --with-gas.
1378 with_gas=yes ;;
1379
1380 -help | --help | --hel | --he | -h)
1381 ac_init_help=long ;;
1382 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1383 ac_init_help=recursive ;;
1384 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1385 ac_init_help=short ;;
1386
1387 -host | --host | --hos | --ho)
1388 ac_prev=host_alias ;;
1389 -host=* | --host=* | --hos=* | --ho=*)
1390 host_alias=$ac_optarg ;;
1391
1392 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1393 ac_prev=htmldir ;;
1394 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1395 | --ht=*)
1396 htmldir=$ac_optarg ;;
1397
1398 -includedir | --includedir | --includedi | --included | --include \
1399 | --includ | --inclu | --incl | --inc)
1400 ac_prev=includedir ;;
1401 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1402 | --includ=* | --inclu=* | --incl=* | --inc=*)
1403 includedir=$ac_optarg ;;
1404
1405 -infodir | --infodir | --infodi | --infod | --info | --inf)
1406 ac_prev=infodir ;;
1407 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1408 infodir=$ac_optarg ;;
1409
1410 -libdir | --libdir | --libdi | --libd)
1411 ac_prev=libdir ;;
1412 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1413 libdir=$ac_optarg ;;
1414
1415 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1416 | --libexe | --libex | --libe)
1417 ac_prev=libexecdir ;;
1418 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1419 | --libexe=* | --libex=* | --libe=*)
1420 libexecdir=$ac_optarg ;;
1421
1422 -localedir | --localedir | --localedi | --localed | --locale)
1423 ac_prev=localedir ;;
1424 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1425 localedir=$ac_optarg ;;
1426
1427 -localstatedir | --localstatedir | --localstatedi | --localstated \
1428 | --localstate | --localstat | --localsta | --localst | --locals)
1429 ac_prev=localstatedir ;;
1430 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1431 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1432 localstatedir=$ac_optarg ;;
1433
1434 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1435 ac_prev=mandir ;;
1436 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1437 mandir=$ac_optarg ;;
1438
1439 -nfp | --nfp | --nf)
1440 # Obsolete; use --without-fp.
1441 with_fp=no ;;
1442
1443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1444 | --no-cr | --no-c | -n)
1445 no_create=yes ;;
1446
1447 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1448 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1449 no_recursion=yes ;;
1450
1451 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1452 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1453 | --oldin | --oldi | --old | --ol | --o)
1454 ac_prev=oldincludedir ;;
1455 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1456 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1457 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1458 oldincludedir=$ac_optarg ;;
1459
1460 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1461 ac_prev=prefix ;;
1462 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1463 prefix=$ac_optarg ;;
1464
1465 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1466 | --program-pre | --program-pr | --program-p)
1467 ac_prev=program_prefix ;;
1468 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1469 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1470 program_prefix=$ac_optarg ;;
1471
1472 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1473 | --program-suf | --program-su | --program-s)
1474 ac_prev=program_suffix ;;
1475 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1476 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1477 program_suffix=$ac_optarg ;;
1478
1479 -program-transform-name | --program-transform-name \
1480 | --program-transform-nam | --program-transform-na \
1481 | --program-transform-n | --program-transform- \
1482 | --program-transform | --program-transfor \
1483 | --program-transfo | --program-transf \
1484 | --program-trans | --program-tran \
1485 | --progr-tra | --program-tr | --program-t)
1486 ac_prev=program_transform_name ;;
1487 -program-transform-name=* | --program-transform-name=* \
1488 | --program-transform-nam=* | --program-transform-na=* \
1489 | --program-transform-n=* | --program-transform-=* \
1490 | --program-transform=* | --program-transfor=* \
1491 | --program-transfo=* | --program-transf=* \
1492 | --program-trans=* | --program-tran=* \
1493 | --progr-tra=* | --program-tr=* | --program-t=*)
1494 program_transform_name=$ac_optarg ;;
1495
1496 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1497 ac_prev=pdfdir ;;
1498 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1499 pdfdir=$ac_optarg ;;
1500
1501 -psdir | --psdir | --psdi | --psd | --ps)
1502 ac_prev=psdir ;;
1503 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1504 psdir=$ac_optarg ;;
1505
1506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1507 | -silent | --silent | --silen | --sile | --sil)
1508 silent=yes ;;
1509
1510 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1511 ac_prev=sbindir ;;
1512 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1513 | --sbi=* | --sb=*)
1514 sbindir=$ac_optarg ;;
1515
1516 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1517 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1518 | --sharedst | --shareds | --shared | --share | --shar \
1519 | --sha | --sh)
1520 ac_prev=sharedstatedir ;;
1521 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1522 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1523 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1524 | --sha=* | --sh=*)
1525 sharedstatedir=$ac_optarg ;;
1526
1527 -site | --site | --sit)
1528 ac_prev=site ;;
1529 -site=* | --site=* | --sit=*)
1530 site=$ac_optarg ;;
1531
1532 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1533 ac_prev=srcdir ;;
1534 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1535 srcdir=$ac_optarg ;;
1536
1537 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1538 | --syscon | --sysco | --sysc | --sys | --sy)
1539 ac_prev=sysconfdir ;;
1540 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1541 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1542 sysconfdir=$ac_optarg ;;
1543
1544 -target | --target | --targe | --targ | --tar | --ta | --t)
1545 ac_prev=target_alias ;;
1546 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1547 target_alias=$ac_optarg ;;
1548
1549 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1550 verbose=yes ;;
1551
1552 -version | --version | --versio | --versi | --vers | -V)
1553 ac_init_version=: ;;
1554
1555 -with-* | --with-*)
1556 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1557 # Reject names that are not valid shell variable names.
1558 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001559 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001560 ac_useropt_orig=$ac_useropt
1561 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1562 case $ac_user_opts in
1563 *"
1564"with_$ac_useropt"
1565"*) ;;
1566 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1567 ac_unrecognized_sep=', ';;
1568 esac
1569 eval with_$ac_useropt=\$ac_optarg ;;
1570
1571 -without-* | --without-*)
1572 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1573 # Reject names that are not valid shell variable names.
1574 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001575 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001576 ac_useropt_orig=$ac_useropt
1577 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1578 case $ac_user_opts in
1579 *"
1580"with_$ac_useropt"
1581"*) ;;
1582 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1583 ac_unrecognized_sep=', ';;
1584 esac
1585 eval with_$ac_useropt=no ;;
1586
1587 --x)
1588 # Obsolete; use --with-x.
1589 with_x=yes ;;
1590
1591 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1592 | --x-incl | --x-inc | --x-in | --x-i)
1593 ac_prev=x_includes ;;
1594 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1595 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1596 x_includes=$ac_optarg ;;
1597
1598 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1599 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1600 ac_prev=x_libraries ;;
1601 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1602 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1603 x_libraries=$ac_optarg ;;
1604
cristy98dddb52010-11-04 00:30:15 +00001605 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1606Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001607 ;;
1608
1609 *=*)
1610 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1611 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001612 case $ac_envvar in #(
1613 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001614 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001615 esac
cristy3ed852e2009-09-05 21:47:34 +00001616 eval $ac_envvar=\$ac_optarg
1617 export $ac_envvar ;;
1618
1619 *)
1620 # FIXME: should be removed in autoconf 3.0.
1621 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1622 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1623 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001624 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001625 ;;
1626
1627 esac
1628done
1629
1630if test -n "$ac_prev"; then
1631 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001632 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001633fi
1634
1635if test -n "$ac_unrecognized_opts"; then
1636 case $enable_option_checking in
1637 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001638 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001639 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1640 esac
1641fi
1642
1643# Check all directory arguments for consistency.
1644for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1645 datadir sysconfdir sharedstatedir localstatedir includedir \
1646 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1647 libdir localedir mandir
1648do
1649 eval ac_val=\$$ac_var
1650 # Remove trailing slashes.
1651 case $ac_val in
1652 */ )
1653 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1654 eval $ac_var=\$ac_val;;
1655 esac
1656 # Be sure to have absolute directory names.
1657 case $ac_val in
1658 [\\/$]* | ?:[\\/]* ) continue;;
1659 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1660 esac
cristy98dddb52010-11-04 00:30:15 +00001661 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001662done
1663
1664# There might be people who depend on the old broken behavior: `$host'
1665# used to hold the argument of --host etc.
1666# FIXME: To remove some day.
1667build=$build_alias
1668host=$host_alias
1669target=$target_alias
1670
1671# FIXME: To remove some day.
1672if test "x$host_alias" != x; then
1673 if test "x$build_alias" = x; then
1674 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001675 elif test "x$build_alias" != "x$host_alias"; then
1676 cross_compiling=yes
1677 fi
1678fi
1679
1680ac_tool_prefix=
1681test -n "$host_alias" && ac_tool_prefix=$host_alias-
1682
1683test "$silent" = yes && exec 6>/dev/null
1684
1685
1686ac_pwd=`pwd` && test -n "$ac_pwd" &&
1687ac_ls_di=`ls -di .` &&
1688ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001689 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001690test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001691 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001692
1693
1694# Find the source files, if location was not specified.
1695if test -z "$srcdir"; then
1696 ac_srcdir_defaulted=yes
1697 # Try the directory containing this script, then the parent directory.
1698 ac_confdir=`$as_dirname -- "$as_myself" ||
1699$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1700 X"$as_myself" : 'X\(//\)[^/]' \| \
1701 X"$as_myself" : 'X\(//\)$' \| \
1702 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1703$as_echo X"$as_myself" |
1704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1705 s//\1/
1706 q
1707 }
1708 /^X\(\/\/\)[^/].*/{
1709 s//\1/
1710 q
1711 }
1712 /^X\(\/\/\)$/{
1713 s//\1/
1714 q
1715 }
1716 /^X\(\/\).*/{
1717 s//\1/
1718 q
1719 }
1720 s/.*/./; q'`
1721 srcdir=$ac_confdir
1722 if test ! -r "$srcdir/$ac_unique_file"; then
1723 srcdir=..
1724 fi
1725else
1726 ac_srcdir_defaulted=no
1727fi
1728if test ! -r "$srcdir/$ac_unique_file"; then
1729 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001730 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001731fi
1732ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1733ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001734 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001735 pwd)`
1736# When building in place, set srcdir=.
1737if test "$ac_abs_confdir" = "$ac_pwd"; then
1738 srcdir=.
1739fi
1740# Remove unnecessary trailing slashes from srcdir.
1741# Double slashes in file names in object file debugging info
1742# mess up M-x gdb in Emacs.
1743case $srcdir in
1744*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1745esac
1746for ac_var in $ac_precious_vars; do
1747 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1748 eval ac_env_${ac_var}_value=\$${ac_var}
1749 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1750 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1751done
1752
1753#
1754# Report the --help message.
1755#
1756if test "$ac_init_help" = "long"; then
1757 # Omit some internal or obsolete options to make the list less imposing.
1758 # This message is too long to be a string in the A/UX 3.1 sh.
1759 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001760\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001761
1762Usage: $0 [OPTION]... [VAR=VALUE]...
1763
1764To assign environment variables (e.g., CC, CFLAGS...), specify them as
1765VAR=VALUE. See below for descriptions of some of the useful variables.
1766
1767Defaults for the options are specified in brackets.
1768
1769Configuration:
1770 -h, --help display this help and exit
1771 --help=short display options specific to this package
1772 --help=recursive display the short help of all the included packages
1773 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001774 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001775 --cache-file=FILE cache test results in FILE [disabled]
1776 -C, --config-cache alias for \`--cache-file=config.cache'
1777 -n, --no-create do not create output files
1778 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1779
1780Installation directories:
1781 --prefix=PREFIX install architecture-independent files in PREFIX
1782 [$ac_default_prefix]
1783 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1784 [PREFIX]
1785
1786By default, \`make install' will install all the files in
1787\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1788an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1789for instance \`--prefix=\$HOME'.
1790
1791For better control, use the options below.
1792
1793Fine tuning of the installation directories:
1794 --bindir=DIR user executables [EPREFIX/bin]
1795 --sbindir=DIR system admin executables [EPREFIX/sbin]
1796 --libexecdir=DIR program executables [EPREFIX/libexec]
1797 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1798 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1799 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1800 --libdir=DIR object code libraries [EPREFIX/lib]
1801 --includedir=DIR C header files [PREFIX/include]
1802 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1803 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1804 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1805 --infodir=DIR info documentation [DATAROOTDIR/info]
1806 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1807 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001808 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001809 --htmldir=DIR html documentation [DOCDIR]
1810 --dvidir=DIR dvi documentation [DOCDIR]
1811 --pdfdir=DIR pdf documentation [DOCDIR]
1812 --psdir=DIR ps documentation [DOCDIR]
1813_ACEOF
1814
1815 cat <<\_ACEOF
1816
cristy73bd4a52010-10-05 11:24:23 +00001817Program names:
1818 --program-prefix=PREFIX prepend PREFIX to installed program names
1819 --program-suffix=SUFFIX append SUFFIX to installed program names
1820 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1821
cristy3ed852e2009-09-05 21:47:34 +00001822X features:
1823 --x-includes=DIR X include files are in DIR
1824 --x-libraries=DIR X library files are in DIR
1825
1826System types:
1827 --build=BUILD configure for building on BUILD [guessed]
1828 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1829 --target=TARGET configure for building compilers for TARGET [HOST]
1830_ACEOF
1831fi
1832
1833if test -n "$ac_init_help"; then
1834 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001835 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001836 esac
1837 cat <<\_ACEOF
1838
1839Optional Features:
1840 --disable-option-checking ignore unrecognized --enable/--with options
1841 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1842 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001843 --enable-silent-rules less verbose build output (undo: "make V=1")
1844 --disable-silent-rules verbose build output (undo: "make V=0")
1845 --enable-dependency-tracking
1846 do not reject slow dependency extractors
1847 --disable-dependency-tracking
1848 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001849 --enable-ld-version-script
1850 enable linker version script (default is enabled
1851 when possible)
cristya3824692012-03-30 17:22:07 +00001852 --enable-bounds-checking
1853 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001854 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001855 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001856 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001857 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001858 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001859 --enable-shared[=PKGS] build shared libraries [default=yes]
1860 --enable-static[=PKGS] build static libraries [default=yes]
1861 --enable-fast-install[=PKGS]
1862 optimize for fast installation [default=yes]
1863 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001864 --enable-delegate-build look for delegate libraries in build directory
1865 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001866 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001867 --disable-installed Formally install ImageMagick under PREFIX
1868 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001869 --enable-zero-configuration
1870 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001871 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001872 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001873 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001874 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001875 --enable-maintainer-mode
1876 enable make rules and dependencies not useful (and
1877 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001878 --enable-ccmalloc enable 'ccmalloc' memory debug support
1879 --enable-efence enable 'efence' memory debug support
1880 --enable-prof enable 'prof' profiling support
1881 --enable-gprof enable 'gprof' profiling support
1882 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001883 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001884 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001885
1886Optional Packages:
1887 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1888 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001889 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001890 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001891 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1892 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001893 --includearch-dir=DIR ARCH specific include directory
1894 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001895 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001896 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001897 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001898 both]
cristyda16f162011-02-19 23:52:17 +00001899 --with-sysroot=DIR Search for dependent libraries within DIR
1900 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001901 --with-modules enable building dynamically loadable modules
1902 --with-method-prefix=PREFIX
1903 prefix MagickCore API methods
1904 --with-quantum-depth=DEPTH
1905 number of bits in a pixel quantum (default 16)
1906 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1907 memory)
1908 --with-frozenpaths freeze delegate paths
1909 --without-magick-plus-plus
1910 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001911 --with-package-release-name=NAME
1912 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001913 --with-perl enable build/install of PerlMagick
1914 --with-perl-options=OPTIONS
1915 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001916 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001917 --with-umem enable umem memory allocation library support
1918 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1919 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001920 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001921 --without-zlib disable ZLIB support
1922 --with-autotrace enable autotrace support
1923 --without-dps disable Display Postscript support
1924 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001925 --with-dejavu-font-dir=DIR
1926 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001927 --without-fftw disable FFTW support
1928 --without-fpx disable FlashPIX support
1929 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001930 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001931 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001932 --with-fontpath=DIR prepend to default font search path
1933 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001934 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001935 --without-jbig disable JBIG support
1936 --without-jpeg disable JPEG support
1937 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001938 --without-lcms disable lcms (v1.1X) support
1939 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001940 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001941 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001942 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001943 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001944 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001945 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001947 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001948 --with-windows-font-dir=DIR
1949 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001950 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001951 --without-xml disable XML support
1952
1953Some influential environment variables:
1954 CC C compiler command
1955 CFLAGS C compiler flags
1956 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1957 nonstandard directory <lib dir>
1958 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001959 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001960 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001961 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001962 CXX C++ compiler command
1963 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001964 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001965 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001966 XMKMF Path to xmkmf, Makefile generator for X Window System
1967 AUTOTRACE_CFLAGS
1968 C compiler flags for AUTOTRACE, overriding pkg-config
1969 AUTOTRACE_LIBS
1970 linker flags for AUTOTRACE, overriding pkg-config
1971 FONTCONFIG_CFLAGS
1972 C compiler flags for FONTCONFIG, overriding pkg-config
1973 FONTCONFIG_LIBS
1974 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001975 FREETYPE_CFLAGS
1976 C compiler flags for FREETYPE, overriding pkg-config
1977 FREETYPE_LIBS
1978 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001979 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1980 GVC_LIBS linker flags for GVC, overriding pkg-config
1981 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1982 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001983 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1984 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001985 OPENEXR_CFLAGS
1986 C compiler flags for OPENEXR, overriding pkg-config
1987 OPENEXR_LIBS
1988 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001989 PANGO_CFLAGS
1990 C compiler flags for PANGO, overriding pkg-config
1991 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001992 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1993 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1994 CAIRO_SVG_CFLAGS
1995 C compiler flags for CAIRO_SVG, overriding pkg-config
1996 CAIRO_SVG_LIBS
1997 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001998
1999Use these variables to override the choices made by `configure' or to help
2000it to find libraries and programs with nonstandard names/locations.
2001
2002Report bugs to <http://www.imagemagick.org>.
2003_ACEOF
2004ac_status=$?
2005fi
2006
2007if test "$ac_init_help" = "recursive"; then
2008 # If there are subdirs, report their specific --help.
2009 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2010 test -d "$ac_dir" ||
2011 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2012 continue
2013 ac_builddir=.
2014
2015case "$ac_dir" in
2016.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2017*)
2018 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2019 # A ".." for each directory in $ac_dir_suffix.
2020 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2021 case $ac_top_builddir_sub in
2022 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2023 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2024 esac ;;
2025esac
2026ac_abs_top_builddir=$ac_pwd
2027ac_abs_builddir=$ac_pwd$ac_dir_suffix
2028# for backward compatibility:
2029ac_top_builddir=$ac_top_build_prefix
2030
2031case $srcdir in
2032 .) # We are building in place.
2033 ac_srcdir=.
2034 ac_top_srcdir=$ac_top_builddir_sub
2035 ac_abs_top_srcdir=$ac_pwd ;;
2036 [\\/]* | ?:[\\/]* ) # Absolute name.
2037 ac_srcdir=$srcdir$ac_dir_suffix;
2038 ac_top_srcdir=$srcdir
2039 ac_abs_top_srcdir=$srcdir ;;
2040 *) # Relative name.
2041 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2042 ac_top_srcdir=$ac_top_build_prefix$srcdir
2043 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2044esac
2045ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2046
2047 cd "$ac_dir" || { ac_status=$?; continue; }
2048 # Check for guested configure.
2049 if test -f "$ac_srcdir/configure.gnu"; then
2050 echo &&
2051 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2052 elif test -f "$ac_srcdir/configure"; then
2053 echo &&
2054 $SHELL "$ac_srcdir/configure" --help=recursive
2055 else
2056 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2057 fi || ac_status=$?
2058 cd "$ac_pwd" || { ac_status=$?; break; }
2059 done
2060fi
2061
2062test -n "$ac_init_help" && exit $ac_status
2063if $ac_init_version; then
2064 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002065ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002066generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002067
cristy14fefe52012-05-21 00:59:18 +00002068Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002069This configure script is free software; the Free Software Foundation
2070gives unlimited permission to copy, distribute and modify it.
2071_ACEOF
2072 exit
2073fi
cristy8b350f62009-11-15 23:12:43 +00002074
2075## ------------------------ ##
2076## Autoconf initialization. ##
2077## ------------------------ ##
2078
2079# ac_fn_c_try_compile LINENO
2080# --------------------------
2081# Try to compile conftest.$ac_ext, and return whether this succeeded.
2082ac_fn_c_try_compile ()
2083{
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 rm -f conftest.$ac_objext
2086 if { { ac_try="$ac_compile"
2087case "(($ac_try" in
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2090esac
2091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092$as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_compile") 2>conftest.err
2094 ac_status=$?
2095 if test -s conftest.err; then
2096 grep -v '^ *+' conftest.err >conftest.er1
2097 cat conftest.er1 >&5
2098 mv -f conftest.er1 conftest.err
2099 fi
2100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101 test $ac_status = 0; } && {
2102 test -z "$ac_c_werror_flag" ||
2103 test ! -s conftest.err
2104 } && test -s conftest.$ac_objext; then :
2105 ac_retval=0
2106else
2107 $as_echo "$as_me: failed program was:" >&5
2108sed 's/^/| /' conftest.$ac_ext >&5
2109
2110 ac_retval=1
2111fi
cristyda16f162011-02-19 23:52:17 +00002112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002113 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002114
2115} # ac_fn_c_try_compile
2116
cristy95646052009-11-28 23:05:30 +00002117# ac_fn_c_try_cpp LINENO
2118# ----------------------
2119# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2120ac_fn_c_try_cpp ()
2121{
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if { { ac_try="$ac_cpp conftest.$ac_ext"
2124case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127esac
2128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129$as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2131 ac_status=$?
2132 if test -s conftest.err; then
2133 grep -v '^ *+' conftest.err >conftest.er1
2134 cat conftest.er1 >&5
2135 mv -f conftest.er1 conftest.err
2136 fi
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002138 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2140 test ! -s conftest.err
2141 }; then :
2142 ac_retval=0
2143else
2144 $as_echo "$as_me: failed program was:" >&5
2145sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 ac_retval=1
2148fi
cristyda16f162011-02-19 23:52:17 +00002149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002150 as_fn_set_status $ac_retval
2151
2152} # ac_fn_c_try_cpp
2153
cristy8b350f62009-11-15 23:12:43 +00002154# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2155# -------------------------------------------------------
2156# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2157# the include files in INCLUDES and setting the cache variable VAR
2158# accordingly.
2159ac_fn_c_check_header_mongrel ()
2160{
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002162 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002165if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002166 $as_echo_n "(cached) " >&6
2167fi
2168eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170$as_echo "$ac_res" >&6; }
2171else
2172 # Is the header compilable?
2173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2174$as_echo_n "checking $2 usability... " >&6; }
2175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176/* end confdefs.h. */
2177$4
2178#include <$2>
2179_ACEOF
2180if ac_fn_c_try_compile "$LINENO"; then :
2181 ac_header_compiler=yes
2182else
2183 ac_header_compiler=no
2184fi
2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2187$as_echo "$ac_header_compiler" >&6; }
2188
2189# Is the header present?
2190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2191$as_echo_n "checking $2 presence... " >&6; }
2192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193/* end confdefs.h. */
2194#include <$2>
2195_ACEOF
2196if ac_fn_c_try_cpp "$LINENO"; then :
2197 ac_header_preproc=yes
2198else
2199 ac_header_preproc=no
2200fi
cristyda16f162011-02-19 23:52:17 +00002201rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2203$as_echo "$ac_header_preproc" >&6; }
2204
2205# So? What about this header?
2206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2207 yes:no: )
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2209$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2211$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2212 ;;
2213 no:yes:* )
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2215$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2217$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2219$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2221$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2223$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002224( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002225## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002226## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002227 ) | sed "s/^/$as_me: WARNING: /" >&2
2228 ;;
2229esac
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002232if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002233 $as_echo_n "(cached) " >&6
2234else
2235 eval "$3=\$ac_header_compiler"
2236fi
2237eval ac_res=\$$3
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239$as_echo "$ac_res" >&6; }
2240fi
cristyda16f162011-02-19 23:52:17 +00002241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002242
2243} # ac_fn_c_check_header_mongrel
2244
2245# ac_fn_c_try_run LINENO
2246# ----------------------
2247# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2248# that executables *can* be run.
2249ac_fn_c_try_run ()
2250{
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 if { { ac_try="$ac_link"
2253case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256esac
2257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258$as_echo "$ac_try_echo"; } >&5
2259 (eval "$ac_link") 2>&5
2260 ac_status=$?
2261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2262 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2263 { { case "(($ac_try" in
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2266esac
2267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268$as_echo "$ac_try_echo"; } >&5
2269 (eval "$ac_try") 2>&5
2270 ac_status=$?
2271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2272 test $ac_status = 0; }; }; then :
2273 ac_retval=0
2274else
2275 $as_echo "$as_me: program exited with status $ac_status" >&5
2276 $as_echo "$as_me: failed program was:" >&5
2277sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 ac_retval=$ac_status
2280fi
2281 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002283 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002284
2285} # ac_fn_c_try_run
2286
2287# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2288# -------------------------------------------------------
2289# Tests whether HEADER exists and can be compiled using the include files in
2290# INCLUDES, setting the cache variable VAR accordingly.
2291ac_fn_c_check_header_compile ()
2292{
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2295$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002296if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002297 $as_echo_n "(cached) " >&6
2298else
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300/* end confdefs.h. */
2301$4
2302#include <$2>
2303_ACEOF
2304if ac_fn_c_try_compile "$LINENO"; then :
2305 eval "$3=yes"
2306else
2307 eval "$3=no"
2308fi
2309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310fi
2311eval ac_res=\$$3
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2313$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002315
2316} # ac_fn_c_check_header_compile
2317
cristya0b81c32010-01-22 02:54:33 +00002318# ac_fn_cxx_try_compile LINENO
2319# ----------------------------
2320# Try to compile conftest.$ac_ext, and return whether this succeeded.
2321ac_fn_cxx_try_compile ()
2322{
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 rm -f conftest.$ac_objext
2325 if { { ac_try="$ac_compile"
2326case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329esac
2330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2331$as_echo "$ac_try_echo"; } >&5
2332 (eval "$ac_compile") 2>conftest.err
2333 ac_status=$?
2334 if test -s conftest.err; then
2335 grep -v '^ *+' conftest.err >conftest.er1
2336 cat conftest.er1 >&5
2337 mv -f conftest.er1 conftest.err
2338 fi
2339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340 test $ac_status = 0; } && {
2341 test -z "$ac_cxx_werror_flag" ||
2342 test ! -s conftest.err
2343 } && test -s conftest.$ac_objext; then :
2344 ac_retval=0
2345else
2346 $as_echo "$as_me: failed program was:" >&5
2347sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 ac_retval=1
2350fi
cristyda16f162011-02-19 23:52:17 +00002351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002352 as_fn_set_status $ac_retval
2353
2354} # ac_fn_cxx_try_compile
2355
cristy8b350f62009-11-15 23:12:43 +00002356# ac_fn_c_try_link LINENO
2357# -----------------------
2358# Try to link conftest.$ac_ext, and return whether this succeeded.
2359ac_fn_c_try_link ()
2360{
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 rm -f conftest.$ac_objext conftest$ac_exeext
2363 if { { ac_try="$ac_link"
2364case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367esac
2368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369$as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_link") 2>conftest.err
2371 ac_status=$?
2372 if test -s conftest.err; then
2373 grep -v '^ *+' conftest.err >conftest.er1
2374 cat conftest.er1 >&5
2375 mv -f conftest.er1 conftest.err
2376 fi
2377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2378 test $ac_status = 0; } && {
2379 test -z "$ac_c_werror_flag" ||
2380 test ! -s conftest.err
2381 } && test -s conftest$ac_exeext && {
2382 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002383 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002384 }; then :
2385 ac_retval=0
2386else
2387 $as_echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390 ac_retval=1
2391fi
2392 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2393 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2394 # interfere with the next link command; also delete a directory that is
2395 # left behind by Apple's compiler. We do this before executing the actions.
2396 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002398 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002399
2400} # ac_fn_c_try_link
2401
cristy73bd4a52010-10-05 11:24:23 +00002402# ac_fn_c_check_func LINENO FUNC VAR
2403# ----------------------------------
2404# Tests whether FUNC exists, setting the cache variable VAR accordingly
2405ac_fn_c_check_func ()
2406{
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2409$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002410if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002411 $as_echo_n "(cached) " >&6
2412else
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414/* end confdefs.h. */
2415/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2417#define $2 innocuous_$2
2418
2419/* System header to define __stub macros and hopefully few prototypes,
2420 which can conflict with char $2 (); below.
2421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2422 <limits.h> exists even on freestanding compilers. */
2423
2424#ifdef __STDC__
2425# include <limits.h>
2426#else
2427# include <assert.h>
2428#endif
2429
2430#undef $2
2431
2432/* Override any GCC internal prototype to avoid an error.
2433 Use char because int might match the return type of a GCC
2434 builtin and then its argument prototype would still apply. */
2435#ifdef __cplusplus
2436extern "C"
2437#endif
2438char $2 ();
2439/* The GNU C library defines this for functions which it implements
2440 to always fail with ENOSYS. Some functions are actually named
2441 something starting with __ and the normal name is an alias. */
2442#if defined __stub_$2 || defined __stub___$2
2443choke me
2444#endif
2445
2446int
2447main ()
2448{
2449return $2 ();
2450 ;
2451 return 0;
2452}
2453_ACEOF
2454if ac_fn_c_try_link "$LINENO"; then :
2455 eval "$3=yes"
2456else
2457 eval "$3=no"
2458fi
2459rm -f core conftest.err conftest.$ac_objext \
2460 conftest$ac_exeext conftest.$ac_ext
2461fi
2462eval ac_res=\$$3
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002466
2467} # ac_fn_c_check_func
2468
2469# ac_fn_cxx_try_cpp LINENO
2470# ------------------------
2471# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2472ac_fn_cxx_try_cpp ()
2473{
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 if { { ac_try="$ac_cpp conftest.$ac_ext"
2476case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479esac
2480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2481$as_echo "$ac_try_echo"; } >&5
2482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2483 ac_status=$?
2484 if test -s conftest.err; then
2485 grep -v '^ *+' conftest.err >conftest.er1
2486 cat conftest.er1 >&5
2487 mv -f conftest.er1 conftest.err
2488 fi
2489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002490 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002491 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2492 test ! -s conftest.err
2493 }; then :
2494 ac_retval=0
2495else
2496 $as_echo "$as_me: failed program was:" >&5
2497sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 ac_retval=1
2500fi
cristyda16f162011-02-19 23:52:17 +00002501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002502 as_fn_set_status $ac_retval
2503
2504} # ac_fn_cxx_try_cpp
2505
2506# ac_fn_cxx_try_link LINENO
2507# -------------------------
2508# Try to link conftest.$ac_ext, and return whether this succeeded.
2509ac_fn_cxx_try_link ()
2510{
2511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512 rm -f conftest.$ac_objext conftest$ac_exeext
2513 if { { ac_try="$ac_link"
2514case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2517esac
2518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2519$as_echo "$ac_try_echo"; } >&5
2520 (eval "$ac_link") 2>conftest.err
2521 ac_status=$?
2522 if test -s conftest.err; then
2523 grep -v '^ *+' conftest.err >conftest.er1
2524 cat conftest.er1 >&5
2525 mv -f conftest.er1 conftest.err
2526 fi
2527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2528 test $ac_status = 0; } && {
2529 test -z "$ac_cxx_werror_flag" ||
2530 test ! -s conftest.err
2531 } && test -s conftest$ac_exeext && {
2532 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002533 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002534 }; then :
2535 ac_retval=0
2536else
2537 $as_echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_retval=1
2541fi
2542 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2543 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2544 # interfere with the next link command; also delete a directory that is
2545 # left behind by Apple's compiler. We do this before executing the actions.
2546 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002548 as_fn_set_status $ac_retval
2549
2550} # ac_fn_cxx_try_link
2551
cristy8b350f62009-11-15 23:12:43 +00002552# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2553# -------------------------------------------
2554# Tests whether TYPE exists after having included INCLUDES, setting cache
2555# variable VAR accordingly.
2556ac_fn_c_check_type ()
2557{
2558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2560$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002561if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002562 $as_echo_n "(cached) " >&6
2563else
2564 eval "$3=no"
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566/* end confdefs.h. */
2567$4
2568int
2569main ()
2570{
2571if (sizeof ($2))
2572 return 0;
2573 ;
2574 return 0;
2575}
2576_ACEOF
2577if ac_fn_c_try_compile "$LINENO"; then :
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579/* end confdefs.h. */
2580$4
2581int
2582main ()
2583{
2584if (sizeof (($2)))
2585 return 0;
2586 ;
2587 return 0;
2588}
2589_ACEOF
2590if ac_fn_c_try_compile "$LINENO"; then :
2591
2592else
2593 eval "$3=yes"
2594fi
2595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596fi
2597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598fi
2599eval ac_res=\$$3
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002603
2604} # ac_fn_c_check_type
2605
cristy92703d82010-04-26 00:18:18 +00002606# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2607# ----------------------------------------------------
2608# Tries to find if the field MEMBER exists in type AGGR, after including
2609# INCLUDES, setting cache variable VAR accordingly.
2610ac_fn_c_check_member ()
2611{
2612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2614$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002615if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002616 $as_echo_n "(cached) " >&6
2617else
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619/* end confdefs.h. */
2620$5
2621int
2622main ()
2623{
2624static $2 ac_aggr;
2625if (ac_aggr.$3)
2626return 0;
2627 ;
2628 return 0;
2629}
2630_ACEOF
2631if ac_fn_c_try_compile "$LINENO"; then :
2632 eval "$4=yes"
2633else
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635/* end confdefs.h. */
2636$5
2637int
2638main ()
2639{
2640static $2 ac_aggr;
2641if (sizeof ac_aggr.$3)
2642return 0;
2643 ;
2644 return 0;
2645}
2646_ACEOF
2647if ac_fn_c_try_compile "$LINENO"; then :
2648 eval "$4=yes"
2649else
2650 eval "$4=no"
2651fi
2652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653fi
2654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655fi
2656eval ac_res=\$$4
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2658$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002660
2661} # ac_fn_c_check_member
2662
cristy5eef09f2012-10-16 12:08:28 +00002663# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2664# ---------------------------------------------
2665# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2666# accordingly.
2667ac_fn_c_check_decl ()
2668{
2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670 as_decl_name=`echo $2|sed 's/ *(.*//'`
2671 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2673$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2674if eval \${$3+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676else
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678/* end confdefs.h. */
2679$4
2680int
2681main ()
2682{
2683#ifndef $as_decl_name
2684#ifdef __cplusplus
2685 (void) $as_decl_use;
2686#else
2687 (void) $as_decl_name;
2688#endif
2689#endif
2690
2691 ;
2692 return 0;
2693}
2694_ACEOF
2695if ac_fn_c_try_compile "$LINENO"; then :
2696 eval "$3=yes"
2697else
2698 eval "$3=no"
2699fi
2700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701fi
2702eval ac_res=\$$3
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2704$as_echo "$ac_res" >&6; }
2705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2706
2707} # ac_fn_c_check_decl
2708
cristy501c8042011-05-26 17:46:28 +00002709# ac_fn_c_find_intX_t LINENO BITS VAR
2710# -----------------------------------
2711# Finds a signed integer type with width BITS, setting cache variable VAR
2712# accordingly.
2713ac_fn_c_find_intX_t ()
2714{
2715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2717$as_echo_n "checking for int$2_t... " >&6; }
2718if eval \${$3+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720else
2721 eval "$3=no"
2722 # Order is important - never check a type that is potentially smaller
2723 # than half of the expected target width.
2724 for ac_type in int$2_t 'int' 'long int' \
2725 'long long int' 'short int' 'signed char'; do
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727/* end confdefs.h. */
2728$ac_includes_default
2729 enum { N = $2 / 2 - 1 };
2730int
2731main ()
2732{
2733static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002734test_array [0] = 0;
2735return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002736
2737 ;
2738 return 0;
2739}
2740_ACEOF
2741if ac_fn_c_try_compile "$LINENO"; then :
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743/* end confdefs.h. */
2744$ac_includes_default
2745 enum { N = $2 / 2 - 1 };
2746int
2747main ()
2748{
2749static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2750 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002751test_array [0] = 0;
2752return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002753
2754 ;
2755 return 0;
2756}
2757_ACEOF
2758if ac_fn_c_try_compile "$LINENO"; then :
2759
2760else
2761 case $ac_type in #(
2762 int$2_t) :
2763 eval "$3=yes" ;; #(
2764 *) :
2765 eval "$3=\$ac_type" ;;
2766esac
2767fi
2768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769fi
2770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 if eval test \"x\$"$3"\" = x"no"; then :
2772
2773else
2774 break
2775fi
2776 done
2777fi
2778eval ac_res=\$$3
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2780$as_echo "$ac_res" >&6; }
2781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2782
2783} # ac_fn_c_find_intX_t
2784
2785# ac_fn_c_find_uintX_t LINENO BITS VAR
2786# ------------------------------------
2787# Finds an unsigned integer type with width BITS, setting cache variable VAR
2788# accordingly.
2789ac_fn_c_find_uintX_t ()
2790{
2791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2793$as_echo_n "checking for uint$2_t... " >&6; }
2794if eval \${$3+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796else
2797 eval "$3=no"
2798 # Order is important - never check a type that is potentially smaller
2799 # than half of the expected target width.
2800 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2801 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h. */
2804$ac_includes_default
2805int
2806main ()
2807{
2808static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002809test_array [0] = 0;
2810return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002811
2812 ;
2813 return 0;
2814}
2815_ACEOF
2816if ac_fn_c_try_compile "$LINENO"; then :
2817 case $ac_type in #(
2818 uint$2_t) :
2819 eval "$3=yes" ;; #(
2820 *) :
2821 eval "$3=\$ac_type" ;;
2822esac
2823fi
2824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825 if eval test \"x\$"$3"\" = x"no"; then :
2826
2827else
2828 break
2829fi
2830 done
2831fi
2832eval ac_res=\$$3
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834$as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2836
2837} # ac_fn_c_find_uintX_t
2838
cristy8b350f62009-11-15 23:12:43 +00002839# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2840# --------------------------------------------
2841# Tries to find the compile-time value of EXPR in a program that includes
2842# INCLUDES, setting VAR accordingly. Returns whether the value could be
2843# computed
2844ac_fn_c_compute_int ()
2845{
2846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2847 if test "$cross_compiling" = yes; then
2848 # Depending upon the size, compute the lo and hi bounds.
2849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850/* end confdefs.h. */
2851$4
2852int
2853main ()
2854{
2855static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002856test_array [0] = 0;
2857return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002858
2859 ;
2860 return 0;
2861}
2862_ACEOF
2863if ac_fn_c_try_compile "$LINENO"; then :
2864 ac_lo=0 ac_mid=0
2865 while :; do
2866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867/* end confdefs.h. */
2868$4
2869int
2870main ()
2871{
2872static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002873test_array [0] = 0;
2874return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002875
2876 ;
2877 return 0;
2878}
2879_ACEOF
2880if ac_fn_c_try_compile "$LINENO"; then :
2881 ac_hi=$ac_mid; break
2882else
2883 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2884 if test $ac_lo -le $ac_mid; then
2885 ac_lo= ac_hi=
2886 break
2887 fi
2888 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2889fi
2890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891 done
2892else
2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894/* end confdefs.h. */
2895$4
2896int
2897main ()
2898{
2899static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002900test_array [0] = 0;
2901return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002902
2903 ;
2904 return 0;
2905}
2906_ACEOF
2907if ac_fn_c_try_compile "$LINENO"; then :
2908 ac_hi=-1 ac_mid=-1
2909 while :; do
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911/* end confdefs.h. */
2912$4
2913int
2914main ()
2915{
2916static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002917test_array [0] = 0;
2918return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002919
2920 ;
2921 return 0;
2922}
2923_ACEOF
2924if ac_fn_c_try_compile "$LINENO"; then :
2925 ac_lo=$ac_mid; break
2926else
2927 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2928 if test $ac_mid -le $ac_hi; then
2929 ac_lo= ac_hi=
2930 break
2931 fi
2932 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2933fi
2934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935 done
2936else
2937 ac_lo= ac_hi=
2938fi
2939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2940fi
2941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942# Binary search between lo and hi bounds.
2943while test "x$ac_lo" != "x$ac_hi"; do
2944 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946/* end confdefs.h. */
2947$4
2948int
2949main ()
2950{
2951static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002952test_array [0] = 0;
2953return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002954
2955 ;
2956 return 0;
2957}
2958_ACEOF
2959if ac_fn_c_try_compile "$LINENO"; then :
2960 ac_hi=$ac_mid
2961else
2962 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2963fi
2964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965done
2966case $ac_lo in #((
2967?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2968'') ac_retval=1 ;;
2969esac
2970 else
2971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2972/* end confdefs.h. */
2973$4
2974static long int longval () { return $2; }
2975static unsigned long int ulongval () { return $2; }
2976#include <stdio.h>
2977#include <stdlib.h>
2978int
2979main ()
2980{
2981
2982 FILE *f = fopen ("conftest.val", "w");
2983 if (! f)
2984 return 1;
2985 if (($2) < 0)
2986 {
2987 long int i = longval ();
2988 if (i != ($2))
2989 return 1;
2990 fprintf (f, "%ld", i);
2991 }
2992 else
2993 {
2994 unsigned long int i = ulongval ();
2995 if (i != ($2))
2996 return 1;
2997 fprintf (f, "%lu", i);
2998 }
2999 /* Do not output a trailing newline, as this causes \r\n confusion
3000 on some platforms. */
3001 return ferror (f) || fclose (f) != 0;
3002
3003 ;
3004 return 0;
3005}
3006_ACEOF
3007if ac_fn_c_try_run "$LINENO"; then :
3008 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3009else
3010 ac_retval=1
3011fi
3012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3013 conftest.$ac_objext conftest.beam conftest.$ac_ext
3014rm -f conftest.val
3015
3016 fi
cristyda16f162011-02-19 23:52:17 +00003017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003018 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003019
3020} # ac_fn_c_compute_int
3021
3022# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3023# ---------------------------------------------------------
3024# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3025# the include files in INCLUDES and setting the cache variable VAR
3026# accordingly.
3027ac_fn_cxx_check_header_mongrel ()
3028{
3029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003030 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3032$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003033if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003034 $as_echo_n "(cached) " >&6
3035fi
3036eval ac_res=\$$3
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3038$as_echo "$ac_res" >&6; }
3039else
3040 # Is the header compilable?
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3042$as_echo_n "checking $2 usability... " >&6; }
3043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044/* end confdefs.h. */
3045$4
3046#include <$2>
3047_ACEOF
3048if ac_fn_cxx_try_compile "$LINENO"; then :
3049 ac_header_compiler=yes
3050else
3051 ac_header_compiler=no
3052fi
3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3055$as_echo "$ac_header_compiler" >&6; }
3056
3057# Is the header present?
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3059$as_echo_n "checking $2 presence... " >&6; }
3060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061/* end confdefs.h. */
3062#include <$2>
3063_ACEOF
3064if ac_fn_cxx_try_cpp "$LINENO"; then :
3065 ac_header_preproc=yes
3066else
3067 ac_header_preproc=no
3068fi
cristyda16f162011-02-19 23:52:17 +00003069rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3071$as_echo "$ac_header_preproc" >&6; }
3072
3073# So? What about this header?
3074case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3075 yes:no: )
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3077$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3079$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3080 ;;
3081 no:yes:* )
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3083$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3085$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3087$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3089$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3091$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003092( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003093## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003094## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003095 ) | sed "s/^/$as_me: WARNING: /" >&2
3096 ;;
3097esac
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3099$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003100if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003101 $as_echo_n "(cached) " >&6
3102else
3103 eval "$3=\$ac_header_compiler"
3104fi
3105eval ac_res=\$$3
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3107$as_echo "$ac_res" >&6; }
3108fi
cristyda16f162011-02-19 23:52:17 +00003109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003110
3111} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003112cat >config.log <<_ACEOF
3113This file contains any messages produced by compilers while
3114running configure, to aid debugging if configure makes a mistake.
3115
cristy29eb34e2011-10-16 00:46:08 +00003116It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003117generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003118
3119 $ $0 $@
3120
3121_ACEOF
3122exec 5>>config.log
3123{
3124cat <<_ASUNAME
3125## --------- ##
3126## Platform. ##
3127## --------- ##
3128
3129hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3130uname -m = `(uname -m) 2>/dev/null || echo unknown`
3131uname -r = `(uname -r) 2>/dev/null || echo unknown`
3132uname -s = `(uname -s) 2>/dev/null || echo unknown`
3133uname -v = `(uname -v) 2>/dev/null || echo unknown`
3134
3135/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3136/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3137
3138/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3139/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3140/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3141/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3142/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3143/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3144/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3145
3146_ASUNAME
3147
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003153 $as_echo "PATH: $as_dir"
3154 done
cristy3ed852e2009-09-05 21:47:34 +00003155IFS=$as_save_IFS
3156
3157} >&5
3158
3159cat >&5 <<_ACEOF
3160
3161
3162## ----------- ##
3163## Core tests. ##
3164## ----------- ##
3165
3166_ACEOF
3167
3168
3169# Keep a trace of the command line.
3170# Strip out --no-create and --no-recursion so they do not pile up.
3171# Strip out --silent because we don't want to record it for future runs.
3172# Also quote any args containing shell meta-characters.
3173# Make two passes to allow for proper duplicate-argument suppression.
3174ac_configure_args=
3175ac_configure_args0=
3176ac_configure_args1=
3177ac_must_keep_next=false
3178for ac_pass in 1 2
3179do
3180 for ac_arg
3181 do
3182 case $ac_arg in
3183 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3185 | -silent | --silent | --silen | --sile | --sil)
3186 continue ;;
3187 *\'*)
3188 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3189 esac
3190 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003191 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003192 2)
cristy8b350f62009-11-15 23:12:43 +00003193 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003194 if test $ac_must_keep_next = true; then
3195 ac_must_keep_next=false # Got value, back to normal.
3196 else
3197 case $ac_arg in
3198 *=* | --config-cache | -C | -disable-* | --disable-* \
3199 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3200 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3201 | -with-* | --with-* | -without-* | --without-* | --x)
3202 case "$ac_configure_args0 " in
3203 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3204 esac
3205 ;;
3206 -* ) ac_must_keep_next=true ;;
3207 esac
3208 fi
cristy8b350f62009-11-15 23:12:43 +00003209 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003210 ;;
3211 esac
3212 done
3213done
cristy8b350f62009-11-15 23:12:43 +00003214{ ac_configure_args0=; unset ac_configure_args0;}
3215{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003216
3217# When interrupted or exit'd, cleanup temporary files, and complete
3218# config.log. We remove comments because anyway the quotes in there
3219# would cause problems or look ugly.
3220# WARNING: Use '\'' to represent an apostrophe within the trap.
3221# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3222trap 'exit_status=$?
3223 # Save into config.log some information that might help in debugging.
3224 {
3225 echo
3226
cristy98dddb52010-11-04 00:30:15 +00003227 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003228## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003229## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003230 echo
3231 # The following way of writing the cache mishandles newlines in values,
3232(
3233 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3234 eval ac_val=\$$ac_var
3235 case $ac_val in #(
3236 *${as_nl}*)
3237 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003238 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003239$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3240 esac
3241 case $ac_var in #(
3242 _ | IFS | as_nl) ;; #(
3243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003244 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003245 esac ;;
3246 esac
3247 done
3248 (set) 2>&1 |
3249 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3250 *${as_nl}ac_space=\ *)
3251 sed -n \
3252 "s/'\''/'\''\\\\'\'''\''/g;
3253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3254 ;; #(
3255 *)
3256 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3257 ;;
3258 esac |
3259 sort
3260)
3261 echo
3262
cristy98dddb52010-11-04 00:30:15 +00003263 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003264## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003265## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003266 echo
3267 for ac_var in $ac_subst_vars
3268 do
3269 eval ac_val=\$$ac_var
3270 case $ac_val in
3271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3272 esac
3273 $as_echo "$ac_var='\''$ac_val'\''"
3274 done | sort
3275 echo
3276
3277 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003278 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003279## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003280## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003281 echo
3282 for ac_var in $ac_subst_files
3283 do
3284 eval ac_val=\$$ac_var
3285 case $ac_val in
3286 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3287 esac
3288 $as_echo "$ac_var='\''$ac_val'\''"
3289 done | sort
3290 echo
3291 fi
3292
3293 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003294 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003295## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003296## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003297 echo
3298 cat confdefs.h
3299 echo
3300 fi
3301 test "$ac_signal" != 0 &&
3302 $as_echo "$as_me: caught signal $ac_signal"
3303 $as_echo "$as_me: exit $exit_status"
3304 } >&5
3305 rm -f core *.core core.conftest.* &&
3306 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3307 exit $exit_status
3308' 0
3309for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003310 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003311done
3312ac_signal=0
3313
3314# confdefs.h avoids OS command line length limits that DEFS can exceed.
3315rm -f -r conftest* confdefs.h
3316
cristy8b350f62009-11-15 23:12:43 +00003317$as_echo "/* confdefs.h */" > confdefs.h
3318
cristy3ed852e2009-09-05 21:47:34 +00003319# Predefined preprocessor variables.
3320
3321cat >>confdefs.h <<_ACEOF
3322#define PACKAGE_NAME "$PACKAGE_NAME"
3323_ACEOF
3324
cristy3ed852e2009-09-05 21:47:34 +00003325cat >>confdefs.h <<_ACEOF
3326#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3327_ACEOF
3328
cristy3ed852e2009-09-05 21:47:34 +00003329cat >>confdefs.h <<_ACEOF
3330#define PACKAGE_VERSION "$PACKAGE_VERSION"
3331_ACEOF
3332
cristy3ed852e2009-09-05 21:47:34 +00003333cat >>confdefs.h <<_ACEOF
3334#define PACKAGE_STRING "$PACKAGE_STRING"
3335_ACEOF
3336
cristy3ed852e2009-09-05 21:47:34 +00003337cat >>confdefs.h <<_ACEOF
3338#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3339_ACEOF
3340
cristy8b350f62009-11-15 23:12:43 +00003341cat >>confdefs.h <<_ACEOF
3342#define PACKAGE_URL "$PACKAGE_URL"
3343_ACEOF
3344
cristy3ed852e2009-09-05 21:47:34 +00003345
3346# Let the site file select an alternate cache file if it wants to.
3347# Prefer an explicitly selected file to automatically selected ones.
3348ac_site_file1=NONE
3349ac_site_file2=NONE
3350if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003351 # We do not want a PATH search for config.site.
3352 case $CONFIG_SITE in #((
3353 -*) ac_site_file1=./$CONFIG_SITE;;
3354 */*) ac_site_file1=$CONFIG_SITE;;
3355 *) ac_site_file1=./$CONFIG_SITE;;
3356 esac
cristy3ed852e2009-09-05 21:47:34 +00003357elif test "x$prefix" != xNONE; then
3358 ac_site_file1=$prefix/share/config.site
3359 ac_site_file2=$prefix/etc/config.site
3360else
3361 ac_site_file1=$ac_default_prefix/share/config.site
3362 ac_site_file2=$ac_default_prefix/etc/config.site
3363fi
3364for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3365do
3366 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003367 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003369$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3370 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003371 . "$ac_site_file" \
3372 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374as_fn_error $? "failed to load site script $ac_site_file
3375See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003376 fi
3377done
3378
3379if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003380 # Some versions of bash will fail to source /dev/null (special files
3381 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3382 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003383 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003384$as_echo "$as_me: loading cache $cache_file" >&6;}
3385 case $cache_file in
3386 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3387 *) . "./$cache_file";;
3388 esac
3389 fi
3390else
cristy8b350f62009-11-15 23:12:43 +00003391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003392$as_echo "$as_me: creating cache $cache_file" >&6;}
3393 >$cache_file
3394fi
3395
cristycd4c5312009-11-22 01:19:08 +00003396as_fn_append ac_header_list " stdlib.h"
3397as_fn_append ac_header_list " unistd.h"
3398as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003399# Check that the precious variables saved in the cache have kept the same
3400# value.
3401ac_cache_corrupted=false
3402for ac_var in $ac_precious_vars; do
3403 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3404 eval ac_new_set=\$ac_env_${ac_var}_set
3405 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3406 eval ac_new_val=\$ac_env_${ac_var}_value
3407 case $ac_old_set,$ac_new_set in
3408 set,)
cristy8b350f62009-11-15 23:12:43 +00003409 { $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 +00003410$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3411 ac_cache_corrupted=: ;;
3412 ,set)
cristy8b350f62009-11-15 23:12:43 +00003413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003414$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3415 ac_cache_corrupted=: ;;
3416 ,);;
3417 *)
3418 if test "x$ac_old_val" != "x$ac_new_val"; then
3419 # differences in whitespace do not lead to failure.
3420 ac_old_val_w=`echo x $ac_old_val`
3421 ac_new_val_w=`echo x $ac_new_val`
3422 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003424$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3425 ac_cache_corrupted=:
3426 else
cristy8b350f62009-11-15 23:12:43 +00003427 { $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 +00003428$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3429 eval $ac_var=\$ac_old_val
3430 fi
cristy8b350f62009-11-15 23:12:43 +00003431 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003432$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003433 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003434$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3435 fi;;
3436 esac
3437 # Pass precious variables to config.status.
3438 if test "$ac_new_set" = set; then
3439 case $ac_new_val in
3440 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3441 *) ac_arg=$ac_var=$ac_new_val ;;
3442 esac
3443 case " $ac_configure_args " in
3444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003445 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003446 esac
3447 fi
3448done
3449if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003453$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003454 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003455fi
cristy8b350f62009-11-15 23:12:43 +00003456## -------------------- ##
3457## Main body of script. ##
3458## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003459
3460ac_ext=c
3461ac_cpp='$CPP $CPPFLAGS'
3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
3466
3467
3468ac_aux_dir=
3469for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003470 if test -f "$ac_dir/install-sh"; then
3471 ac_aux_dir=$ac_dir
3472 ac_install_sh="$ac_aux_dir/install-sh -c"
3473 break
3474 elif test -f "$ac_dir/install.sh"; then
3475 ac_aux_dir=$ac_dir
3476 ac_install_sh="$ac_aux_dir/install.sh -c"
3477 break
3478 elif test -f "$ac_dir/shtool"; then
3479 ac_aux_dir=$ac_dir
3480 ac_install_sh="$ac_aux_dir/shtool install -c"
3481 break
3482 fi
cristy3ed852e2009-09-05 21:47:34 +00003483done
3484if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003485 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003486fi
3487
3488# These three variables are undocumented and unsupported,
3489# and are intended to be withdrawn in a future Autoconf release.
3490# They can cause serious problems if a builder's source tree is in a directory
3491# whose full name contains unusual characters.
3492ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3493ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3494ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3495
3496
3497
3498
3499ac_config_headers="$ac_config_headers config/config.h"
3500
cristy24fc1fe2010-10-23 21:13:01 +00003501
cristy01ff9f32012-12-01 18:15:29 +00003502ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003503
cristy8d0ff762013-03-10 20:33:28 +00003504ac_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/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap 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 +00003505
3506
3507#
3508# Save initial user-tunable values
3509#
3510USER_LIBS=$LIBS
3511for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3512 eval isset=\${$var+set}
3513 if test "$isset" = 'set'; then
3514 eval val=$`echo $var`
3515 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3516 fi
3517done
3518
3519
3520CONFIGURE_ARGS="$0 ${ac_configure_args}"
3521
3522
3523# Source file containing package/library versioning information.
3524. ${srcdir}/version.sh
3525
cristy15a88782010-01-31 23:24:49 +00003526echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003527# Make sure we can run config.sub.
3528$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003529 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003530
cristy8b350f62009-11-15 23:12:43 +00003531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003532$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003533if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003534 $as_echo_n "(cached) " >&6
3535else
3536 ac_build_alias=$build_alias
3537test "x$ac_build_alias" = x &&
3538 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3539test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003540 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003541ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003542 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003543
3544fi
cristy8b350f62009-11-15 23:12:43 +00003545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003546$as_echo "$ac_cv_build" >&6; }
3547case $ac_cv_build in
3548*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003549*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003550esac
3551build=$ac_cv_build
3552ac_save_IFS=$IFS; IFS='-'
3553set x $ac_cv_build
3554shift
3555build_cpu=$1
3556build_vendor=$2
3557shift; shift
3558# Remember, the first character of IFS is used to create $*,
3559# except with old shells:
3560build_os=$*
3561IFS=$ac_save_IFS
3562case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3563
3564
cristy8b350f62009-11-15 23:12:43 +00003565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003566$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003567if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003568 $as_echo_n "(cached) " >&6
3569else
3570 if test "x$host_alias" = x; then
3571 ac_cv_host=$ac_cv_build
3572else
3573 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003574 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003575fi
3576
3577fi
cristy8b350f62009-11-15 23:12:43 +00003578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003579$as_echo "$ac_cv_host" >&6; }
3580case $ac_cv_host in
3581*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003582*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003583esac
3584host=$ac_cv_host
3585ac_save_IFS=$IFS; IFS='-'
3586set x $ac_cv_host
3587shift
3588host_cpu=$1
3589host_vendor=$2
3590shift; shift
3591# Remember, the first character of IFS is used to create $*,
3592# except with old shells:
3593host_os=$*
3594IFS=$ac_save_IFS
3595case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3596
3597
cristy8b350f62009-11-15 23:12:43 +00003598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003599$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003600if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003601 $as_echo_n "(cached) " >&6
3602else
3603 if test "x$target_alias" = x; then
3604 ac_cv_target=$ac_cv_host
3605else
3606 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003607 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003608fi
3609
3610fi
cristy8b350f62009-11-15 23:12:43 +00003611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003612$as_echo "$ac_cv_target" >&6; }
3613case $ac_cv_target in
3614*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003615*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003616esac
3617target=$ac_cv_target
3618ac_save_IFS=$IFS; IFS='-'
3619set x $ac_cv_target
3620shift
3621target_cpu=$1
3622target_vendor=$2
3623shift; shift
3624# Remember, the first character of IFS is used to create $*,
3625# except with old shells:
3626target_os=$*
3627IFS=$ac_save_IFS
3628case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3629
3630
3631# The aliases save the names the user supplied, while $host etc.
3632# will get canonicalized.
3633test -n "$target_alias" &&
3634 test "$program_prefix$program_suffix$program_transform_name" = \
3635 NONENONEs,x,x, &&
3636 program_prefix=${target_alias}-
3637
cristy837d6dc2010-02-27 01:16:57 +00003638
3639
3640
cristy8be34142012-06-17 14:07:18 +00003641
cristy19615b82011-04-13 20:02:01 +00003642MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003643
3644
cristy27d53d62012-07-29 23:30:07 +00003645cat >>confdefs.h <<_ACEOF
3646#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3647_ACEOF
3648
3649
cristy19615b82011-04-13 20:02:01 +00003650MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003651
3652
cristy27d53d62012-07-29 23:30:07 +00003653cat >>confdefs.h <<_ACEOF
3654#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3655_ACEOF
3656
3657
cristy19615b82011-04-13 20:02:01 +00003658MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003659
3660
cristy27d53d62012-07-29 23:30:07 +00003661cat >>confdefs.h <<_ACEOF
3662#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3663_ACEOF
3664
3665
cristy37442762013-02-10 21:07:23 +00003666
3667# Substitute versioning
3668MAGICK_MAJOR_VERSION=7
3669
3670MAGICK_MINOR_VERSION=0
3671
3672MAGICK_MICRO_VERSION=0
3673
3674MAGICK_PATCHLEVEL_VERSION=0
3675
3676MAGICK_VERSION=7.0.0-0
3677
cristy6d670312013-03-22 23:23:01 +00003678MAGICK_SVN_REVISION=11453:11464M
cristy37442762013-02-10 21:07:23 +00003679
3680
cristy3ed852e2009-09-05 21:47:34 +00003681# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003682MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3683
3684MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3685
cristy37442762013-02-10 21:07:23 +00003686
cristyd694ca32011-03-27 21:42:54 +00003687
cristy3ed852e2009-09-05 21:47:34 +00003688# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3690$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003691# Reject unsafe characters in $srcdir or the absolute working directory
3692# name. Accept space and tab only in the latter.
3693am_lf='
3694'
3695case `pwd` in
3696 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003697 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003698esac
3699case $srcdir in
3700 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003701 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003702esac
cristy3ed852e2009-09-05 21:47:34 +00003703
cristyc0890a62012-07-19 00:18:20 +00003704# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003705# arguments. Must try -L first in case configure is actually a
3706# symlink; some systems play weird games with the mod time of symlinks
3707# (eg FreeBSD returns the mod time of the symlink's containing
3708# directory).
3709if (
cristyc0890a62012-07-19 00:18:20 +00003710 am_has_slept=no
3711 for am_try in 1 2; do
3712 echo "timestamp, slept: $am_has_slept" > conftest.file
3713 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3714 if test "$*" = "X"; then
3715 # -L didn't work.
3716 set X `ls -t "$srcdir/configure" conftest.file`
3717 fi
3718 if test "$*" != "X $srcdir/configure conftest.file" \
3719 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003720
cristyc0890a62012-07-19 00:18:20 +00003721 # If neither matched, then we have a broken ls. This can happen
3722 # if, for instance, CONFIG_SHELL is bash and it inherits a
3723 # broken ls alias from the environment. This has actually
3724 # happened. Such a system could not be considered "sane".
3725 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3726 alias in your environment" "$LINENO" 5
3727 fi
3728 if test "$2" = conftest.file || test $am_try -eq 2; then
3729 break
3730 fi
3731 # Just in case.
3732 sleep 1
3733 am_has_slept=yes
3734 done
cristy73bd4a52010-10-05 11:24:23 +00003735 test "$2" = conftest.file
3736 )
3737then
3738 # Ok.
3739 :
3740else
cristy98dddb52010-11-04 00:30:15 +00003741 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003742Check your system clock" "$LINENO" 5
3743fi
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3745$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003746# If we didn't sleep, we still need to ensure time stamps of config.status and
3747# generated files are strictly newer.
3748am_sleep_pid=
3749if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3750 ( sleep 1 ) &
3751 am_sleep_pid=$!
3752fi
cristy73bd4a52010-10-05 11:24:23 +00003753
cristyc0890a62012-07-19 00:18:20 +00003754rm -f conftest.file
3755
3756
cristy58d34aa2013-01-24 15:11:54 +00003757am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003758
3759# Find a good install program. We prefer a C program (faster),
3760# so one script is as good as another. But avoid the broken or
3761# incompatible versions:
3762# SysV /etc/install, /usr/sbin/install
3763# SunOS /usr/etc/install
3764# IRIX /sbin/install
3765# AIX /bin/install
3766# AmigaOS /C/install, which installs bootblocks on floppy discs
3767# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3768# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3769# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3770# OS/2's system install, which has a completely different semantic
3771# ./install, which can be erroneously created by make from ./install.sh.
3772# Reject install programs that cannot install multiple files.
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3774$as_echo_n "checking for a BSD-compatible install... " >&6; }
3775if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003776if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003777 $as_echo_n "(cached) " >&6
3778else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780for as_dir in $PATH
3781do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 # Account for people who put trailing slashes in PATH elements.
3785case $as_dir/ in #((
3786 ./ | .// | /[cC]/* | \
3787 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3788 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3789 /usr/ucb/* ) ;;
3790 *)
3791 # OSF1 and SCO ODT 3.0 have their own names for install.
3792 # Don't use installbsd from OSF since it installs stuff as root
3793 # by default.
3794 for ac_prog in ginstall scoinst install; do
3795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003796 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003797 if test $ac_prog = install &&
3798 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3799 # AIX install. It has an incompatible calling convention.
3800 :
3801 elif test $ac_prog = install &&
3802 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3803 # program-specific install script used by HP pwplus--don't use.
3804 :
3805 else
3806 rm -rf conftest.one conftest.two conftest.dir
3807 echo one > conftest.one
3808 echo two > conftest.two
3809 mkdir conftest.dir
3810 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3811 test -s conftest.one && test -s conftest.two &&
3812 test -s conftest.dir/conftest.one &&
3813 test -s conftest.dir/conftest.two
3814 then
3815 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3816 break 3
3817 fi
3818 fi
3819 fi
3820 done
3821 done
3822 ;;
3823esac
3824
3825 done
3826IFS=$as_save_IFS
3827
3828rm -rf conftest.one conftest.two conftest.dir
3829
3830fi
3831 if test "${ac_cv_path_install+set}" = set; then
3832 INSTALL=$ac_cv_path_install
3833 else
3834 # As a last resort, use the slow shell script. Don't cache a
3835 # value for INSTALL within a source directory, because that will
3836 # break other packages using the cache if that directory is
3837 # removed, or if the value is a relative name.
3838 INSTALL=$ac_install_sh
3839 fi
3840fi
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3842$as_echo "$INSTALL" >&6; }
3843
3844# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3845# It thinks the first close brace ends the variable substitution.
3846test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3847
3848test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3849
3850test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3851
3852test "$program_prefix" != NONE &&
3853 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3854# Use a double $ so make ignores it.
3855test "$program_suffix" != NONE &&
3856 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3857# Double any \ or $.
3858# By default was `s,x,x', remove it if useless.
3859ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3860program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3861
3862# expand $ac_aux_dir to an absolute path
3863am_aux_dir=`cd $ac_aux_dir && pwd`
3864
3865if test x"${MISSING+set}" != xset; then
3866 case $am_aux_dir in
3867 *\ * | *\ *)
3868 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3869 *)
3870 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3871 esac
3872fi
3873# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003874if eval "$MISSING --is-lightweight"; then
3875 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003876else
3877 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3879$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003880fi
3881
3882if test x"${install_sh}" != xset; then
3883 case $am_aux_dir in
3884 *\ * | *\ *)
3885 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3886 *)
3887 install_sh="\${SHELL} $am_aux_dir/install-sh"
3888 esac
3889fi
3890
cristyc0890a62012-07-19 00:18:20 +00003891# Installed binaries are usually stripped using 'strip' when the user
3892# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003893# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003894# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003895if test "$cross_compiling" != no; then
3896 if test -n "$ac_tool_prefix"; then
3897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3898set dummy ${ac_tool_prefix}strip; ac_word=$2
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003901if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003902 $as_echo_n "(cached) " >&6
3903else
3904 if test -n "$STRIP"; then
3905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3906else
3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH
3909do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3917 fi
3918done
3919 done
3920IFS=$as_save_IFS
3921
3922fi
3923fi
3924STRIP=$ac_cv_prog_STRIP
3925if test -n "$STRIP"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3927$as_echo "$STRIP" >&6; }
3928else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930$as_echo "no" >&6; }
3931fi
3932
3933
3934fi
3935if test -z "$ac_cv_prog_STRIP"; then
3936 ac_ct_STRIP=$STRIP
3937 # Extract the first word of "strip", so it can be a program name with args.
3938set dummy strip; ac_word=$2
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003941if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003942 $as_echo_n "(cached) " >&6
3943else
3944 if test -n "$ac_ct_STRIP"; then
3945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3946else
3947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948for as_dir in $PATH
3949do
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003954 ac_cv_prog_ac_ct_STRIP="strip"
3955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 break 2
3957 fi
3958done
3959 done
3960IFS=$as_save_IFS
3961
3962fi
3963fi
3964ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3965if test -n "$ac_ct_STRIP"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3967$as_echo "$ac_ct_STRIP" >&6; }
3968else
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970$as_echo "no" >&6; }
3971fi
3972
3973 if test "x$ac_ct_STRIP" = x; then
3974 STRIP=":"
3975 else
3976 case $cross_compiling:$ac_tool_warned in
3977yes:)
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3980ac_tool_warned=yes ;;
3981esac
3982 STRIP=$ac_ct_STRIP
3983 fi
3984else
3985 STRIP="$ac_cv_prog_STRIP"
3986fi
3987
3988fi
3989INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3990
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3992$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3993if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003994 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003995 $as_echo_n "(cached) " >&6
3996else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3999do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_prog in mkdir gmkdir; do
4003 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004004 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004005 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4006 'mkdir (GNU coreutils) '* | \
4007 'mkdir (coreutils) '* | \
4008 'mkdir (fileutils) '4.1*)
4009 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4010 break 3;;
4011 esac
4012 done
4013 done
4014 done
4015IFS=$as_save_IFS
4016
4017fi
4018
4019 test -d ./--version && rmdir ./--version
4020 if test "${ac_cv_path_mkdir+set}" = set; then
4021 MKDIR_P="$ac_cv_path_mkdir -p"
4022 else
4023 # As a last resort, use the slow shell script. Don't cache a
4024 # value for MKDIR_P within a source directory, because that will
4025 # break other packages using the cache if that directory is
4026 # removed, or if the value is a relative name.
4027 MKDIR_P="$ac_install_sh -d"
4028 fi
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4031$as_echo "$MKDIR_P" >&6; }
4032
cristy73bd4a52010-10-05 11:24:23 +00004033for ac_prog in gawk mawk nawk awk
4034do
4035 # Extract the first word of "$ac_prog", so it can be a program name with args.
4036set dummy $ac_prog; ac_word=$2
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004039if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004040 $as_echo_n "(cached) " >&6
4041else
4042 if test -n "$AWK"; then
4043 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004052 ac_cv_prog_AWK="$ac_prog"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056done
4057 done
4058IFS=$as_save_IFS
4059
4060fi
4061fi
4062AWK=$ac_cv_prog_AWK
4063if test -n "$AWK"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4065$as_echo "$AWK" >&6; }
4066else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068$as_echo "no" >&6; }
4069fi
4070
4071
4072 test -n "$AWK" && break
4073done
4074
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4076$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4077set x ${MAKE-make}
4078ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004079if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004080 $as_echo_n "(cached) " >&6
4081else
4082 cat >conftest.make <<\_ACEOF
4083SHELL = /bin/sh
4084all:
4085 @echo '@@@%%%=$(MAKE)=@@@%%%'
4086_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004087# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004088case `${MAKE-make} -f conftest.make 2>/dev/null` in
4089 *@@@%%%=?*=@@@%%%*)
4090 eval ac_cv_prog_make_${ac_make}_set=yes;;
4091 *)
4092 eval ac_cv_prog_make_${ac_make}_set=no;;
4093esac
4094rm -f conftest.make
4095fi
4096if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4098$as_echo "yes" >&6; }
4099 SET_MAKE=
4100else
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102$as_echo "no" >&6; }
4103 SET_MAKE="MAKE=${MAKE-make}"
4104fi
4105
4106rm -rf .tst 2>/dev/null
4107mkdir .tst 2>/dev/null
4108if test -d .tst; then
4109 am__leading_dot=.
4110else
4111 am__leading_dot=_
4112fi
4113rmdir .tst 2>/dev/null
4114
cristya448bd22011-10-14 12:38:13 +00004115# Check whether --enable-silent-rules was given.
4116if test "${enable_silent_rules+set}" = set; then :
4117 enableval=$enable_silent_rules;
4118fi
4119
cristyc0890a62012-07-19 00:18:20 +00004120case $enable_silent_rules in # (((
4121 yes) AM_DEFAULT_VERBOSITY=0;;
4122 no) AM_DEFAULT_VERBOSITY=1;;
4123 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004124esac
cristyc3fb77b2012-02-06 01:49:41 +00004125am_make=${MAKE-make}
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4127$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4128if ${am_cv_make_support_nested_variables+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130else
4131 if $as_echo 'TRUE=$(BAR$(V))
4132BAR0=false
4133BAR1=true
4134V=1
4135am__doit:
4136 @$(TRUE)
4137.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4138 am_cv_make_support_nested_variables=yes
4139else
4140 am_cv_make_support_nested_variables=no
4141fi
4142fi
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4144$as_echo "$am_cv_make_support_nested_variables" >&6; }
4145if test $am_cv_make_support_nested_variables = yes; then
4146 AM_V='$(V)'
4147 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4148else
4149 AM_V=$AM_DEFAULT_VERBOSITY
4150 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4151fi
cristya448bd22011-10-14 12:38:13 +00004152AM_BACKSLASH='\'
4153
cristy73bd4a52010-10-05 11:24:23 +00004154if test "`cd $srcdir && pwd`" != "`pwd`"; then
4155 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4156 # is not polluted with repeated "-I."
4157 am__isrc=' -I$(srcdir)'
4158 # test to see if srcdir already configured
4159 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004160 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004161 fi
4162fi
4163
4164# test whether we have cygpath
4165if test -z "$CYGPATH_W"; then
4166 if (cygpath --version) >/dev/null 2>/dev/null; then
4167 CYGPATH_W='cygpath -w'
4168 else
4169 CYGPATH_W=echo
4170 fi
4171fi
4172
4173
4174# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004175 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004176 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004177
4178
cristya448bd22011-10-14 12:38:13 +00004179cat >>confdefs.h <<_ACEOF
4180#define PACKAGE "$PACKAGE"
4181_ACEOF
4182
4183
4184cat >>confdefs.h <<_ACEOF
4185#define VERSION "$VERSION"
4186_ACEOF
4187
cristy73bd4a52010-10-05 11:24:23 +00004188# Some tools Automake needs.
4189
4190ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4191
4192
4193AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4194
4195
4196AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4197
4198
4199AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4200
4201
4202MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4203
cristyc0890a62012-07-19 00:18:20 +00004204# For better backward compatibility. To be removed once Automake 1.9.x
4205# dies out for good. For more background, see:
4206# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4207# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4208mkdir_p='$(MKDIR_P)'
4209
cristy73bd4a52010-10-05 11:24:23 +00004210# We need awk for the "check" target. The system "awk" is bad on
4211# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004212# Always define AMTAR for backward compatibility. Yes, it's still used
4213# in the wild :-( We should find a proper way to deprecate it ...
4214AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004215
cristyc3fb77b2012-02-06 01:49:41 +00004216am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004217
4218
4219
4220
4221
cristy3ed852e2009-09-05 21:47:34 +00004222
4223# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004224# Check whether --enable-silent-rules was given.
4225if test "${enable_silent_rules+set}" = set; then :
4226 enableval=$enable_silent_rules;
4227fi
4228
cristyc0890a62012-07-19 00:18:20 +00004229case $enable_silent_rules in # (((
4230 yes) AM_DEFAULT_VERBOSITY=0;;
4231 no) AM_DEFAULT_VERBOSITY=1;;
4232 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004233esac
cristyc3fb77b2012-02-06 01:49:41 +00004234am_make=${MAKE-make}
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4236$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4237if ${am_cv_make_support_nested_variables+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239else
4240 if $as_echo 'TRUE=$(BAR$(V))
4241BAR0=false
4242BAR1=true
4243V=1
4244am__doit:
4245 @$(TRUE)
4246.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4247 am_cv_make_support_nested_variables=yes
4248else
4249 am_cv_make_support_nested_variables=no
4250fi
4251fi
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4253$as_echo "$am_cv_make_support_nested_variables" >&6; }
4254if test $am_cv_make_support_nested_variables = yes; then
4255 AM_V='$(V)'
4256 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4257else
4258 AM_V=$AM_DEFAULT_VERBOSITY
4259 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4260fi
cristy73bd4a52010-10-05 11:24:23 +00004261AM_BACKSLASH='\'
4262
cristy3ed852e2009-09-05 21:47:34 +00004263
4264MAGICK_LIB_VERSION="0x"
4265if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4266 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4267fi
4268MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4269if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4270 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4271fi
4272MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4273if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4274 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4275fi
4276MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4277
4278
4279# Definition used to define MagickLibVersionText in version.h
4280MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4281
4282
4283# Definition used to define MagickLibVersionNumber in version.h
4284MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4285
4286
4287# Regenerate config.status if ChangeLog or version.sh is updated.
4288CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4289
4290
4291PERLMAINCC=$CC
4292
4293MAGICK_CFLAGS=''
4294MAGICK_CPPFLAGS=$CPPFLAGS_USER
4295MAGICK_PCFLAGS=$CPPFLAGS_USER
4296MAGICK_LDFLAGS=''
4297MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004298MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004299
4300#
4301# Evaluate shell variable equivalents to Makefile directory variables
4302#
4303if test "x$prefix" = xNONE; then
4304 prefix=$ac_default_prefix
4305fi
4306# Let make expand exec_prefix.
4307if test "x$exec_prefix" = xNONE; then
4308 exec_prefix='${prefix}'
4309fi
4310
4311#
4312eval "eval PREFIX_DIR=${prefix}"
4313
4314eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4315
4316eval "eval BIN_DIR=$bindir"
4317
4318eval "eval SBIN_DIR=$sbindir"
4319
4320eval "eval LIBEXEC_DIR=$libexecdir"
4321
4322eval "eval DATA_DIR=$datadir"
4323
cristy4e65ec22012-04-08 01:33:27 +00004324eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004325
cristy3ed852e2009-09-05 21:47:34 +00004326eval "eval SYSCONF_DIR=$sysconfdir"
4327
4328eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4329
4330eval "eval LOCALSTATE_DIR=$localstatedir"
4331
4332eval "eval LIB_DIR=$libdir"
4333
4334eval "eval INCLUDE_DIR=$includedir"
4335
4336eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4337
4338eval "eval INFO_DIR=$infodir"
4339
4340eval "eval MAN_DIR=$mandir"
4341
4342
4343# Get full paths to source and build directories
4344srcdirfull="`cd $srcdir && pwd`"
4345builddir="`pwd`"
4346
4347#
4348# Compute variables useful for running uninstalled software.
4349#
4350MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4351MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4352MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4353MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4354DIRSEP=':'
4355case "${build_os}" in
4356 mingw* )
4357 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4358 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4359 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4360 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4361 DIRSEP=';'
4362 ;;
4363esac
4364case "${host_os}" in
4365 mingw* )
4366 DIRSEP=';'
4367 ;;
4368esac
4369
4370
4371
4372
4373
4374
cristya0b81c32010-01-22 02:54:33 +00004375
4376#
4377# Enable OS features.
4378#
cristy73bd4a52010-10-05 11:24:23 +00004379DEPDIR="${am__leading_dot}deps"
4380
4381ac_config_commands="$ac_config_commands depfiles"
4382
4383
4384am_make=${MAKE-make}
4385cat > confinc << 'END'
4386am__doit:
4387 @echo this is the am__doit target
4388.PHONY: am__doit
4389END
4390# If we don't find an include directive, just comment out the code.
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4392$as_echo_n "checking for style of include used by $am_make... " >&6; }
4393am__include="#"
4394am__quote=
4395_am_result=none
4396# First try GNU make style include.
4397echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004398# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004399case `$am_make -s -f confmf 2> /dev/null` in #(
4400*the\ am__doit\ target*)
4401 am__include=include
4402 am__quote=
4403 _am_result=GNU
4404 ;;
4405esac
4406# Now try BSD make style include.
4407if test "$am__include" = "#"; then
4408 echo '.include "confinc"' > confmf
4409 case `$am_make -s -f confmf 2> /dev/null` in #(
4410 *the\ am__doit\ target*)
4411 am__include=.include
4412 am__quote="\""
4413 _am_result=BSD
4414 ;;
4415 esac
4416fi
4417
4418
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4420$as_echo "$_am_result" >&6; }
4421rm -f confinc confmf
4422
4423# Check whether --enable-dependency-tracking was given.
4424if test "${enable_dependency_tracking+set}" = set; then :
4425 enableval=$enable_dependency_tracking;
4426fi
4427
4428if test "x$enable_dependency_tracking" != xno; then
4429 am_depcomp="$ac_aux_dir/depcomp"
4430 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004431 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004432fi
4433 if test "x$enable_dependency_tracking" != xno; then
4434 AMDEP_TRUE=
4435 AMDEP_FALSE='#'
4436else
4437 AMDEP_TRUE='#'
4438 AMDEP_FALSE=
4439fi
4440
4441
cristy3ed852e2009-09-05 21:47:34 +00004442ac_ext=c
4443ac_cpp='$CPP $CPPFLAGS'
4444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447if test -n "$ac_tool_prefix"; then
4448 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4449set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004451$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004452if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004453 $as_echo_n "(cached) " >&6
4454else
4455 if test -n "$CC"; then
4456 ac_cv_prog_CC="$CC" # Let the user override the test.
4457else
4458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH
4460do
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004463 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004465 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004467 break 2
4468 fi
4469done
cristy8b350f62009-11-15 23:12:43 +00004470 done
cristy3ed852e2009-09-05 21:47:34 +00004471IFS=$as_save_IFS
4472
4473fi
4474fi
4475CC=$ac_cv_prog_CC
4476if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004478$as_echo "$CC" >&6; }
4479else
cristy8b350f62009-11-15 23:12:43 +00004480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004481$as_echo "no" >&6; }
4482fi
4483
4484
4485fi
4486if test -z "$ac_cv_prog_CC"; then
4487 ac_ct_CC=$CC
4488 # Extract the first word of "gcc", so it can be a program name with args.
4489set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004491$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004492if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004493 $as_echo_n "(cached) " >&6
4494else
4495 if test -n "$ac_ct_CC"; then
4496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4497else
4498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499for as_dir in $PATH
4500do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004505 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004507 break 2
4508 fi
4509done
cristy8b350f62009-11-15 23:12:43 +00004510 done
cristy3ed852e2009-09-05 21:47:34 +00004511IFS=$as_save_IFS
4512
4513fi
4514fi
4515ac_ct_CC=$ac_cv_prog_ac_ct_CC
4516if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004518$as_echo "$ac_ct_CC" >&6; }
4519else
cristy8b350f62009-11-15 23:12:43 +00004520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521$as_echo "no" >&6; }
4522fi
4523
4524 if test "x$ac_ct_CC" = x; then
4525 CC=""
4526 else
4527 case $cross_compiling:$ac_tool_warned in
4528yes:)
cristy8b350f62009-11-15 23:12:43 +00004529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4531ac_tool_warned=yes ;;
4532esac
4533 CC=$ac_ct_CC
4534 fi
4535else
4536 CC="$ac_cv_prog_CC"
4537fi
4538
4539if test -z "$CC"; then
4540 if test -n "$ac_tool_prefix"; then
4541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4542set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004544$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004545if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004546 $as_echo_n "(cached) " >&6
4547else
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004556 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004558 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004560 break 2
4561 fi
4562done
cristy8b350f62009-11-15 23:12:43 +00004563 done
cristy3ed852e2009-09-05 21:47:34 +00004564IFS=$as_save_IFS
4565
4566fi
4567fi
4568CC=$ac_cv_prog_CC
4569if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004571$as_echo "$CC" >&6; }
4572else
cristy8b350f62009-11-15 23:12:43 +00004573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004574$as_echo "no" >&6; }
4575fi
4576
4577
4578 fi
4579fi
4580if test -z "$CC"; then
4581 # Extract the first word of "cc", so it can be a program name with args.
4582set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004585if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004586 $as_echo_n "(cached) " >&6
4587else
4588 if test -n "$CC"; then
4589 ac_cv_prog_CC="$CC" # Let the user override the test.
4590else
4591 ac_prog_rejected=no
4592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593for as_dir in $PATH
4594do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004597 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004599 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4600 ac_prog_rejected=yes
4601 continue
4602 fi
4603 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004605 break 2
4606 fi
4607done
cristy8b350f62009-11-15 23:12:43 +00004608 done
cristy3ed852e2009-09-05 21:47:34 +00004609IFS=$as_save_IFS
4610
4611if test $ac_prog_rejected = yes; then
4612 # We found a bogon in the path, so make sure we never use it.
4613 set dummy $ac_cv_prog_CC
4614 shift
4615 if test $# != 0; then
4616 # We chose a different compiler from the bogus one.
4617 # However, it has the same basename, so the bogon will be chosen
4618 # first if we set CC to just the basename; use the full file name.
4619 shift
4620 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4621 fi
4622fi
4623fi
4624fi
4625CC=$ac_cv_prog_CC
4626if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004628$as_echo "$CC" >&6; }
4629else
cristy8b350f62009-11-15 23:12:43 +00004630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004631$as_echo "no" >&6; }
4632fi
4633
4634
4635fi
4636if test -z "$CC"; then
4637 if test -n "$ac_tool_prefix"; then
4638 for ac_prog in cl.exe
4639 do
4640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4641set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004643$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004644if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004645 $as_echo_n "(cached) " >&6
4646else
4647 if test -n "$CC"; then
4648 ac_cv_prog_CC="$CC" # Let the user override the test.
4649else
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004655 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004659 break 2
4660 fi
4661done
cristy8b350f62009-11-15 23:12:43 +00004662 done
cristy3ed852e2009-09-05 21:47:34 +00004663IFS=$as_save_IFS
4664
4665fi
4666fi
4667CC=$ac_cv_prog_CC
4668if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004670$as_echo "$CC" >&6; }
4671else
cristy8b350f62009-11-15 23:12:43 +00004672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004673$as_echo "no" >&6; }
4674fi
4675
4676
4677 test -n "$CC" && break
4678 done
4679fi
4680if test -z "$CC"; then
4681 ac_ct_CC=$CC
4682 for ac_prog in cl.exe
4683do
4684 # Extract the first word of "$ac_prog", so it can be a program name with args.
4685set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004688if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004689 $as_echo_n "(cached) " >&6
4690else
4691 if test -n "$ac_ct_CC"; then
4692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004701 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004703 break 2
4704 fi
4705done
cristy8b350f62009-11-15 23:12:43 +00004706 done
cristy3ed852e2009-09-05 21:47:34 +00004707IFS=$as_save_IFS
4708
4709fi
4710fi
4711ac_ct_CC=$ac_cv_prog_ac_ct_CC
4712if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004714$as_echo "$ac_ct_CC" >&6; }
4715else
cristy8b350f62009-11-15 23:12:43 +00004716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004717$as_echo "no" >&6; }
4718fi
4719
4720
4721 test -n "$ac_ct_CC" && break
4722done
4723
4724 if test "x$ac_ct_CC" = x; then
4725 CC=""
4726 else
4727 case $cross_compiling:$ac_tool_warned in
4728yes:)
cristy8b350f62009-11-15 23:12:43 +00004729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731ac_tool_warned=yes ;;
4732esac
4733 CC=$ac_ct_CC
4734 fi
4735fi
4736
4737fi
4738
4739
cristy8b350f62009-11-15 23:12:43 +00004740test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004742as_fn_error $? "no acceptable C compiler found in \$PATH
4743See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004744
4745# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004746$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004747set X $ac_compile
4748ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004749for ac_option in --version -v -V -qversion; do
4750 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004751case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754esac
cristy8b350f62009-11-15 23:12:43 +00004755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4756$as_echo "$ac_try_echo"; } >&5
4757 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004758 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004759 if test -s conftest.err; then
4760 sed '10a\
4761... rest of stderr output deleted ...
4762 10q' conftest.err >conftest.er1
4763 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004764 fi
cristycd4c5312009-11-22 01:19:08 +00004765 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4767 test $ac_status = 0; }
4768done
cristy3ed852e2009-09-05 21:47:34 +00004769
cristy8b350f62009-11-15 23:12:43 +00004770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004771/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004772
cristy3ed852e2009-09-05 21:47:34 +00004773int
4774main ()
4775{
4776
4777 ;
4778 return 0;
4779}
4780_ACEOF
4781ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004782ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004783# Try to create an executable without -o first, disregard a.out.
4784# It will help us diagnose broken compilers, and finding out an intuition
4785# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4787$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004788ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4789
4790# The possible output files:
4791ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4792
4793ac_rmfiles=
4794for ac_file in $ac_files
4795do
4796 case $ac_file in
4797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4798 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4799 esac
4800done
4801rm -f $ac_rmfiles
4802
cristy8b350f62009-11-15 23:12:43 +00004803if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004804case "(($ac_try" in
4805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806 *) ac_try_echo=$ac_try;;
4807esac
cristy8b350f62009-11-15 23:12:43 +00004808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4809$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004810 (eval "$ac_link_default") 2>&5
4811 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4813 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004814 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4815# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4816# in a Makefile. We should not override ac_cv_exeext if it was cached,
4817# so that the user can short-circuit this test for compilers unknown to
4818# Autoconf.
4819for ac_file in $ac_files ''
4820do
4821 test -f "$ac_file" || continue
4822 case $ac_file in
4823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4824 ;;
4825 [ab].out )
4826 # We found the default executable, but exeext='' is most
4827 # certainly right.
4828 break;;
4829 *.* )
cristy8b350f62009-11-15 23:12:43 +00004830 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004831 then :; else
4832 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4833 fi
4834 # We set ac_cv_exeext here because the later test for it is not
4835 # safe: cross compilers may not add the suffix if given an `-o'
4836 # argument, so we may need to know it at that point already.
4837 # Even if this section looks crufty: it has the advantage of
4838 # actually working.
4839 break;;
4840 * )
4841 break;;
4842 esac
4843done
4844test "$ac_cv_exeext" = no && ac_cv_exeext=
4845
4846else
4847 ac_file=''
4848fi
cristy8b350f62009-11-15 23:12:43 +00004849if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851$as_echo "no" >&6; }
4852$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004853sed 's/^/| /' conftest.$ac_ext >&5
4854
cristy8b350f62009-11-15 23:12:43 +00004855{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004857as_fn_error 77 "C compiler cannot create executables
4858See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004859else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4861$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004862fi
cristycd4c5312009-11-22 01:19:08 +00004863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4864$as_echo_n "checking for C compiler default output file name... " >&6; }
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4866$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004867ac_exeext=$ac_cv_exeext
4868
cristycd4c5312009-11-22 01:19:08 +00004869rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004870ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004872$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004873if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004874case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877esac
cristy8b350f62009-11-15 23:12:43 +00004878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4879$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004880 (eval "$ac_link") 2>&5
4881 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4883 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004884 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4885# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4886# work properly (i.e., refer to `conftest.exe'), while it won't with
4887# `rm'.
4888for ac_file in conftest.exe conftest conftest.*; do
4889 test -f "$ac_file" || continue
4890 case $ac_file in
4891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4892 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4893 break;;
4894 * ) break;;
4895 esac
4896done
4897else
cristy8b350f62009-11-15 23:12:43 +00004898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004900as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4901See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004902fi
cristycd4c5312009-11-22 01:19:08 +00004903rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004905$as_echo "$ac_cv_exeext" >&6; }
4906
4907rm -f conftest.$ac_ext
4908EXEEXT=$ac_cv_exeext
4909ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911/* end confdefs.h. */
4912#include <stdio.h>
4913int
4914main ()
4915{
4916FILE *f = fopen ("conftest.out", "w");
4917 return ferror (f) || fclose (f) != 0;
4918
4919 ;
4920 return 0;
4921}
4922_ACEOF
4923ac_clean_files="$ac_clean_files conftest.out"
4924# Check that the compiler produces executables we can run. If not, either
4925# the compiler is broken, or we cross compile.
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4927$as_echo_n "checking whether we are cross compiling... " >&6; }
4928if test "$cross_compiling" != yes; then
4929 { { ac_try="$ac_link"
4930case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933esac
4934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4935$as_echo "$ac_try_echo"; } >&5
4936 (eval "$ac_link") 2>&5
4937 ac_status=$?
4938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939 test $ac_status = 0; }
4940 if { ac_try='./conftest$ac_cv_exeext'
4941 { { case "(($ac_try" in
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4944esac
4945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4946$as_echo "$ac_try_echo"; } >&5
4947 (eval "$ac_try") 2>&5
4948 ac_status=$?
4949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4950 test $ac_status = 0; }; }; then
4951 cross_compiling=no
4952 else
4953 if test "$cross_compiling" = maybe; then
4954 cross_compiling=yes
4955 else
4956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004958as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004959If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004960See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004961 fi
4962 fi
4963fi
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4965$as_echo "$cross_compiling" >&6; }
4966
4967rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4968ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004970$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004971if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004972 $as_echo_n "(cached) " >&6
4973else
cristy8b350f62009-11-15 23:12:43 +00004974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004975/* end confdefs.h. */
4976
4977int
4978main ()
4979{
4980
4981 ;
4982 return 0;
4983}
4984_ACEOF
4985rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004986if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004987case "(($ac_try" in
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4990esac
cristy8b350f62009-11-15 23:12:43 +00004991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4992$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004993 (eval "$ac_compile") 2>&5
4994 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4996 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004997 for ac_file in conftest.o conftest.obj conftest.*; do
4998 test -f "$ac_file" || continue;
4999 case $ac_file in
5000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5001 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5002 break;;
5003 esac
5004done
5005else
5006 $as_echo "$as_me: failed program was:" >&5
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
cristy8b350f62009-11-15 23:12:43 +00005009{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005011as_fn_error $? "cannot compute suffix of object files: cannot compile
5012See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005013fi
cristy3ed852e2009-09-05 21:47:34 +00005014rm -f conftest.$ac_cv_objext conftest.$ac_ext
5015fi
cristy8b350f62009-11-15 23:12:43 +00005016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005017$as_echo "$ac_cv_objext" >&6; }
5018OBJEXT=$ac_cv_objext
5019ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005021$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005022if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005023 $as_echo_n "(cached) " >&6
5024else
cristy8b350f62009-11-15 23:12:43 +00005025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005026/* end confdefs.h. */
5027
5028int
5029main ()
5030{
5031#ifndef __GNUC__
5032 choke me
5033#endif
5034
5035 ;
5036 return 0;
5037}
5038_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005039if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005040 ac_compiler_gnu=yes
5041else
cristy8b350f62009-11-15 23:12:43 +00005042 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005043fi
cristy3ed852e2009-09-05 21:47:34 +00005044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045ac_cv_c_compiler_gnu=$ac_compiler_gnu
5046
5047fi
cristy8b350f62009-11-15 23:12:43 +00005048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005049$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5050if test $ac_compiler_gnu = yes; then
5051 GCC=yes
5052else
5053 GCC=
5054fi
5055ac_test_CFLAGS=${CFLAGS+set}
5056ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005058$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005059if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005060 $as_echo_n "(cached) " >&6
5061else
5062 ac_save_c_werror_flag=$ac_c_werror_flag
5063 ac_c_werror_flag=yes
5064 ac_cv_prog_cc_g=no
5065 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005067/* end confdefs.h. */
5068
5069int
5070main ()
5071{
5072
5073 ;
5074 return 0;
5075}
5076_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005077if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005078 ac_cv_prog_cc_g=yes
5079else
cristy8b350f62009-11-15 23:12:43 +00005080 CFLAGS=""
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005082/* end confdefs.h. */
5083
5084int
5085main ()
5086{
5087
5088 ;
5089 return 0;
5090}
5091_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005092if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005093
cristy8b350f62009-11-15 23:12:43 +00005094else
5095 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005096 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005098/* end confdefs.h. */
5099
5100int
5101main ()
5102{
5103
5104 ;
5105 return 0;
5106}
5107_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005108if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005109 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005110fi
cristy3ed852e2009-09-05 21:47:34 +00005111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5112fi
cristy3ed852e2009-09-05 21:47:34 +00005113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114fi
cristy3ed852e2009-09-05 21:47:34 +00005115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 ac_c_werror_flag=$ac_save_c_werror_flag
5117fi
cristy8b350f62009-11-15 23:12:43 +00005118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005119$as_echo "$ac_cv_prog_cc_g" >&6; }
5120if test "$ac_test_CFLAGS" = set; then
5121 CFLAGS=$ac_save_CFLAGS
5122elif test $ac_cv_prog_cc_g = yes; then
5123 if test "$GCC" = yes; then
5124 CFLAGS="-g -O2"
5125 else
5126 CFLAGS="-g"
5127 fi
5128else
5129 if test "$GCC" = yes; then
5130 CFLAGS="-O2"
5131 else
5132 CFLAGS=
5133 fi
5134fi
cristy8b350f62009-11-15 23:12:43 +00005135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005136$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005137if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005138 $as_echo_n "(cached) " >&6
5139else
5140 ac_cv_prog_cc_c89=no
5141ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005143/* end confdefs.h. */
5144#include <stdarg.h>
5145#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005146struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005147/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5148struct buf { int x; };
5149FILE * (*rcsopen) (struct buf *, struct stat *, int);
5150static char *e (p, i)
5151 char **p;
5152 int i;
5153{
5154 return p[i];
5155}
5156static char *f (char * (*g) (char **, int), char **p, ...)
5157{
5158 char *s;
5159 va_list v;
5160 va_start (v,p);
5161 s = g (p, va_arg (v,int));
5162 va_end (v);
5163 return s;
5164}
5165
5166/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5167 function prototypes and stuff, but not '\xHH' hex character constants.
5168 These don't provoke an error unfortunately, instead are silently treated
5169 as 'x'. The following induces an error, until -std is added to get
5170 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5171 array size at least. It's necessary to write '\x00'==0 to get something
5172 that's true only with -std. */
5173int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5174
5175/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5176 inside strings and character constants. */
5177#define FOO(x) 'x'
5178int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5179
5180int test (int i, double x);
5181struct s1 {int (*f) (int a);};
5182struct s2 {int (*f) (double a);};
5183int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5184int argc;
5185char **argv;
5186int
5187main ()
5188{
5189return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5190 ;
5191 return 0;
5192}
5193_ACEOF
5194for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5195 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5196do
5197 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005198 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005199 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005200fi
cristy3ed852e2009-09-05 21:47:34 +00005201rm -f core conftest.err conftest.$ac_objext
5202 test "x$ac_cv_prog_cc_c89" != "xno" && break
5203done
5204rm -f conftest.$ac_ext
5205CC=$ac_save_CC
5206
5207fi
5208# AC_CACHE_VAL
5209case "x$ac_cv_prog_cc_c89" in
5210 x)
cristy8b350f62009-11-15 23:12:43 +00005211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005212$as_echo "none needed" >&6; } ;;
5213 xno)
cristy8b350f62009-11-15 23:12:43 +00005214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005215$as_echo "unsupported" >&6; } ;;
5216 *)
5217 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005219$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5220esac
cristy8b350f62009-11-15 23:12:43 +00005221if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005222
cristy8b350f62009-11-15 23:12:43 +00005223fi
cristy3ed852e2009-09-05 21:47:34 +00005224
5225ac_ext=c
5226ac_cpp='$CPP $CPPFLAGS'
5227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005230
cristy73bd4a52010-10-05 11:24:23 +00005231depcc="$CC" am_compiler_list=
5232
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5234$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005235if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005236 $as_echo_n "(cached) " >&6
5237else
5238 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5239 # We make a subdir and do the tests there. Otherwise we can end up
5240 # making bogus files that we don't know about and never remove. For
5241 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005242 # making a dummy file named 'D' -- because '-MD' means "put the output
5243 # in D".
cristy7247bba2012-02-05 16:37:27 +00005244 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005245 mkdir conftest.dir
5246 # Copy depcomp to subdir because otherwise we won't find it if we're
5247 # using a relative directory.
5248 cp "$am_depcomp" conftest.dir
5249 cd conftest.dir
5250 # We will build objects and dependencies in a subdirectory because
5251 # it helps to detect inapplicable dependency modes. For instance
5252 # both Tru64's cc and ICC support -MD to output dependencies as a
5253 # side effect of compilation, but ICC will put the dependencies in
5254 # the current directory while Tru64 will put them in the object
5255 # directory.
5256 mkdir sub
5257
5258 am_cv_CC_dependencies_compiler_type=none
5259 if test "$am_compiler_list" = ""; then
5260 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5261 fi
5262 am__universal=false
5263 case " $depcc " in #(
5264 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5265 esac
5266
5267 for depmode in $am_compiler_list; do
5268 # Setup a source with many dependencies, because some compilers
5269 # like to wrap large dependency lists on column 80 (with \), and
5270 # we should not choose a depcomp mode which is confused by this.
5271 #
5272 # We need to recreate these files for each test, as the compiler may
5273 # overwrite some of them when testing with obscure command lines.
5274 # This happens at least with the AIX C compiler.
5275 : > sub/conftest.c
5276 for i in 1 2 3 4 5 6; do
5277 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005278 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5279 # Solaris 10 /bin/sh.
5280 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005281 done
5282 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5283
cristyc0890a62012-07-19 00:18:20 +00005284 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005285 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005286 # handle '-M -o', and we need to detect this. Also, some Intel
5287 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005288 am__obj=sub/conftest.${OBJEXT-o}
5289 am__minus_obj="-o $am__obj"
5290 case $depmode in
5291 gcc)
5292 # This depmode causes a compiler race in universal mode.
5293 test "$am__universal" = false || continue
5294 ;;
5295 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005296 # After this tag, mechanisms are not by side-effect, so they'll
5297 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005298 if test "x$enable_dependency_tracking" = xyes; then
5299 continue
5300 else
5301 break
5302 fi
5303 ;;
cristy7247bba2012-02-05 16:37:27 +00005304 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005305 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005306 # not run yet. These depmodes are late enough in the game, and
5307 # so weak that their functioning should not be impacted.
5308 am__obj=conftest.${OBJEXT-o}
5309 am__minus_obj=
5310 ;;
5311 none) break ;;
5312 esac
5313 if depmode=$depmode \
5314 source=sub/conftest.c object=$am__obj \
5315 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5316 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5317 >/dev/null 2>conftest.err &&
5318 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5319 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5320 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5321 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5322 # icc doesn't choke on unknown options, it will just issue warnings
5323 # or remarks (even with -Werror). So we grep stderr for any message
5324 # that says an option was ignored or not supported.
5325 # When given -MP, icc 7.0 and 7.1 complain thusly:
5326 # icc: Command line warning: ignoring option '-M'; no argument required
5327 # The diagnosis changed in icc 8.0:
5328 # icc: Command line remark: option '-MP' not supported
5329 if (grep 'ignoring option' conftest.err ||
5330 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5331 am_cv_CC_dependencies_compiler_type=$depmode
5332 break
5333 fi
5334 fi
5335 done
5336
5337 cd ..
5338 rm -rf conftest.dir
5339else
5340 am_cv_CC_dependencies_compiler_type=none
5341fi
5342
5343fi
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5345$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5346CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5347
5348 if
5349 test "x$enable_dependency_tracking" != xno \
5350 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5351 am__fastdepCC_TRUE=
5352 am__fastdepCC_FALSE='#'
5353else
5354 am__fastdepCC_TRUE='#'
5355 am__fastdepCC_FALSE=
5356fi
5357
5358
cristy3ed852e2009-09-05 21:47:34 +00005359
cristya0b81c32010-01-22 02:54:33 +00005360ac_ext=c
5361ac_cpp='$CPP $CPPFLAGS'
5362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5364ac_compiler_gnu=$ac_cv_c_compiler_gnu
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5366$as_echo_n "checking how to run the C preprocessor... " >&6; }
5367# On Suns, sometimes $CPP names a directory.
5368if test -n "$CPP" && test -d "$CPP"; then
5369 CPP=
5370fi
5371if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005372 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005373 $as_echo_n "(cached) " >&6
5374else
5375 # Double quotes because CPP needs to be expanded
5376 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5377 do
5378 ac_preproc_ok=false
5379for ac_c_preproc_warn_flag in '' yes
5380do
5381 # Use a header file that comes with gcc, so configuring glibc
5382 # with a fresh cross-compiler works.
5383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5384 # <limits.h> exists even on freestanding compilers.
5385 # On the NeXT, cc -E runs the code through the compiler's parser,
5386 # not just through cpp. "Syntax error" is here to catch this case.
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388/* end confdefs.h. */
5389#ifdef __STDC__
5390# include <limits.h>
5391#else
5392# include <assert.h>
5393#endif
5394 Syntax error
5395_ACEOF
5396if ac_fn_c_try_cpp "$LINENO"; then :
5397
5398else
5399 # Broken: fails on valid input.
5400continue
5401fi
cristyda16f162011-02-19 23:52:17 +00005402rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005403
5404 # OK, works on sane cases. Now check whether nonexistent headers
5405 # can be detected and how.
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h. */
5408#include <ac_nonexistent.h>
5409_ACEOF
5410if ac_fn_c_try_cpp "$LINENO"; then :
5411 # Broken: success on invalid input.
5412continue
5413else
5414 # Passes both tests.
5415ac_preproc_ok=:
5416break
5417fi
cristyda16f162011-02-19 23:52:17 +00005418rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005419
5420done
5421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005422rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005423if $ac_preproc_ok; then :
5424 break
5425fi
5426
5427 done
5428 ac_cv_prog_CPP=$CPP
5429
5430fi
5431 CPP=$ac_cv_prog_CPP
5432else
5433 ac_cv_prog_CPP=$CPP
5434fi
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5436$as_echo "$CPP" >&6; }
5437ac_preproc_ok=false
5438for ac_c_preproc_warn_flag in '' yes
5439do
5440 # Use a header file that comes with gcc, so configuring glibc
5441 # with a fresh cross-compiler works.
5442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5443 # <limits.h> exists even on freestanding compilers.
5444 # On the NeXT, cc -E runs the code through the compiler's parser,
5445 # not just through cpp. "Syntax error" is here to catch this case.
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447/* end confdefs.h. */
5448#ifdef __STDC__
5449# include <limits.h>
5450#else
5451# include <assert.h>
5452#endif
5453 Syntax error
5454_ACEOF
5455if ac_fn_c_try_cpp "$LINENO"; then :
5456
5457else
5458 # Broken: fails on valid input.
5459continue
5460fi
cristyda16f162011-02-19 23:52:17 +00005461rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005462
5463 # OK, works on sane cases. Now check whether nonexistent headers
5464 # can be detected and how.
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466/* end confdefs.h. */
5467#include <ac_nonexistent.h>
5468_ACEOF
5469if ac_fn_c_try_cpp "$LINENO"; then :
5470 # Broken: success on invalid input.
5471continue
5472else
5473 # Passes both tests.
5474ac_preproc_ok=:
5475break
5476fi
cristyda16f162011-02-19 23:52:17 +00005477rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005478
5479done
5480# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005481rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005482if $ac_preproc_ok; then :
5483
5484else
5485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005487as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5488See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005489fi
5490
5491ac_ext=c
5492ac_cpp='$CPP $CPPFLAGS'
5493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5495ac_compiler_gnu=$ac_cv_c_compiler_gnu
5496
5497
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5499$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005500if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005501 $as_echo_n "(cached) " >&6
5502else
5503 if test -z "$GREP"; then
5504 ac_path_GREP_found=false
5505 # Loop through the user's path and test for each of PROGNAME-LIST
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5508do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_prog in grep ggrep; do
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005514 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005515# Check for GNU ac_path_GREP and select it if it is found.
5516 # Check for GNU $ac_path_GREP
5517case `"$ac_path_GREP" --version 2>&1` in
5518*GNU*)
5519 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5520*)
5521 ac_count=0
5522 $as_echo_n 0123456789 >"conftest.in"
5523 while :
5524 do
5525 cat "conftest.in" "conftest.in" >"conftest.tmp"
5526 mv "conftest.tmp" "conftest.in"
5527 cp "conftest.in" "conftest.nl"
5528 $as_echo 'GREP' >> "conftest.nl"
5529 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5531 as_fn_arith $ac_count + 1 && ac_count=$as_val
5532 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5533 # Best one so far, save it but keep looking for a better one
5534 ac_cv_path_GREP="$ac_path_GREP"
5535 ac_path_GREP_max=$ac_count
5536 fi
5537 # 10*(2^10) chars as input seems more than enough
5538 test $ac_count -gt 10 && break
5539 done
5540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5541esac
5542
5543 $ac_path_GREP_found && break 3
5544 done
5545 done
5546 done
5547IFS=$as_save_IFS
5548 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005549 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005550 fi
5551else
5552 ac_cv_path_GREP=$GREP
5553fi
5554
5555fi
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5557$as_echo "$ac_cv_path_GREP" >&6; }
5558 GREP="$ac_cv_path_GREP"
5559
5560
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5562$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005563if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005564 $as_echo_n "(cached) " >&6
5565else
5566 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5567 then ac_cv_path_EGREP="$GREP -E"
5568 else
5569 if test -z "$EGREP"; then
5570 ac_path_EGREP_found=false
5571 # Loop through the user's path and test for each of PROGNAME-LIST
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5574do
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_prog in egrep; do
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005580 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005581# Check for GNU ac_path_EGREP and select it if it is found.
5582 # Check for GNU $ac_path_EGREP
5583case `"$ac_path_EGREP" --version 2>&1` in
5584*GNU*)
5585 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5586*)
5587 ac_count=0
5588 $as_echo_n 0123456789 >"conftest.in"
5589 while :
5590 do
5591 cat "conftest.in" "conftest.in" >"conftest.tmp"
5592 mv "conftest.tmp" "conftest.in"
5593 cp "conftest.in" "conftest.nl"
5594 $as_echo 'EGREP' >> "conftest.nl"
5595 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5597 as_fn_arith $ac_count + 1 && ac_count=$as_val
5598 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5599 # Best one so far, save it but keep looking for a better one
5600 ac_cv_path_EGREP="$ac_path_EGREP"
5601 ac_path_EGREP_max=$ac_count
5602 fi
5603 # 10*(2^10) chars as input seems more than enough
5604 test $ac_count -gt 10 && break
5605 done
5606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5607esac
5608
5609 $ac_path_EGREP_found && break 3
5610 done
5611 done
5612 done
5613IFS=$as_save_IFS
5614 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005615 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005616 fi
5617else
5618 ac_cv_path_EGREP=$EGREP
5619fi
5620
5621 fi
5622fi
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5624$as_echo "$ac_cv_path_EGREP" >&6; }
5625 EGREP="$ac_cv_path_EGREP"
5626
5627
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5629$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005630if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005631 $as_echo_n "(cached) " >&6
5632else
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h. */
5635#include <stdlib.h>
5636#include <stdarg.h>
5637#include <string.h>
5638#include <float.h>
5639
5640int
5641main ()
5642{
5643
5644 ;
5645 return 0;
5646}
5647_ACEOF
5648if ac_fn_c_try_compile "$LINENO"; then :
5649 ac_cv_header_stdc=yes
5650else
5651 ac_cv_header_stdc=no
5652fi
5653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654
5655if test $ac_cv_header_stdc = yes; then
5656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658/* end confdefs.h. */
5659#include <string.h>
5660
5661_ACEOF
5662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5663 $EGREP "memchr" >/dev/null 2>&1; then :
5664
5665else
5666 ac_cv_header_stdc=no
5667fi
5668rm -f conftest*
5669
5670fi
5671
5672if test $ac_cv_header_stdc = yes; then
5673 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675/* end confdefs.h. */
5676#include <stdlib.h>
5677
5678_ACEOF
5679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5680 $EGREP "free" >/dev/null 2>&1; then :
5681
5682else
5683 ac_cv_header_stdc=no
5684fi
5685rm -f conftest*
5686
5687fi
5688
5689if test $ac_cv_header_stdc = yes; then
5690 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5691 if test "$cross_compiling" = yes; then :
5692 :
5693else
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695/* end confdefs.h. */
5696#include <ctype.h>
5697#include <stdlib.h>
5698#if ((' ' & 0x0FF) == 0x020)
5699# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5700# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5701#else
5702# define ISLOWER(c) \
5703 (('a' <= (c) && (c) <= 'i') \
5704 || ('j' <= (c) && (c) <= 'r') \
5705 || ('s' <= (c) && (c) <= 'z'))
5706# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5707#endif
5708
5709#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5710int
5711main ()
5712{
5713 int i;
5714 for (i = 0; i < 256; i++)
5715 if (XOR (islower (i), ISLOWER (i))
5716 || toupper (i) != TOUPPER (i))
5717 return 2;
5718 return 0;
5719}
5720_ACEOF
5721if ac_fn_c_try_run "$LINENO"; then :
5722
5723else
5724 ac_cv_header_stdc=no
5725fi
5726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5727 conftest.$ac_objext conftest.beam conftest.$ac_ext
5728fi
5729
5730fi
5731fi
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5733$as_echo "$ac_cv_header_stdc" >&6; }
5734if test $ac_cv_header_stdc = yes; then
5735
5736$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5737
5738fi
5739
5740# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5741for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5742 inttypes.h stdint.h unistd.h
5743do :
5744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5745ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5746"
cristy98dddb52010-11-04 00:30:15 +00005747if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005748 cat >>confdefs.h <<_ACEOF
5749#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5750_ACEOF
5751
5752fi
5753
5754done
5755
5756
5757
5758 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 +00005759if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005760 MINIX=yes
5761else
5762 MINIX=
5763fi
5764
5765
5766 if test "$MINIX" = yes; then
5767
5768$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5769
5770
5771$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5772
5773
5774$as_echo "#define _MINIX 1" >>confdefs.h
5775
5776 fi
5777
5778
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5780$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005781if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005782 $as_echo_n "(cached) " >&6
5783else
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785/* end confdefs.h. */
5786
cristy14fefe52012-05-21 00:59:18 +00005787# define __EXTENSIONS__ 1
5788 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005789int
5790main ()
5791{
5792
5793 ;
5794 return 0;
5795}
5796_ACEOF
5797if ac_fn_c_try_compile "$LINENO"; then :
5798 ac_cv_safe_to_define___extensions__=yes
5799else
5800 ac_cv_safe_to_define___extensions__=no
5801fi
5802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803fi
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5805$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5806 test $ac_cv_safe_to_define___extensions__ = yes &&
5807 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5808
5809 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5810
5811 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5812
5813 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5814
5815 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5816
5817
5818
5819# Check for programs
5820ac_ext=c
5821ac_cpp='$CPP $CPPFLAGS'
5822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5824ac_compiler_gnu=$ac_cv_c_compiler_gnu
5825if test -n "$ac_tool_prefix"; then
5826 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5827set dummy ${ac_tool_prefix}gcc; ac_word=$2
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005830if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005831 $as_echo_n "(cached) " >&6
5832else
5833 if test -n "$CC"; then
5834 ac_cv_prog_CC="$CC" # Let the user override the test.
5835else
5836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837for as_dir in $PATH
5838do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005843 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5846 fi
5847done
5848 done
5849IFS=$as_save_IFS
5850
5851fi
5852fi
5853CC=$ac_cv_prog_CC
5854if test -n "$CC"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5856$as_echo "$CC" >&6; }
5857else
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859$as_echo "no" >&6; }
5860fi
5861
5862
5863fi
5864if test -z "$ac_cv_prog_CC"; then
5865 ac_ct_CC=$CC
5866 # Extract the first word of "gcc", so it can be a program name with args.
5867set dummy gcc; ac_word=$2
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005870if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005871 $as_echo_n "(cached) " >&6
5872else
5873 if test -n "$ac_ct_CC"; then
5874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5875else
5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877for as_dir in $PATH
5878do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005883 ac_cv_prog_ac_ct_CC="gcc"
5884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5886 fi
5887done
5888 done
5889IFS=$as_save_IFS
5890
5891fi
5892fi
5893ac_ct_CC=$ac_cv_prog_ac_ct_CC
5894if test -n "$ac_ct_CC"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5896$as_echo "$ac_ct_CC" >&6; }
5897else
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899$as_echo "no" >&6; }
5900fi
5901
5902 if test "x$ac_ct_CC" = x; then
5903 CC=""
5904 else
5905 case $cross_compiling:$ac_tool_warned in
5906yes:)
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5909ac_tool_warned=yes ;;
5910esac
5911 CC=$ac_ct_CC
5912 fi
5913else
5914 CC="$ac_cv_prog_CC"
5915fi
5916
5917if test -z "$CC"; then
5918 if test -n "$ac_tool_prefix"; then
5919 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5920set dummy ${ac_tool_prefix}cc; ac_word=$2
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005923if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005924 $as_echo_n "(cached) " >&6
5925else
5926 if test -n "$CC"; then
5927 ac_cv_prog_CC="$CC" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005936 ac_cv_prog_CC="${ac_tool_prefix}cc"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5939 fi
5940done
5941 done
5942IFS=$as_save_IFS
5943
5944fi
5945fi
5946CC=$ac_cv_prog_CC
5947if test -n "$CC"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5949$as_echo "$CC" >&6; }
5950else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952$as_echo "no" >&6; }
5953fi
5954
5955
5956 fi
5957fi
5958if test -z "$CC"; then
5959 # Extract the first word of "cc", so it can be a program name with args.
5960set dummy cc; ac_word=$2
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005963if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005964 $as_echo_n "(cached) " >&6
5965else
5966 if test -n "$CC"; then
5967 ac_cv_prog_CC="$CC" # Let the user override the test.
5968else
5969 ac_prog_rejected=no
5970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971for as_dir in $PATH
5972do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005977 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5978 ac_prog_rejected=yes
5979 continue
5980 fi
5981 ac_cv_prog_CC="cc"
5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 break 2
5984 fi
5985done
5986 done
5987IFS=$as_save_IFS
5988
5989if test $ac_prog_rejected = yes; then
5990 # We found a bogon in the path, so make sure we never use it.
5991 set dummy $ac_cv_prog_CC
5992 shift
5993 if test $# != 0; then
5994 # We chose a different compiler from the bogus one.
5995 # However, it has the same basename, so the bogon will be chosen
5996 # first if we set CC to just the basename; use the full file name.
5997 shift
5998 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5999 fi
6000fi
6001fi
6002fi
6003CC=$ac_cv_prog_CC
6004if test -n "$CC"; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6006$as_echo "$CC" >&6; }
6007else
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009$as_echo "no" >&6; }
6010fi
6011
6012
6013fi
6014if test -z "$CC"; then
6015 if test -n "$ac_tool_prefix"; then
6016 for ac_prog in cl.exe
6017 do
6018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6019set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006022if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006023 $as_echo_n "(cached) " >&6
6024else
6025 if test -n "$CC"; then
6026 ac_cv_prog_CC="$CC" # Let the user override the test.
6027else
6028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029for as_dir in $PATH
6030do
6031 IFS=$as_save_IFS
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6038 fi
6039done
6040 done
6041IFS=$as_save_IFS
6042
6043fi
6044fi
6045CC=$ac_cv_prog_CC
6046if test -n "$CC"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6048$as_echo "$CC" >&6; }
6049else
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051$as_echo "no" >&6; }
6052fi
6053
6054
6055 test -n "$CC" && break
6056 done
6057fi
6058if test -z "$CC"; then
6059 ac_ct_CC=$CC
6060 for ac_prog in cl.exe
6061do
6062 # Extract the first word of "$ac_prog", so it can be a program name with args.
6063set dummy $ac_prog; ac_word=$2
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006066if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006067 $as_echo_n "(cached) " >&6
6068else
6069 if test -n "$ac_ct_CC"; then
6070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6071else
6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073for as_dir in $PATH
6074do
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006079 ac_cv_prog_ac_ct_CC="$ac_prog"
6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6082 fi
6083done
6084 done
6085IFS=$as_save_IFS
6086
6087fi
6088fi
6089ac_ct_CC=$ac_cv_prog_ac_ct_CC
6090if test -n "$ac_ct_CC"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6092$as_echo "$ac_ct_CC" >&6; }
6093else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095$as_echo "no" >&6; }
6096fi
6097
6098
6099 test -n "$ac_ct_CC" && break
6100done
6101
6102 if test "x$ac_ct_CC" = x; then
6103 CC=""
6104 else
6105 case $cross_compiling:$ac_tool_warned in
6106yes:)
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109ac_tool_warned=yes ;;
6110esac
6111 CC=$ac_ct_CC
6112 fi
6113fi
6114
6115fi
6116
6117
6118test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006120as_fn_error $? "no acceptable C compiler found in \$PATH
6121See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006122
6123# Provide some information about the compiler.
6124$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6125set X $ac_compile
6126ac_compiler=$2
6127for ac_option in --version -v -V -qversion; do
6128 { { ac_try="$ac_compiler $ac_option >&5"
6129case "(($ac_try" in
6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6132esac
6133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6134$as_echo "$ac_try_echo"; } >&5
6135 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6136 ac_status=$?
6137 if test -s conftest.err; then
6138 sed '10a\
6139... rest of stderr output deleted ...
6140 10q' conftest.err >conftest.er1
6141 cat conftest.er1 >&5
6142 fi
6143 rm -f conftest.er1 conftest.err
6144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6145 test $ac_status = 0; }
6146done
6147
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6149$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006150if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006151 $as_echo_n "(cached) " >&6
6152else
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154/* end confdefs.h. */
6155
6156int
6157main ()
6158{
6159#ifndef __GNUC__
6160 choke me
6161#endif
6162
6163 ;
6164 return 0;
6165}
6166_ACEOF
6167if ac_fn_c_try_compile "$LINENO"; then :
6168 ac_compiler_gnu=yes
6169else
6170 ac_compiler_gnu=no
6171fi
6172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173ac_cv_c_compiler_gnu=$ac_compiler_gnu
6174
6175fi
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6177$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6178if test $ac_compiler_gnu = yes; then
6179 GCC=yes
6180else
6181 GCC=
6182fi
6183ac_test_CFLAGS=${CFLAGS+set}
6184ac_save_CFLAGS=$CFLAGS
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6186$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006187if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006188 $as_echo_n "(cached) " >&6
6189else
6190 ac_save_c_werror_flag=$ac_c_werror_flag
6191 ac_c_werror_flag=yes
6192 ac_cv_prog_cc_g=no
6193 CFLAGS="-g"
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195/* end confdefs.h. */
6196
6197int
6198main ()
6199{
6200
6201 ;
6202 return 0;
6203}
6204_ACEOF
6205if ac_fn_c_try_compile "$LINENO"; then :
6206 ac_cv_prog_cc_g=yes
6207else
6208 CFLAGS=""
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210/* end confdefs.h. */
6211
6212int
6213main ()
6214{
6215
6216 ;
6217 return 0;
6218}
6219_ACEOF
6220if ac_fn_c_try_compile "$LINENO"; then :
6221
6222else
6223 ac_c_werror_flag=$ac_save_c_werror_flag
6224 CFLAGS="-g"
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226/* end confdefs.h. */
6227
6228int
6229main ()
6230{
6231
6232 ;
6233 return 0;
6234}
6235_ACEOF
6236if ac_fn_c_try_compile "$LINENO"; then :
6237 ac_cv_prog_cc_g=yes
6238fi
6239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240fi
6241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242fi
6243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 ac_c_werror_flag=$ac_save_c_werror_flag
6245fi
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6247$as_echo "$ac_cv_prog_cc_g" >&6; }
6248if test "$ac_test_CFLAGS" = set; then
6249 CFLAGS=$ac_save_CFLAGS
6250elif test $ac_cv_prog_cc_g = yes; then
6251 if test "$GCC" = yes; then
6252 CFLAGS="-g -O2"
6253 else
6254 CFLAGS="-g"
6255 fi
6256else
6257 if test "$GCC" = yes; then
6258 CFLAGS="-O2"
6259 else
6260 CFLAGS=
6261 fi
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6264$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006265if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006266 $as_echo_n "(cached) " >&6
6267else
6268 ac_cv_prog_cc_c89=no
6269ac_save_CC=$CC
6270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271/* end confdefs.h. */
6272#include <stdarg.h>
6273#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006274struct stat;
cristya0b81c32010-01-22 02:54:33 +00006275/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6276struct buf { int x; };
6277FILE * (*rcsopen) (struct buf *, struct stat *, int);
6278static char *e (p, i)
6279 char **p;
6280 int i;
6281{
6282 return p[i];
6283}
6284static char *f (char * (*g) (char **, int), char **p, ...)
6285{
6286 char *s;
6287 va_list v;
6288 va_start (v,p);
6289 s = g (p, va_arg (v,int));
6290 va_end (v);
6291 return s;
6292}
6293
6294/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6295 function prototypes and stuff, but not '\xHH' hex character constants.
6296 These don't provoke an error unfortunately, instead are silently treated
6297 as 'x'. The following induces an error, until -std is added to get
6298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6299 array size at least. It's necessary to write '\x00'==0 to get something
6300 that's true only with -std. */
6301int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6302
6303/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6304 inside strings and character constants. */
6305#define FOO(x) 'x'
6306int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6307
6308int test (int i, double x);
6309struct s1 {int (*f) (int a);};
6310struct s2 {int (*f) (double a);};
6311int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6312int argc;
6313char **argv;
6314int
6315main ()
6316{
6317return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6318 ;
6319 return 0;
6320}
6321_ACEOF
6322for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6324do
6325 CC="$ac_save_CC $ac_arg"
6326 if ac_fn_c_try_compile "$LINENO"; then :
6327 ac_cv_prog_cc_c89=$ac_arg
6328fi
6329rm -f core conftest.err conftest.$ac_objext
6330 test "x$ac_cv_prog_cc_c89" != "xno" && break
6331done
6332rm -f conftest.$ac_ext
6333CC=$ac_save_CC
6334
6335fi
6336# AC_CACHE_VAL
6337case "x$ac_cv_prog_cc_c89" in
6338 x)
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6340$as_echo "none needed" >&6; } ;;
6341 xno)
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6343$as_echo "unsupported" >&6; } ;;
6344 *)
6345 CC="$CC $ac_cv_prog_cc_c89"
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6347$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6348esac
6349if test "x$ac_cv_prog_cc_c89" != xno; then :
6350
6351fi
6352
6353ac_ext=c
6354ac_cpp='$CPP $CPPFLAGS'
6355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358
cristy73bd4a52010-10-05 11:24:23 +00006359depcc="$CC" am_compiler_list=
6360
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6362$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006363if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006364 $as_echo_n "(cached) " >&6
6365else
6366 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6367 # We make a subdir and do the tests there. Otherwise we can end up
6368 # making bogus files that we don't know about and never remove. For
6369 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006370 # making a dummy file named 'D' -- because '-MD' means "put the output
6371 # in D".
cristy7247bba2012-02-05 16:37:27 +00006372 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006373 mkdir conftest.dir
6374 # Copy depcomp to subdir because otherwise we won't find it if we're
6375 # using a relative directory.
6376 cp "$am_depcomp" conftest.dir
6377 cd conftest.dir
6378 # We will build objects and dependencies in a subdirectory because
6379 # it helps to detect inapplicable dependency modes. For instance
6380 # both Tru64's cc and ICC support -MD to output dependencies as a
6381 # side effect of compilation, but ICC will put the dependencies in
6382 # the current directory while Tru64 will put them in the object
6383 # directory.
6384 mkdir sub
6385
6386 am_cv_CC_dependencies_compiler_type=none
6387 if test "$am_compiler_list" = ""; then
6388 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6389 fi
6390 am__universal=false
6391 case " $depcc " in #(
6392 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6393 esac
6394
6395 for depmode in $am_compiler_list; do
6396 # Setup a source with many dependencies, because some compilers
6397 # like to wrap large dependency lists on column 80 (with \), and
6398 # we should not choose a depcomp mode which is confused by this.
6399 #
6400 # We need to recreate these files for each test, as the compiler may
6401 # overwrite some of them when testing with obscure command lines.
6402 # This happens at least with the AIX C compiler.
6403 : > sub/conftest.c
6404 for i in 1 2 3 4 5 6; do
6405 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006406 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6407 # Solaris 10 /bin/sh.
6408 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006409 done
6410 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6411
cristyc0890a62012-07-19 00:18:20 +00006412 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006413 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006414 # handle '-M -o', and we need to detect this. Also, some Intel
6415 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006416 am__obj=sub/conftest.${OBJEXT-o}
6417 am__minus_obj="-o $am__obj"
6418 case $depmode in
6419 gcc)
6420 # This depmode causes a compiler race in universal mode.
6421 test "$am__universal" = false || continue
6422 ;;
6423 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006424 # After this tag, mechanisms are not by side-effect, so they'll
6425 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006426 if test "x$enable_dependency_tracking" = xyes; then
6427 continue
6428 else
6429 break
6430 fi
6431 ;;
cristy7247bba2012-02-05 16:37:27 +00006432 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006433 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006434 # not run yet. These depmodes are late enough in the game, and
6435 # so weak that their functioning should not be impacted.
6436 am__obj=conftest.${OBJEXT-o}
6437 am__minus_obj=
6438 ;;
6439 none) break ;;
6440 esac
6441 if depmode=$depmode \
6442 source=sub/conftest.c object=$am__obj \
6443 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6444 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6445 >/dev/null 2>conftest.err &&
6446 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6447 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6448 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6449 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6450 # icc doesn't choke on unknown options, it will just issue warnings
6451 # or remarks (even with -Werror). So we grep stderr for any message
6452 # that says an option was ignored or not supported.
6453 # When given -MP, icc 7.0 and 7.1 complain thusly:
6454 # icc: Command line warning: ignoring option '-M'; no argument required
6455 # The diagnosis changed in icc 8.0:
6456 # icc: Command line remark: option '-MP' not supported
6457 if (grep 'ignoring option' conftest.err ||
6458 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6459 am_cv_CC_dependencies_compiler_type=$depmode
6460 break
6461 fi
6462 fi
6463 done
6464
6465 cd ..
6466 rm -rf conftest.dir
6467else
6468 am_cv_CC_dependencies_compiler_type=none
6469fi
6470
6471fi
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6473$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6474CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6475
6476 if
6477 test "x$enable_dependency_tracking" != xno \
6478 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6479 am__fastdepCC_TRUE=
6480 am__fastdepCC_FALSE='#'
6481else
6482 am__fastdepCC_TRUE='#'
6483 am__fastdepCC_FALSE=
6484fi
6485
6486
cristy95646052009-11-28 23:05:30 +00006487ac_ext=cpp
6488ac_cpp='$CXXCPP $CPPFLAGS'
6489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6492if test -z "$CXX"; then
6493 if test -n "$CCC"; then
6494 CXX=$CCC
6495 else
6496 if test -n "$ac_tool_prefix"; then
6497 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6498 do
6499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6500set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006503if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006504 $as_echo_n "(cached) " >&6
6505else
6506 if test -n "$CXX"; then
6507 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6508else
6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510for as_dir in $PATH
6511do
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006516 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520done
6521 done
6522IFS=$as_save_IFS
6523
6524fi
6525fi
6526CXX=$ac_cv_prog_CXX
6527if test -n "$CXX"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6529$as_echo "$CXX" >&6; }
6530else
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532$as_echo "no" >&6; }
6533fi
6534
6535
6536 test -n "$CXX" && break
6537 done
6538fi
6539if test -z "$CXX"; then
6540 ac_ct_CXX=$CXX
6541 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6542do
6543 # Extract the first word of "$ac_prog", so it can be a program name with args.
6544set dummy $ac_prog; ac_word=$2
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006547if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006548 $as_echo_n "(cached) " >&6
6549else
6550 if test -n "$ac_ct_CXX"; then
6551 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6552else
6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554for as_dir in $PATH
6555do
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006560 ac_cv_prog_ac_ct_CXX="$ac_prog"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 break 2
6563 fi
6564done
6565 done
6566IFS=$as_save_IFS
6567
6568fi
6569fi
6570ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6571if test -n "$ac_ct_CXX"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6573$as_echo "$ac_ct_CXX" >&6; }
6574else
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576$as_echo "no" >&6; }
6577fi
6578
6579
6580 test -n "$ac_ct_CXX" && break
6581done
6582
6583 if test "x$ac_ct_CXX" = x; then
6584 CXX="g++"
6585 else
6586 case $cross_compiling:$ac_tool_warned in
6587yes:)
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6590ac_tool_warned=yes ;;
6591esac
6592 CXX=$ac_ct_CXX
6593 fi
6594fi
6595
6596 fi
6597fi
6598# Provide some information about the compiler.
6599$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6600set X $ac_compile
6601ac_compiler=$2
6602for ac_option in --version -v -V -qversion; do
6603 { { ac_try="$ac_compiler $ac_option >&5"
6604case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607esac
6608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6609$as_echo "$ac_try_echo"; } >&5
6610 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6611 ac_status=$?
6612 if test -s conftest.err; then
6613 sed '10a\
6614... rest of stderr output deleted ...
6615 10q' conftest.err >conftest.er1
6616 cat conftest.er1 >&5
6617 fi
6618 rm -f conftest.er1 conftest.err
6619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6620 test $ac_status = 0; }
6621done
6622
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6624$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006625if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006626 $as_echo_n "(cached) " >&6
6627else
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629/* end confdefs.h. */
6630
6631int
6632main ()
6633{
6634#ifndef __GNUC__
6635 choke me
6636#endif
6637
6638 ;
6639 return 0;
6640}
6641_ACEOF
6642if ac_fn_cxx_try_compile "$LINENO"; then :
6643 ac_compiler_gnu=yes
6644else
6645 ac_compiler_gnu=no
6646fi
6647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6649
6650fi
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6652$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6653if test $ac_compiler_gnu = yes; then
6654 GXX=yes
6655else
6656 GXX=
6657fi
6658ac_test_CXXFLAGS=${CXXFLAGS+set}
6659ac_save_CXXFLAGS=$CXXFLAGS
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6661$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006662if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006663 $as_echo_n "(cached) " >&6
6664else
6665 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6666 ac_cxx_werror_flag=yes
6667 ac_cv_prog_cxx_g=no
6668 CXXFLAGS="-g"
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670/* end confdefs.h. */
6671
6672int
6673main ()
6674{
6675
6676 ;
6677 return 0;
6678}
6679_ACEOF
6680if ac_fn_cxx_try_compile "$LINENO"; then :
6681 ac_cv_prog_cxx_g=yes
6682else
6683 CXXFLAGS=""
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685/* end confdefs.h. */
6686
6687int
6688main ()
6689{
6690
6691 ;
6692 return 0;
6693}
6694_ACEOF
6695if ac_fn_cxx_try_compile "$LINENO"; then :
6696
6697else
6698 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6699 CXXFLAGS="-g"
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h. */
6702
6703int
6704main ()
6705{
6706
6707 ;
6708 return 0;
6709}
6710_ACEOF
6711if ac_fn_cxx_try_compile "$LINENO"; then :
6712 ac_cv_prog_cxx_g=yes
6713fi
6714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715fi
6716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717fi
6718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6720fi
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6722$as_echo "$ac_cv_prog_cxx_g" >&6; }
6723if test "$ac_test_CXXFLAGS" = set; then
6724 CXXFLAGS=$ac_save_CXXFLAGS
6725elif test $ac_cv_prog_cxx_g = yes; then
6726 if test "$GXX" = yes; then
6727 CXXFLAGS="-g -O2"
6728 else
6729 CXXFLAGS="-g"
6730 fi
6731else
6732 if test "$GXX" = yes; then
6733 CXXFLAGS="-O2"
6734 else
6735 CXXFLAGS=
6736 fi
6737fi
6738ac_ext=c
6739ac_cpp='$CPP $CPPFLAGS'
6740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742ac_compiler_gnu=$ac_cv_c_compiler_gnu
6743
cristy73bd4a52010-10-05 11:24:23 +00006744depcc="$CXX" am_compiler_list=
6745
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6747$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006748if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006749 $as_echo_n "(cached) " >&6
6750else
6751 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6752 # We make a subdir and do the tests there. Otherwise we can end up
6753 # making bogus files that we don't know about and never remove. For
6754 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006755 # making a dummy file named 'D' -- because '-MD' means "put the output
6756 # in D".
cristy7247bba2012-02-05 16:37:27 +00006757 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006758 mkdir conftest.dir
6759 # Copy depcomp to subdir because otherwise we won't find it if we're
6760 # using a relative directory.
6761 cp "$am_depcomp" conftest.dir
6762 cd conftest.dir
6763 # We will build objects and dependencies in a subdirectory because
6764 # it helps to detect inapplicable dependency modes. For instance
6765 # both Tru64's cc and ICC support -MD to output dependencies as a
6766 # side effect of compilation, but ICC will put the dependencies in
6767 # the current directory while Tru64 will put them in the object
6768 # directory.
6769 mkdir sub
6770
6771 am_cv_CXX_dependencies_compiler_type=none
6772 if test "$am_compiler_list" = ""; then
6773 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6774 fi
6775 am__universal=false
6776 case " $depcc " in #(
6777 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6778 esac
6779
6780 for depmode in $am_compiler_list; do
6781 # Setup a source with many dependencies, because some compilers
6782 # like to wrap large dependency lists on column 80 (with \), and
6783 # we should not choose a depcomp mode which is confused by this.
6784 #
6785 # We need to recreate these files for each test, as the compiler may
6786 # overwrite some of them when testing with obscure command lines.
6787 # This happens at least with the AIX C compiler.
6788 : > sub/conftest.c
6789 for i in 1 2 3 4 5 6; do
6790 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006791 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6792 # Solaris 10 /bin/sh.
6793 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006794 done
6795 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6796
cristyc0890a62012-07-19 00:18:20 +00006797 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006798 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006799 # handle '-M -o', and we need to detect this. Also, some Intel
6800 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006801 am__obj=sub/conftest.${OBJEXT-o}
6802 am__minus_obj="-o $am__obj"
6803 case $depmode in
6804 gcc)
6805 # This depmode causes a compiler race in universal mode.
6806 test "$am__universal" = false || continue
6807 ;;
6808 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006809 # After this tag, mechanisms are not by side-effect, so they'll
6810 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006811 if test "x$enable_dependency_tracking" = xyes; then
6812 continue
6813 else
6814 break
6815 fi
6816 ;;
cristy7247bba2012-02-05 16:37:27 +00006817 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006818 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006819 # not run yet. These depmodes are late enough in the game, and
6820 # so weak that their functioning should not be impacted.
6821 am__obj=conftest.${OBJEXT-o}
6822 am__minus_obj=
6823 ;;
6824 none) break ;;
6825 esac
6826 if depmode=$depmode \
6827 source=sub/conftest.c object=$am__obj \
6828 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6829 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6830 >/dev/null 2>conftest.err &&
6831 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6832 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6833 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6834 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6835 # icc doesn't choke on unknown options, it will just issue warnings
6836 # or remarks (even with -Werror). So we grep stderr for any message
6837 # that says an option was ignored or not supported.
6838 # When given -MP, icc 7.0 and 7.1 complain thusly:
6839 # icc: Command line warning: ignoring option '-M'; no argument required
6840 # The diagnosis changed in icc 8.0:
6841 # icc: Command line remark: option '-MP' not supported
6842 if (grep 'ignoring option' conftest.err ||
6843 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6844 am_cv_CXX_dependencies_compiler_type=$depmode
6845 break
6846 fi
6847 fi
6848 done
6849
6850 cd ..
6851 rm -rf conftest.dir
6852else
6853 am_cv_CXX_dependencies_compiler_type=none
6854fi
6855
6856fi
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6858$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6859CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6860
6861 if
6862 test "x$enable_dependency_tracking" != xno \
6863 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6864 am__fastdepCXX_TRUE=
6865 am__fastdepCXX_FALSE='#'
6866else
6867 am__fastdepCXX_TRUE='#'
6868 am__fastdepCXX_FALSE=
6869fi
6870
6871
cristy8b350f62009-11-15 23:12:43 +00006872 case $ac_cv_prog_cc_stdc in #(
6873 no) :
6874 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6875 *) :
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006877$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006878if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006879 $as_echo_n "(cached) " >&6
6880else
6881 ac_cv_prog_cc_c99=no
6882ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006884/* end confdefs.h. */
6885#include <stdarg.h>
6886#include <stdbool.h>
6887#include <stdlib.h>
6888#include <wchar.h>
6889#include <stdio.h>
6890
6891// Check varargs macros. These examples are taken from C99 6.10.3.5.
6892#define debug(...) fprintf (stderr, __VA_ARGS__)
6893#define showlist(...) puts (#__VA_ARGS__)
6894#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6895static void
6896test_varargs_macros (void)
6897{
6898 int x = 1234;
6899 int y = 5678;
6900 debug ("Flag");
6901 debug ("X = %d\n", x);
6902 showlist (The first, second, and third items.);
6903 report (x>y, "x is %d but y is %d", x, y);
6904}
6905
6906// Check long long types.
6907#define BIG64 18446744073709551615ull
6908#define BIG32 4294967295ul
6909#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6910#if !BIG_OK
6911 your preprocessor is broken;
6912#endif
6913#if BIG_OK
6914#else
6915 your preprocessor is broken;
6916#endif
6917static long long int bignum = -9223372036854775807LL;
6918static unsigned long long int ubignum = BIG64;
6919
6920struct incomplete_array
6921{
6922 int datasize;
6923 double data[];
6924};
6925
6926struct named_init {
6927 int number;
6928 const wchar_t *name;
6929 double average;
6930};
6931
6932typedef const char *ccp;
6933
6934static inline int
6935test_restrict (ccp restrict text)
6936{
6937 // See if C++-style comments work.
6938 // Iterate through items via the restricted pointer.
6939 // Also check for declarations in for loops.
6940 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6941 continue;
6942 return 0;
6943}
6944
6945// Check varargs and va_copy.
6946static void
6947test_varargs (const char *format, ...)
6948{
6949 va_list args;
6950 va_start (args, format);
6951 va_list args_copy;
6952 va_copy (args_copy, args);
6953
6954 const char *str;
6955 int number;
6956 float fnumber;
6957
6958 while (*format)
6959 {
6960 switch (*format++)
6961 {
6962 case 's': // string
6963 str = va_arg (args_copy, const char *);
6964 break;
6965 case 'd': // int
6966 number = va_arg (args_copy, int);
6967 break;
6968 case 'f': // float
6969 fnumber = va_arg (args_copy, double);
6970 break;
6971 default:
6972 break;
6973 }
6974 }
6975 va_end (args_copy);
6976 va_end (args);
6977}
6978
6979int
6980main ()
6981{
6982
6983 // Check bool.
6984 _Bool success = false;
6985
6986 // Check restrict.
6987 if (test_restrict ("String literal") == 0)
6988 success = true;
6989 char *restrict newvar = "Another string";
6990
6991 // Check varargs.
6992 test_varargs ("s, d' f .", "string", 65, 34.234);
6993 test_varargs_macros ();
6994
6995 // Check flexible array members.
6996 struct incomplete_array *ia =
6997 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6998 ia->datasize = 10;
6999 for (int i = 0; i < ia->datasize; ++i)
7000 ia->data[i] = i * 1.234;
7001
7002 // Check named initializers.
7003 struct named_init ni = {
7004 .number = 34,
7005 .name = L"Test wide string",
7006 .average = 543.34343,
7007 };
7008
7009 ni.number = 58;
7010
7011 int dynamic_array[ni.number];
7012 dynamic_array[ni.number - 1] = 543;
7013
7014 // work around unused variable warnings
7015 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7016 || dynamic_array[ni.number - 1] != 543);
7017
7018 ;
7019 return 0;
7020}
7021_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007022for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007023do
7024 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007025 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007026 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007027fi
cristy3ed852e2009-09-05 21:47:34 +00007028rm -f core conftest.err conftest.$ac_objext
7029 test "x$ac_cv_prog_cc_c99" != "xno" && break
7030done
7031rm -f conftest.$ac_ext
7032CC=$ac_save_CC
7033
7034fi
7035# AC_CACHE_VAL
7036case "x$ac_cv_prog_cc_c99" in
7037 x)
cristy8b350f62009-11-15 23:12:43 +00007038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007039$as_echo "none needed" >&6; } ;;
7040 xno)
cristy8b350f62009-11-15 23:12:43 +00007041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007042$as_echo "unsupported" >&6; } ;;
7043 *)
7044 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007046$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7047esac
cristy8b350f62009-11-15 23:12:43 +00007048if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007049 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7050else
cristy8b350f62009-11-15 23:12:43 +00007051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007052$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007053if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007054 $as_echo_n "(cached) " >&6
7055else
7056 ac_cv_prog_cc_c89=no
7057ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007059/* end confdefs.h. */
7060#include <stdarg.h>
7061#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007062struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007063/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7064struct buf { int x; };
7065FILE * (*rcsopen) (struct buf *, struct stat *, int);
7066static char *e (p, i)
7067 char **p;
7068 int i;
7069{
7070 return p[i];
7071}
7072static char *f (char * (*g) (char **, int), char **p, ...)
7073{
7074 char *s;
7075 va_list v;
7076 va_start (v,p);
7077 s = g (p, va_arg (v,int));
7078 va_end (v);
7079 return s;
7080}
7081
7082/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7083 function prototypes and stuff, but not '\xHH' hex character constants.
7084 These don't provoke an error unfortunately, instead are silently treated
7085 as 'x'. The following induces an error, until -std is added to get
7086 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7087 array size at least. It's necessary to write '\x00'==0 to get something
7088 that's true only with -std. */
7089int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7090
7091/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7092 inside strings and character constants. */
7093#define FOO(x) 'x'
7094int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7095
7096int test (int i, double x);
7097struct s1 {int (*f) (int a);};
7098struct s2 {int (*f) (double a);};
7099int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7100int argc;
7101char **argv;
7102int
7103main ()
7104{
7105return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7106 ;
7107 return 0;
7108}
7109_ACEOF
7110for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7111 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7112do
7113 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007114 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007115 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007116fi
cristy3ed852e2009-09-05 21:47:34 +00007117rm -f core conftest.err conftest.$ac_objext
7118 test "x$ac_cv_prog_cc_c89" != "xno" && break
7119done
7120rm -f conftest.$ac_ext
7121CC=$ac_save_CC
7122
7123fi
7124# AC_CACHE_VAL
7125case "x$ac_cv_prog_cc_c89" in
7126 x)
cristy8b350f62009-11-15 23:12:43 +00007127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007128$as_echo "none needed" >&6; } ;;
7129 xno)
cristy8b350f62009-11-15 23:12:43 +00007130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007131$as_echo "unsupported" >&6; } ;;
7132 *)
7133 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007135$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7136esac
cristy8b350f62009-11-15 23:12:43 +00007137if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007138 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7139else
7140 ac_cv_prog_cc_stdc=no
7141fi
7142
cristy3ed852e2009-09-05 21:47:34 +00007143fi
cristy3ed852e2009-09-05 21:47:34 +00007144 ;;
7145esac
cristy8b350f62009-11-15 23:12:43 +00007146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007147$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007148 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007149 $as_echo_n "(cached) " >&6
7150fi
7151
cristy8b350f62009-11-15 23:12:43 +00007152 case $ac_cv_prog_cc_stdc in #(
7153 no) :
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7155$as_echo "unsupported" >&6; } ;; #(
7156 '') :
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7158$as_echo "none needed" >&6; } ;; #(
7159 *) :
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007161$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7162esac
7163
cristy3ed852e2009-09-05 21:47:34 +00007164ac_ext=c
7165ac_cpp='$CPP $CPPFLAGS'
7166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7168ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007170$as_echo_n "checking how to run the C preprocessor... " >&6; }
7171# On Suns, sometimes $CPP names a directory.
7172if test -n "$CPP" && test -d "$CPP"; then
7173 CPP=
7174fi
7175if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007176 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007177 $as_echo_n "(cached) " >&6
7178else
7179 # Double quotes because CPP needs to be expanded
7180 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7181 do
7182 ac_preproc_ok=false
7183for ac_c_preproc_warn_flag in '' yes
7184do
7185 # Use a header file that comes with gcc, so configuring glibc
7186 # with a fresh cross-compiler works.
7187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188 # <limits.h> exists even on freestanding compilers.
7189 # On the NeXT, cc -E runs the code through the compiler's parser,
7190 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007192/* end confdefs.h. */
7193#ifdef __STDC__
7194# include <limits.h>
7195#else
7196# include <assert.h>
7197#endif
7198 Syntax error
7199_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007200if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007201
cristy8b350f62009-11-15 23:12:43 +00007202else
cristy3ed852e2009-09-05 21:47:34 +00007203 # Broken: fails on valid input.
7204continue
7205fi
cristyda16f162011-02-19 23:52:17 +00007206rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007207
7208 # OK, works on sane cases. Now check whether nonexistent headers
7209 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007211/* end confdefs.h. */
7212#include <ac_nonexistent.h>
7213_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007214if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007215 # Broken: success on invalid input.
7216continue
7217else
cristy3ed852e2009-09-05 21:47:34 +00007218 # Passes both tests.
7219ac_preproc_ok=:
7220break
7221fi
cristyda16f162011-02-19 23:52:17 +00007222rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007223
7224done
7225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007226rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007227if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007228 break
7229fi
7230
7231 done
7232 ac_cv_prog_CPP=$CPP
7233
7234fi
7235 CPP=$ac_cv_prog_CPP
7236else
7237 ac_cv_prog_CPP=$CPP
7238fi
cristy8b350f62009-11-15 23:12:43 +00007239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007240$as_echo "$CPP" >&6; }
7241ac_preproc_ok=false
7242for ac_c_preproc_warn_flag in '' yes
7243do
7244 # Use a header file that comes with gcc, so configuring glibc
7245 # with a fresh cross-compiler works.
7246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7247 # <limits.h> exists even on freestanding compilers.
7248 # On the NeXT, cc -E runs the code through the compiler's parser,
7249 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007251/* end confdefs.h. */
7252#ifdef __STDC__
7253# include <limits.h>
7254#else
7255# include <assert.h>
7256#endif
7257 Syntax error
7258_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007259if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007260
cristy8b350f62009-11-15 23:12:43 +00007261else
cristy3ed852e2009-09-05 21:47:34 +00007262 # Broken: fails on valid input.
7263continue
7264fi
cristyda16f162011-02-19 23:52:17 +00007265rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007266
7267 # OK, works on sane cases. Now check whether nonexistent headers
7268 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007270/* end confdefs.h. */
7271#include <ac_nonexistent.h>
7272_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007273if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007274 # Broken: success on invalid input.
7275continue
7276else
cristy3ed852e2009-09-05 21:47:34 +00007277 # Passes both tests.
7278ac_preproc_ok=:
7279break
7280fi
cristyda16f162011-02-19 23:52:17 +00007281rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007282
7283done
7284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007285rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007286if $ac_preproc_ok; then :
7287
cristy3ed852e2009-09-05 21:47:34 +00007288else
cristy8b350f62009-11-15 23:12:43 +00007289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007291as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7292See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007293fi
7294
7295ac_ext=c
7296ac_cpp='$CPP $CPPFLAGS'
7297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299ac_compiler_gnu=$ac_cv_c_compiler_gnu
7300
cristy73bd4a52010-10-05 11:24:23 +00007301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7302$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007303if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007304 $as_echo_n "(cached) " >&6
7305else
7306 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7307 for ac_i in 1 2 3 4 5 6 7; do
7308 ac_script="$ac_script$as_nl$ac_script"
7309 done
7310 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7311 { ac_script=; unset ac_script;}
7312 if test -z "$SED"; then
7313 ac_path_SED_found=false
7314 # Loop through the user's path and test for each of PROGNAME-LIST
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_prog in sed gsed; do
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007323 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007324# Check for GNU ac_path_SED and select it if it is found.
7325 # Check for GNU $ac_path_SED
7326case `"$ac_path_SED" --version 2>&1` in
7327*GNU*)
7328 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7329*)
7330 ac_count=0
7331 $as_echo_n 0123456789 >"conftest.in"
7332 while :
7333 do
7334 cat "conftest.in" "conftest.in" >"conftest.tmp"
7335 mv "conftest.tmp" "conftest.in"
7336 cp "conftest.in" "conftest.nl"
7337 $as_echo '' >> "conftest.nl"
7338 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7340 as_fn_arith $ac_count + 1 && ac_count=$as_val
7341 if test $ac_count -gt ${ac_path_SED_max-0}; then
7342 # Best one so far, save it but keep looking for a better one
7343 ac_cv_path_SED="$ac_path_SED"
7344 ac_path_SED_max=$ac_count
7345 fi
7346 # 10*(2^10) chars as input seems more than enough
7347 test $ac_count -gt 10 && break
7348 done
7349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7350esac
7351
7352 $ac_path_SED_found && break 3
7353 done
7354 done
7355 done
7356IFS=$as_save_IFS
7357 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007358 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007359 fi
7360else
7361 ac_cv_path_SED=$SED
7362fi
7363
7364fi
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7366$as_echo "$ac_cv_path_SED" >&6; }
7367 SED="$ac_cv_path_SED"
7368 rm -f conftest.sed
7369
7370test -z "$SED" && SED=sed
7371Xsed="$SED -e 1s/^X//"
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7384$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007385if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007386 $as_echo_n "(cached) " >&6
7387else
7388 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7389 then ac_cv_path_FGREP="$GREP -F"
7390 else
7391 if test -z "$FGREP"; then
7392 ac_path_FGREP_found=false
7393 # Loop through the user's path and test for each of PROGNAME-LIST
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7396do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_prog in fgrep; do
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007402 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007403# Check for GNU ac_path_FGREP and select it if it is found.
7404 # Check for GNU $ac_path_FGREP
7405case `"$ac_path_FGREP" --version 2>&1` in
7406*GNU*)
7407 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7408*)
7409 ac_count=0
7410 $as_echo_n 0123456789 >"conftest.in"
7411 while :
7412 do
7413 cat "conftest.in" "conftest.in" >"conftest.tmp"
7414 mv "conftest.tmp" "conftest.in"
7415 cp "conftest.in" "conftest.nl"
7416 $as_echo 'FGREP' >> "conftest.nl"
7417 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7419 as_fn_arith $ac_count + 1 && ac_count=$as_val
7420 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7421 # Best one so far, save it but keep looking for a better one
7422 ac_cv_path_FGREP="$ac_path_FGREP"
7423 ac_path_FGREP_max=$ac_count
7424 fi
7425 # 10*(2^10) chars as input seems more than enough
7426 test $ac_count -gt 10 && break
7427 done
7428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7429esac
7430
7431 $ac_path_FGREP_found && break 3
7432 done
7433 done
7434 done
7435IFS=$as_save_IFS
7436 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007437 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007438 fi
7439else
7440 ac_cv_path_FGREP=$FGREP
7441fi
7442
7443 fi
7444fi
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7446$as_echo "$ac_cv_path_FGREP" >&6; }
7447 FGREP="$ac_cv_path_FGREP"
7448
7449
7450test -z "$GREP" && GREP=grep
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
cristy0c60a692010-11-04 01:09:47 +00007468ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7469ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7470ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7471
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7473$as_echo_n "checking how to print strings... " >&6; }
7474# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007475if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007476 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7477 ECHO='print -r --'
7478elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7479 ECHO='printf %s\n'
7480else
7481 # Use this function as a fallback that always works.
7482 func_fallback_echo ()
7483 {
7484 eval 'cat <<_LTECHO_EOF
7485$1
7486_LTECHO_EOF'
7487 }
7488 ECHO='func_fallback_echo'
7489fi
7490
7491# func_echo_all arg...
7492# Invoke $ECHO with all args, space-separated.
7493func_echo_all ()
7494{
7495 $ECHO ""
7496}
7497
7498case "$ECHO" in
7499 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7500$as_echo "printf" >&6; } ;;
7501 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7502$as_echo "print -r" >&6; } ;;
7503 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7504$as_echo "cat" >&6; } ;;
7505esac
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
cristy73bd4a52010-10-05 11:24:23 +00007520
7521
7522# Check whether --with-gnu-ld was given.
7523if test "${with_gnu_ld+set}" = set; then :
7524 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7525else
7526 with_gnu_ld=no
7527fi
7528
7529ac_prog=ld
7530if test "$GCC" = yes; then
7531 # Check if gcc -print-prog-name=ld gives a path.
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7533$as_echo_n "checking for ld used by $CC... " >&6; }
7534 case $host in
7535 *-*-mingw*)
7536 # gcc leaves a trailing carriage return which upsets mingw
7537 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7538 *)
7539 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7540 esac
7541 case $ac_prog in
7542 # Accept absolute paths.
7543 [\\/]* | ?:[\\/]*)
7544 re_direlt='/[^/][^/]*/\.\./'
7545 # Canonicalize the pathname of ld
7546 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7547 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7548 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7549 done
7550 test -z "$LD" && LD="$ac_prog"
7551 ;;
7552 "")
7553 # If it fails, then pretend we aren't using GCC.
7554 ac_prog=ld
7555 ;;
7556 *)
7557 # If it is relative, then search for the first ld in PATH.
7558 with_gnu_ld=unknown
7559 ;;
7560 esac
7561elif test "$with_gnu_ld" = yes; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7563$as_echo_n "checking for GNU ld... " >&6; }
7564else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7566$as_echo_n "checking for non-GNU ld... " >&6; }
7567fi
cristyda16f162011-02-19 23:52:17 +00007568if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007569 $as_echo_n "(cached) " >&6
7570else
7571 if test -z "$LD"; then
7572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7573 for ac_dir in $PATH; do
7574 IFS="$lt_save_ifs"
7575 test -z "$ac_dir" && ac_dir=.
7576 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7577 lt_cv_path_LD="$ac_dir/$ac_prog"
7578 # Check to see if the program is GNU ld. I'd rather use --version,
7579 # but apparently some variants of GNU ld only accept -v.
7580 # Break only if it was the GNU/non-GNU ld that we prefer.
7581 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7582 *GNU* | *'with BFD'*)
7583 test "$with_gnu_ld" != no && break
7584 ;;
7585 *)
7586 test "$with_gnu_ld" != yes && break
7587 ;;
7588 esac
7589 fi
7590 done
7591 IFS="$lt_save_ifs"
7592else
7593 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7594fi
7595fi
7596
7597LD="$lt_cv_path_LD"
7598if test -n "$LD"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7600$as_echo "$LD" >&6; }
7601else
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603$as_echo "no" >&6; }
7604fi
cristy98dddb52010-11-04 00:30:15 +00007605test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7607$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007608if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007609 $as_echo_n "(cached) " >&6
7610else
7611 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7612case `$LD -v 2>&1 </dev/null` in
7613*GNU* | *'with BFD'*)
7614 lt_cv_prog_gnu_ld=yes
7615 ;;
7616*)
7617 lt_cv_prog_gnu_ld=no
7618 ;;
7619esac
7620fi
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7622$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7623with_gnu_ld=$lt_cv_prog_gnu_ld
7624
7625
7626
7627
7628
7629
7630
7631
7632
cristy3ed852e2009-09-05 21:47:34 +00007633
cristy837d6dc2010-02-27 01:16:57 +00007634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7635$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007636if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007637 $as_echo_n "(cached) " >&6
7638else
7639 ac_cv_prog_cc_c99=no
7640ac_save_CC=$CC
7641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642/* end confdefs.h. */
7643#include <stdarg.h>
7644#include <stdbool.h>
7645#include <stdlib.h>
7646#include <wchar.h>
7647#include <stdio.h>
7648
7649// Check varargs macros. These examples are taken from C99 6.10.3.5.
7650#define debug(...) fprintf (stderr, __VA_ARGS__)
7651#define showlist(...) puts (#__VA_ARGS__)
7652#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7653static void
7654test_varargs_macros (void)
7655{
7656 int x = 1234;
7657 int y = 5678;
7658 debug ("Flag");
7659 debug ("X = %d\n", x);
7660 showlist (The first, second, and third items.);
7661 report (x>y, "x is %d but y is %d", x, y);
7662}
7663
7664// Check long long types.
7665#define BIG64 18446744073709551615ull
7666#define BIG32 4294967295ul
7667#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7668#if !BIG_OK
7669 your preprocessor is broken;
7670#endif
7671#if BIG_OK
7672#else
7673 your preprocessor is broken;
7674#endif
7675static long long int bignum = -9223372036854775807LL;
7676static unsigned long long int ubignum = BIG64;
7677
7678struct incomplete_array
7679{
7680 int datasize;
7681 double data[];
7682};
7683
7684struct named_init {
7685 int number;
7686 const wchar_t *name;
7687 double average;
7688};
7689
7690typedef const char *ccp;
7691
7692static inline int
7693test_restrict (ccp restrict text)
7694{
7695 // See if C++-style comments work.
7696 // Iterate through items via the restricted pointer.
7697 // Also check for declarations in for loops.
7698 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7699 continue;
7700 return 0;
7701}
7702
7703// Check varargs and va_copy.
7704static void
7705test_varargs (const char *format, ...)
7706{
7707 va_list args;
7708 va_start (args, format);
7709 va_list args_copy;
7710 va_copy (args_copy, args);
7711
7712 const char *str;
7713 int number;
7714 float fnumber;
7715
7716 while (*format)
7717 {
7718 switch (*format++)
7719 {
7720 case 's': // string
7721 str = va_arg (args_copy, const char *);
7722 break;
7723 case 'd': // int
7724 number = va_arg (args_copy, int);
7725 break;
7726 case 'f': // float
7727 fnumber = va_arg (args_copy, double);
7728 break;
7729 default:
7730 break;
7731 }
7732 }
7733 va_end (args_copy);
7734 va_end (args);
7735}
7736
7737int
7738main ()
7739{
7740
7741 // Check bool.
7742 _Bool success = false;
7743
7744 // Check restrict.
7745 if (test_restrict ("String literal") == 0)
7746 success = true;
7747 char *restrict newvar = "Another string";
7748
7749 // Check varargs.
7750 test_varargs ("s, d' f .", "string", 65, 34.234);
7751 test_varargs_macros ();
7752
7753 // Check flexible array members.
7754 struct incomplete_array *ia =
7755 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7756 ia->datasize = 10;
7757 for (int i = 0; i < ia->datasize; ++i)
7758 ia->data[i] = i * 1.234;
7759
7760 // Check named initializers.
7761 struct named_init ni = {
7762 .number = 34,
7763 .name = L"Test wide string",
7764 .average = 543.34343,
7765 };
7766
7767 ni.number = 58;
7768
7769 int dynamic_array[ni.number];
7770 dynamic_array[ni.number - 1] = 543;
7771
7772 // work around unused variable warnings
7773 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7774 || dynamic_array[ni.number - 1] != 543);
7775
7776 ;
7777 return 0;
7778}
7779_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007780for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007781do
7782 CC="$ac_save_CC $ac_arg"
7783 if ac_fn_c_try_compile "$LINENO"; then :
7784 ac_cv_prog_cc_c99=$ac_arg
7785fi
7786rm -f core conftest.err conftest.$ac_objext
7787 test "x$ac_cv_prog_cc_c99" != "xno" && break
7788done
7789rm -f conftest.$ac_ext
7790CC=$ac_save_CC
7791
7792fi
7793# AC_CACHE_VAL
7794case "x$ac_cv_prog_cc_c99" in
7795 x)
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7797$as_echo "none needed" >&6; } ;;
7798 xno)
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7800$as_echo "unsupported" >&6; } ;;
7801 *)
7802 CC="$CC $ac_cv_prog_cc_c99"
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7804$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7805esac
7806if test "x$ac_cv_prog_cc_c99" != xno; then :
7807
7808fi
7809
7810
cristy73bd4a52010-10-05 11:24:23 +00007811if test "x$CC" != xcc; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7813$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7814else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7816$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7817fi
7818set dummy $CC; ac_cc=`$as_echo "$2" |
7819 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007820if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007821 $as_echo_n "(cached) " >&6
7822else
cristy73bd4a52010-10-05 11:24:23 +00007823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824/* end confdefs.h. */
7825
7826int
7827main ()
7828{
7829
7830 ;
7831 return 0;
7832}
7833_ACEOF
7834# Make sure it works both with $CC and with simple cc.
7835# We do the test twice because some compilers refuse to overwrite an
7836# existing .o file with -o, though they will create one.
7837ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7838rm -f conftest2.*
7839if { { case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7842esac
7843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7844$as_echo "$ac_try_echo"; } >&5
7845 (eval "$ac_try") 2>&5
7846 ac_status=$?
7847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7848 test $ac_status = 0; } &&
7849 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852esac
7853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7854$as_echo "$ac_try_echo"; } >&5
7855 (eval "$ac_try") 2>&5
7856 ac_status=$?
7857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7858 test $ac_status = 0; };
7859then
7860 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7861 if test "x$CC" != xcc; then
7862 # Test first that cc exists at all.
7863 if { ac_try='cc -c conftest.$ac_ext >&5'
7864 { { case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867esac
7868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7869$as_echo "$ac_try_echo"; } >&5
7870 (eval "$ac_try") 2>&5
7871 ac_status=$?
7872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873 test $ac_status = 0; }; }; then
7874 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7875 rm -f conftest2.*
7876 if { { case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7879esac
7880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7881$as_echo "$ac_try_echo"; } >&5
7882 (eval "$ac_try") 2>&5
7883 ac_status=$?
7884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7885 test $ac_status = 0; } &&
7886 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7889esac
7890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7891$as_echo "$ac_try_echo"; } >&5
7892 (eval "$ac_try") 2>&5
7893 ac_status=$?
7894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7895 test $ac_status = 0; };
7896 then
7897 # cc works too.
7898 :
7899 else
7900 # cc exists but doesn't like -o.
7901 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7902 fi
7903 fi
7904 fi
7905else
7906 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7907fi
7908rm -f core conftest*
7909
7910fi
7911if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7913$as_echo "yes" >&6; }
7914else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917
7918$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7919
7920fi
7921
7922# FIXME: we rely on the cache variable name because
7923# there is no other way.
7924set dummy $CC
7925am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7926eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7927if test "$am_t" != yes; then
7928 # Losing compiler, so override with the script.
7929 # FIXME: It is wrong to rewrite CC.
7930 # But if we don't then we get into trouble of one sort or another.
7931 # A longer-term fix would be to have automake use am__CC in this case,
7932 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7933 CC="$am_aux_dir/compile $CC"
7934fi
7935
7936
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7938$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007939if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007940 $as_echo_n "(cached) " >&6
7941else
7942 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007943 ac_ext=c
7944ac_cpp='$CPP $CPPFLAGS'
7945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7947ac_compiler_gnu=$ac_cv_c_compiler_gnu
7948
7949 ac_save_CFLAGS="$CFLAGS"
7950for 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" #
7951do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953/* end confdefs.h. */
7954
7955int
7956main ()
7957{
cristy24fc1fe2010-10-23 21:13:01 +00007958
cristy73bd4a52010-10-05 11:24:23 +00007959 ;
7960 return 0;
7961}
7962_ACEOF
7963if ac_fn_c_try_compile "$LINENO"; then :
7964 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7965fi
7966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967done
7968 CFLAGS="$ac_save_CFLAGS"
7969 ac_ext=c
7970ac_cpp='$CPP $CPPFLAGS'
7971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7973ac_compiler_gnu=$ac_cv_c_compiler_gnu
7974
7975
7976fi
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7978$as_echo "$ac_cv_cflags_warn_all" >&6; }
7979case ".$ac_cv_cflags_warn_all" in
7980 .ok|.ok,*) ;;
7981 .|.no|.no,*)
7982 ;;
7983 *)
7984 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7985 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7986 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7987 ac_status=$?
7988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7989 test $ac_status = 0; }
7990 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7991 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7992 ac_status=$?
7993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7994 test $ac_status = 0; }
7995 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7996 fi
7997 ;;
nicolas6237c462010-10-05 06:11:49 +00007998esac
cristy3ed852e2009-09-05 21:47:34 +00007999
cristy016e8b82012-12-26 12:11:06 +00008000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8001$as_echo_n "checking for C compiler vendor... " >&6; }
8002if ${ax_cv_c_compiler_vendor+:} false; then :
8003 $as_echo_n "(cached) " >&6
8004else
8005 # note: don't check for gcc first since some other compilers define __GNUC__
8006 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8007 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8008 pathscale: __PATHCC__,__PATHSCALE__
8009 clang: __clang__
8010 gnu: __GNUC__
8011 sun: __SUNPRO_C,__SUNPRO_CC
8012 hp: __HP_cc,__HP_aCC
8013 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8014 borland: __BORLANDC__,__TURBOC__
8015 comeau: __COMO__
8016 cray: _CRAYC
8017 kai: __KCC
8018 lcc: __LCC__
8019 sgi: __sgi,sgi
8020 microsoft: _MSC_VER
8021 metrowerks: __MWERKS__
8022 watcom: __WATCOMC__
8023 portland: __PGI
8024 unknown: UNKNOWN"
8025 for ventest in $vendors; do
8026 case $ventest in
8027 *:) vendor=$ventest; continue ;;
8028 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8029 esac
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031/* end confdefs.h. */
8032
8033int
8034main ()
8035{
8036
8037 #if !($vencpp)
8038 thisisanerror;
8039 #endif
8040
8041 ;
8042 return 0;
8043}
8044_ACEOF
8045if ac_fn_c_try_compile "$LINENO"; then :
8046 break
8047fi
8048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8049 done
8050 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8051
8052fi
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8054$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8055
cristya0b81c32010-01-22 02:54:33 +00008056
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8058$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8059set x ${MAKE-make}
8060ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008061if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008062 $as_echo_n "(cached) " >&6
8063else
8064 cat >conftest.make <<\_ACEOF
8065SHELL = /bin/sh
8066all:
8067 @echo '@@@%%%=$(MAKE)=@@@%%%'
8068_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008069# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008070case `${MAKE-make} -f conftest.make 2>/dev/null` in
8071 *@@@%%%=?*=@@@%%%*)
8072 eval ac_cv_prog_make_${ac_make}_set=yes;;
8073 *)
8074 eval ac_cv_prog_make_${ac_make}_set=no;;
8075esac
8076rm -f conftest.make
8077fi
8078if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8080$as_echo "yes" >&6; }
8081 SET_MAKE=
8082else
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084$as_echo "no" >&6; }
8085 SET_MAKE="MAKE=${MAKE-make}"
8086fi
8087
cristy8b350f62009-11-15 23:12:43 +00008088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008089$as_echo_n "checking whether ln -s works... " >&6; }
8090LN_S=$as_ln_s
8091if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008093$as_echo "yes" >&6; }
8094else
cristy8b350f62009-11-15 23:12:43 +00008095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008096$as_echo "no, using $LN_S" >&6; }
8097fi
8098
cristy8d0ff762013-03-10 20:33:28 +00008099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8100$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8101if ${ac_cv_path_SED+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103else
8104 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8105 for ac_i in 1 2 3 4 5 6 7; do
8106 ac_script="$ac_script$as_nl$ac_script"
8107 done
8108 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8109 { ac_script=; unset ac_script;}
8110 if test -z "$SED"; then
8111 ac_path_SED_found=false
8112 # Loop through the user's path and test for each of PROGNAME-LIST
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114for as_dir in $PATH
8115do
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
8118 for ac_prog in sed gsed; do
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8121 as_fn_executable_p "$ac_path_SED" || continue
8122# Check for GNU ac_path_SED and select it if it is found.
8123 # Check for GNU $ac_path_SED
8124case `"$ac_path_SED" --version 2>&1` in
8125*GNU*)
8126 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8127*)
8128 ac_count=0
8129 $as_echo_n 0123456789 >"conftest.in"
8130 while :
8131 do
8132 cat "conftest.in" "conftest.in" >"conftest.tmp"
8133 mv "conftest.tmp" "conftest.in"
8134 cp "conftest.in" "conftest.nl"
8135 $as_echo '' >> "conftest.nl"
8136 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8137 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8138 as_fn_arith $ac_count + 1 && ac_count=$as_val
8139 if test $ac_count -gt ${ac_path_SED_max-0}; then
8140 # Best one so far, save it but keep looking for a better one
8141 ac_cv_path_SED="$ac_path_SED"
8142 ac_path_SED_max=$ac_count
8143 fi
8144 # 10*(2^10) chars as input seems more than enough
8145 test $ac_count -gt 10 && break
8146 done
8147 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8148esac
8149
8150 $ac_path_SED_found && break 3
8151 done
8152 done
8153 done
8154IFS=$as_save_IFS
8155 if test -z "$ac_cv_path_SED"; then
8156 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8157 fi
8158else
8159 ac_cv_path_SED=$SED
8160fi
8161
8162fi
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8164$as_echo "$ac_cv_path_SED" >&6; }
8165 SED="$ac_cv_path_SED"
8166 rm -f conftest.sed
8167
cristybc556452012-08-17 19:44:03 +00008168for ac_prog in gawk mawk nawk awk
8169do
8170 # Extract the first word of "$ac_prog", so it can be a program name with args.
8171set dummy $ac_prog; ac_word=$2
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173$as_echo_n "checking for $ac_word... " >&6; }
8174if ${ac_cv_prog_AWK+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176else
8177 if test -n "$AWK"; then
8178 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8179else
8180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181for as_dir in $PATH
8182do
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8187 ac_cv_prog_AWK="$ac_prog"
8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8190 fi
8191done
8192 done
8193IFS=$as_save_IFS
8194
8195fi
8196fi
8197AWK=$ac_cv_prog_AWK
8198if test -n "$AWK"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8200$as_echo "$AWK" >&6; }
8201else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203$as_echo "no" >&6; }
8204fi
8205
8206
8207 test -n "$AWK" && break
8208done
8209
cristy73bd4a52010-10-05 11:24:23 +00008210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8211$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8212
8213# Check whether --with-dmalloc was given.
8214if test "${with_dmalloc+set}" = set; then :
8215 withval=$with_dmalloc; if test "$withval" = yes; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8217$as_echo "yes" >&6; }
8218
8219$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8220
8221 LIBS="$LIBS -ldmalloc"
8222 LDFLAGS="$LDFLAGS -g"
8223else
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225$as_echo "no" >&6; }
8226fi
8227else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229$as_echo "no" >&6; }
8230fi
8231
8232
8233
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8235$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008236if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008237 $as_echo_n "(cached) " >&6
8238else
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240/* end confdefs.h. */
8241#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008242 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008243 static void
8244 foo(void) {
8245 exit(1);
8246 }
8247
8248int
8249main ()
8250{
8251
8252 ;
8253 return 0;
8254}
8255_ACEOF
8256if ac_fn_c_try_compile "$LINENO"; then :
8257 ax_cv___attribute__=yes
8258else
8259 ax_cv___attribute__=no
8260
8261fi
8262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263
8264fi
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8266$as_echo "$ax_cv___attribute__" >&6; }
8267 if test "$ax_cv___attribute__" = "yes"; then
8268
8269$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8270
8271 fi
8272
8273
8274
cristy37110d62012-03-01 18:38:20 +00008275
8276
8277# Check whether --with-gcc-arch was given.
8278if test "${with_gcc_arch+set}" = set; then :
8279 withval=$with_gcc_arch; ax_gcc_arch=$withval
8280else
cristya32d1812012-03-02 19:24:21 +00008281 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008282fi
8283
8284
8285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8286$as_echo_n "checking for gcc architecture flag... " >&6; }
8287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8288$as_echo "" >&6; }
8289if ${ax_cv_gcc_archflag+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291else
8292
8293ax_cv_gcc_archflag="unknown"
8294
8295if test "$GCC" = yes; then
8296
8297if test "x$ax_gcc_arch" = xyes; then
8298ax_gcc_arch=""
8299if test "$cross_compiling" = no; then
8300case $host_cpu in
8301 i[3456]86*|x86_64*) # use cpuid codes
8302
8303ac_ext=c
8304ac_cpp='$CPP $CPPFLAGS'
8305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8307ac_compiler_gnu=$ac_cv_c_compiler_gnu
8308
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8310$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8311if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313else
8314 if test "$cross_compiling" = yes; then :
8315 ax_cv_gcc_x86_cpuid_0=unknown
8316else
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318/* end confdefs.h. */
8319#include <stdio.h>
8320int
8321main ()
8322{
8323
8324 int op = 0, eax, ebx, ecx, edx;
8325 FILE *f;
8326 __asm__("cpuid"
8327 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8328 : "a" (op));
8329 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8330 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8331 fclose(f);
8332 return 0;
8333
8334 ;
8335 return 0;
8336}
8337_ACEOF
8338if ac_fn_c_try_run "$LINENO"; then :
8339 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8340else
8341 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8342fi
8343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8344 conftest.$ac_objext conftest.beam conftest.$ac_ext
8345fi
8346
8347fi
8348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8349$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8350ac_ext=c
8351ac_cpp='$CPP $CPPFLAGS'
8352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8354ac_compiler_gnu=$ac_cv_c_compiler_gnu
8355
8356
8357
8358ac_ext=c
8359ac_cpp='$CPP $CPPFLAGS'
8360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8362ac_compiler_gnu=$ac_cv_c_compiler_gnu
8363
8364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8365$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8366if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8367 $as_echo_n "(cached) " >&6
8368else
8369 if test "$cross_compiling" = yes; then :
8370 ax_cv_gcc_x86_cpuid_1=unknown
8371else
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373/* end confdefs.h. */
8374#include <stdio.h>
8375int
8376main ()
8377{
8378
8379 int op = 1, eax, ebx, ecx, edx;
8380 FILE *f;
8381 __asm__("cpuid"
8382 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8383 : "a" (op));
8384 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8385 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8386 fclose(f);
8387 return 0;
8388
8389 ;
8390 return 0;
8391}
8392_ACEOF
8393if ac_fn_c_try_run "$LINENO"; then :
8394 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8395else
8396 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8397fi
8398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8399 conftest.$ac_objext conftest.beam conftest.$ac_ext
8400fi
8401
8402fi
8403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8404$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8405ac_ext=c
8406ac_cpp='$CPP $CPPFLAGS'
8407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8409ac_compiler_gnu=$ac_cv_c_compiler_gnu
8410
8411
8412 case $ax_cv_gcc_x86_cpuid_0 in
8413 *:756e6547:*:*) # Intel
8414 case $ax_cv_gcc_x86_cpuid_1 in
8415 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8416 *5??:*:*:*) ax_gcc_arch=pentium ;;
8417 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8418 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8419 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8420 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8421 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8422 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8423 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8424 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8425 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8426 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8427 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8428 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8429 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8430 case $host_cpu in
8431 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8432 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8433 esac ;;
8434 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8435 esac ;;
8436 *:68747541:*:*) # AMD
8437 case $ax_cv_gcc_x86_cpuid_1 in
8438 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8439 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8440 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8441 *60?:*:*:*) ax_gcc_arch=k7 ;;
8442 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8443 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8444 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8445 *6[68a]?:*:*:*)
8446
8447ac_ext=c
8448ac_cpp='$CPP $CPPFLAGS'
8449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8451ac_compiler_gnu=$ac_cv_c_compiler_gnu
8452
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8454$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8455if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457else
8458 if test "$cross_compiling" = yes; then :
8459 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8460else
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462/* end confdefs.h. */
8463#include <stdio.h>
8464int
8465main ()
8466{
8467
8468 int op = 0x80000006, eax, ebx, ecx, edx;
8469 FILE *f;
8470 __asm__("cpuid"
8471 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8472 : "a" (op));
8473 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8474 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8475 fclose(f);
8476 return 0;
8477
8478 ;
8479 return 0;
8480}
8481_ACEOF
8482if ac_fn_c_try_run "$LINENO"; then :
8483 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8484else
8485 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8486fi
8487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8488 conftest.$ac_objext conftest.beam conftest.$ac_ext
8489fi
8490
8491fi
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8493$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8494ac_ext=c
8495ac_cpp='$CPP $CPPFLAGS'
8496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8498ac_compiler_gnu=$ac_cv_c_compiler_gnu
8499
8500 # L2 cache size
8501 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8502 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8503 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8504 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8505 esac ;;
8506 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8507 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8508 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8509 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8510 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8511 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8512 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8513 esac ;;
8514 *:746e6543:*:*) # IDT
8515 case $ax_cv_gcc_x86_cpuid_1 in
8516 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8517 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8518 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8519 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8520 esac ;;
8521 esac
8522 if test x"$ax_gcc_arch" = x; then # fallback
8523 case $host_cpu in
8524 i586*) ax_gcc_arch=pentium ;;
8525 i686*) ax_gcc_arch=pentiumpro ;;
8526 esac
8527 fi
8528 ;;
8529
8530 sparc*)
8531 # Extract the first word of "prtdiag", so it can be a program name with args.
8532set dummy prtdiag; ac_word=$2
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534$as_echo_n "checking for $ac_word... " >&6; }
8535if ${ac_cv_path_PRTDIAG+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537else
8538 case $PRTDIAG in
8539 [\\/]* | ?:[\\/]*)
8540 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8541 ;;
8542 *)
8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8545for as_dir in $as_dummy
8546do
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008551 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 break 2
8554 fi
8555done
8556 done
8557IFS=$as_save_IFS
8558
8559 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8560 ;;
8561esac
8562fi
8563PRTDIAG=$ac_cv_path_PRTDIAG
8564if test -n "$PRTDIAG"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8566$as_echo "$PRTDIAG" >&6; }
8567else
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569$as_echo "no" >&6; }
8570fi
8571
8572
8573 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`
8574 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8575 case $cputype in
8576 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8577 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8578 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8579 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8580 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8581 *cypress*) ax_gcc_arch=cypress ;;
8582 esac ;;
8583
8584 alphaev5) ax_gcc_arch=ev5 ;;
8585 alphaev56) ax_gcc_arch=ev56 ;;
8586 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8587 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8588 alphaev6) ax_gcc_arch=ev6 ;;
8589 alphaev67) ax_gcc_arch=ev67 ;;
8590 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8591 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8592 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8593 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8594
8595 powerpc*)
8596 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`
8597 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8598 case $cputype in
8599 *750*) ax_gcc_arch="750 G3" ;;
8600 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8601 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8602 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8603 *970*) ax_gcc_arch="970 G5 power4";;
8604 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8605 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8606 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8607 *) ax_gcc_arch=$cputype ;;
8608 esac
8609 ax_gcc_arch="$ax_gcc_arch powerpc"
8610 ;;
8611esac
8612fi # not cross-compiling
8613fi # guess arch
8614
8615if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8616for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008617 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008618 flags="-mtune=$arch"
8619 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8620 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8621 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8622 else
8623 flags="-march=$arch -mcpu=$arch -m$arch"
8624 fi
8625 for flag in $flags; do
8626 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8628$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8629if eval \${$as_CACHEVAR+:} false; then :
8630 $as_echo_n "(cached) " >&6
8631else
8632
8633 ax_check_save_flags=$CFLAGS
8634 CFLAGS="$CFLAGS $flag"
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636/* end confdefs.h. */
8637
8638int
8639main ()
8640{
8641
8642 ;
8643 return 0;
8644}
8645_ACEOF
8646if ac_fn_c_try_compile "$LINENO"; then :
8647 eval "$as_CACHEVAR=yes"
8648else
8649 eval "$as_CACHEVAR=no"
8650fi
8651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 CFLAGS=$ax_check_save_flags
8653fi
8654eval ac_res=\$$as_CACHEVAR
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8656$as_echo "$ac_res" >&6; }
8657if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8658 ax_cv_gcc_archflag=$flag; break
8659else
8660 :
8661fi
8662
8663 done
8664 test "x$ax_cv_gcc_archflag" = xunknown || break
8665done
8666fi
8667
8668fi # $GCC=yes
8669
8670fi
8671
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8673$as_echo_n "checking for gcc architecture flag... " >&6; }
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8675$as_echo "$ax_cv_gcc_archflag" >&6; }
8676if test "x$ax_cv_gcc_archflag" = xunknown; then
8677 :
8678else
8679 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8680fi
8681
8682
8683
cristy73bd4a52010-10-05 11:24:23 +00008684if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8685 if test -n "$ac_tool_prefix"; then
8686 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8687set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008690if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008691 $as_echo_n "(cached) " >&6
8692else
8693 case $PKG_CONFIG in
8694 [\\/]* | ?:[\\/]*)
8695 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8696 ;;
8697 *)
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699for as_dir in $PATH
8700do
8701 IFS=$as_save_IFS
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008705 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707 break 2
8708 fi
8709done
8710 done
8711IFS=$as_save_IFS
8712
8713 ;;
8714esac
8715fi
8716PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8717if test -n "$PKG_CONFIG"; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8719$as_echo "$PKG_CONFIG" >&6; }
8720else
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722$as_echo "no" >&6; }
8723fi
8724
8725
8726fi
8727if test -z "$ac_cv_path_PKG_CONFIG"; then
8728 ac_pt_PKG_CONFIG=$PKG_CONFIG
8729 # Extract the first word of "pkg-config", so it can be a program name with args.
8730set dummy pkg-config; ac_word=$2
8731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008733if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008734 $as_echo_n "(cached) " >&6
8735else
8736 case $ac_pt_PKG_CONFIG in
8737 [\\/]* | ?:[\\/]*)
8738 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8739 ;;
8740 *)
8741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742for as_dir in $PATH
8743do
8744 IFS=$as_save_IFS
8745 test -z "$as_dir" && as_dir=.
8746 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008748 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8750 break 2
8751 fi
8752done
8753 done
8754IFS=$as_save_IFS
8755
8756 ;;
8757esac
8758fi
8759ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8760if test -n "$ac_pt_PKG_CONFIG"; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8762$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8763else
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765$as_echo "no" >&6; }
8766fi
8767
8768 if test "x$ac_pt_PKG_CONFIG" = x; then
8769 PKG_CONFIG=""
8770 else
8771 case $cross_compiling:$ac_tool_warned in
8772yes:)
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8775ac_tool_warned=yes ;;
8776esac
8777 PKG_CONFIG=$ac_pt_PKG_CONFIG
8778 fi
8779else
8780 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8781fi
8782
8783fi
8784if test -n "$PKG_CONFIG"; then
8785 _pkg_min_version=0.9.0
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8787$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8788 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8790$as_echo "yes" >&6; }
8791 else
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793$as_echo "no" >&6; }
8794 PKG_CONFIG=""
8795 fi
8796
8797fi
cristy3ed852e2009-09-05 21:47:34 +00008798
cristy9b86f202012-11-28 21:55:35 +00008799# Check for linker script support
8800
8801 # Check whether --enable-ld-version-script was given.
8802if test "${enable_ld_version_script+set}" = set; then :
8803 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8804fi
8805
8806 if test -z "$have_ld_version_script"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8808$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8809 save_LDFLAGS="$LDFLAGS"
8810 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8811 cat > conftest.map <<EOF
8812foo
8813EOF
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815/* end confdefs.h. */
8816
8817int
8818main ()
8819{
8820
8821 ;
8822 return 0;
8823}
8824_ACEOF
8825if ac_fn_c_try_link "$LINENO"; then :
8826 accepts_syntax_errors=yes
8827else
8828 accepts_syntax_errors=no
8829fi
8830rm -f core conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
8832 if test "$accepts_syntax_errors" = no; then
8833 cat > conftest.map <<EOF
8834VERS_1 {
8835 global: sym;
8836};
8837
8838VERS_2 {
8839 global: sym;
8840} VERS_1;
8841EOF
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843/* end confdefs.h. */
8844
8845int
8846main ()
8847{
8848
8849 ;
8850 return 0;
8851}
8852_ACEOF
8853if ac_fn_c_try_link "$LINENO"; then :
8854 have_ld_version_script=yes
8855else
8856 have_ld_version_script=no
8857fi
8858rm -f core conftest.err conftest.$ac_objext \
8859 conftest$ac_exeext conftest.$ac_ext
8860 else
8861 have_ld_version_script=no
8862 fi
8863 rm -f conftest.map
8864 LDFLAGS="$save_LDFLAGS"
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8866$as_echo "$have_ld_version_script" >&6; }
8867 fi
8868 if test "$have_ld_version_script" = "yes"; then
8869 HAVE_LD_VERSION_SCRIPT_TRUE=
8870 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8871else
8872 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8873 HAVE_LD_VERSION_SCRIPT_FALSE=
8874fi
8875
8876
8877
cristy3ed852e2009-09-05 21:47:34 +00008878#
cristy3ed852e2009-09-05 21:47:34 +00008879# Enable run-time checking.
8880#
8881# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008882if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008883 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8884else
8885 enable_bounds_checking='no'
8886fi
8887
8888
8889if test "$enable_bounds_checking" = yes; then
8890
cristy8b350f62009-11-15 23:12:43 +00008891$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008892
8893fi
8894
8895#
8896# Tests for Windows
8897#
8898
8899
8900
8901GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008902native_win32_build='no'
8903cygwin_build='no'
8904case "${host_os}" in
8905 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008906 cygwin_build='yes'
8907 GDI32_LIBS='-lgdi32'
8908 ;;
8909 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008910 native_win32_build='yes'
8911 GDI32_LIBS='-lgdi32'
8912 ;;
8913esac
8914if test "${GDI32_LIBS}x" != 'x'; then
8915
cristy8b350f62009-11-15 23:12:43 +00008916$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008917
8918fi
8919
cristy73bd4a52010-10-05 11:24:23 +00008920 if test "${GDI32_LIBS}x" != 'x' ; then
8921 WINGDI32_DELEGATE_TRUE=
8922 WINGDI32_DELEGATE_FALSE='#'
8923else
8924 WINGDI32_DELEGATE_TRUE='#'
8925 WINGDI32_DELEGATE_FALSE=
8926fi
8927
8928 if test "${native_win32_build}" = 'yes' ; then
8929 WIN32_NATIVE_BUILD_TRUE=
8930 WIN32_NATIVE_BUILD_FALSE='#'
8931else
8932 WIN32_NATIVE_BUILD_TRUE='#'
8933 WIN32_NATIVE_BUILD_FALSE=
8934fi
8935
8936 if test "${cygwin_build}" = 'yes' ; then
8937 CYGWIN_BUILD_TRUE=
8938 CYGWIN_BUILD_FALSE='#'
8939else
8940 CYGWIN_BUILD_TRUE='#'
8941 CYGWIN_BUILD_FALSE=
8942fi
8943
8944 if test "x${CC}" = 'xcl.exe' ; then
8945 USING_CL_TRUE=
8946 USING_CL_FALSE='#'
8947else
8948 USING_CL_TRUE='#'
8949 USING_CL_FALSE=
8950fi
8951
cristy3ed852e2009-09-05 21:47:34 +00008952
8953WinPathScript="${srcdirfull}/winpath.sh"
8954
8955
8956#
8957# Compiler flags tweaks
8958#
8959if test "${GCC}" != "yes"; then
8960 case "${host}" in
8961 *-*-hpux* )
8962 # aCC: HP ANSI C++ B3910B A.03.34
8963 CFLAGS="${CFLAGS} -Wp,-H30000"
8964 if test -n "${CXXFLAGS}"; then
8965 CXXFLAGS='-AA'
8966 else
8967 CXXFLAGS="${CXXFLAGS} -AA"
8968 fi
8969 ;;
8970 *-dec-osf5.* )
8971 # Compaq alphaev68-dec-osf5.1 compiler
8972 if test -n "${CXXFLAGS}"; then
8973 CXXFLAGS='-std strict_ansi -noimplicit_include'
8974 else
8975 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8976 fi
8977 esac
8978fi
8979
8980# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008982$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008983if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008984 $as_echo_n "(cached) " >&6
8985else
8986
8987im_cv_ld_lazyload='none'
8988case "${host}" in
8989 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8990 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8991 im_cv_ld_lazyload='-Wl,-zlazyload'
8992 fi
8993 ;;
8994esac
8995
8996fi
cristy8b350f62009-11-15 23:12:43 +00008997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008998$as_echo "$im_cv_ld_lazyload" >&6; }
8999if test "${im_cv_ld_lazyload}" != 'none' ; then
9000 if test -z "${LDFLAGS}" ; then
9001 LDFLAGS="${im_cv_ld_lazyload}"
9002 else
9003 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9004 fi
9005fi
9006
9007case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009008 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009009 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009010 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009011if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009012 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9013else
9014 build_osxuniversal=no
9015fi
9016
9017
cristyc37574e2013-02-16 01:04:55 +00009018 if test "${build_osxuniversal}" != no ; then
9019 if test "$enable_dependency_tracking" != no ; then
9020 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009021Please re-run configure with these options:
9022 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009023 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009024 fi
9025 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9026 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9027 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009028 fi
9029 ;;
9030esac
9031
cristy0151ae12011-10-28 16:32:29 +00009032#
9033# ARCH specific include directory
9034#
9035
cristy670aa3c2011-11-03 00:54:00 +00009036# Check whether --with-includearch-dir was given.
9037if test "${with_includearch_dir+set}" = set; then :
9038 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009039else
cristy670aa3c2011-11-03 00:54:00 +00009040 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009041fi
9042
9043
cristyd286fd72013-02-24 19:25:33 +00009044eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009045
cristy0151ae12011-10-28 16:32:29 +00009046
9047#
9048# ARCH specific configuration directory
9049#
9050
cristy670aa3c2011-11-03 00:54:00 +00009051# Check whether --with-sharearch-dir was given.
9052if test "${with_sharearch_dir+set}" = set; then :
9053 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009054else
cristy408ebcd2011-11-14 01:36:57 +00009055 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009056fi
9057
9058
cristy670aa3c2011-11-03 00:54:00 +00009059eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009060
cristy0151ae12011-10-28 16:32:29 +00009061
cristy2ec87cc2013-02-18 17:46:50 +00009062# Path to the pkgconfig folder
9063
9064# Check whether --with-pkgconfigdir was given.
9065if test "${with_pkgconfigdir+set}" = set; then :
9066 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9067else
9068 pkgconfigdir='${libdir}/pkgconfig'
9069fi
9070
9071
9072
cristy0151ae12011-10-28 16:32:29 +00009073#
cristy3ed852e2009-09-05 21:47:34 +00009074# Enable support for threads
9075
9076# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009077if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009078 withval=$with_threads; with_threads=$withval
9079else
9080 with_threads='yes'
9081fi
9082
9083
9084have_threads=no
9085if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009086
9087
cristy73bd4a52010-10-05 11:24:23 +00009088ac_ext=c
9089ac_cpp='$CPP $CPPFLAGS'
9090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9092ac_compiler_gnu=$ac_cv_c_compiler_gnu
9093
9094ax_pthread_ok=no
9095
9096# We used to check for pthread.h first, but this fails if pthread.h
9097# requires special compiler flags (e.g. on True64 or Sequent).
9098# It gets checked for in the link test anyway.
9099
9100# First of all, check if the user has set any of the PTHREAD_LIBS,
9101# etcetera environment variables, and if threads linking works using
9102# them:
9103if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9104 save_CFLAGS="$CFLAGS"
9105 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9106 save_LIBS="$LIBS"
9107 LIBS="$PTHREAD_LIBS $LIBS"
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9109$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111/* end confdefs.h. */
9112
9113/* Override any GCC internal prototype to avoid an error.
9114 Use char because int might match the return type of a GCC
9115 builtin and then its argument prototype would still apply. */
9116#ifdef __cplusplus
9117extern "C"
9118#endif
9119char pthread_join ();
9120int
9121main ()
9122{
9123return pthread_join ();
9124 ;
9125 return 0;
9126}
9127_ACEOF
9128if ac_fn_c_try_link "$LINENO"; then :
9129 ax_pthread_ok=yes
9130fi
9131rm -f core conftest.err conftest.$ac_objext \
9132 conftest$ac_exeext conftest.$ac_ext
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9134$as_echo "$ax_pthread_ok" >&6; }
9135 if test x"$ax_pthread_ok" = xno; then
9136 PTHREAD_LIBS=""
9137 PTHREAD_CFLAGS=""
9138 fi
9139 LIBS="$save_LIBS"
9140 CFLAGS="$save_CFLAGS"
9141fi
9142
9143# We must check for the threads library under a number of different
9144# names; the ordering is very important because some systems
9145# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9146# libraries is broken (non-POSIX).
9147
9148# Create a list of thread flags to try. Items starting with a "-" are
9149# C compiler flags, and other items are library names, except for "none"
9150# which indicates that we try without any flags at all, and "pthread-config"
9151# which is a program returning the flags for the Pth emulation library.
9152
cristy2ec87cc2013-02-18 17:46:50 +00009153ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009154
9155# The ordering *is* (sometimes) important. Some notes on the
9156# individual items follow:
9157
9158# pthreads: AIX (must check this before -lpthread)
9159# none: in case threads are in libc; should be tried before -Kthread and
9160# other compiler flags to prevent continual compiler warnings
9161# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9162# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9163# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9164# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9165# -pthreads: Solaris/gcc
9166# -mthreads: Mingw32/gcc, Lynx/gcc
9167# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9168# doesn't hurt to check since this sometimes defines pthreads too;
9169# also defines -D_REENTRANT)
9170# ... -mt is also the pthreads flag for HP/aCC
9171# pthread: Linux, etcetera
9172# --thread-safe: KAI C++
9173# pthread-config: use pthread-config program (for GNU Pth library)
9174
cristy2ec87cc2013-02-18 17:46:50 +00009175case ${host_os} in
9176 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009177
9178 # On Solaris (at least, for some versions), libc contains stubbed
9179 # (non-functional) versions of the pthreads routines, so link-based
9180 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9181 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9182 # a function called by this macro, so we could check for that, but
9183 # who knows whether they'll stub that too in a future libc.) So,
9184 # we'll just look for -pthreads and -lpthread first:
9185
9186 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9187 ;;
9188
cristy2ec87cc2013-02-18 17:46:50 +00009189 darwin*)
cristya316db12011-10-24 00:49:45 +00009190 ax_pthread_flags="-pthread $ax_pthread_flags"
9191 ;;
cristy73bd4a52010-10-05 11:24:23 +00009192esac
9193
9194if test x"$ax_pthread_ok" = xno; then
9195for flag in $ax_pthread_flags; do
9196
9197 case $flag in
9198 none)
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9200$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9201 ;;
9202
9203 -*)
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9205$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9206 PTHREAD_CFLAGS="$flag"
9207 ;;
9208
cristya316db12011-10-24 00:49:45 +00009209 pthread-config)
9210 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009211set dummy pthread-config; ac_word=$2
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009214if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009215 $as_echo_n "(cached) " >&6
9216else
9217 if test -n "$ax_pthread_config"; then
9218 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9219else
9220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221for as_dir in $PATH
9222do
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009227 ac_cv_prog_ax_pthread_config="yes"
9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9230 fi
9231done
9232 done
9233IFS=$as_save_IFS
9234
9235 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9236fi
9237fi
9238ax_pthread_config=$ac_cv_prog_ax_pthread_config
9239if test -n "$ax_pthread_config"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9241$as_echo "$ax_pthread_config" >&6; }
9242else
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244$as_echo "no" >&6; }
9245fi
9246
9247
cristya316db12011-10-24 00:49:45 +00009248 if test x"$ax_pthread_config" = xno; then continue; fi
9249 PTHREAD_CFLAGS="`pthread-config --cflags`"
9250 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9251 ;;
cristy73bd4a52010-10-05 11:24:23 +00009252
9253 *)
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9255$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9256 PTHREAD_LIBS="-l$flag"
9257 ;;
9258 esac
9259
9260 save_LIBS="$LIBS"
9261 save_CFLAGS="$CFLAGS"
9262 LIBS="$PTHREAD_LIBS $LIBS"
9263 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9264
9265 # Check for various functions. We must include pthread.h,
9266 # since some functions may be macros. (On the Sequent, we
9267 # need a special flag -Kthread to make this header compile.)
9268 # We check for pthread_join because it is in -lpthread on IRIX
9269 # while pthread_create is in libc. We check for pthread_attr_init
9270 # due to DEC craziness with -lpthreads. We check for
9271 # pthread_cleanup_push because it is one of the few pthread
9272 # functions on Solaris that doesn't have a non-functional libc stub.
9273 # We try pthread_create on general principles.
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275/* end confdefs.h. */
9276#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009277 static void routine(void *a) { a = 0; }
9278 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009279int
9280main ()
9281{
9282pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009283 pthread_create(&th, 0, start_routine, 0);
9284 pthread_join(th, 0);
9285 pthread_attr_init(&attr);
9286 pthread_cleanup_push(routine, 0);
9287 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009288 ;
9289 return 0;
9290}
9291_ACEOF
9292if ac_fn_c_try_link "$LINENO"; then :
9293 ax_pthread_ok=yes
9294fi
9295rm -f core conftest.err conftest.$ac_objext \
9296 conftest$ac_exeext conftest.$ac_ext
9297
9298 LIBS="$save_LIBS"
9299 CFLAGS="$save_CFLAGS"
9300
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9302$as_echo "$ax_pthread_ok" >&6; }
9303 if test "x$ax_pthread_ok" = xyes; then
9304 break;
9305 fi
9306
9307 PTHREAD_LIBS=""
9308 PTHREAD_CFLAGS=""
9309done
9310fi
9311
9312# Various other checks:
9313if test "x$ax_pthread_ok" = xyes; then
9314 save_LIBS="$LIBS"
9315 LIBS="$PTHREAD_LIBS $LIBS"
9316 save_CFLAGS="$CFLAGS"
9317 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9318
9319 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009321$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009322 attr_name=unknown
9323 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009325/* end confdefs.h. */
9326#include <pthread.h>
9327int
9328main ()
9329{
cristya316db12011-10-24 00:49:45 +00009330int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009331 ;
9332 return 0;
9333}
9334_ACEOF
9335if ac_fn_c_try_link "$LINENO"; then :
9336 attr_name=$attr; break
9337fi
9338rm -f core conftest.err conftest.$ac_objext \
9339 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009340 done
cristy73bd4a52010-10-05 11:24:23 +00009341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9342$as_echo "$attr_name" >&6; }
9343 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9344
9345cat >>confdefs.h <<_ACEOF
9346#define PTHREAD_CREATE_JOINABLE $attr_name
9347_ACEOF
9348
9349 fi
9350
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9352$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9353 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009354 case ${host_os} in
9355 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9356 osf* | hpux*) flag="-D_REENTRANT";;
9357 solaris*)
9358 if test "$GCC" = "yes"; then
9359 flag="-D_REENTRANT"
9360 else
9361 flag="-mt -D_REENTRANT"
9362 fi
9363 ;;
cristy73bd4a52010-10-05 11:24:23 +00009364 esac
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9366$as_echo "${flag}" >&6; }
9367 if test "x$flag" != xno; then
9368 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9369 fi
9370
cristya316db12011-10-24 00:49:45 +00009371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9372$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9373if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9374 $as_echo_n "(cached) " >&6
9375else
9376
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378/* end confdefs.h. */
9379
9380 #include <pthread.h>
9381int
9382main ()
9383{
9384int i = PTHREAD_PRIO_INHERIT;
9385 ;
9386 return 0;
9387}
9388_ACEOF
9389if ac_fn_c_try_link "$LINENO"; then :
9390 ax_cv_PTHREAD_PRIO_INHERIT=yes
9391else
9392 ax_cv_PTHREAD_PRIO_INHERIT=no
9393fi
9394rm -f core conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
9396
9397fi
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9399$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9400 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9401
9402$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9403
9404fi
9405
cristy73bd4a52010-10-05 11:24:23 +00009406 LIBS="$save_LIBS"
9407 CFLAGS="$save_CFLAGS"
9408
9409 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009410 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009411 for ac_prog in xlc_r cc_r
9412do
9413 # Extract the first word of "$ac_prog", so it can be a program name with args.
9414set dummy $ac_prog; ac_word=$2
9415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9416$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009417if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009418 $as_echo_n "(cached) " >&6
9419else
9420 if test -n "$PTHREAD_CC"; then
9421 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9422else
9423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424for as_dir in $PATH
9425do
9426 IFS=$as_save_IFS
9427 test -z "$as_dir" && as_dir=.
9428 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009430 ac_cv_prog_PTHREAD_CC="$ac_prog"
9431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9432 break 2
9433 fi
9434done
9435 done
9436IFS=$as_save_IFS
9437
9438fi
9439fi
9440PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9441if test -n "$PTHREAD_CC"; then
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9443$as_echo "$PTHREAD_CC" >&6; }
9444else
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9446$as_echo "no" >&6; }
9447fi
9448
9449
9450 test -n "$PTHREAD_CC" && break
9451done
9452test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9453
9454 else
9455 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009456 fi
cristy73bd4a52010-10-05 11:24:23 +00009457else
9458 PTHREAD_CC="$CC"
9459fi
9460
9461
9462
9463
9464
9465# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9466if test x"$ax_pthread_ok" = xyes; then
9467
9468$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9469
9470 :
9471else
9472 ax_pthread_ok=no
9473
9474fi
9475ac_ext=c
9476ac_cpp='$CPP $CPPFLAGS'
9477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9479ac_compiler_gnu=$ac_cv_c_compiler_gnu
9480
9481
cristy7acf8fb2010-09-23 19:58:53 +00009482 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009483 have_threads=yes
9484 DEF_THREAD="$PTHREAD_CFLAGS"
9485 CFLAGS="$CFLAGS $DEF_THREAD"
9486 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9487 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009488 { $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 +00009489$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9490 CC="$PTHREAD_CC"
9491 fi
cristy55bf91c2010-09-24 00:29:41 +00009492
9493$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9494
cristy3ed852e2009-09-05 21:47:34 +00009495 fi
9496fi
9497
9498# Enable support for OpenMP
9499if test "$have_threads" != 'yes'; then
9500 ac_cv_prog_c_openmp=unsupported
9501fi
9502
9503 OPENMP_CFLAGS=
9504 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009505if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009506 enableval=$enable_openmp;
9507fi
9508
9509 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009511$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009512if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009513 $as_echo_n "(cached) " >&6
9514else
cristy8b350f62009-11-15 23:12:43 +00009515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009517
9518#ifndef _OPENMP
9519 choke me
9520#endif
9521#include <omp.h>
9522int main () { return omp_get_num_threads (); }
9523
9524_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009525if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009526 ac_cv_prog_c_openmp='none needed'
9527else
cristy8b350f62009-11-15 23:12:43 +00009528 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009529 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9530 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009531 ac_save_CFLAGS=$CFLAGS
9532 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009535
9536#ifndef _OPENMP
9537 choke me
9538#endif
9539#include <omp.h>
9540int main () { return omp_get_num_threads (); }
9541
9542_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009543if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009544 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009545fi
cristy8b350f62009-11-15 23:12:43 +00009546rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009548 CFLAGS=$ac_save_CFLAGS
9549 if test "$ac_cv_prog_c_openmp" != unsupported; then
9550 break
9551 fi
9552 done
9553fi
cristy8b350f62009-11-15 23:12:43 +00009554rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009556fi
cristy8b350f62009-11-15 23:12:43 +00009557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009558$as_echo "$ac_cv_prog_c_openmp" >&6; }
9559 case $ac_cv_prog_c_openmp in #(
9560 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009561 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009562 *)
cristy8b350f62009-11-15 23:12:43 +00009563 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009564 esac
9565 fi
9566
9567
9568CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9569MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9570
cristy391f1ce2010-09-09 17:23:28 +00009571if test "$enable_openmp" != no; then
9572 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9573 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9574 fi
9575fi
cristy3ed852e2009-09-05 21:47:34 +00009576
cristy736173a2009-09-20 21:18:22 +00009577# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009578
9579
cristy73bd4a52010-10-05 11:24:23 +00009580ac_ext=c
9581ac_cpp='$CPP $CPPFLAGS'
9582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9584ac_compiler_gnu=$ac_cv_c_compiler_gnu
9585
9586ax_pthread_ok=no
9587
9588# We used to check for pthread.h first, but this fails if pthread.h
9589# requires special compiler flags (e.g. on True64 or Sequent).
9590# It gets checked for in the link test anyway.
9591
9592# First of all, check if the user has set any of the PTHREAD_LIBS,
9593# etcetera environment variables, and if threads linking works using
9594# them:
9595if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9596 save_CFLAGS="$CFLAGS"
9597 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9598 save_LIBS="$LIBS"
9599 LIBS="$PTHREAD_LIBS $LIBS"
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9601$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603/* end confdefs.h. */
9604
9605/* Override any GCC internal prototype to avoid an error.
9606 Use char because int might match the return type of a GCC
9607 builtin and then its argument prototype would still apply. */
9608#ifdef __cplusplus
9609extern "C"
9610#endif
9611char pthread_join ();
9612int
9613main ()
9614{
9615return pthread_join ();
9616 ;
9617 return 0;
9618}
9619_ACEOF
9620if ac_fn_c_try_link "$LINENO"; then :
9621 ax_pthread_ok=yes
9622fi
9623rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9626$as_echo "$ax_pthread_ok" >&6; }
9627 if test x"$ax_pthread_ok" = xno; then
9628 PTHREAD_LIBS=""
9629 PTHREAD_CFLAGS=""
9630 fi
9631 LIBS="$save_LIBS"
9632 CFLAGS="$save_CFLAGS"
9633fi
9634
9635# We must check for the threads library under a number of different
9636# names; the ordering is very important because some systems
9637# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9638# libraries is broken (non-POSIX).
9639
9640# Create a list of thread flags to try. Items starting with a "-" are
9641# C compiler flags, and other items are library names, except for "none"
9642# which indicates that we try without any flags at all, and "pthread-config"
9643# which is a program returning the flags for the Pth emulation library.
9644
cristy2ec87cc2013-02-18 17:46:50 +00009645ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009646
9647# The ordering *is* (sometimes) important. Some notes on the
9648# individual items follow:
9649
9650# pthreads: AIX (must check this before -lpthread)
9651# none: in case threads are in libc; should be tried before -Kthread and
9652# other compiler flags to prevent continual compiler warnings
9653# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9654# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9655# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9656# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9657# -pthreads: Solaris/gcc
9658# -mthreads: Mingw32/gcc, Lynx/gcc
9659# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9660# doesn't hurt to check since this sometimes defines pthreads too;
9661# also defines -D_REENTRANT)
9662# ... -mt is also the pthreads flag for HP/aCC
9663# pthread: Linux, etcetera
9664# --thread-safe: KAI C++
9665# pthread-config: use pthread-config program (for GNU Pth library)
9666
cristy2ec87cc2013-02-18 17:46:50 +00009667case ${host_os} in
9668 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009669
9670 # On Solaris (at least, for some versions), libc contains stubbed
9671 # (non-functional) versions of the pthreads routines, so link-based
9672 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9673 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9674 # a function called by this macro, so we could check for that, but
9675 # who knows whether they'll stub that too in a future libc.) So,
9676 # we'll just look for -pthreads and -lpthread first:
9677
9678 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9679 ;;
9680
cristy2ec87cc2013-02-18 17:46:50 +00009681 darwin*)
cristya316db12011-10-24 00:49:45 +00009682 ax_pthread_flags="-pthread $ax_pthread_flags"
9683 ;;
cristy73bd4a52010-10-05 11:24:23 +00009684esac
9685
9686if test x"$ax_pthread_ok" = xno; then
9687for flag in $ax_pthread_flags; do
9688
9689 case $flag in
9690 none)
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9692$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9693 ;;
9694
9695 -*)
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9697$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9698 PTHREAD_CFLAGS="$flag"
9699 ;;
9700
cristya316db12011-10-24 00:49:45 +00009701 pthread-config)
9702 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009703set dummy pthread-config; ac_word=$2
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009706if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009707 $as_echo_n "(cached) " >&6
9708else
9709 if test -n "$ax_pthread_config"; then
9710 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9711else
9712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713for as_dir in $PATH
9714do
9715 IFS=$as_save_IFS
9716 test -z "$as_dir" && as_dir=.
9717 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009719 ac_cv_prog_ax_pthread_config="yes"
9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9721 break 2
9722 fi
9723done
9724 done
9725IFS=$as_save_IFS
9726
9727 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9728fi
9729fi
9730ax_pthread_config=$ac_cv_prog_ax_pthread_config
9731if test -n "$ax_pthread_config"; then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9733$as_echo "$ax_pthread_config" >&6; }
9734else
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736$as_echo "no" >&6; }
9737fi
9738
9739
cristya316db12011-10-24 00:49:45 +00009740 if test x"$ax_pthread_config" = xno; then continue; fi
9741 PTHREAD_CFLAGS="`pthread-config --cflags`"
9742 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9743 ;;
cristy73bd4a52010-10-05 11:24:23 +00009744
9745 *)
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9747$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9748 PTHREAD_LIBS="-l$flag"
9749 ;;
9750 esac
9751
9752 save_LIBS="$LIBS"
9753 save_CFLAGS="$CFLAGS"
9754 LIBS="$PTHREAD_LIBS $LIBS"
9755 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9756
9757 # Check for various functions. We must include pthread.h,
9758 # since some functions may be macros. (On the Sequent, we
9759 # need a special flag -Kthread to make this header compile.)
9760 # We check for pthread_join because it is in -lpthread on IRIX
9761 # while pthread_create is in libc. We check for pthread_attr_init
9762 # due to DEC craziness with -lpthreads. We check for
9763 # pthread_cleanup_push because it is one of the few pthread
9764 # functions on Solaris that doesn't have a non-functional libc stub.
9765 # We try pthread_create on general principles.
9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767/* end confdefs.h. */
9768#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009769 static void routine(void *a) { a = 0; }
9770 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009771int
9772main ()
9773{
9774pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009775 pthread_create(&th, 0, start_routine, 0);
9776 pthread_join(th, 0);
9777 pthread_attr_init(&attr);
9778 pthread_cleanup_push(routine, 0);
9779 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009780 ;
9781 return 0;
9782}
9783_ACEOF
9784if ac_fn_c_try_link "$LINENO"; then :
9785 ax_pthread_ok=yes
9786fi
9787rm -f core conftest.err conftest.$ac_objext \
9788 conftest$ac_exeext conftest.$ac_ext
9789
9790 LIBS="$save_LIBS"
9791 CFLAGS="$save_CFLAGS"
9792
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9794$as_echo "$ax_pthread_ok" >&6; }
9795 if test "x$ax_pthread_ok" = xyes; then
9796 break;
9797 fi
9798
9799 PTHREAD_LIBS=""
9800 PTHREAD_CFLAGS=""
9801done
9802fi
9803
9804# Various other checks:
9805if test "x$ax_pthread_ok" = xyes; then
9806 save_LIBS="$LIBS"
9807 LIBS="$PTHREAD_LIBS $LIBS"
9808 save_CFLAGS="$CFLAGS"
9809 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9810
9811 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009813$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009814 attr_name=unknown
9815 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009817/* end confdefs.h. */
9818#include <pthread.h>
9819int
9820main ()
9821{
cristya316db12011-10-24 00:49:45 +00009822int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009823 ;
9824 return 0;
9825}
9826_ACEOF
9827if ac_fn_c_try_link "$LINENO"; then :
9828 attr_name=$attr; break
9829fi
9830rm -f core conftest.err conftest.$ac_objext \
9831 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009832 done
cristy73bd4a52010-10-05 11:24:23 +00009833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9834$as_echo "$attr_name" >&6; }
9835 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9836
9837cat >>confdefs.h <<_ACEOF
9838#define PTHREAD_CREATE_JOINABLE $attr_name
9839_ACEOF
9840
9841 fi
9842
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9844$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9845 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009846 case ${host_os} in
9847 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9848 osf* | hpux*) flag="-D_REENTRANT";;
9849 solaris*)
9850 if test "$GCC" = "yes"; then
9851 flag="-D_REENTRANT"
9852 else
9853 flag="-mt -D_REENTRANT"
9854 fi
9855 ;;
cristy73bd4a52010-10-05 11:24:23 +00009856 esac
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9858$as_echo "${flag}" >&6; }
9859 if test "x$flag" != xno; then
9860 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9861 fi
9862
cristya316db12011-10-24 00:49:45 +00009863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9864$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9865if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9866 $as_echo_n "(cached) " >&6
9867else
9868
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870/* end confdefs.h. */
9871
9872 #include <pthread.h>
9873int
9874main ()
9875{
9876int i = PTHREAD_PRIO_INHERIT;
9877 ;
9878 return 0;
9879}
9880_ACEOF
9881if ac_fn_c_try_link "$LINENO"; then :
9882 ax_cv_PTHREAD_PRIO_INHERIT=yes
9883else
9884 ax_cv_PTHREAD_PRIO_INHERIT=no
9885fi
9886rm -f core conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888
9889fi
9890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9891$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9892 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9893
9894$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9895
9896fi
9897
cristy73bd4a52010-10-05 11:24:23 +00009898 LIBS="$save_LIBS"
9899 CFLAGS="$save_CFLAGS"
9900
9901 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009902 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009903 for ac_prog in xlc_r cc_r
9904do
9905 # Extract the first word of "$ac_prog", so it can be a program name with args.
9906set dummy $ac_prog; ac_word=$2
9907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9908$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009909if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009910 $as_echo_n "(cached) " >&6
9911else
9912 if test -n "$PTHREAD_CC"; then
9913 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9914else
9915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916for as_dir in $PATH
9917do
9918 IFS=$as_save_IFS
9919 test -z "$as_dir" && as_dir=.
9920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009922 ac_cv_prog_PTHREAD_CC="$ac_prog"
9923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 break 2
9925 fi
9926done
9927 done
9928IFS=$as_save_IFS
9929
9930fi
9931fi
9932PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9933if test -n "$PTHREAD_CC"; then
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9935$as_echo "$PTHREAD_CC" >&6; }
9936else
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9938$as_echo "no" >&6; }
9939fi
9940
9941
9942 test -n "$PTHREAD_CC" && break
9943done
9944test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9945
9946 else
9947 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009948 fi
cristy73bd4a52010-10-05 11:24:23 +00009949else
9950 PTHREAD_CC="$CC"
9951fi
9952
9953
9954
9955
9956
9957# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9958if test x"$ax_pthread_ok" = xyes; then
9959
9960$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9961
9962 :
9963else
9964 ax_pthread_ok=no
9965
9966fi
9967ac_ext=c
9968ac_cpp='$CPP $CPPFLAGS'
9969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9971ac_compiler_gnu=$ac_cv_c_compiler_gnu
9972
9973
9974
9975# Check whether --enable-opencl was given.
9976if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009977 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009978else
cristy48794642012-09-02 15:19:08 +00009979 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009980fi
9981
9982
cristy48794642012-09-02 15:19:08 +00009983if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009984 ac_ext=c
9985ac_cpp='$CPP $CPPFLAGS'
9986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9988ac_compiler_gnu=$ac_cv_c_compiler_gnu
9989
cristy75314cc2012-09-15 23:08:29 +00009990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9991$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9992if ${ax_cv_c_compiler_ms+:} false; then :
9993 $as_echo_n "(cached) " >&6
9994else
9995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996/* end confdefs.h. */
9997
9998int
9999main ()
10000{
10001#ifndef _MSC_VER
10002 choke me
10003#endif
10004
10005 ;
10006 return 0;
10007}
10008_ACEOF
10009if ac_fn_c_try_compile "$LINENO"; then :
10010 ax_compiler_ms=yes
10011else
10012 ax_compiler_ms=no
10013fi
10014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015ax_cv_c_compiler_ms=$ax_compiler_ms
10016
10017fi
10018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10019$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010020 if test X$ax_compiler_ms = Xno; then :
10021 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10022fi
10023
10024 ax_save_CPPFLAGS=$CPPFLAGS
10025 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10026 for ac_header in CL/cl.h OpenCL/cl.h
10027do :
10028 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10029ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010030if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010031 cat >>confdefs.h <<_ACEOF
10032#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10033_ACEOF
10034
10035fi
10036
10037done
10038
10039 CPPFLAGS=$ax_save_CPPFLAGS
10040
10041 for ac_header in windows.h
10042do :
10043 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010044if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010045 cat >>confdefs.h <<_ACEOF
10046#define HAVE_WINDOWS_H 1
10047_ACEOF
10048
10049fi
10050
10051done
10052
10053
10054
10055
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10057$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010058if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010059 $as_echo_n "(cached) " >&6
10060else
10061 ax_cv_check_cl_libcl=no
10062 case $host_cpu in
10063 x86_64) ax_check_cl_libdir=lib64 ;;
10064 *) ax_check_cl_libdir=lib ;;
10065 esac
10066 ax_save_CPPFLAGS=$CPPFLAGS
10067 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10068 ax_save_LIBS=$LIBS
10069 LIBS=""
10070 ax_check_libs="-lOpenCL -lCL -lclparser"
10071 for ax_lib in $ax_check_libs; do
10072 if test X$ax_compiler_ms = Xyes; then :
10073 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10074else
10075 ax_try_lib=$ax_lib
10076fi
10077 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079/* end confdefs.h. */
10080
10081 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10082 # include <windows.h>
10083 # endif
10084 # ifdef HAVE_CL_CL_H
10085 # include <CL/cl.h>
10086 # elif defined(HAVE_OPENCL_CL_H)
10087 # include <OpenCL/cl.h>
10088 # else
10089 # error no CL.h
10090 # endif
10091int
10092main ()
10093{
10094clCreateContextFromType(0,0,0,0,0)
10095 ;
10096 return 0;
10097}
10098_ACEOF
10099if ac_fn_c_try_link "$LINENO"; then :
10100 ax_cv_check_cl_libcl=$ax_try_lib; break
10101else
10102 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"
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104/* end confdefs.h. */
10105
10106 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10107 # include <windows.h>
10108 # endif
10109 # ifdef HAVE_CL_CL_H
10110 # include <CL/cl.h>
10111 # elif defined(HAVE_OPENCL_CL_H)
10112 # include <OpenCL/cl.h>
10113 # else
10114 # error no CL.h
10115 # endif
10116int
10117main ()
10118{
10119clCreateContextFromType(0,0,0,0,0)
10120 ;
10121 return 0;
10122}
10123_ACEOF
10124if ac_fn_c_try_link "$LINENO"; then :
10125 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10126else
cristy78c5a0c2010-12-04 20:00:59 +000010127 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 +000010128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129/* end confdefs.h. */
10130
10131 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10132 # include <windows.h>
10133 # endif
10134 # ifdef HAVE_CL_CL_H
10135 # include <CL/cl.h>
10136 # elif defined(HAVE_OPENCL_CL_H)
10137 # include <OpenCL/cl.h>
10138 # else
10139 # error no CL.h
10140 # endif
10141int
10142main ()
10143{
10144clCreateContextFromType(0,0,0,0,0)
10145 ;
10146 return 0;
10147}
10148_ACEOF
10149if ac_fn_c_try_link "$LINENO"; then :
10150 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10151fi
10152rm -f core conftest.err conftest.$ac_objext \
10153 conftest$ac_exeext conftest.$ac_ext
10154fi
10155rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157fi
10158rm -f core conftest.err conftest.$ac_objext \
10159 conftest$ac_exeext conftest.$ac_ext
10160 done
10161
cristyc3f8b8e2011-12-22 14:55:16 +000010162 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010163 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165/* end confdefs.h. */
10166
10167 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10168 # include <windows.h>
10169 # endif
10170 # ifdef HAVE_CL_CL_H
10171 # include <CL/cl.h>
10172 # elif defined(HAVE_OPENCL_CL_H)
10173 # include <OpenCL/cl.h>
10174 # else
10175 # error no CL.h
10176 # endif
10177int
10178main ()
10179{
10180clCreateContextFromType(0,0,0,0,0)
10181 ;
10182 return 0;
10183}
10184_ACEOF
10185if ac_fn_c_try_link "$LINENO"; then :
10186 ax_cv_check_cl_libcl=$LIBS
10187fi
10188rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
10190fi
10191
10192 LIBS=$ax_save_LIBS
10193 CPPFLAGS=$ax_save_CPPFLAGS
10194fi
10195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10196$as_echo "$ax_cv_check_cl_libcl" >&6; }
10197
10198 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10199 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10200else
10201 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10202$as_echo "#define _OPENCL 1" >>confdefs.h
10203
10204fi
10205 ac_ext=c
10206ac_cpp='$CPP $CPPFLAGS'
10207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10209ac_compiler_gnu=$ac_cv_c_compiler_gnu
10210
10211fi
10212
10213
10214
10215
cristyc7083c12009-10-14 03:16:55 +000010216CFLAGS="$CL_CFLAGS $CFLAGS"
10217LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010218
cristy391f1ce2010-09-09 17:23:28 +000010219if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010220 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010221 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10222 fi
cristyfd9dcd42010-08-08 18:07:02 +000010223fi
cristy2e8b51d2009-10-17 18:26:15 +000010224
cristy3ed852e2009-09-05 21:47:34 +000010225########
10226#
10227# Check for large file support
10228#
10229########
10230# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010231if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010232 enableval=$enable_largefile;
10233fi
10234
10235if test "$enable_largefile" != no; then
10236
cristy8b350f62009-11-15 23:12:43 +000010237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010238$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010239if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010240 $as_echo_n "(cached) " >&6
10241else
10242 ac_cv_sys_largefile_CC=no
10243 if test "$GCC" != yes; then
10244 ac_save_CC=$CC
10245 while :; do
10246 # IRIX 6.2 and later do not support large files by default,
10247 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010249/* end confdefs.h. */
10250#include <sys/types.h>
10251 /* Check that off_t can represent 2**63 - 1 correctly.
10252 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10253 since some C++ compilers masquerading as C compilers
10254 incorrectly reject 9223372036854775807. */
10255#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10256 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10257 && LARGE_OFF_T % 2147483647 == 1)
10258 ? 1 : -1];
10259int
10260main ()
10261{
10262
10263 ;
10264 return 0;
10265}
10266_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010267 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010268 break
cristy3ed852e2009-09-05 21:47:34 +000010269fi
cristy3ed852e2009-09-05 21:47:34 +000010270rm -f core conftest.err conftest.$ac_objext
10271 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010272 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010273 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010274fi
cristy3ed852e2009-09-05 21:47:34 +000010275rm -f core conftest.err conftest.$ac_objext
10276 break
10277 done
10278 CC=$ac_save_CC
10279 rm -f conftest.$ac_ext
10280 fi
10281fi
cristy8b350f62009-11-15 23:12:43 +000010282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010283$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10284 if test "$ac_cv_sys_largefile_CC" != no; then
10285 CC=$CC$ac_cv_sys_largefile_CC
10286 fi
10287
cristy8b350f62009-11-15 23:12:43 +000010288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010289$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010290if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010291 $as_echo_n "(cached) " >&6
10292else
10293 while :; do
cristy8b350f62009-11-15 23:12:43 +000010294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010295/* end confdefs.h. */
10296#include <sys/types.h>
10297 /* Check that off_t can represent 2**63 - 1 correctly.
10298 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10299 since some C++ compilers masquerading as C compilers
10300 incorrectly reject 9223372036854775807. */
10301#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10302 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10303 && LARGE_OFF_T % 2147483647 == 1)
10304 ? 1 : -1];
10305int
10306main ()
10307{
10308
10309 ;
10310 return 0;
10311}
10312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010313if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010314 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010315fi
cristy3ed852e2009-09-05 21:47:34 +000010316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010318/* end confdefs.h. */
10319#define _FILE_OFFSET_BITS 64
10320#include <sys/types.h>
10321 /* Check that off_t can represent 2**63 - 1 correctly.
10322 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10323 since some C++ compilers masquerading as C compilers
10324 incorrectly reject 9223372036854775807. */
10325#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10326 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10327 && LARGE_OFF_T % 2147483647 == 1)
10328 ? 1 : -1];
10329int
10330main ()
10331{
10332
10333 ;
10334 return 0;
10335}
10336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010337if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010338 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010339fi
cristy3ed852e2009-09-05 21:47:34 +000010340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10341 ac_cv_sys_file_offset_bits=unknown
10342 break
10343done
10344fi
cristy8b350f62009-11-15 23:12:43 +000010345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010346$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10347case $ac_cv_sys_file_offset_bits in #(
10348 no | unknown) ;;
10349 *)
10350cat >>confdefs.h <<_ACEOF
10351#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10352_ACEOF
10353;;
10354esac
10355rm -rf conftest*
10356 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010358$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010359if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010360 $as_echo_n "(cached) " >&6
10361else
10362 while :; do
cristy8b350f62009-11-15 23:12:43 +000010363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010364/* end confdefs.h. */
10365#include <sys/types.h>
10366 /* Check that off_t can represent 2**63 - 1 correctly.
10367 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10368 since some C++ compilers masquerading as C compilers
10369 incorrectly reject 9223372036854775807. */
10370#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10371 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10372 && LARGE_OFF_T % 2147483647 == 1)
10373 ? 1 : -1];
10374int
10375main ()
10376{
10377
10378 ;
10379 return 0;
10380}
10381_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010382if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010383 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010384fi
cristy3ed852e2009-09-05 21:47:34 +000010385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010387/* end confdefs.h. */
10388#define _LARGE_FILES 1
10389#include <sys/types.h>
10390 /* Check that off_t can represent 2**63 - 1 correctly.
10391 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10392 since some C++ compilers masquerading as C compilers
10393 incorrectly reject 9223372036854775807. */
10394#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10395 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10396 && LARGE_OFF_T % 2147483647 == 1)
10397 ? 1 : -1];
10398int
10399main ()
10400{
10401
10402 ;
10403 return 0;
10404}
10405_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010406if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010407 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010408fi
cristy3ed852e2009-09-05 21:47:34 +000010409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10410 ac_cv_sys_large_files=unknown
10411 break
10412done
10413fi
cristy8b350f62009-11-15 23:12:43 +000010414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010415$as_echo "$ac_cv_sys_large_files" >&6; }
10416case $ac_cv_sys_large_files in #(
10417 no | unknown) ;;
10418 *)
10419cat >>confdefs.h <<_ACEOF
10420#define _LARGE_FILES $ac_cv_sys_large_files
10421_ACEOF
10422;;
10423esac
10424rm -rf conftest*
10425 fi
cristy14fefe52012-05-21 00:59:18 +000010426
10427
cristy3ed852e2009-09-05 21:47:34 +000010428fi
10429
cristy8b350f62009-11-15 23:12:43 +000010430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010431$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010432if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010433 $as_echo_n "(cached) " >&6
10434else
10435 while :; do
cristy8b350f62009-11-15 23:12:43 +000010436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010437/* end confdefs.h. */
10438#include <sys/types.h> /* for off_t */
10439 #include <stdio.h>
10440int
10441main ()
10442{
10443int (*fp) (FILE *, off_t, int) = fseeko;
10444 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10445 ;
10446 return 0;
10447}
10448_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010449if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010450 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010451fi
cristy8b350f62009-11-15 23:12:43 +000010452rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010455/* end confdefs.h. */
10456#define _LARGEFILE_SOURCE 1
10457#include <sys/types.h> /* for off_t */
10458 #include <stdio.h>
10459int
10460main ()
10461{
10462int (*fp) (FILE *, off_t, int) = fseeko;
10463 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10464 ;
10465 return 0;
10466}
10467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010468if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010469 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010470fi
cristy8b350f62009-11-15 23:12:43 +000010471rm -f core conftest.err conftest.$ac_objext \
10472 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010473 ac_cv_sys_largefile_source=unknown
10474 break
10475done
10476fi
cristy8b350f62009-11-15 23:12:43 +000010477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010478$as_echo "$ac_cv_sys_largefile_source" >&6; }
10479case $ac_cv_sys_largefile_source in #(
10480 no | unknown) ;;
10481 *)
10482cat >>confdefs.h <<_ACEOF
10483#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10484_ACEOF
10485;;
10486esac
10487rm -rf conftest*
10488
10489# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10490# in glibc 2.1.3, but that breaks too many other things.
10491# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10492if test $ac_cv_sys_largefile_source != unknown; then
10493
cristy8b350f62009-11-15 23:12:43 +000010494$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010495
10496fi
10497
10498LFS_CPPFLAGS=''
10499if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010500 case $ac_cv_sys_file_offset_bits in
10501 no)
10502 # nothing to do here as the host supports LFS fine
10503 ;;
10504 unknown)
cristy8b350f62009-11-15 23:12:43 +000010505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010506$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010507 if test "$cross_compiling" = yes; then :
10508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010510as_fn_error $? "cannot run test program while cross compiling
10511See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010512else
cristy8b350f62009-11-15 23:12:43 +000010513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010515#include <unistd.h>
10516 main () {
10517 exit(!(sizeof(off_t) == 8));
10518 }
cristyda16f162011-02-19 23:52:17 +000010519int
10520main ()
10521{
10522
10523 ;
10524 return 0;
10525}
cristy3ed852e2009-09-05 21:47:34 +000010526_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010527if ac_fn_c_try_run "$LINENO"; then :
10528 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010529
cristyad38abe2012-12-23 23:03:21 +000010530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10531$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010532else
cristyad38abe2012-12-23 23:03:21 +000010533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10534$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010535fi
cristy8b350f62009-11-15 23:12:43 +000010536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10537 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010538fi
10539
cristyc1e0cc12011-09-21 16:41:16 +000010540 ;;
10541 *)
10542 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10543 ;;
10544 esac
cristy3ed852e2009-09-05 21:47:34 +000010545 if test "$ac_cv_sys_large_files" != 'no'; then
10546 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10547 fi
10548 if test "$ac_cv_sys_largefile_source" != 'no'; then
10549 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10550 fi
10551fi
10552
10553
cristy3ed852e2009-09-05 21:47:34 +000010554# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010555enable_dlopen=yes
10556
10557
10558
10559case `pwd` in
10560 *\ * | *\ *)
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10562$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10563esac
10564
10565
10566
cristy99bd5232011-12-07 14:38:20 +000010567macro_version='2.4.2'
10568macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582ltmain="$ac_aux_dir/ltmain.sh"
10583
cristy0c60a692010-11-04 01:09:47 +000010584# Backslashify metacharacters that are still active within
10585# double-quoted strings.
10586sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10587
10588# Same as above, but do not quote variable references.
10589double_quote_subst='s/\(["`\\]\)/\\\1/g'
10590
10591# Sed substitution to delay expansion of an escaped shell variable in a
10592# double_quote_subst'ed string.
10593delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10594
10595# Sed substitution to delay expansion of an escaped single quote.
10596delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10597
10598# Sed substitution to avoid accidental globbing in evaled expressions
10599no_glob_subst='s/\*/\\\*/g'
10600
cristy73bd4a52010-10-05 11:24:23 +000010601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10602$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010603if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010604 $as_echo_n "(cached) " >&6
10605else
10606 if test -n "$NM"; then
10607 # Let the user override the test.
10608 lt_cv_path_NM="$NM"
10609else
10610 lt_nm_to_check="${ac_tool_prefix}nm"
10611 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10612 lt_nm_to_check="$lt_nm_to_check nm"
10613 fi
10614 for lt_tmp_nm in $lt_nm_to_check; do
10615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10616 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10617 IFS="$lt_save_ifs"
10618 test -z "$ac_dir" && ac_dir=.
10619 tmp_nm="$ac_dir/$lt_tmp_nm"
10620 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10621 # Check to see if the nm accepts a BSD-compat flag.
10622 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10623 # nm: unknown option "B" ignored
10624 # Tru64's nm complains that /dev/null is an invalid object file
10625 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10626 */dev/null* | *'Invalid file or object type'*)
10627 lt_cv_path_NM="$tmp_nm -B"
10628 break
10629 ;;
10630 *)
10631 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10632 */dev/null*)
10633 lt_cv_path_NM="$tmp_nm -p"
10634 break
10635 ;;
10636 *)
10637 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10638 continue # so that we can try to find one that supports BSD flags
10639 ;;
10640 esac
10641 ;;
10642 esac
10643 fi
10644 done
10645 IFS="$lt_save_ifs"
10646 done
10647 : ${lt_cv_path_NM=no}
10648fi
10649fi
10650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10651$as_echo "$lt_cv_path_NM" >&6; }
10652if test "$lt_cv_path_NM" != "no"; then
10653 NM="$lt_cv_path_NM"
10654else
10655 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010656 if test -n "$DUMPBIN"; then :
10657 # Let the user override the test.
10658 else
10659 if test -n "$ac_tool_prefix"; then
10660 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010661 do
10662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10663set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010666if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010667 $as_echo_n "(cached) " >&6
10668else
10669 if test -n "$DUMPBIN"; then
10670 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10671else
10672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673for as_dir in $PATH
10674do
10675 IFS=$as_save_IFS
10676 test -z "$as_dir" && as_dir=.
10677 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010679 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10681 break 2
10682 fi
10683done
10684 done
10685IFS=$as_save_IFS
10686
10687fi
10688fi
10689DUMPBIN=$ac_cv_prog_DUMPBIN
10690if test -n "$DUMPBIN"; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10692$as_echo "$DUMPBIN" >&6; }
10693else
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695$as_echo "no" >&6; }
10696fi
10697
10698
10699 test -n "$DUMPBIN" && break
10700 done
10701fi
10702if test -z "$DUMPBIN"; then
10703 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010704 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010705do
10706 # Extract the first word of "$ac_prog", so it can be a program name with args.
10707set dummy $ac_prog; ac_word=$2
10708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10709$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010710if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010711 $as_echo_n "(cached) " >&6
10712else
10713 if test -n "$ac_ct_DUMPBIN"; then
10714 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10715else
10716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717for as_dir in $PATH
10718do
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010723 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10725 break 2
10726 fi
10727done
10728 done
10729IFS=$as_save_IFS
10730
10731fi
10732fi
10733ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10734if test -n "$ac_ct_DUMPBIN"; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10736$as_echo "$ac_ct_DUMPBIN" >&6; }
10737else
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739$as_echo "no" >&6; }
10740fi
10741
10742
10743 test -n "$ac_ct_DUMPBIN" && break
10744done
10745
10746 if test "x$ac_ct_DUMPBIN" = x; then
10747 DUMPBIN=":"
10748 else
10749 case $cross_compiling:$ac_tool_warned in
10750yes:)
10751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10753ac_tool_warned=yes ;;
10754esac
10755 DUMPBIN=$ac_ct_DUMPBIN
10756 fi
10757fi
10758
cristy0c60a692010-11-04 01:09:47 +000010759 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10760 *COFF*)
10761 DUMPBIN="$DUMPBIN -symbols"
10762 ;;
10763 *)
10764 DUMPBIN=:
10765 ;;
10766 esac
10767 fi
cristy73bd4a52010-10-05 11:24:23 +000010768
10769 if test "$DUMPBIN" != ":"; then
10770 NM="$DUMPBIN"
10771 fi
10772fi
10773test -z "$NM" && NM=nm
10774
10775
10776
10777
10778
10779
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10781$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010782if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010783 $as_echo_n "(cached) " >&6
10784else
10785 lt_cv_nm_interface="BSD nm"
10786 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010787 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010788 (eval "$ac_compile" 2>conftest.err)
10789 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010790 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010791 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10792 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010793 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010794 cat conftest.out >&5
10795 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10796 lt_cv_nm_interface="MS dumpbin"
10797 fi
10798 rm -f conftest*
10799fi
10800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10801$as_echo "$lt_cv_nm_interface" >&6; }
10802
10803# find the maximum length of command line arguments
10804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10805$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010806if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010807 $as_echo_n "(cached) " >&6
10808else
10809 i=0
10810 teststring="ABCD"
10811
10812 case $build_os in
10813 msdosdjgpp*)
10814 # On DJGPP, this test can blow up pretty badly due to problems in libc
10815 # (any single argument exceeding 2000 bytes causes a buffer overrun
10816 # during glob expansion). Even if it were fixed, the result of this
10817 # check would be larger than it should be.
10818 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10819 ;;
10820
10821 gnu*)
10822 # Under GNU Hurd, this test is not required because there is
10823 # no limit to the length of command line arguments.
10824 # Libtool will interpret -1 as no limit whatsoever
10825 lt_cv_sys_max_cmd_len=-1;
10826 ;;
10827
10828 cygwin* | mingw* | cegcc*)
10829 # On Win9x/ME, this test blows up -- it succeeds, but takes
10830 # about 5 minutes as the teststring grows exponentially.
10831 # Worse, since 9x/ME are not pre-emptively multitasking,
10832 # you end up with a "frozen" computer, even though with patience
10833 # the test eventually succeeds (with a max line length of 256k).
10834 # Instead, let's just punt: use the minimum linelength reported by
10835 # all of the supported platforms: 8192 (on NT/2K/XP).
10836 lt_cv_sys_max_cmd_len=8192;
10837 ;;
10838
cristy0c60a692010-11-04 01:09:47 +000010839 mint*)
10840 # On MiNT this can take a long time and run out of memory.
10841 lt_cv_sys_max_cmd_len=8192;
10842 ;;
10843
cristy73bd4a52010-10-05 11:24:23 +000010844 amigaos*)
10845 # On AmigaOS with pdksh, this test takes hours, literally.
10846 # So we just punt and use a minimum line length of 8192.
10847 lt_cv_sys_max_cmd_len=8192;
10848 ;;
10849
10850 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10851 # This has been around since 386BSD, at least. Likely further.
10852 if test -x /sbin/sysctl; then
10853 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10854 elif test -x /usr/sbin/sysctl; then
10855 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10856 else
10857 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10858 fi
10859 # And add a safety zone
10860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10862 ;;
10863
10864 interix*)
10865 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10866 lt_cv_sys_max_cmd_len=196608
10867 ;;
10868
cristy99bd5232011-12-07 14:38:20 +000010869 os2*)
10870 # The test takes a long time on OS/2.
10871 lt_cv_sys_max_cmd_len=8192
10872 ;;
10873
cristy73bd4a52010-10-05 11:24:23 +000010874 osf*)
10875 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10876 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10877 # nice to cause kernel panics so lets avoid the loop below.
10878 # First set a reasonable default.
10879 lt_cv_sys_max_cmd_len=16384
10880 #
10881 if test -x /sbin/sysconfig; then
10882 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10883 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10884 esac
10885 fi
10886 ;;
10887 sco3.2v5*)
10888 lt_cv_sys_max_cmd_len=102400
10889 ;;
10890 sysv5* | sco5v6* | sysv4.2uw2*)
10891 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10892 if test -n "$kargmax"; then
10893 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10894 else
10895 lt_cv_sys_max_cmd_len=32768
10896 fi
10897 ;;
10898 *)
10899 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10900 if test -n "$lt_cv_sys_max_cmd_len"; then
10901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10903 else
10904 # Make teststring a little bigger before we do anything with it.
10905 # a 1K string should be a reasonable start.
10906 for i in 1 2 3 4 5 6 7 8 ; do
10907 teststring=$teststring$teststring
10908 done
10909 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10910 # If test is not a shell built-in, we'll probably end up computing a
10911 # maximum length that is only half of the actual maximum length, but
10912 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010913 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010914 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010915 test $i != 17 # 1/2 MB should be enough
10916 do
10917 i=`expr $i + 1`
10918 teststring=$teststring$teststring
10919 done
10920 # Only check the string length outside the loop.
10921 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10922 teststring=
10923 # Add a significant safety factor because C++ compilers can tack on
10924 # massive amounts of additional arguments before passing them to the
10925 # linker. It appears as though 1/2 is a usable value.
10926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10927 fi
10928 ;;
10929 esac
10930
10931fi
10932
10933if test -n $lt_cv_sys_max_cmd_len ; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10935$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10936else
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10938$as_echo "none" >&6; }
10939fi
10940max_cmd_len=$lt_cv_sys_max_cmd_len
10941
10942
10943
10944
10945
10946
10947: ${CP="cp -f"}
10948: ${MV="mv -f"}
10949: ${RM="rm -f"}
10950
10951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10952$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10953# Try some XSI features
10954xsi_shell=no
10955( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010956 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10957 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010958 && eval 'test $(( 1 + 1 )) -eq 2 \
10959 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10960 && xsi_shell=yes
10961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10962$as_echo "$xsi_shell" >&6; }
10963
10964
10965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10966$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10967lt_shell_append=no
10968( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10969 >/dev/null 2>&1 \
10970 && lt_shell_append=yes
10971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10972$as_echo "$lt_shell_append" >&6; }
10973
10974
10975if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10976 lt_unset=unset
10977else
10978 lt_unset=false
10979fi
10980
10981
10982
10983
10984
10985# test EBCDIC or ASCII
10986case `echo X|tr X '\101'` in
10987 A) # ASCII based system
10988 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10989 lt_SP2NL='tr \040 \012'
10990 lt_NL2SP='tr \015\012 \040\040'
10991 ;;
10992 *) # EBCDIC based system
10993 lt_SP2NL='tr \100 \n'
10994 lt_NL2SP='tr \r\n \100\100'
10995 ;;
10996esac
10997
10998
10999
11000
11001
11002
11003
11004
11005
cristyda16f162011-02-19 23:52:17 +000011006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11007$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11008if ${lt_cv_to_host_file_cmd+:} false; then :
11009 $as_echo_n "(cached) " >&6
11010else
11011 case $host in
11012 *-*-mingw* )
11013 case $build in
11014 *-*-mingw* ) # actually msys
11015 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11016 ;;
11017 *-*-cygwin* )
11018 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11019 ;;
11020 * ) # otherwise, assume *nix
11021 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11022 ;;
11023 esac
11024 ;;
11025 *-*-cygwin* )
11026 case $build in
11027 *-*-mingw* ) # actually msys
11028 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11029 ;;
11030 *-*-cygwin* )
11031 lt_cv_to_host_file_cmd=func_convert_file_noop
11032 ;;
11033 * ) # otherwise, assume *nix
11034 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11035 ;;
11036 esac
11037 ;;
11038 * ) # unhandled hosts (and "normal" native builds)
11039 lt_cv_to_host_file_cmd=func_convert_file_noop
11040 ;;
11041esac
11042
11043fi
11044
11045to_host_file_cmd=$lt_cv_to_host_file_cmd
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11047$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11048
11049
11050
11051
11052
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11054$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11055if ${lt_cv_to_tool_file_cmd+:} false; then :
11056 $as_echo_n "(cached) " >&6
11057else
11058 #assume ordinary cross tools, or native build.
11059lt_cv_to_tool_file_cmd=func_convert_file_noop
11060case $host in
11061 *-*-mingw* )
11062 case $build in
11063 *-*-mingw* ) # actually msys
11064 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11065 ;;
11066 esac
11067 ;;
11068esac
11069
11070fi
11071
11072to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11074$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11075
11076
11077
11078
11079
cristy73bd4a52010-10-05 11:24:23 +000011080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11081$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011082if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011083 $as_echo_n "(cached) " >&6
11084else
11085 lt_cv_ld_reload_flag='-r'
11086fi
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11088$as_echo "$lt_cv_ld_reload_flag" >&6; }
11089reload_flag=$lt_cv_ld_reload_flag
11090case $reload_flag in
11091"" | " "*) ;;
11092*) reload_flag=" $reload_flag" ;;
11093esac
11094reload_cmds='$LD$reload_flag -o $output$reload_objs'
11095case $host_os in
cristyda16f162011-02-19 23:52:17 +000011096 cygwin* | mingw* | pw32* | cegcc*)
11097 if test "$GCC" != yes; then
11098 reload_cmds=false
11099 fi
11100 ;;
cristy73bd4a52010-10-05 11:24:23 +000011101 darwin*)
11102 if test "$GCC" = yes; then
11103 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11104 else
11105 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11106 fi
11107 ;;
11108esac
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118if test -n "$ac_tool_prefix"; then
11119 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11120set dummy ${ac_tool_prefix}objdump; ac_word=$2
11121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011123if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011124 $as_echo_n "(cached) " >&6
11125else
11126 if test -n "$OBJDUMP"; then
11127 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11128else
11129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130for as_dir in $PATH
11131do
11132 IFS=$as_save_IFS
11133 test -z "$as_dir" && as_dir=.
11134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011136 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11138 break 2
11139 fi
11140done
11141 done
11142IFS=$as_save_IFS
11143
11144fi
11145fi
11146OBJDUMP=$ac_cv_prog_OBJDUMP
11147if test -n "$OBJDUMP"; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11149$as_echo "$OBJDUMP" >&6; }
11150else
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152$as_echo "no" >&6; }
11153fi
11154
11155
11156fi
11157if test -z "$ac_cv_prog_OBJDUMP"; then
11158 ac_ct_OBJDUMP=$OBJDUMP
11159 # Extract the first word of "objdump", so it can be a program name with args.
11160set dummy objdump; ac_word=$2
11161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11162$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011163if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011164 $as_echo_n "(cached) " >&6
11165else
11166 if test -n "$ac_ct_OBJDUMP"; then
11167 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11168else
11169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170for as_dir in $PATH
11171do
11172 IFS=$as_save_IFS
11173 test -z "$as_dir" && as_dir=.
11174 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011176 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11178 break 2
11179 fi
11180done
11181 done
11182IFS=$as_save_IFS
11183
11184fi
11185fi
11186ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11187if test -n "$ac_ct_OBJDUMP"; then
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11189$as_echo "$ac_ct_OBJDUMP" >&6; }
11190else
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192$as_echo "no" >&6; }
11193fi
11194
11195 if test "x$ac_ct_OBJDUMP" = x; then
11196 OBJDUMP="false"
11197 else
11198 case $cross_compiling:$ac_tool_warned in
11199yes:)
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11202ac_tool_warned=yes ;;
11203esac
11204 OBJDUMP=$ac_ct_OBJDUMP
11205 fi
11206else
11207 OBJDUMP="$ac_cv_prog_OBJDUMP"
11208fi
11209
11210test -z "$OBJDUMP" && OBJDUMP=objdump
11211
11212
11213
11214
11215
11216
11217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11218$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011219if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011220 $as_echo_n "(cached) " >&6
11221else
11222 lt_cv_file_magic_cmd='$MAGIC_CMD'
11223lt_cv_file_magic_test_file=
11224lt_cv_deplibs_check_method='unknown'
11225# Need to set the preceding variable on all platforms that support
11226# interlibrary dependencies.
11227# 'none' -- dependencies not supported.
11228# `unknown' -- same as none, but documents that we really don't know.
11229# 'pass_all' -- all dependencies passed with no checks.
11230# 'test_compile' -- check by making test program.
11231# 'file_magic [[regex]]' -- check by looking for files in library path
11232# which responds to the $file_magic_cmd with a given extended regex.
11233# If you have `file' or equivalent on your system and you're not sure
11234# whether `pass_all' will *always* work, you probably want this one.
11235
11236case $host_os in
11237aix[4-9]*)
11238 lt_cv_deplibs_check_method=pass_all
11239 ;;
11240
11241beos*)
11242 lt_cv_deplibs_check_method=pass_all
11243 ;;
11244
11245bsdi[45]*)
11246 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11247 lt_cv_file_magic_cmd='/usr/bin/file -L'
11248 lt_cv_file_magic_test_file=/shlib/libc.so
11249 ;;
11250
11251cygwin*)
11252 # func_win32_libid is a shell function defined in ltmain.sh
11253 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11254 lt_cv_file_magic_cmd='func_win32_libid'
11255 ;;
11256
11257mingw* | pw32*)
11258 # Base MSYS/MinGW do not provide the 'file' command needed by
11259 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11260 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011261 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11262 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011263 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11264 lt_cv_file_magic_cmd='func_win32_libid'
11265 else
cristy0c60a692010-11-04 01:09:47 +000011266 # Keep this pattern in sync with the one in func_win32_libid.
11267 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 +000011268 lt_cv_file_magic_cmd='$OBJDUMP -f'
11269 fi
11270 ;;
11271
cristy0c60a692010-11-04 01:09:47 +000011272cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011273 # use the weaker test based on 'objdump'. See mingw*.
11274 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11275 lt_cv_file_magic_cmd='$OBJDUMP -f'
11276 ;;
11277
11278darwin* | rhapsody*)
11279 lt_cv_deplibs_check_method=pass_all
11280 ;;
11281
11282freebsd* | dragonfly*)
11283 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11284 case $host_cpu in
11285 i*86 )
11286 # Not sure whether the presence of OpenBSD here was a mistake.
11287 # Let's accept both of them until this is cleared up.
11288 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11289 lt_cv_file_magic_cmd=/usr/bin/file
11290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11291 ;;
11292 esac
11293 else
11294 lt_cv_deplibs_check_method=pass_all
11295 fi
11296 ;;
11297
11298gnu*)
11299 lt_cv_deplibs_check_method=pass_all
11300 ;;
11301
cristy0c60a692010-11-04 01:09:47 +000011302haiku*)
11303 lt_cv_deplibs_check_method=pass_all
11304 ;;
11305
cristy73bd4a52010-10-05 11:24:23 +000011306hpux10.20* | hpux11*)
11307 lt_cv_file_magic_cmd=/usr/bin/file
11308 case $host_cpu in
11309 ia64*)
11310 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11311 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11312 ;;
11313 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011314 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 +000011315 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11316 ;;
11317 *)
cristy0c60a692010-11-04 01:09:47 +000011318 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 +000011319 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11320 ;;
11321 esac
11322 ;;
11323
11324interix[3-9]*)
11325 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11327 ;;
11328
11329irix5* | irix6* | nonstopux*)
11330 case $LD in
11331 *-32|*"-32 ") libmagic=32-bit;;
11332 *-n32|*"-n32 ") libmagic=N32;;
11333 *-64|*"-64 ") libmagic=64-bit;;
11334 *) libmagic=never-match;;
11335 esac
11336 lt_cv_deplibs_check_method=pass_all
11337 ;;
11338
cristy99bd5232011-12-07 14:38:20 +000011339# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011340linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011341 lt_cv_deplibs_check_method=pass_all
11342 ;;
11343
11344netbsd*)
11345 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11347 else
11348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11349 fi
11350 ;;
11351
11352newos6*)
11353 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11354 lt_cv_file_magic_cmd=/usr/bin/file
11355 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11356 ;;
11357
11358*nto* | *qnx*)
11359 lt_cv_deplibs_check_method=pass_all
11360 ;;
11361
11362openbsd*)
11363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11365 else
11366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11367 fi
11368 ;;
11369
11370osf3* | osf4* | osf5*)
11371 lt_cv_deplibs_check_method=pass_all
11372 ;;
11373
11374rdos*)
11375 lt_cv_deplibs_check_method=pass_all
11376 ;;
11377
11378solaris*)
11379 lt_cv_deplibs_check_method=pass_all
11380 ;;
11381
11382sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11383 lt_cv_deplibs_check_method=pass_all
11384 ;;
11385
11386sysv4 | sysv4.3*)
11387 case $host_vendor in
11388 motorola)
11389 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]'
11390 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11391 ;;
11392 ncr)
11393 lt_cv_deplibs_check_method=pass_all
11394 ;;
11395 sequent)
11396 lt_cv_file_magic_cmd='/bin/file'
11397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11398 ;;
11399 sni)
11400 lt_cv_file_magic_cmd='/bin/file'
11401 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11402 lt_cv_file_magic_test_file=/lib/libc.so
11403 ;;
11404 siemens)
11405 lt_cv_deplibs_check_method=pass_all
11406 ;;
11407 pc)
11408 lt_cv_deplibs_check_method=pass_all
11409 ;;
11410 esac
11411 ;;
11412
11413tpf*)
11414 lt_cv_deplibs_check_method=pass_all
11415 ;;
11416esac
11417
11418fi
11419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11420$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011421
11422file_magic_glob=
11423want_nocaseglob=no
11424if test "$build" = "$host"; then
11425 case $host_os in
11426 mingw* | pw32*)
11427 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11428 want_nocaseglob=yes
11429 else
11430 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11431 fi
11432 ;;
11433 esac
11434fi
11435
cristy73bd4a52010-10-05 11:24:23 +000011436file_magic_cmd=$lt_cv_file_magic_cmd
11437deplibs_check_method=$lt_cv_deplibs_check_method
11438test -z "$deplibs_check_method" && deplibs_check_method=unknown
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
cristyda16f162011-02-19 23:52:17 +000011451
11452
11453
11454
11455
11456
11457
11458
11459
11460
cristy73bd4a52010-10-05 11:24:23 +000011461if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011462 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11463set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011466if ${ac_cv_prog_DLLTOOL+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468else
11469 if test -n "$DLLTOOL"; then
11470 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11471else
11472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473for as_dir in $PATH
11474do
11475 IFS=$as_save_IFS
11476 test -z "$as_dir" && as_dir=.
11477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011479 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 break 2
11482 fi
11483done
11484 done
11485IFS=$as_save_IFS
11486
11487fi
11488fi
11489DLLTOOL=$ac_cv_prog_DLLTOOL
11490if test -n "$DLLTOOL"; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11492$as_echo "$DLLTOOL" >&6; }
11493else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495$as_echo "no" >&6; }
11496fi
11497
11498
11499fi
11500if test -z "$ac_cv_prog_DLLTOOL"; then
11501 ac_ct_DLLTOOL=$DLLTOOL
11502 # Extract the first word of "dlltool", so it can be a program name with args.
11503set dummy dlltool; ac_word=$2
11504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505$as_echo_n "checking for $ac_word... " >&6; }
11506if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508else
11509 if test -n "$ac_ct_DLLTOOL"; then
11510 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11511else
11512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513for as_dir in $PATH
11514do
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
11517 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011519 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11521 break 2
11522 fi
11523done
11524 done
11525IFS=$as_save_IFS
11526
11527fi
11528fi
11529ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11530if test -n "$ac_ct_DLLTOOL"; then
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11532$as_echo "$ac_ct_DLLTOOL" >&6; }
11533else
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535$as_echo "no" >&6; }
11536fi
11537
11538 if test "x$ac_ct_DLLTOOL" = x; then
11539 DLLTOOL="false"
11540 else
11541 case $cross_compiling:$ac_tool_warned in
11542yes:)
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11545ac_tool_warned=yes ;;
11546esac
11547 DLLTOOL=$ac_ct_DLLTOOL
11548 fi
11549else
11550 DLLTOOL="$ac_cv_prog_DLLTOOL"
11551fi
11552
11553test -z "$DLLTOOL" && DLLTOOL=dlltool
11554
11555
11556
11557
11558
11559
11560
11561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11562$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11563if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11564 $as_echo_n "(cached) " >&6
11565else
11566 lt_cv_sharedlib_from_linklib_cmd='unknown'
11567
11568case $host_os in
11569cygwin* | mingw* | pw32* | cegcc*)
11570 # two different shell functions defined in ltmain.sh
11571 # decide which to use based on capabilities of $DLLTOOL
11572 case `$DLLTOOL --help 2>&1` in
11573 *--identify-strict*)
11574 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11575 ;;
11576 *)
11577 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11578 ;;
11579 esac
11580 ;;
11581*)
11582 # fallback: assume linklib IS sharedlib
11583 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11584 ;;
11585esac
11586
11587fi
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11589$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11590sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11591test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11592
11593
11594
11595
11596
11597
11598
11599if test -n "$ac_tool_prefix"; then
11600 for ac_prog in ar
11601 do
11602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11603set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11605$as_echo_n "checking for $ac_word... " >&6; }
11606if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011607 $as_echo_n "(cached) " >&6
11608else
11609 if test -n "$AR"; then
11610 ac_cv_prog_AR="$AR" # Let the user override the test.
11611else
11612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613for as_dir in $PATH
11614do
11615 IFS=$as_save_IFS
11616 test -z "$as_dir" && as_dir=.
11617 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011619 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11621 break 2
11622 fi
11623done
11624 done
11625IFS=$as_save_IFS
11626
11627fi
11628fi
11629AR=$ac_cv_prog_AR
11630if test -n "$AR"; then
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11632$as_echo "$AR" >&6; }
11633else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635$as_echo "no" >&6; }
11636fi
11637
11638
cristyda16f162011-02-19 23:52:17 +000011639 test -n "$AR" && break
11640 done
cristy73bd4a52010-10-05 11:24:23 +000011641fi
cristyda16f162011-02-19 23:52:17 +000011642if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011643 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011644 for ac_prog in ar
11645do
11646 # Extract the first word of "$ac_prog", so it can be a program name with args.
11647set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11649$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011650if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011651 $as_echo_n "(cached) " >&6
11652else
11653 if test -n "$ac_ct_AR"; then
11654 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11655else
11656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657for as_dir in $PATH
11658do
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
11661 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011663 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 break 2
11666 fi
11667done
11668 done
11669IFS=$as_save_IFS
11670
11671fi
11672fi
11673ac_ct_AR=$ac_cv_prog_ac_ct_AR
11674if test -n "$ac_ct_AR"; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11676$as_echo "$ac_ct_AR" >&6; }
11677else
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679$as_echo "no" >&6; }
11680fi
11681
cristyda16f162011-02-19 23:52:17 +000011682
11683 test -n "$ac_ct_AR" && break
11684done
11685
cristy73bd4a52010-10-05 11:24:23 +000011686 if test "x$ac_ct_AR" = x; then
11687 AR="false"
11688 else
11689 case $cross_compiling:$ac_tool_warned in
11690yes:)
11691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11693ac_tool_warned=yes ;;
11694esac
11695 AR=$ac_ct_AR
11696 fi
cristy73bd4a52010-10-05 11:24:23 +000011697fi
11698
cristyda16f162011-02-19 23:52:17 +000011699: ${AR=ar}
11700: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
cristyda16f162011-02-19 23:52:17 +000011712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11713$as_echo_n "checking for archiver @FILE support... " >&6; }
11714if ${lt_cv_ar_at_file+:} false; then :
11715 $as_echo_n "(cached) " >&6
11716else
11717 lt_cv_ar_at_file=no
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719/* end confdefs.h. */
11720
11721int
11722main ()
11723{
11724
11725 ;
11726 return 0;
11727}
11728_ACEOF
11729if ac_fn_c_try_compile "$LINENO"; then :
11730 echo conftest.$ac_objext > conftest.lst
11731 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11733 (eval $lt_ar_try) 2>&5
11734 ac_status=$?
11735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11736 test $ac_status = 0; }
11737 if test "$ac_status" -eq 0; then
11738 # Ensure the archiver fails upon bogus file names.
11739 rm -f conftest.$ac_objext libconftest.a
11740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11741 (eval $lt_ar_try) 2>&5
11742 ac_status=$?
11743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11744 test $ac_status = 0; }
11745 if test "$ac_status" -ne 0; then
11746 lt_cv_ar_at_file=@
11747 fi
11748 fi
11749 rm -f conftest.* libconftest.a
11750
11751fi
11752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11753
11754fi
11755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11756$as_echo "$lt_cv_ar_at_file" >&6; }
11757
11758if test "x$lt_cv_ar_at_file" = xno; then
11759 archiver_list_spec=
11760else
11761 archiver_list_spec=$lt_cv_ar_at_file
11762fi
11763
11764
11765
11766
11767
11768
11769
cristy73bd4a52010-10-05 11:24:23 +000011770if test -n "$ac_tool_prefix"; then
11771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11772set dummy ${ac_tool_prefix}strip; ac_word=$2
11773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11774$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011775if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011776 $as_echo_n "(cached) " >&6
11777else
11778 if test -n "$STRIP"; then
11779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11780else
11781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782for as_dir in $PATH
11783do
11784 IFS=$as_save_IFS
11785 test -z "$as_dir" && as_dir=.
11786 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011788 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11790 break 2
11791 fi
11792done
11793 done
11794IFS=$as_save_IFS
11795
11796fi
11797fi
11798STRIP=$ac_cv_prog_STRIP
11799if test -n "$STRIP"; then
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11801$as_echo "$STRIP" >&6; }
11802else
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804$as_echo "no" >&6; }
11805fi
11806
11807
11808fi
11809if test -z "$ac_cv_prog_STRIP"; then
11810 ac_ct_STRIP=$STRIP
11811 # Extract the first word of "strip", so it can be a program name with args.
11812set dummy strip; ac_word=$2
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11814$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011815if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011816 $as_echo_n "(cached) " >&6
11817else
11818 if test -n "$ac_ct_STRIP"; then
11819 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11820else
11821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822for as_dir in $PATH
11823do
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011828 ac_cv_prog_ac_ct_STRIP="strip"
11829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 break 2
11831 fi
11832done
11833 done
11834IFS=$as_save_IFS
11835
11836fi
11837fi
11838ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11839if test -n "$ac_ct_STRIP"; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11841$as_echo "$ac_ct_STRIP" >&6; }
11842else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844$as_echo "no" >&6; }
11845fi
11846
11847 if test "x$ac_ct_STRIP" = x; then
11848 STRIP=":"
11849 else
11850 case $cross_compiling:$ac_tool_warned in
11851yes:)
11852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11854ac_tool_warned=yes ;;
11855esac
11856 STRIP=$ac_ct_STRIP
11857 fi
11858else
11859 STRIP="$ac_cv_prog_STRIP"
11860fi
11861
11862test -z "$STRIP" && STRIP=:
11863
11864
11865
11866
11867
11868
11869if test -n "$ac_tool_prefix"; then
11870 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11871set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11873$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011874if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011875 $as_echo_n "(cached) " >&6
11876else
11877 if test -n "$RANLIB"; then
11878 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11879else
11880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881for as_dir in $PATH
11882do
11883 IFS=$as_save_IFS
11884 test -z "$as_dir" && as_dir=.
11885 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011887 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11889 break 2
11890 fi
11891done
11892 done
11893IFS=$as_save_IFS
11894
11895fi
11896fi
11897RANLIB=$ac_cv_prog_RANLIB
11898if test -n "$RANLIB"; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11900$as_echo "$RANLIB" >&6; }
11901else
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903$as_echo "no" >&6; }
11904fi
11905
11906
11907fi
11908if test -z "$ac_cv_prog_RANLIB"; then
11909 ac_ct_RANLIB=$RANLIB
11910 # Extract the first word of "ranlib", so it can be a program name with args.
11911set dummy ranlib; ac_word=$2
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11913$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011914if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011915 $as_echo_n "(cached) " >&6
11916else
11917 if test -n "$ac_ct_RANLIB"; then
11918 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11919else
11920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921for as_dir in $PATH
11922do
11923 IFS=$as_save_IFS
11924 test -z "$as_dir" && as_dir=.
11925 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011927 ac_cv_prog_ac_ct_RANLIB="ranlib"
11928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11929 break 2
11930 fi
11931done
11932 done
11933IFS=$as_save_IFS
11934
11935fi
11936fi
11937ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11938if test -n "$ac_ct_RANLIB"; then
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11940$as_echo "$ac_ct_RANLIB" >&6; }
11941else
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943$as_echo "no" >&6; }
11944fi
11945
11946 if test "x$ac_ct_RANLIB" = x; then
11947 RANLIB=":"
11948 else
11949 case $cross_compiling:$ac_tool_warned in
11950yes:)
11951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11953ac_tool_warned=yes ;;
11954esac
11955 RANLIB=$ac_ct_RANLIB
11956 fi
11957else
11958 RANLIB="$ac_cv_prog_RANLIB"
11959fi
11960
11961test -z "$RANLIB" && RANLIB=:
11962
11963
11964
11965
11966
11967
11968# Determine commands to create old-style static archives.
11969old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11970old_postinstall_cmds='chmod 644 $oldlib'
11971old_postuninstall_cmds=
11972
11973if test -n "$RANLIB"; then
11974 case $host_os in
11975 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011976 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011977 ;;
11978 *)
cristy99bd5232011-12-07 14:38:20 +000011979 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011980 ;;
11981 esac
cristy99bd5232011-12-07 14:38:20 +000011982 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011983fi
11984
cristy0c60a692010-11-04 01:09:47 +000011985case $host_os in
11986 darwin*)
11987 lock_old_archive_extraction=yes ;;
11988 *)
11989 lock_old_archive_extraction=no ;;
11990esac
11991
11992
11993
11994
11995
11996
cristy73bd4a52010-10-05 11:24:23 +000011997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030# If no C compiler was specified, use CC.
12031LTCC=${LTCC-"$CC"}
12032
12033# If no C compiler flags were specified, use CFLAGS.
12034LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12035
12036# Allow CC to be a program name with arguments.
12037compiler=$CC
12038
12039
12040# Check for command to grab the raw symbol name followed by C symbol from nm.
12041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12042$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012043if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012044 $as_echo_n "(cached) " >&6
12045else
12046
12047# These are sane defaults that work on at least a few old systems.
12048# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12049
12050# Character class describing NM global symbol codes.
12051symcode='[BCDEGRST]'
12052
12053# Regexp to match symbols that can be accessed directly from C.
12054sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12055
12056# Define system-specific variables.
12057case $host_os in
12058aix*)
12059 symcode='[BCDT]'
12060 ;;
12061cygwin* | mingw* | pw32* | cegcc*)
12062 symcode='[ABCDGISTW]'
12063 ;;
12064hpux*)
12065 if test "$host_cpu" = ia64; then
12066 symcode='[ABCDEGRST]'
12067 fi
12068 ;;
12069irix* | nonstopux*)
12070 symcode='[BCDEGRST]'
12071 ;;
12072osf*)
12073 symcode='[BCDEGQRST]'
12074 ;;
12075solaris*)
12076 symcode='[BDRT]'
12077 ;;
12078sco3.2v5*)
12079 symcode='[DT]'
12080 ;;
12081sysv4.2uw2*)
12082 symcode='[DT]'
12083 ;;
12084sysv5* | sco5v6* | unixware* | OpenUNIX*)
12085 symcode='[ABDT]'
12086 ;;
12087sysv4)
12088 symcode='[DFNSTU]'
12089 ;;
12090esac
12091
12092# If we're using GNU nm, then use its standard symbol codes.
12093case `$NM -V 2>&1` in
12094*GNU* | *'with BFD'*)
12095 symcode='[ABCDGIRSTW]' ;;
12096esac
12097
12098# Transform an extracted symbol line into a proper C declaration.
12099# Some systems (esp. on ia64) link data and code symbols differently,
12100# so use this general approach.
12101lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12102
12103# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012104lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12105lt_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 +000012106
12107# Handle CRLF in mingw tool chain
12108opt_cr=
12109case $build_os in
12110mingw*)
12111 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12112 ;;
12113esac
12114
12115# Try without a prefix underscore, then with it.
12116for ac_symprfx in "" "_"; do
12117
12118 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12119 symxfrm="\\1 $ac_symprfx\\2 \\2"
12120
12121 # Write the raw and C identifiers.
12122 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12123 # Fake it for dumpbin and say T for any non-static function
12124 # and D for any global variable.
12125 # Also find C++ and __fastcall symbols from MSVC++,
12126 # which start with @ or ?.
12127 lt_cv_sys_global_symbol_pipe="$AWK '"\
12128" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012129" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012130" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12131" \$ 0!~/External *\|/{next};"\
12132" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12133" {if(hide[section]) next};"\
12134" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12135" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12136" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12137" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12138" ' prfx=^$ac_symprfx"
12139 else
12140 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12141 fi
cristyda16f162011-02-19 23:52:17 +000012142 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012143
12144 # Check to see that the pipe works correctly.
12145 pipe_works=no
12146
12147 rm -f conftest*
12148 cat > conftest.$ac_ext <<_LT_EOF
12149#ifdef __cplusplus
12150extern "C" {
12151#endif
12152char nm_test_var;
12153void nm_test_func(void);
12154void nm_test_func(void){}
12155#ifdef __cplusplus
12156}
12157#endif
12158int main(){nm_test_var='a';nm_test_func();return(0);}
12159_LT_EOF
12160
12161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12162 (eval $ac_compile) 2>&5
12163 ac_status=$?
12164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12165 test $ac_status = 0; }; then
12166 # Now try to grab the symbols.
12167 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12169 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012170 ac_status=$?
12171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12172 test $ac_status = 0; } && test -s "$nlist"; then
12173 # Try sorting and uniquifying the output.
12174 if sort "$nlist" | uniq > "$nlist"T; then
12175 mv -f "$nlist"T "$nlist"
12176 else
12177 rm -f "$nlist"T
12178 fi
12179
12180 # Make sure that we snagged all the symbols we need.
12181 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12182 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12183 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012184/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12185#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12186/* DATA imports from DLLs on WIN32 con't be const, because runtime
12187 relocations are performed -- see ld's documentation on pseudo-relocs. */
12188# define LT_DLSYM_CONST
12189#elif defined(__osf__)
12190/* This system does not cope well with relocations in const data. */
12191# define LT_DLSYM_CONST
12192#else
12193# define LT_DLSYM_CONST const
12194#endif
12195
cristy73bd4a52010-10-05 11:24:23 +000012196#ifdef __cplusplus
12197extern "C" {
12198#endif
12199
12200_LT_EOF
12201 # Now generate the symbol file.
12202 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12203
12204 cat <<_LT_EOF >> conftest.$ac_ext
12205
12206/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012207LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012208 const char *name;
12209 void *address;
12210}
12211lt__PROGRAM__LTX_preloaded_symbols[] =
12212{
12213 { "@PROGRAM@", (void *) 0 },
12214_LT_EOF
12215 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12216 cat <<\_LT_EOF >> conftest.$ac_ext
12217 {0, (void *) 0}
12218};
12219
12220/* This works around a problem in FreeBSD linker */
12221#ifdef FREEBSD_WORKAROUND
12222static const void *lt_preloaded_setup() {
12223 return lt__PROGRAM__LTX_preloaded_symbols;
12224}
12225#endif
12226
12227#ifdef __cplusplus
12228}
12229#endif
12230_LT_EOF
12231 # Now try linking the two files.
12232 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012233 lt_globsym_save_LIBS=$LIBS
12234 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012235 LIBS="conftstm.$ac_objext"
12236 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12238 (eval $ac_link) 2>&5
12239 ac_status=$?
12240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12241 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12242 pipe_works=yes
12243 fi
cristyda16f162011-02-19 23:52:17 +000012244 LIBS=$lt_globsym_save_LIBS
12245 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012246 else
12247 echo "cannot find nm_test_func in $nlist" >&5
12248 fi
12249 else
12250 echo "cannot find nm_test_var in $nlist" >&5
12251 fi
12252 else
12253 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12254 fi
12255 else
12256 echo "$progname: failed program was:" >&5
12257 cat conftest.$ac_ext >&5
12258 fi
12259 rm -rf conftest* conftst*
12260
12261 # Do not use the global_symbol_pipe unless it works.
12262 if test "$pipe_works" = yes; then
12263 break
12264 else
12265 lt_cv_sys_global_symbol_pipe=
12266 fi
12267done
12268
12269fi
12270
12271if test -z "$lt_cv_sys_global_symbol_pipe"; then
12272 lt_cv_sys_global_symbol_to_cdecl=
12273fi
12274if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12276$as_echo "failed" >&6; }
12277else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12279$as_echo "ok" >&6; }
12280fi
12281
cristyda16f162011-02-19 23:52:17 +000012282# Response file support.
12283if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12284 nm_file_list_spec='@'
12285elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12286 nm_file_list_spec='@'
12287fi
cristy73bd4a52010-10-05 11:24:23 +000012288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
cristyda16f162011-02-19 23:52:17 +000012309
12310
12311
12312
12313
12314
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12316$as_echo_n "checking for sysroot... " >&6; }
12317
12318# Check whether --with-sysroot was given.
12319if test "${with_sysroot+set}" = set; then :
12320 withval=$with_sysroot;
12321else
12322 with_sysroot=no
12323fi
12324
12325
12326lt_sysroot=
12327case ${with_sysroot} in #(
12328 yes)
12329 if test "$GCC" = yes; then
12330 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12331 fi
12332 ;; #(
12333 /*)
12334 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12335 ;; #(
12336 no|'')
12337 ;; #(
12338 *)
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12340$as_echo "${with_sysroot}" >&6; }
12341 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12342 ;;
12343esac
12344
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12346$as_echo "${lt_sysroot:-no}" >&6; }
12347
12348
12349
12350
12351
cristy73bd4a52010-10-05 11:24:23 +000012352# Check whether --enable-libtool-lock was given.
12353if test "${enable_libtool_lock+set}" = set; then :
12354 enableval=$enable_libtool_lock;
12355fi
12356
12357test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12358
12359# Some flags need to be propagated to the compiler or linker for good
12360# libtool support.
12361case $host in
12362ia64-*-hpux*)
12363 # Find out which ABI we are using.
12364 echo 'int i;' > conftest.$ac_ext
12365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12366 (eval $ac_compile) 2>&5
12367 ac_status=$?
12368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12369 test $ac_status = 0; }; then
12370 case `/usr/bin/file conftest.$ac_objext` in
12371 *ELF-32*)
12372 HPUX_IA64_MODE="32"
12373 ;;
12374 *ELF-64*)
12375 HPUX_IA64_MODE="64"
12376 ;;
12377 esac
12378 fi
12379 rm -rf conftest*
12380 ;;
12381*-*-irix6*)
12382 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012383 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12385 (eval $ac_compile) 2>&5
12386 ac_status=$?
12387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12388 test $ac_status = 0; }; then
12389 if test "$lt_cv_prog_gnu_ld" = yes; then
12390 case `/usr/bin/file conftest.$ac_objext` in
12391 *32-bit*)
12392 LD="${LD-ld} -melf32bsmip"
12393 ;;
12394 *N32*)
12395 LD="${LD-ld} -melf32bmipn32"
12396 ;;
12397 *64-bit*)
12398 LD="${LD-ld} -melf64bmip"
12399 ;;
12400 esac
12401 else
12402 case `/usr/bin/file conftest.$ac_objext` in
12403 *32-bit*)
12404 LD="${LD-ld} -32"
12405 ;;
12406 *N32*)
12407 LD="${LD-ld} -n32"
12408 ;;
12409 *64-bit*)
12410 LD="${LD-ld} -64"
12411 ;;
12412 esac
12413 fi
12414 fi
12415 rm -rf conftest*
12416 ;;
12417
12418x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12419s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12420 # Find out which ABI we are using.
12421 echo 'int i;' > conftest.$ac_ext
12422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12423 (eval $ac_compile) 2>&5
12424 ac_status=$?
12425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12426 test $ac_status = 0; }; then
12427 case `/usr/bin/file conftest.o` in
12428 *32-bit*)
12429 case $host in
12430 x86_64-*kfreebsd*-gnu)
12431 LD="${LD-ld} -m elf_i386_fbsd"
12432 ;;
12433 x86_64-*linux*)
12434 LD="${LD-ld} -m elf_i386"
12435 ;;
12436 ppc64-*linux*|powerpc64-*linux*)
12437 LD="${LD-ld} -m elf32ppclinux"
12438 ;;
12439 s390x-*linux*)
12440 LD="${LD-ld} -m elf_s390"
12441 ;;
12442 sparc64-*linux*)
12443 LD="${LD-ld} -m elf32_sparc"
12444 ;;
12445 esac
12446 ;;
12447 *64-bit*)
12448 case $host in
12449 x86_64-*kfreebsd*-gnu)
12450 LD="${LD-ld} -m elf_x86_64_fbsd"
12451 ;;
12452 x86_64-*linux*)
12453 LD="${LD-ld} -m elf_x86_64"
12454 ;;
12455 ppc*-*linux*|powerpc*-*linux*)
12456 LD="${LD-ld} -m elf64ppc"
12457 ;;
12458 s390*-*linux*|s390*-*tpf*)
12459 LD="${LD-ld} -m elf64_s390"
12460 ;;
12461 sparc*-*linux*)
12462 LD="${LD-ld} -m elf64_sparc"
12463 ;;
12464 esac
12465 ;;
12466 esac
12467 fi
12468 rm -rf conftest*
12469 ;;
12470
12471*-*-sco3.2v5*)
12472 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12473 SAVE_CFLAGS="$CFLAGS"
12474 CFLAGS="$CFLAGS -belf"
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12476$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012477if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012478 $as_echo_n "(cached) " >&6
12479else
12480 ac_ext=c
12481ac_cpp='$CPP $CPPFLAGS'
12482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12484ac_compiler_gnu=$ac_cv_c_compiler_gnu
12485
12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487/* end confdefs.h. */
12488
12489int
12490main ()
12491{
12492
12493 ;
12494 return 0;
12495}
12496_ACEOF
12497if ac_fn_c_try_link "$LINENO"; then :
12498 lt_cv_cc_needs_belf=yes
12499else
12500 lt_cv_cc_needs_belf=no
12501fi
12502rm -f core conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext conftest.$ac_ext
12504 ac_ext=c
12505ac_cpp='$CPP $CPPFLAGS'
12506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12508ac_compiler_gnu=$ac_cv_c_compiler_gnu
12509
12510fi
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12512$as_echo "$lt_cv_cc_needs_belf" >&6; }
12513 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12514 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12515 CFLAGS="$SAVE_CFLAGS"
12516 fi
12517 ;;
cristy99bd5232011-12-07 14:38:20 +000012518*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012519 # Find out which ABI we are using.
12520 echo 'int i;' > conftest.$ac_ext
12521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12522 (eval $ac_compile) 2>&5
12523 ac_status=$?
12524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12525 test $ac_status = 0; }; then
12526 case `/usr/bin/file conftest.o` in
12527 *64-bit*)
12528 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012529 yes*)
12530 case $host in
12531 i?86-*-solaris*)
12532 LD="${LD-ld} -m elf_x86_64"
12533 ;;
12534 sparc*-*-solaris*)
12535 LD="${LD-ld} -m elf64_sparc"
12536 ;;
12537 esac
12538 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12539 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12540 LD="${LD-ld}_sol2"
12541 fi
12542 ;;
cristy73bd4a52010-10-05 11:24:23 +000012543 *)
12544 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12545 LD="${LD-ld} -64"
12546 fi
12547 ;;
12548 esac
12549 ;;
12550 esac
12551 fi
12552 rm -rf conftest*
12553 ;;
12554esac
12555
12556need_locks="$enable_libtool_lock"
12557
cristyda16f162011-02-19 23:52:17 +000012558if test -n "$ac_tool_prefix"; then
12559 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12560set dummy ${ac_tool_prefix}mt; ac_word=$2
12561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12562$as_echo_n "checking for $ac_word... " >&6; }
12563if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565else
12566 if test -n "$MANIFEST_TOOL"; then
12567 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12568else
12569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570for as_dir in $PATH
12571do
12572 IFS=$as_save_IFS
12573 test -z "$as_dir" && as_dir=.
12574 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012576 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12578 break 2
12579 fi
12580done
12581 done
12582IFS=$as_save_IFS
12583
12584fi
12585fi
12586MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12587if test -n "$MANIFEST_TOOL"; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12589$as_echo "$MANIFEST_TOOL" >&6; }
12590else
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592$as_echo "no" >&6; }
12593fi
12594
12595
12596fi
12597if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12598 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12599 # Extract the first word of "mt", so it can be a program name with args.
12600set dummy mt; ac_word=$2
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12602$as_echo_n "checking for $ac_word... " >&6; }
12603if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12604 $as_echo_n "(cached) " >&6
12605else
12606 if test -n "$ac_ct_MANIFEST_TOOL"; then
12607 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12608else
12609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610for as_dir in $PATH
12611do
12612 IFS=$as_save_IFS
12613 test -z "$as_dir" && as_dir=.
12614 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012616 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 break 2
12619 fi
12620done
12621 done
12622IFS=$as_save_IFS
12623
12624fi
12625fi
12626ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12627if test -n "$ac_ct_MANIFEST_TOOL"; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12629$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12630else
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632$as_echo "no" >&6; }
12633fi
12634
12635 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12636 MANIFEST_TOOL=":"
12637 else
12638 case $cross_compiling:$ac_tool_warned in
12639yes:)
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12642ac_tool_warned=yes ;;
12643esac
12644 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12645 fi
12646else
12647 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12648fi
12649
12650test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12652$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12653if ${lt_cv_path_mainfest_tool+:} false; then :
12654 $as_echo_n "(cached) " >&6
12655else
12656 lt_cv_path_mainfest_tool=no
12657 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12658 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12659 cat conftest.err >&5
12660 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12661 lt_cv_path_mainfest_tool=yes
12662 fi
12663 rm -f conftest*
12664fi
12665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12666$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12667if test "x$lt_cv_path_mainfest_tool" != xyes; then
12668 MANIFEST_TOOL=:
12669fi
12670
12671
12672
12673
12674
cristy73bd4a52010-10-05 11:24:23 +000012675
12676 case $host_os in
12677 rhapsody* | darwin*)
12678 if test -n "$ac_tool_prefix"; then
12679 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12680set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012683if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012684 $as_echo_n "(cached) " >&6
12685else
12686 if test -n "$DSYMUTIL"; then
12687 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12688else
12689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690for as_dir in $PATH
12691do
12692 IFS=$as_save_IFS
12693 test -z "$as_dir" && as_dir=.
12694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012696 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12698 break 2
12699 fi
12700done
12701 done
12702IFS=$as_save_IFS
12703
12704fi
12705fi
12706DSYMUTIL=$ac_cv_prog_DSYMUTIL
12707if test -n "$DSYMUTIL"; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12709$as_echo "$DSYMUTIL" >&6; }
12710else
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712$as_echo "no" >&6; }
12713fi
12714
12715
12716fi
12717if test -z "$ac_cv_prog_DSYMUTIL"; then
12718 ac_ct_DSYMUTIL=$DSYMUTIL
12719 # Extract the first word of "dsymutil", so it can be a program name with args.
12720set dummy dsymutil; ac_word=$2
12721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012723if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012724 $as_echo_n "(cached) " >&6
12725else
12726 if test -n "$ac_ct_DSYMUTIL"; then
12727 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12728else
12729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730for as_dir in $PATH
12731do
12732 IFS=$as_save_IFS
12733 test -z "$as_dir" && as_dir=.
12734 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012736 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738 break 2
12739 fi
12740done
12741 done
12742IFS=$as_save_IFS
12743
12744fi
12745fi
12746ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12747if test -n "$ac_ct_DSYMUTIL"; then
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12749$as_echo "$ac_ct_DSYMUTIL" >&6; }
12750else
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752$as_echo "no" >&6; }
12753fi
12754
12755 if test "x$ac_ct_DSYMUTIL" = x; then
12756 DSYMUTIL=":"
12757 else
12758 case $cross_compiling:$ac_tool_warned in
12759yes:)
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12762ac_tool_warned=yes ;;
12763esac
12764 DSYMUTIL=$ac_ct_DSYMUTIL
12765 fi
12766else
12767 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12768fi
12769
12770 if test -n "$ac_tool_prefix"; then
12771 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12772set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012775if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012776 $as_echo_n "(cached) " >&6
12777else
12778 if test -n "$NMEDIT"; then
12779 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12780else
12781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782for as_dir in $PATH
12783do
12784 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=.
12786 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012788 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790 break 2
12791 fi
12792done
12793 done
12794IFS=$as_save_IFS
12795
12796fi
12797fi
12798NMEDIT=$ac_cv_prog_NMEDIT
12799if test -n "$NMEDIT"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12801$as_echo "$NMEDIT" >&6; }
12802else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804$as_echo "no" >&6; }
12805fi
12806
12807
12808fi
12809if test -z "$ac_cv_prog_NMEDIT"; then
12810 ac_ct_NMEDIT=$NMEDIT
12811 # Extract the first word of "nmedit", so it can be a program name with args.
12812set dummy nmedit; ac_word=$2
12813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012815if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012816 $as_echo_n "(cached) " >&6
12817else
12818 if test -n "$ac_ct_NMEDIT"; then
12819 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12820else
12821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822for as_dir in $PATH
12823do
12824 IFS=$as_save_IFS
12825 test -z "$as_dir" && as_dir=.
12826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012828 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12830 break 2
12831 fi
12832done
12833 done
12834IFS=$as_save_IFS
12835
12836fi
12837fi
12838ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12839if test -n "$ac_ct_NMEDIT"; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12841$as_echo "$ac_ct_NMEDIT" >&6; }
12842else
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844$as_echo "no" >&6; }
12845fi
12846
12847 if test "x$ac_ct_NMEDIT" = x; then
12848 NMEDIT=":"
12849 else
12850 case $cross_compiling:$ac_tool_warned in
12851yes:)
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12854ac_tool_warned=yes ;;
12855esac
12856 NMEDIT=$ac_ct_NMEDIT
12857 fi
12858else
12859 NMEDIT="$ac_cv_prog_NMEDIT"
12860fi
12861
12862 if test -n "$ac_tool_prefix"; then
12863 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12864set dummy ${ac_tool_prefix}lipo; ac_word=$2
12865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12866$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012867if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012868 $as_echo_n "(cached) " >&6
12869else
12870 if test -n "$LIPO"; then
12871 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12872else
12873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12874for as_dir in $PATH
12875do
12876 IFS=$as_save_IFS
12877 test -z "$as_dir" && as_dir=.
12878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012880 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12882 break 2
12883 fi
12884done
12885 done
12886IFS=$as_save_IFS
12887
12888fi
12889fi
12890LIPO=$ac_cv_prog_LIPO
12891if test -n "$LIPO"; then
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12893$as_echo "$LIPO" >&6; }
12894else
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896$as_echo "no" >&6; }
12897fi
12898
12899
12900fi
12901if test -z "$ac_cv_prog_LIPO"; then
12902 ac_ct_LIPO=$LIPO
12903 # Extract the first word of "lipo", so it can be a program name with args.
12904set dummy lipo; ac_word=$2
12905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012907if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012908 $as_echo_n "(cached) " >&6
12909else
12910 if test -n "$ac_ct_LIPO"; then
12911 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12912else
12913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914for as_dir in $PATH
12915do
12916 IFS=$as_save_IFS
12917 test -z "$as_dir" && as_dir=.
12918 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012920 ac_cv_prog_ac_ct_LIPO="lipo"
12921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922 break 2
12923 fi
12924done
12925 done
12926IFS=$as_save_IFS
12927
12928fi
12929fi
12930ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12931if test -n "$ac_ct_LIPO"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12933$as_echo "$ac_ct_LIPO" >&6; }
12934else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936$as_echo "no" >&6; }
12937fi
12938
12939 if test "x$ac_ct_LIPO" = x; then
12940 LIPO=":"
12941 else
12942 case $cross_compiling:$ac_tool_warned in
12943yes:)
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12946ac_tool_warned=yes ;;
12947esac
12948 LIPO=$ac_ct_LIPO
12949 fi
12950else
12951 LIPO="$ac_cv_prog_LIPO"
12952fi
12953
12954 if test -n "$ac_tool_prefix"; then
12955 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12956set dummy ${ac_tool_prefix}otool; ac_word=$2
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12958$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012959if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012960 $as_echo_n "(cached) " >&6
12961else
12962 if test -n "$OTOOL"; then
12963 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12964else
12965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966for as_dir in $PATH
12967do
12968 IFS=$as_save_IFS
12969 test -z "$as_dir" && as_dir=.
12970 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012972 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12974 break 2
12975 fi
12976done
12977 done
12978IFS=$as_save_IFS
12979
12980fi
12981fi
12982OTOOL=$ac_cv_prog_OTOOL
12983if test -n "$OTOOL"; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12985$as_echo "$OTOOL" >&6; }
12986else
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988$as_echo "no" >&6; }
12989fi
12990
12991
12992fi
12993if test -z "$ac_cv_prog_OTOOL"; then
12994 ac_ct_OTOOL=$OTOOL
12995 # Extract the first word of "otool", so it can be a program name with args.
12996set dummy otool; ac_word=$2
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012999if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013000 $as_echo_n "(cached) " >&6
13001else
13002 if test -n "$ac_ct_OTOOL"; then
13003 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13004else
13005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006for as_dir in $PATH
13007do
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013012 ac_cv_prog_ac_ct_OTOOL="otool"
13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014 break 2
13015 fi
13016done
13017 done
13018IFS=$as_save_IFS
13019
13020fi
13021fi
13022ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13023if test -n "$ac_ct_OTOOL"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13025$as_echo "$ac_ct_OTOOL" >&6; }
13026else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028$as_echo "no" >&6; }
13029fi
13030
13031 if test "x$ac_ct_OTOOL" = x; then
13032 OTOOL=":"
13033 else
13034 case $cross_compiling:$ac_tool_warned in
13035yes:)
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13038ac_tool_warned=yes ;;
13039esac
13040 OTOOL=$ac_ct_OTOOL
13041 fi
13042else
13043 OTOOL="$ac_cv_prog_OTOOL"
13044fi
13045
13046 if test -n "$ac_tool_prefix"; then
13047 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13048set dummy ${ac_tool_prefix}otool64; ac_word=$2
13049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13050$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013051if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013052 $as_echo_n "(cached) " >&6
13053else
13054 if test -n "$OTOOL64"; then
13055 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13056else
13057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13058for as_dir in $PATH
13059do
13060 IFS=$as_save_IFS
13061 test -z "$as_dir" && as_dir=.
13062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013064 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13066 break 2
13067 fi
13068done
13069 done
13070IFS=$as_save_IFS
13071
13072fi
13073fi
13074OTOOL64=$ac_cv_prog_OTOOL64
13075if test -n "$OTOOL64"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13077$as_echo "$OTOOL64" >&6; }
13078else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080$as_echo "no" >&6; }
13081fi
13082
13083
13084fi
13085if test -z "$ac_cv_prog_OTOOL64"; then
13086 ac_ct_OTOOL64=$OTOOL64
13087 # Extract the first word of "otool64", so it can be a program name with args.
13088set dummy otool64; ac_word=$2
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013091if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013092 $as_echo_n "(cached) " >&6
13093else
13094 if test -n "$ac_ct_OTOOL64"; then
13095 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13096else
13097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098for as_dir in $PATH
13099do
13100 IFS=$as_save_IFS
13101 test -z "$as_dir" && as_dir=.
13102 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013104 ac_cv_prog_ac_ct_OTOOL64="otool64"
13105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13106 break 2
13107 fi
13108done
13109 done
13110IFS=$as_save_IFS
13111
13112fi
13113fi
13114ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13115if test -n "$ac_ct_OTOOL64"; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13117$as_echo "$ac_ct_OTOOL64" >&6; }
13118else
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120$as_echo "no" >&6; }
13121fi
13122
13123 if test "x$ac_ct_OTOOL64" = x; then
13124 OTOOL64=":"
13125 else
13126 case $cross_compiling:$ac_tool_warned in
13127yes:)
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13130ac_tool_warned=yes ;;
13131esac
13132 OTOOL64=$ac_ct_OTOOL64
13133 fi
13134else
13135 OTOOL64="$ac_cv_prog_OTOOL64"
13136fi
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13165$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013166if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013167 $as_echo_n "(cached) " >&6
13168else
13169 lt_cv_apple_cc_single_mod=no
13170 if test -z "${LT_MULTI_MODULE}"; then
13171 # By default we will add the -single_module flag. You can override
13172 # by either setting the environment variable LT_MULTI_MODULE
13173 # non-empty at configure time, or by adding -multi_module to the
13174 # link flags.
13175 rm -rf libconftest.dylib*
13176 echo "int foo(void){return 1;}" > conftest.c
13177 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13178-dynamiclib -Wl,-single_module conftest.c" >&5
13179 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13180 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13181 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013182 # If there is a non-empty error log, and "single_module"
13183 # appears in it, assume the flag caused a linker warning
13184 if test -s conftest.err && $GREP single_module conftest.err; then
13185 cat conftest.err >&5
13186 # Otherwise, if the output was created with a 0 exit code from
13187 # the compiler, it worked.
13188 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013189 lt_cv_apple_cc_single_mod=yes
13190 else
13191 cat conftest.err >&5
13192 fi
13193 rm -rf libconftest.dylib*
13194 rm -f conftest.*
13195 fi
13196fi
13197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13198$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013199
cristy73bd4a52010-10-05 11:24:23 +000013200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13201$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013202if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013203 $as_echo_n "(cached) " >&6
13204else
13205 lt_cv_ld_exported_symbols_list=no
13206 save_LDFLAGS=$LDFLAGS
13207 echo "_main" > conftest.sym
13208 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210/* end confdefs.h. */
13211
13212int
13213main ()
13214{
13215
13216 ;
13217 return 0;
13218}
13219_ACEOF
13220if ac_fn_c_try_link "$LINENO"; then :
13221 lt_cv_ld_exported_symbols_list=yes
13222else
13223 lt_cv_ld_exported_symbols_list=no
13224fi
13225rm -f core conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13227 LDFLAGS="$save_LDFLAGS"
13228
13229fi
13230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13231$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013232
cristy0c60a692010-11-04 01:09:47 +000013233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13234$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013235if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013236 $as_echo_n "(cached) " >&6
13237else
13238 lt_cv_ld_force_load=no
13239 cat > conftest.c << _LT_EOF
13240int forced_loaded() { return 2;}
13241_LT_EOF
13242 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13243 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13244 echo "$AR cru libconftest.a conftest.o" >&5
13245 $AR cru libconftest.a conftest.o 2>&5
13246 echo "$RANLIB libconftest.a" >&5
13247 $RANLIB libconftest.a 2>&5
13248 cat > conftest.c << _LT_EOF
13249int main() { return 0;}
13250_LT_EOF
13251 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13252 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13253 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013254 if test -s conftest.err && $GREP force_load conftest.err; then
13255 cat conftest.err >&5
13256 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013257 lt_cv_ld_force_load=yes
13258 else
13259 cat conftest.err >&5
13260 fi
13261 rm -f conftest.err libconftest.a conftest conftest.c
13262 rm -rf conftest.dSYM
13263
13264fi
13265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13266$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013267 case $host_os in
13268 rhapsody* | darwin1.[012])
13269 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13270 darwin1.*)
13271 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13272 darwin*) # darwin 5.x on
13273 # if running on 10.5 or later, the deployment target defaults
13274 # to the OS version, if on x86, and 10.4, the deployment
13275 # target defaults to 10.4. Don't you love it?
13276 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13277 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13278 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13279 10.[012]*)
13280 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13281 10.*)
13282 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13283 esac
13284 ;;
13285 esac
13286 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13287 _lt_dar_single_mod='$single_module'
13288 fi
13289 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13290 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13291 else
13292 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13293 fi
cristy0c60a692010-11-04 01:09:47 +000013294 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013295 _lt_dsymutil='~$DSYMUTIL $lib || :'
13296 else
13297 _lt_dsymutil=
13298 fi
13299 ;;
13300 esac
13301
13302for ac_header in dlfcn.h
13303do :
13304 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13305"
cristyda16f162011-02-19 23:52:17 +000013306if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013307 cat >>confdefs.h <<_ACEOF
13308#define HAVE_DLFCN_H 1
13309_ACEOF
13310
13311fi
13312
13313done
13314
13315
13316
cristy73bd4a52010-10-05 11:24:23 +000013317
cristyda16f162011-02-19 23:52:17 +000013318func_stripname_cnf ()
13319{
13320 case ${2} in
13321 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13322 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13323 esac
13324} # func_stripname_cnf
13325
13326
13327
cristy73bd4a52010-10-05 11:24:23 +000013328
13329
13330# Set options
13331enable_win32_dll=yes
13332
13333case $host in
cristy0c60a692010-11-04 01:09:47 +000013334*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013335 if test -n "$ac_tool_prefix"; then
13336 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13337set dummy ${ac_tool_prefix}as; ac_word=$2
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13339$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013340if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013341 $as_echo_n "(cached) " >&6
13342else
13343 if test -n "$AS"; then
13344 ac_cv_prog_AS="$AS" # Let the user override the test.
13345else
13346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347for as_dir in $PATH
13348do
13349 IFS=$as_save_IFS
13350 test -z "$as_dir" && as_dir=.
13351 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013353 ac_cv_prog_AS="${ac_tool_prefix}as"
13354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355 break 2
13356 fi
13357done
13358 done
13359IFS=$as_save_IFS
13360
13361fi
13362fi
13363AS=$ac_cv_prog_AS
13364if test -n "$AS"; then
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13366$as_echo "$AS" >&6; }
13367else
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369$as_echo "no" >&6; }
13370fi
13371
13372
13373fi
13374if test -z "$ac_cv_prog_AS"; then
13375 ac_ct_AS=$AS
13376 # Extract the first word of "as", so it can be a program name with args.
13377set dummy as; ac_word=$2
13378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13379$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013380if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013381 $as_echo_n "(cached) " >&6
13382else
13383 if test -n "$ac_ct_AS"; then
13384 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13385else
13386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13387for as_dir in $PATH
13388do
13389 IFS=$as_save_IFS
13390 test -z "$as_dir" && as_dir=.
13391 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013393 ac_cv_prog_ac_ct_AS="as"
13394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13395 break 2
13396 fi
13397done
13398 done
13399IFS=$as_save_IFS
13400
13401fi
13402fi
13403ac_ct_AS=$ac_cv_prog_ac_ct_AS
13404if test -n "$ac_ct_AS"; then
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13406$as_echo "$ac_ct_AS" >&6; }
13407else
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409$as_echo "no" >&6; }
13410fi
13411
13412 if test "x$ac_ct_AS" = x; then
13413 AS="false"
13414 else
13415 case $cross_compiling:$ac_tool_warned in
13416yes:)
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13419ac_tool_warned=yes ;;
13420esac
13421 AS=$ac_ct_AS
13422 fi
13423else
13424 AS="$ac_cv_prog_AS"
13425fi
13426
13427 if test -n "$ac_tool_prefix"; then
13428 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13429set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13431$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013432if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013433 $as_echo_n "(cached) " >&6
13434else
13435 if test -n "$DLLTOOL"; then
13436 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13437else
13438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13439for as_dir in $PATH
13440do
13441 IFS=$as_save_IFS
13442 test -z "$as_dir" && as_dir=.
13443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013445 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13447 break 2
13448 fi
13449done
13450 done
13451IFS=$as_save_IFS
13452
13453fi
13454fi
13455DLLTOOL=$ac_cv_prog_DLLTOOL
13456if test -n "$DLLTOOL"; then
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13458$as_echo "$DLLTOOL" >&6; }
13459else
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461$as_echo "no" >&6; }
13462fi
13463
13464
13465fi
13466if test -z "$ac_cv_prog_DLLTOOL"; then
13467 ac_ct_DLLTOOL=$DLLTOOL
13468 # Extract the first word of "dlltool", so it can be a program name with args.
13469set dummy dlltool; ac_word=$2
13470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13471$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013472if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013473 $as_echo_n "(cached) " >&6
13474else
13475 if test -n "$ac_ct_DLLTOOL"; then
13476 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13477else
13478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13479for as_dir in $PATH
13480do
13481 IFS=$as_save_IFS
13482 test -z "$as_dir" && as_dir=.
13483 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013485 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13487 break 2
13488 fi
13489done
13490 done
13491IFS=$as_save_IFS
13492
13493fi
13494fi
13495ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13496if test -n "$ac_ct_DLLTOOL"; then
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13498$as_echo "$ac_ct_DLLTOOL" >&6; }
13499else
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501$as_echo "no" >&6; }
13502fi
13503
13504 if test "x$ac_ct_DLLTOOL" = x; then
13505 DLLTOOL="false"
13506 else
13507 case $cross_compiling:$ac_tool_warned in
13508yes:)
13509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13511ac_tool_warned=yes ;;
13512esac
13513 DLLTOOL=$ac_ct_DLLTOOL
13514 fi
13515else
13516 DLLTOOL="$ac_cv_prog_DLLTOOL"
13517fi
13518
13519 if test -n "$ac_tool_prefix"; then
13520 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13521set dummy ${ac_tool_prefix}objdump; ac_word=$2
13522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13523$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013524if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013525 $as_echo_n "(cached) " >&6
13526else
13527 if test -n "$OBJDUMP"; then
13528 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13529else
13530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531for as_dir in $PATH
13532do
13533 IFS=$as_save_IFS
13534 test -z "$as_dir" && as_dir=.
13535 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013537 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539 break 2
13540 fi
13541done
13542 done
13543IFS=$as_save_IFS
13544
13545fi
13546fi
13547OBJDUMP=$ac_cv_prog_OBJDUMP
13548if test -n "$OBJDUMP"; then
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13550$as_echo "$OBJDUMP" >&6; }
13551else
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553$as_echo "no" >&6; }
13554fi
13555
13556
13557fi
13558if test -z "$ac_cv_prog_OBJDUMP"; then
13559 ac_ct_OBJDUMP=$OBJDUMP
13560 # Extract the first word of "objdump", so it can be a program name with args.
13561set dummy objdump; ac_word=$2
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013564if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013565 $as_echo_n "(cached) " >&6
13566else
13567 if test -n "$ac_ct_OBJDUMP"; then
13568 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13569else
13570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571for as_dir in $PATH
13572do
13573 IFS=$as_save_IFS
13574 test -z "$as_dir" && as_dir=.
13575 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013577 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13579 break 2
13580 fi
13581done
13582 done
13583IFS=$as_save_IFS
13584
13585fi
13586fi
13587ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13588if test -n "$ac_ct_OBJDUMP"; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13590$as_echo "$ac_ct_OBJDUMP" >&6; }
13591else
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593$as_echo "no" >&6; }
13594fi
13595
13596 if test "x$ac_ct_OBJDUMP" = x; then
13597 OBJDUMP="false"
13598 else
13599 case $cross_compiling:$ac_tool_warned in
13600yes:)
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13603ac_tool_warned=yes ;;
13604esac
13605 OBJDUMP=$ac_ct_OBJDUMP
13606 fi
13607else
13608 OBJDUMP="$ac_cv_prog_OBJDUMP"
13609fi
13610
13611 ;;
13612esac
13613
13614test -z "$AS" && AS=as
13615
13616
13617
13618
13619
13620test -z "$DLLTOOL" && DLLTOOL=dlltool
13621
13622
13623
13624
13625
13626test -z "$OBJDUMP" && OBJDUMP=objdump
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636 # Check whether --enable-shared was given.
13637if test "${enable_shared+set}" = set; then :
13638 enableval=$enable_shared; p=${PACKAGE-default}
13639 case $enableval in
13640 yes) enable_shared=yes ;;
13641 no) enable_shared=no ;;
13642 *)
13643 enable_shared=no
13644 # Look at the argument we got. We use all the common list separators.
13645 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13646 for pkg in $enableval; do
13647 IFS="$lt_save_ifs"
13648 if test "X$pkg" = "X$p"; then
13649 enable_shared=yes
13650 fi
13651 done
13652 IFS="$lt_save_ifs"
13653 ;;
13654 esac
13655else
13656 enable_shared=yes
13657fi
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667 # Check whether --enable-static was given.
13668if test "${enable_static+set}" = set; then :
13669 enableval=$enable_static; p=${PACKAGE-default}
13670 case $enableval in
13671 yes) enable_static=yes ;;
13672 no) enable_static=no ;;
13673 *)
13674 enable_static=no
13675 # Look at the argument we got. We use all the common list separators.
13676 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13677 for pkg in $enableval; do
13678 IFS="$lt_save_ifs"
13679 if test "X$pkg" = "X$p"; then
13680 enable_static=yes
13681 fi
13682 done
13683 IFS="$lt_save_ifs"
13684 ;;
13685 esac
13686else
13687 enable_static=yes
13688fi
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699# Check whether --with-pic was given.
13700if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013701 withval=$with_pic; lt_p=${PACKAGE-default}
13702 case $withval in
13703 yes|no) pic_mode=$withval ;;
13704 *)
13705 pic_mode=default
13706 # Look at the argument we got. We use all the common list separators.
13707 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13708 for lt_pkg in $withval; do
13709 IFS="$lt_save_ifs"
13710 if test "X$lt_pkg" = "X$lt_p"; then
13711 pic_mode=yes
13712 fi
13713 done
13714 IFS="$lt_save_ifs"
13715 ;;
13716 esac
cristy73bd4a52010-10-05 11:24:23 +000013717else
13718 pic_mode=default
13719fi
13720
13721
13722test -z "$pic_mode" && pic_mode=default
13723
13724
13725
13726
13727
13728
13729
13730 # Check whether --enable-fast-install was given.
13731if test "${enable_fast_install+set}" = set; then :
13732 enableval=$enable_fast_install; p=${PACKAGE-default}
13733 case $enableval in
13734 yes) enable_fast_install=yes ;;
13735 no) enable_fast_install=no ;;
13736 *)
13737 enable_fast_install=no
13738 # Look at the argument we got. We use all the common list separators.
13739 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13740 for pkg in $enableval; do
13741 IFS="$lt_save_ifs"
13742 if test "X$pkg" = "X$p"; then
13743 enable_fast_install=yes
13744 fi
13745 done
13746 IFS="$lt_save_ifs"
13747 ;;
13748 esac
13749else
13750 enable_fast_install=yes
13751fi
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763# This can be used to rebuild libtool when needed
13764LIBTOOL_DEPS="$ltmain"
13765
13766# Always use our own libtool.
13767LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
cristy0c60a692010-11-04 01:09:47 +000013793
cristy99bd5232011-12-07 14:38:20 +000013794
13795
13796
13797
cristy73bd4a52010-10-05 11:24:23 +000013798test -z "$LN_S" && LN_S="ln -s"
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813if test -n "${ZSH_VERSION+set}" ; then
13814 setopt NO_GLOB_SUBST
13815fi
13816
13817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13818$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013819if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013820 $as_echo_n "(cached) " >&6
13821else
13822 rm -f .libs 2>/dev/null
13823mkdir .libs 2>/dev/null
13824if test -d .libs; then
13825 lt_cv_objdir=.libs
13826else
13827 # MS-DOS does not allow filenames that begin with a dot.
13828 lt_cv_objdir=_libs
13829fi
13830rmdir .libs 2>/dev/null
13831fi
13832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13833$as_echo "$lt_cv_objdir" >&6; }
13834objdir=$lt_cv_objdir
13835
13836
13837
13838
13839
13840cat >>confdefs.h <<_ACEOF
13841#define LT_OBJDIR "$lt_cv_objdir/"
13842_ACEOF
13843
13844
13845
13846
cristy73bd4a52010-10-05 11:24:23 +000013847case $host_os in
13848aix3*)
13849 # AIX sometimes has problems with the GCC collect2 program. For some
13850 # reason, if we set the COLLECT_NAMES environment variable, the problems
13851 # vanish in a puff of smoke.
13852 if test "X${COLLECT_NAMES+set}" != Xset; then
13853 COLLECT_NAMES=
13854 export COLLECT_NAMES
13855 fi
13856 ;;
13857esac
13858
cristy73bd4a52010-10-05 11:24:23 +000013859# Global variables:
13860ofile=libtool
13861can_build_shared=yes
13862
13863# All known linkers require a `.a' archive for static linking (except MSVC,
13864# which needs '.lib').
13865libext=a
13866
13867with_gnu_ld="$lt_cv_prog_gnu_ld"
13868
13869old_CC="$CC"
13870old_CFLAGS="$CFLAGS"
13871
13872# Set sane defaults for various variables
13873test -z "$CC" && CC=cc
13874test -z "$LTCC" && LTCC=$CC
13875test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13876test -z "$LD" && LD=ld
13877test -z "$ac_objext" && ac_objext=o
13878
13879for cc_temp in $compiler""; do
13880 case $cc_temp in
13881 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13882 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13883 \-*) ;;
13884 *) break;;
13885 esac
13886done
cristy0c60a692010-11-04 01:09:47 +000013887cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013888
13889
13890# Only perform the check for file, if the check method requires it
13891test -z "$MAGIC_CMD" && MAGIC_CMD=file
13892case $deplibs_check_method in
13893file_magic*)
13894 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13896$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013897if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013898 $as_echo_n "(cached) " >&6
13899else
13900 case $MAGIC_CMD in
13901[\\/*] | ?:[\\/]*)
13902 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13903 ;;
13904*)
13905 lt_save_MAGIC_CMD="$MAGIC_CMD"
13906 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13907 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13908 for ac_dir in $ac_dummy; do
13909 IFS="$lt_save_ifs"
13910 test -z "$ac_dir" && ac_dir=.
13911 if test -f $ac_dir/${ac_tool_prefix}file; then
13912 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13913 if test -n "$file_magic_test_file"; then
13914 case $deplibs_check_method in
13915 "file_magic "*)
13916 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13918 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13919 $EGREP "$file_magic_regex" > /dev/null; then
13920 :
13921 else
13922 cat <<_LT_EOF 1>&2
13923
13924*** Warning: the command libtool uses to detect shared libraries,
13925*** $file_magic_cmd, produces output that libtool cannot recognize.
13926*** The result is that libtool may fail to recognize shared libraries
13927*** as such. This will affect the creation of libtool libraries that
13928*** depend on shared libraries, but programs linked with such libtool
13929*** libraries will work regardless of this problem. Nevertheless, you
13930*** may want to report the problem to your system manager and/or to
13931*** bug-libtool@gnu.org
13932
13933_LT_EOF
13934 fi ;;
13935 esac
13936 fi
13937 break
13938 fi
13939 done
13940 IFS="$lt_save_ifs"
13941 MAGIC_CMD="$lt_save_MAGIC_CMD"
13942 ;;
13943esac
13944fi
13945
13946MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13947if test -n "$MAGIC_CMD"; then
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13949$as_echo "$MAGIC_CMD" >&6; }
13950else
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952$as_echo "no" >&6; }
13953fi
13954
13955
13956
13957
13958
13959if test -z "$lt_cv_path_MAGIC_CMD"; then
13960 if test -n "$ac_tool_prefix"; then
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13962$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013963if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013964 $as_echo_n "(cached) " >&6
13965else
13966 case $MAGIC_CMD in
13967[\\/*] | ?:[\\/]*)
13968 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13969 ;;
13970*)
13971 lt_save_MAGIC_CMD="$MAGIC_CMD"
13972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13973 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13974 for ac_dir in $ac_dummy; do
13975 IFS="$lt_save_ifs"
13976 test -z "$ac_dir" && ac_dir=.
13977 if test -f $ac_dir/file; then
13978 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13979 if test -n "$file_magic_test_file"; then
13980 case $deplibs_check_method in
13981 "file_magic "*)
13982 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13984 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13985 $EGREP "$file_magic_regex" > /dev/null; then
13986 :
13987 else
13988 cat <<_LT_EOF 1>&2
13989
13990*** Warning: the command libtool uses to detect shared libraries,
13991*** $file_magic_cmd, produces output that libtool cannot recognize.
13992*** The result is that libtool may fail to recognize shared libraries
13993*** as such. This will affect the creation of libtool libraries that
13994*** depend on shared libraries, but programs linked with such libtool
13995*** libraries will work regardless of this problem. Nevertheless, you
13996*** may want to report the problem to your system manager and/or to
13997*** bug-libtool@gnu.org
13998
13999_LT_EOF
14000 fi ;;
14001 esac
14002 fi
14003 break
14004 fi
14005 done
14006 IFS="$lt_save_ifs"
14007 MAGIC_CMD="$lt_save_MAGIC_CMD"
14008 ;;
14009esac
14010fi
14011
14012MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14013if test -n "$MAGIC_CMD"; then
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14015$as_echo "$MAGIC_CMD" >&6; }
14016else
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018$as_echo "no" >&6; }
14019fi
14020
14021
14022 else
14023 MAGIC_CMD=:
14024 fi
14025fi
14026
14027 fi
14028 ;;
14029esac
14030
14031# Use C for the default configuration in the libtool script
14032
14033lt_save_CC="$CC"
14034ac_ext=c
14035ac_cpp='$CPP $CPPFLAGS'
14036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14038ac_compiler_gnu=$ac_cv_c_compiler_gnu
14039
14040
14041# Source file extension for C test sources.
14042ac_ext=c
14043
14044# Object file extension for compiled C test sources.
14045objext=o
14046objext=$objext
14047
14048# Code to be used in simple compile tests
14049lt_simple_compile_test_code="int some_variable = 0;"
14050
14051# Code to be used in simple link tests
14052lt_simple_link_test_code='int main(){return(0);}'
14053
14054
14055
14056
14057
14058
14059
14060# If no C compiler was specified, use CC.
14061LTCC=${LTCC-"$CC"}
14062
14063# If no C compiler flags were specified, use CFLAGS.
14064LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14065
14066# Allow CC to be a program name with arguments.
14067compiler=$CC
14068
14069# Save the default compiler, since it gets overwritten when the other
14070# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14071compiler_DEFAULT=$CC
14072
14073# save warnings/boilerplate of simple test code
14074ac_outfile=conftest.$ac_objext
14075echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14076eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14077_lt_compiler_boilerplate=`cat conftest.err`
14078$RM conftest*
14079
14080ac_outfile=conftest.$ac_objext
14081echo "$lt_simple_link_test_code" >conftest.$ac_ext
14082eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14083_lt_linker_boilerplate=`cat conftest.err`
14084$RM -r conftest*
14085
14086
14087## CAVEAT EMPTOR:
14088## There is no encapsulation within the following macros, do not change
14089## the running order or otherwise move them around unless you know exactly
14090## what you are doing...
14091if test -n "$compiler"; then
14092
14093lt_prog_compiler_no_builtin_flag=
14094
14095if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014096 case $cc_basename in
14097 nvcc*)
14098 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14099 *)
14100 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14101 esac
cristy73bd4a52010-10-05 11:24:23 +000014102
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14104$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014105if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014106 $as_echo_n "(cached) " >&6
14107else
14108 lt_cv_prog_compiler_rtti_exceptions=no
14109 ac_outfile=conftest.$ac_objext
14110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14111 lt_compiler_flag="-fno-rtti -fno-exceptions"
14112 # Insert the option either (1) after the last *FLAGS variable, or
14113 # (2) before a word containing "conftest.", or (3) at the end.
14114 # Note that $ac_compile itself does not contain backslashes and begins
14115 # with a dollar sign (not a hyphen), so the echo should work correctly.
14116 # The option is referenced via a variable to avoid confusing sed.
14117 lt_compile=`echo "$ac_compile" | $SED \
14118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14120 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014121 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014122 (eval "$lt_compile" 2>conftest.err)
14123 ac_status=$?
14124 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014126 if (exit $ac_status) && test -s "$ac_outfile"; then
14127 # The compiler can only warn and ignore the option if not recognized
14128 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014129 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14132 lt_cv_prog_compiler_rtti_exceptions=yes
14133 fi
14134 fi
14135 $RM conftest*
14136
14137fi
14138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14139$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14140
14141if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14142 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14143else
14144 :
14145fi
14146
14147fi
14148
14149
14150
14151
14152
14153
14154 lt_prog_compiler_wl=
14155lt_prog_compiler_pic=
14156lt_prog_compiler_static=
14157
cristy73bd4a52010-10-05 11:24:23 +000014158
14159 if test "$GCC" = yes; then
14160 lt_prog_compiler_wl='-Wl,'
14161 lt_prog_compiler_static='-static'
14162
14163 case $host_os in
14164 aix*)
14165 # All AIX code is PIC.
14166 if test "$host_cpu" = ia64; then
14167 # AIX 5 now supports IA64 processor
14168 lt_prog_compiler_static='-Bstatic'
14169 fi
14170 ;;
14171
14172 amigaos*)
14173 case $host_cpu in
14174 powerpc)
14175 # see comment about AmigaOS4 .so support
14176 lt_prog_compiler_pic='-fPIC'
14177 ;;
14178 m68k)
14179 # FIXME: we need at least 68020 code to build shared libraries, but
14180 # adding the `-m68020' flag to GCC prevents building anything better,
14181 # like `-m68040'.
14182 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14183 ;;
14184 esac
14185 ;;
14186
14187 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14188 # PIC is the default for these OSes.
14189 ;;
14190
14191 mingw* | cygwin* | pw32* | os2* | cegcc*)
14192 # This hack is so that the source file can tell whether it is being
14193 # built for inclusion in a dll (and should export symbols for example).
14194 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14195 # (--disable-auto-import) libraries
14196 lt_prog_compiler_pic='-DDLL_EXPORT'
14197 ;;
14198
14199 darwin* | rhapsody*)
14200 # PIC is the default on this platform
14201 # Common symbols not allowed in MH_DYLIB files
14202 lt_prog_compiler_pic='-fno-common'
14203 ;;
14204
cristy0c60a692010-11-04 01:09:47 +000014205 haiku*)
14206 # PIC is the default for Haiku.
14207 # The "-static" flag exists, but is broken.
14208 lt_prog_compiler_static=
14209 ;;
14210
cristy73bd4a52010-10-05 11:24:23 +000014211 hpux*)
14212 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14213 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14214 # sets the default TLS model and affects inlining.
14215 case $host_cpu in
14216 hppa*64*)
14217 # +Z the default
14218 ;;
14219 *)
14220 lt_prog_compiler_pic='-fPIC'
14221 ;;
14222 esac
14223 ;;
14224
14225 interix[3-9]*)
14226 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14227 # Instead, we relocate shared libraries at runtime.
14228 ;;
14229
14230 msdosdjgpp*)
14231 # Just because we use GCC doesn't mean we suddenly get shared libraries
14232 # on systems that don't support them.
14233 lt_prog_compiler_can_build_shared=no
14234 enable_shared=no
14235 ;;
14236
14237 *nto* | *qnx*)
14238 # QNX uses GNU C++, but need to define -shared option too, otherwise
14239 # it will coredump.
14240 lt_prog_compiler_pic='-fPIC -shared'
14241 ;;
14242
14243 sysv4*MP*)
14244 if test -d /usr/nec; then
14245 lt_prog_compiler_pic=-Kconform_pic
14246 fi
14247 ;;
14248
14249 *)
14250 lt_prog_compiler_pic='-fPIC'
14251 ;;
14252 esac
cristy0c60a692010-11-04 01:09:47 +000014253
14254 case $cc_basename in
14255 nvcc*) # Cuda Compiler Driver 2.2
14256 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014257 if test -n "$lt_prog_compiler_pic"; then
14258 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14259 fi
cristy0c60a692010-11-04 01:09:47 +000014260 ;;
14261 esac
cristy73bd4a52010-10-05 11:24:23 +000014262 else
14263 # PORTME Check for flag to pass linker flags through the system compiler.
14264 case $host_os in
14265 aix*)
14266 lt_prog_compiler_wl='-Wl,'
14267 if test "$host_cpu" = ia64; then
14268 # AIX 5 now supports IA64 processor
14269 lt_prog_compiler_static='-Bstatic'
14270 else
14271 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14272 fi
14273 ;;
14274
14275 mingw* | cygwin* | pw32* | os2* | cegcc*)
14276 # This hack is so that the source file can tell whether it is being
14277 # built for inclusion in a dll (and should export symbols for example).
14278 lt_prog_compiler_pic='-DDLL_EXPORT'
14279 ;;
14280
14281 hpux9* | hpux10* | hpux11*)
14282 lt_prog_compiler_wl='-Wl,'
14283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14284 # not for PA HP-UX.
14285 case $host_cpu in
14286 hppa*64*|ia64*)
14287 # +Z the default
14288 ;;
14289 *)
14290 lt_prog_compiler_pic='+Z'
14291 ;;
14292 esac
14293 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14294 lt_prog_compiler_static='${wl}-a ${wl}archive'
14295 ;;
14296
14297 irix5* | irix6* | nonstopux*)
14298 lt_prog_compiler_wl='-Wl,'
14299 # PIC (with -KPIC) is the default.
14300 lt_prog_compiler_static='-non_shared'
14301 ;;
14302
cristy0c60a692010-11-04 01:09:47 +000014303 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014304 case $cc_basename in
14305 # old Intel for x86_64 which still supported -KPIC.
14306 ecc*)
14307 lt_prog_compiler_wl='-Wl,'
14308 lt_prog_compiler_pic='-KPIC'
14309 lt_prog_compiler_static='-static'
14310 ;;
14311 # icc used to be incompatible with GCC.
14312 # ICC 10 doesn't accept -KPIC any more.
14313 icc* | ifort*)
14314 lt_prog_compiler_wl='-Wl,'
14315 lt_prog_compiler_pic='-fPIC'
14316 lt_prog_compiler_static='-static'
14317 ;;
14318 # Lahey Fortran 8.1.
14319 lf95*)
14320 lt_prog_compiler_wl='-Wl,'
14321 lt_prog_compiler_pic='--shared'
14322 lt_prog_compiler_static='--static'
14323 ;;
cristyda16f162011-02-19 23:52:17 +000014324 nagfor*)
14325 # NAG Fortran compiler
14326 lt_prog_compiler_wl='-Wl,-Wl,,'
14327 lt_prog_compiler_pic='-PIC'
14328 lt_prog_compiler_static='-Bstatic'
14329 ;;
cristy0c60a692010-11-04 01:09:47 +000014330 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014331 # Portland Group compilers (*not* the Pentium gcc compiler,
14332 # which looks to be a dead project)
14333 lt_prog_compiler_wl='-Wl,'
14334 lt_prog_compiler_pic='-fpic'
14335 lt_prog_compiler_static='-Bstatic'
14336 ;;
14337 ccc*)
14338 lt_prog_compiler_wl='-Wl,'
14339 # All Alpha code is PIC.
14340 lt_prog_compiler_static='-non_shared'
14341 ;;
cristy0c60a692010-11-04 01:09:47 +000014342 xl* | bgxl* | bgf* | mpixl*)
14343 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014344 lt_prog_compiler_wl='-Wl,'
14345 lt_prog_compiler_pic='-qpic'
14346 lt_prog_compiler_static='-qstaticlink'
14347 ;;
14348 *)
14349 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014350 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014351 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14352 lt_prog_compiler_pic='-KPIC'
14353 lt_prog_compiler_static='-Bstatic'
14354 lt_prog_compiler_wl=''
14355 ;;
cristy99bd5232011-12-07 14:38:20 +000014356 *Sun\ F* | *Sun*Fortran*)
14357 lt_prog_compiler_pic='-KPIC'
14358 lt_prog_compiler_static='-Bstatic'
14359 lt_prog_compiler_wl='-Qoption ld '
14360 ;;
cristy73bd4a52010-10-05 11:24:23 +000014361 *Sun\ C*)
14362 # Sun C 5.9
14363 lt_prog_compiler_pic='-KPIC'
14364 lt_prog_compiler_static='-Bstatic'
14365 lt_prog_compiler_wl='-Wl,'
14366 ;;
cristy99bd5232011-12-07 14:38:20 +000014367 *Intel*\ [CF]*Compiler*)
14368 lt_prog_compiler_wl='-Wl,'
14369 lt_prog_compiler_pic='-fPIC'
14370 lt_prog_compiler_static='-static'
14371 ;;
14372 *Portland\ Group*)
14373 lt_prog_compiler_wl='-Wl,'
14374 lt_prog_compiler_pic='-fpic'
14375 lt_prog_compiler_static='-Bstatic'
14376 ;;
cristy73bd4a52010-10-05 11:24:23 +000014377 esac
14378 ;;
14379 esac
14380 ;;
14381
14382 newsos6)
14383 lt_prog_compiler_pic='-KPIC'
14384 lt_prog_compiler_static='-Bstatic'
14385 ;;
14386
14387 *nto* | *qnx*)
14388 # QNX uses GNU C++, but need to define -shared option too, otherwise
14389 # it will coredump.
14390 lt_prog_compiler_pic='-fPIC -shared'
14391 ;;
14392
14393 osf3* | osf4* | osf5*)
14394 lt_prog_compiler_wl='-Wl,'
14395 # All OSF/1 code is PIC.
14396 lt_prog_compiler_static='-non_shared'
14397 ;;
14398
14399 rdos*)
14400 lt_prog_compiler_static='-non_shared'
14401 ;;
14402
14403 solaris*)
14404 lt_prog_compiler_pic='-KPIC'
14405 lt_prog_compiler_static='-Bstatic'
14406 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014407 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014408 lt_prog_compiler_wl='-Qoption ld ';;
14409 *)
14410 lt_prog_compiler_wl='-Wl,';;
14411 esac
14412 ;;
14413
14414 sunos4*)
14415 lt_prog_compiler_wl='-Qoption ld '
14416 lt_prog_compiler_pic='-PIC'
14417 lt_prog_compiler_static='-Bstatic'
14418 ;;
14419
14420 sysv4 | sysv4.2uw2* | sysv4.3*)
14421 lt_prog_compiler_wl='-Wl,'
14422 lt_prog_compiler_pic='-KPIC'
14423 lt_prog_compiler_static='-Bstatic'
14424 ;;
14425
14426 sysv4*MP*)
14427 if test -d /usr/nec ;then
14428 lt_prog_compiler_pic='-Kconform_pic'
14429 lt_prog_compiler_static='-Bstatic'
14430 fi
14431 ;;
14432
14433 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14434 lt_prog_compiler_wl='-Wl,'
14435 lt_prog_compiler_pic='-KPIC'
14436 lt_prog_compiler_static='-Bstatic'
14437 ;;
14438
14439 unicos*)
14440 lt_prog_compiler_wl='-Wl,'
14441 lt_prog_compiler_can_build_shared=no
14442 ;;
14443
14444 uts4*)
14445 lt_prog_compiler_pic='-pic'
14446 lt_prog_compiler_static='-Bstatic'
14447 ;;
14448
14449 *)
14450 lt_prog_compiler_can_build_shared=no
14451 ;;
14452 esac
14453 fi
14454
14455case $host_os in
14456 # For platforms which do not support PIC, -DPIC is meaningless:
14457 *djgpp*)
14458 lt_prog_compiler_pic=
14459 ;;
14460 *)
14461 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14462 ;;
14463esac
cristy73bd4a52010-10-05 11:24:23 +000014464
cristyda16f162011-02-19 23:52:17 +000014465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14466$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14467if ${lt_cv_prog_compiler_pic+:} false; then :
14468 $as_echo_n "(cached) " >&6
14469else
14470 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14471fi
14472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14473$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14474lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014475
14476#
14477# Check to make sure the PIC flag actually works.
14478#
14479if test -n "$lt_prog_compiler_pic"; then
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14481$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014482if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014483 $as_echo_n "(cached) " >&6
14484else
14485 lt_cv_prog_compiler_pic_works=no
14486 ac_outfile=conftest.$ac_objext
14487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14488 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14489 # Insert the option either (1) after the last *FLAGS variable, or
14490 # (2) before a word containing "conftest.", or (3) at the end.
14491 # Note that $ac_compile itself does not contain backslashes and begins
14492 # with a dollar sign (not a hyphen), so the echo should work correctly.
14493 # The option is referenced via a variable to avoid confusing sed.
14494 lt_compile=`echo "$ac_compile" | $SED \
14495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14497 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014499 (eval "$lt_compile" 2>conftest.err)
14500 ac_status=$?
14501 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014503 if (exit $ac_status) && test -s "$ac_outfile"; then
14504 # The compiler can only warn and ignore the option if not recognized
14505 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014506 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14509 lt_cv_prog_compiler_pic_works=yes
14510 fi
14511 fi
14512 $RM conftest*
14513
14514fi
14515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14516$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14517
14518if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14519 case $lt_prog_compiler_pic in
14520 "" | " "*) ;;
14521 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14522 esac
14523else
14524 lt_prog_compiler_pic=
14525 lt_prog_compiler_can_build_shared=no
14526fi
14527
14528fi
14529
14530
14531
14532
14533
14534
cristyda16f162011-02-19 23:52:17 +000014535
14536
14537
14538
14539
cristy73bd4a52010-10-05 11:24:23 +000014540#
14541# Check to make sure the static flag actually works.
14542#
14543wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14545$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014546if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014547 $as_echo_n "(cached) " >&6
14548else
14549 lt_cv_prog_compiler_static_works=no
14550 save_LDFLAGS="$LDFLAGS"
14551 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14552 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14553 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14554 # The linker can only warn and ignore the option if not recognized
14555 # So say no if there are warnings
14556 if test -s conftest.err; then
14557 # Append any errors to the config.log.
14558 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014559 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014560 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14561 if diff conftest.exp conftest.er2 >/dev/null; then
14562 lt_cv_prog_compiler_static_works=yes
14563 fi
14564 else
14565 lt_cv_prog_compiler_static_works=yes
14566 fi
14567 fi
14568 $RM -r conftest*
14569 LDFLAGS="$save_LDFLAGS"
14570
14571fi
14572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14573$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14574
14575if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14576 :
14577else
14578 lt_prog_compiler_static=
14579fi
14580
14581
14582
14583
14584
14585
14586
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14588$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014589if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014590 $as_echo_n "(cached) " >&6
14591else
14592 lt_cv_prog_compiler_c_o=no
14593 $RM -r conftest 2>/dev/null
14594 mkdir conftest
14595 cd conftest
14596 mkdir out
14597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14598
14599 lt_compiler_flag="-o out/conftest2.$ac_objext"
14600 # Insert the option either (1) after the last *FLAGS variable, or
14601 # (2) before a word containing "conftest.", or (3) at the end.
14602 # Note that $ac_compile itself does not contain backslashes and begins
14603 # with a dollar sign (not a hyphen), so the echo should work correctly.
14604 lt_compile=`echo "$ac_compile" | $SED \
14605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14607 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014609 (eval "$lt_compile" 2>out/conftest.err)
14610 ac_status=$?
14611 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14614 then
14615 # The compiler can only warn and ignore the option if not recognized
14616 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14620 lt_cv_prog_compiler_c_o=yes
14621 fi
14622 fi
14623 chmod u+w . 2>&5
14624 $RM conftest*
14625 # SGI C++ compiler will create directory out/ii_files/ for
14626 # template instantiation
14627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14628 $RM out/* && rmdir out
14629 cd ..
14630 $RM -r conftest
14631 $RM conftest*
14632
14633fi
14634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14635$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14636
14637
14638
14639
14640
14641
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14643$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014644if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014645 $as_echo_n "(cached) " >&6
14646else
14647 lt_cv_prog_compiler_c_o=no
14648 $RM -r conftest 2>/dev/null
14649 mkdir conftest
14650 cd conftest
14651 mkdir out
14652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14653
14654 lt_compiler_flag="-o out/conftest2.$ac_objext"
14655 # Insert the option either (1) after the last *FLAGS variable, or
14656 # (2) before a word containing "conftest.", or (3) at the end.
14657 # Note that $ac_compile itself does not contain backslashes and begins
14658 # with a dollar sign (not a hyphen), so the echo should work correctly.
14659 lt_compile=`echo "$ac_compile" | $SED \
14660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14662 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014664 (eval "$lt_compile" 2>out/conftest.err)
14665 ac_status=$?
14666 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14669 then
14670 # The compiler can only warn and ignore the option if not recognized
14671 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14675 lt_cv_prog_compiler_c_o=yes
14676 fi
14677 fi
14678 chmod u+w . 2>&5
14679 $RM conftest*
14680 # SGI C++ compiler will create directory out/ii_files/ for
14681 # template instantiation
14682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14683 $RM out/* && rmdir out
14684 cd ..
14685 $RM -r conftest
14686 $RM conftest*
14687
14688fi
14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14690$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14691
14692
14693
14694
14695hard_links="nottested"
14696if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14697 # do not overwrite the value of need_locks provided by the user
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14699$as_echo_n "checking if we can lock with hard links... " >&6; }
14700 hard_links=yes
14701 $RM conftest*
14702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14703 touch conftest.a
14704 ln conftest.a conftest.b 2>&5 || hard_links=no
14705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14707$as_echo "$hard_links" >&6; }
14708 if test "$hard_links" = no; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14710$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14711 need_locks=warn
14712 fi
14713else
14714 need_locks=no
14715fi
14716
14717
14718
14719
14720
14721
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14723$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14724
14725 runpath_var=
14726 allow_undefined_flag=
14727 always_export_symbols=no
14728 archive_cmds=
14729 archive_expsym_cmds=
14730 compiler_needs_object=no
14731 enable_shared_with_static_runtimes=no
14732 export_dynamic_flag_spec=
14733 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14734 hardcode_automatic=no
14735 hardcode_direct=no
14736 hardcode_direct_absolute=no
14737 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014738 hardcode_libdir_separator=
14739 hardcode_minus_L=no
14740 hardcode_shlibpath_var=unsupported
14741 inherit_rpath=no
14742 link_all_deplibs=unknown
14743 module_cmds=
14744 module_expsym_cmds=
14745 old_archive_from_new_cmds=
14746 old_archive_from_expsyms_cmds=
14747 thread_safe_flag_spec=
14748 whole_archive_flag_spec=
14749 # include_expsyms should be a list of space-separated symbols to be *always*
14750 # included in the symbol list
14751 include_expsyms=
14752 # exclude_expsyms can be an extended regexp of symbols to exclude
14753 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14754 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14755 # as well as any symbol that contains `d'.
14756 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14757 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14758 # platforms (ab)use it in PIC code, but their linkers get confused if
14759 # the symbol is explicitly referenced. Since portable code cannot
14760 # rely on this symbol name, it's probably fine to never include it in
14761 # preloaded symbol tables.
14762 # Exclude shared library initialization/finalization symbols.
14763 extract_expsyms_cmds=
14764
14765 case $host_os in
14766 cygwin* | mingw* | pw32* | cegcc*)
14767 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14768 # When not using gcc, we currently assume that we are using
14769 # Microsoft Visual C++.
14770 if test "$GCC" != yes; then
14771 with_gnu_ld=no
14772 fi
14773 ;;
14774 interix*)
14775 # we just hope/assume this is gcc and not c89 (= MSVC++)
14776 with_gnu_ld=yes
14777 ;;
14778 openbsd*)
14779 with_gnu_ld=no
14780 ;;
14781 esac
14782
14783 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014784
14785 # On some targets, GNU ld is compatible enough with the native linker
14786 # that we're better off using the native interface for both.
14787 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014788 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014789 case $host_os in
14790 aix*)
14791 # The AIX port of GNU ld has always aspired to compatibility
14792 # with the native linker. However, as the warning in the GNU ld
14793 # block says, versions before 2.19.5* couldn't really create working
14794 # shared libraries, regardless of the interface used.
14795 case `$LD -v 2>&1` in
14796 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14797 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14798 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14799 *)
14800 lt_use_gnu_ld_interface=yes
14801 ;;
14802 esac
14803 ;;
14804 *)
14805 lt_use_gnu_ld_interface=yes
14806 ;;
14807 esac
14808 fi
14809
14810 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014811 # If archive_cmds runs LD, not CC, wlarc should be empty
14812 wlarc='${wl}'
14813
14814 # Set some defaults for GNU ld with shared library support. These
14815 # are reset later if shared libraries are not supported. Putting them
14816 # here allows them to be overridden if necessary.
14817 runpath_var=LD_RUN_PATH
14818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14819 export_dynamic_flag_spec='${wl}--export-dynamic'
14820 # ancient GNU ld didn't support --whole-archive et. al.
14821 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14822 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14823 else
14824 whole_archive_flag_spec=
14825 fi
14826 supports_anon_versioning=no
14827 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014828 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014829 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14830 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14831 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14832 *\ 2.11.*) ;; # other 2.11 versions
14833 *) supports_anon_versioning=yes ;;
14834 esac
14835
14836 # See if GNU ld supports shared libraries.
14837 case $host_os in
14838 aix[3-9]*)
14839 # On AIX/PPC, the GNU linker is very broken
14840 if test "$host_cpu" != ia64; then
14841 ld_shlibs=no
14842 cat <<_LT_EOF 1>&2
14843
cristy0c60a692010-11-04 01:09:47 +000014844*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014845*** to be unable to reliably create shared libraries on AIX.
14846*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014847*** really care for shared libraries, you may want to install binutils
14848*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14849*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014850
14851_LT_EOF
14852 fi
14853 ;;
14854
14855 amigaos*)
14856 case $host_cpu in
14857 powerpc)
14858 # see comment about AmigaOS4 .so support
14859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14860 archive_expsym_cmds=''
14861 ;;
14862 m68k)
14863 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)'
14864 hardcode_libdir_flag_spec='-L$libdir'
14865 hardcode_minus_L=yes
14866 ;;
14867 esac
14868 ;;
14869
14870 beos*)
14871 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14872 allow_undefined_flag=unsupported
14873 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14874 # support --undefined. This deserves some investigation. FIXME
14875 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14876 else
14877 ld_shlibs=no
14878 fi
14879 ;;
14880
14881 cygwin* | mingw* | pw32* | cegcc*)
14882 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14883 # as there is no search path for DLLs.
14884 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014885 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014886 allow_undefined_flag=unsupported
14887 always_export_symbols=no
14888 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014889 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'
14890 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 +000014891
14892 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14894 # If the export-symbols file already is a .def file (1st line
14895 # is EXPORTS), use it as is; otherwise, prepend...
14896 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14897 cp $export_symbols $output_objdir/$soname.def;
14898 else
14899 echo EXPORTS > $output_objdir/$soname.def;
14900 cat $export_symbols >> $output_objdir/$soname.def;
14901 fi~
14902 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14903 else
14904 ld_shlibs=no
14905 fi
14906 ;;
14907
cristy0c60a692010-11-04 01:09:47 +000014908 haiku*)
14909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14910 link_all_deplibs=yes
14911 ;;
14912
cristy73bd4a52010-10-05 11:24:23 +000014913 interix[3-9]*)
14914 hardcode_direct=no
14915 hardcode_shlibpath_var=no
14916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14917 export_dynamic_flag_spec='${wl}-E'
14918 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14919 # Instead, shared libraries are loaded at an image base (0x10000000 by
14920 # default) and relocated if they conflict, which is a slow very memory
14921 # consuming and fragmenting process. To avoid this, we pick a random,
14922 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14923 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14924 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14925 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'
14926 ;;
14927
cristy0c60a692010-11-04 01:09:47 +000014928 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014929 tmp_diet=no
14930 if test "$host_os" = linux-dietlibc; then
14931 case $cc_basename in
14932 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14933 esac
14934 fi
14935 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14936 && test "$tmp_diet" = no
14937 then
cristyda16f162011-02-19 23:52:17 +000014938 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014939 tmp_sharedflag='-shared'
14940 case $cc_basename,$host_cpu in
14941 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014942 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 +000014943 tmp_addflag=' $pic_flag'
14944 ;;
cristy0c60a692010-11-04 01:09:47 +000014945 pgf77* | pgf90* | pgf95* | pgfortran*)
14946 # Portland Group f77 and f90 compilers
14947 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 +000014948 tmp_addflag=' $pic_flag -Mnomain' ;;
14949 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14950 tmp_addflag=' -i_dynamic' ;;
14951 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14952 tmp_addflag=' -i_dynamic -nofor_main' ;;
14953 ifc* | ifort*) # Intel Fortran compiler
14954 tmp_addflag=' -nofor_main' ;;
14955 lf95*) # Lahey Fortran 8.1
14956 whole_archive_flag_spec=
14957 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014958 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014959 tmp_sharedflag='-qmkshrobj'
14960 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014961 nvcc*) # Cuda Compiler Driver 2.2
14962 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'
14963 compiler_needs_object=yes
14964 ;;
cristy73bd4a52010-10-05 11:24:23 +000014965 esac
14966 case `$CC -V 2>&1 | sed 5q` in
14967 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014968 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 +000014969 compiler_needs_object=yes
14970 tmp_sharedflag='-G' ;;
14971 *Sun\ F*) # Sun Fortran 8.3
14972 tmp_sharedflag='-G' ;;
14973 esac
14974 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14975
14976 if test "x$supports_anon_versioning" = xyes; then
14977 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14979 echo "local: *; };" >> $output_objdir/$libname.ver~
14980 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14981 fi
14982
14983 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014984 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014985 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14986 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014988 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014989 if test "x$supports_anon_versioning" = xyes; then
14990 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14991 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14992 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014993 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014994 fi
14995 ;;
14996 esac
14997 else
14998 ld_shlibs=no
14999 fi
15000 ;;
15001
15002 netbsd*)
15003 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15004 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15005 wlarc=
15006 else
cristyda16f162011-02-19 23:52:17 +000015007 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15008 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 +000015009 fi
15010 ;;
15011
15012 solaris*)
15013 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15014 ld_shlibs=no
15015 cat <<_LT_EOF 1>&2
15016
15017*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15018*** create shared libraries on Solaris systems. Therefore, libtool
15019*** is disabling shared libraries support. We urge you to upgrade GNU
15020*** binutils to release 2.9.1 or newer. Another option is to modify
15021*** your PATH or compiler configuration so that the native linker is
15022*** used, and then restart.
15023
15024_LT_EOF
15025 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015026 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15027 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 +000015028 else
15029 ld_shlibs=no
15030 fi
15031 ;;
15032
15033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15034 case `$LD -v 2>&1` in
15035 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15036 ld_shlibs=no
15037 cat <<_LT_EOF 1>&2
15038
15039*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15040*** reliably create shared libraries on SCO systems. Therefore, libtool
15041*** is disabling shared libraries support. We urge you to upgrade GNU
15042*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15043*** your PATH or compiler configuration so that the native linker is
15044*** used, and then restart.
15045
15046_LT_EOF
15047 ;;
15048 *)
15049 # For security reasons, it is highly recommended that you always
15050 # use absolute paths for naming shared libraries, and exclude the
15051 # DT_RUNPATH tag from executables and libraries. But doing so
15052 # requires that you compile everything twice, which is a pain.
15053 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15057 else
15058 ld_shlibs=no
15059 fi
15060 ;;
15061 esac
15062 ;;
15063
15064 sunos4*)
15065 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15066 wlarc=
15067 hardcode_direct=yes
15068 hardcode_shlibpath_var=no
15069 ;;
15070
15071 *)
15072 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15074 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 +000015075 else
15076 ld_shlibs=no
15077 fi
15078 ;;
15079 esac
15080
15081 if test "$ld_shlibs" = no; then
15082 runpath_var=
15083 hardcode_libdir_flag_spec=
15084 export_dynamic_flag_spec=
15085 whole_archive_flag_spec=
15086 fi
15087 else
15088 # PORTME fill in a description of your system's linker (not GNU ld)
15089 case $host_os in
15090 aix3*)
15091 allow_undefined_flag=unsupported
15092 always_export_symbols=yes
15093 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'
15094 # Note: this linker hardcodes the directories in LIBPATH if there
15095 # are no directories specified by -L.
15096 hardcode_minus_L=yes
15097 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15098 # Neither direct hardcoding nor static linking is supported with a
15099 # broken collect2.
15100 hardcode_direct=unsupported
15101 fi
15102 ;;
15103
15104 aix[4-9]*)
15105 if test "$host_cpu" = ia64; then
15106 # On IA64, the linker does run time linking by default, so we don't
15107 # have to do anything special.
15108 aix_use_runtimelinking=no
15109 exp_sym_flag='-Bexport'
15110 no_entry_flag=""
15111 else
15112 # If we're using GNU nm, then we don't want the "-C" option.
15113 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015114 # Also, AIX nm treats weak defined symbols like other global
15115 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015116 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015117 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 +000015118 else
15119 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'
15120 fi
15121 aix_use_runtimelinking=no
15122
15123 # Test if we are trying to use run time linking or normal
15124 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15125 # need to do runtime linking.
15126 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15127 for ld_flag in $LDFLAGS; do
15128 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15129 aix_use_runtimelinking=yes
15130 break
15131 fi
15132 done
15133 ;;
15134 esac
15135
15136 exp_sym_flag='-bexport'
15137 no_entry_flag='-bnoentry'
15138 fi
15139
15140 # When large executables or shared objects are built, AIX ld can
15141 # have problems creating the table of contents. If linking a library
15142 # or program results in "error TOC overflow" add -mminimal-toc to
15143 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15144 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15145
15146 archive_cmds=''
15147 hardcode_direct=yes
15148 hardcode_direct_absolute=yes
15149 hardcode_libdir_separator=':'
15150 link_all_deplibs=yes
15151 file_list_spec='${wl}-f,'
15152
15153 if test "$GCC" = yes; then
15154 case $host_os in aix4.[012]|aix4.[012].*)
15155 # We only want to do this on AIX 4.2 and lower, the check
15156 # below for broken collect2 doesn't work under 4.3+
15157 collect2name=`${CC} -print-prog-name=collect2`
15158 if test -f "$collect2name" &&
15159 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15160 then
15161 # We have reworked collect2
15162 :
15163 else
15164 # We have old collect2
15165 hardcode_direct=unsupported
15166 # It fails to find uninstalled libraries when the uninstalled
15167 # path is not listed in the libpath. Setting hardcode_minus_L
15168 # to unsupported forces relinking
15169 hardcode_minus_L=yes
15170 hardcode_libdir_flag_spec='-L$libdir'
15171 hardcode_libdir_separator=
15172 fi
15173 ;;
15174 esac
15175 shared_flag='-shared'
15176 if test "$aix_use_runtimelinking" = yes; then
15177 shared_flag="$shared_flag "'${wl}-G'
15178 fi
15179 else
15180 # not using gcc
15181 if test "$host_cpu" = ia64; then
15182 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15183 # chokes on -Wl,-G. The following line is correct:
15184 shared_flag='-G'
15185 else
15186 if test "$aix_use_runtimelinking" = yes; then
15187 shared_flag='${wl}-G'
15188 else
15189 shared_flag='${wl}-bM:SRE'
15190 fi
15191 fi
15192 fi
15193
15194 export_dynamic_flag_spec='${wl}-bexpall'
15195 # It seems that -bexpall does not export symbols beginning with
15196 # underscore (_), so it is better to generate a list of symbols to export.
15197 always_export_symbols=yes
15198 if test "$aix_use_runtimelinking" = yes; then
15199 # Warning - without using the other runtime loading flags (-brtl),
15200 # -berok will link without error, but may produce a broken library.
15201 allow_undefined_flag='-berok'
15202 # Determine the default libpath from the value encoded in an
15203 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015204 if test "${lt_cv_aix_libpath+set}" = set; then
15205 aix_libpath=$lt_cv_aix_libpath
15206else
15207 if ${lt_cv_aix_libpath_+:} false; then :
15208 $as_echo_n "(cached) " >&6
15209else
15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015211/* end confdefs.h. */
15212
15213int
15214main ()
15215{
15216
15217 ;
15218 return 0;
15219}
15220_ACEOF
15221if ac_fn_c_try_link "$LINENO"; then :
15222
cristyda16f162011-02-19 23:52:17 +000015223 lt_aix_libpath_sed='
15224 /Import File Strings/,/^$/ {
15225 /^0/ {
15226 s/^0 *\([^ ]*\) *$/\1/
15227 p
15228 }
15229 }'
15230 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15231 # Check for a 64-bit object if we didn't find anything.
15232 if test -z "$lt_cv_aix_libpath_"; then
15233 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15234 fi
cristy73bd4a52010-10-05 11:24:23 +000015235fi
15236rm -f core conftest.err conftest.$ac_objext \
15237 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015238 if test -z "$lt_cv_aix_libpath_"; then
15239 lt_cv_aix_libpath_="/usr/lib:/lib"
15240 fi
15241
15242fi
15243
15244 aix_libpath=$lt_cv_aix_libpath_
15245fi
cristy73bd4a52010-10-05 11:24:23 +000015246
15247 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015248 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 +000015249 else
15250 if test "$host_cpu" = ia64; then
15251 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15252 allow_undefined_flag="-z nodefs"
15253 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"
15254 else
15255 # Determine the default libpath from the value encoded in an
15256 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015257 if test "${lt_cv_aix_libpath+set}" = set; then
15258 aix_libpath=$lt_cv_aix_libpath
15259else
15260 if ${lt_cv_aix_libpath_+:} false; then :
15261 $as_echo_n "(cached) " >&6
15262else
15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015264/* end confdefs.h. */
15265
15266int
15267main ()
15268{
15269
15270 ;
15271 return 0;
15272}
15273_ACEOF
15274if ac_fn_c_try_link "$LINENO"; then :
15275
cristyda16f162011-02-19 23:52:17 +000015276 lt_aix_libpath_sed='
15277 /Import File Strings/,/^$/ {
15278 /^0/ {
15279 s/^0 *\([^ ]*\) *$/\1/
15280 p
15281 }
15282 }'
15283 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15284 # Check for a 64-bit object if we didn't find anything.
15285 if test -z "$lt_cv_aix_libpath_"; then
15286 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15287 fi
cristy73bd4a52010-10-05 11:24:23 +000015288fi
15289rm -f core conftest.err conftest.$ac_objext \
15290 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015291 if test -z "$lt_cv_aix_libpath_"; then
15292 lt_cv_aix_libpath_="/usr/lib:/lib"
15293 fi
15294
15295fi
15296
15297 aix_libpath=$lt_cv_aix_libpath_
15298fi
cristy73bd4a52010-10-05 11:24:23 +000015299
15300 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15301 # Warning - without using the other run time loading flags,
15302 # -berok will link without error, but may produce a broken library.
15303 no_undefined_flag=' ${wl}-bernotok'
15304 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015305 if test "$with_gnu_ld" = yes; then
15306 # We only use this code for GNU lds that support --whole-archive.
15307 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15308 else
15309 # Exported symbols can be pulled into shared objects from archives
15310 whole_archive_flag_spec='$convenience'
15311 fi
cristy73bd4a52010-10-05 11:24:23 +000015312 archive_cmds_need_lc=yes
15313 # This is similar to how AIX traditionally builds its shared libraries.
15314 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'
15315 fi
15316 fi
15317 ;;
15318
15319 amigaos*)
15320 case $host_cpu in
15321 powerpc)
15322 # see comment about AmigaOS4 .so support
15323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15324 archive_expsym_cmds=''
15325 ;;
15326 m68k)
15327 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)'
15328 hardcode_libdir_flag_spec='-L$libdir'
15329 hardcode_minus_L=yes
15330 ;;
15331 esac
15332 ;;
15333
15334 bsdi[45]*)
15335 export_dynamic_flag_spec=-rdynamic
15336 ;;
15337
15338 cygwin* | mingw* | pw32* | cegcc*)
15339 # When not using gcc, we currently assume that we are using
15340 # Microsoft Visual C++.
15341 # hardcode_libdir_flag_spec is actually meaningless, as there is
15342 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015343 case $cc_basename in
15344 cl*)
15345 # Native MSVC
15346 hardcode_libdir_flag_spec=' '
15347 allow_undefined_flag=unsupported
15348 always_export_symbols=yes
15349 file_list_spec='@'
15350 # Tell ltmain to make .lib files, not .a files.
15351 libext=lib
15352 # Tell ltmain to make .dll files, not .so files.
15353 shrext_cmds=".dll"
15354 # FIXME: Setting linknames here is a bad hack.
15355 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15356 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15357 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15358 else
15359 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15360 fi~
15361 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15362 linknames='
15363 # The linker will not automatically build a static lib if we build a DLL.
15364 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15365 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015366 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015367 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15368 # Don't use ranlib
15369 old_postinstall_cmds='chmod 644 $oldlib'
15370 postlink_cmds='lt_outputfile="@OUTPUT@"~
15371 lt_tool_outputfile="@TOOL_OUTPUT@"~
15372 case $lt_outputfile in
15373 *.exe|*.EXE) ;;
15374 *)
15375 lt_outputfile="$lt_outputfile.exe"
15376 lt_tool_outputfile="$lt_tool_outputfile.exe"
15377 ;;
15378 esac~
15379 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15380 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15381 $RM "$lt_outputfile.manifest";
15382 fi'
15383 ;;
15384 *)
15385 # Assume MSVC wrapper
15386 hardcode_libdir_flag_spec=' '
15387 allow_undefined_flag=unsupported
15388 # Tell ltmain to make .lib files, not .a files.
15389 libext=lib
15390 # Tell ltmain to make .dll files, not .so files.
15391 shrext_cmds=".dll"
15392 # FIXME: Setting linknames here is a bad hack.
15393 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15394 # The linker will automatically build a .lib file if we build a DLL.
15395 old_archive_from_new_cmds='true'
15396 # FIXME: Should let the user specify the lib program.
15397 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15398 enable_shared_with_static_runtimes=yes
15399 ;;
15400 esac
cristy73bd4a52010-10-05 11:24:23 +000015401 ;;
15402
15403 darwin* | rhapsody*)
15404
15405
15406 archive_cmds_need_lc=no
15407 hardcode_direct=no
15408 hardcode_automatic=yes
15409 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015410 if test "$lt_cv_ld_force_load" = "yes"; then
15411 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 +000015412
cristy0c60a692010-11-04 01:09:47 +000015413 else
15414 whole_archive_flag_spec=''
15415 fi
cristy73bd4a52010-10-05 11:24:23 +000015416 link_all_deplibs=yes
15417 allow_undefined_flag="$_lt_dar_allow_undefined"
15418 case $cc_basename in
15419 ifort*) _lt_dar_can_shared=yes ;;
15420 *) _lt_dar_can_shared=$GCC ;;
15421 esac
15422 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015423 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015424 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15425 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15426 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}"
15427 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}"
15428
15429 else
15430 ld_shlibs=no
15431 fi
15432
15433 ;;
15434
15435 dgux*)
15436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15437 hardcode_libdir_flag_spec='-L$libdir'
15438 hardcode_shlibpath_var=no
15439 ;;
15440
cristy73bd4a52010-10-05 11:24:23 +000015441 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15442 # support. Future versions do this automatically, but an explicit c++rt0.o
15443 # does not break anything, and helps significantly (at the cost of a little
15444 # extra space).
15445 freebsd2.2*)
15446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15447 hardcode_libdir_flag_spec='-R$libdir'
15448 hardcode_direct=yes
15449 hardcode_shlibpath_var=no
15450 ;;
15451
15452 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015453 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015454 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15455 hardcode_direct=yes
15456 hardcode_minus_L=yes
15457 hardcode_shlibpath_var=no
15458 ;;
15459
15460 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15461 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015462 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015463 hardcode_libdir_flag_spec='-R$libdir'
15464 hardcode_direct=yes
15465 hardcode_shlibpath_var=no
15466 ;;
15467
15468 hpux9*)
15469 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015470 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 +000015471 else
15472 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'
15473 fi
15474 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15475 hardcode_libdir_separator=:
15476 hardcode_direct=yes
15477
15478 # hardcode_minus_L: Not really in the search PATH,
15479 # but as the default location of the library.
15480 hardcode_minus_L=yes
15481 export_dynamic_flag_spec='${wl}-E'
15482 ;;
15483
15484 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015485 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015486 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 +000015487 else
15488 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15489 fi
15490 if test "$with_gnu_ld" = no; then
15491 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015492 hardcode_libdir_separator=:
15493 hardcode_direct=yes
15494 hardcode_direct_absolute=yes
15495 export_dynamic_flag_spec='${wl}-E'
15496 # hardcode_minus_L: Not really in the search PATH,
15497 # but as the default location of the library.
15498 hardcode_minus_L=yes
15499 fi
15500 ;;
15501
15502 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015503 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015504 case $host_cpu in
15505 hppa*64*)
15506 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507 ;;
15508 ia64*)
cristyda16f162011-02-19 23:52:17 +000015509 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015510 ;;
15511 *)
cristyda16f162011-02-19 23:52:17 +000015512 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 +000015513 ;;
15514 esac
15515 else
15516 case $host_cpu in
15517 hppa*64*)
15518 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15519 ;;
15520 ia64*)
15521 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15522 ;;
15523 *)
cristy0c60a692010-11-04 01:09:47 +000015524
15525 # Older versions of the 11.00 compiler do not understand -b yet
15526 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15528$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015529if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015530 $as_echo_n "(cached) " >&6
15531else
15532 lt_cv_prog_compiler__b=no
15533 save_LDFLAGS="$LDFLAGS"
15534 LDFLAGS="$LDFLAGS -b"
15535 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15536 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15537 # The linker can only warn and ignore the option if not recognized
15538 # So say no if there are warnings
15539 if test -s conftest.err; then
15540 # Append any errors to the config.log.
15541 cat conftest.err 1>&5
15542 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15544 if diff conftest.exp conftest.er2 >/dev/null; then
15545 lt_cv_prog_compiler__b=yes
15546 fi
15547 else
15548 lt_cv_prog_compiler__b=yes
15549 fi
15550 fi
15551 $RM -r conftest*
15552 LDFLAGS="$save_LDFLAGS"
15553
15554fi
15555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15556$as_echo "$lt_cv_prog_compiler__b" >&6; }
15557
15558if test x"$lt_cv_prog_compiler__b" = xyes; then
15559 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15560else
15561 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15562fi
15563
cristy73bd4a52010-10-05 11:24:23 +000015564 ;;
15565 esac
15566 fi
15567 if test "$with_gnu_ld" = no; then
15568 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15569 hardcode_libdir_separator=:
15570
15571 case $host_cpu in
15572 hppa*64*|ia64*)
15573 hardcode_direct=no
15574 hardcode_shlibpath_var=no
15575 ;;
15576 *)
15577 hardcode_direct=yes
15578 hardcode_direct_absolute=yes
15579 export_dynamic_flag_spec='${wl}-E'
15580
15581 # hardcode_minus_L: Not really in the search PATH,
15582 # but as the default location of the library.
15583 hardcode_minus_L=yes
15584 ;;
15585 esac
15586 fi
15587 ;;
15588
15589 irix5* | irix6* | nonstopux*)
15590 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015591 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 +000015592 # Try to use the -exported_symbol ld option, if it does not
15593 # work, assume that -exports_file does not work either and
15594 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015595 # This should be the same for all languages, so no per-tag cache variable.
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15597$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15598if ${lt_cv_irix_exported_symbol+:} false; then :
15599 $as_echo_n "(cached) " >&6
15600else
15601 save_LDFLAGS="$LDFLAGS"
15602 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015604/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015605int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015606_ACEOF
15607if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015608 lt_cv_irix_exported_symbol=yes
15609else
15610 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015611fi
15612rm -f core conftest.err conftest.$ac_objext \
15613 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015614 LDFLAGS="$save_LDFLAGS"
15615fi
15616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15617$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15618 if test "$lt_cv_irix_exported_symbol" = yes; then
15619 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'
15620 fi
cristy73bd4a52010-10-05 11:24:23 +000015621 else
cristy0c60a692010-11-04 01:09:47 +000015622 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'
15623 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 +000015624 fi
15625 archive_cmds_need_lc='no'
15626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15627 hardcode_libdir_separator=:
15628 inherit_rpath=yes
15629 link_all_deplibs=yes
15630 ;;
15631
15632 netbsd*)
15633 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15635 else
15636 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15637 fi
15638 hardcode_libdir_flag_spec='-R$libdir'
15639 hardcode_direct=yes
15640 hardcode_shlibpath_var=no
15641 ;;
15642
15643 newsos6)
15644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15645 hardcode_direct=yes
15646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15647 hardcode_libdir_separator=:
15648 hardcode_shlibpath_var=no
15649 ;;
15650
15651 *nto* | *qnx*)
15652 ;;
15653
15654 openbsd*)
15655 if test -f /usr/libexec/ld.so; then
15656 hardcode_direct=yes
15657 hardcode_shlibpath_var=no
15658 hardcode_direct_absolute=yes
15659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15660 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15661 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15662 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15663 export_dynamic_flag_spec='${wl}-E'
15664 else
15665 case $host_os in
15666 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15668 hardcode_libdir_flag_spec='-R$libdir'
15669 ;;
15670 *)
15671 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15672 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15673 ;;
15674 esac
15675 fi
15676 else
15677 ld_shlibs=no
15678 fi
15679 ;;
15680
15681 os2*)
15682 hardcode_libdir_flag_spec='-L$libdir'
15683 hardcode_minus_L=yes
15684 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015685 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 +000015686 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15687 ;;
15688
15689 osf3*)
15690 if test "$GCC" = yes; then
15691 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015692 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 +000015693 else
15694 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015695 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 +000015696 fi
15697 archive_cmds_need_lc='no'
15698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15699 hardcode_libdir_separator=:
15700 ;;
15701
15702 osf4* | osf5*) # as osf3* with the addition of -msym flag
15703 if test "$GCC" = yes; then
15704 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015705 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 +000015706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15707 else
15708 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015709 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 +000015710 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 +000015711 $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 +000015712
15713 # Both c and cxx compiler support -rpath directly
15714 hardcode_libdir_flag_spec='-rpath $libdir'
15715 fi
15716 archive_cmds_need_lc='no'
15717 hardcode_libdir_separator=:
15718 ;;
15719
15720 solaris*)
15721 no_undefined_flag=' -z defs'
15722 if test "$GCC" = yes; then
15723 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015724 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 +000015725 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 +000015726 $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 +000015727 else
15728 case `$CC -V 2>&1` in
15729 *"Compilers 5.0"*)
15730 wlarc=''
15731 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15732 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15733 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15734 ;;
15735 *)
15736 wlarc='${wl}'
15737 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15738 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15739 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15740 ;;
15741 esac
15742 fi
15743 hardcode_libdir_flag_spec='-R$libdir'
15744 hardcode_shlibpath_var=no
15745 case $host_os in
15746 solaris2.[0-5] | solaris2.[0-5].*) ;;
15747 *)
15748 # The compiler driver will combine and reorder linker options,
15749 # but understands `-z linker_flag'. GCC discards it without `$wl',
15750 # but is careful enough not to reorder.
15751 # Supported since Solaris 2.6 (maybe 2.5.1?)
15752 if test "$GCC" = yes; then
15753 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15754 else
15755 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15756 fi
15757 ;;
15758 esac
15759 link_all_deplibs=yes
15760 ;;
15761
15762 sunos4*)
15763 if test "x$host_vendor" = xsequent; then
15764 # Use $CC to link under sequent, because it throws in some extra .o
15765 # files that make .init and .fini sections work.
15766 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15767 else
15768 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15769 fi
15770 hardcode_libdir_flag_spec='-L$libdir'
15771 hardcode_direct=yes
15772 hardcode_minus_L=yes
15773 hardcode_shlibpath_var=no
15774 ;;
15775
15776 sysv4)
15777 case $host_vendor in
15778 sni)
15779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15780 hardcode_direct=yes # is this really true???
15781 ;;
15782 siemens)
15783 ## LD is ld it makes a PLAMLIB
15784 ## CC just makes a GrossModule.
15785 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15786 reload_cmds='$CC -r -o $output$reload_objs'
15787 hardcode_direct=no
15788 ;;
15789 motorola)
15790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15791 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15792 ;;
15793 esac
15794 runpath_var='LD_RUN_PATH'
15795 hardcode_shlibpath_var=no
15796 ;;
15797
15798 sysv4.3*)
15799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15800 hardcode_shlibpath_var=no
15801 export_dynamic_flag_spec='-Bexport'
15802 ;;
15803
15804 sysv4*MP*)
15805 if test -d /usr/nec; then
15806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15807 hardcode_shlibpath_var=no
15808 runpath_var=LD_RUN_PATH
15809 hardcode_runpath_var=yes
15810 ld_shlibs=yes
15811 fi
15812 ;;
15813
15814 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15815 no_undefined_flag='${wl}-z,text'
15816 archive_cmds_need_lc=no
15817 hardcode_shlibpath_var=no
15818 runpath_var='LD_RUN_PATH'
15819
15820 if test "$GCC" = yes; then
15821 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15822 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15823 else
15824 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15825 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15826 fi
15827 ;;
15828
15829 sysv5* | sco3.2v5* | sco5v6*)
15830 # Note: We can NOT use -z defs as we might desire, because we do not
15831 # link with -lc, and that would cause any symbols used from libc to
15832 # always be unresolved, which means just about no library would
15833 # ever link correctly. If we're not using GNU ld we use -z text
15834 # though, which does catch some bad symbols but isn't as heavy-handed
15835 # as -z defs.
15836 no_undefined_flag='${wl}-z,text'
15837 allow_undefined_flag='${wl}-z,nodefs'
15838 archive_cmds_need_lc=no
15839 hardcode_shlibpath_var=no
15840 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15841 hardcode_libdir_separator=':'
15842 link_all_deplibs=yes
15843 export_dynamic_flag_spec='${wl}-Bexport'
15844 runpath_var='LD_RUN_PATH'
15845
15846 if test "$GCC" = yes; then
15847 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15848 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15849 else
15850 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15851 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15852 fi
15853 ;;
15854
15855 uts4*)
15856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15857 hardcode_libdir_flag_spec='-L$libdir'
15858 hardcode_shlibpath_var=no
15859 ;;
15860
15861 *)
15862 ld_shlibs=no
15863 ;;
15864 esac
15865
15866 if test x$host_vendor = xsni; then
15867 case $host in
15868 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15869 export_dynamic_flag_spec='${wl}-Blargedynsym'
15870 ;;
15871 esac
15872 fi
15873 fi
15874
15875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15876$as_echo "$ld_shlibs" >&6; }
15877test "$ld_shlibs" = no && can_build_shared=no
15878
15879with_gnu_ld=$with_gnu_ld
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895#
15896# Do we need to explicitly link libc?
15897#
15898case "x$archive_cmds_need_lc" in
15899x|xyes)
15900 # Assume -lc should be added
15901 archive_cmds_need_lc=yes
15902
15903 if test "$enable_shared" = yes && test "$GCC" = yes; then
15904 case $archive_cmds in
15905 *'~'*)
15906 # FIXME: we may have to deal with multi-command sequences.
15907 ;;
15908 '$CC '*)
15909 # Test whether the compiler implicitly links with -lc since on some
15910 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15911 # to ld, don't add -lc before -lgcc.
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15913$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015914if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015915 $as_echo_n "(cached) " >&6
15916else
15917 $RM conftest*
15918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015919
cristy0c60a692010-11-04 01:09:47 +000015920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015921 (eval $ac_compile) 2>&5
15922 ac_status=$?
15923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15924 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015925 soname=conftest
15926 lib=conftest
15927 libobjs=conftest.$ac_objext
15928 deplibs=
15929 wl=$lt_prog_compiler_wl
15930 pic_flag=$lt_prog_compiler_pic
15931 compiler_flags=-v
15932 linker_flags=-v
15933 verstring=
15934 output_objdir=.
15935 libname=conftest
15936 lt_save_allow_undefined_flag=$allow_undefined_flag
15937 allow_undefined_flag=
15938 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 +000015939 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15940 ac_status=$?
15941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15942 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015943 then
15944 lt_cv_archive_cmds_need_lc=no
15945 else
15946 lt_cv_archive_cmds_need_lc=yes
15947 fi
15948 allow_undefined_flag=$lt_save_allow_undefined_flag
15949 else
15950 cat conftest.err 1>&5
15951 fi
15952 $RM conftest*
15953
15954fi
15955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15956$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15957 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015958 ;;
15959 esac
15960 fi
15961 ;;
15962esac
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
cristy73bd4a52010-10-05 11:24:23 +000016115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16116$as_echo_n "checking dynamic linker characteristics... " >&6; }
16117
16118if test "$GCC" = yes; then
16119 case $host_os in
16120 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16121 *) lt_awk_arg="/^libraries:/" ;;
16122 esac
cristy0c60a692010-11-04 01:09:47 +000016123 case $host_os in
16124 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16125 *) lt_sed_strip_eq="s,=/,/,g" ;;
16126 esac
16127 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16128 case $lt_search_path_spec in
16129 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016130 # if the path contains ";" then we assume it to be the separator
16131 # otherwise default to the standard path separator (i.e. ":") - it is
16132 # assumed that no part of a normal pathname contains ";" but that should
16133 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016134 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16135 ;;
16136 *)
16137 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16138 ;;
16139 esac
cristy73bd4a52010-10-05 11:24:23 +000016140 # Ok, now we have the path, separated by spaces, we can step through it
16141 # and add multilib dir if necessary.
16142 lt_tmp_lt_search_path_spec=
16143 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16144 for lt_sys_path in $lt_search_path_spec; do
16145 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16146 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16147 else
16148 test -d "$lt_sys_path" && \
16149 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16150 fi
16151 done
cristy0c60a692010-11-04 01:09:47 +000016152 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016153BEGIN {RS=" "; FS="/|\n";} {
16154 lt_foo="";
16155 lt_count=0;
16156 for (lt_i = NF; lt_i > 0; lt_i--) {
16157 if ($lt_i != "" && $lt_i != ".") {
16158 if ($lt_i == "..") {
16159 lt_count++;
16160 } else {
16161 if (lt_count == 0) {
16162 lt_foo="/" $lt_i lt_foo;
16163 } else {
16164 lt_count--;
16165 }
16166 }
16167 }
16168 }
16169 if (lt_foo != "") { lt_freq[lt_foo]++; }
16170 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16171}'`
cristy0c60a692010-11-04 01:09:47 +000016172 # AWK program above erroneously prepends '/' to C:/dos/paths
16173 # for these hosts.
16174 case $host_os in
16175 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16176 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16177 esac
16178 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016179else
16180 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16181fi
16182library_names_spec=
16183libname_spec='lib$name'
16184soname_spec=
16185shrext_cmds=".so"
16186postinstall_cmds=
16187postuninstall_cmds=
16188finish_cmds=
16189finish_eval=
16190shlibpath_var=
16191shlibpath_overrides_runpath=unknown
16192version_type=none
16193dynamic_linker="$host_os ld.so"
16194sys_lib_dlsearch_path_spec="/lib /usr/lib"
16195need_lib_prefix=unknown
16196hardcode_into_libs=no
16197
16198# when you set need_version to no, make sure it does not cause -set_version
16199# flags to be left without arguments
16200need_version=unknown
16201
16202case $host_os in
16203aix3*)
cristy99bd5232011-12-07 14:38:20 +000016204 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16206 shlibpath_var=LIBPATH
16207
16208 # AIX 3 has no versioning support, so we append a major version to the name.
16209 soname_spec='${libname}${release}${shared_ext}$major'
16210 ;;
16211
16212aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016213 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016214 need_lib_prefix=no
16215 need_version=no
16216 hardcode_into_libs=yes
16217 if test "$host_cpu" = ia64; then
16218 # AIX 5 supports IA64
16219 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16220 shlibpath_var=LD_LIBRARY_PATH
16221 else
16222 # With GCC up to 2.95.x, collect2 would create an import file
16223 # for dependence libraries. The import file would start with
16224 # the line `#! .'. This would cause the generated library to
16225 # depend on `.', always an invalid library. This was fixed in
16226 # development snapshots of GCC prior to 3.0.
16227 case $host_os in
16228 aix4 | aix4.[01] | aix4.[01].*)
16229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16230 echo ' yes '
16231 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16232 :
16233 else
16234 can_build_shared=no
16235 fi
16236 ;;
16237 esac
16238 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16239 # soname into executable. Probably we can add versioning support to
16240 # collect2, so additional links can be useful in future.
16241 if test "$aix_use_runtimelinking" = yes; then
16242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16243 # instead of lib<name>.a to let people know that these are not
16244 # typical AIX shared libraries.
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246 else
16247 # We preserve .a as extension for shared libraries through AIX4.2
16248 # and later when we are not doing run time linking.
16249 library_names_spec='${libname}${release}.a $libname.a'
16250 soname_spec='${libname}${release}${shared_ext}$major'
16251 fi
16252 shlibpath_var=LIBPATH
16253 fi
16254 ;;
16255
16256amigaos*)
16257 case $host_cpu in
16258 powerpc)
16259 # Since July 2007 AmigaOS4 officially supports .so libraries.
16260 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262 ;;
16263 m68k)
16264 library_names_spec='$libname.ixlibrary $libname.a'
16265 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016266 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 +000016267 ;;
16268 esac
16269 ;;
16270
16271beos*)
16272 library_names_spec='${libname}${shared_ext}'
16273 dynamic_linker="$host_os ld.so"
16274 shlibpath_var=LIBRARY_PATH
16275 ;;
16276
16277bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016278 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016279 need_version=no
16280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281 soname_spec='${libname}${release}${shared_ext}$major'
16282 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16283 shlibpath_var=LD_LIBRARY_PATH
16284 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16285 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16286 # the default ld.so.conf also contains /usr/contrib/lib and
16287 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16288 # libtool to hard-code these into programs
16289 ;;
16290
16291cygwin* | mingw* | pw32* | cegcc*)
16292 version_type=windows
16293 shrext_cmds=".dll"
16294 need_version=no
16295 need_lib_prefix=no
16296
cristyda16f162011-02-19 23:52:17 +000016297 case $GCC,$cc_basename in
16298 yes,*)
16299 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016300 library_names_spec='$libname.dll.a'
16301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16302 postinstall_cmds='base_file=`basename \${file}`~
16303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16304 dldir=$destdir/`dirname \$dlpath`~
16305 test -d \$dldir || mkdir -p \$dldir~
16306 $install_prog $dir/$dlname \$dldir/$dlname~
16307 chmod a+x \$dldir/$dlname~
16308 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16309 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16310 fi'
16311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16312 dlpath=$dir/\$dldll~
16313 $RM \$dlpath'
16314 shlibpath_overrides_runpath=yes
16315
16316 case $host_os in
16317 cygwin*)
16318 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16319 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016320
16321 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016322 ;;
16323 mingw* | cegcc*)
16324 # MinGW DLLs use traditional 'lib' prefix
16325 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016326 ;;
16327 pw32*)
16328 # pw32 DLLs use 'pw' prefix rather than 'lib'
16329 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16330 ;;
16331 esac
cristyda16f162011-02-19 23:52:17 +000016332 dynamic_linker='Win32 ld.exe'
16333 ;;
16334
16335 *,cl*)
16336 # Native MSVC
16337 libname_spec='$name'
16338 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16339 library_names_spec='${libname}.dll.lib'
16340
16341 case $build_os in
16342 mingw*)
16343 sys_lib_search_path_spec=
16344 lt_save_ifs=$IFS
16345 IFS=';'
16346 for lt_path in $LIB
16347 do
16348 IFS=$lt_save_ifs
16349 # Let DOS variable expansion print the short 8.3 style file name.
16350 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16351 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16352 done
16353 IFS=$lt_save_ifs
16354 # Convert to MSYS style.
16355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16356 ;;
16357 cygwin*)
16358 # Convert to unix form, then to dos form, then back to unix form
16359 # but this time dos style (no spaces!) so that the unix form looks
16360 # like /cygdrive/c/PROGRA~1:/cygdr...
16361 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16362 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16363 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16364 ;;
16365 *)
16366 sys_lib_search_path_spec="$LIB"
16367 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16368 # It is most probably a Windows format PATH.
16369 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16370 else
16371 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16372 fi
16373 # FIXME: find the short name or the path components, as spaces are
16374 # common. (e.g. "Program Files" -> "PROGRA~1")
16375 ;;
16376 esac
16377
16378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16379 postinstall_cmds='base_file=`basename \${file}`~
16380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16381 dldir=$destdir/`dirname \$dlpath`~
16382 test -d \$dldir || mkdir -p \$dldir~
16383 $install_prog $dir/$dlname \$dldir/$dlname'
16384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16385 dlpath=$dir/\$dldll~
16386 $RM \$dlpath'
16387 shlibpath_overrides_runpath=yes
16388 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016389 ;;
16390
16391 *)
cristyda16f162011-02-19 23:52:17 +000016392 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016393 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016394 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016395 ;;
16396 esac
cristy73bd4a52010-10-05 11:24:23 +000016397 # FIXME: first we should search . and the directory the executable is in
16398 shlibpath_var=PATH
16399 ;;
16400
16401darwin* | rhapsody*)
16402 dynamic_linker="$host_os dyld"
16403 version_type=darwin
16404 need_lib_prefix=no
16405 need_version=no
16406 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16407 soname_spec='${libname}${release}${major}$shared_ext'
16408 shlibpath_overrides_runpath=yes
16409 shlibpath_var=DYLD_LIBRARY_PATH
16410 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16411
16412 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16413 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16414 ;;
16415
16416dgux*)
cristy99bd5232011-12-07 14:38:20 +000016417 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016418 need_lib_prefix=no
16419 need_version=no
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16421 soname_spec='${libname}${release}${shared_ext}$major'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 ;;
16424
cristy73bd4a52010-10-05 11:24:23 +000016425freebsd* | dragonfly*)
16426 # DragonFly does not have aout. When/if they implement a new
16427 # versioning mechanism, adjust this.
16428 if test -x /usr/bin/objformat; then
16429 objformat=`/usr/bin/objformat`
16430 else
16431 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016432 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016433 *) objformat=elf ;;
16434 esac
16435 fi
16436 version_type=freebsd-$objformat
16437 case $version_type in
16438 freebsd-elf*)
16439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16440 need_version=no
16441 need_lib_prefix=no
16442 ;;
16443 freebsd-*)
16444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16445 need_version=yes
16446 ;;
16447 esac
16448 shlibpath_var=LD_LIBRARY_PATH
16449 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016450 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016451 shlibpath_overrides_runpath=yes
16452 ;;
16453 freebsd3.[01]* | freebsdelf3.[01]*)
16454 shlibpath_overrides_runpath=yes
16455 hardcode_into_libs=yes
16456 ;;
16457 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16458 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16459 shlibpath_overrides_runpath=no
16460 hardcode_into_libs=yes
16461 ;;
16462 *) # from 4.6 on, and DragonFly
16463 shlibpath_overrides_runpath=yes
16464 hardcode_into_libs=yes
16465 ;;
16466 esac
16467 ;;
16468
16469gnu*)
cristy99bd5232011-12-07 14:38:20 +000016470 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016471 need_lib_prefix=no
16472 need_version=no
16473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16474 soname_spec='${libname}${release}${shared_ext}$major'
16475 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016476 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016477 hardcode_into_libs=yes
16478 ;;
16479
cristy0c60a692010-11-04 01:09:47 +000016480haiku*)
cristy99bd5232011-12-07 14:38:20 +000016481 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016482 need_lib_prefix=no
16483 need_version=no
16484 dynamic_linker="$host_os runtime_loader"
16485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16486 soname_spec='${libname}${release}${shared_ext}$major'
16487 shlibpath_var=LIBRARY_PATH
16488 shlibpath_overrides_runpath=yes
16489 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16490 hardcode_into_libs=yes
16491 ;;
16492
cristy73bd4a52010-10-05 11:24:23 +000016493hpux9* | hpux10* | hpux11*)
16494 # Give a soname corresponding to the major version so that dld.sl refuses to
16495 # link against other versions.
16496 version_type=sunos
16497 need_lib_prefix=no
16498 need_version=no
16499 case $host_cpu in
16500 ia64*)
16501 shrext_cmds='.so'
16502 hardcode_into_libs=yes
16503 dynamic_linker="$host_os dld.so"
16504 shlibpath_var=LD_LIBRARY_PATH
16505 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16507 soname_spec='${libname}${release}${shared_ext}$major'
16508 if test "X$HPUX_IA64_MODE" = X32; then
16509 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16510 else
16511 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16512 fi
16513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16514 ;;
16515 hppa*64*)
16516 shrext_cmds='.sl'
16517 hardcode_into_libs=yes
16518 dynamic_linker="$host_os dld.sl"
16519 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16522 soname_spec='${libname}${release}${shared_ext}$major'
16523 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16525 ;;
16526 *)
16527 shrext_cmds='.sl'
16528 dynamic_linker="$host_os dld.sl"
16529 shlibpath_var=SHLIB_PATH
16530 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16532 soname_spec='${libname}${release}${shared_ext}$major'
16533 ;;
16534 esac
cristy0c60a692010-11-04 01:09:47 +000016535 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016536 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016537 # or fails outright, so override atomically:
16538 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016539 ;;
16540
16541interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016542 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016543 need_lib_prefix=no
16544 need_version=no
16545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16546 soname_spec='${libname}${release}${shared_ext}$major'
16547 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16548 shlibpath_var=LD_LIBRARY_PATH
16549 shlibpath_overrides_runpath=no
16550 hardcode_into_libs=yes
16551 ;;
16552
16553irix5* | irix6* | nonstopux*)
16554 case $host_os in
16555 nonstopux*) version_type=nonstopux ;;
16556 *)
16557 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016558 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016559 else
16560 version_type=irix
16561 fi ;;
16562 esac
16563 need_lib_prefix=no
16564 need_version=no
16565 soname_spec='${libname}${release}${shared_ext}$major'
16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16567 case $host_os in
16568 irix5* | nonstopux*)
16569 libsuff= shlibsuff=
16570 ;;
16571 *)
16572 case $LD in # libtool.m4 will add one of these switches to LD
16573 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16574 libsuff= shlibsuff= libmagic=32-bit;;
16575 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16576 libsuff=32 shlibsuff=N32 libmagic=N32;;
16577 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16578 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16579 *) libsuff= shlibsuff= libmagic=never-match;;
16580 esac
16581 ;;
16582 esac
16583 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16584 shlibpath_overrides_runpath=no
16585 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16586 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16587 hardcode_into_libs=yes
16588 ;;
16589
16590# No shared lib support for Linux oldld, aout, or coff.
16591linux*oldld* | linux*aout* | linux*coff*)
16592 dynamic_linker=no
16593 ;;
16594
cristy99bd5232011-12-07 14:38:20 +000016595# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016596linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016597 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016598 need_lib_prefix=no
16599 need_version=no
16600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16601 soname_spec='${libname}${release}${shared_ext}$major'
16602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16603 shlibpath_var=LD_LIBRARY_PATH
16604 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016605
cristy73bd4a52010-10-05 11:24:23 +000016606 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016607 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016608 $as_echo_n "(cached) " >&6
16609else
16610 lt_cv_shlibpath_overrides_runpath=no
16611 save_LDFLAGS=$LDFLAGS
16612 save_libdir=$libdir
16613 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16614 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016616/* end confdefs.h. */
16617
16618int
16619main ()
16620{
16621
16622 ;
16623 return 0;
16624}
16625_ACEOF
16626if ac_fn_c_try_link "$LINENO"; then :
16627 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016628 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016629fi
16630fi
16631rm -f core conftest.err conftest.$ac_objext \
16632 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016633 LDFLAGS=$save_LDFLAGS
16634 libdir=$save_libdir
16635
16636fi
16637
16638 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016639
16640 # This implies no fast_install, which is unacceptable.
16641 # Some rework will be needed to allow for fast_install
16642 # before this can be enabled.
16643 hardcode_into_libs=yes
16644
16645 # Add ABI-specific directories to the system library path.
16646 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16647
16648 # Append ld.so.conf contents to the search path
16649 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016650 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 +000016651 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016652
cristy73bd4a52010-10-05 11:24:23 +000016653 fi
16654
16655 # We used to test for /lib/ld.so.1 and disable shared libraries on
16656 # powerpc, because MkLinux only supported shared libraries with the
16657 # GNU dynamic linker. Since this was broken with cross compilers,
16658 # most powerpc-linux boxes support dynamic linking these days and
16659 # people can always --disable-shared, the test was removed, and we
16660 # assume the GNU/Linux dynamic linker is in use.
16661 dynamic_linker='GNU/Linux ld.so'
16662 ;;
16663
16664netbsd*)
16665 version_type=sunos
16666 need_lib_prefix=no
16667 need_version=no
16668 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16671 dynamic_linker='NetBSD (a.out) ld.so'
16672 else
16673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16674 soname_spec='${libname}${release}${shared_ext}$major'
16675 dynamic_linker='NetBSD ld.elf_so'
16676 fi
16677 shlibpath_var=LD_LIBRARY_PATH
16678 shlibpath_overrides_runpath=yes
16679 hardcode_into_libs=yes
16680 ;;
16681
16682newsos6)
cristy99bd5232011-12-07 14:38:20 +000016683 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685 shlibpath_var=LD_LIBRARY_PATH
16686 shlibpath_overrides_runpath=yes
16687 ;;
16688
16689*nto* | *qnx*)
16690 version_type=qnx
16691 need_lib_prefix=no
16692 need_version=no
16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16694 soname_spec='${libname}${release}${shared_ext}$major'
16695 shlibpath_var=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath=no
16697 hardcode_into_libs=yes
16698 dynamic_linker='ldqnx.so'
16699 ;;
16700
16701openbsd*)
16702 version_type=sunos
16703 sys_lib_dlsearch_path_spec="/usr/lib"
16704 need_lib_prefix=no
16705 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16706 case $host_os in
16707 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16708 *) need_version=no ;;
16709 esac
16710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16712 shlibpath_var=LD_LIBRARY_PATH
16713 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16714 case $host_os in
16715 openbsd2.[89] | openbsd2.[89].*)
16716 shlibpath_overrides_runpath=no
16717 ;;
16718 *)
16719 shlibpath_overrides_runpath=yes
16720 ;;
16721 esac
16722 else
16723 shlibpath_overrides_runpath=yes
16724 fi
16725 ;;
16726
16727os2*)
16728 libname_spec='$name'
16729 shrext_cmds=".dll"
16730 need_lib_prefix=no
16731 library_names_spec='$libname${shared_ext} $libname.a'
16732 dynamic_linker='OS/2 ld.exe'
16733 shlibpath_var=LIBPATH
16734 ;;
16735
16736osf3* | osf4* | osf5*)
16737 version_type=osf
16738 need_lib_prefix=no
16739 need_version=no
16740 soname_spec='${libname}${release}${shared_ext}$major'
16741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742 shlibpath_var=LD_LIBRARY_PATH
16743 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16744 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16745 ;;
16746
16747rdos*)
16748 dynamic_linker=no
16749 ;;
16750
16751solaris*)
cristy99bd5232011-12-07 14:38:20 +000016752 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016753 need_lib_prefix=no
16754 need_version=no
16755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756 soname_spec='${libname}${release}${shared_ext}$major'
16757 shlibpath_var=LD_LIBRARY_PATH
16758 shlibpath_overrides_runpath=yes
16759 hardcode_into_libs=yes
16760 # ldd complains unless libraries are executable
16761 postinstall_cmds='chmod +x $lib'
16762 ;;
16763
16764sunos4*)
16765 version_type=sunos
16766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16767 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16768 shlibpath_var=LD_LIBRARY_PATH
16769 shlibpath_overrides_runpath=yes
16770 if test "$with_gnu_ld" = yes; then
16771 need_lib_prefix=no
16772 fi
16773 need_version=yes
16774 ;;
16775
16776sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016777 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16779 soname_spec='${libname}${release}${shared_ext}$major'
16780 shlibpath_var=LD_LIBRARY_PATH
16781 case $host_vendor in
16782 sni)
16783 shlibpath_overrides_runpath=no
16784 need_lib_prefix=no
16785 runpath_var=LD_RUN_PATH
16786 ;;
16787 siemens)
16788 need_lib_prefix=no
16789 ;;
16790 motorola)
16791 need_lib_prefix=no
16792 need_version=no
16793 shlibpath_overrides_runpath=no
16794 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16795 ;;
16796 esac
16797 ;;
16798
16799sysv4*MP*)
16800 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016801 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016802 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16803 soname_spec='$libname${shared_ext}.$major'
16804 shlibpath_var=LD_LIBRARY_PATH
16805 fi
16806 ;;
16807
16808sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16809 version_type=freebsd-elf
16810 need_lib_prefix=no
16811 need_version=no
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16813 soname_spec='${libname}${release}${shared_ext}$major'
16814 shlibpath_var=LD_LIBRARY_PATH
16815 shlibpath_overrides_runpath=yes
16816 hardcode_into_libs=yes
16817 if test "$with_gnu_ld" = yes; then
16818 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16819 else
16820 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16821 case $host_os in
16822 sco3.2v5*)
16823 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16824 ;;
16825 esac
16826 fi
16827 sys_lib_dlsearch_path_spec='/usr/lib'
16828 ;;
16829
16830tpf*)
16831 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016832 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016833 need_lib_prefix=no
16834 need_version=no
16835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836 shlibpath_var=LD_LIBRARY_PATH
16837 shlibpath_overrides_runpath=no
16838 hardcode_into_libs=yes
16839 ;;
16840
16841uts4*)
cristy99bd5232011-12-07 14:38:20 +000016842 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844 soname_spec='${libname}${release}${shared_ext}$major'
16845 shlibpath_var=LD_LIBRARY_PATH
16846 ;;
16847
16848*)
16849 dynamic_linker=no
16850 ;;
16851esac
16852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16853$as_echo "$dynamic_linker" >&6; }
16854test "$dynamic_linker" = no && can_build_shared=no
16855
16856variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16857if test "$GCC" = yes; then
16858 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16859fi
16860
16861if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16862 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16863fi
16864if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16865 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16866fi
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
cristy0c60a692010-11-04 01:09:47 +000016954
16955
16956
16957
16958
cristy73bd4a52010-10-05 11:24:23 +000016959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16960$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16961hardcode_action=
16962if test -n "$hardcode_libdir_flag_spec" ||
16963 test -n "$runpath_var" ||
16964 test "X$hardcode_automatic" = "Xyes" ; then
16965
16966 # We can hardcode non-existent directories.
16967 if test "$hardcode_direct" != no &&
16968 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16969 # have to relink, otherwise we might link with an installed library
16970 # when we should be linking with a yet-to-be-installed one
16971 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16972 test "$hardcode_minus_L" != no; then
16973 # Linking always hardcodes the temporary library directory.
16974 hardcode_action=relink
16975 else
16976 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16977 hardcode_action=immediate
16978 fi
16979else
16980 # We cannot hardcode anything, or else we can only hardcode existing
16981 # directories.
16982 hardcode_action=unsupported
16983fi
16984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16985$as_echo "$hardcode_action" >&6; }
16986
16987if test "$hardcode_action" = relink ||
16988 test "$inherit_rpath" = yes; then
16989 # Fast installation is not supported
16990 enable_fast_install=no
16991elif test "$shlibpath_overrides_runpath" = yes ||
16992 test "$enable_shared" = no; then
16993 # Fast installation is not necessary
16994 enable_fast_install=needless
16995fi
16996
16997
16998
16999
17000
17001
17002 if test "x$enable_dlopen" != xyes; then
17003 enable_dlopen=unknown
17004 enable_dlopen_self=unknown
17005 enable_dlopen_self_static=unknown
17006else
17007 lt_cv_dlopen=no
17008 lt_cv_dlopen_libs=
17009
17010 case $host_os in
17011 beos*)
17012 lt_cv_dlopen="load_add_on"
17013 lt_cv_dlopen_libs=
17014 lt_cv_dlopen_self=yes
17015 ;;
17016
17017 mingw* | pw32* | cegcc*)
17018 lt_cv_dlopen="LoadLibrary"
17019 lt_cv_dlopen_libs=
17020 ;;
17021
17022 cygwin*)
17023 lt_cv_dlopen="dlopen"
17024 lt_cv_dlopen_libs=
17025 ;;
17026
17027 darwin*)
17028 # if libdl is installed we need to link against it
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17030$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017031if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017032 $as_echo_n "(cached) " >&6
17033else
17034 ac_check_lib_save_LIBS=$LIBS
17035LIBS="-ldl $LIBS"
17036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037/* end confdefs.h. */
17038
17039/* Override any GCC internal prototype to avoid an error.
17040 Use char because int might match the return type of a GCC
17041 builtin and then its argument prototype would still apply. */
17042#ifdef __cplusplus
17043extern "C"
17044#endif
17045char dlopen ();
17046int
17047main ()
17048{
17049return dlopen ();
17050 ;
17051 return 0;
17052}
17053_ACEOF
17054if ac_fn_c_try_link "$LINENO"; then :
17055 ac_cv_lib_dl_dlopen=yes
17056else
17057 ac_cv_lib_dl_dlopen=no
17058fi
17059rm -f core conftest.err conftest.$ac_objext \
17060 conftest$ac_exeext conftest.$ac_ext
17061LIBS=$ac_check_lib_save_LIBS
17062fi
17063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17064$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017065if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17067else
17068
17069 lt_cv_dlopen="dyld"
17070 lt_cv_dlopen_libs=
17071 lt_cv_dlopen_self=yes
17072
17073fi
17074
17075 ;;
17076
17077 *)
17078 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017079if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017080 lt_cv_dlopen="shl_load"
17081else
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17083$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017084if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017085 $as_echo_n "(cached) " >&6
17086else
17087 ac_check_lib_save_LIBS=$LIBS
17088LIBS="-ldld $LIBS"
17089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090/* end confdefs.h. */
17091
17092/* Override any GCC internal prototype to avoid an error.
17093 Use char because int might match the return type of a GCC
17094 builtin and then its argument prototype would still apply. */
17095#ifdef __cplusplus
17096extern "C"
17097#endif
17098char shl_load ();
17099int
17100main ()
17101{
17102return shl_load ();
17103 ;
17104 return 0;
17105}
17106_ACEOF
17107if ac_fn_c_try_link "$LINENO"; then :
17108 ac_cv_lib_dld_shl_load=yes
17109else
17110 ac_cv_lib_dld_shl_load=no
17111fi
17112rm -f core conftest.err conftest.$ac_objext \
17113 conftest$ac_exeext conftest.$ac_ext
17114LIBS=$ac_check_lib_save_LIBS
17115fi
17116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17117$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017118if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017119 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17120else
17121 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017122if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017123 lt_cv_dlopen="dlopen"
17124else
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17126$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017127if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017128 $as_echo_n "(cached) " >&6
17129else
17130 ac_check_lib_save_LIBS=$LIBS
17131LIBS="-ldl $LIBS"
17132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17133/* end confdefs.h. */
17134
17135/* Override any GCC internal prototype to avoid an error.
17136 Use char because int might match the return type of a GCC
17137 builtin and then its argument prototype would still apply. */
17138#ifdef __cplusplus
17139extern "C"
17140#endif
17141char dlopen ();
17142int
17143main ()
17144{
17145return dlopen ();
17146 ;
17147 return 0;
17148}
17149_ACEOF
17150if ac_fn_c_try_link "$LINENO"; then :
17151 ac_cv_lib_dl_dlopen=yes
17152else
17153 ac_cv_lib_dl_dlopen=no
17154fi
17155rm -f core conftest.err conftest.$ac_objext \
17156 conftest$ac_exeext conftest.$ac_ext
17157LIBS=$ac_check_lib_save_LIBS
17158fi
17159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17160$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017161if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17163else
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17165$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017166if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017167 $as_echo_n "(cached) " >&6
17168else
17169 ac_check_lib_save_LIBS=$LIBS
17170LIBS="-lsvld $LIBS"
17171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172/* end confdefs.h. */
17173
17174/* Override any GCC internal prototype to avoid an error.
17175 Use char because int might match the return type of a GCC
17176 builtin and then its argument prototype would still apply. */
17177#ifdef __cplusplus
17178extern "C"
17179#endif
17180char dlopen ();
17181int
17182main ()
17183{
17184return dlopen ();
17185 ;
17186 return 0;
17187}
17188_ACEOF
17189if ac_fn_c_try_link "$LINENO"; then :
17190 ac_cv_lib_svld_dlopen=yes
17191else
17192 ac_cv_lib_svld_dlopen=no
17193fi
17194rm -f core conftest.err conftest.$ac_objext \
17195 conftest$ac_exeext conftest.$ac_ext
17196LIBS=$ac_check_lib_save_LIBS
17197fi
17198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17199$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017200if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17202else
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17204$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017205if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017206 $as_echo_n "(cached) " >&6
17207else
17208 ac_check_lib_save_LIBS=$LIBS
17209LIBS="-ldld $LIBS"
17210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211/* end confdefs.h. */
17212
17213/* Override any GCC internal prototype to avoid an error.
17214 Use char because int might match the return type of a GCC
17215 builtin and then its argument prototype would still apply. */
17216#ifdef __cplusplus
17217extern "C"
17218#endif
17219char dld_link ();
17220int
17221main ()
17222{
17223return dld_link ();
17224 ;
17225 return 0;
17226}
17227_ACEOF
17228if ac_fn_c_try_link "$LINENO"; then :
17229 ac_cv_lib_dld_dld_link=yes
17230else
17231 ac_cv_lib_dld_dld_link=no
17232fi
17233rm -f core conftest.err conftest.$ac_objext \
17234 conftest$ac_exeext conftest.$ac_ext
17235LIBS=$ac_check_lib_save_LIBS
17236fi
17237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17238$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017239if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017240 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17241fi
17242
17243
17244fi
17245
17246
17247fi
17248
17249
17250fi
17251
17252
17253fi
17254
17255
17256fi
17257
17258 ;;
17259 esac
17260
17261 if test "x$lt_cv_dlopen" != xno; then
17262 enable_dlopen=yes
17263 else
17264 enable_dlopen=no
17265 fi
17266
17267 case $lt_cv_dlopen in
17268 dlopen)
17269 save_CPPFLAGS="$CPPFLAGS"
17270 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17271
17272 save_LDFLAGS="$LDFLAGS"
17273 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17274
17275 save_LIBS="$LIBS"
17276 LIBS="$lt_cv_dlopen_libs $LIBS"
17277
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17279$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017280if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017281 $as_echo_n "(cached) " >&6
17282else
17283 if test "$cross_compiling" = yes; then :
17284 lt_cv_dlopen_self=cross
17285else
17286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17287 lt_status=$lt_dlunknown
17288 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017289#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017290#include "confdefs.h"
17291
17292#if HAVE_DLFCN_H
17293#include <dlfcn.h>
17294#endif
17295
17296#include <stdio.h>
17297
17298#ifdef RTLD_GLOBAL
17299# define LT_DLGLOBAL RTLD_GLOBAL
17300#else
17301# ifdef DL_GLOBAL
17302# define LT_DLGLOBAL DL_GLOBAL
17303# else
17304# define LT_DLGLOBAL 0
17305# endif
17306#endif
17307
17308/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17309 find out it does not work in some platform. */
17310#ifndef LT_DLLAZY_OR_NOW
17311# ifdef RTLD_LAZY
17312# define LT_DLLAZY_OR_NOW RTLD_LAZY
17313# else
17314# ifdef DL_LAZY
17315# define LT_DLLAZY_OR_NOW DL_LAZY
17316# else
17317# ifdef RTLD_NOW
17318# define LT_DLLAZY_OR_NOW RTLD_NOW
17319# else
17320# ifdef DL_NOW
17321# define LT_DLLAZY_OR_NOW DL_NOW
17322# else
17323# define LT_DLLAZY_OR_NOW 0
17324# endif
17325# endif
17326# endif
17327# endif
17328#endif
17329
cristy0c60a692010-11-04 01:09:47 +000017330/* When -fvisbility=hidden is used, assume the code has been annotated
17331 correspondingly for the symbols needed. */
17332#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017333int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017334#endif
17335
cristyda16f162011-02-19 23:52:17 +000017336int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017337int main ()
17338{
17339 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17340 int status = $lt_dlunknown;
17341
17342 if (self)
17343 {
17344 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017345 else
17346 {
17347 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17348 else puts (dlerror ());
17349 }
cristy73bd4a52010-10-05 11:24:23 +000017350 /* dlclose (self); */
17351 }
17352 else
17353 puts (dlerror ());
17354
17355 return status;
17356}
17357_LT_EOF
17358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17359 (eval $ac_link) 2>&5
17360 ac_status=$?
17361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17362 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17363 (./conftest; exit; ) >&5 2>/dev/null
17364 lt_status=$?
17365 case x$lt_status in
17366 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17367 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17368 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17369 esac
17370 else :
17371 # compilation failed
17372 lt_cv_dlopen_self=no
17373 fi
17374fi
17375rm -fr conftest*
17376
17377
17378fi
17379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17380$as_echo "$lt_cv_dlopen_self" >&6; }
17381
17382 if test "x$lt_cv_dlopen_self" = xyes; then
17383 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17385$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017386if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017387 $as_echo_n "(cached) " >&6
17388else
17389 if test "$cross_compiling" = yes; then :
17390 lt_cv_dlopen_self_static=cross
17391else
17392 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17393 lt_status=$lt_dlunknown
17394 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017395#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017396#include "confdefs.h"
17397
17398#if HAVE_DLFCN_H
17399#include <dlfcn.h>
17400#endif
17401
17402#include <stdio.h>
17403
17404#ifdef RTLD_GLOBAL
17405# define LT_DLGLOBAL RTLD_GLOBAL
17406#else
17407# ifdef DL_GLOBAL
17408# define LT_DLGLOBAL DL_GLOBAL
17409# else
17410# define LT_DLGLOBAL 0
17411# endif
17412#endif
17413
17414/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17415 find out it does not work in some platform. */
17416#ifndef LT_DLLAZY_OR_NOW
17417# ifdef RTLD_LAZY
17418# define LT_DLLAZY_OR_NOW RTLD_LAZY
17419# else
17420# ifdef DL_LAZY
17421# define LT_DLLAZY_OR_NOW DL_LAZY
17422# else
17423# ifdef RTLD_NOW
17424# define LT_DLLAZY_OR_NOW RTLD_NOW
17425# else
17426# ifdef DL_NOW
17427# define LT_DLLAZY_OR_NOW DL_NOW
17428# else
17429# define LT_DLLAZY_OR_NOW 0
17430# endif
17431# endif
17432# endif
17433# endif
17434#endif
17435
cristy0c60a692010-11-04 01:09:47 +000017436/* When -fvisbility=hidden is used, assume the code has been annotated
17437 correspondingly for the symbols needed. */
17438#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017439int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017440#endif
17441
cristyda16f162011-02-19 23:52:17 +000017442int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017443int main ()
17444{
17445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17446 int status = $lt_dlunknown;
17447
17448 if (self)
17449 {
17450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017451 else
17452 {
17453 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17454 else puts (dlerror ());
17455 }
cristy73bd4a52010-10-05 11:24:23 +000017456 /* dlclose (self); */
17457 }
17458 else
17459 puts (dlerror ());
17460
17461 return status;
17462}
17463_LT_EOF
17464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17465 (eval $ac_link) 2>&5
17466 ac_status=$?
17467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17468 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17469 (./conftest; exit; ) >&5 2>/dev/null
17470 lt_status=$?
17471 case x$lt_status in
17472 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17473 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17474 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17475 esac
17476 else :
17477 # compilation failed
17478 lt_cv_dlopen_self_static=no
17479 fi
17480fi
17481rm -fr conftest*
17482
17483
17484fi
17485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17486$as_echo "$lt_cv_dlopen_self_static" >&6; }
17487 fi
17488
17489 CPPFLAGS="$save_CPPFLAGS"
17490 LDFLAGS="$save_LDFLAGS"
17491 LIBS="$save_LIBS"
17492 ;;
17493 esac
17494
17495 case $lt_cv_dlopen_self in
17496 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17497 *) enable_dlopen_self=unknown ;;
17498 esac
17499
17500 case $lt_cv_dlopen_self_static in
17501 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17502 *) enable_dlopen_self_static=unknown ;;
17503 esac
17504fi
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522striplib=
17523old_striplib=
17524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17525$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17526if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17527 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17528 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17530$as_echo "yes" >&6; }
17531else
17532# FIXME - insert some real tests, host_os isn't really good enough
17533 case $host_os in
17534 darwin*)
17535 if test -n "$STRIP" ; then
17536 striplib="$STRIP -x"
17537 old_striplib="$STRIP -S"
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17539$as_echo "yes" >&6; }
17540 else
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17542$as_echo "no" >&6; }
17543 fi
17544 ;;
17545 *)
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17547$as_echo "no" >&6; }
17548 ;;
17549 esac
17550fi
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563 # Report which library types will actually be built
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17565$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17567$as_echo "$can_build_shared" >&6; }
17568
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17570$as_echo_n "checking whether to build shared libraries... " >&6; }
17571 test "$can_build_shared" = "no" && enable_shared=no
17572
17573 # On AIX, shared libraries and static libraries use the same namespace, and
17574 # are all built from PIC.
17575 case $host_os in
17576 aix3*)
17577 test "$enable_shared" = yes && enable_static=no
17578 if test -n "$RANLIB"; then
17579 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17580 postinstall_cmds='$RANLIB $lib'
17581 fi
17582 ;;
17583
17584 aix[4-9]*)
17585 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17586 test "$enable_shared" = yes && enable_static=no
17587 fi
17588 ;;
17589 esac
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17591$as_echo "$enable_shared" >&6; }
17592
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17594$as_echo_n "checking whether to build static libraries... " >&6; }
17595 # Make sure either enable_shared or enable_static is yes.
17596 test "$enable_shared" = yes || enable_static=yes
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17598$as_echo "$enable_static" >&6; }
17599
17600
17601
17602
17603fi
17604ac_ext=c
17605ac_cpp='$CPP $CPPFLAGS'
17606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17608ac_compiler_gnu=$ac_cv_c_compiler_gnu
17609
17610CC="$lt_save_CC"
17611
cristy0c60a692010-11-04 01:09:47 +000017612 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17613 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17614 (test "X$CXX" != "Xg++"))) ; then
17615 ac_ext=cpp
17616ac_cpp='$CXXCPP $CPPFLAGS'
17617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17621$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17622if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017623 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017624 $as_echo_n "(cached) " >&6
17625else
17626 # Double quotes because CXXCPP needs to be expanded
17627 for CXXCPP in "$CXX -E" "/lib/cpp"
17628 do
17629 ac_preproc_ok=false
17630for ac_cxx_preproc_warn_flag in '' yes
17631do
17632 # Use a header file that comes with gcc, so configuring glibc
17633 # with a fresh cross-compiler works.
17634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17635 # <limits.h> exists even on freestanding compilers.
17636 # On the NeXT, cc -E runs the code through the compiler's parser,
17637 # not just through cpp. "Syntax error" is here to catch this case.
17638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639/* end confdefs.h. */
17640#ifdef __STDC__
17641# include <limits.h>
17642#else
17643# include <assert.h>
17644#endif
17645 Syntax error
17646_ACEOF
17647if ac_fn_cxx_try_cpp "$LINENO"; then :
17648
17649else
17650 # Broken: fails on valid input.
17651continue
17652fi
cristyda16f162011-02-19 23:52:17 +000017653rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017654
17655 # OK, works on sane cases. Now check whether nonexistent headers
17656 # can be detected and how.
17657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17658/* end confdefs.h. */
17659#include <ac_nonexistent.h>
17660_ACEOF
17661if ac_fn_cxx_try_cpp "$LINENO"; then :
17662 # Broken: success on invalid input.
17663continue
17664else
17665 # Passes both tests.
17666ac_preproc_ok=:
17667break
17668fi
cristyda16f162011-02-19 23:52:17 +000017669rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017670
17671done
17672# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017673rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017674if $ac_preproc_ok; then :
17675 break
17676fi
17677
17678 done
17679 ac_cv_prog_CXXCPP=$CXXCPP
17680
17681fi
17682 CXXCPP=$ac_cv_prog_CXXCPP
17683else
17684 ac_cv_prog_CXXCPP=$CXXCPP
17685fi
17686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17687$as_echo "$CXXCPP" >&6; }
17688ac_preproc_ok=false
17689for ac_cxx_preproc_warn_flag in '' yes
17690do
17691 # Use a header file that comes with gcc, so configuring glibc
17692 # with a fresh cross-compiler works.
17693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17694 # <limits.h> exists even on freestanding compilers.
17695 # On the NeXT, cc -E runs the code through the compiler's parser,
17696 # not just through cpp. "Syntax error" is here to catch this case.
17697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698/* end confdefs.h. */
17699#ifdef __STDC__
17700# include <limits.h>
17701#else
17702# include <assert.h>
17703#endif
17704 Syntax error
17705_ACEOF
17706if ac_fn_cxx_try_cpp "$LINENO"; then :
17707
17708else
17709 # Broken: fails on valid input.
17710continue
17711fi
cristyda16f162011-02-19 23:52:17 +000017712rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017713
17714 # OK, works on sane cases. Now check whether nonexistent headers
17715 # can be detected and how.
17716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717/* end confdefs.h. */
17718#include <ac_nonexistent.h>
17719_ACEOF
17720if ac_fn_cxx_try_cpp "$LINENO"; then :
17721 # Broken: success on invalid input.
17722continue
17723else
17724 # Passes both tests.
17725ac_preproc_ok=:
17726break
17727fi
cristyda16f162011-02-19 23:52:17 +000017728rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017729
17730done
17731# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017732rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017733if $ac_preproc_ok; then :
17734
17735else
17736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17738as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17739See \`config.log' for more details" "$LINENO" 5; }
17740fi
17741
17742ac_ext=c
17743ac_cpp='$CPP $CPPFLAGS'
17744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17746ac_compiler_gnu=$ac_cv_c_compiler_gnu
17747
17748else
17749 _lt_caught_CXX_error=yes
17750fi
cristy73bd4a52010-10-05 11:24:23 +000017751
17752ac_ext=cpp
17753ac_cpp='$CXXCPP $CPPFLAGS'
17754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17757
17758archive_cmds_need_lc_CXX=no
17759allow_undefined_flag_CXX=
17760always_export_symbols_CXX=no
17761archive_expsym_cmds_CXX=
17762compiler_needs_object_CXX=no
17763export_dynamic_flag_spec_CXX=
17764hardcode_direct_CXX=no
17765hardcode_direct_absolute_CXX=no
17766hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017767hardcode_libdir_separator_CXX=
17768hardcode_minus_L_CXX=no
17769hardcode_shlibpath_var_CXX=unsupported
17770hardcode_automatic_CXX=no
17771inherit_rpath_CXX=no
17772module_cmds_CXX=
17773module_expsym_cmds_CXX=
17774link_all_deplibs_CXX=unknown
17775old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017776reload_flag_CXX=$reload_flag
17777reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017778no_undefined_flag_CXX=
17779whole_archive_flag_spec_CXX=
17780enable_shared_with_static_runtimes_CXX=no
17781
17782# Source file extension for C++ test sources.
17783ac_ext=cpp
17784
17785# Object file extension for compiled C++ test sources.
17786objext=o
17787objext_CXX=$objext
17788
17789# No sense in running all these tests if we already determined that
17790# the CXX compiler isn't working. Some variables (like enable_shared)
17791# are currently assumed to apply to all compilers on this platform,
17792# and will be corrupted by setting them based on a non-working compiler.
17793if test "$_lt_caught_CXX_error" != yes; then
17794 # Code to be used in simple compile tests
17795 lt_simple_compile_test_code="int some_variable = 0;"
17796
17797 # Code to be used in simple link tests
17798 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17799
17800 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17801
17802
17803
17804
17805
17806
17807# If no C compiler was specified, use CC.
17808LTCC=${LTCC-"$CC"}
17809
17810# If no C compiler flags were specified, use CFLAGS.
17811LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17812
17813# Allow CC to be a program name with arguments.
17814compiler=$CC
17815
17816
17817 # save warnings/boilerplate of simple test code
17818 ac_outfile=conftest.$ac_objext
17819echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17820eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17821_lt_compiler_boilerplate=`cat conftest.err`
17822$RM conftest*
17823
17824 ac_outfile=conftest.$ac_objext
17825echo "$lt_simple_link_test_code" >conftest.$ac_ext
17826eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17827_lt_linker_boilerplate=`cat conftest.err`
17828$RM -r conftest*
17829
17830
17831 # Allow CC to be a program name with arguments.
17832 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017833 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017834 lt_save_LD=$LD
17835 lt_save_GCC=$GCC
17836 GCC=$GXX
17837 lt_save_with_gnu_ld=$with_gnu_ld
17838 lt_save_path_LD=$lt_cv_path_LD
17839 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17840 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17841 else
17842 $as_unset lt_cv_prog_gnu_ld
17843 fi
17844 if test -n "${lt_cv_path_LDCXX+set}"; then
17845 lt_cv_path_LD=$lt_cv_path_LDCXX
17846 else
17847 $as_unset lt_cv_path_LD
17848 fi
17849 test -z "${LDCXX+set}" || LD=$LDCXX
17850 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017851 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017852 compiler=$CC
17853 compiler_CXX=$CC
17854 for cc_temp in $compiler""; do
17855 case $cc_temp in
17856 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17857 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17858 \-*) ;;
17859 *) break;;
17860 esac
17861done
cristy0c60a692010-11-04 01:09:47 +000017862cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017863
17864
17865 if test -n "$compiler"; then
17866 # We don't want -fno-exception when compiling C++ code, so set the
17867 # no_builtin_flag separately
17868 if test "$GXX" = yes; then
17869 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17870 else
17871 lt_prog_compiler_no_builtin_flag_CXX=
17872 fi
17873
17874 if test "$GXX" = yes; then
17875 # Set up default GNU C++ configuration
17876
17877
17878
17879# Check whether --with-gnu-ld was given.
17880if test "${with_gnu_ld+set}" = set; then :
17881 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17882else
17883 with_gnu_ld=no
17884fi
17885
17886ac_prog=ld
17887if test "$GCC" = yes; then
17888 # Check if gcc -print-prog-name=ld gives a path.
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17890$as_echo_n "checking for ld used by $CC... " >&6; }
17891 case $host in
17892 *-*-mingw*)
17893 # gcc leaves a trailing carriage return which upsets mingw
17894 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17895 *)
17896 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17897 esac
17898 case $ac_prog in
17899 # Accept absolute paths.
17900 [\\/]* | ?:[\\/]*)
17901 re_direlt='/[^/][^/]*/\.\./'
17902 # Canonicalize the pathname of ld
17903 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17904 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17905 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17906 done
17907 test -z "$LD" && LD="$ac_prog"
17908 ;;
17909 "")
17910 # If it fails, then pretend we aren't using GCC.
17911 ac_prog=ld
17912 ;;
17913 *)
17914 # If it is relative, then search for the first ld in PATH.
17915 with_gnu_ld=unknown
17916 ;;
17917 esac
17918elif test "$with_gnu_ld" = yes; then
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17920$as_echo_n "checking for GNU ld... " >&6; }
17921else
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17923$as_echo_n "checking for non-GNU ld... " >&6; }
17924fi
cristyda16f162011-02-19 23:52:17 +000017925if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017926 $as_echo_n "(cached) " >&6
17927else
17928 if test -z "$LD"; then
17929 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17930 for ac_dir in $PATH; do
17931 IFS="$lt_save_ifs"
17932 test -z "$ac_dir" && ac_dir=.
17933 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17934 lt_cv_path_LD="$ac_dir/$ac_prog"
17935 # Check to see if the program is GNU ld. I'd rather use --version,
17936 # but apparently some variants of GNU ld only accept -v.
17937 # Break only if it was the GNU/non-GNU ld that we prefer.
17938 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17939 *GNU* | *'with BFD'*)
17940 test "$with_gnu_ld" != no && break
17941 ;;
17942 *)
17943 test "$with_gnu_ld" != yes && break
17944 ;;
17945 esac
17946 fi
17947 done
17948 IFS="$lt_save_ifs"
17949else
17950 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17951fi
17952fi
17953
17954LD="$lt_cv_path_LD"
17955if test -n "$LD"; then
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17957$as_echo "$LD" >&6; }
17958else
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17960$as_echo "no" >&6; }
17961fi
cristy98dddb52010-11-04 00:30:15 +000017962test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17964$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017965if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017966 $as_echo_n "(cached) " >&6
17967else
17968 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17969case `$LD -v 2>&1 </dev/null` in
17970*GNU* | *'with BFD'*)
17971 lt_cv_prog_gnu_ld=yes
17972 ;;
17973*)
17974 lt_cv_prog_gnu_ld=no
17975 ;;
17976esac
17977fi
17978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17979$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17980with_gnu_ld=$lt_cv_prog_gnu_ld
17981
17982
17983
17984
17985
17986
17987
17988 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17989 # archiving commands below assume that GNU ld is being used.
17990 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017991 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17992 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 +000017993
17994 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17995 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17996
17997 # If archive_cmds runs LD, not CC, wlarc should be empty
17998 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17999 # investigate it a little bit more. (MM)
18000 wlarc='${wl}'
18001
18002 # ancient GNU ld didn't support --whole-archive et. al.
18003 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18004 $GREP 'no-whole-archive' > /dev/null; then
18005 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18006 else
18007 whole_archive_flag_spec_CXX=
18008 fi
18009 else
18010 with_gnu_ld=no
18011 wlarc=
18012
18013 # A generic and very simple default shared library creation
18014 # command for GNU C++ for the case where it uses the native
18015 # linker, instead of GNU ld. If possible, this setting should
18016 # overridden to take advantage of the native linker features on
18017 # the platform it is being used on.
18018 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18019 fi
18020
18021 # Commands to make compiler produce verbose output that lists
18022 # what "hidden" libraries, object files and flags are used when
18023 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018024 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018025
18026 else
18027 GXX=no
18028 with_gnu_ld=no
18029 wlarc=
18030 fi
18031
18032 # PORTME: fill in a description of your system's C++ link characteristics
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18034$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18035 ld_shlibs_CXX=yes
18036 case $host_os in
18037 aix3*)
18038 # FIXME: insert proper C++ library support
18039 ld_shlibs_CXX=no
18040 ;;
18041 aix[4-9]*)
18042 if test "$host_cpu" = ia64; then
18043 # On IA64, the linker does run time linking by default, so we don't
18044 # have to do anything special.
18045 aix_use_runtimelinking=no
18046 exp_sym_flag='-Bexport'
18047 no_entry_flag=""
18048 else
18049 aix_use_runtimelinking=no
18050
18051 # Test if we are trying to use run time linking or normal
18052 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18053 # need to do runtime linking.
18054 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18055 for ld_flag in $LDFLAGS; do
18056 case $ld_flag in
18057 *-brtl*)
18058 aix_use_runtimelinking=yes
18059 break
18060 ;;
18061 esac
18062 done
18063 ;;
18064 esac
18065
18066 exp_sym_flag='-bexport'
18067 no_entry_flag='-bnoentry'
18068 fi
18069
18070 # When large executables or shared objects are built, AIX ld can
18071 # have problems creating the table of contents. If linking a library
18072 # or program results in "error TOC overflow" add -mminimal-toc to
18073 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18074 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18075
18076 archive_cmds_CXX=''
18077 hardcode_direct_CXX=yes
18078 hardcode_direct_absolute_CXX=yes
18079 hardcode_libdir_separator_CXX=':'
18080 link_all_deplibs_CXX=yes
18081 file_list_spec_CXX='${wl}-f,'
18082
18083 if test "$GXX" = yes; then
18084 case $host_os in aix4.[012]|aix4.[012].*)
18085 # We only want to do this on AIX 4.2 and lower, the check
18086 # below for broken collect2 doesn't work under 4.3+
18087 collect2name=`${CC} -print-prog-name=collect2`
18088 if test -f "$collect2name" &&
18089 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18090 then
18091 # We have reworked collect2
18092 :
18093 else
18094 # We have old collect2
18095 hardcode_direct_CXX=unsupported
18096 # It fails to find uninstalled libraries when the uninstalled
18097 # path is not listed in the libpath. Setting hardcode_minus_L
18098 # to unsupported forces relinking
18099 hardcode_minus_L_CXX=yes
18100 hardcode_libdir_flag_spec_CXX='-L$libdir'
18101 hardcode_libdir_separator_CXX=
18102 fi
18103 esac
18104 shared_flag='-shared'
18105 if test "$aix_use_runtimelinking" = yes; then
18106 shared_flag="$shared_flag "'${wl}-G'
18107 fi
18108 else
18109 # not using gcc
18110 if test "$host_cpu" = ia64; then
18111 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18112 # chokes on -Wl,-G. The following line is correct:
18113 shared_flag='-G'
18114 else
18115 if test "$aix_use_runtimelinking" = yes; then
18116 shared_flag='${wl}-G'
18117 else
18118 shared_flag='${wl}-bM:SRE'
18119 fi
18120 fi
18121 fi
18122
18123 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18124 # It seems that -bexpall does not export symbols beginning with
18125 # underscore (_), so it is better to generate a list of symbols to
18126 # export.
18127 always_export_symbols_CXX=yes
18128 if test "$aix_use_runtimelinking" = yes; then
18129 # Warning - without using the other runtime loading flags (-brtl),
18130 # -berok will link without error, but may produce a broken library.
18131 allow_undefined_flag_CXX='-berok'
18132 # Determine the default libpath from the value encoded in an empty
18133 # executable.
cristyda16f162011-02-19 23:52:17 +000018134 if test "${lt_cv_aix_libpath+set}" = set; then
18135 aix_libpath=$lt_cv_aix_libpath
18136else
18137 if ${lt_cv_aix_libpath__CXX+:} false; then :
18138 $as_echo_n "(cached) " >&6
18139else
18140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018141/* end confdefs.h. */
18142
18143int
18144main ()
18145{
18146
18147 ;
18148 return 0;
18149}
18150_ACEOF
18151if ac_fn_cxx_try_link "$LINENO"; then :
18152
cristyda16f162011-02-19 23:52:17 +000018153 lt_aix_libpath_sed='
18154 /Import File Strings/,/^$/ {
18155 /^0/ {
18156 s/^0 *\([^ ]*\) *$/\1/
18157 p
18158 }
18159 }'
18160 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18161 # Check for a 64-bit object if we didn't find anything.
18162 if test -z "$lt_cv_aix_libpath__CXX"; then
18163 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18164 fi
cristy73bd4a52010-10-05 11:24:23 +000018165fi
18166rm -f core conftest.err conftest.$ac_objext \
18167 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018168 if test -z "$lt_cv_aix_libpath__CXX"; then
18169 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18170 fi
18171
18172fi
18173
18174 aix_libpath=$lt_cv_aix_libpath__CXX
18175fi
cristy73bd4a52010-10-05 11:24:23 +000018176
18177 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18178
cristy0c60a692010-11-04 01:09:47 +000018179 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 +000018180 else
18181 if test "$host_cpu" = ia64; then
18182 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18183 allow_undefined_flag_CXX="-z nodefs"
18184 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"
18185 else
18186 # Determine the default libpath from the value encoded in an
18187 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018188 if test "${lt_cv_aix_libpath+set}" = set; then
18189 aix_libpath=$lt_cv_aix_libpath
18190else
18191 if ${lt_cv_aix_libpath__CXX+:} false; then :
18192 $as_echo_n "(cached) " >&6
18193else
18194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018195/* end confdefs.h. */
18196
18197int
18198main ()
18199{
18200
18201 ;
18202 return 0;
18203}
18204_ACEOF
18205if ac_fn_cxx_try_link "$LINENO"; then :
18206
cristyda16f162011-02-19 23:52:17 +000018207 lt_aix_libpath_sed='
18208 /Import File Strings/,/^$/ {
18209 /^0/ {
18210 s/^0 *\([^ ]*\) *$/\1/
18211 p
18212 }
18213 }'
18214 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18215 # Check for a 64-bit object if we didn't find anything.
18216 if test -z "$lt_cv_aix_libpath__CXX"; then
18217 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18218 fi
cristy73bd4a52010-10-05 11:24:23 +000018219fi
18220rm -f core conftest.err conftest.$ac_objext \
18221 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018222 if test -z "$lt_cv_aix_libpath__CXX"; then
18223 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18224 fi
18225
18226fi
18227
18228 aix_libpath=$lt_cv_aix_libpath__CXX
18229fi
cristy73bd4a52010-10-05 11:24:23 +000018230
18231 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18232 # Warning - without using the other run time loading flags,
18233 # -berok will link without error, but may produce a broken library.
18234 no_undefined_flag_CXX=' ${wl}-bernotok'
18235 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018236 if test "$with_gnu_ld" = yes; then
18237 # We only use this code for GNU lds that support --whole-archive.
18238 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18239 else
18240 # Exported symbols can be pulled into shared objects from archives
18241 whole_archive_flag_spec_CXX='$convenience'
18242 fi
cristy73bd4a52010-10-05 11:24:23 +000018243 archive_cmds_need_lc_CXX=yes
18244 # This is similar to how AIX traditionally builds its shared
18245 # libraries.
18246 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'
18247 fi
18248 fi
18249 ;;
18250
18251 beos*)
18252 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18253 allow_undefined_flag_CXX=unsupported
18254 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18255 # support --undefined. This deserves some investigation. FIXME
18256 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18257 else
18258 ld_shlibs_CXX=no
18259 fi
18260 ;;
18261
18262 chorus*)
18263 case $cc_basename in
18264 *)
18265 # FIXME: insert proper C++ library support
18266 ld_shlibs_CXX=no
18267 ;;
18268 esac
18269 ;;
18270
18271 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018272 case $GXX,$cc_basename in
18273 ,cl* | no,cl*)
18274 # Native MSVC
18275 # hardcode_libdir_flag_spec is actually meaningless, as there is
18276 # no search path for DLLs.
18277 hardcode_libdir_flag_spec_CXX=' '
18278 allow_undefined_flag_CXX=unsupported
18279 always_export_symbols_CXX=yes
18280 file_list_spec_CXX='@'
18281 # Tell ltmain to make .lib files, not .a files.
18282 libext=lib
18283 # Tell ltmain to make .dll files, not .so files.
18284 shrext_cmds=".dll"
18285 # FIXME: Setting linknames here is a bad hack.
18286 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18287 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18288 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18289 else
18290 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18291 fi~
18292 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18293 linknames='
18294 # The linker will not automatically build a static lib if we build a DLL.
18295 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18296 enable_shared_with_static_runtimes_CXX=yes
18297 # Don't use ranlib
18298 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18299 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18300 lt_tool_outputfile="@TOOL_OUTPUT@"~
18301 case $lt_outputfile in
18302 *.exe|*.EXE) ;;
18303 *)
18304 lt_outputfile="$lt_outputfile.exe"
18305 lt_tool_outputfile="$lt_tool_outputfile.exe"
18306 ;;
18307 esac~
18308 func_to_tool_file "$lt_outputfile"~
18309 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18310 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18311 $RM "$lt_outputfile.manifest";
18312 fi'
18313 ;;
18314 *)
18315 # g++
18316 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18317 # as there is no search path for DLLs.
18318 hardcode_libdir_flag_spec_CXX='-L$libdir'
18319 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18320 allow_undefined_flag_CXX=unsupported
18321 always_export_symbols_CXX=no
18322 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018323
cristyda16f162011-02-19 23:52:17 +000018324 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18325 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'
18326 # If the export-symbols file already is a .def file (1st line
18327 # is EXPORTS), use it as is; otherwise, prepend...
18328 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18329 cp $export_symbols $output_objdir/$soname.def;
18330 else
18331 echo EXPORTS > $output_objdir/$soname.def;
18332 cat $export_symbols >> $output_objdir/$soname.def;
18333 fi~
18334 $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'
18335 else
18336 ld_shlibs_CXX=no
18337 fi
18338 ;;
18339 esac
18340 ;;
cristy73bd4a52010-10-05 11:24:23 +000018341 darwin* | rhapsody*)
18342
18343
18344 archive_cmds_need_lc_CXX=no
18345 hardcode_direct_CXX=no
18346 hardcode_automatic_CXX=yes
18347 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018348 if test "$lt_cv_ld_force_load" = "yes"; then
18349 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 +000018350
cristy0c60a692010-11-04 01:09:47 +000018351 else
18352 whole_archive_flag_spec_CXX=''
18353 fi
cristy73bd4a52010-10-05 11:24:23 +000018354 link_all_deplibs_CXX=yes
18355 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18356 case $cc_basename in
18357 ifort*) _lt_dar_can_shared=yes ;;
18358 *) _lt_dar_can_shared=$GCC ;;
18359 esac
18360 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018361 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018362 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}"
18363 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18364 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}"
18365 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}"
18366 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18367 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}"
18368 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}"
18369 fi
18370
18371 else
18372 ld_shlibs_CXX=no
18373 fi
18374
18375 ;;
18376
18377 dgux*)
18378 case $cc_basename in
18379 ec++*)
18380 # FIXME: insert proper C++ library support
18381 ld_shlibs_CXX=no
18382 ;;
18383 ghcx*)
18384 # Green Hills C++ Compiler
18385 # FIXME: insert proper C++ library support
18386 ld_shlibs_CXX=no
18387 ;;
18388 *)
18389 # FIXME: insert proper C++ library support
18390 ld_shlibs_CXX=no
18391 ;;
18392 esac
18393 ;;
18394
cristy99bd5232011-12-07 14:38:20 +000018395 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018396 # C++ shared libraries reported to be fairly broken before
18397 # switch to ELF
18398 ld_shlibs_CXX=no
18399 ;;
18400
18401 freebsd-elf*)
18402 archive_cmds_need_lc_CXX=no
18403 ;;
18404
18405 freebsd* | dragonfly*)
18406 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18407 # conventions
18408 ld_shlibs_CXX=yes
18409 ;;
18410
18411 gnu*)
18412 ;;
18413
cristy0c60a692010-11-04 01:09:47 +000018414 haiku*)
18415 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18416 link_all_deplibs_CXX=yes
18417 ;;
18418
cristy73bd4a52010-10-05 11:24:23 +000018419 hpux9*)
18420 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18421 hardcode_libdir_separator_CXX=:
18422 export_dynamic_flag_spec_CXX='${wl}-E'
18423 hardcode_direct_CXX=yes
18424 hardcode_minus_L_CXX=yes # Not in the search PATH,
18425 # but as the default
18426 # location of the library.
18427
18428 case $cc_basename in
18429 CC*)
18430 # FIXME: insert proper C++ library support
18431 ld_shlibs_CXX=no
18432 ;;
18433 aCC*)
18434 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'
18435 # Commands to make compiler produce verbose output that lists
18436 # what "hidden" libraries, object files and flags are used when
18437 # linking a shared library.
18438 #
18439 # There doesn't appear to be a way to prevent this compiler from
18440 # explicitly linking system object files so we need to strip them
18441 # from the output so that they don't get included in the library
18442 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018443 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 +000018444 ;;
18445 *)
18446 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018447 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 +000018448 else
18449 # FIXME: insert proper C++ library support
18450 ld_shlibs_CXX=no
18451 fi
18452 ;;
18453 esac
18454 ;;
18455
18456 hpux10*|hpux11*)
18457 if test $with_gnu_ld = no; then
18458 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18459 hardcode_libdir_separator_CXX=:
18460
18461 case $host_cpu in
18462 hppa*64*|ia64*)
18463 ;;
18464 *)
18465 export_dynamic_flag_spec_CXX='${wl}-E'
18466 ;;
18467 esac
18468 fi
18469 case $host_cpu in
18470 hppa*64*|ia64*)
18471 hardcode_direct_CXX=no
18472 hardcode_shlibpath_var_CXX=no
18473 ;;
18474 *)
18475 hardcode_direct_CXX=yes
18476 hardcode_direct_absolute_CXX=yes
18477 hardcode_minus_L_CXX=yes # Not in the search PATH,
18478 # but as the default
18479 # location of the library.
18480 ;;
18481 esac
18482
18483 case $cc_basename in
18484 CC*)
18485 # FIXME: insert proper C++ library support
18486 ld_shlibs_CXX=no
18487 ;;
18488 aCC*)
18489 case $host_cpu in
18490 hppa*64*)
18491 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18492 ;;
18493 ia64*)
18494 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18495 ;;
18496 *)
18497 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18498 ;;
18499 esac
18500 # Commands to make compiler produce verbose output that lists
18501 # what "hidden" libraries, object files and flags are used when
18502 # linking a shared library.
18503 #
18504 # There doesn't appear to be a way to prevent this compiler from
18505 # explicitly linking system object files so we need to strip them
18506 # from the output so that they don't get included in the library
18507 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018508 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 +000018509 ;;
18510 *)
18511 if test "$GXX" = yes; then
18512 if test $with_gnu_ld = no; then
18513 case $host_cpu in
18514 hppa*64*)
18515 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18516 ;;
18517 ia64*)
cristyda16f162011-02-19 23:52:17 +000018518 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 +000018519 ;;
18520 *)
cristyda16f162011-02-19 23:52:17 +000018521 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 +000018522 ;;
18523 esac
18524 fi
18525 else
18526 # FIXME: insert proper C++ library support
18527 ld_shlibs_CXX=no
18528 fi
18529 ;;
18530 esac
18531 ;;
18532
18533 interix[3-9]*)
18534 hardcode_direct_CXX=no
18535 hardcode_shlibpath_var_CXX=no
18536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18537 export_dynamic_flag_spec_CXX='${wl}-E'
18538 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18539 # Instead, shared libraries are loaded at an image base (0x10000000 by
18540 # default) and relocated if they conflict, which is a slow very memory
18541 # consuming and fragmenting process. To avoid this, we pick a random,
18542 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18543 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18544 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'
18545 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'
18546 ;;
18547 irix5* | irix6*)
18548 case $cc_basename in
18549 CC*)
18550 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018551 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 +000018552
18553 # Archives containing C++ object files must be created using
18554 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18555 # necessary to make sure instantiated templates are included
18556 # in the archive.
18557 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18558 ;;
18559 *)
18560 if test "$GXX" = yes; then
18561 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018562 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 +000018563 else
cristyda16f162011-02-19 23:52:17 +000018564 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 +000018565 fi
18566 fi
18567 link_all_deplibs_CXX=yes
18568 ;;
18569 esac
18570 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18571 hardcode_libdir_separator_CXX=:
18572 inherit_rpath_CXX=yes
18573 ;;
18574
cristy0c60a692010-11-04 01:09:47 +000018575 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018576 case $cc_basename in
18577 KCC*)
18578 # Kuck and Associates, Inc. (KAI) C++ Compiler
18579
18580 # KCC will only create a shared library if the output file
18581 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18582 # to its proper name (with version) after linking.
18583 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'
18584 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'
18585 # Commands to make compiler produce verbose output that lists
18586 # what "hidden" libraries, object files and flags are used when
18587 # linking a shared library.
18588 #
18589 # There doesn't appear to be a way to prevent this compiler from
18590 # explicitly linking system object files so we need to strip them
18591 # from the output so that they don't get included in the library
18592 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018593 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 +000018594
18595 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18596 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18597
18598 # Archives containing C++ object files must be created using
18599 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18600 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18601 ;;
18602 icpc* | ecpc* )
18603 # Intel C++
18604 with_gnu_ld=yes
18605 # version 8.0 and above of icpc choke on multiply defined symbols
18606 # if we add $predep_objects and $postdep_objects, however 7.1 and
18607 # earlier do not add the objects themselves.
18608 case `$CC -V 2>&1` in
18609 *"Version 7."*)
18610 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18611 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'
18612 ;;
18613 *) # Version 8.0 or newer
18614 tmp_idyn=
18615 case $host_cpu in
18616 ia64*) tmp_idyn=' -i_dynamic';;
18617 esac
18618 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18619 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'
18620 ;;
18621 esac
18622 archive_cmds_need_lc_CXX=no
18623 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18624 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18625 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18626 ;;
18627 pgCC* | pgcpp*)
18628 # Portland Group C++ compiler
18629 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018630 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018631 prelink_cmds_CXX='tpldir=Template.dir~
18632 rm -rf $tpldir~
18633 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018634 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018635 old_archive_cmds_CXX='tpldir=Template.dir~
18636 rm -rf $tpldir~
18637 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018638 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018639 $RANLIB $oldlib'
18640 archive_cmds_CXX='tpldir=Template.dir~
18641 rm -rf $tpldir~
18642 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018643 $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 +000018644 archive_expsym_cmds_CXX='tpldir=Template.dir~
18645 rm -rf $tpldir~
18646 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018647 $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 +000018648 ;;
cristy0c60a692010-11-04 01:09:47 +000018649 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018650 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18651 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'
18652 ;;
18653 esac
18654
18655 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18656 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018657 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 +000018658 ;;
18659 cxx*)
18660 # Compaq C++
18661 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18662 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'
18663
18664 runpath_var=LD_RUN_PATH
18665 hardcode_libdir_flag_spec_CXX='-rpath $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.
18671 #
18672 # There doesn't appear to be a way to prevent this compiler from
18673 # explicitly linking system object files so we need to strip them
18674 # from the output so that they don't get included in the library
18675 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018676 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 +000018677 ;;
cristy0c60a692010-11-04 01:09:47 +000018678 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018679 # IBM XL 8.0 on PPC, with GNU ld
18680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18681 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18682 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18683 if test "x$supports_anon_versioning" = xyes; then
18684 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18685 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18686 echo "local: *; };" >> $output_objdir/$libname.ver~
18687 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18688 fi
18689 ;;
18690 *)
18691 case `$CC -V 2>&1 | sed 5q` in
18692 *Sun\ C*)
18693 # Sun C++ 5.9
18694 no_undefined_flag_CXX=' -zdefs'
18695 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18696 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'
18697 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018698 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 +000018699 compiler_needs_object_CXX=yes
18700
18701 # Not sure whether something based on
18702 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18703 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018704 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018705
18706 # Archives containing C++ object files must be created using
18707 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18708 # necessary to make sure instantiated templates are included
18709 # in the archive.
18710 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18711 ;;
18712 esac
18713 ;;
18714 esac
18715 ;;
18716
18717 lynxos*)
18718 # FIXME: insert proper C++ library support
18719 ld_shlibs_CXX=no
18720 ;;
18721
18722 m88k*)
18723 # FIXME: insert proper C++ library support
18724 ld_shlibs_CXX=no
18725 ;;
18726
18727 mvs*)
18728 case $cc_basename in
18729 cxx*)
18730 # FIXME: insert proper C++ library support
18731 ld_shlibs_CXX=no
18732 ;;
18733 *)
18734 # FIXME: insert proper C++ library support
18735 ld_shlibs_CXX=no
18736 ;;
18737 esac
18738 ;;
18739
18740 netbsd*)
18741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18742 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18743 wlarc=
18744 hardcode_libdir_flag_spec_CXX='-R$libdir'
18745 hardcode_direct_CXX=yes
18746 hardcode_shlibpath_var_CXX=no
18747 fi
18748 # Workaround some broken pre-1.5 toolchains
18749 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18750 ;;
18751
18752 *nto* | *qnx*)
18753 ld_shlibs_CXX=yes
18754 ;;
18755
18756 openbsd2*)
18757 # C++ shared libraries are fairly broken
18758 ld_shlibs_CXX=no
18759 ;;
18760
18761 openbsd*)
18762 if test -f /usr/libexec/ld.so; then
18763 hardcode_direct_CXX=yes
18764 hardcode_shlibpath_var_CXX=no
18765 hardcode_direct_absolute_CXX=yes
18766 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18767 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18768 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18769 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18770 export_dynamic_flag_spec_CXX='${wl}-E'
18771 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18772 fi
cristy0c60a692010-11-04 01:09:47 +000018773 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018774 else
18775 ld_shlibs_CXX=no
18776 fi
18777 ;;
18778
18779 osf3* | osf4* | osf5*)
18780 case $cc_basename in
18781 KCC*)
18782 # Kuck and Associates, Inc. (KAI) C++ Compiler
18783
18784 # KCC will only create a shared library if the output file
18785 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18786 # to its proper name (with version) after linking.
18787 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'
18788
18789 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18790 hardcode_libdir_separator_CXX=:
18791
18792 # Archives containing C++ object files must be created using
18793 # the KAI C++ compiler.
18794 case $host in
18795 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18796 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18797 esac
18798 ;;
18799 RCC*)
18800 # Rational C++ 2.4.1
18801 # FIXME: insert proper C++ library support
18802 ld_shlibs_CXX=no
18803 ;;
18804 cxx*)
18805 case $host in
18806 osf3*)
18807 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018808 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 +000018809 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18810 ;;
18811 *)
18812 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018813 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 +000018814 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18815 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018816 $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 +000018817 $RM $lib.exp'
18818 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18819 ;;
18820 esac
18821
18822 hardcode_libdir_separator_CXX=:
18823
18824 # Commands to make compiler produce verbose output that lists
18825 # what "hidden" libraries, object files and flags are used when
18826 # linking a shared library.
18827 #
18828 # There doesn't appear to be a way to prevent this compiler from
18829 # explicitly linking system object files so we need to strip them
18830 # from the output so that they don't get included in the library
18831 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018832 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 +000018833 ;;
18834 *)
18835 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18836 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18837 case $host in
18838 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018839 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 +000018840 ;;
18841 *)
cristyda16f162011-02-19 23:52:17 +000018842 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 +000018843 ;;
18844 esac
18845
18846 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18847 hardcode_libdir_separator_CXX=:
18848
18849 # Commands to make compiler produce verbose output that lists
18850 # what "hidden" libraries, object files and flags are used when
18851 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018852 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018853
18854 else
18855 # FIXME: insert proper C++ library support
18856 ld_shlibs_CXX=no
18857 fi
18858 ;;
18859 esac
18860 ;;
18861
18862 psos*)
18863 # FIXME: insert proper C++ library support
18864 ld_shlibs_CXX=no
18865 ;;
18866
18867 sunos4*)
18868 case $cc_basename in
18869 CC*)
18870 # Sun C++ 4.x
18871 # FIXME: insert proper C++ library support
18872 ld_shlibs_CXX=no
18873 ;;
18874 lcc*)
18875 # Lucid
18876 # FIXME: insert proper C++ library support
18877 ld_shlibs_CXX=no
18878 ;;
18879 *)
18880 # FIXME: insert proper C++ library support
18881 ld_shlibs_CXX=no
18882 ;;
18883 esac
18884 ;;
18885
18886 solaris*)
18887 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018888 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018889 # Sun C++ 4.2, 5.x and Centerline C++
18890 archive_cmds_need_lc_CXX=yes
18891 no_undefined_flag_CXX=' -zdefs'
18892 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18893 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18894 $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'
18895
18896 hardcode_libdir_flag_spec_CXX='-R$libdir'
18897 hardcode_shlibpath_var_CXX=no
18898 case $host_os in
18899 solaris2.[0-5] | solaris2.[0-5].*) ;;
18900 *)
18901 # The compiler driver will combine and reorder linker options,
18902 # but understands `-z linker_flag'.
18903 # Supported since Solaris 2.6 (maybe 2.5.1?)
18904 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18905 ;;
18906 esac
18907 link_all_deplibs_CXX=yes
18908
cristy0c60a692010-11-04 01:09:47 +000018909 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018910
18911 # Archives containing C++ object files must be created using
18912 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18913 # necessary to make sure instantiated templates are included
18914 # in the archive.
18915 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18916 ;;
18917 gcx*)
18918 # Green Hills C++ Compiler
18919 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18920
18921 # The C++ compiler must be used to create the archive.
18922 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18923 ;;
18924 *)
18925 # GNU C++ compiler with Solaris linker
18926 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18927 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18928 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018929 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 +000018930 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 +000018931 $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 +000018932
18933 # Commands to make compiler produce verbose output that lists
18934 # what "hidden" libraries, object files and flags are used when
18935 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018936 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018937 else
18938 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18939 # platform.
18940 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18941 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18942 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18943
18944 # Commands to make compiler produce verbose output that lists
18945 # what "hidden" libraries, object files and flags are used when
18946 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018947 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018948 fi
18949
18950 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18951 case $host_os in
18952 solaris2.[0-5] | solaris2.[0-5].*) ;;
18953 *)
18954 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18955 ;;
18956 esac
18957 fi
18958 ;;
18959 esac
18960 ;;
18961
18962 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18963 no_undefined_flag_CXX='${wl}-z,text'
18964 archive_cmds_need_lc_CXX=no
18965 hardcode_shlibpath_var_CXX=no
18966 runpath_var='LD_RUN_PATH'
18967
18968 case $cc_basename in
18969 CC*)
18970 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18971 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18972 ;;
18973 *)
18974 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18975 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18976 ;;
18977 esac
18978 ;;
18979
18980 sysv5* | sco3.2v5* | sco5v6*)
18981 # Note: We can NOT use -z defs as we might desire, because we do not
18982 # link with -lc, and that would cause any symbols used from libc to
18983 # always be unresolved, which means just about no library would
18984 # ever link correctly. If we're not using GNU ld we use -z text
18985 # though, which does catch some bad symbols but isn't as heavy-handed
18986 # as -z defs.
18987 no_undefined_flag_CXX='${wl}-z,text'
18988 allow_undefined_flag_CXX='${wl}-z,nodefs'
18989 archive_cmds_need_lc_CXX=no
18990 hardcode_shlibpath_var_CXX=no
18991 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18992 hardcode_libdir_separator_CXX=':'
18993 link_all_deplibs_CXX=yes
18994 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18995 runpath_var='LD_RUN_PATH'
18996
18997 case $cc_basename in
18998 CC*)
18999 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19000 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 +000019001 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19002 '"$old_archive_cmds_CXX"
19003 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19004 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019005 ;;
19006 *)
19007 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19008 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19009 ;;
19010 esac
19011 ;;
19012
19013 tandem*)
19014 case $cc_basename in
19015 NCC*)
19016 # NonStop-UX NCC 3.20
19017 # FIXME: insert proper C++ library support
19018 ld_shlibs_CXX=no
19019 ;;
19020 *)
19021 # FIXME: insert proper C++ library support
19022 ld_shlibs_CXX=no
19023 ;;
19024 esac
19025 ;;
19026
19027 vxworks*)
19028 # FIXME: insert proper C++ library support
19029 ld_shlibs_CXX=no
19030 ;;
19031
19032 *)
19033 # FIXME: insert proper C++ library support
19034 ld_shlibs_CXX=no
19035 ;;
19036 esac
19037
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19039$as_echo "$ld_shlibs_CXX" >&6; }
19040 test "$ld_shlibs_CXX" = no && can_build_shared=no
19041
19042 GCC_CXX="$GXX"
19043 LD_CXX="$LD"
19044
19045 ## CAVEAT EMPTOR:
19046 ## There is no encapsulation within the following macros, do not change
19047 ## the running order or otherwise move them around unless you know exactly
19048 ## what you are doing...
19049 # Dependencies to place before and after the object being linked:
19050predep_objects_CXX=
19051postdep_objects_CXX=
19052predeps_CXX=
19053postdeps_CXX=
19054compiler_lib_search_path_CXX=
19055
19056cat > conftest.$ac_ext <<_LT_EOF
19057class Foo
19058{
19059public:
19060 Foo (void) { a = 0; }
19061private:
19062 int a;
19063};
19064_LT_EOF
19065
cristyda16f162011-02-19 23:52:17 +000019066
19067_lt_libdeps_save_CFLAGS=$CFLAGS
19068case "$CC $CFLAGS " in #(
19069*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19070*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019071*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019072esac
19073
cristy73bd4a52010-10-05 11:24:23 +000019074if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19075 (eval $ac_compile) 2>&5
19076 ac_status=$?
19077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19078 test $ac_status = 0; }; then
19079 # Parse the compiler output and extract the necessary
19080 # objects, libraries and library flags.
19081
19082 # Sentinel used to keep track of whether or not we are before
19083 # the conftest object file.
19084 pre_test_object_deps_done=no
19085
19086 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019087 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019088
19089 -L* | -R* | -l*)
19090 # Some compilers place space between "-{L,R}" and the path.
19091 # Remove the space.
19092 if test $p = "-L" ||
19093 test $p = "-R"; then
19094 prev=$p
19095 continue
cristy73bd4a52010-10-05 11:24:23 +000019096 fi
19097
cristyda16f162011-02-19 23:52:17 +000019098 # Expand the sysroot to ease extracting the directories later.
19099 if test -z "$prev"; then
19100 case $p in
19101 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19102 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19103 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19104 esac
19105 fi
19106 case $p in
19107 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19108 esac
cristy73bd4a52010-10-05 11:24:23 +000019109 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019110 case ${prev} in
19111 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019112 # Internal compiler library paths should come after those
19113 # provided the user. The postdeps already come after the
19114 # user supplied libs so there is no need to process them.
19115 if test -z "$compiler_lib_search_path_CXX"; then
19116 compiler_lib_search_path_CXX="${prev}${p}"
19117 else
19118 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19119 fi
19120 ;;
19121 # The "-l" case would never come before the object being
19122 # linked, so don't bother handling this case.
19123 esac
19124 else
19125 if test -z "$postdeps_CXX"; then
19126 postdeps_CXX="${prev}${p}"
19127 else
19128 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19129 fi
19130 fi
cristyda16f162011-02-19 23:52:17 +000019131 prev=
cristy73bd4a52010-10-05 11:24:23 +000019132 ;;
19133
cristyda16f162011-02-19 23:52:17 +000019134 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019135 *.$objext)
19136 # This assumes that the test object file only shows up
19137 # once in the compiler output.
19138 if test "$p" = "conftest.$objext"; then
19139 pre_test_object_deps_done=yes
19140 continue
19141 fi
19142
19143 if test "$pre_test_object_deps_done" = no; then
19144 if test -z "$predep_objects_CXX"; then
19145 predep_objects_CXX="$p"
19146 else
19147 predep_objects_CXX="$predep_objects_CXX $p"
19148 fi
19149 else
19150 if test -z "$postdep_objects_CXX"; then
19151 postdep_objects_CXX="$p"
19152 else
19153 postdep_objects_CXX="$postdep_objects_CXX $p"
19154 fi
19155 fi
19156 ;;
19157
19158 *) ;; # Ignore the rest.
19159
19160 esac
19161 done
19162
19163 # Clean up.
19164 rm -f a.out a.exe
19165else
19166 echo "libtool.m4: error: problem compiling CXX test program"
19167fi
19168
19169$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019170CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019171
19172# PORTME: override above test on systems where it is broken
19173case $host_os in
19174interix[3-9]*)
19175 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19176 # hack all around it, let's just trust "g++" to DTRT.
19177 predep_objects_CXX=
19178 postdep_objects_CXX=
19179 postdeps_CXX=
19180 ;;
19181
19182linux*)
19183 case `$CC -V 2>&1 | sed 5q` in
19184 *Sun\ C*)
19185 # Sun C++ 5.9
19186
19187 # The more standards-conforming stlport4 library is
19188 # incompatible with the Cstd library. Avoid specifying
19189 # it if it's in CXXFLAGS. Ignore libCrun as
19190 # -library=stlport4 depends on it.
19191 case " $CXX $CXXFLAGS " in
19192 *" -library=stlport4 "*)
19193 solaris_use_stlport4=yes
19194 ;;
19195 esac
19196
19197 if test "$solaris_use_stlport4" != yes; then
19198 postdeps_CXX='-library=Cstd -library=Crun'
19199 fi
19200 ;;
19201 esac
19202 ;;
19203
19204solaris*)
19205 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019206 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019207 # The more standards-conforming stlport4 library is
19208 # incompatible with the Cstd library. Avoid specifying
19209 # it if it's in CXXFLAGS. Ignore libCrun as
19210 # -library=stlport4 depends on it.
19211 case " $CXX $CXXFLAGS " in
19212 *" -library=stlport4 "*)
19213 solaris_use_stlport4=yes
19214 ;;
19215 esac
19216
19217 # Adding this requires a known-good setup of shared libraries for
19218 # Sun compiler versions before 5.6, else PIC objects from an old
19219 # archive will be linked into the output, leading to subtle bugs.
19220 if test "$solaris_use_stlport4" != yes; then
19221 postdeps_CXX='-library=Cstd -library=Crun'
19222 fi
19223 ;;
19224 esac
19225 ;;
19226esac
19227
19228
19229case " $postdeps_CXX " in
19230*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19231esac
19232 compiler_lib_search_dirs_CXX=
19233if test -n "${compiler_lib_search_path_CXX}"; then
19234 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19235fi
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267 lt_prog_compiler_wl_CXX=
19268lt_prog_compiler_pic_CXX=
19269lt_prog_compiler_static_CXX=
19270
cristy73bd4a52010-10-05 11:24:23 +000019271
19272 # C++ specific cases for pic, static, wl, etc.
19273 if test "$GXX" = yes; then
19274 lt_prog_compiler_wl_CXX='-Wl,'
19275 lt_prog_compiler_static_CXX='-static'
19276
19277 case $host_os in
19278 aix*)
19279 # All AIX code is PIC.
19280 if test "$host_cpu" = ia64; then
19281 # AIX 5 now supports IA64 processor
19282 lt_prog_compiler_static_CXX='-Bstatic'
19283 fi
19284 ;;
19285
19286 amigaos*)
19287 case $host_cpu in
19288 powerpc)
19289 # see comment about AmigaOS4 .so support
19290 lt_prog_compiler_pic_CXX='-fPIC'
19291 ;;
19292 m68k)
19293 # FIXME: we need at least 68020 code to build shared libraries, but
19294 # adding the `-m68020' flag to GCC prevents building anything better,
19295 # like `-m68040'.
19296 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19297 ;;
19298 esac
19299 ;;
19300
19301 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19302 # PIC is the default for these OSes.
19303 ;;
19304 mingw* | cygwin* | os2* | pw32* | cegcc*)
19305 # This hack is so that the source file can tell whether it is being
19306 # built for inclusion in a dll (and should export symbols for example).
19307 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19308 # (--disable-auto-import) libraries
19309 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19310 ;;
19311 darwin* | rhapsody*)
19312 # PIC is the default on this platform
19313 # Common symbols not allowed in MH_DYLIB files
19314 lt_prog_compiler_pic_CXX='-fno-common'
19315 ;;
19316 *djgpp*)
19317 # DJGPP does not support shared libraries at all
19318 lt_prog_compiler_pic_CXX=
19319 ;;
cristy0c60a692010-11-04 01:09:47 +000019320 haiku*)
19321 # PIC is the default for Haiku.
19322 # The "-static" flag exists, but is broken.
19323 lt_prog_compiler_static_CXX=
19324 ;;
cristy73bd4a52010-10-05 11:24:23 +000019325 interix[3-9]*)
19326 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19327 # Instead, we relocate shared libraries at runtime.
19328 ;;
19329 sysv4*MP*)
19330 if test -d /usr/nec; then
19331 lt_prog_compiler_pic_CXX=-Kconform_pic
19332 fi
19333 ;;
19334 hpux*)
19335 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19336 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19337 # sets the default TLS model and affects inlining.
19338 case $host_cpu in
19339 hppa*64*)
19340 ;;
19341 *)
19342 lt_prog_compiler_pic_CXX='-fPIC'
19343 ;;
19344 esac
19345 ;;
19346 *qnx* | *nto*)
19347 # QNX uses GNU C++, but need to define -shared option too, otherwise
19348 # it will coredump.
19349 lt_prog_compiler_pic_CXX='-fPIC -shared'
19350 ;;
19351 *)
19352 lt_prog_compiler_pic_CXX='-fPIC'
19353 ;;
19354 esac
19355 else
19356 case $host_os in
19357 aix[4-9]*)
19358 # All AIX code is PIC.
19359 if test "$host_cpu" = ia64; then
19360 # AIX 5 now supports IA64 processor
19361 lt_prog_compiler_static_CXX='-Bstatic'
19362 else
19363 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19364 fi
19365 ;;
19366 chorus*)
19367 case $cc_basename in
19368 cxch68*)
19369 # Green Hills C++ Compiler
19370 # _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"
19371 ;;
19372 esac
19373 ;;
cristyda16f162011-02-19 23:52:17 +000019374 mingw* | cygwin* | os2* | pw32* | cegcc*)
19375 # This hack is so that the source file can tell whether it is being
19376 # built for inclusion in a dll (and should export symbols for example).
19377 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19378 ;;
cristy73bd4a52010-10-05 11:24:23 +000019379 dgux*)
19380 case $cc_basename in
19381 ec++*)
19382 lt_prog_compiler_pic_CXX='-KPIC'
19383 ;;
19384 ghcx*)
19385 # Green Hills C++ Compiler
19386 lt_prog_compiler_pic_CXX='-pic'
19387 ;;
19388 *)
19389 ;;
19390 esac
19391 ;;
19392 freebsd* | dragonfly*)
19393 # FreeBSD uses GNU C++
19394 ;;
19395 hpux9* | hpux10* | hpux11*)
19396 case $cc_basename in
19397 CC*)
19398 lt_prog_compiler_wl_CXX='-Wl,'
19399 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19400 if test "$host_cpu" != ia64; then
19401 lt_prog_compiler_pic_CXX='+Z'
19402 fi
19403 ;;
19404 aCC*)
19405 lt_prog_compiler_wl_CXX='-Wl,'
19406 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19407 case $host_cpu in
19408 hppa*64*|ia64*)
19409 # +Z the default
19410 ;;
19411 *)
19412 lt_prog_compiler_pic_CXX='+Z'
19413 ;;
19414 esac
19415 ;;
19416 *)
19417 ;;
19418 esac
19419 ;;
19420 interix*)
19421 # This is c89, which is MS Visual C++ (no shared libs)
19422 # Anyone wants to do a port?
19423 ;;
19424 irix5* | irix6* | nonstopux*)
19425 case $cc_basename in
19426 CC*)
19427 lt_prog_compiler_wl_CXX='-Wl,'
19428 lt_prog_compiler_static_CXX='-non_shared'
19429 # CC pic flag -KPIC is the default.
19430 ;;
19431 *)
19432 ;;
19433 esac
19434 ;;
cristy0c60a692010-11-04 01:09:47 +000019435 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019436 case $cc_basename in
19437 KCC*)
19438 # KAI C++ Compiler
19439 lt_prog_compiler_wl_CXX='--backend -Wl,'
19440 lt_prog_compiler_pic_CXX='-fPIC'
19441 ;;
19442 ecpc* )
19443 # old Intel C++ for x86_64 which still supported -KPIC.
19444 lt_prog_compiler_wl_CXX='-Wl,'
19445 lt_prog_compiler_pic_CXX='-KPIC'
19446 lt_prog_compiler_static_CXX='-static'
19447 ;;
19448 icpc* )
19449 # Intel C++, used to be incompatible with GCC.
19450 # ICC 10 doesn't accept -KPIC any more.
19451 lt_prog_compiler_wl_CXX='-Wl,'
19452 lt_prog_compiler_pic_CXX='-fPIC'
19453 lt_prog_compiler_static_CXX='-static'
19454 ;;
19455 pgCC* | pgcpp*)
19456 # Portland Group C++ compiler
19457 lt_prog_compiler_wl_CXX='-Wl,'
19458 lt_prog_compiler_pic_CXX='-fpic'
19459 lt_prog_compiler_static_CXX='-Bstatic'
19460 ;;
19461 cxx*)
19462 # Compaq C++
19463 # Make sure the PIC flag is empty. It appears that all Alpha
19464 # Linux and Compaq Tru64 Unix objects are PIC.
19465 lt_prog_compiler_pic_CXX=
19466 lt_prog_compiler_static_CXX='-non_shared'
19467 ;;
cristy0c60a692010-11-04 01:09:47 +000019468 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19469 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019470 lt_prog_compiler_wl_CXX='-Wl,'
19471 lt_prog_compiler_pic_CXX='-qpic'
19472 lt_prog_compiler_static_CXX='-qstaticlink'
19473 ;;
19474 *)
19475 case `$CC -V 2>&1 | sed 5q` in
19476 *Sun\ C*)
19477 # Sun C++ 5.9
19478 lt_prog_compiler_pic_CXX='-KPIC'
19479 lt_prog_compiler_static_CXX='-Bstatic'
19480 lt_prog_compiler_wl_CXX='-Qoption ld '
19481 ;;
19482 esac
19483 ;;
19484 esac
19485 ;;
19486 lynxos*)
19487 ;;
19488 m88k*)
19489 ;;
19490 mvs*)
19491 case $cc_basename in
19492 cxx*)
19493 lt_prog_compiler_pic_CXX='-W c,exportall'
19494 ;;
19495 *)
19496 ;;
19497 esac
19498 ;;
19499 netbsd*)
19500 ;;
19501 *qnx* | *nto*)
19502 # QNX uses GNU C++, but need to define -shared option too, otherwise
19503 # it will coredump.
19504 lt_prog_compiler_pic_CXX='-fPIC -shared'
19505 ;;
19506 osf3* | osf4* | osf5*)
19507 case $cc_basename in
19508 KCC*)
19509 lt_prog_compiler_wl_CXX='--backend -Wl,'
19510 ;;
19511 RCC*)
19512 # Rational C++ 2.4.1
19513 lt_prog_compiler_pic_CXX='-pic'
19514 ;;
19515 cxx*)
19516 # Digital/Compaq C++
19517 lt_prog_compiler_wl_CXX='-Wl,'
19518 # Make sure the PIC flag is empty. It appears that all Alpha
19519 # Linux and Compaq Tru64 Unix objects are PIC.
19520 lt_prog_compiler_pic_CXX=
19521 lt_prog_compiler_static_CXX='-non_shared'
19522 ;;
19523 *)
19524 ;;
19525 esac
19526 ;;
19527 psos*)
19528 ;;
19529 solaris*)
19530 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019531 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019532 # Sun C++ 4.2, 5.x and Centerline C++
19533 lt_prog_compiler_pic_CXX='-KPIC'
19534 lt_prog_compiler_static_CXX='-Bstatic'
19535 lt_prog_compiler_wl_CXX='-Qoption ld '
19536 ;;
19537 gcx*)
19538 # Green Hills C++ Compiler
19539 lt_prog_compiler_pic_CXX='-PIC'
19540 ;;
19541 *)
19542 ;;
19543 esac
19544 ;;
19545 sunos4*)
19546 case $cc_basename in
19547 CC*)
19548 # Sun C++ 4.x
19549 lt_prog_compiler_pic_CXX='-pic'
19550 lt_prog_compiler_static_CXX='-Bstatic'
19551 ;;
19552 lcc*)
19553 # Lucid
19554 lt_prog_compiler_pic_CXX='-pic'
19555 ;;
19556 *)
19557 ;;
19558 esac
19559 ;;
19560 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19561 case $cc_basename in
19562 CC*)
19563 lt_prog_compiler_wl_CXX='-Wl,'
19564 lt_prog_compiler_pic_CXX='-KPIC'
19565 lt_prog_compiler_static_CXX='-Bstatic'
19566 ;;
19567 esac
19568 ;;
19569 tandem*)
19570 case $cc_basename in
19571 NCC*)
19572 # NonStop-UX NCC 3.20
19573 lt_prog_compiler_pic_CXX='-KPIC'
19574 ;;
19575 *)
19576 ;;
19577 esac
19578 ;;
19579 vxworks*)
19580 ;;
19581 *)
19582 lt_prog_compiler_can_build_shared_CXX=no
19583 ;;
19584 esac
19585 fi
19586
19587case $host_os in
19588 # For platforms which do not support PIC, -DPIC is meaningless:
19589 *djgpp*)
19590 lt_prog_compiler_pic_CXX=
19591 ;;
19592 *)
19593 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19594 ;;
19595esac
cristy73bd4a52010-10-05 11:24:23 +000019596
cristyda16f162011-02-19 23:52:17 +000019597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19598$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19599if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19600 $as_echo_n "(cached) " >&6
19601else
19602 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19603fi
19604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19605$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19606lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019607
19608#
19609# Check to make sure the PIC flag actually works.
19610#
19611if test -n "$lt_prog_compiler_pic_CXX"; then
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19613$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019614if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019615 $as_echo_n "(cached) " >&6
19616else
19617 lt_cv_prog_compiler_pic_works_CXX=no
19618 ac_outfile=conftest.$ac_objext
19619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19620 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19621 # Insert the option either (1) after the last *FLAGS variable, or
19622 # (2) before a word containing "conftest.", or (3) at the end.
19623 # Note that $ac_compile itself does not contain backslashes and begins
19624 # with a dollar sign (not a hyphen), so the echo should work correctly.
19625 # The option is referenced via a variable to avoid confusing sed.
19626 lt_compile=`echo "$ac_compile" | $SED \
19627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19629 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019630 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019631 (eval "$lt_compile" 2>conftest.err)
19632 ac_status=$?
19633 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019635 if (exit $ac_status) && test -s "$ac_outfile"; then
19636 # The compiler can only warn and ignore the option if not recognized
19637 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019638 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19640 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19641 lt_cv_prog_compiler_pic_works_CXX=yes
19642 fi
19643 fi
19644 $RM conftest*
19645
19646fi
19647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19648$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19649
19650if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19651 case $lt_prog_compiler_pic_CXX in
19652 "" | " "*) ;;
19653 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19654 esac
19655else
19656 lt_prog_compiler_pic_CXX=
19657 lt_prog_compiler_can_build_shared_CXX=no
19658fi
19659
19660fi
19661
19662
19663
cristyda16f162011-02-19 23:52:17 +000019664
19665
cristy73bd4a52010-10-05 11:24:23 +000019666#
19667# Check to make sure the static flag actually works.
19668#
19669wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19671$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019672if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019673 $as_echo_n "(cached) " >&6
19674else
19675 lt_cv_prog_compiler_static_works_CXX=no
19676 save_LDFLAGS="$LDFLAGS"
19677 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19678 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19679 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19680 # The linker can only warn and ignore the option if not recognized
19681 # So say no if there are warnings
19682 if test -s conftest.err; then
19683 # Append any errors to the config.log.
19684 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019685 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19687 if diff conftest.exp conftest.er2 >/dev/null; then
19688 lt_cv_prog_compiler_static_works_CXX=yes
19689 fi
19690 else
19691 lt_cv_prog_compiler_static_works_CXX=yes
19692 fi
19693 fi
19694 $RM -r conftest*
19695 LDFLAGS="$save_LDFLAGS"
19696
19697fi
19698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19699$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19700
19701if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19702 :
19703else
19704 lt_prog_compiler_static_CXX=
19705fi
19706
19707
19708
19709
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19711$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019712if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019713 $as_echo_n "(cached) " >&6
19714else
19715 lt_cv_prog_compiler_c_o_CXX=no
19716 $RM -r conftest 2>/dev/null
19717 mkdir conftest
19718 cd conftest
19719 mkdir out
19720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19721
19722 lt_compiler_flag="-o out/conftest2.$ac_objext"
19723 # Insert the option either (1) after the last *FLAGS variable, or
19724 # (2) before a word containing "conftest.", or (3) at the end.
19725 # Note that $ac_compile itself does not contain backslashes and begins
19726 # with a dollar sign (not a hyphen), so the echo should work correctly.
19727 lt_compile=`echo "$ac_compile" | $SED \
19728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19730 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019731 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019732 (eval "$lt_compile" 2>out/conftest.err)
19733 ac_status=$?
19734 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019736 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19737 then
19738 # The compiler can only warn and ignore the option if not recognized
19739 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019740 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019741 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19742 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19743 lt_cv_prog_compiler_c_o_CXX=yes
19744 fi
19745 fi
19746 chmod u+w . 2>&5
19747 $RM conftest*
19748 # SGI C++ compiler will create directory out/ii_files/ for
19749 # template instantiation
19750 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19751 $RM out/* && rmdir out
19752 cd ..
19753 $RM -r conftest
19754 $RM conftest*
19755
19756fi
19757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19758$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19759
19760
19761
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19763$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019764if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019765 $as_echo_n "(cached) " >&6
19766else
19767 lt_cv_prog_compiler_c_o_CXX=no
19768 $RM -r conftest 2>/dev/null
19769 mkdir conftest
19770 cd conftest
19771 mkdir out
19772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19773
19774 lt_compiler_flag="-o out/conftest2.$ac_objext"
19775 # Insert the option either (1) after the last *FLAGS variable, or
19776 # (2) before a word containing "conftest.", or (3) at the end.
19777 # Note that $ac_compile itself does not contain backslashes and begins
19778 # with a dollar sign (not a hyphen), so the echo should work correctly.
19779 lt_compile=`echo "$ac_compile" | $SED \
19780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19782 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019783 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019784 (eval "$lt_compile" 2>out/conftest.err)
19785 ac_status=$?
19786 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019788 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19789 then
19790 # The compiler can only warn and ignore the option if not recognized
19791 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019793 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19794 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19795 lt_cv_prog_compiler_c_o_CXX=yes
19796 fi
19797 fi
19798 chmod u+w . 2>&5
19799 $RM conftest*
19800 # SGI C++ compiler will create directory out/ii_files/ for
19801 # template instantiation
19802 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19803 $RM out/* && rmdir out
19804 cd ..
19805 $RM -r conftest
19806 $RM conftest*
19807
19808fi
19809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19810$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19811
19812
19813
19814
19815hard_links="nottested"
19816if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19817 # do not overwrite the value of need_locks provided by the user
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19819$as_echo_n "checking if we can lock with hard links... " >&6; }
19820 hard_links=yes
19821 $RM conftest*
19822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19823 touch conftest.a
19824 ln conftest.a conftest.b 2>&5 || hard_links=no
19825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19827$as_echo "$hard_links" >&6; }
19828 if test "$hard_links" = no; then
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19830$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19831 need_locks=warn
19832 fi
19833else
19834 need_locks=no
19835fi
19836
19837
19838
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19840$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19841
19842 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019843 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019844 case $host_os in
19845 aix[4-9]*)
19846 # If we're using GNU nm, then we don't want the "-C" option.
19847 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019848 # Also, AIX nm treats weak defined symbols like other global defined
19849 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019850 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019851 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 +000019852 else
19853 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'
19854 fi
19855 ;;
19856 pw32*)
19857 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019858 ;;
cristy73bd4a52010-10-05 11:24:23 +000019859 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019860 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019861 cl*)
19862 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19863 ;;
cristyda16f162011-02-19 23:52:17 +000019864 *)
19865 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'
19866 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19867 ;;
19868 esac
19869 ;;
cristy73bd4a52010-10-05 11:24:23 +000019870 *)
19871 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019872 ;;
cristy73bd4a52010-10-05 11:24:23 +000019873 esac
cristy73bd4a52010-10-05 11:24:23 +000019874
19875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19876$as_echo "$ld_shlibs_CXX" >&6; }
19877test "$ld_shlibs_CXX" = no && can_build_shared=no
19878
19879with_gnu_ld_CXX=$with_gnu_ld
19880
19881
19882
19883
19884
19885
19886#
19887# Do we need to explicitly link libc?
19888#
19889case "x$archive_cmds_need_lc_CXX" in
19890x|xyes)
19891 # Assume -lc should be added
19892 archive_cmds_need_lc_CXX=yes
19893
19894 if test "$enable_shared" = yes && test "$GCC" = yes; then
19895 case $archive_cmds_CXX in
19896 *'~'*)
19897 # FIXME: we may have to deal with multi-command sequences.
19898 ;;
19899 '$CC '*)
19900 # Test whether the compiler implicitly links with -lc since on some
19901 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19902 # to ld, don't add -lc before -lgcc.
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19904$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019905if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019906 $as_echo_n "(cached) " >&6
19907else
19908 $RM conftest*
19909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019910
cristy0c60a692010-11-04 01:09:47 +000019911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019912 (eval $ac_compile) 2>&5
19913 ac_status=$?
19914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19915 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019916 soname=conftest
19917 lib=conftest
19918 libobjs=conftest.$ac_objext
19919 deplibs=
19920 wl=$lt_prog_compiler_wl_CXX
19921 pic_flag=$lt_prog_compiler_pic_CXX
19922 compiler_flags=-v
19923 linker_flags=-v
19924 verstring=
19925 output_objdir=.
19926 libname=conftest
19927 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19928 allow_undefined_flag_CXX=
19929 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 +000019930 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19931 ac_status=$?
19932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19933 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019934 then
19935 lt_cv_archive_cmds_need_lc_CXX=no
19936 else
19937 lt_cv_archive_cmds_need_lc_CXX=yes
19938 fi
19939 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19940 else
19941 cat conftest.err 1>&5
19942 fi
19943 $RM conftest*
19944
19945fi
19946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19947$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19948 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019949 ;;
19950 esac
19951 fi
19952 ;;
19953esac
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
cristy73bd4a52010-10-05 11:24:23 +000020016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20017$as_echo_n "checking dynamic linker characteristics... " >&6; }
20018
20019library_names_spec=
20020libname_spec='lib$name'
20021soname_spec=
20022shrext_cmds=".so"
20023postinstall_cmds=
20024postuninstall_cmds=
20025finish_cmds=
20026finish_eval=
20027shlibpath_var=
20028shlibpath_overrides_runpath=unknown
20029version_type=none
20030dynamic_linker="$host_os ld.so"
20031sys_lib_dlsearch_path_spec="/lib /usr/lib"
20032need_lib_prefix=unknown
20033hardcode_into_libs=no
20034
20035# when you set need_version to no, make sure it does not cause -set_version
20036# flags to be left without arguments
20037need_version=unknown
20038
20039case $host_os in
20040aix3*)
cristy99bd5232011-12-07 14:38:20 +000020041 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020042 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20043 shlibpath_var=LIBPATH
20044
20045 # AIX 3 has no versioning support, so we append a major version to the name.
20046 soname_spec='${libname}${release}${shared_ext}$major'
20047 ;;
20048
20049aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020050 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020051 need_lib_prefix=no
20052 need_version=no
20053 hardcode_into_libs=yes
20054 if test "$host_cpu" = ia64; then
20055 # AIX 5 supports IA64
20056 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20057 shlibpath_var=LD_LIBRARY_PATH
20058 else
20059 # With GCC up to 2.95.x, collect2 would create an import file
20060 # for dependence libraries. The import file would start with
20061 # the line `#! .'. This would cause the generated library to
20062 # depend on `.', always an invalid library. This was fixed in
20063 # development snapshots of GCC prior to 3.0.
20064 case $host_os in
20065 aix4 | aix4.[01] | aix4.[01].*)
20066 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20067 echo ' yes '
20068 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20069 :
20070 else
20071 can_build_shared=no
20072 fi
20073 ;;
20074 esac
20075 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20076 # soname into executable. Probably we can add versioning support to
20077 # collect2, so additional links can be useful in future.
20078 if test "$aix_use_runtimelinking" = yes; then
20079 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20080 # instead of lib<name>.a to let people know that these are not
20081 # typical AIX shared libraries.
20082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20083 else
20084 # We preserve .a as extension for shared libraries through AIX4.2
20085 # and later when we are not doing run time linking.
20086 library_names_spec='${libname}${release}.a $libname.a'
20087 soname_spec='${libname}${release}${shared_ext}$major'
20088 fi
20089 shlibpath_var=LIBPATH
20090 fi
20091 ;;
20092
20093amigaos*)
20094 case $host_cpu in
20095 powerpc)
20096 # Since July 2007 AmigaOS4 officially supports .so libraries.
20097 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20099 ;;
20100 m68k)
20101 library_names_spec='$libname.ixlibrary $libname.a'
20102 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020103 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 +000020104 ;;
20105 esac
20106 ;;
20107
20108beos*)
20109 library_names_spec='${libname}${shared_ext}'
20110 dynamic_linker="$host_os ld.so"
20111 shlibpath_var=LIBRARY_PATH
20112 ;;
20113
20114bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020115 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020116 need_version=no
20117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20118 soname_spec='${libname}${release}${shared_ext}$major'
20119 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20120 shlibpath_var=LD_LIBRARY_PATH
20121 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20122 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20123 # the default ld.so.conf also contains /usr/contrib/lib and
20124 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20125 # libtool to hard-code these into programs
20126 ;;
20127
20128cygwin* | mingw* | pw32* | cegcc*)
20129 version_type=windows
20130 shrext_cmds=".dll"
20131 need_version=no
20132 need_lib_prefix=no
20133
cristyda16f162011-02-19 23:52:17 +000020134 case $GCC,$cc_basename in
20135 yes,*)
20136 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020137 library_names_spec='$libname.dll.a'
20138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20139 postinstall_cmds='base_file=`basename \${file}`~
20140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20141 dldir=$destdir/`dirname \$dlpath`~
20142 test -d \$dldir || mkdir -p \$dldir~
20143 $install_prog $dir/$dlname \$dldir/$dlname~
20144 chmod a+x \$dldir/$dlname~
20145 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20146 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20147 fi'
20148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20149 dlpath=$dir/\$dldll~
20150 $RM \$dlpath'
20151 shlibpath_overrides_runpath=yes
20152
20153 case $host_os in
20154 cygwin*)
20155 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20156 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020157
cristy73bd4a52010-10-05 11:24:23 +000020158 ;;
20159 mingw* | cegcc*)
20160 # MinGW DLLs use traditional 'lib' prefix
20161 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020162 ;;
20163 pw32*)
20164 # pw32 DLLs use 'pw' prefix rather than 'lib'
20165 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20166 ;;
20167 esac
cristyda16f162011-02-19 23:52:17 +000020168 dynamic_linker='Win32 ld.exe'
20169 ;;
20170
20171 *,cl*)
20172 # Native MSVC
20173 libname_spec='$name'
20174 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20175 library_names_spec='${libname}.dll.lib'
20176
20177 case $build_os in
20178 mingw*)
20179 sys_lib_search_path_spec=
20180 lt_save_ifs=$IFS
20181 IFS=';'
20182 for lt_path in $LIB
20183 do
20184 IFS=$lt_save_ifs
20185 # Let DOS variable expansion print the short 8.3 style file name.
20186 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20187 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20188 done
20189 IFS=$lt_save_ifs
20190 # Convert to MSYS style.
20191 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20192 ;;
20193 cygwin*)
20194 # Convert to unix form, then to dos form, then back to unix form
20195 # but this time dos style (no spaces!) so that the unix form looks
20196 # like /cygdrive/c/PROGRA~1:/cygdr...
20197 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20198 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20199 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20200 ;;
20201 *)
20202 sys_lib_search_path_spec="$LIB"
20203 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20204 # It is most probably a Windows format PATH.
20205 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20206 else
20207 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20208 fi
20209 # FIXME: find the short name or the path components, as spaces are
20210 # common. (e.g. "Program Files" -> "PROGRA~1")
20211 ;;
20212 esac
20213
20214 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20215 postinstall_cmds='base_file=`basename \${file}`~
20216 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20217 dldir=$destdir/`dirname \$dlpath`~
20218 test -d \$dldir || mkdir -p \$dldir~
20219 $install_prog $dir/$dlname \$dldir/$dlname'
20220 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20221 dlpath=$dir/\$dldll~
20222 $RM \$dlpath'
20223 shlibpath_overrides_runpath=yes
20224 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020225 ;;
20226
20227 *)
cristyda16f162011-02-19 23:52:17 +000020228 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020229 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020230 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020231 ;;
20232 esac
cristy73bd4a52010-10-05 11:24:23 +000020233 # FIXME: first we should search . and the directory the executable is in
20234 shlibpath_var=PATH
20235 ;;
20236
20237darwin* | rhapsody*)
20238 dynamic_linker="$host_os dyld"
20239 version_type=darwin
20240 need_lib_prefix=no
20241 need_version=no
20242 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20243 soname_spec='${libname}${release}${major}$shared_ext'
20244 shlibpath_overrides_runpath=yes
20245 shlibpath_var=DYLD_LIBRARY_PATH
20246 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20247
20248 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20249 ;;
20250
20251dgux*)
cristy99bd5232011-12-07 14:38:20 +000020252 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020253 need_lib_prefix=no
20254 need_version=no
20255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20256 soname_spec='${libname}${release}${shared_ext}$major'
20257 shlibpath_var=LD_LIBRARY_PATH
20258 ;;
20259
cristy73bd4a52010-10-05 11:24:23 +000020260freebsd* | dragonfly*)
20261 # DragonFly does not have aout. When/if they implement a new
20262 # versioning mechanism, adjust this.
20263 if test -x /usr/bin/objformat; then
20264 objformat=`/usr/bin/objformat`
20265 else
20266 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020267 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020268 *) objformat=elf ;;
20269 esac
20270 fi
20271 version_type=freebsd-$objformat
20272 case $version_type in
20273 freebsd-elf*)
20274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20275 need_version=no
20276 need_lib_prefix=no
20277 ;;
20278 freebsd-*)
20279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20280 need_version=yes
20281 ;;
20282 esac
20283 shlibpath_var=LD_LIBRARY_PATH
20284 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020285 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020286 shlibpath_overrides_runpath=yes
20287 ;;
20288 freebsd3.[01]* | freebsdelf3.[01]*)
20289 shlibpath_overrides_runpath=yes
20290 hardcode_into_libs=yes
20291 ;;
20292 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20293 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20294 shlibpath_overrides_runpath=no
20295 hardcode_into_libs=yes
20296 ;;
20297 *) # from 4.6 on, and DragonFly
20298 shlibpath_overrides_runpath=yes
20299 hardcode_into_libs=yes
20300 ;;
20301 esac
20302 ;;
20303
20304gnu*)
cristy99bd5232011-12-07 14:38:20 +000020305 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020306 need_lib_prefix=no
20307 need_version=no
20308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20309 soname_spec='${libname}${release}${shared_ext}$major'
20310 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020311 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020312 hardcode_into_libs=yes
20313 ;;
20314
cristy0c60a692010-11-04 01:09:47 +000020315haiku*)
cristy99bd5232011-12-07 14:38:20 +000020316 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020317 need_lib_prefix=no
20318 need_version=no
20319 dynamic_linker="$host_os runtime_loader"
20320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20321 soname_spec='${libname}${release}${shared_ext}$major'
20322 shlibpath_var=LIBRARY_PATH
20323 shlibpath_overrides_runpath=yes
20324 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20325 hardcode_into_libs=yes
20326 ;;
20327
cristy73bd4a52010-10-05 11:24:23 +000020328hpux9* | hpux10* | hpux11*)
20329 # Give a soname corresponding to the major version so that dld.sl refuses to
20330 # link against other versions.
20331 version_type=sunos
20332 need_lib_prefix=no
20333 need_version=no
20334 case $host_cpu in
20335 ia64*)
20336 shrext_cmds='.so'
20337 hardcode_into_libs=yes
20338 dynamic_linker="$host_os dld.so"
20339 shlibpath_var=LD_LIBRARY_PATH
20340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20342 soname_spec='${libname}${release}${shared_ext}$major'
20343 if test "X$HPUX_IA64_MODE" = X32; then
20344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20345 else
20346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20347 fi
20348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20349 ;;
20350 hppa*64*)
20351 shrext_cmds='.sl'
20352 hardcode_into_libs=yes
20353 dynamic_linker="$host_os dld.sl"
20354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20357 soname_spec='${libname}${release}${shared_ext}$major'
20358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20360 ;;
20361 *)
20362 shrext_cmds='.sl'
20363 dynamic_linker="$host_os dld.sl"
20364 shlibpath_var=SHLIB_PATH
20365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20367 soname_spec='${libname}${release}${shared_ext}$major'
20368 ;;
20369 esac
cristy0c60a692010-11-04 01:09:47 +000020370 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020371 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020372 # or fails outright, so override atomically:
20373 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020374 ;;
20375
20376interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020377 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020378 need_lib_prefix=no
20379 need_version=no
20380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20381 soname_spec='${libname}${release}${shared_ext}$major'
20382 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20383 shlibpath_var=LD_LIBRARY_PATH
20384 shlibpath_overrides_runpath=no
20385 hardcode_into_libs=yes
20386 ;;
20387
20388irix5* | irix6* | nonstopux*)
20389 case $host_os in
20390 nonstopux*) version_type=nonstopux ;;
20391 *)
20392 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020393 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020394 else
20395 version_type=irix
20396 fi ;;
20397 esac
20398 need_lib_prefix=no
20399 need_version=no
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20402 case $host_os in
20403 irix5* | nonstopux*)
20404 libsuff= shlibsuff=
20405 ;;
20406 *)
20407 case $LD in # libtool.m4 will add one of these switches to LD
20408 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20409 libsuff= shlibsuff= libmagic=32-bit;;
20410 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20411 libsuff=32 shlibsuff=N32 libmagic=N32;;
20412 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20413 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20414 *) libsuff= shlibsuff= libmagic=never-match;;
20415 esac
20416 ;;
20417 esac
20418 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20419 shlibpath_overrides_runpath=no
20420 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20421 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20422 hardcode_into_libs=yes
20423 ;;
20424
20425# No shared lib support for Linux oldld, aout, or coff.
20426linux*oldld* | linux*aout* | linux*coff*)
20427 dynamic_linker=no
20428 ;;
20429
cristy99bd5232011-12-07 14:38:20 +000020430# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020431linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020432 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020433 need_lib_prefix=no
20434 need_version=no
20435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20436 soname_spec='${libname}${release}${shared_ext}$major'
20437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20438 shlibpath_var=LD_LIBRARY_PATH
20439 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020440
cristy73bd4a52010-10-05 11:24:23 +000020441 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020442 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020443 $as_echo_n "(cached) " >&6
20444else
20445 lt_cv_shlibpath_overrides_runpath=no
20446 save_LDFLAGS=$LDFLAGS
20447 save_libdir=$libdir
20448 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20449 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020451/* end confdefs.h. */
20452
20453int
20454main ()
20455{
20456
20457 ;
20458 return 0;
20459}
20460_ACEOF
20461if ac_fn_cxx_try_link "$LINENO"; then :
20462 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020463 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020464fi
20465fi
20466rm -f core conftest.err conftest.$ac_objext \
20467 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020468 LDFLAGS=$save_LDFLAGS
20469 libdir=$save_libdir
20470
20471fi
20472
20473 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020474
20475 # This implies no fast_install, which is unacceptable.
20476 # Some rework will be needed to allow for fast_install
20477 # before this can be enabled.
20478 hardcode_into_libs=yes
20479
20480 # Add ABI-specific directories to the system library path.
20481 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20482
20483 # Append ld.so.conf contents to the search path
20484 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020485 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 +000020486 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020487
cristy73bd4a52010-10-05 11:24:23 +000020488 fi
20489
20490 # We used to test for /lib/ld.so.1 and disable shared libraries on
20491 # powerpc, because MkLinux only supported shared libraries with the
20492 # GNU dynamic linker. Since this was broken with cross compilers,
20493 # most powerpc-linux boxes support dynamic linking these days and
20494 # people can always --disable-shared, the test was removed, and we
20495 # assume the GNU/Linux dynamic linker is in use.
20496 dynamic_linker='GNU/Linux ld.so'
20497 ;;
20498
20499netbsd*)
20500 version_type=sunos
20501 need_lib_prefix=no
20502 need_version=no
20503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20506 dynamic_linker='NetBSD (a.out) ld.so'
20507 else
20508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20509 soname_spec='${libname}${release}${shared_ext}$major'
20510 dynamic_linker='NetBSD ld.elf_so'
20511 fi
20512 shlibpath_var=LD_LIBRARY_PATH
20513 shlibpath_overrides_runpath=yes
20514 hardcode_into_libs=yes
20515 ;;
20516
20517newsos6)
cristy99bd5232011-12-07 14:38:20 +000020518 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20520 shlibpath_var=LD_LIBRARY_PATH
20521 shlibpath_overrides_runpath=yes
20522 ;;
20523
20524*nto* | *qnx*)
20525 version_type=qnx
20526 need_lib_prefix=no
20527 need_version=no
20528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20529 soname_spec='${libname}${release}${shared_ext}$major'
20530 shlibpath_var=LD_LIBRARY_PATH
20531 shlibpath_overrides_runpath=no
20532 hardcode_into_libs=yes
20533 dynamic_linker='ldqnx.so'
20534 ;;
20535
20536openbsd*)
20537 version_type=sunos
20538 sys_lib_dlsearch_path_spec="/usr/lib"
20539 need_lib_prefix=no
20540 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20541 case $host_os in
20542 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20543 *) need_version=no ;;
20544 esac
20545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20547 shlibpath_var=LD_LIBRARY_PATH
20548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20549 case $host_os in
20550 openbsd2.[89] | openbsd2.[89].*)
20551 shlibpath_overrides_runpath=no
20552 ;;
20553 *)
20554 shlibpath_overrides_runpath=yes
20555 ;;
20556 esac
20557 else
20558 shlibpath_overrides_runpath=yes
20559 fi
20560 ;;
20561
20562os2*)
20563 libname_spec='$name'
20564 shrext_cmds=".dll"
20565 need_lib_prefix=no
20566 library_names_spec='$libname${shared_ext} $libname.a'
20567 dynamic_linker='OS/2 ld.exe'
20568 shlibpath_var=LIBPATH
20569 ;;
20570
20571osf3* | osf4* | osf5*)
20572 version_type=osf
20573 need_lib_prefix=no
20574 need_version=no
20575 soname_spec='${libname}${release}${shared_ext}$major'
20576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20577 shlibpath_var=LD_LIBRARY_PATH
20578 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20579 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20580 ;;
20581
20582rdos*)
20583 dynamic_linker=no
20584 ;;
20585
20586solaris*)
cristy99bd5232011-12-07 14:38:20 +000020587 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020588 need_lib_prefix=no
20589 need_version=no
20590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20591 soname_spec='${libname}${release}${shared_ext}$major'
20592 shlibpath_var=LD_LIBRARY_PATH
20593 shlibpath_overrides_runpath=yes
20594 hardcode_into_libs=yes
20595 # ldd complains unless libraries are executable
20596 postinstall_cmds='chmod +x $lib'
20597 ;;
20598
20599sunos4*)
20600 version_type=sunos
20601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20602 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20603 shlibpath_var=LD_LIBRARY_PATH
20604 shlibpath_overrides_runpath=yes
20605 if test "$with_gnu_ld" = yes; then
20606 need_lib_prefix=no
20607 fi
20608 need_version=yes
20609 ;;
20610
20611sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020612 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20614 soname_spec='${libname}${release}${shared_ext}$major'
20615 shlibpath_var=LD_LIBRARY_PATH
20616 case $host_vendor in
20617 sni)
20618 shlibpath_overrides_runpath=no
20619 need_lib_prefix=no
20620 runpath_var=LD_RUN_PATH
20621 ;;
20622 siemens)
20623 need_lib_prefix=no
20624 ;;
20625 motorola)
20626 need_lib_prefix=no
20627 need_version=no
20628 shlibpath_overrides_runpath=no
20629 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20630 ;;
20631 esac
20632 ;;
20633
20634sysv4*MP*)
20635 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020636 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020637 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20638 soname_spec='$libname${shared_ext}.$major'
20639 shlibpath_var=LD_LIBRARY_PATH
20640 fi
20641 ;;
20642
20643sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20644 version_type=freebsd-elf
20645 need_lib_prefix=no
20646 need_version=no
20647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20648 soname_spec='${libname}${release}${shared_ext}$major'
20649 shlibpath_var=LD_LIBRARY_PATH
20650 shlibpath_overrides_runpath=yes
20651 hardcode_into_libs=yes
20652 if test "$with_gnu_ld" = yes; then
20653 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20654 else
20655 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20656 case $host_os in
20657 sco3.2v5*)
20658 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20659 ;;
20660 esac
20661 fi
20662 sys_lib_dlsearch_path_spec='/usr/lib'
20663 ;;
20664
20665tpf*)
20666 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020667 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020668 need_lib_prefix=no
20669 need_version=no
20670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20671 shlibpath_var=LD_LIBRARY_PATH
20672 shlibpath_overrides_runpath=no
20673 hardcode_into_libs=yes
20674 ;;
20675
20676uts4*)
cristy99bd5232011-12-07 14:38:20 +000020677 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20679 soname_spec='${libname}${release}${shared_ext}$major'
20680 shlibpath_var=LD_LIBRARY_PATH
20681 ;;
20682
20683*)
20684 dynamic_linker=no
20685 ;;
20686esac
20687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20688$as_echo "$dynamic_linker" >&6; }
20689test "$dynamic_linker" = no && can_build_shared=no
20690
20691variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20692if test "$GCC" = yes; then
20693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20694fi
20695
20696if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20697 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20698fi
20699if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20700 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20701fi
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
cristy0c60a692010-11-04 01:09:47 +000020738
20739
cristy73bd4a52010-10-05 11:24:23 +000020740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20741$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20742hardcode_action_CXX=
20743if test -n "$hardcode_libdir_flag_spec_CXX" ||
20744 test -n "$runpath_var_CXX" ||
20745 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20746
20747 # We can hardcode non-existent directories.
20748 if test "$hardcode_direct_CXX" != no &&
20749 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20750 # have to relink, otherwise we might link with an installed library
20751 # when we should be linking with a yet-to-be-installed one
20752 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20753 test "$hardcode_minus_L_CXX" != no; then
20754 # Linking always hardcodes the temporary library directory.
20755 hardcode_action_CXX=relink
20756 else
20757 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20758 hardcode_action_CXX=immediate
20759 fi
20760else
20761 # We cannot hardcode anything, or else we can only hardcode existing
20762 # directories.
20763 hardcode_action_CXX=unsupported
20764fi
20765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20766$as_echo "$hardcode_action_CXX" >&6; }
20767
20768if test "$hardcode_action_CXX" = relink ||
20769 test "$inherit_rpath_CXX" = yes; then
20770 # Fast installation is not supported
20771 enable_fast_install=no
20772elif test "$shlibpath_overrides_runpath" = yes ||
20773 test "$enable_shared" = no; then
20774 # Fast installation is not necessary
20775 enable_fast_install=needless
20776fi
20777
20778
20779
20780
20781
20782
20783
20784 fi # test -n "$compiler"
20785
20786 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020787 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020788 LDCXX=$LD
20789 LD=$lt_save_LD
20790 GCC=$lt_save_GCC
20791 with_gnu_ld=$lt_save_with_gnu_ld
20792 lt_cv_path_LDCXX=$lt_cv_path_LD
20793 lt_cv_path_LD=$lt_save_path_LD
20794 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20795 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20796fi # test "$_lt_caught_CXX_error" != yes
20797
20798ac_ext=c
20799ac_cpp='$CPP $CPPFLAGS'
20800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20802ac_compiler_gnu=$ac_cv_c_compiler_gnu
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
cristy99bd5232011-12-07 14:38:20 +000020816
20817
cristy73bd4a52010-10-05 11:24:23 +000020818 ac_config_commands="$ac_config_commands libtool"
20819
20820
20821
20822
20823# Only expand once:
20824
20825
20826
cristy3ed852e2009-09-05 21:47:34 +000020827
20828
cristy3ed852e2009-09-05 21:47:34 +000020829# Check to see if building shared libraries
20830libtool_build_shared_libs='no'
20831if test "$enable_shared" = 'yes'; then
20832 libtool_build_shared_libs='yes'
20833fi
20834
20835# Check to see if building static libraries
20836libtool_build_static_libs='no'
20837if test "$enable_static" = 'yes'; then
20838 libtool_build_static_libs='yes'
20839fi
20840
cristy73bd4a52010-10-05 11:24:23 +000020841 if test "${libtool_build_shared_libs}" = 'yes'; then
20842 WITH_SHARED_LIBS_TRUE=
20843 WITH_SHARED_LIBS_FALSE='#'
20844else
20845 WITH_SHARED_LIBS_TRUE='#'
20846 WITH_SHARED_LIBS_FALSE=
20847fi
20848
cristy3ed852e2009-09-05 21:47:34 +000020849#
20850# Enable support for building loadable modules
20851#
cristyaf4cbf32012-10-16 23:47:41 +000020852build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020853
20854# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020855if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020856 withval=$with_modules; with_modules=$withval
20857else
cristy5a1cefd2010-01-06 20:42:35 +000020858 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020859fi
20860
20861
20862# Only allow building loadable modules if we are building shared libraries
20863if test "$with_modules" != 'no' ; then
20864 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020865 { $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 +000020866$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020867 build_modules='no'
20868 else
20869 build_modules='yes'
20870 fi
cristy3ed852e2009-09-05 21:47:34 +000020871fi
cristyc6722092012-10-14 00:19:31 +000020872if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020873
cristy8b350f62009-11-15 23:12:43 +000020874$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020875
cristyfa161182012-12-19 15:45:28 +000020876 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020877fi
cristyc6722092012-10-14 00:19:31 +000020878 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020879 WITH_MODULES_TRUE=
20880 WITH_MODULES_FALSE='#'
20881else
20882 WITH_MODULES_TRUE='#'
20883 WITH_MODULES_FALSE=
20884fi
20885
cristy3ed852e2009-09-05 21:47:34 +000020886
cristy3ed852e2009-09-05 21:47:34 +000020887# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020888# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020889# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020890if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020891 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20892else
20893 enable_delegate_build='no'
20894fi
20895
20896
20897# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020898if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020899 enableval=$enable_deprecated; enable_deprecated=$enableval
20900else
20901 enable_deprecated='no'
20902fi
20903
20904
20905if test "$enable_deprecated" = 'yes'; then
20906
cristy8b350f62009-11-15 23:12:43 +000020907$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020908
20909else
20910 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20911fi
20912
20913# Build a version of ImageMagick which operates uninstalled.
20914# Used to build distributions located via MAGICK_HOME / executable path
20915# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020916if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020917 enableval=$enable_installed; enable_installed=$enableval
20918else
20919 enable_installed='yes'
20920fi
20921
20922
20923if test "$enable_installed" = 'yes'; then
20924
cristy8b350f62009-11-15 23:12:43 +000020925$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020926
20927else
20928 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20929fi
20930
20931# Permit enciphering and deciphering image pixels.
20932# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020933if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020934 enableval=$enable_cipher; enable_cipher=$enableval
20935else
20936 enable_cipher='yes'
20937fi
20938
20939
20940if test "$enable_cipher" = 'yes'; then
20941
cristy8b350f62009-11-15 23:12:43 +000020942$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020943
20944fi
20945
cristy6e3607c2011-09-13 13:59:17 +000020946# Build a zero-configuration version of ImageMagick.
20947# Check whether --enable-zero-configuration was given.
20948if test "${enable_zero_configuration+set}" = set; then :
20949 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020950else
cristy6e3607c2011-09-13 13:59:17 +000020951 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020952fi
20953
20954
cristy6e3607c2011-09-13 13:59:17 +000020955if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020956
cristy6e3607c2011-09-13 13:59:17 +000020957$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020958
cristy81af5702011-09-13 14:20:58 +000020959 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020960fi
20961
20962# Build a high dynamic range version of ImageMagick.
20963# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020964if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020965 enableval=$enable_hdri; enable_hdri=$enableval
20966else
cristy191c0b72012-08-12 16:29:52 +000020967 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020968fi
20969
20970
20971MAGICK_HDRI=""
20972if test "$enable_hdri" = 'yes'; then
20973 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000020974 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000020975 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000020976else
20977 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000020978fi
20979
cristye52f12f2012-12-31 15:32:36 +000020980cat >>confdefs.h <<_ACEOF
20981#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
20982_ACEOF
20983
20984MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
20985CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000020986CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000020987
cristy3ed852e2009-09-05 21:47:34 +000020988# Build a version of ImageMagick with assert statements.
20989# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020990if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020991 enableval=$enable_assert; enable_assert=$enableval
20992else
20993 enable_assert='yes'
20994fi
20995
20996
20997if test "$enable_assert" = 'no'; then
20998
cristy8b350f62009-11-15 23:12:43 +000020999$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021000
21001fi
21002
cristya448bd22011-10-14 12:38:13 +000021003# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021004
21005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21006$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21007 # Check whether --enable-maintainer-mode was given.
21008if test "${enable_maintainer_mode+set}" = set; then :
21009 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21010else
21011 USE_MAINTAINER_MODE=no
21012fi
21013
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21015$as_echo "$USE_MAINTAINER_MODE" >&6; }
21016 if test $USE_MAINTAINER_MODE = yes; then
21017 MAINTAINER_MODE_TRUE=
21018 MAINTAINER_MODE_FALSE='#'
21019else
21020 MAINTAINER_MODE_TRUE='#'
21021 MAINTAINER_MODE_FALSE=
21022fi
21023
21024 MAINT=$MAINTAINER_MODE_TRUE
21025
21026
cristy3ed852e2009-09-05 21:47:34 +000021027
cristy3ed852e2009-09-05 21:47:34 +000021028# Enable ccmalloc memory debugging support
21029# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021030if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021031 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21032else
21033 enable_ccmalloc='no'
21034fi
21035
21036
21037# Enable Electric Fence memory debugging support
21038# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021039if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021040 enableval=$enable_efence; enable_efence=$enableval
21041else
21042 enable_efence='no'
21043fi
21044
21045
21046# Enable prof-based profiling support
21047# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021048if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021049 enableval=$enable_prof; enable_prof=$enableval
21050else
21051 enable_prof='no'
21052fi
21053
21054
21055# Enable gprof-based profiling support
21056# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021057if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021058 enableval=$enable_gprof; enable_gprof=$enableval
21059else
21060 enable_gprof='no'
21061fi
21062
21063
21064# Enable gcov-based profiling support
21065# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021066if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021067 enableval=$enable_gcov; enable_gcov=$enableval
21068else
21069 enable_gcov='no'
21070fi
21071
21072
21073enable_profiling='no'
21074if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21075 enable_profiling='yes'
21076 if test "$libtool_build_shared_libs" = 'yes'; then
21077 echo "Warning: Can not profile code using shared libraries"
21078 fi
21079fi
21080
21081# Magick API method prefix
21082
21083# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021084if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021085 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021086else
cristyfc3d0222012-02-07 15:05:57 +000021087 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021088fi
21089
21090
cristyfc3d0222012-02-07 15:05:57 +000021091if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021092
21093cat >>confdefs.h <<_ACEOF
21094#define NAMESPACE_PREFIX $with_method_prefix
21095_ACEOF
21096
cristyfc3d0222012-02-07 15:05:57 +000021097 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021098fi
21099
cristy71d8c202012-03-20 17:05:01 +000021100# Enable legacy support (default no)
21101# Check whether --enable-legacy-support was given.
21102if test "${enable_legacy_support+set}" = set; then :
21103 enableval=$enable_legacy_support; with_legacy_support=$enableval
21104else
21105 with_legacy_support='no'
21106fi
21107
21108 if test "$with_legacy_support" != 'no'; then
21109 LEGACY_SUPPORT_TRUE=
21110 LEGACY_SUPPORT_FALSE='#'
21111else
21112 LEGACY_SUPPORT_TRUE='#'
21113 LEGACY_SUPPORT_FALSE=
21114fi
21115
21116
cristy3ed852e2009-09-05 21:47:34 +000021117# Number of bits in a Quantum
21118
21119# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021120if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021121 withval=$with_quantum_depth; with_quantum_depth=$withval
21122else
21123 with_quantum_depth=16
21124fi
21125
21126
21127if test "$with_quantum_depth" != '8'; then
21128 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21129fi
21130
21131case "${with_quantum_depth}" in
21132 8 ) ;;
21133 16 ) ;;
21134 32 ) ;;
21135 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021136 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021137esac
21138QUANTUM_DEPTH="$with_quantum_depth"
21139
21140cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021141#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021142_ACEOF
21143
cristya371edf2013-02-06 13:42:17 +000021144MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021145CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021146CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021147
cristy01ff9f32012-12-01 18:15:29 +000021148# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021149MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021150if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021151 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021152fi
cristy01ff9f32012-12-01 18:15:29 +000021153
21154
cristy3ed852e2009-09-05 21:47:34 +000021155# Set pixel cache threshold
21156
21157# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021158if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021159 withval=$with_cache; with_cache=$withval
21160else
21161 with_cache=''
21162fi
21163
21164
21165if test "$with_cache" != ''; then
21166
21167cat >>confdefs.h <<_ACEOF
21168#define PixelCacheThreshold $with_cache
21169_ACEOF
21170
21171 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21172fi
21173
21174# Disable/Enable support for full delegate paths
21175
21176# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021177if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021178 withval=$with_frozenpaths; with_frozenpaths=$withval
21179else
21180 with_frozenpaths='no'
21181fi
21182
21183
21184# Enable build/install of Magick++
21185
21186# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021187if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021188 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21189else
21190 with_magick_plus_plus='yes'
21191fi
21192
21193
cristy3a75f062012-09-08 23:29:40 +000021194# Encode the this name into the shared library.
21195
21196# Check whether --with-package-release-name was given.
21197if test "${with_package_release_name+set}" = set; then :
21198 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21199fi
21200
21201
21202
cristy3ed852e2009-09-05 21:47:34 +000021203# Disable build/install of PerlMagick.
21204
21205# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021206if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021207 withval=$with_perl; with_perl=$withval
21208else
cristyb5f4e2f2010-04-25 00:49:11 +000021209 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021210fi
21211
21212
21213# Options to pass when configuring PerlMagick
21214
21215# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021216if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021217 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021218fi
21219
21220
cristy3ed852e2009-09-05 21:47:34 +000021221
21222# Enable umem, object-caching memory allocation library.
21223
21224# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021225if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021226 withval=$with_umem; with_umem=$withval
21227else
21228 with_umem='no'
21229fi
21230
21231if test "$with_umem" != 'yes' ; then
21232 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21233fi
21234
21235#
21236# Specify path to shared libstdc++ if not in normal location
21237#
21238
21239# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021240if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021241 withval=$with_libstdc; with_libstdc=$withval
21242else
21243 with_libstdc=''
21244fi
21245
21246
21247if test "$with_libstdc" != ''; then
21248 if test -d "$with_libstdc"; then
21249 LIBSTDCLDFLAGS="-L$with_libstdc"
21250 fi
21251fi
21252
21253
21254# Does gcc required -traditional?
21255if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021257$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021258if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021259 $as_echo_n "(cached) " >&6
21260else
21261 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021263/* end confdefs.h. */
21264#include <sgtty.h>
21265Autoconf TIOCGETP
21266_ACEOF
21267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021268 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021269 ac_cv_prog_gcc_traditional=yes
21270else
21271 ac_cv_prog_gcc_traditional=no
21272fi
21273rm -f conftest*
21274
21275
21276 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021278/* end confdefs.h. */
21279#include <termio.h>
21280Autoconf TCGETA
21281_ACEOF
21282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021283 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021284 ac_cv_prog_gcc_traditional=yes
21285fi
21286rm -f conftest*
21287
21288 fi
21289fi
cristy8b350f62009-11-15 23:12:43 +000021290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021291$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21292 if test $ac_cv_prog_gcc_traditional = yes; then
21293 CC="$CC -traditional"
21294 fi
21295fi
21296
21297
21298########
21299#
21300# Set defines required to build DLLs and modules using MinGW
21301#
21302########
21303# These options are set for multi-thread DLL module build
21304# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21305# module: _DLL
21306# executable/Magick++: _DLL _MAGICKMOD_
21307MODULE_EXTRA_CPPFLAGS=''
21308LIBRARY_EXTRA_CPPFLAGS=''
21309if test "${native_win32_build}" = 'yes'; then
21310 if test "${libtool_build_shared_libs}" = 'yes'; then
21311 CPPFLAGS="$CPPFLAGS -D_DLL"
21312 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21313 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21314 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021315 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021316 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21317 else
21318 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21319 fi
21320 else
21321 CPPFLAGS="$CPPFLAGS -D_LIB"
21322 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21323 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21324 fi
21325 if test "$with_threads" = 'yes'; then
21326 CPPFLAGS="$CPPFLAGS -D_MT"
21327 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21328 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21329 fi
21330fi
21331
21332
21333
21334# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021336$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021337if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021338 $as_echo_n "(cached) " >&6
21339else
cristy8b350f62009-11-15 23:12:43 +000021340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021341/* end confdefs.h. */
21342#include <stdlib.h>
21343#include <stdarg.h>
21344#include <string.h>
21345#include <float.h>
21346
21347int
21348main ()
21349{
21350
21351 ;
21352 return 0;
21353}
21354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021355if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021356 ac_cv_header_stdc=yes
21357else
cristy8b350f62009-11-15 23:12:43 +000021358 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021359fi
cristy3ed852e2009-09-05 21:47:34 +000021360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21361
21362if test $ac_cv_header_stdc = yes; then
21363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021365/* end confdefs.h. */
21366#include <string.h>
21367
21368_ACEOF
21369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021370 $EGREP "memchr" >/dev/null 2>&1; then :
21371
cristy3ed852e2009-09-05 21:47:34 +000021372else
21373 ac_cv_header_stdc=no
21374fi
21375rm -f conftest*
21376
21377fi
21378
21379if test $ac_cv_header_stdc = yes; then
21380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021382/* end confdefs.h. */
21383#include <stdlib.h>
21384
21385_ACEOF
21386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021387 $EGREP "free" >/dev/null 2>&1; then :
21388
cristy3ed852e2009-09-05 21:47:34 +000021389else
21390 ac_cv_header_stdc=no
21391fi
21392rm -f conftest*
21393
21394fi
21395
21396if test $ac_cv_header_stdc = yes; then
21397 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021398 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021399 :
21400else
cristy8b350f62009-11-15 23:12:43 +000021401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021402/* end confdefs.h. */
21403#include <ctype.h>
21404#include <stdlib.h>
21405#if ((' ' & 0x0FF) == 0x020)
21406# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21407# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21408#else
21409# define ISLOWER(c) \
21410 (('a' <= (c) && (c) <= 'i') \
21411 || ('j' <= (c) && (c) <= 'r') \
21412 || ('s' <= (c) && (c) <= 'z'))
21413# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21414#endif
21415
21416#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21417int
21418main ()
21419{
21420 int i;
21421 for (i = 0; i < 256; i++)
21422 if (XOR (islower (i), ISLOWER (i))
21423 || toupper (i) != TOUPPER (i))
21424 return 2;
21425 return 0;
21426}
21427_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021428if ac_fn_c_try_run "$LINENO"; then :
21429
cristy3ed852e2009-09-05 21:47:34 +000021430else
cristy8b350f62009-11-15 23:12:43 +000021431 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021432fi
cristy8b350f62009-11-15 23:12:43 +000021433rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21434 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021435fi
21436
cristy3ed852e2009-09-05 21:47:34 +000021437fi
21438fi
cristy8b350f62009-11-15 23:12:43 +000021439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021440$as_echo "$ac_cv_header_stdc" >&6; }
21441if test $ac_cv_header_stdc = yes; then
21442
cristy8b350f62009-11-15 23:12:43 +000021443$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021444
21445fi
21446
21447if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021448 { $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 +000021449 header files. Compilation cannot proceed. Please install the ANSI C
21450 headers and rerun this script." >&5
21451$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21452 header files. Compilation cannot proceed. Please install the ANSI C
21453 headers and rerun this script." >&2;};
21454fi
cristya0b81c32010-01-22 02:54:33 +000021455
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21457$as_echo_n "checking whether to enable assertions... " >&6; }
21458 # Check whether --enable-assert was given.
21459if test "${enable_assert+set}" = set; then :
21460 enableval=$enable_assert; ac_enable_assert=$enableval
21461 if test "x$enableval" = xno; then :
21462
21463$as_echo "#define NDEBUG 1" >>confdefs.h
21464
21465elif test "x$enableval" != xyes; then :
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21467$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21468 ac_enable_assert=yes
21469fi
21470else
21471 ac_enable_assert=yes
21472fi
21473
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21475$as_echo "$ac_enable_assert" >&6; }
21476
cristy3ed852e2009-09-05 21:47:34 +000021477ac_header_dirent=no
21478for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21479 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021481$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021482if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021483 $as_echo_n "(cached) " >&6
21484else
cristy8b350f62009-11-15 23:12:43 +000021485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021486/* end confdefs.h. */
21487#include <sys/types.h>
21488#include <$ac_hdr>
21489
21490int
21491main ()
21492{
21493if ((DIR *) 0)
21494return 0;
21495 ;
21496 return 0;
21497}
21498_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021499if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021500 eval "$as_ac_Header=yes"
21501else
cristy8b350f62009-11-15 23:12:43 +000021502 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021503fi
cristy3ed852e2009-09-05 21:47:34 +000021504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21505fi
cristy8b350f62009-11-15 23:12:43 +000021506eval ac_res=\$$as_ac_Header
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021508$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021509if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021510 cat >>confdefs.h <<_ACEOF
21511#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21512_ACEOF
21513
21514ac_header_dirent=$ac_hdr; break
21515fi
21516
21517done
21518# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21519if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021521$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021522if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021523 $as_echo_n "(cached) " >&6
21524else
21525 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021527/* end confdefs.h. */
21528
21529/* Override any GCC internal prototype to avoid an error.
21530 Use char because int might match the return type of a GCC
21531 builtin and then its argument prototype would still apply. */
21532#ifdef __cplusplus
21533extern "C"
21534#endif
21535char opendir ();
21536int
21537main ()
21538{
21539return opendir ();
21540 ;
21541 return 0;
21542}
21543_ACEOF
21544for ac_lib in '' dir; do
21545 if test -z "$ac_lib"; then
21546 ac_res="none required"
21547 else
21548 ac_res=-l$ac_lib
21549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21550 fi
cristy8b350f62009-11-15 23:12:43 +000021551 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021552 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021553fi
cristy8b350f62009-11-15 23:12:43 +000021554rm -f core conftest.err conftest.$ac_objext \
21555 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021556 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021557 break
21558fi
21559done
cristyda16f162011-02-19 23:52:17 +000021560if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021561
cristy3ed852e2009-09-05 21:47:34 +000021562else
21563 ac_cv_search_opendir=no
21564fi
21565rm conftest.$ac_ext
21566LIBS=$ac_func_search_save_LIBS
21567fi
cristy8b350f62009-11-15 23:12:43 +000021568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021569$as_echo "$ac_cv_search_opendir" >&6; }
21570ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021571if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21573
21574fi
21575
21576else
cristy8b350f62009-11-15 23:12:43 +000021577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021578$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021579if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021580 $as_echo_n "(cached) " >&6
21581else
21582 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021584/* end confdefs.h. */
21585
21586/* Override any GCC internal prototype to avoid an error.
21587 Use char because int might match the return type of a GCC
21588 builtin and then its argument prototype would still apply. */
21589#ifdef __cplusplus
21590extern "C"
21591#endif
21592char opendir ();
21593int
21594main ()
21595{
21596return opendir ();
21597 ;
21598 return 0;
21599}
21600_ACEOF
21601for ac_lib in '' x; do
21602 if test -z "$ac_lib"; then
21603 ac_res="none required"
21604 else
21605 ac_res=-l$ac_lib
21606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21607 fi
cristy8b350f62009-11-15 23:12:43 +000021608 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021609 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021610fi
cristy8b350f62009-11-15 23:12:43 +000021611rm -f core conftest.err conftest.$ac_objext \
21612 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021613 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021614 break
21615fi
21616done
cristyda16f162011-02-19 23:52:17 +000021617if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021618
cristy3ed852e2009-09-05 21:47:34 +000021619else
21620 ac_cv_search_opendir=no
21621fi
21622rm conftest.$ac_ext
21623LIBS=$ac_func_search_save_LIBS
21624fi
cristy8b350f62009-11-15 23:12:43 +000021625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021626$as_echo "$ac_cv_search_opendir" >&6; }
21627ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021628if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21630
21631fi
21632
21633fi
21634
21635
21636# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021637for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/socket.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 +000021638do :
21639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21640ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021641if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021642 cat >>confdefs.h <<_ACEOF
21643#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21644_ACEOF
21645
21646fi
21647
21648done
21649
21650
21651########
21652#
21653# Checks for typedefs, structures, and compiler characteristics.
21654#
21655########
21656
cristy8b350f62009-11-15 23:12:43 +000021657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021658$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021659if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021660 $as_echo_n "(cached) " >&6
21661else
cristy8b350f62009-11-15 23:12:43 +000021662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021663/* end confdefs.h. */
21664
cristy14fefe52012-05-21 00:59:18 +000021665 #include <stdbool.h>
21666 #ifndef bool
21667 "error: bool is not defined"
21668 #endif
21669 #ifndef false
21670 "error: false is not defined"
21671 #endif
21672 #if false
21673 "error: false is not 0"
21674 #endif
21675 #ifndef true
21676 "error: true is not defined"
21677 #endif
21678 #if true != 1
21679 "error: true is not 1"
21680 #endif
21681 #ifndef __bool_true_false_are_defined
21682 "error: __bool_true_false_are_defined is not defined"
21683 #endif
cristy3ed852e2009-09-05 21:47:34 +000021684
cristy14fefe52012-05-21 00:59:18 +000021685 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021686
cristy14fefe52012-05-21 00:59:18 +000021687 char a[true == 1 ? 1 : -1];
21688 char b[false == 0 ? 1 : -1];
21689 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21690 char d[(bool) 0.5 == true ? 1 : -1];
21691 /* See body of main program for 'e'. */
21692 char f[(_Bool) 0.0 == false ? 1 : -1];
21693 char g[true];
21694 char h[sizeof (_Bool)];
21695 char i[sizeof s.t];
21696 enum { j = false, k = true, l = false * true, m = true * 256 };
21697 /* The following fails for
21698 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21699 _Bool n[m];
21700 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21701 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21702 /* Catch a bug in an HP-UX C compiler. See
21703 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21704 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21705 */
21706 _Bool q = true;
21707 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021708
21709int
21710main ()
21711{
21712
cristy14fefe52012-05-21 00:59:18 +000021713 bool e = &s;
21714 *pq |= q;
21715 *pq |= ! q;
21716 /* Refer to every declared value, to avoid compiler optimizations. */
21717 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21718 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021719
21720 ;
21721 return 0;
21722}
21723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021724if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021725 ac_cv_header_stdbool_h=yes
21726else
cristy8b350f62009-11-15 23:12:43 +000021727 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021728fi
cristy3ed852e2009-09-05 21:47:34 +000021729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21730fi
cristy8b350f62009-11-15 23:12:43 +000021731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021732$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021733 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021734if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021735
21736cat >>confdefs.h <<_ACEOF
21737#define HAVE__BOOL 1
21738_ACEOF
21739
21740
21741fi
21742
cristy14fefe52012-05-21 00:59:18 +000021743
cristy3ed852e2009-09-05 21:47:34 +000021744if test $ac_cv_header_stdbool_h = yes; then
21745
cristy8b350f62009-11-15 23:12:43 +000021746$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021747
21748fi
21749
cristy8b350f62009-11-15 23:12:43 +000021750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021751$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021752if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021753 $as_echo_n "(cached) " >&6
21754else
cristy8b350f62009-11-15 23:12:43 +000021755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021756/* end confdefs.h. */
21757
21758int
21759main ()
21760{
21761
21762volatile int x;
21763int * volatile y = (int *) 0;
21764return !x && !y;
21765 ;
21766 return 0;
21767}
21768_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021769if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021770 ac_cv_c_volatile=yes
21771else
cristy8b350f62009-11-15 23:12:43 +000021772 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021773fi
cristy3ed852e2009-09-05 21:47:34 +000021774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21775fi
cristy8b350f62009-11-15 23:12:43 +000021776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021777$as_echo "$ac_cv_c_volatile" >&6; }
21778if test $ac_cv_c_volatile = no; then
21779
cristy8b350f62009-11-15 23:12:43 +000021780$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021781
21782fi
21783
cristy8b350f62009-11-15 23:12:43 +000021784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021785$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021786if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021787 $as_echo_n "(cached) " >&6
21788else
cristy8b350f62009-11-15 23:12:43 +000021789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021790/* end confdefs.h. */
21791#define x(y) #y
21792
21793char *s = x(teststring);
21794_ACEOF
21795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021796 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021797 ac_cv_c_stringize=no
21798else
21799 ac_cv_c_stringize=yes
21800fi
21801rm -f conftest*
21802
21803fi
cristy8b350f62009-11-15 23:12:43 +000021804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021805$as_echo "$ac_cv_c_stringize" >&6; }
21806if test $ac_cv_c_stringize = yes; then
21807
cristy8b350f62009-11-15 23:12:43 +000021808$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021809
21810fi
21811
cristy8b350f62009-11-15 23:12:43 +000021812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021813$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021814if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021815 $as_echo_n "(cached) " >&6
21816else
cristy8b350f62009-11-15 23:12:43 +000021817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021818/* end confdefs.h. */
21819#include <sys/types.h>
21820#include <sys/stat.h>
21821
21822#if defined S_ISBLK && defined S_IFDIR
21823extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21824#endif
21825
21826#if defined S_ISBLK && defined S_IFCHR
21827extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21828#endif
21829
21830#if defined S_ISLNK && defined S_IFREG
21831extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21832#endif
21833
21834#if defined S_ISSOCK && defined S_IFREG
21835extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
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_header_stat_broken=no
21841else
cristy8b350f62009-11-15 23:12:43 +000021842 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021843fi
cristy3ed852e2009-09-05 21:47:34 +000021844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21845fi
cristy8b350f62009-11-15 23:12:43 +000021846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021847$as_echo "$ac_cv_header_stat_broken" >&6; }
21848if test $ac_cv_header_stat_broken = yes; then
21849
cristy8b350f62009-11-15 23:12:43 +000021850$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021851
21852fi
21853
cristy8b350f62009-11-15 23:12:43 +000021854{ $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 +000021855$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021856if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021857 $as_echo_n "(cached) " >&6
21858else
cristy8b350f62009-11-15 23:12:43 +000021859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021860/* end confdefs.h. */
21861#include <sys/types.h>
21862#include <sys/time.h>
21863#include <time.h>
21864
21865int
21866main ()
21867{
21868if ((struct tm *) 0)
21869return 0;
21870 ;
21871 return 0;
21872}
21873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021874if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021875 ac_cv_header_time=yes
21876else
cristy8b350f62009-11-15 23:12:43 +000021877 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021878fi
cristy3ed852e2009-09-05 21:47:34 +000021879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21880fi
cristy8b350f62009-11-15 23:12:43 +000021881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021882$as_echo "$ac_cv_header_time" >&6; }
21883if test $ac_cv_header_time = yes; then
21884
cristy8b350f62009-11-15 23:12:43 +000021885$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021886
21887fi
21888
cristy8b350f62009-11-15 23:12:43 +000021889{ $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 +000021890$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021891if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021892 $as_echo_n "(cached) " >&6
21893else
cristy8b350f62009-11-15 23:12:43 +000021894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021895/* end confdefs.h. */
21896#include <sys/types.h>
21897#include <time.h>
21898
21899int
21900main ()
21901{
21902struct tm tm;
21903 int *p = &tm.tm_sec;
21904 return !p;
21905 ;
21906 return 0;
21907}
21908_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021909if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021910 ac_cv_struct_tm=time.h
21911else
cristy8b350f62009-11-15 23:12:43 +000021912 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021913fi
cristy3ed852e2009-09-05 21:47:34 +000021914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21915fi
cristy8b350f62009-11-15 23:12:43 +000021916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021917$as_echo "$ac_cv_struct_tm" >&6; }
21918if test $ac_cv_struct_tm = sys/time.h; then
21919
cristy8b350f62009-11-15 23:12:43 +000021920$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021921
21922fi
21923
cristy92703d82010-04-26 00:18:18 +000021924ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21925#include <$ac_cv_struct_tm>
21926
21927"
cristyda16f162011-02-19 23:52:17 +000021928if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021929
21930cat >>confdefs.h <<_ACEOF
21931#define HAVE_STRUCT_TM_TM_ZONE 1
21932_ACEOF
21933
21934
21935fi
21936
21937if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21938
21939$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21940
21941else
21942 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21943"
cristyda16f162011-02-19 23:52:17 +000021944if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021945 ac_have_decl=1
21946else
21947 ac_have_decl=0
21948fi
21949
21950cat >>confdefs.h <<_ACEOF
21951#define HAVE_DECL_TZNAME $ac_have_decl
21952_ACEOF
21953
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21955$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021956if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021957 $as_echo_n "(cached) " >&6
21958else
21959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21960/* end confdefs.h. */
21961#include <time.h>
21962#if !HAVE_DECL_TZNAME
21963extern char *tzname[];
21964#endif
21965
21966int
21967main ()
21968{
21969return tzname[0][0];
21970 ;
21971 return 0;
21972}
21973_ACEOF
21974if ac_fn_c_try_link "$LINENO"; then :
21975 ac_cv_var_tzname=yes
21976else
21977 ac_cv_var_tzname=no
21978fi
21979rm -f core conftest.err conftest.$ac_objext \
21980 conftest$ac_exeext conftest.$ac_ext
21981fi
21982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21983$as_echo "$ac_cv_var_tzname" >&6; }
21984 if test $ac_cv_var_tzname = yes; then
21985
21986$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21987
21988 fi
21989fi
21990
cristy8b350f62009-11-15 23:12:43 +000021991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021992$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021993if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021994 $as_echo_n "(cached) " >&6
21995else
21996 echo '#! /bin/cat
21997exit 69
21998' >conftest
21999chmod u+x conftest
22000(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22001if test $? -ne 69; then
22002 ac_cv_sys_interpreter=yes
22003else
22004 ac_cv_sys_interpreter=no
22005fi
22006rm -f conftest
22007fi
cristy8b350f62009-11-15 23:12:43 +000022008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022009$as_echo "$ac_cv_sys_interpreter" >&6; }
22010interpval=$ac_cv_sys_interpreter
22011
22012
cristye80f9cb2013-01-09 01:09:31 +000022013#
22014# Checks for language qualifiers and semantics.
22015#
22016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22017$as_echo_n "checking whether char is unsigned... " >&6; }
22018if ${ac_cv_c_char_unsigned+:} false; then :
22019 $as_echo_n "(cached) " >&6
22020else
22021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22022/* end confdefs.h. */
22023$ac_includes_default
22024int
22025main ()
22026{
22027static int test_array [1 - 2 * !(((char) -1) < 0)];
22028test_array [0] = 0;
22029return test_array [0];
22030
22031 ;
22032 return 0;
22033}
22034_ACEOF
22035if ac_fn_c_try_compile "$LINENO"; then :
22036 ac_cv_c_char_unsigned=no
22037else
22038 ac_cv_c_char_unsigned=yes
22039fi
22040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22041fi
22042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22043$as_echo "$ac_cv_c_char_unsigned" >&6; }
22044if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22045 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22046
22047fi
22048
22049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22050$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22051if ${ac_cv_c_const+:} false; then :
22052 $as_echo_n "(cached) " >&6
22053else
22054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22055/* end confdefs.h. */
22056
22057int
22058main ()
22059{
22060
22061#ifndef __cplusplus
22062 /* Ultrix mips cc rejects this sort of thing. */
22063 typedef int charset[2];
22064 const charset cs = { 0, 0 };
22065 /* SunOS 4.1.1 cc rejects this. */
22066 char const *const *pcpcc;
22067 char **ppc;
22068 /* NEC SVR4.0.2 mips cc rejects this. */
22069 struct point {int x, y;};
22070 static struct point const zero = {0,0};
22071 /* AIX XL C 1.02.0.0 rejects this.
22072 It does not let you subtract one const X* pointer from another in
22073 an arm of an if-expression whose if-part is not a constant
22074 expression */
22075 const char *g = "string";
22076 pcpcc = &g + (g ? g-g : 0);
22077 /* HPUX 7.0 cc rejects these. */
22078 ++pcpcc;
22079 ppc = (char**) pcpcc;
22080 pcpcc = (char const *const *) ppc;
22081 { /* SCO 3.2v4 cc rejects this sort of thing. */
22082 char tx;
22083 char *t = &tx;
22084 char const *s = 0 ? (char *) 0 : (char const *) 0;
22085
22086 *t++ = 0;
22087 if (s) return 0;
22088 }
22089 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22090 int x[] = {25, 17};
22091 const int *foo = &x[0];
22092 ++foo;
22093 }
22094 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22095 typedef const int *iptr;
22096 iptr p = 0;
22097 ++p;
22098 }
22099 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22100 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22101 struct s { int j; const int *ap[3]; } bx;
22102 struct s *b = &bx; b->j = 5;
22103 }
22104 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22105 const int foo = 10;
22106 if (!foo) return 0;
22107 }
22108 return !cs[0] && !zero.x;
22109#endif
22110
22111 ;
22112 return 0;
22113}
22114_ACEOF
22115if ac_fn_c_try_compile "$LINENO"; then :
22116 ac_cv_c_const=yes
22117else
22118 ac_cv_c_const=no
22119fi
22120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121fi
22122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22123$as_echo "$ac_cv_c_const" >&6; }
22124if test $ac_cv_c_const = no; then
22125
22126$as_echo "#define const /**/" >>confdefs.h
22127
22128fi
22129
cristy8b350f62009-11-15 23:12:43 +000022130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022131$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022132if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022133 $as_echo_n "(cached) " >&6
22134else
22135 ac_cv_c_inline=no
22136for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022138/* end confdefs.h. */
22139#ifndef __cplusplus
22140typedef int foo_t;
22141static $ac_kw foo_t static_foo () {return 0; }
22142$ac_kw foo_t foo () {return 0; }
22143#endif
22144
22145_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022146if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022147 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022148fi
cristy3ed852e2009-09-05 21:47:34 +000022149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22150 test "$ac_cv_c_inline" != no && break
22151done
22152
22153fi
cristy8b350f62009-11-15 23:12:43 +000022154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022155$as_echo "$ac_cv_c_inline" >&6; }
22156
cristy3ed852e2009-09-05 21:47:34 +000022157case $ac_cv_c_inline in
22158 inline | yes) ;;
22159 *)
22160 case $ac_cv_c_inline in
22161 no) ac_val=;;
22162 *) ac_val=$ac_cv_c_inline;;
22163 esac
22164 cat >>confdefs.h <<_ACEOF
22165#ifndef __cplusplus
22166#define inline $ac_val
22167#endif
22168_ACEOF
22169 ;;
22170esac
22171
cristy8b350f62009-11-15 23:12:43 +000022172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022173$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022174if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022175 $as_echo_n "(cached) " >&6
22176else
22177 ac_cv_c_restrict=no
22178 # The order here caters to the fact that C++ does not require restrict.
22179 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022181/* end confdefs.h. */
22182typedef int * int_ptr;
22183 int foo (int_ptr $ac_kw ip) {
22184 return ip[0];
22185 }
22186int
22187main ()
22188{
22189int s[1];
22190 int * $ac_kw t = s;
22191 t[0] = 0;
22192 return foo(t)
22193 ;
22194 return 0;
22195}
22196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022197if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022198 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022199fi
cristy3ed852e2009-09-05 21:47:34 +000022200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22201 test "$ac_cv_c_restrict" != no && break
22202 done
22203
22204fi
cristy8b350f62009-11-15 23:12:43 +000022205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022206$as_echo "$ac_cv_c_restrict" >&6; }
22207
cristy3ed852e2009-09-05 21:47:34 +000022208 case $ac_cv_c_restrict in
22209 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022210 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022211 ;;
22212 *) cat >>confdefs.h <<_ACEOF
22213#define restrict $ac_cv_c_restrict
22214_ACEOF
22215 ;;
22216 esac
22217
cristye80f9cb2013-01-09 01:09:31 +000022218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22219$as_echo_n "checking for working volatile... " >&6; }
22220if ${ac_cv_c_volatile+:} false; then :
22221 $as_echo_n "(cached) " >&6
22222else
22223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22224/* end confdefs.h. */
22225
22226int
22227main ()
22228{
22229
22230volatile int x;
22231int * volatile y = (int *) 0;
22232return !x && !y;
22233 ;
22234 return 0;
22235}
22236_ACEOF
22237if ac_fn_c_try_compile "$LINENO"; then :
22238 ac_cv_c_volatile=yes
22239else
22240 ac_cv_c_volatile=no
22241fi
22242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22243fi
22244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22245$as_echo "$ac_cv_c_volatile" >&6; }
22246if test $ac_cv_c_volatile = no; then
22247
22248$as_echo "#define volatile /**/" >>confdefs.h
22249
22250fi
22251
cristy3ed852e2009-09-05 21:47:34 +000022252
22253# If words are stored with the most significant byte first (like
22254# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022256$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022257if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022258 $as_echo_n "(cached) " >&6
22259else
22260 ac_cv_c_bigendian=unknown
22261 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022263/* end confdefs.h. */
22264#ifndef __APPLE_CC__
22265 not a universal capable compiler
22266 #endif
22267 typedef int dummy;
22268
22269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022270if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022271
22272 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022273 # there are at least two -arch flags with different values.
22274 ac_arch=
22275 ac_prev=
22276 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22277 if test -n "$ac_prev"; then
22278 case $ac_word in
22279 i?86 | x86_64 | ppc | ppc64)
22280 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22281 ac_arch=$ac_word
22282 else
22283 ac_cv_c_bigendian=universal
22284 break
22285 fi
22286 ;;
22287 esac
22288 ac_prev=
22289 elif test "x$ac_word" = "x-arch"; then
22290 ac_prev=arch
22291 fi
22292 done
cristy3ed852e2009-09-05 21:47:34 +000022293fi
cristy3ed852e2009-09-05 21:47:34 +000022294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22295 if test $ac_cv_c_bigendian = unknown; then
22296 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022298/* end confdefs.h. */
22299#include <sys/types.h>
22300 #include <sys/param.h>
22301
22302int
22303main ()
22304{
22305#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22306 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22307 && LITTLE_ENDIAN)
22308 bogus endian macros
22309 #endif
22310
22311 ;
22312 return 0;
22313}
22314_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022315if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022316 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022318/* end confdefs.h. */
22319#include <sys/types.h>
22320 #include <sys/param.h>
22321
22322int
22323main ()
22324{
22325#if BYTE_ORDER != BIG_ENDIAN
22326 not big endian
22327 #endif
22328
22329 ;
22330 return 0;
22331}
22332_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022333if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022334 ac_cv_c_bigendian=yes
22335else
cristy8b350f62009-11-15 23:12:43 +000022336 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022337fi
cristy3ed852e2009-09-05 21:47:34 +000022338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022339fi
cristy3ed852e2009-09-05 21:47:34 +000022340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22341 fi
22342 if test $ac_cv_c_bigendian = unknown; then
22343 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022345/* end confdefs.h. */
22346#include <limits.h>
22347
22348int
22349main ()
22350{
22351#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22352 bogus endian macros
22353 #endif
22354
22355 ;
22356 return 0;
22357}
22358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022359if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022360 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022362/* end confdefs.h. */
22363#include <limits.h>
22364
22365int
22366main ()
22367{
22368#ifndef _BIG_ENDIAN
22369 not big endian
22370 #endif
22371
22372 ;
22373 return 0;
22374}
22375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022376if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022377 ac_cv_c_bigendian=yes
22378else
cristy8b350f62009-11-15 23:12:43 +000022379 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022380fi
cristy3ed852e2009-09-05 21:47:34 +000022381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022382fi
cristy3ed852e2009-09-05 21:47:34 +000022383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22384 fi
22385 if test $ac_cv_c_bigendian = unknown; then
22386 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022387 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022388 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022390/* end confdefs.h. */
22391short int ascii_mm[] =
22392 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22393 short int ascii_ii[] =
22394 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22395 int use_ascii (int i) {
22396 return ascii_mm[i] + ascii_ii[i];
22397 }
22398 short int ebcdic_ii[] =
22399 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22400 short int ebcdic_mm[] =
22401 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22402 int use_ebcdic (int i) {
22403 return ebcdic_mm[i] + ebcdic_ii[i];
22404 }
22405 extern int foo;
22406
22407int
22408main ()
22409{
22410return use_ascii (foo) == use_ebcdic (foo);
22411 ;
22412 return 0;
22413}
22414_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022415if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022416 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22417 ac_cv_c_bigendian=yes
22418 fi
22419 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22420 if test "$ac_cv_c_bigendian" = unknown; then
22421 ac_cv_c_bigendian=no
22422 else
22423 # finding both strings is unlikely to happen, but who knows?
22424 ac_cv_c_bigendian=unknown
22425 fi
22426 fi
cristy3ed852e2009-09-05 21:47:34 +000022427fi
cristy3ed852e2009-09-05 21:47:34 +000022428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22429else
cristy8b350f62009-11-15 23:12:43 +000022430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022431/* end confdefs.h. */
22432$ac_includes_default
22433int
22434main ()
22435{
22436
22437 /* Are we little or big endian? From Harbison&Steele. */
22438 union
22439 {
22440 long int l;
22441 char c[sizeof (long int)];
22442 } u;
22443 u.l = 1;
22444 return u.c[sizeof (long int) - 1] == 1;
22445
22446 ;
22447 return 0;
22448}
22449_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022450if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022451 ac_cv_c_bigendian=no
22452else
cristy8b350f62009-11-15 23:12:43 +000022453 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022454fi
cristy8b350f62009-11-15 23:12:43 +000022455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22456 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022457fi
22458
cristy3ed852e2009-09-05 21:47:34 +000022459 fi
22460fi
cristy8b350f62009-11-15 23:12:43 +000022461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022462$as_echo "$ac_cv_c_bigendian" >&6; }
22463 case $ac_cv_c_bigendian in #(
22464 yes)
cristy8b350f62009-11-15 23:12:43 +000022465 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022466;; #(
22467 no)
22468 ;; #(
22469 universal)
22470
cristy8b350f62009-11-15 23:12:43 +000022471$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022472
22473 ;; #(
22474 *)
cristy98dddb52010-11-04 00:30:15 +000022475 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022476 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022477 esac
22478
22479
cristy501c8042011-05-26 17:46:28 +000022480# Define to a suitable type, if standard headers do not define it.
22481ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22482case $ac_cv_c_int8_t in #(
22483 no|yes) ;; #(
22484 *)
cristy3ed852e2009-09-05 21:47:34 +000022485
22486cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022487#define int8_t $ac_cv_c_int8_t
22488_ACEOF
22489;;
22490esac
22491
22492ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22493case $ac_cv_c_int16_t in #(
22494 no|yes) ;; #(
22495 *)
22496
22497cat >>confdefs.h <<_ACEOF
22498#define int16_t $ac_cv_c_int16_t
22499_ACEOF
22500;;
22501esac
22502
22503ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22504case $ac_cv_c_int32_t in #(
22505 no|yes) ;; #(
22506 *)
22507
22508cat >>confdefs.h <<_ACEOF
22509#define int32_t $ac_cv_c_int32_t
22510_ACEOF
22511;;
22512esac
22513
22514ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22515case $ac_cv_c_int64_t in #(
22516 no|yes) ;; #(
22517 *)
22518
22519cat >>confdefs.h <<_ACEOF
22520#define int64_t $ac_cv_c_int64_t
22521_ACEOF
22522;;
22523esac
22524
22525
cristybdabdd62013-03-04 17:43:36 +000022526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22527$as_echo_n "checking for long long int... " >&6; }
22528if ${ac_cv_type_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022529 $as_echo_n "(cached) " >&6
22530else
cristybdabdd62013-03-04 17:43:36 +000022531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022532/* end confdefs.h. */
22533
22534 /* For now, do not test the preprocessor; as of 2007 there are too many
cristybdabdd62013-03-04 17:43:36 +000022535 implementations with broken preprocessors. Perhaps this can
22536 be revisited in 2012. In the meantime, code should not expect
22537 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022538 /* Test literals. */
22539 long long int ll = 9223372036854775807ll;
22540 long long int nll = -9223372036854775807LL;
22541 unsigned long long int ull = 18446744073709551615ULL;
22542 /* Test constant expressions. */
22543 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristybdabdd62013-03-04 17:43:36 +000022544 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022545 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristybdabdd62013-03-04 17:43:36 +000022546 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022547 int i = 63;
22548int
22549main ()
22550{
22551/* Test availability of runtime routines for shift and division. */
22552 long long int llmax = 9223372036854775807ll;
22553 unsigned long long int ullmax = 18446744073709551615ull;
22554 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristybdabdd62013-03-04 17:43:36 +000022555 | (llmax / ll) | (llmax % ll)
22556 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22557 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022558 ;
22559 return 0;
22560}
22561
22562_ACEOF
22563if ac_fn_c_try_link "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000022564 if test "$cross_compiling" = yes; then :
cristy501c8042011-05-26 17:46:28 +000022565 ac_cv_type_long_long_int=yes
22566else
22567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22568/* end confdefs.h. */
22569#include <limits.h>
cristybdabdd62013-03-04 17:43:36 +000022570 #ifndef LLONG_MAX
22571 # define HALF \
22572 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22573 # define LLONG_MAX (HALF - 1 + HALF)
22574 #endif
cristy501c8042011-05-26 17:46:28 +000022575int
22576main ()
22577{
22578long long int n = 1;
cristybdabdd62013-03-04 17:43:36 +000022579 int i;
22580 for (i = 0; ; i++)
22581 {
22582 long long int m = n << i;
22583 if (m >> i != n)
22584 return 1;
22585 if (LLONG_MAX / 2 < m)
22586 break;
22587 }
22588 return 0;
cristy501c8042011-05-26 17:46:28 +000022589 ;
22590 return 0;
22591}
22592_ACEOF
22593if ac_fn_c_try_run "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000022594 ac_cv_type_long_long_int=yes
cristy501c8042011-05-26 17:46:28 +000022595else
22596 ac_cv_type_long_long_int=no
22597fi
22598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22599 conftest.$ac_objext conftest.beam conftest.$ac_ext
22600fi
22601
cristybdabdd62013-03-04 17:43:36 +000022602else
22603 ac_cv_type_long_long_int=no
22604fi
22605rm -f core conftest.err conftest.$ac_objext \
22606 conftest$ac_exeext conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022607fi
22608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22609$as_echo "$ac_cv_type_long_long_int" >&6; }
22610 if test $ac_cv_type_long_long_int = yes; then
22611
22612$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22613
22614 fi
22615
22616
22617
22618 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22619if test "x$ac_cv_type_intmax_t" = xyes; then :
22620
22621$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22622
22623else
22624 test $ac_cv_type_long_long_int = yes \
22625 && ac_type='long long int' \
22626 || ac_type='long int'
22627
22628cat >>confdefs.h <<_ACEOF
22629#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022630_ACEOF
22631
22632fi
22633
22634
cristy501c8042011-05-26 17:46:28 +000022635
22636 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22637if test "x$ac_cv_type_intptr_t" = xyes; then :
22638
22639$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022640
cristy3ed852e2009-09-05 21:47:34 +000022641else
cristy501c8042011-05-26 17:46:28 +000022642 for ac_type in 'int' 'long int' 'long long int'; do
22643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644/* end confdefs.h. */
22645$ac_includes_default
22646int
22647main ()
22648{
22649static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022650test_array [0] = 0;
22651return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022652
22653 ;
22654 return 0;
22655}
22656_ACEOF
22657if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022658
22659cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022660#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022661_ACEOF
22662
cristy501c8042011-05-26 17:46:28 +000022663 ac_type=
22664fi
22665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22666 test -z "$ac_type" && break
22667 done
cristy3ed852e2009-09-05 21:47:34 +000022668fi
22669
22670
cristy3ed852e2009-09-05 21:47:34 +000022671
cristy501c8042011-05-26 17:46:28 +000022672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22673$as_echo_n "checking for long double... " >&6; }
22674if ${ac_cv_type_long_double+:} false; then :
22675 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022676else
cristy501c8042011-05-26 17:46:28 +000022677 if test "$GCC" = yes; then
22678 ac_cv_type_long_double=yes
22679 else
22680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22681/* end confdefs.h. */
22682/* The Stardent Vistra knows sizeof (long double), but does
22683 not support it. */
22684 long double foo = 0.0L;
22685int
22686main ()
22687{
22688static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22689 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022690test_array [0] = 0;
22691return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022692
cristy501c8042011-05-26 17:46:28 +000022693 ;
22694 return 0;
22695}
cristy3ed852e2009-09-05 21:47:34 +000022696_ACEOF
cristy501c8042011-05-26 17:46:28 +000022697if ac_fn_c_try_compile "$LINENO"; then :
22698 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022699else
cristy501c8042011-05-26 17:46:28 +000022700 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022701fi
cristy501c8042011-05-26 17:46:28 +000022702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22703 fi
cristy3ed852e2009-09-05 21:47:34 +000022704fi
cristy501c8042011-05-26 17:46:28 +000022705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22706$as_echo "$ac_cv_type_long_double" >&6; }
22707 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022708
cristy501c8042011-05-26 17:46:28 +000022709$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022710
cristy501c8042011-05-26 17:46:28 +000022711 fi
22712
cristy3ed852e2009-09-05 21:47:34 +000022713
cristy8b350f62009-11-15 23:12:43 +000022714 { $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 +000022715$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022716if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022717 $as_echo_n "(cached) " >&6
22718else
cristy8b350f62009-11-15 23:12:43 +000022719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022720/* end confdefs.h. */
22721#include <float.h>
22722 long double const a[] =
22723 {
22724 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22725 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22726 };
22727 long double
22728 f (long double x)
22729 {
22730 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22731 + (x ? f (x) : 'c'));
22732 }
22733
22734int
22735main ()
22736{
22737static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22738 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22739 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22740 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22741 && (int) LDBL_EPSILON == 0
22742 )];
cristy14fefe52012-05-21 00:59:18 +000022743test_array [0] = 0;
22744return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022745
22746 ;
22747 return 0;
22748}
22749_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022750if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022751 ac_cv_type_long_double_wider=yes
22752else
cristy8b350f62009-11-15 23:12:43 +000022753 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022754fi
cristy3ed852e2009-09-05 21:47:34 +000022755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22756fi
cristy8b350f62009-11-15 23:12:43 +000022757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022758$as_echo "$ac_cv_type_long_double_wider" >&6; }
22759 if test $ac_cv_type_long_double_wider = yes; then
22760
cristy8b350f62009-11-15 23:12:43 +000022761$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022762
22763 fi
22764
22765
cristy501c8042011-05-26 17:46:28 +000022766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22767$as_echo_n "checking for long long int... " >&6; }
22768if ${ac_cv_type_long_long_int+:} false; then :
22769 $as_echo_n "(cached) " >&6
22770else
cristybdabdd62013-03-04 17:43:36 +000022771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22772/* end confdefs.h. */
22773
22774 /* For now, do not test the preprocessor; as of 2007 there are too many
22775 implementations with broken preprocessors. Perhaps this can
22776 be revisited in 2012. In the meantime, code should not expect
22777 #if to work with literals wider than 32 bits. */
22778 /* Test literals. */
22779 long long int ll = 9223372036854775807ll;
22780 long long int nll = -9223372036854775807LL;
22781 unsigned long long int ull = 18446744073709551615ULL;
22782 /* Test constant expressions. */
22783 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22784 ? 1 : -1)];
22785 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22786 ? 1 : -1)];
22787 int i = 63;
22788int
22789main ()
22790{
22791/* Test availability of runtime routines for shift and division. */
22792 long long int llmax = 9223372036854775807ll;
22793 unsigned long long int ullmax = 18446744073709551615ull;
22794 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22795 | (llmax / ll) | (llmax % ll)
22796 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22797 | (ullmax / ull) | (ullmax % ull));
22798 ;
22799 return 0;
22800}
22801
22802_ACEOF
22803if ac_fn_c_try_link "$LINENO"; then :
22804 if test "$cross_compiling" = yes; then :
cristy501c8042011-05-26 17:46:28 +000022805 ac_cv_type_long_long_int=yes
22806else
22807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22808/* end confdefs.h. */
22809#include <limits.h>
cristybdabdd62013-03-04 17:43:36 +000022810 #ifndef LLONG_MAX
22811 # define HALF \
22812 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22813 # define LLONG_MAX (HALF - 1 + HALF)
22814 #endif
cristy501c8042011-05-26 17:46:28 +000022815int
22816main ()
22817{
22818long long int n = 1;
cristybdabdd62013-03-04 17:43:36 +000022819 int i;
22820 for (i = 0; ; i++)
22821 {
22822 long long int m = n << i;
22823 if (m >> i != n)
22824 return 1;
22825 if (LLONG_MAX / 2 < m)
22826 break;
22827 }
22828 return 0;
cristy501c8042011-05-26 17:46:28 +000022829 ;
22830 return 0;
22831}
22832_ACEOF
22833if ac_fn_c_try_run "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000022834 ac_cv_type_long_long_int=yes
cristy501c8042011-05-26 17:46:28 +000022835else
22836 ac_cv_type_long_long_int=no
22837fi
22838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22839 conftest.$ac_objext conftest.beam conftest.$ac_ext
22840fi
22841
cristybdabdd62013-03-04 17:43:36 +000022842else
22843 ac_cv_type_long_long_int=no
22844fi
22845rm -f core conftest.err conftest.$ac_objext \
22846 conftest$ac_exeext conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022847fi
22848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22849$as_echo "$ac_cv_type_long_long_int" >&6; }
22850 if test $ac_cv_type_long_long_int = yes; then
22851
22852$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22853
22854 fi
22855
22856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22857$as_echo_n "checking for mbstate_t... " >&6; }
22858if ${ac_cv_type_mbstate_t+:} false; then :
22859 $as_echo_n "(cached) " >&6
22860else
22861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22862/* end confdefs.h. */
22863$ac_includes_default
22864# include <wchar.h>
22865int
22866main ()
22867{
22868mbstate_t x; return sizeof x;
22869 ;
22870 return 0;
22871}
22872_ACEOF
22873if ac_fn_c_try_compile "$LINENO"; then :
22874 ac_cv_type_mbstate_t=yes
22875else
22876 ac_cv_type_mbstate_t=no
22877fi
22878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22879fi
22880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22881$as_echo "$ac_cv_type_mbstate_t" >&6; }
22882 if test $ac_cv_type_mbstate_t = yes; then
22883
22884$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22885
22886 else
22887
22888$as_echo "#define mbstate_t int" >>confdefs.h
22889
22890 fi
22891ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22892if test "x$ac_cv_type_mode_t" = xyes; then :
22893
22894else
22895
22896cat >>confdefs.h <<_ACEOF
22897#define mode_t int
22898_ACEOF
22899
22900fi
22901
22902ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22903if test "x$ac_cv_type_off_t" = xyes; then :
22904
22905else
22906
22907cat >>confdefs.h <<_ACEOF
22908#define off_t long int
22909_ACEOF
22910
22911fi
22912
22913ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22914if test "x$ac_cv_type_pid_t" = xyes; then :
22915
22916else
22917
22918cat >>confdefs.h <<_ACEOF
22919#define pid_t int
22920_ACEOF
22921
22922fi
22923
22924ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22925if test "x$ac_cv_type_size_t" = xyes; then :
22926
22927else
22928
22929cat >>confdefs.h <<_ACEOF
22930#define size_t unsigned int
22931_ACEOF
22932
22933fi
22934
22935ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22936if test "x$ac_cv_type_ssize_t" = xyes; then :
22937
22938else
22939
22940cat >>confdefs.h <<_ACEOF
22941#define ssize_t int
22942_ACEOF
22943
22944fi
22945
22946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22947$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22948if ${ac_cv_type_uid_t+:} false; then :
22949 $as_echo_n "(cached) " >&6
22950else
22951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22952/* end confdefs.h. */
22953#include <sys/types.h>
22954
22955_ACEOF
22956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22957 $EGREP "uid_t" >/dev/null 2>&1; then :
22958 ac_cv_type_uid_t=yes
22959else
22960 ac_cv_type_uid_t=no
22961fi
22962rm -f conftest*
22963
22964fi
22965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22966$as_echo "$ac_cv_type_uid_t" >&6; }
22967if test $ac_cv_type_uid_t = no; then
22968
22969$as_echo "#define uid_t int" >>confdefs.h
22970
22971
22972$as_echo "#define gid_t int" >>confdefs.h
22973
22974fi
22975
22976ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22977case $ac_cv_c_uint8_t in #(
22978 no|yes) ;; #(
22979 *)
22980
22981$as_echo "#define _UINT8_T 1" >>confdefs.h
22982
22983
22984cat >>confdefs.h <<_ACEOF
22985#define uint8_t $ac_cv_c_uint8_t
22986_ACEOF
22987;;
22988 esac
22989
22990ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22991case $ac_cv_c_uint16_t in #(
22992 no|yes) ;; #(
22993 *)
22994
22995
22996cat >>confdefs.h <<_ACEOF
22997#define uint16_t $ac_cv_c_uint16_t
22998_ACEOF
22999;;
23000 esac
23001
23002ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23003case $ac_cv_c_uint32_t in #(
23004 no|yes) ;; #(
23005 *)
23006
23007$as_echo "#define _UINT32_T 1" >>confdefs.h
23008
23009
23010cat >>confdefs.h <<_ACEOF
23011#define uint32_t $ac_cv_c_uint32_t
23012_ACEOF
23013;;
23014 esac
23015
23016ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23017case $ac_cv_c_uint64_t in #(
23018 no|yes) ;; #(
23019 *)
23020
23021$as_echo "#define _UINT64_T 1" >>confdefs.h
23022
23023
23024cat >>confdefs.h <<_ACEOF
23025#define uint64_t $ac_cv_c_uint64_t
23026_ACEOF
23027;;
23028 esac
23029
23030
cristybdabdd62013-03-04 17:43:36 +000023031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23032$as_echo_n "checking for unsigned long long int... " >&6; }
23033if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23034 $as_echo_n "(cached) " >&6
23035else
23036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23037/* end confdefs.h. */
23038
23039 /* For now, do not test the preprocessor; as of 2007 there are too many
23040 implementations with broken preprocessors. Perhaps this can
23041 be revisited in 2012. In the meantime, code should not expect
23042 #if to work with literals wider than 32 bits. */
23043 /* Test literals. */
23044 long long int ll = 9223372036854775807ll;
23045 long long int nll = -9223372036854775807LL;
23046 unsigned long long int ull = 18446744073709551615ULL;
23047 /* Test constant expressions. */
23048 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23049 ? 1 : -1)];
23050 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23051 ? 1 : -1)];
23052 int i = 63;
23053int
23054main ()
23055{
23056/* Test availability of runtime routines for shift and division. */
23057 long long int llmax = 9223372036854775807ll;
23058 unsigned long long int ullmax = 18446744073709551615ull;
23059 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23060 | (llmax / ll) | (llmax % ll)
23061 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23062 | (ullmax / ull) | (ullmax % ull));
23063 ;
23064 return 0;
23065}
23066
23067_ACEOF
23068if ac_fn_c_try_link "$LINENO"; then :
23069 ac_cv_type_unsigned_long_long_int=yes
23070else
23071 ac_cv_type_unsigned_long_long_int=no
23072fi
23073rm -f core conftest.err conftest.$ac_objext \
23074 conftest$ac_exeext conftest.$ac_ext
23075fi
23076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23077$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23078 if test $ac_cv_type_unsigned_long_long_int = yes; then
23079
23080$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23081
23082 fi
23083
23084
cristy501c8042011-05-26 17:46:28 +000023085
23086 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23087if test "x$ac_cv_type_uintmax_t" = xyes; then :
23088
23089$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23090
23091else
23092 test $ac_cv_type_unsigned_long_long_int = yes \
23093 && ac_type='unsigned long long int' \
23094 || ac_type='unsigned long int'
23095
23096cat >>confdefs.h <<_ACEOF
23097#define uintmax_t $ac_type
23098_ACEOF
23099
23100fi
23101
23102
23103
23104 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23105if test "x$ac_cv_type_uintptr_t" = xyes; then :
23106
23107$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23108
23109else
23110 for ac_type in 'unsigned int' 'unsigned long int' \
23111 'unsigned long long int'; do
23112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23113/* end confdefs.h. */
23114$ac_includes_default
23115int
23116main ()
23117{
23118static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023119test_array [0] = 0;
23120return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023121
23122 ;
23123 return 0;
23124}
23125_ACEOF
23126if ac_fn_c_try_compile "$LINENO"; then :
23127
23128cat >>confdefs.h <<_ACEOF
23129#define uintptr_t $ac_type
23130_ACEOF
23131
23132 ac_type=
23133fi
23134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23135 test -z "$ac_type" && break
23136 done
23137fi
23138
23139
23140
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23142$as_echo_n "checking for unsigned long long int... " >&6; }
23143if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23144 $as_echo_n "(cached) " >&6
23145else
cristybdabdd62013-03-04 17:43:36 +000023146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023147/* end confdefs.h. */
23148
23149 /* For now, do not test the preprocessor; as of 2007 there are too many
cristybdabdd62013-03-04 17:43:36 +000023150 implementations with broken preprocessors. Perhaps this can
23151 be revisited in 2012. In the meantime, code should not expect
23152 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023153 /* Test literals. */
23154 long long int ll = 9223372036854775807ll;
23155 long long int nll = -9223372036854775807LL;
23156 unsigned long long int ull = 18446744073709551615ULL;
23157 /* Test constant expressions. */
23158 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristybdabdd62013-03-04 17:43:36 +000023159 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023160 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristybdabdd62013-03-04 17:43:36 +000023161 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023162 int i = 63;
23163int
23164main ()
23165{
23166/* Test availability of runtime routines for shift and division. */
23167 long long int llmax = 9223372036854775807ll;
23168 unsigned long long int ullmax = 18446744073709551615ull;
23169 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristybdabdd62013-03-04 17:43:36 +000023170 | (llmax / ll) | (llmax % ll)
23171 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23172 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023173 ;
23174 return 0;
23175}
23176
23177_ACEOF
23178if ac_fn_c_try_link "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000023179 ac_cv_type_unsigned_long_long_int=yes
cristy501c8042011-05-26 17:46:28 +000023180else
23181 ac_cv_type_unsigned_long_long_int=no
23182fi
23183rm -f core conftest.err conftest.$ac_objext \
23184 conftest$ac_exeext conftest.$ac_ext
23185fi
23186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23187$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23188 if test $ac_cv_type_unsigned_long_long_int = yes; then
23189
23190$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23191
23192 fi
23193
23194
cristy9b86f202012-11-28 21:55:35 +000023195# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000023196ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23197"
23198if test "x$ac_cv_type_float_t" = xyes; then :
23199
23200cat >>confdefs.h <<_ACEOF
23201#define HAVE_FLOAT_T 1
23202_ACEOF
23203
23204
23205fi
23206
23207ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23208"
23209if test "x$ac_cv_type_double_t" = xyes; then :
23210
23211cat >>confdefs.h <<_ACEOF
23212#define HAVE_DOUBLE_T 1
23213_ACEOF
23214
23215
23216fi
23217
cristy9b86f202012-11-28 21:55:35 +000023218# The cast to long int works around a bug in the HP C Compiler
23219# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23220# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23221# This bug is HP SR number 8606223364.
23222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23223$as_echo_n "checking size of float_t... " >&6; }
23224if ${ac_cv_sizeof_float_t+:} false; then :
23225 $as_echo_n "(cached) " >&6
23226else
23227 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23228"; then :
23229
23230else
23231 if test "$ac_cv_type_float_t" = yes; then
23232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23234as_fn_error 77 "cannot compute sizeof (float_t)
23235See \`config.log' for more details" "$LINENO" 5; }
23236 else
23237 ac_cv_sizeof_float_t=0
23238 fi
23239fi
23240
23241fi
23242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23243$as_echo "$ac_cv_sizeof_float_t" >&6; }
23244
23245
23246
23247cat >>confdefs.h <<_ACEOF
23248#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23249_ACEOF
23250
23251
23252# The cast to long int works around a bug in the HP C Compiler
23253# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23254# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23255# This bug is HP SR number 8606223364.
23256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23257$as_echo_n "checking size of double_t... " >&6; }
23258if ${ac_cv_sizeof_double_t+:} false; then :
23259 $as_echo_n "(cached) " >&6
23260else
23261 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23262"; then :
23263
23264else
23265 if test "$ac_cv_type_double_t" = yes; then
23266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23268as_fn_error 77 "cannot compute sizeof (double_t)
23269See \`config.log' for more details" "$LINENO" 5; }
23270 else
23271 ac_cv_sizeof_double_t=0
23272 fi
23273fi
23274
23275fi
23276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23277$as_echo "$ac_cv_sizeof_double_t" >&6; }
23278
23279
23280
23281cat >>confdefs.h <<_ACEOF
23282#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23283_ACEOF
23284
23285
23286
23287# Get size of float, double and long double for comparaison.
23288# The cast to long int works around a bug in the HP C Compiler
23289# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23290# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23291# This bug is HP SR number 8606223364.
23292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23293$as_echo_n "checking size of float... " >&6; }
23294if ${ac_cv_sizeof_float+:} false; then :
23295 $as_echo_n "(cached) " >&6
23296else
23297 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23298
23299else
23300 if test "$ac_cv_type_float" = yes; then
23301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23303as_fn_error 77 "cannot compute sizeof (float)
23304See \`config.log' for more details" "$LINENO" 5; }
23305 else
23306 ac_cv_sizeof_float=0
23307 fi
23308fi
23309
23310fi
23311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23312$as_echo "$ac_cv_sizeof_float" >&6; }
23313
23314
23315
23316cat >>confdefs.h <<_ACEOF
23317#define SIZEOF_FLOAT $ac_cv_sizeof_float
23318_ACEOF
23319
23320
23321# The cast to long int works around a bug in the HP C Compiler
23322# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23323# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23324# This bug is HP SR number 8606223364.
23325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23326$as_echo_n "checking size of double... " >&6; }
23327if ${ac_cv_sizeof_double+:} false; then :
23328 $as_echo_n "(cached) " >&6
23329else
23330 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23331
23332else
23333 if test "$ac_cv_type_double" = yes; then
23334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23336as_fn_error 77 "cannot compute sizeof (double)
23337See \`config.log' for more details" "$LINENO" 5; }
23338 else
23339 ac_cv_sizeof_double=0
23340 fi
23341fi
23342
23343fi
23344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23345$as_echo "$ac_cv_sizeof_double" >&6; }
23346
23347
23348
23349cat >>confdefs.h <<_ACEOF
23350#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23351_ACEOF
23352
23353
23354# The cast to long int works around a bug in the HP C Compiler
23355# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23356# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23357# This bug is HP SR number 8606223364.
23358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23359$as_echo_n "checking size of long double... " >&6; }
23360if ${ac_cv_sizeof_long_double+:} false; then :
23361 $as_echo_n "(cached) " >&6
23362else
23363 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23364
23365else
23366 if test "$ac_cv_type_long_double" = yes; then
23367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23369as_fn_error 77 "cannot compute sizeof (long double)
23370See \`config.log' for more details" "$LINENO" 5; }
23371 else
23372 ac_cv_sizeof_long_double=0
23373 fi
23374fi
23375
23376fi
23377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23378$as_echo "$ac_cv_sizeof_long_double" >&6; }
23379
23380
23381
23382cat >>confdefs.h <<_ACEOF
23383#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23384_ACEOF
23385
23386
cristyf0cf9a22012-10-24 12:05:01 +000023387
cristy3ed852e2009-09-05 21:47:34 +000023388# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23389# The cast to long int works around a bug in the HP C Compiler
23390# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23391# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23392# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023394$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023395if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023396 $as_echo_n "(cached) " >&6
23397else
cristy8b350f62009-11-15 23:12:43 +000023398 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 +000023399
cristy3ed852e2009-09-05 21:47:34 +000023400else
cristy8b350f62009-11-15 23:12:43 +000023401 if test "$ac_cv_type_signed_short" = yes; then
23402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023404as_fn_error 77 "cannot compute sizeof (signed short)
23405See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023406 else
23407 ac_cv_sizeof_signed_short=0
23408 fi
23409fi
cristy8b350f62009-11-15 23:12:43 +000023410
cristy3ed852e2009-09-05 21:47:34 +000023411fi
cristy8b350f62009-11-15 23:12:43 +000023412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023413$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23414
23415
23416
23417cat >>confdefs.h <<_ACEOF
23418#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23419_ACEOF
23420
23421
23422
23423# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23424# The cast to long int works around a bug in the HP C Compiler
23425# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23426# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23427# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023429$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023430if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023431 $as_echo_n "(cached) " >&6
23432else
cristy8b350f62009-11-15 23:12:43 +000023433 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 +000023434
cristy3ed852e2009-09-05 21:47:34 +000023435else
cristy8b350f62009-11-15 23:12:43 +000023436 if test "$ac_cv_type_unsigned_short" = yes; then
23437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023439as_fn_error 77 "cannot compute sizeof (unsigned short)
23440See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023441 else
23442 ac_cv_sizeof_unsigned_short=0
23443 fi
23444fi
cristy8b350f62009-11-15 23:12:43 +000023445
cristy3ed852e2009-09-05 21:47:34 +000023446fi
cristy8b350f62009-11-15 23:12:43 +000023447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023448$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23449
23450
23451
23452cat >>confdefs.h <<_ACEOF
23453#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23454_ACEOF
23455
23456
23457
23458# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23459# The cast to long int works around a bug in the HP C Compiler
23460# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23461# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23462# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023464$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023465if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023466 $as_echo_n "(cached) " >&6
23467else
cristy8b350f62009-11-15 23:12:43 +000023468 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 +000023469
cristy3ed852e2009-09-05 21:47:34 +000023470else
cristy8b350f62009-11-15 23:12:43 +000023471 if test "$ac_cv_type_signed_int" = yes; then
23472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023474as_fn_error 77 "cannot compute sizeof (signed int)
23475See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023476 else
23477 ac_cv_sizeof_signed_int=0
23478 fi
23479fi
cristy8b350f62009-11-15 23:12:43 +000023480
cristy3ed852e2009-09-05 21:47:34 +000023481fi
cristy8b350f62009-11-15 23:12:43 +000023482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023483$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23484
23485
23486
23487cat >>confdefs.h <<_ACEOF
23488#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23489_ACEOF
23490
23491
23492
23493# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23494# The cast to long int works around a bug in the HP C Compiler
23495# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23496# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23497# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023499$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023500if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023501 $as_echo_n "(cached) " >&6
23502else
cristy8b350f62009-11-15 23:12:43 +000023503 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 +000023504
cristy3ed852e2009-09-05 21:47:34 +000023505else
cristy8b350f62009-11-15 23:12:43 +000023506 if test "$ac_cv_type_unsigned_int" = yes; then
23507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023509as_fn_error 77 "cannot compute sizeof (unsigned int)
23510See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023511 else
23512 ac_cv_sizeof_unsigned_int=0
23513 fi
23514fi
cristy8b350f62009-11-15 23:12:43 +000023515
cristy3ed852e2009-09-05 21:47:34 +000023516fi
cristy8b350f62009-11-15 23:12:43 +000023517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023518$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23519
23520
23521
23522cat >>confdefs.h <<_ACEOF
23523#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23524_ACEOF
23525
23526
23527
23528# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23529# The cast to long int works around a bug in the HP C Compiler
23530# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23531# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23532# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023534$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023535if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023536 $as_echo_n "(cached) " >&6
23537else
cristy8b350f62009-11-15 23:12:43 +000023538 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 +000023539
cristy3ed852e2009-09-05 21:47:34 +000023540else
cristy8b350f62009-11-15 23:12:43 +000023541 if test "$ac_cv_type_signed_long" = yes; then
23542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023544as_fn_error 77 "cannot compute sizeof (signed long)
23545See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023546 else
23547 ac_cv_sizeof_signed_long=0
23548 fi
23549fi
cristy8b350f62009-11-15 23:12:43 +000023550
cristy3ed852e2009-09-05 21:47:34 +000023551fi
cristy8b350f62009-11-15 23:12:43 +000023552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023553$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23554
23555
23556
23557cat >>confdefs.h <<_ACEOF
23558#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23559_ACEOF
23560
23561
23562
23563# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23564# The cast to long int works around a bug in the HP C Compiler
23565# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23566# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23567# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023569$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023570if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023571 $as_echo_n "(cached) " >&6
23572else
cristy8b350f62009-11-15 23:12:43 +000023573 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 +000023574
cristy3ed852e2009-09-05 21:47:34 +000023575else
cristy8b350f62009-11-15 23:12:43 +000023576 if test "$ac_cv_type_unsigned_long" = yes; then
23577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023579as_fn_error 77 "cannot compute sizeof (unsigned long)
23580See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023581 else
23582 ac_cv_sizeof_unsigned_long=0
23583 fi
23584fi
cristy8b350f62009-11-15 23:12:43 +000023585
cristy3ed852e2009-09-05 21:47:34 +000023586fi
cristy8b350f62009-11-15 23:12:43 +000023587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023588$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23589
23590
23591
23592cat >>confdefs.h <<_ACEOF
23593#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23594_ACEOF
23595
23596
23597
23598# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23599# 'signed long long' is not supported then the value defined is zero.
23600# The cast to long int works around a bug in the HP C Compiler
23601# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23602# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23603# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023605$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023606if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023607 $as_echo_n "(cached) " >&6
23608else
cristy8b350f62009-11-15 23:12:43 +000023609 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 +000023610
cristy3ed852e2009-09-05 21:47:34 +000023611else
cristy8b350f62009-11-15 23:12:43 +000023612 if test "$ac_cv_type_signed_long_long" = yes; then
23613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023615as_fn_error 77 "cannot compute sizeof (signed long long)
23616See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023617 else
23618 ac_cv_sizeof_signed_long_long=0
23619 fi
23620fi
cristy8b350f62009-11-15 23:12:43 +000023621
cristy3ed852e2009-09-05 21:47:34 +000023622fi
cristy8b350f62009-11-15 23:12:43 +000023623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023624$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23625
23626
23627
23628cat >>confdefs.h <<_ACEOF
23629#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23630_ACEOF
23631
23632
23633
23634# Obtain size of a 'unsigned long long' and define as
23635# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23636# supported then the value defined is zero.
23637# The cast to long int works around a bug in the HP C Compiler
23638# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23639# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23640# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023642$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023643if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023644 $as_echo_n "(cached) " >&6
23645else
cristy8b350f62009-11-15 23:12:43 +000023646 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 +000023647
cristy3ed852e2009-09-05 21:47:34 +000023648else
cristy8b350f62009-11-15 23:12:43 +000023649 if test "$ac_cv_type_unsigned_long_long" = yes; then
23650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023652as_fn_error 77 "cannot compute sizeof (unsigned long long)
23653See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023654 else
23655 ac_cv_sizeof_unsigned_long_long=0
23656 fi
23657fi
cristy8b350f62009-11-15 23:12:43 +000023658
cristy3ed852e2009-09-05 21:47:34 +000023659fi
cristy8b350f62009-11-15 23:12:43 +000023660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023661$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23662
23663
23664
23665cat >>confdefs.h <<_ACEOF
23666#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23667_ACEOF
23668
23669
23670
23671# Obtain size of off_t and define as SIZEOF_OFF_T
23672# The cast to long int works around a bug in the HP C Compiler
23673# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23674# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23675# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023677$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023678if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023679 $as_echo_n "(cached) " >&6
23680else
cristy8b350f62009-11-15 23:12:43 +000023681 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 +000023682
cristy3ed852e2009-09-05 21:47:34 +000023683else
cristy8b350f62009-11-15 23:12:43 +000023684 if test "$ac_cv_type_off_t" = yes; then
23685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023687as_fn_error 77 "cannot compute sizeof (off_t)
23688See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023689 else
23690 ac_cv_sizeof_off_t=0
23691 fi
23692fi
cristy8b350f62009-11-15 23:12:43 +000023693
cristy3ed852e2009-09-05 21:47:34 +000023694fi
cristy8b350f62009-11-15 23:12:43 +000023695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023696$as_echo "$ac_cv_sizeof_off_t" >&6; }
23697
23698
23699
23700cat >>confdefs.h <<_ACEOF
23701#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23702_ACEOF
23703
23704
23705
23706# Obtain size of size_t and define as SIZEOF_SIZE_T
23707# The cast to long int works around a bug in the HP C Compiler
23708# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23709# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23710# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023712$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023713if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023714 $as_echo_n "(cached) " >&6
23715else
cristy8b350f62009-11-15 23:12:43 +000023716 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 +000023717
cristy3ed852e2009-09-05 21:47:34 +000023718else
cristy8b350f62009-11-15 23:12:43 +000023719 if test "$ac_cv_type_size_t" = yes; then
23720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023722as_fn_error 77 "cannot compute sizeof (size_t)
23723See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023724 else
23725 ac_cv_sizeof_size_t=0
23726 fi
23727fi
cristy8b350f62009-11-15 23:12:43 +000023728
cristy3ed852e2009-09-05 21:47:34 +000023729fi
cristy8b350f62009-11-15 23:12:43 +000023730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023731$as_echo "$ac_cv_sizeof_size_t" >&6; }
23732
23733
23734
23735cat >>confdefs.h <<_ACEOF
23736#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23737_ACEOF
23738
23739
23740
cristy330e9352010-06-01 18:42:49 +000023741# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23742# The cast to long int works around a bug in the HP C Compiler
23743# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23744# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23745# This bug is HP SR number 8606223364.
23746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23747$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023748if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023749 $as_echo_n "(cached) " >&6
23750else
23751 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23752
23753else
23754 if test "$ac_cv_type_ssize_t" = yes; then
23755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023757as_fn_error 77 "cannot compute sizeof (ssize_t)
23758See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023759 else
23760 ac_cv_sizeof_ssize_t=0
23761 fi
23762fi
23763
23764fi
23765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23766$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23767
23768
23769
23770cat >>confdefs.h <<_ACEOF
23771#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23772_ACEOF
23773
23774
23775
cristy3ed852e2009-09-05 21:47:34 +000023776# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23777# The cast to long int works around a bug in the HP C Compiler
23778# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23779# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23780# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023782$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023783if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023784 $as_echo_n "(cached) " >&6
23785else
cristy8b350f62009-11-15 23:12:43 +000023786 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 +000023787
cristy3ed852e2009-09-05 21:47:34 +000023788else
cristy8b350f62009-11-15 23:12:43 +000023789 if test "$ac_cv_type_unsigned_intp" = yes; then
23790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023792as_fn_error 77 "cannot compute sizeof (unsigned int*)
23793See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023794 else
23795 ac_cv_sizeof_unsigned_intp=0
23796 fi
23797fi
cristy8b350f62009-11-15 23:12:43 +000023798
cristy3ed852e2009-09-05 21:47:34 +000023799fi
cristy8b350f62009-11-15 23:12:43 +000023800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023801$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23802
23803
23804
23805cat >>confdefs.h <<_ACEOF
23806#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23807_ACEOF
23808
23809
23810
23811#
23812# Compute sized types for current CPU and compiler options.
23813#
23814
cristy8b350f62009-11-15 23:12:43 +000023815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023816$as_echo_n "checking for signed 8-bit type... " >&6; }
23817INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23819$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023820
23821
cristy8b350f62009-11-15 23:12:43 +000023822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023823$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23824UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23826$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023827
23828
cristy8b350f62009-11-15 23:12:43 +000023829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023830$as_echo_n "checking for signed 16-bit type... " >&6; }
23831INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23833$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023834
23835
cristy8b350f62009-11-15 23:12:43 +000023836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023837$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23838UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23840$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023841
23842
cristy8b350f62009-11-15 23:12:43 +000023843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023844$as_echo_n "checking for signed 32-bit type... " >&6; }
23845INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023846INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023847if test $ac_cv_sizeof_signed_int -eq 4; then
23848 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023849 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023850elif test $ac_cv_sizeof_signed_long -eq 4; then
23851 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023852 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023853fi
cristyad38abe2012-12-23 23:03:21 +000023854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23855$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023856
23857
cristy6d5e20f2011-04-25 13:48:54 +000023858
cristy8b350f62009-11-15 23:12:43 +000023859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023860$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23861UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023862UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023863if test $ac_cv_sizeof_unsigned_int -eq 4; then
23864 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023865 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023866elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23867 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023868 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023869fi
cristyad38abe2012-12-23 23:03:21 +000023870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23871$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023872
23873
cristy6d5e20f2011-04-25 13:48:54 +000023874
cristy8b350f62009-11-15 23:12:43 +000023875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023876$as_echo_n "checking for signed 64-bit type... " >&6; }
23877INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023878INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023879if test $ac_cv_sizeof_signed_long -eq 8; then
23880 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023881 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023882elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23883 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023884 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023885fi
cristy3a99dcf2011-12-17 01:29:40 +000023886case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023887 mingw* )
23888 INT64_F='"I64"'
23889 ;;
23890esac
cristyad38abe2012-12-23 23:03:21 +000023891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23892$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023893
23894
cristy6d5e20f2011-04-25 13:48:54 +000023895
cristy8b350f62009-11-15 23:12:43 +000023896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023897$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23898UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023899UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023900if test $ac_cv_sizeof_unsigned_long -eq 8; then
23901 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023902 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023903elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23904 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023905 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023906fi
cristy3a99dcf2011-12-17 01:29:40 +000023907case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023908 mingw* )
23909 UINT64_F='"I64"'
23910 ;;
23911esac
cristyad38abe2012-12-23 23:03:21 +000023912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23913$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023914
23915
cristy6d5e20f2011-04-25 13:48:54 +000023916
cristy8b350f62009-11-15 23:12:43 +000023917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023918$as_echo_n "checking for unsigned maximum type... " >&6; }
23919UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023920UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023921if test "$UINT64_T" != 'none'; then
23922 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023923 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023924elif test "$UINT32_T" != 'none'; then
23925 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023926 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023927fi
cristyad38abe2012-12-23 23:03:21 +000023928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23929$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023930
23931
cristy6d5e20f2011-04-25 13:48:54 +000023932
cristy8b350f62009-11-15 23:12:43 +000023933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023934$as_echo_n "checking for pointer difference type... " >&6; }
23935UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023936UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023937if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23938 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023939 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023940elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23941 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023942 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023943fi
cristyad38abe2012-12-23 23:03:21 +000023944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23945$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023946
23947
cristy6d5e20f2011-04-25 13:48:54 +000023948
cristy8b350f62009-11-15 23:12:43 +000023949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023950$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023952/* end confdefs.h. */
23953
23954int
23955main ()
23956{
23957{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23958 ;
23959 return 0;
23960}
23961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023962if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23964$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023965else
cristyad38abe2012-12-23 23:03:21 +000023966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23967$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023969$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023971/* end confdefs.h. */
23972
23973int
23974main ()
23975{
23976{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23977 ;
23978 return 0;
23979}
23980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023981if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23983$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023984
cristy8b350f62009-11-15 23:12:43 +000023985$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023986
23987else
cristyad38abe2012-12-23 23:03:21 +000023988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23989$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023990
cristy8b350f62009-11-15 23:12:43 +000023991$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023992
23993fi
cristy3ed852e2009-09-05 21:47:34 +000023994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23995fi
cristy3ed852e2009-09-05 21:47:34 +000023996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23997
23998########
23999#
24000# Check for functions
24001#
24002########
cristy73bd4a52010-10-05 11:24:23 +000024003for ac_header in stdlib.h unistd.h
24004do :
24005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24006ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024007if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024008 cat >>confdefs.h <<_ACEOF
24009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24010_ACEOF
24011
24012fi
24013
24014done
24015
24016for ac_func in getpagesize
24017do :
24018 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024019if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024020 cat >>confdefs.h <<_ACEOF
24021#define HAVE_GETPAGESIZE 1
24022_ACEOF
24023
24024fi
24025done
24026
24027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24028$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024029if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024030 $as_echo_n "(cached) " >&6
24031else
24032 if test "$cross_compiling" = yes; then :
24033 magick_cv_func_mmap_fileio=no
24034else
24035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24036/* end confdefs.h. */
24037$ac_includes_default
24038/* malloc might have been renamed as rpl_malloc. */
24039#undef malloc
24040
24041/*
24042 This test is derived from GNU Autoconf's similar macro.
24043 The purpose of this test is to verify that files may be memory
24044 mapped, and that memory mapping and file I/O are coherent.
24045
24046 The test creates a test file, memory maps the file, updates
24047 the file using the memory map, and then reads the file using
24048 file I/O to verify that the file contains the updates.
24049*/
24050
24051#include <fcntl.h>
24052#include <sys/mman.h>
24053
24054#if !STDC_HEADERS && !HAVE_STDLIB_H
24055char *malloc ();
24056#endif
24057
24058/* This mess was copied from the GNU getpagesize.h. */
24059#if !HAVE_GETPAGESIZE
24060/* Assume that all systems that can run configure have sys/param.h. */
24061# if !HAVE_SYS_PARAM_H
24062# define HAVE_SYS_PARAM_H 1
24063# endif
24064
24065# ifdef _SC_PAGESIZE
24066# define getpagesize() sysconf(_SC_PAGESIZE)
24067# else /* no _SC_PAGESIZE */
24068# if HAVE_SYS_PARAM_H
24069# include <sys/param.h>
24070# ifdef EXEC_PAGESIZE
24071# define getpagesize() EXEC_PAGESIZE
24072# else /* no EXEC_PAGESIZE */
24073# ifdef NBPG
24074# define getpagesize() NBPG * CLSIZE
24075# ifndef CLSIZE
24076# define CLSIZE 1
24077# endif /* no CLSIZE */
24078# else /* no NBPG */
24079# ifdef NBPC
24080# define getpagesize() NBPC
24081# else /* no NBPC */
24082# ifdef PAGESIZE
24083# define getpagesize() PAGESIZE
24084# endif /* PAGESIZE */
24085# endif /* no NBPC */
24086# endif /* no NBPG */
24087# endif /* no EXEC_PAGESIZE */
24088# else /* no HAVE_SYS_PARAM_H */
24089# define getpagesize() 8192 /* punt totally */
24090# endif /* no HAVE_SYS_PARAM_H */
24091# endif /* no _SC_PAGESIZE */
24092
24093#endif /* no HAVE_GETPAGESIZE */
24094
24095int
24096main ()
24097{
24098 char *data, *data2, *data3;
24099 int i, pagesize;
24100 int fd;
24101
24102 pagesize = getpagesize ();
24103
24104 /* First, make a file with some known garbage in it. */
24105 data = (char *) malloc (pagesize);
24106 if (!data)
24107 exit (1);
24108 for (i = 0; i < pagesize; ++i)
24109 *(data + i) = rand ();
24110 umask (0);
24111 fd = creat ("conftest.mmap", 0600);
24112 if (fd < 0)
24113 exit (1);
24114 if (write (fd, data, pagesize) != pagesize)
24115 exit (1);
24116 close (fd);
24117
24118 /* Mmap the file as read/write/shared and verify that we see the
24119 same garbage. */
24120 fd = open ("conftest.mmap", O_RDWR);
24121 if (fd < 0)
24122 exit (1);
24123 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24124 if (data2 == 0)
24125 exit (1);
24126 for (i = 0; i < pagesize; ++i)
24127 if (*(data + i) != *(data2 + i))
24128 exit (1);
24129
24130 /* Finally, make sure that changes to the mapped area
24131 percolate back to the file as seen by read(). */
24132 for (i = 0; i < pagesize; ++i)
24133 *(data2 + i) = *(data2 + i) + 1;
24134 data3 = (char *) malloc (pagesize);
24135 if (!data3)
24136 exit (1);
24137 if (read (fd, data3, pagesize) != pagesize)
24138 exit (1);
24139 for (i = 0; i < pagesize; ++i)
24140 if (*(data2 + i) != *(data3 + i))
24141 exit (1);
24142 close (fd);
24143 exit (0);
24144}
24145_ACEOF
24146if ac_fn_c_try_run "$LINENO"; then :
24147 magick_cv_func_mmap_fileio=yes
24148else
24149 magick_cv_func_mmap_fileio=no
24150fi
24151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24152 conftest.$ac_objext conftest.beam conftest.$ac_ext
24153fi
24154
24155fi
24156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24157$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24158if test $magick_cv_func_mmap_fileio = yes; then
24159
24160$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24161
24162fi
24163rm -f conftest.mmap
24164
cristy8b350f62009-11-15 23:12:43 +000024165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024166$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024167if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024168 $as_echo_n "(cached) " >&6
24169else
cristy8b350f62009-11-15 23:12:43 +000024170 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024171 ac_cv_func_closedir_void=yes
24172else
cristy8b350f62009-11-15 23:12:43 +000024173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024174/* end confdefs.h. */
24175$ac_includes_default
24176#include <$ac_header_dirent>
24177#ifndef __cplusplus
24178int closedir ();
24179#endif
24180
24181int
24182main ()
24183{
24184return closedir (opendir (".")) != 0;
24185 ;
24186 return 0;
24187}
24188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024189if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024190 ac_cv_func_closedir_void=no
24191else
cristy8b350f62009-11-15 23:12:43 +000024192 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024193fi
cristy8b350f62009-11-15 23:12:43 +000024194rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24195 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024196fi
24197
cristy3ed852e2009-09-05 21:47:34 +000024198fi
cristy8b350f62009-11-15 23:12:43 +000024199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024200$as_echo "$ac_cv_func_closedir_void" >&6; }
24201if test $ac_cv_func_closedir_void = yes; then
24202
cristy8b350f62009-11-15 23:12:43 +000024203$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024204
24205fi
24206
cristycd4c5312009-11-22 01:19:08 +000024207
24208
24209
24210 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024211do :
24212 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024213ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24214"
cristy98dddb52010-11-04 00:30:15 +000024215if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024216 cat >>confdefs.h <<_ACEOF
24217#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24218_ACEOF
24219
24220fi
24221
24222done
24223
cristycd4c5312009-11-22 01:19:08 +000024224
24225
24226
24227
24228
24229
24230
cristy3ed852e2009-09-05 21:47:34 +000024231for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024232do :
24233 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024234if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024235 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024236#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024237_ACEOF
24238
24239fi
24240done
24241
cristy8b350f62009-11-15 23:12:43 +000024242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024243$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024244if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024245 $as_echo_n "(cached) " >&6
24246else
cristy8b350f62009-11-15 23:12:43 +000024247 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024248 ac_cv_func_mmap_fixed_mapped=no
24249else
cristy8b350f62009-11-15 23:12:43 +000024250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024251/* end confdefs.h. */
24252$ac_includes_default
24253/* malloc might have been renamed as rpl_malloc. */
24254#undef malloc
24255
24256/* Thanks to Mike Haertel and Jim Avera for this test.
24257 Here is a matrix of mmap possibilities:
24258 mmap private not fixed
24259 mmap private fixed at somewhere currently unmapped
24260 mmap private fixed at somewhere already mapped
24261 mmap shared not fixed
24262 mmap shared fixed at somewhere currently unmapped
24263 mmap shared fixed at somewhere already mapped
24264 For private mappings, we should verify that changes cannot be read()
24265 back from the file, nor mmap's back from the file at a different
24266 address. (There have been systems where private was not correctly
24267 implemented like the infamous i386 svr4.0, and systems where the
24268 VM page cache was not coherent with the file system buffer cache
24269 like early versions of FreeBSD and possibly contemporary NetBSD.)
24270 For shared mappings, we should conversely verify that changes get
24271 propagated back to all the places they're supposed to be.
24272
24273 Grep wants private fixed already mapped.
24274 The main things grep needs to know about mmap are:
24275 * does it exist and is it safe to write into the mmap'd area
24276 * how to use it (BSD variants) */
24277
24278#include <fcntl.h>
24279#include <sys/mman.h>
24280
24281#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24282char *malloc ();
24283#endif
24284
24285/* This mess was copied from the GNU getpagesize.h. */
24286#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024287# ifdef _SC_PAGESIZE
24288# define getpagesize() sysconf(_SC_PAGESIZE)
24289# else /* no _SC_PAGESIZE */
24290# ifdef HAVE_SYS_PARAM_H
24291# include <sys/param.h>
24292# ifdef EXEC_PAGESIZE
24293# define getpagesize() EXEC_PAGESIZE
24294# else /* no EXEC_PAGESIZE */
24295# ifdef NBPG
24296# define getpagesize() NBPG * CLSIZE
24297# ifndef CLSIZE
24298# define CLSIZE 1
24299# endif /* no CLSIZE */
24300# else /* no NBPG */
24301# ifdef NBPC
24302# define getpagesize() NBPC
24303# else /* no NBPC */
24304# ifdef PAGESIZE
24305# define getpagesize() PAGESIZE
24306# endif /* PAGESIZE */
24307# endif /* no NBPC */
24308# endif /* no NBPG */
24309# endif /* no EXEC_PAGESIZE */
24310# else /* no HAVE_SYS_PARAM_H */
24311# define getpagesize() 8192 /* punt totally */
24312# endif /* no HAVE_SYS_PARAM_H */
24313# endif /* no _SC_PAGESIZE */
24314
24315#endif /* no HAVE_GETPAGESIZE */
24316
24317int
24318main ()
24319{
24320 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024321 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024322 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024323 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024324
24325 pagesize = getpagesize ();
24326
24327 /* First, make a file with some known garbage in it. */
24328 data = (char *) malloc (pagesize);
24329 if (!data)
24330 return 1;
24331 for (i = 0; i < pagesize; ++i)
24332 *(data + i) = rand ();
24333 umask (0);
24334 fd = creat ("conftest.mmap", 0600);
24335 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024336 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024337 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024338 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024339 close (fd);
24340
cristycd4c5312009-11-22 01:19:08 +000024341 /* Next, check that the tail of a page is zero-filled. File must have
24342 non-zero length, otherwise we risk SIGBUS for entire page. */
24343 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24344 if (fd2 < 0)
24345 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024346 cdata2 = "";
24347 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024348 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024349 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024350 if (data2 == MAP_FAILED)
24351 return 6;
24352 for (i = 0; i < pagesize; ++i)
24353 if (*(data2 + i))
24354 return 7;
24355 close (fd2);
24356 if (munmap (data2, pagesize))
24357 return 8;
24358
cristy3ed852e2009-09-05 21:47:34 +000024359 /* Next, try to mmap the file at a fixed address which already has
24360 something else allocated at it. If we can, also make sure that
24361 we see the same garbage. */
24362 fd = open ("conftest.mmap", O_RDWR);
24363 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024364 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024365 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24366 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024367 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024368 for (i = 0; i < pagesize; ++i)
24369 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024370 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024371
24372 /* Finally, make sure that changes to the mapped area do not
24373 percolate back to the file as seen by read(). (This is a bug on
24374 some variants of i386 svr4.0.) */
24375 for (i = 0; i < pagesize; ++i)
24376 *(data2 + i) = *(data2 + i) + 1;
24377 data3 = (char *) malloc (pagesize);
24378 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024379 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024380 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024381 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024382 for (i = 0; i < pagesize; ++i)
24383 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024384 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024385 close (fd);
24386 return 0;
24387}
24388_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024389if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024390 ac_cv_func_mmap_fixed_mapped=yes
24391else
cristy8b350f62009-11-15 23:12:43 +000024392 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024393fi
cristy8b350f62009-11-15 23:12:43 +000024394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24395 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024396fi
24397
cristy3ed852e2009-09-05 21:47:34 +000024398fi
cristy8b350f62009-11-15 23:12:43 +000024399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024400$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24401if test $ac_cv_func_mmap_fixed_mapped = yes; then
24402
cristy8b350f62009-11-15 23:12:43 +000024403$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024404
24405fi
cristycd4c5312009-11-22 01:19:08 +000024406rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024407
cristy3ed852e2009-09-05 21:47:34 +000024408for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024409do :
24410 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024411if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024412 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024413#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024414_ACEOF
24415
24416fi
24417
24418done
24419
cristy3ed852e2009-09-05 21:47:34 +000024420for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024421do :
24422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24423ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024424if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024425 cat >>confdefs.h <<_ACEOF
24426#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24427_ACEOF
24428
24429fi
24430done
24431
24432if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024434$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024435if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024436 $as_echo_n "(cached) " >&6
24437else
cristy8b350f62009-11-15 23:12:43 +000024438 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024439 ac_cv_func_fork_works=cross
24440else
cristy8b350f62009-11-15 23:12:43 +000024441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024442/* end confdefs.h. */
24443$ac_includes_default
24444int
24445main ()
24446{
24447
24448 /* By Ruediger Kuhlmann. */
24449 return fork () < 0;
24450
24451 ;
24452 return 0;
24453}
24454_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024455if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024456 ac_cv_func_fork_works=yes
24457else
cristy8b350f62009-11-15 23:12:43 +000024458 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024459fi
cristy8b350f62009-11-15 23:12:43 +000024460rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24461 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024462fi
24463
cristy3ed852e2009-09-05 21:47:34 +000024464fi
cristy8b350f62009-11-15 23:12:43 +000024465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024466$as_echo "$ac_cv_func_fork_works" >&6; }
24467
24468else
24469 ac_cv_func_fork_works=$ac_cv_func_fork
24470fi
24471if test "x$ac_cv_func_fork_works" = xcross; then
24472 case $host in
24473 *-*-amigaos* | *-*-msdosdjgpp*)
24474 # Override, as these systems have only a dummy fork() stub
24475 ac_cv_func_fork_works=no
24476 ;;
24477 *)
24478 ac_cv_func_fork_works=yes
24479 ;;
24480 esac
cristy8b350f62009-11-15 23:12:43 +000024481 { $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 +000024482$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24483fi
24484ac_cv_func_vfork_works=$ac_cv_func_vfork
24485if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024487$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024488if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024489 $as_echo_n "(cached) " >&6
24490else
cristy8b350f62009-11-15 23:12:43 +000024491 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024492 ac_cv_func_vfork_works=cross
24493else
cristy8b350f62009-11-15 23:12:43 +000024494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024495/* end confdefs.h. */
24496/* Thanks to Paul Eggert for this test. */
24497$ac_includes_default
24498#include <sys/wait.h>
24499#ifdef HAVE_VFORK_H
24500# include <vfork.h>
24501#endif
24502/* On some sparc systems, changes by the child to local and incoming
24503 argument registers are propagated back to the parent. The compiler
24504 is told about this with #include <vfork.h>, but some compilers
24505 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24506 static variable whose address is put into a register that is
24507 clobbered by the vfork. */
24508static void
24509#ifdef __cplusplus
24510sparc_address_test (int arg)
24511# else
24512sparc_address_test (arg) int arg;
24513#endif
24514{
24515 static pid_t child;
24516 if (!child) {
24517 child = vfork ();
24518 if (child < 0) {
24519 perror ("vfork");
24520 _exit(2);
24521 }
24522 if (!child) {
24523 arg = getpid();
24524 write(-1, "", 0);
24525 _exit (arg);
24526 }
24527 }
24528}
24529
24530int
24531main ()
24532{
24533 pid_t parent = getpid ();
24534 pid_t child;
24535
24536 sparc_address_test (0);
24537
24538 child = vfork ();
24539
24540 if (child == 0) {
24541 /* Here is another test for sparc vfork register problems. This
24542 test uses lots of local variables, at least as many local
24543 variables as main has allocated so far including compiler
24544 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24545 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24546 reuse the register of parent for one of the local variables,
24547 since it will think that parent can't possibly be used any more
24548 in this routine. Assigning to the local variable will thus
24549 munge parent in the parent process. */
24550 pid_t
24551 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24552 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24553 /* Convince the compiler that p..p7 are live; otherwise, it might
24554 use the same hardware register for all 8 local variables. */
24555 if (p != p1 || p != p2 || p != p3 || p != p4
24556 || p != p5 || p != p6 || p != p7)
24557 _exit(1);
24558
24559 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24560 from child file descriptors. If the child closes a descriptor
24561 before it execs or exits, this munges the parent's descriptor
24562 as well. Test for this by closing stdout in the child. */
24563 _exit(close(fileno(stdout)) != 0);
24564 } else {
24565 int status;
24566 struct stat st;
24567
24568 while (wait(&status) != child)
24569 ;
24570 return (
24571 /* Was there some problem with vforking? */
24572 child < 0
24573
24574 /* Did the child fail? (This shouldn't happen.) */
24575 || status
24576
24577 /* Did the vfork/compiler bug occur? */
24578 || parent != getpid()
24579
24580 /* Did the file descriptor bug occur? */
24581 || fstat(fileno(stdout), &st) != 0
24582 );
24583 }
24584}
24585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024586if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024587 ac_cv_func_vfork_works=yes
24588else
cristy8b350f62009-11-15 23:12:43 +000024589 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024590fi
cristy8b350f62009-11-15 23:12:43 +000024591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24592 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024593fi
24594
cristy3ed852e2009-09-05 21:47:34 +000024595fi
cristy8b350f62009-11-15 23:12:43 +000024596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024597$as_echo "$ac_cv_func_vfork_works" >&6; }
24598
24599fi;
24600if test "x$ac_cv_func_fork_works" = xcross; then
24601 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024602 { $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 +000024603$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24604fi
24605
24606if test "x$ac_cv_func_vfork_works" = xyes; then
24607
cristy8b350f62009-11-15 23:12:43 +000024608$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024609
24610else
24611
cristy8b350f62009-11-15 23:12:43 +000024612$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024613
24614fi
24615if test "x$ac_cv_func_fork_works" = xyes; then
24616
cristy8b350f62009-11-15 23:12:43 +000024617$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024618
24619fi
24620
cristy8b350f62009-11-15 23:12:43 +000024621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024622$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024623if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024624 $as_echo_n "(cached) " >&6
24625else
cristy8b350f62009-11-15 23:12:43 +000024626 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024627 ac_cv_func_memcmp_working=no
24628else
cristy8b350f62009-11-15 23:12:43 +000024629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024630/* end confdefs.h. */
24631$ac_includes_default
24632int
24633main ()
24634{
24635
24636 /* Some versions of memcmp are not 8-bit clean. */
24637 char c0 = '\100', c1 = '\200', c2 = '\201';
24638 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24639 return 1;
24640
24641 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24642 or more and with at least one buffer not starting on a 4-byte boundary.
24643 William Lewis provided this test program. */
24644 {
24645 char foo[21];
24646 char bar[21];
24647 int i;
24648 for (i = 0; i < 4; i++)
24649 {
24650 char *a = foo + i;
24651 char *b = bar + i;
24652 strcpy (a, "--------01111111");
24653 strcpy (b, "--------10000000");
24654 if (memcmp (a, b, 16) >= 0)
24655 return 1;
24656 }
24657 return 0;
24658 }
24659
24660 ;
24661 return 0;
24662}
24663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024664if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024665 ac_cv_func_memcmp_working=yes
24666else
cristy8b350f62009-11-15 23:12:43 +000024667 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024668fi
cristy8b350f62009-11-15 23:12:43 +000024669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24670 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024671fi
24672
cristy3ed852e2009-09-05 21:47:34 +000024673fi
cristy8b350f62009-11-15 23:12:43 +000024674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024675$as_echo "$ac_cv_func_memcmp_working" >&6; }
24676test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24677 *" memcmp.$ac_objext "* ) ;;
24678 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24679 ;;
24680esac
24681
24682
cristy3ed852e2009-09-05 21:47:34 +000024683for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024684do :
24685 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24686ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024687if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024688 cat >>confdefs.h <<_ACEOF
24689#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24690_ACEOF
24691
24692fi
24693
24694done
24695
cristy8b350f62009-11-15 23:12:43 +000024696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024697$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024698if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024699 $as_echo_n "(cached) " >&6
24700else
24701 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24702 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24703 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024705/* end confdefs.h. */
24706$ac_includes_default
24707#ifdef HAVE_SYS_SELECT_H
24708# include <sys/select.h>
24709#endif
24710#ifdef HAVE_SYS_SOCKET_H
24711# include <sys/socket.h>
24712#endif
24713
24714int
24715main ()
24716{
24717extern int select ($ac_arg1,
24718 $ac_arg234, $ac_arg234, $ac_arg234,
24719 $ac_arg5);
24720 ;
24721 return 0;
24722}
24723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024724if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024725 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024726fi
cristy3ed852e2009-09-05 21:47:34 +000024727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24728 done
24729 done
24730done
24731# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024732: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024733
24734fi
cristy8b350f62009-11-15 23:12:43 +000024735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024736$as_echo "$ac_cv_func_select_args" >&6; }
24737ac_save_IFS=$IFS; IFS=','
24738set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24739IFS=$ac_save_IFS
24740shift
24741
24742cat >>confdefs.h <<_ACEOF
24743#define SELECT_TYPE_ARG1 $1
24744_ACEOF
24745
24746
24747cat >>confdefs.h <<_ACEOF
24748#define SELECT_TYPE_ARG234 ($2)
24749_ACEOF
24750
24751
24752cat >>confdefs.h <<_ACEOF
24753#define SELECT_TYPE_ARG5 ($3)
24754_ACEOF
24755
24756rm -f conftest*
24757
cristyda16f162011-02-19 23:52:17 +000024758if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024759 $as_echo_n "(cached) " >&6
24760else
24761 ac_cv_func_setvbuf_reversed=no
24762fi
24763
24764
cristy8b350f62009-11-15 23:12:43 +000024765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024766$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024767if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024768 $as_echo_n "(cached) " >&6
24769else
cristy8b350f62009-11-15 23:12:43 +000024770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024771/* end confdefs.h. */
24772#include <sys/types.h>
24773#include <signal.h>
24774
24775int
24776main ()
24777{
24778return *(signal (0, 0)) (0) == 1;
24779 ;
24780 return 0;
24781}
24782_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024783if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024784 ac_cv_type_signal=int
24785else
cristy8b350f62009-11-15 23:12:43 +000024786 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024787fi
cristy3ed852e2009-09-05 21:47:34 +000024788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24789fi
cristy8b350f62009-11-15 23:12:43 +000024790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024791$as_echo "$ac_cv_type_signal" >&6; }
24792
24793cat >>confdefs.h <<_ACEOF
24794#define RETSIGTYPE $ac_cv_type_signal
24795_ACEOF
24796
24797
cristy8b350f62009-11-15 23:12:43 +000024798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024799$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024800if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024801 $as_echo_n "(cached) " >&6
24802else
cristy8b350f62009-11-15 23:12:43 +000024803 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024804 ac_cv_func_strtod=no
24805else
cristy8b350f62009-11-15 23:12:43 +000024806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024807/* end confdefs.h. */
24808
24809$ac_includes_default
24810#ifndef strtod
24811double strtod ();
24812#endif
24813int
24814main()
24815{
24816 {
24817 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24818 char *string = " +69";
24819 char *term;
24820 double value;
24821 value = strtod (string, &term);
24822 if (value != 69 || term != (string + 4))
24823 return 1;
24824 }
24825
24826 {
24827 /* Under Solaris 2.4, strtod returns the wrong value for the
24828 terminating character under some conditions. */
24829 char *string = "NaN";
24830 char *term;
24831 strtod (string, &term);
24832 if (term != string && *(term - 1) == 0)
24833 return 1;
24834 }
24835 return 0;
24836}
24837
24838_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024839if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024840 ac_cv_func_strtod=yes
24841else
cristy8b350f62009-11-15 23:12:43 +000024842 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024843fi
cristy8b350f62009-11-15 23:12:43 +000024844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24845 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024846fi
24847
cristy3ed852e2009-09-05 21:47:34 +000024848fi
cristy8b350f62009-11-15 23:12:43 +000024849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024850$as_echo "$ac_cv_func_strtod" >&6; }
24851if test $ac_cv_func_strtod = no; then
24852 case " $LIBOBJS " in
24853 *" strtod.$ac_objext "* ) ;;
24854 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24855 ;;
24856esac
24857
cristy8b350f62009-11-15 23:12:43 +000024858ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024859if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024860
cristy3ed852e2009-09-05 21:47:34 +000024861fi
24862
cristy3ed852e2009-09-05 21:47:34 +000024863if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024865$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024866if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024867 $as_echo_n "(cached) " >&6
24868else
24869 ac_check_lib_save_LIBS=$LIBS
24870LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024872/* end confdefs.h. */
24873
24874/* Override any GCC internal prototype to avoid an error.
24875 Use char because int might match the return type of a GCC
24876 builtin and then its argument prototype would still apply. */
24877#ifdef __cplusplus
24878extern "C"
24879#endif
24880char pow ();
24881int
24882main ()
24883{
24884return pow ();
24885 ;
24886 return 0;
24887}
24888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024889if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024890 ac_cv_lib_m_pow=yes
24891else
cristy8b350f62009-11-15 23:12:43 +000024892 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024893fi
cristy8b350f62009-11-15 23:12:43 +000024894rm -f core conftest.err conftest.$ac_objext \
24895 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024896LIBS=$ac_check_lib_save_LIBS
24897fi
cristy8b350f62009-11-15 23:12:43 +000024898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024899$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024900if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024901 POW_LIB=-lm
24902else
cristy8b350f62009-11-15 23:12:43 +000024903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024904$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24905fi
24906
24907fi
24908
24909fi
24910
cristy7d4a1d62011-10-13 15:54:12 +000024911ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24912if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24913 ac_have_decl=1
24914else
24915 ac_have_decl=0
24916fi
24917
24918cat >>confdefs.h <<_ACEOF
24919#define HAVE_DECL_STRERROR_R $ac_have_decl
24920_ACEOF
24921
24922for ac_func in strerror_r
24923do :
24924 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24925if test "x$ac_cv_func_strerror_r" = xyes; then :
24926 cat >>confdefs.h <<_ACEOF
24927#define HAVE_STRERROR_R 1
24928_ACEOF
24929
24930fi
24931done
24932
24933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24934$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24935if ${ac_cv_func_strerror_r_char_p+:} false; then :
24936 $as_echo_n "(cached) " >&6
24937else
24938
24939 ac_cv_func_strerror_r_char_p=no
24940 if test $ac_cv_have_decl_strerror_r = yes; then
24941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24942/* end confdefs.h. */
24943$ac_includes_default
24944int
24945main ()
24946{
24947
24948 char buf[100];
24949 char x = *strerror_r (0, buf, sizeof buf);
24950 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024951 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024952
24953 ;
24954 return 0;
24955}
24956_ACEOF
24957if ac_fn_c_try_compile "$LINENO"; then :
24958 ac_cv_func_strerror_r_char_p=yes
24959fi
24960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24961 else
24962 # strerror_r is not declared. Choose between
24963 # systems that have relatively inaccessible declarations for the
24964 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24965 # former has a strerror_r that returns char*, while the latter
24966 # has a strerror_r that returns `int'.
24967 # This test should segfault on the DEC system.
24968 if test "$cross_compiling" = yes; then :
24969 :
24970else
24971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24972/* end confdefs.h. */
24973$ac_includes_default
24974 extern char *strerror_r ();
24975int
24976main ()
24977{
24978char buf[100];
24979 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024980 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024981 ;
24982 return 0;
24983}
24984_ACEOF
24985if ac_fn_c_try_run "$LINENO"; then :
24986 ac_cv_func_strerror_r_char_p=yes
24987fi
24988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24989 conftest.$ac_objext conftest.beam conftest.$ac_ext
24990fi
24991
24992 fi
24993
24994fi
24995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24996$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24997if test $ac_cv_func_strerror_r_char_p = yes; then
24998
24999$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25000
25001fi
25002
cristy3ed852e2009-09-05 21:47:34 +000025003for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025004do :
25005 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025006if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025007 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025008#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025009_ACEOF
25010
cristy8b350f62009-11-15 23:12:43 +000025011ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025012if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025013
cristy8b350f62009-11-15 23:12:43 +000025014$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025015
25016fi
25017
25018fi
25019done
25020
25021
25022
cristy161b9262010-03-20 19:34:32 +000025023#
25024# Find math library
25025#
25026MATH_LIBS=''
25027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25028$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025029if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025030 $as_echo_n "(cached) " >&6
25031else
25032 ac_check_lib_save_LIBS=$LIBS
25033LIBS="-lm $LIBS"
25034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25035/* end confdefs.h. */
25036
25037/* Override any GCC internal prototype to avoid an error.
25038 Use char because int might match the return type of a GCC
25039 builtin and then its argument prototype would still apply. */
25040#ifdef __cplusplus
25041extern "C"
25042#endif
25043char sqrt ();
25044int
25045main ()
25046{
25047return sqrt ();
25048 ;
25049 return 0;
25050}
25051_ACEOF
25052if ac_fn_c_try_link "$LINENO"; then :
25053 ac_cv_lib_m_sqrt=yes
25054else
25055 ac_cv_lib_m_sqrt=no
25056fi
25057rm -f core conftest.err conftest.$ac_objext \
25058 conftest$ac_exeext conftest.$ac_ext
25059LIBS=$ac_check_lib_save_LIBS
25060fi
25061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25062$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025063if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025064 MATH_LIBS="-lm"
25065fi
25066
25067LIBS="$MATH_LIBS $LIBS"
25068
25069
cristy85572162013-01-04 19:19:32 +000025070#
25071# Find socket library
25072#
cristy8a5d7f42013-01-06 15:24:33 +000025073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25074$as_echo_n "checking for library containing gethostbyname... " >&6; }
25075if ${ac_cv_search_gethostbyname+:} false; then :
25076 $as_echo_n "(cached) " >&6
25077else
25078 ac_func_search_save_LIBS=$LIBS
25079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25080/* end confdefs.h. */
25081
25082/* Override any GCC internal prototype to avoid an error.
25083 Use char because int might match the return type of a GCC
25084 builtin and then its argument prototype would still apply. */
25085#ifdef __cplusplus
25086extern "C"
25087#endif
25088char gethostbyname ();
25089int
25090main ()
25091{
25092return gethostbyname ();
25093 ;
25094 return 0;
25095}
25096_ACEOF
25097for ac_lib in '' resolv nsl; do
25098 if test -z "$ac_lib"; then
25099 ac_res="none required"
25100 else
25101 ac_res=-l$ac_lib
25102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25103 fi
25104 if ac_fn_c_try_link "$LINENO"; then :
25105 ac_cv_search_gethostbyname=$ac_res
25106fi
25107rm -f core conftest.err conftest.$ac_objext \
25108 conftest$ac_exeext
25109 if ${ac_cv_search_gethostbyname+:} false; then :
25110 break
25111fi
25112done
25113if ${ac_cv_search_gethostbyname+:} false; then :
25114
25115else
25116 ac_cv_search_gethostbyname=no
25117fi
25118rm conftest.$ac_ext
25119LIBS=$ac_func_search_save_LIBS
25120fi
25121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25122$as_echo "$ac_cv_search_gethostbyname" >&6; }
25123ac_res=$ac_cv_search_gethostbyname
25124if test "$ac_res" != no; then :
25125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25126
25127fi
25128
cristy85572162013-01-04 19:19:32 +000025129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25130$as_echo_n "checking for library containing socket... " >&6; }
25131if ${ac_cv_search_socket+:} false; then :
25132 $as_echo_n "(cached) " >&6
25133else
25134 ac_func_search_save_LIBS=$LIBS
25135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25136/* end confdefs.h. */
25137
25138/* Override any GCC internal prototype to avoid an error.
25139 Use char because int might match the return type of a GCC
25140 builtin and then its argument prototype would still apply. */
25141#ifdef __cplusplus
25142extern "C"
25143#endif
25144char socket ();
25145int
25146main ()
25147{
25148return socket ();
25149 ;
25150 return 0;
25151}
25152_ACEOF
25153for ac_lib in '' socket; do
25154 if test -z "$ac_lib"; then
25155 ac_res="none required"
25156 else
25157 ac_res=-l$ac_lib
25158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25159 fi
25160 if ac_fn_c_try_link "$LINENO"; then :
25161 ac_cv_search_socket=$ac_res
25162fi
25163rm -f core conftest.err conftest.$ac_objext \
25164 conftest$ac_exeext
25165 if ${ac_cv_search_socket+:} false; then :
25166 break
25167fi
25168done
25169if ${ac_cv_search_socket+:} false; then :
25170
25171else
25172 ac_cv_search_socket=no
25173fi
25174rm conftest.$ac_ext
25175LIBS=$ac_func_search_save_LIBS
25176fi
25177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25178$as_echo "$ac_cv_search_socket" >&6; }
25179ac_res=$ac_cv_search_socket
25180if test "$ac_res" != no; then :
25181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25182
cristy85572162013-01-04 19:19:32 +000025183
cristy8a5d7f42013-01-06 15:24:33 +000025184$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025185
cristy03f187e2013-01-24 00:22:19 +000025186 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025187
25188fi
25189
25190
25191for 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 socket 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 +000025192do :
25193 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25194ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025195if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025196 cat >>confdefs.h <<_ACEOF
25197#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25198_ACEOF
25199
25200fi
25201done
25202
25203
cristye43a45e2009-09-28 14:49:00 +000025204#
25205# Check for clock_gettime().
25206#
cristy8b350f62009-11-15 23:12:43 +000025207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025208$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025209if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025210 $as_echo_n "(cached) " >&6
25211else
25212 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025214/* end confdefs.h. */
25215
25216/* Override any GCC internal prototype to avoid an error.
25217 Use char because int might match the return type of a GCC
25218 builtin and then its argument prototype would still apply. */
25219#ifdef __cplusplus
25220extern "C"
25221#endif
25222char clock_gettime ();
25223int
25224main ()
25225{
25226return clock_gettime ();
25227 ;
25228 return 0;
25229}
25230_ACEOF
25231for ac_lib in '' rt; do
25232 if test -z "$ac_lib"; then
25233 ac_res="none required"
25234 else
25235 ac_res=-l$ac_lib
25236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25237 fi
cristy8b350f62009-11-15 23:12:43 +000025238 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025239 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025240fi
cristy8b350f62009-11-15 23:12:43 +000025241rm -f core conftest.err conftest.$ac_objext \
25242 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025243 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025244 break
25245fi
25246done
cristyda16f162011-02-19 23:52:17 +000025247if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025248
cristye43a45e2009-09-28 14:49:00 +000025249else
25250 ac_cv_search_clock_gettime=no
25251fi
25252rm conftest.$ac_ext
25253LIBS=$ac_func_search_save_LIBS
25254fi
cristy8b350f62009-11-15 23:12:43 +000025255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025256$as_echo "$ac_cv_search_clock_gettime" >&6; }
25257ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025258if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25260
25261
cristy8b350f62009-11-15 23:12:43 +000025262$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025263
cristy8b350f62009-11-15 23:12:43 +000025264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025265$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025267/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025268
25269 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025270int
25271main ()
25272{
25273clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025274 ;
25275 return 0;
25276}
25277_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025278if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025279
cristyad38abe2012-12-23 23:03:21 +000025280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25281$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025282
cristy8b350f62009-11-15 23:12:43 +000025283$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025284
25285
25286else
cristyad38abe2012-12-23 23:03:21 +000025287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25288$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025289
25290fi
cristye43a45e2009-09-28 14:49:00 +000025291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25292
25293else
25294
cristy8b350f62009-11-15 23:12:43 +000025295 for ac_func in gettimeofday ftime
25296do :
25297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25298ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025299if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025300 cat >>confdefs.h <<_ACEOF
25301#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25302_ACEOF
25303 break
25304fi
25305done
25306
25307
25308
25309fi
25310
25311
cristy3ed852e2009-09-05 21:47:34 +000025312########
25313#
25314# Check for function prototypes
25315#
25316########
25317
cristy8b350f62009-11-15 23:12:43 +000025318ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025319#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025320"
cristyda16f162011-02-19 23:52:17 +000025321if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025322 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025323else
cristy8b350f62009-11-15 23:12:43 +000025324 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025325fi
25326
cristy3ed852e2009-09-05 21:47:34 +000025327cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025328#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025329_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025330ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025331#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025332"
cristyda16f162011-02-19 23:52:17 +000025333if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025334 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025335else
cristy8b350f62009-11-15 23:12:43 +000025336 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025337fi
25338
cristy3ed852e2009-09-05 21:47:34 +000025339cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025340#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025341_ACEOF
25342
25343
cristy8b350f62009-11-15 23:12:43 +000025344ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025345#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025346"
cristyda16f162011-02-19 23:52:17 +000025347if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025348 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025349else
cristy8b350f62009-11-15 23:12:43 +000025350 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025351fi
25352
cristy3ed852e2009-09-05 21:47:34 +000025353cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025354#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025355_ACEOF
25356
25357
cristy8b350f62009-11-15 23:12:43 +000025358ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025359#include <stdio.h>
25360#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025361"
cristyda16f162011-02-19 23:52:17 +000025362if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025363 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025364else
cristy8b350f62009-11-15 23:12:43 +000025365 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025366fi
25367
cristy3ed852e2009-09-05 21:47:34 +000025368cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025369#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025370_ACEOF
25371
25372
cristy3ed852e2009-09-05 21:47:34 +000025373########
25374#
25375# C++ Support Tests (For Magick++)
25376#
25377########
25378have_magick_plus_plus='no'
25379if test "$with_magick_plus_plus" = 'yes'; then
25380 OLIBS="$LIBS"
25381 LIBS=''
25382 ac_ext=cpp
25383ac_cpp='$CXXCPP $CPPFLAGS'
25384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25387
25388
25389 # Full set of headers used...
25390 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25391 # functional iomanip iosfwd iostream iterator list string strstream utility
25392 ac_ext=cpp
25393ac_cpp='$CXXCPP $CPPFLAGS'
25394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25397
25398 ac_ext=cpp
25399ac_cpp='$CXXCPP $CPPFLAGS'
25400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25403if test -z "$CXX"; then
25404 if test -n "$CCC"; then
25405 CXX=$CCC
25406 else
25407 if test -n "$ac_tool_prefix"; then
25408 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25409 do
25410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25411set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025413$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025414if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025415 $as_echo_n "(cached) " >&6
25416else
25417 if test -n "$CXX"; then
25418 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25419else
25420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25421for as_dir in $PATH
25422do
25423 IFS=$as_save_IFS
25424 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025425 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025427 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025429 break 2
25430 fi
25431done
cristy8b350f62009-11-15 23:12:43 +000025432 done
cristy3ed852e2009-09-05 21:47:34 +000025433IFS=$as_save_IFS
25434
25435fi
25436fi
25437CXX=$ac_cv_prog_CXX
25438if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025440$as_echo "$CXX" >&6; }
25441else
cristy8b350f62009-11-15 23:12:43 +000025442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025443$as_echo "no" >&6; }
25444fi
25445
25446
25447 test -n "$CXX" && break
25448 done
25449fi
25450if test -z "$CXX"; then
25451 ac_ct_CXX=$CXX
25452 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25453do
25454 # Extract the first word of "$ac_prog", so it can be a program name with args.
25455set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025457$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025458if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025459 $as_echo_n "(cached) " >&6
25460else
25461 if test -n "$ac_ct_CXX"; then
25462 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25463else
25464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25465for as_dir in $PATH
25466do
25467 IFS=$as_save_IFS
25468 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025469 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025471 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025473 break 2
25474 fi
25475done
cristy8b350f62009-11-15 23:12:43 +000025476 done
cristy3ed852e2009-09-05 21:47:34 +000025477IFS=$as_save_IFS
25478
25479fi
25480fi
25481ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25482if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025484$as_echo "$ac_ct_CXX" >&6; }
25485else
cristy8b350f62009-11-15 23:12:43 +000025486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025487$as_echo "no" >&6; }
25488fi
25489
25490
25491 test -n "$ac_ct_CXX" && break
25492done
25493
25494 if test "x$ac_ct_CXX" = x; then
25495 CXX="g++"
25496 else
25497 case $cross_compiling:$ac_tool_warned in
25498yes:)
cristy8b350f62009-11-15 23:12:43 +000025499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25501ac_tool_warned=yes ;;
25502esac
25503 CXX=$ac_ct_CXX
25504 fi
25505fi
25506
25507 fi
25508fi
25509# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025510$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025511set X $ac_compile
25512ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025513for ac_option in --version -v -V -qversion; do
25514 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025515case "(($ac_try" in
25516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25517 *) ac_try_echo=$ac_try;;
25518esac
cristy8b350f62009-11-15 23:12:43 +000025519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25520$as_echo "$ac_try_echo"; } >&5
25521 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025522 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025523 if test -s conftest.err; then
25524 sed '10a\
25525... rest of stderr output deleted ...
25526 10q' conftest.err >conftest.er1
25527 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025528 fi
cristycd4c5312009-11-22 01:19:08 +000025529 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25531 test $ac_status = 0; }
25532done
cristy3ed852e2009-09-05 21:47:34 +000025533
cristy8b350f62009-11-15 23:12:43 +000025534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025535$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025536if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025537 $as_echo_n "(cached) " >&6
25538else
cristy8b350f62009-11-15 23:12:43 +000025539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025540/* end confdefs.h. */
25541
25542int
25543main ()
25544{
25545#ifndef __GNUC__
25546 choke me
25547#endif
25548
25549 ;
25550 return 0;
25551}
25552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025553if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025554 ac_compiler_gnu=yes
25555else
cristy8b350f62009-11-15 23:12:43 +000025556 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025557fi
cristy3ed852e2009-09-05 21:47:34 +000025558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25559ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25560
25561fi
cristy8b350f62009-11-15 23:12:43 +000025562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025563$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25564if test $ac_compiler_gnu = yes; then
25565 GXX=yes
25566else
25567 GXX=
25568fi
25569ac_test_CXXFLAGS=${CXXFLAGS+set}
25570ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025572$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025573if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025574 $as_echo_n "(cached) " >&6
25575else
25576 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25577 ac_cxx_werror_flag=yes
25578 ac_cv_prog_cxx_g=no
25579 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025581/* end confdefs.h. */
25582
25583int
25584main ()
25585{
25586
25587 ;
25588 return 0;
25589}
25590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025591if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025592 ac_cv_prog_cxx_g=yes
25593else
cristy8b350f62009-11-15 23:12:43 +000025594 CXXFLAGS=""
25595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025596/* end confdefs.h. */
25597
25598int
25599main ()
25600{
25601
25602 ;
25603 return 0;
25604}
25605_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025606if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025607
cristy8b350f62009-11-15 23:12:43 +000025608else
25609 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025610 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025612/* end confdefs.h. */
25613
25614int
25615main ()
25616{
25617
25618 ;
25619 return 0;
25620}
25621_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025622if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025623 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025624fi
cristy3ed852e2009-09-05 21:47:34 +000025625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25626fi
cristy3ed852e2009-09-05 21:47:34 +000025627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25628fi
cristy3ed852e2009-09-05 21:47:34 +000025629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25630 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25631fi
cristy8b350f62009-11-15 23:12:43 +000025632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025633$as_echo "$ac_cv_prog_cxx_g" >&6; }
25634if test "$ac_test_CXXFLAGS" = set; then
25635 CXXFLAGS=$ac_save_CXXFLAGS
25636elif test $ac_cv_prog_cxx_g = yes; then
25637 if test "$GXX" = yes; then
25638 CXXFLAGS="-g -O2"
25639 else
25640 CXXFLAGS="-g"
25641 fi
25642else
25643 if test "$GXX" = yes; then
25644 CXXFLAGS="-O2"
25645 else
25646 CXXFLAGS=
25647 fi
25648fi
25649ac_ext=cpp
25650ac_cpp='$CXXCPP $CPPFLAGS'
25651ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25652ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25653ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25654
cristy73bd4a52010-10-05 11:24:23 +000025655depcc="$CXX" am_compiler_list=
25656
25657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25658$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025659if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025660 $as_echo_n "(cached) " >&6
25661else
25662 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25663 # We make a subdir and do the tests there. Otherwise we can end up
25664 # making bogus files that we don't know about and never remove. For
25665 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025666 # making a dummy file named 'D' -- because '-MD' means "put the output
25667 # in D".
cristy7247bba2012-02-05 16:37:27 +000025668 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025669 mkdir conftest.dir
25670 # Copy depcomp to subdir because otherwise we won't find it if we're
25671 # using a relative directory.
25672 cp "$am_depcomp" conftest.dir
25673 cd conftest.dir
25674 # We will build objects and dependencies in a subdirectory because
25675 # it helps to detect inapplicable dependency modes. For instance
25676 # both Tru64's cc and ICC support -MD to output dependencies as a
25677 # side effect of compilation, but ICC will put the dependencies in
25678 # the current directory while Tru64 will put them in the object
25679 # directory.
25680 mkdir sub
25681
25682 am_cv_CXX_dependencies_compiler_type=none
25683 if test "$am_compiler_list" = ""; then
25684 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25685 fi
25686 am__universal=false
25687 case " $depcc " in #(
25688 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25689 esac
25690
25691 for depmode in $am_compiler_list; do
25692 # Setup a source with many dependencies, because some compilers
25693 # like to wrap large dependency lists on column 80 (with \), and
25694 # we should not choose a depcomp mode which is confused by this.
25695 #
25696 # We need to recreate these files for each test, as the compiler may
25697 # overwrite some of them when testing with obscure command lines.
25698 # This happens at least with the AIX C compiler.
25699 : > sub/conftest.c
25700 for i in 1 2 3 4 5 6; do
25701 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025702 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25703 # Solaris 10 /bin/sh.
25704 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025705 done
25706 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25707
cristyc0890a62012-07-19 00:18:20 +000025708 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025709 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025710 # handle '-M -o', and we need to detect this. Also, some Intel
25711 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025712 am__obj=sub/conftest.${OBJEXT-o}
25713 am__minus_obj="-o $am__obj"
25714 case $depmode in
25715 gcc)
25716 # This depmode causes a compiler race in universal mode.
25717 test "$am__universal" = false || continue
25718 ;;
25719 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025720 # After this tag, mechanisms are not by side-effect, so they'll
25721 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025722 if test "x$enable_dependency_tracking" = xyes; then
25723 continue
25724 else
25725 break
25726 fi
25727 ;;
cristy7247bba2012-02-05 16:37:27 +000025728 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025729 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025730 # not run yet. These depmodes are late enough in the game, and
25731 # so weak that their functioning should not be impacted.
25732 am__obj=conftest.${OBJEXT-o}
25733 am__minus_obj=
25734 ;;
25735 none) break ;;
25736 esac
25737 if depmode=$depmode \
25738 source=sub/conftest.c object=$am__obj \
25739 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25740 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25741 >/dev/null 2>conftest.err &&
25742 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25743 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25744 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25745 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25746 # icc doesn't choke on unknown options, it will just issue warnings
25747 # or remarks (even with -Werror). So we grep stderr for any message
25748 # that says an option was ignored or not supported.
25749 # When given -MP, icc 7.0 and 7.1 complain thusly:
25750 # icc: Command line warning: ignoring option '-M'; no argument required
25751 # The diagnosis changed in icc 8.0:
25752 # icc: Command line remark: option '-MP' not supported
25753 if (grep 'ignoring option' conftest.err ||
25754 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25755 am_cv_CXX_dependencies_compiler_type=$depmode
25756 break
25757 fi
25758 fi
25759 done
25760
25761 cd ..
25762 rm -rf conftest.dir
25763else
25764 am_cv_CXX_dependencies_compiler_type=none
25765fi
25766
25767fi
25768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25769$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25770CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25771
25772 if
25773 test "x$enable_dependency_tracking" != xno \
25774 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25775 am__fastdepCXX_TRUE=
25776 am__fastdepCXX_FALSE='#'
25777else
25778 am__fastdepCXX_TRUE='#'
25779 am__fastdepCXX_FALSE=
25780fi
25781
25782
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25784$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025785if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025786 $as_echo_n "(cached) " >&6
25787else
25788
25789 ac_ext=cpp
25790ac_cpp='$CXXCPP $CPPFLAGS'
25791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25794
25795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25796/* end confdefs.h. */
25797
25798int f(int x){return 1;}
25799int f(char x){return 1;}
25800int f(bool x){return 1;}
25801
25802int
25803main ()
25804{
25805bool b = true; return f(b);
25806 ;
25807 return 0;
25808}
25809_ACEOF
25810if ac_fn_cxx_try_compile "$LINENO"; then :
25811 ax_cv_cxx_bool=yes
25812else
25813 ax_cv_cxx_bool=no
25814fi
25815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25816 ac_ext=cpp
25817ac_cpp='$CXXCPP $CPPFLAGS'
25818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25821
25822
25823fi
25824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25825$as_echo "$ax_cv_cxx_bool" >&6; }
25826if test "$ax_cv_cxx_bool" = yes; then
25827
25828$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25829
25830fi
25831
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25833$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025834if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025835 $as_echo_n "(cached) " >&6
25836else
25837
25838 ac_ext=cpp
25839ac_cpp='$CXXCPP $CPPFLAGS'
25840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25843
25844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25845/* end confdefs.h. */
25846namespace Outer { namespace Inner { int i = 0; }}
25847int
25848main ()
25849{
25850using namespace Outer::Inner; return i;
25851 ;
25852 return 0;
25853}
25854_ACEOF
25855if ac_fn_cxx_try_compile "$LINENO"; then :
25856 ax_cv_cxx_namespaces=yes
25857else
25858 ax_cv_cxx_namespaces=no
25859fi
25860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25861 ac_ext=cpp
25862ac_cpp='$CXXCPP $CPPFLAGS'
25863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25866
25867
25868fi
25869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25870$as_echo "$ax_cv_cxx_namespaces" >&6; }
25871if test "$ax_cv_cxx_namespaces" = yes; then
25872
25873$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25874
25875fi
25876
25877
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25879$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025880if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025881 $as_echo_n "(cached) " >&6
25882else
25883
25884 ac_ext=cpp
25885ac_cpp='$CXXCPP $CPPFLAGS'
25886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25889
25890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25891/* end confdefs.h. */
25892#include <iostream>
25893 std::istream& is = std::cin;
25894int
25895main ()
25896{
25897
25898 ;
25899 return 0;
25900}
25901_ACEOF
25902if ac_fn_cxx_try_compile "$LINENO"; then :
25903 ax_cv_cxx_have_std_namespace=yes
25904else
25905 ax_cv_cxx_have_std_namespace=no
25906fi
25907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25908 ac_ext=cpp
25909ac_cpp='$CXXCPP $CPPFLAGS'
25910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25913
25914
25915fi
25916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25917$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25918 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25919
25920$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25921
25922 fi
25923
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25925$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025926if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025927 $as_echo_n "(cached) " >&6
25928else
25929
25930
25931 ac_ext=cpp
25932ac_cpp='$CXXCPP $CPPFLAGS'
25933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25936
25937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25938/* end confdefs.h. */
25939#include <iostream>
25940#include <map>
25941#include <iomanip>
25942#include <cmath>
25943#ifdef HAVE_NAMESPACES
25944using namespace std;
25945#endif
25946int
25947main ()
25948{
25949return 0;
25950 ;
25951 return 0;
25952}
25953_ACEOF
25954if ac_fn_cxx_try_compile "$LINENO"; then :
25955 ac_cv_cxx_have_std_libs=yes
25956else
25957 ac_cv_cxx_have_std_libs=no
25958fi
25959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25960 ac_ext=cpp
25961ac_cpp='$CXXCPP $CPPFLAGS'
25962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25965
25966
25967fi
25968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25969$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25970if test "$ac_cv_cxx_have_std_libs" = yes; then
25971
25972$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25973
25974fi
25975
cristy3ed852e2009-09-05 21:47:34 +000025976
25977 OPENMP_CXXFLAGS=
25978 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025979if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025980 enableval=$enable_openmp;
25981fi
25982
25983 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25985$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025986if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025987 $as_echo_n "(cached) " >&6
25988else
cristy8b350f62009-11-15 23:12:43 +000025989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25990/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025991
25992#ifndef _OPENMP
25993 choke me
25994#endif
25995#include <omp.h>
25996int main () { return omp_get_num_threads (); }
25997
25998_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025999if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026000 ac_cv_prog_cxx_openmp='none needed'
26001else
cristy8b350f62009-11-15 23:12:43 +000026002 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026003 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26004 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026005 ac_save_CXXFLAGS=$CXXFLAGS
26006 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26008/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026009
26010#ifndef _OPENMP
26011 choke me
26012#endif
26013#include <omp.h>
26014int main () { return omp_get_num_threads (); }
26015
26016_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026017if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026018 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026019fi
cristy8b350f62009-11-15 23:12:43 +000026020rm -f core conftest.err conftest.$ac_objext \
26021 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026022 CXXFLAGS=$ac_save_CXXFLAGS
26023 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26024 break
26025 fi
26026 done
26027fi
cristy8b350f62009-11-15 23:12:43 +000026028rm -f core conftest.err conftest.$ac_objext \
26029 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026030fi
cristy8b350f62009-11-15 23:12:43 +000026031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026032$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26033 case $ac_cv_prog_cxx_openmp in #(
26034 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026035 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026036 *)
cristy8b350f62009-11-15 23:12:43 +000026037 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026038 esac
26039 fi
26040
26041
26042 ac_ext=c
26043ac_cpp='$CPP $CPPFLAGS'
26044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26046ac_compiler_gnu=$ac_cv_c_compiler_gnu
26047
26048
cristy8b350f62009-11-15 23:12:43 +000026049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026050$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26051 if \
cristy964cb7f2010-04-25 23:18:00 +000026052 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026053 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026054 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026055 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026056 have_magick_plus_plus='yes'
26057 else
26058 have_magick_plus_plus='no (failed tests)'
26059 fi
cristyad38abe2012-12-23 23:03:21 +000026060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26061$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026062 LIBS="$OLIBS"
26063fi
cristy73bd4a52010-10-05 11:24:23 +000026064 if test "$have_magick_plus_plus" = 'yes'; then
26065 WITH_MAGICK_PLUS_PLUS_TRUE=
26066 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26067else
26068 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26069 WITH_MAGICK_PLUS_PLUS_FALSE=
26070fi
26071
cristy3ed852e2009-09-05 21:47:34 +000026072
26073# Only check for delegate libraries in subdirectories if requested.
26074if test "$enable_delegate_build" != 'no'; then
26075 # Check for delegate sub-directories and add -I & -L options as required.
26076 # This presumes that delegates are installed as detailed in the ImageMagick
26077 # README. If delegates are installed in a standard location where the
26078 # compiler will automatically find them then these options should not be
26079 # required.
26080
26081 #
26082 # Most delegates have includes in the same directory as the library, but not all...
26083 #
26084 # Includes
cristy2542fc62011-12-06 17:50:25 +000026085 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 +000026086 if test -d "$builddir/$dir"; then
26087 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26088 else
26089 if test -d "$srcdirfull/$dir"; then
26090 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26091 fi
26092 fi
26093 done
26094
26095 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026096 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 +000026097 if test -d "$builddir/$dir/.libs"; then
26098 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26099 else
26100 if test -d "$srcdirfull/$dir/.libs"; then
26101 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26102 fi
26103 fi
26104 if test -d "$builddir/$dir"; then
26105 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26106 else
26107 if test -d "$srcdirfull/$dir"; then
26108 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26109 fi
26110 fi
26111 done
26112fi
26113
26114# Assume that delegate headers reside under same directory as ImageMagick
26115# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026116MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026117
26118#
26119# Find the X11 RGB database
26120#
cristy8b350f62009-11-15 23:12:43 +000026121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026122$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026123if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026124 $as_echo_n "(cached) " >&6
26125else
26126 # Look for the header file in a standard set of common directories.
26127# Check X11 before X11Rn because it is often a symlink to the current release.
26128 for ac_dir in \
26129 /lib/usr/lib/X11 \
26130 /usr/X11/lib \
26131 /usr/X11R4/lib \
26132 /usr/X11R5/lib \
26133 /usr/X11R6/lib \
26134 /usr/X11R7/lib \
26135 /usr/X386/lib \
26136 /usr/XFree86/lib/X11 \
26137 /usr/athena/lib \
26138 /usr/lib \
26139 /usr/lib/X11 \
26140 /usr/lib/X11R4 \
26141 /usr/lib/X11R5 \
26142 /usr/lib/X11R6 \
26143 /usr/lib/X11R7 \
26144 /usr/local/X11/lib \
26145 /usr/local/X11R4/lib \
26146 /usr/local/X11R5/lib \
26147 /usr/local/X11R6/lib \
26148 /usr/local/lib \
26149 /usr/local/lib/X11 \
26150 /usr/local/lib/X11R4 \
26151 /usr/local/lib/X11R5 \
26152 /usr/local/lib/X11R6 \
26153 /usr/local/lib/X11R7 \
26154 /usr/local/x11r5/lib \
26155 /usr/lpp/Xamples/lib \
26156 /usr/openwin/lib \
26157 /usr/openwin/share/lib \
26158 /usr/unsupported/lib \
26159 /usr/x386/lib \
26160 ; do
26161 if test -f "$ac_dir/X11/rgb.txt"; then
26162 im_cv_x_configure="$ac_dir/X11/"
26163 break
26164 elif test -f "$ac_dir/rgb.txt"; then
26165 im_cv_x_configure="$ac_dir/"
26166 break
26167 fi
26168
26169 done
26170fi
cristy8b350f62009-11-15 23:12:43 +000026171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026172$as_echo "$im_cv_x_configure" >&6; }
26173X11_CONFIGURE_PATH="$im_cv_x_configure"
26174case "${build_os}" in
26175 mingw* )
26176 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26177 ;;
26178esac
26179
26180cat >>confdefs.h <<_ACEOF
26181#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26182_ACEOF
26183
26184
26185#
26186# Find OpenMP library
26187#
26188GOMP_LIBS=''
26189if test "$enable_openmp" != 'no'; then
26190 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026191 # Open64 (passes for GCC but uses different OpenMP implementation)
26192 if test "x$GOMP_LIBS" = x ; then
26193 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26195$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26196if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26197 $as_echo_n "(cached) " >&6
26198else
26199 ac_check_lib_save_LIBS=$LIBS
26200LIBS="-lopenmp $LIBS"
26201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26202/* end confdefs.h. */
26203
26204/* Override any GCC internal prototype to avoid an error.
26205 Use char because int might match the return type of a GCC
26206 builtin and then its argument prototype would still apply. */
26207#ifdef __cplusplus
26208extern "C"
26209#endif
26210char omp_get_num_procs ();
26211int
26212main ()
26213{
26214return omp_get_num_procs ();
26215 ;
26216 return 0;
26217}
26218_ACEOF
26219if ac_fn_c_try_link "$LINENO"; then :
26220 ac_cv_lib_openmp_omp_get_num_procs=yes
26221else
26222 ac_cv_lib_openmp_omp_get_num_procs=no
26223fi
26224rm -f core conftest.err conftest.$ac_objext \
26225 conftest$ac_exeext conftest.$ac_ext
26226LIBS=$ac_check_lib_save_LIBS
26227fi
26228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26229$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26230if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26231 GOMP_LIBS="-lopenmp"
26232fi
26233
26234 fi
26235 fi
26236 # GCC
26237 if test "x$GOMP_LIBS" = x ; then
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026239$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026240if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026241 $as_echo_n "(cached) " >&6
26242else
26243 ac_check_lib_save_LIBS=$LIBS
26244LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026246/* end confdefs.h. */
26247
26248/* Override any GCC internal prototype to avoid an error.
26249 Use char because int might match the return type of a GCC
26250 builtin and then its argument prototype would still apply. */
26251#ifdef __cplusplus
26252extern "C"
26253#endif
26254char GOMP_parallel_start ();
26255int
26256main ()
26257{
26258return GOMP_parallel_start ();
26259 ;
26260 return 0;
26261}
26262_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026263if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026264 ac_cv_lib_gomp_GOMP_parallel_start=yes
26265else
cristy8b350f62009-11-15 23:12:43 +000026266 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026267fi
cristy8b350f62009-11-15 23:12:43 +000026268rm -f core conftest.err conftest.$ac_objext \
26269 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026270LIBS=$ac_check_lib_save_LIBS
26271fi
cristy8b350f62009-11-15 23:12:43 +000026272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026273$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026274if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026275 GOMP_LIBS="-lgomp"
26276fi
cristy18307f12011-12-30 01:20:16 +000026277
26278 fi
cristy3ed852e2009-09-05 21:47:34 +000026279 else
cristy18307f12011-12-30 01:20:16 +000026280 # Sun CC
26281 if test "x$GOMP_LIBS" = x ; then
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026283$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026284if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026285 $as_echo_n "(cached) " >&6
26286else
26287 ac_check_lib_save_LIBS=$LIBS
26288LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026290/* end confdefs.h. */
26291
26292/* Override any GCC internal prototype to avoid an error.
26293 Use char because int might match the return type of a GCC
26294 builtin and then its argument prototype would still apply. */
26295#ifdef __cplusplus
26296extern "C"
26297#endif
26298char sunw_mp_register_warn ();
26299int
26300main ()
26301{
26302return sunw_mp_register_warn ();
26303 ;
26304 return 0;
26305}
26306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026307if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026308 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26309else
cristy8b350f62009-11-15 23:12:43 +000026310 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026311fi
cristy8b350f62009-11-15 23:12:43 +000026312rm -f core conftest.err conftest.$ac_objext \
26313 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026314LIBS=$ac_check_lib_save_LIBS
26315fi
cristy8b350f62009-11-15 23:12:43 +000026316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026317$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026318if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026319 GOMP_LIBS="-lmtsk"
26320fi
cristy18307f12011-12-30 01:20:16 +000026321
26322 fi
26323 # AIX xlc
26324 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026326$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026327if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026328 $as_echo_n "(cached) " >&6
26329else
26330 ac_check_lib_save_LIBS=$LIBS
26331LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026333/* end confdefs.h. */
26334
26335/* Override any GCC internal prototype to avoid an error.
26336 Use char because int might match the return type of a GCC
26337 builtin and then its argument prototype would still apply. */
26338#ifdef __cplusplus
26339extern "C"
26340#endif
26341char _xlsmpFlush ();
26342int
26343main ()
26344{
26345return _xlsmpFlush ();
26346 ;
26347 return 0;
26348}
26349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026351 ac_cv_lib_xlsmp__xlsmpFlush=yes
26352else
cristy8b350f62009-11-15 23:12:43 +000026353 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026354fi
cristy8b350f62009-11-15 23:12:43 +000026355rm -f core conftest.err conftest.$ac_objext \
26356 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026357LIBS=$ac_check_lib_save_LIBS
26358fi
cristy8b350f62009-11-15 23:12:43 +000026359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026360$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026361if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026362 GOMP_LIBS="-lxlsmp"
26363fi
cristy18307f12011-12-30 01:20:16 +000026364
26365 fi
26366 # SGI IRIX 6.5 MIPSpro C/C++
26367 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026369$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026370if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026371 $as_echo_n "(cached) " >&6
26372else
26373 ac_check_lib_save_LIBS=$LIBS
26374LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026376/* end confdefs.h. */
26377
26378/* Override any GCC internal prototype to avoid an error.
26379 Use char because int might match the return type of a GCC
26380 builtin and then its argument prototype would still apply. */
26381#ifdef __cplusplus
26382extern "C"
26383#endif
26384char mp_destroy ();
26385int
26386main ()
26387{
26388return mp_destroy ();
26389 ;
26390 return 0;
26391}
26392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026393if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026394 ac_cv_lib_mp_mp_destroy=yes
26395else
cristy8b350f62009-11-15 23:12:43 +000026396 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026397fi
cristy8b350f62009-11-15 23:12:43 +000026398rm -f core conftest.err conftest.$ac_objext \
26399 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026400LIBS=$ac_check_lib_save_LIBS
26401fi
cristy8b350f62009-11-15 23:12:43 +000026402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026403$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026404if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026405 GOMP_LIBS="-lmp"
26406fi
cristy18307f12011-12-30 01:20:16 +000026407
26408 fi
cristy3ed852e2009-09-05 21:47:34 +000026409 fi
26410 LIBS="$GOMP_LIBS $LIBS"
26411fi
26412
26413
26414#
26415# Find Posix threads library
26416#
26417THREAD_LIBS=''
26418if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26419
26420 if test "x$PTHREAD_LIBS" = "x"; then
26421 case "${host_cpu}-${host_os}" in
26422 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026423
26424
26425
26426ac_ext=c
26427ac_cpp='$CPP $CPPFLAGS'
26428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26430ac_compiler_gnu=$ac_cv_c_compiler_gnu
26431
26432magick_pthread_lib_ok=no
26433
26434LIB=-lc_r
26435save_LIBS="$LIBS"
26436LIBS="$LIBS $LIB"
26437
26438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26439$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26441/* end confdefs.h. */
26442#include <pthread.h>
26443int
26444main ()
26445{
26446 pthread_t th;
26447 pthread_join(th, 0);
26448 pthread_attr_init(0);
26449 pthread_cleanup_push(0, 0);
26450 pthread_create(0,0,0,0);
26451 pthread_cleanup_pop(0);
26452 ;
26453 return 0;
26454}
26455_ACEOF
26456if ac_fn_c_try_link "$LINENO"; then :
26457 magick_pthread_lib_ok=yes
26458fi
26459rm -f core conftest.err conftest.$ac_objext \
26460 conftest$ac_exeext conftest.$ac_ext
26461
26462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26463$as_echo "${magick_pthread_lib_ok}" >&6; }
26464if test "$magick_pthread_lib_ok" = yes
26465then
26466 PTHREAD_LIBS=-lc_r
26467 :
26468else
26469
26470 :
26471fi
26472
26473LIBS="$save_LIBS"
26474
26475ac_ext=c
26476ac_cpp='$CPP $CPPFLAGS'
26477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26479ac_compiler_gnu=$ac_cv_c_compiler_gnu
26480
26481 ;;
cristy3ed852e2009-09-05 21:47:34 +000026482 esac
26483 fi
26484
26485 for lib in pthread pthreads; do
26486 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026487
26488
26489
26490ac_ext=c
26491ac_cpp='$CPP $CPPFLAGS'
26492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26494ac_compiler_gnu=$ac_cv_c_compiler_gnu
26495
26496magick_pthread_lib_ok=no
26497
26498LIB=-l$lib
26499save_LIBS="$LIBS"
26500LIBS="$LIBS $LIB"
26501
26502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26503$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26505/* end confdefs.h. */
26506#include <pthread.h>
26507int
26508main ()
26509{
26510 pthread_t th;
26511 pthread_join(th, 0);
26512 pthread_attr_init(0);
26513 pthread_cleanup_push(0, 0);
26514 pthread_create(0,0,0,0);
26515 pthread_cleanup_pop(0);
26516 ;
26517 return 0;
26518}
26519_ACEOF
26520if ac_fn_c_try_link "$LINENO"; then :
26521 magick_pthread_lib_ok=yes
26522fi
26523rm -f core conftest.err conftest.$ac_objext \
26524 conftest$ac_exeext conftest.$ac_ext
26525
26526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26527$as_echo "${magick_pthread_lib_ok}" >&6; }
26528if test "$magick_pthread_lib_ok" = yes
26529then
26530 PTHREAD_LIBS=-l$lib
26531 :
26532else
26533
26534 :
26535fi
26536
26537LIBS="$save_LIBS"
26538
26539ac_ext=c
26540ac_cpp='$CPP $CPPFLAGS'
26541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26543ac_compiler_gnu=$ac_cv_c_compiler_gnu
26544
26545
cristy3ed852e2009-09-05 21:47:34 +000026546 fi
26547 done
26548
26549 THREAD_LIBS="$PTHREAD_LIBS"
26550 LIBS="$LIBS $THREAD_LIBS"
26551fi
26552
26553
26554#
26555# Check for umem.
26556#
26557have_umem='no'
26558UMEM_LIBS=''
26559if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026561$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26563$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026564 failed=0
26565 passed=0
cristy8b350f62009-11-15 23:12:43 +000026566 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026567if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026568 passed=`expr $passed + 1`
26569else
26570 failed=`expr $failed + 1`
26571fi
26572
26573
cristy8b350f62009-11-15 23:12:43 +000026574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026575$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026576if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026577 $as_echo_n "(cached) " >&6
26578else
26579 ac_check_lib_save_LIBS=$LIBS
26580LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026582/* end confdefs.h. */
26583
26584/* Override any GCC internal prototype to avoid an error.
26585 Use char because int might match the return type of a GCC
26586 builtin and then its argument prototype would still apply. */
26587#ifdef __cplusplus
26588extern "C"
26589#endif
26590char umem_alloc ();
26591int
26592main ()
26593{
26594return umem_alloc ();
26595 ;
26596 return 0;
26597}
26598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026599if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026600 ac_cv_lib_umem_umem_alloc=yes
26601else
cristy8b350f62009-11-15 23:12:43 +000026602 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026603fi
cristy8b350f62009-11-15 23:12:43 +000026604rm -f core conftest.err conftest.$ac_objext \
26605 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026606LIBS=$ac_check_lib_save_LIBS
26607fi
cristy8b350f62009-11-15 23:12:43 +000026608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026609$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026610if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026611 passed=`expr $passed + 1`
26612else
26613 failed=`expr $failed + 1`
26614fi
26615
cristy8b350f62009-11-15 23:12:43 +000026616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026617$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026618if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026619 $as_echo_n "(cached) " >&6
26620else
26621 ac_check_lib_save_LIBS=$LIBS
26622LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026624/* end confdefs.h. */
26625
26626/* Override any GCC internal prototype to avoid an error.
26627 Use char because int might match the return type of a GCC
26628 builtin and then its argument prototype would still apply. */
26629#ifdef __cplusplus
26630extern "C"
26631#endif
26632char umem_free ();
26633int
26634main ()
26635{
26636return umem_free ();
26637 ;
26638 return 0;
26639}
26640_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026641if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026642 ac_cv_lib_umem_umem_free=yes
26643else
cristy8b350f62009-11-15 23:12:43 +000026644 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026645fi
cristy8b350f62009-11-15 23:12:43 +000026646rm -f core conftest.err conftest.$ac_objext \
26647 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026648LIBS=$ac_check_lib_save_LIBS
26649fi
cristy8b350f62009-11-15 23:12:43 +000026650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026651$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026652if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026653 passed=`expr $passed + 1`
26654else
26655 failed=`expr $failed + 1`
26656fi
26657
cristy8b350f62009-11-15 23:12:43 +000026658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026659$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26660 if test $passed -gt 0; then
26661 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26663$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026664 have_umem='no (failed tests)'
26665 else
26666 UMEM_LIBS='-lumem'
26667 LIBS="$UMEM_LIBS $LIBS"
26668
cristy8b350f62009-11-15 23:12:43 +000026669$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026670
cristyad38abe2012-12-23 23:03:21 +000026671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26672$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026673 have_umem='yes'
26674 fi
26675 else
cristyad38abe2012-12-23 23:03:21 +000026676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26677$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026678 fi
26679fi
cristy73bd4a52010-10-05 11:24:23 +000026680 if test "$have_umem" = 'yes'; then
26681 HasUMEM_TRUE=
26682 HasUMEM_FALSE='#'
26683else
26684 HasUMEM_TRUE='#'
26685 HasUMEM_FALSE=
26686fi
26687
cristy3ed852e2009-09-05 21:47:34 +000026688
26689
26690#
26691# Add support for ccmalloc memory debugging library if requested
26692#
26693have_ccmalloc='no'
26694CCMALLOC_LIBS=''
26695if test "$enable_ccmalloc" = 'yes'; then
26696 # Extract the first word of "ccmalloc", so it can be a program name with args.
26697set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026699$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026700if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026701 $as_echo_n "(cached) " >&6
26702else
26703 case $CCMALLOCDelegate in
26704 [\\/]* | ?:[\\/]*)
26705 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26706 ;;
26707 *)
26708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26709for as_dir in $PATH
26710do
26711 IFS=$as_save_IFS
26712 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026713 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026715 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026717 break 2
26718 fi
26719done
cristy8b350f62009-11-15 23:12:43 +000026720 done
cristy3ed852e2009-09-05 21:47:34 +000026721IFS=$as_save_IFS
26722
26723 ;;
26724esac
26725fi
26726CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26727if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026729$as_echo "$CCMALLOCDelegate" >&6; }
26730else
cristy8b350f62009-11-15 23:12:43 +000026731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026732$as_echo "no" >&6; }
26733fi
26734
26735
26736 if test -n "$CCMALLOCDelegate"; then
26737 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26738 OLIBS="$LIBS"
26739 # Assume that gcc is used with ccmalloc.
26740 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026742$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026743if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026744 $as_echo_n "(cached) " >&6
26745else
26746 ac_check_lib_save_LIBS=$LIBS
26747LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026749/* end confdefs.h. */
26750
26751/* Override any GCC internal prototype to avoid an error.
26752 Use char because int might match the return type of a GCC
26753 builtin and then its argument prototype would still apply. */
26754#ifdef __cplusplus
26755extern "C"
26756#endif
26757char ccmalloc_malloc ();
26758int
26759main ()
26760{
26761return ccmalloc_malloc ();
26762 ;
26763 return 0;
26764}
26765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026766if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026767 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26768else
cristy8b350f62009-11-15 23:12:43 +000026769 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026770fi
cristy8b350f62009-11-15 23:12:43 +000026771rm -f core conftest.err conftest.$ac_objext \
26772 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026773LIBS=$ac_check_lib_save_LIBS
26774fi
cristy8b350f62009-11-15 23:12:43 +000026775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026776$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026777if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026778 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26779fi
26780
26781 if test -n "$CCMALLOC_LIBS"; then
26782 LIBS="$OLIBS"
26783 LIBS="$LIBS $CCMALLOC_LIBS"
26784 have_ccmalloc='yes'
26785 else
26786 LIBS="$OLIBS"
26787 fi
26788 fi
26789fi
26790
26791#
26792# Add support for efence memory debugging library if requested
26793#
26794if test "$enable_efence" = 'yes'; then
26795 EFENCE_LIBS='-lefence'
26796 LIBS="$EFENCE_LIBS $LIBS"
26797fi
26798
cristy3ed852e2009-09-05 21:47:34 +000026799
26800#
26801# Check for BZLIB
26802#
26803
26804
26805# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026806if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026807 withval=$with_bzlib; with_bzlib=$withval
26808else
26809 with_bzlib='yes'
26810fi
26811
26812
26813if test "$with_bzlib" != 'yes'; then
26814 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26815fi
26816
26817have_bzlib='no'
26818if test "$with_bzlib" != 'no'; then
26819 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26821$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026823$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26825$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026826 failed=0
26827 passed=0
26828 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026829 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026830if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026831 passed=`expr $passed + 1`
26832else
26833 failed=`expr $failed + 1`
26834fi
26835
26836
cristy8b350f62009-11-15 23:12:43 +000026837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026838$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026839if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026840 $as_echo_n "(cached) " >&6
26841else
26842 ac_check_lib_save_LIBS=$LIBS
26843LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026845/* end confdefs.h. */
26846
26847/* Override any GCC internal prototype to avoid an error.
26848 Use char because int might match the return type of a GCC
26849 builtin and then its argument prototype would still apply. */
26850#ifdef __cplusplus
26851extern "C"
26852#endif
26853char BZ2_bzDecompress ();
26854int
26855main ()
26856{
26857return BZ2_bzDecompress ();
26858 ;
26859 return 0;
26860}
26861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026862if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026863 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26864else
cristy8b350f62009-11-15 23:12:43 +000026865 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026866fi
cristy8b350f62009-11-15 23:12:43 +000026867rm -f core conftest.err conftest.$ac_objext \
26868 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026869LIBS=$ac_check_lib_save_LIBS
26870fi
cristy8b350f62009-11-15 23:12:43 +000026871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026872$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026873if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026874 found_libbz=`expr $found_libbz + 1`
26875fi
26876
26877 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026879$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026880if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026881 $as_echo_n "(cached) " >&6
26882else
26883 ac_check_lib_save_LIBS=$LIBS
26884LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026886/* end confdefs.h. */
26887
26888/* Override any GCC internal prototype to avoid an error.
26889 Use char because int might match the return type of a GCC
26890 builtin and then its argument prototype would still apply. */
26891#ifdef __cplusplus
26892extern "C"
26893#endif
26894char _imp__BZ2_decompress ();
26895int
26896main ()
26897{
26898return _imp__BZ2_decompress ();
26899 ;
26900 return 0;
26901}
26902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026903if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026904 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26905else
cristy8b350f62009-11-15 23:12:43 +000026906 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026907fi
cristy8b350f62009-11-15 23:12:43 +000026908rm -f core conftest.err conftest.$ac_objext \
26909 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026910LIBS=$ac_check_lib_save_LIBS
26911fi
cristy8b350f62009-11-15 23:12:43 +000026912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026913$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026914if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026915 found_libbz=`expr $found_libbz + 1`
26916fi
26917
26918 fi
26919 if test $found_libbz -gt 0; then
26920 passed=`expr $passed + 1`
26921 else
26922 failed=`expr $failed + 1`
26923 fi
cristy8b350f62009-11-15 23:12:43 +000026924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026925$as_echo_n "checking if BZLIB package is complete... " >&6; }
26926 if test $passed -gt 0; then
26927 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26929$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026930 have_bzlib='no (failed tests)'
26931 else
26932 BZLIB_LIBS='-lbz2'
26933 LIBS="$BZLIB_LIBS $LIBS"
26934
cristy8b350f62009-11-15 23:12:43 +000026935$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026936
cristyad38abe2012-12-23 23:03:21 +000026937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26938$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026939 have_bzlib='yes'
26940 fi
26941 else
cristyad38abe2012-12-23 23:03:21 +000026942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26943$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026944 fi
26945fi
cristy73bd4a52010-10-05 11:24:23 +000026946 if test "$have_bzlib" = 'yes'; then
26947 BZLIB_DELEGATE_TRUE=
26948 BZLIB_DELEGATE_FALSE='#'
26949else
26950 BZLIB_DELEGATE_TRUE='#'
26951 BZLIB_DELEGATE_FALSE=
26952fi
26953
cristy3ed852e2009-09-05 21:47:34 +000026954
26955
26956#
26957# Find the X11 include and library directories.
26958#
26959IPC_LIBS=''
26960X11_LIBS=''
26961XEXT_LIBS=''
26962XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026964$as_echo_n "checking for X... " >&6; }
26965
26966
26967# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026968if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026969 withval=$with_x;
26970fi
26971
26972# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26973if test "x$with_x" = xno; then
26974 # The user explicitly disabled X.
26975 have_x=disabled
26976else
26977 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026978 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026979 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026980 $as_echo_n "(cached) " >&6
26981else
26982 # One or both of the vars are not set, and there is no cached value.
26983ac_x_includes=no ac_x_libraries=no
26984rm -f -r conftest.dir
26985if mkdir conftest.dir; then
26986 cd conftest.dir
26987 cat >Imakefile <<'_ACEOF'
26988incroot:
26989 @echo incroot='${INCROOT}'
26990usrlibdir:
26991 @echo usrlibdir='${USRLIBDIR}'
26992libdir:
26993 @echo libdir='${LIBDIR}'
26994_ACEOF
26995 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026996 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026997 for ac_var in incroot usrlibdir libdir; do
26998 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26999 done
27000 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27001 for ac_extension in a so sl dylib la dll; do
27002 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27003 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27004 ac_im_usrlibdir=$ac_im_libdir; break
27005 fi
27006 done
27007 # Screen out bogus values from the imake configuration. They are
27008 # bogus both because they are the default anyway, and because
27009 # using them would break gcc on systems where it needs fixed includes.
27010 case $ac_im_incroot in
27011 /usr/include) ac_x_includes= ;;
27012 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27013 esac
27014 case $ac_im_usrlibdir in
27015 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27016 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27017 esac
27018 fi
27019 cd ..
27020 rm -f -r conftest.dir
27021fi
27022
27023# Standard set of common directories for X headers.
27024# Check X11 before X11Rn because it is often a symlink to the current release.
27025ac_x_header_dirs='
27026/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027027/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027028/usr/X11R6/include
27029/usr/X11R5/include
27030/usr/X11R4/include
27031
27032/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027033/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027034/usr/include/X11R6
27035/usr/include/X11R5
27036/usr/include/X11R4
27037
27038/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027039/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027040/usr/local/X11R6/include
27041/usr/local/X11R5/include
27042/usr/local/X11R4/include
27043
27044/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027045/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027046/usr/local/include/X11R6
27047/usr/local/include/X11R5
27048/usr/local/include/X11R4
27049
27050/usr/X386/include
27051/usr/x386/include
27052/usr/XFree86/include/X11
27053
27054/usr/include
27055/usr/local/include
27056/usr/unsupported/include
27057/usr/athena/include
27058/usr/local/x11r5/include
27059/usr/lpp/Xamples/include
27060
27061/usr/openwin/include
27062/usr/openwin/share/include'
27063
27064if test "$ac_x_includes" = no; then
27065 # Guess where to find include files, by looking for Xlib.h.
27066 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027068/* end confdefs.h. */
27069#include <X11/Xlib.h>
27070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027071if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027072 # We can compile using X headers with no special include directory.
27073ac_x_includes=
27074else
cristyc7083c12009-10-14 03:16:55 +000027075 for ac_dir in $ac_x_header_dirs; do
27076 if test -r "$ac_dir/X11/Xlib.h"; then
27077 ac_x_includes=$ac_dir
27078 break
27079 fi
27080done
27081fi
cristyda16f162011-02-19 23:52:17 +000027082rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027083fi # $ac_x_includes = no
27084
27085if test "$ac_x_libraries" = no; then
27086 # Check for the libraries.
27087 # See if we find them without any special options.
27088 # Don't add to $LIBS permanently.
27089 ac_save_LIBS=$LIBS
27090 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027092/* end confdefs.h. */
27093#include <X11/Xlib.h>
27094int
27095main ()
27096{
27097XrmInitialize ()
27098 ;
27099 return 0;
27100}
27101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027102if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027103 LIBS=$ac_save_LIBS
27104# We can link X programs with no special library path.
27105ac_x_libraries=
27106else
cristy8b350f62009-11-15 23:12:43 +000027107 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027108for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27109do
27110 # Don't even attempt the hair of trying to link an X program!
27111 for ac_extension in a so sl dylib la dll; do
27112 if test -r "$ac_dir/libX11.$ac_extension"; then
27113 ac_x_libraries=$ac_dir
27114 break 2
27115 fi
27116 done
27117done
27118fi
cristy8b350f62009-11-15 23:12:43 +000027119rm -f core conftest.err conftest.$ac_objext \
27120 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027121fi # $ac_x_libraries = no
27122
27123case $ac_x_includes,$ac_x_libraries in #(
27124 no,* | *,no | *\'*)
27125 # Didn't find X, or a directory has "'" in its name.
27126 ac_cv_have_x="have_x=no";; #(
27127 *)
27128 # Record where we found X for the cache.
27129 ac_cv_have_x="have_x=yes\
27130 ac_x_includes='$ac_x_includes'\
27131 ac_x_libraries='$ac_x_libraries'"
27132esac
27133fi
27134;; #(
27135 *) have_x=yes;;
27136 esac
27137 eval "$ac_cv_have_x"
27138fi # $with_x != no
27139
27140if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027142$as_echo "$have_x" >&6; }
27143 no_x=yes
27144else
27145 # If each of the values was on the command line, it overrides each guess.
27146 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27147 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27148 # Update the cache value to reflect the command line values.
27149 ac_cv_have_x="have_x=yes\
27150 ac_x_includes='$x_includes'\
27151 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027153$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27154fi
27155
cristy3ed852e2009-09-05 21:47:34 +000027156if test "$no_x" = yes; then
27157 # Not all programs may use this symbol, but it does not hurt to define it.
27158
cristy8b350f62009-11-15 23:12:43 +000027159$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027160
27161 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27162else
27163 if test -n "$x_includes"; then
27164 X_CFLAGS="$X_CFLAGS -I$x_includes"
27165 fi
27166
27167 # It would also be nice to do this for all -L options, not just this one.
27168 if test -n "$x_libraries"; then
27169 X_LIBS="$X_LIBS -L$x_libraries"
27170 # For Solaris; some versions of Sun CC require a space after -R and
27171 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027173$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27174 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27175 ac_xsave_c_werror_flag=$ac_c_werror_flag
27176 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027178/* end confdefs.h. */
27179
27180int
27181main ()
27182{
27183
27184 ;
27185 return 0;
27186}
27187_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027188if ac_fn_c_try_link "$LINENO"; then :
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027190$as_echo "no" >&6; }
27191 X_LIBS="$X_LIBS -R$x_libraries"
27192else
cristy8b350f62009-11-15 23:12:43 +000027193 LIBS="$ac_xsave_LIBS -R $x_libraries"
27194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027195/* end confdefs.h. */
27196
27197int
27198main ()
27199{
27200
27201 ;
27202 return 0;
27203}
27204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027205if ac_fn_c_try_link "$LINENO"; then :
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027207$as_echo "yes" >&6; }
27208 X_LIBS="$X_LIBS -R $x_libraries"
27209else
cristy8b350f62009-11-15 23:12:43 +000027210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027211$as_echo "neither works" >&6; }
27212fi
cristy8b350f62009-11-15 23:12:43 +000027213rm -f core conftest.err conftest.$ac_objext \
27214 conftest$ac_exeext conftest.$ac_ext
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 ac_c_werror_flag=$ac_xsave_c_werror_flag
27219 LIBS=$ac_xsave_LIBS
27220 fi
27221
27222 # Check for system-dependent libraries X programs must link with.
27223 # Do this before checking for the system-independent R6 libraries
27224 # (-lICE), since we may need -lsocket or whatever for X linking.
27225
27226 if test "$ISC" = yes; then
27227 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27228 else
27229 # Martyn Johnson says this is needed for Ultrix, if the X
27230 # libraries were built with DECnet support. And Karl Berry says
27231 # the Alpha needs dnet_stub (dnet does not exist).
27232 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027234/* end confdefs.h. */
27235
27236/* Override any GCC internal prototype to avoid an error.
27237 Use char because int might match the return type of a GCC
27238 builtin and then its argument prototype would still apply. */
27239#ifdef __cplusplus
27240extern "C"
27241#endif
27242char XOpenDisplay ();
27243int
27244main ()
27245{
27246return XOpenDisplay ();
27247 ;
27248 return 0;
27249}
27250_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027251if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027252
cristy8b350f62009-11-15 23:12:43 +000027253else
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027255$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027256if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027257 $as_echo_n "(cached) " >&6
27258else
27259 ac_check_lib_save_LIBS=$LIBS
27260LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027262/* end confdefs.h. */
27263
27264/* Override any GCC internal prototype to avoid an error.
27265 Use char because int might match the return type of a GCC
27266 builtin and then its argument prototype would still apply. */
27267#ifdef __cplusplus
27268extern "C"
27269#endif
27270char dnet_ntoa ();
27271int
27272main ()
27273{
27274return dnet_ntoa ();
27275 ;
27276 return 0;
27277}
27278_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027279if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027280 ac_cv_lib_dnet_dnet_ntoa=yes
27281else
cristy8b350f62009-11-15 23:12:43 +000027282 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027283fi
cristy8b350f62009-11-15 23:12:43 +000027284rm -f core conftest.err conftest.$ac_objext \
27285 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027286LIBS=$ac_check_lib_save_LIBS
27287fi
cristy8b350f62009-11-15 23:12:43 +000027288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027289$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027290if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027291 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27292fi
27293
27294 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027296$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027297if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027298 $as_echo_n "(cached) " >&6
27299else
27300 ac_check_lib_save_LIBS=$LIBS
27301LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027303/* end confdefs.h. */
27304
27305/* Override any GCC internal prototype to avoid an error.
27306 Use char because int might match the return type of a GCC
27307 builtin and then its argument prototype would still apply. */
27308#ifdef __cplusplus
27309extern "C"
27310#endif
27311char dnet_ntoa ();
27312int
27313main ()
27314{
27315return dnet_ntoa ();
27316 ;
27317 return 0;
27318}
27319_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027320if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027321 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27322else
cristy8b350f62009-11-15 23:12:43 +000027323 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027324fi
cristy8b350f62009-11-15 23:12:43 +000027325rm -f core conftest.err conftest.$ac_objext \
27326 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027327LIBS=$ac_check_lib_save_LIBS
27328fi
cristy8b350f62009-11-15 23:12:43 +000027329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027330$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027331if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027332 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27333fi
27334
27335 fi
27336fi
cristy8b350f62009-11-15 23:12:43 +000027337rm -f core conftest.err conftest.$ac_objext \
27338 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027339 LIBS="$ac_xsave_LIBS"
27340
27341 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27342 # to get the SysV transport functions.
27343 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27344 # needs -lnsl.
27345 # The nsl library prevents programs from opening the X display
27346 # on Irix 5.2, according to T.E. Dickey.
27347 # The functions gethostbyname, getservbyname, and inet_addr are
27348 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027349 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027350if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027351
cristy3ed852e2009-09-05 21:47:34 +000027352fi
27353
cristy3ed852e2009-09-05 21:47:34 +000027354 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027356$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027357if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027358 $as_echo_n "(cached) " >&6
27359else
27360 ac_check_lib_save_LIBS=$LIBS
27361LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027363/* end confdefs.h. */
27364
27365/* Override any GCC internal prototype to avoid an error.
27366 Use char because int might match the return type of a GCC
27367 builtin and then its argument prototype would still apply. */
27368#ifdef __cplusplus
27369extern "C"
27370#endif
27371char gethostbyname ();
27372int
27373main ()
27374{
27375return gethostbyname ();
27376 ;
27377 return 0;
27378}
27379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027380if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027381 ac_cv_lib_nsl_gethostbyname=yes
27382else
cristy8b350f62009-11-15 23:12:43 +000027383 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027384fi
cristy8b350f62009-11-15 23:12:43 +000027385rm -f core conftest.err conftest.$ac_objext \
27386 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027387LIBS=$ac_check_lib_save_LIBS
27388fi
cristy8b350f62009-11-15 23:12:43 +000027389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027390$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027391if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027392 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27393fi
27394
27395 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027397$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027398if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027399 $as_echo_n "(cached) " >&6
27400else
27401 ac_check_lib_save_LIBS=$LIBS
27402LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027404/* end confdefs.h. */
27405
27406/* Override any GCC internal prototype to avoid an error.
27407 Use char because int might match the return type of a GCC
27408 builtin and then its argument prototype would still apply. */
27409#ifdef __cplusplus
27410extern "C"
27411#endif
27412char gethostbyname ();
27413int
27414main ()
27415{
27416return gethostbyname ();
27417 ;
27418 return 0;
27419}
27420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027421if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027422 ac_cv_lib_bsd_gethostbyname=yes
27423else
cristy8b350f62009-11-15 23:12:43 +000027424 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027425fi
cristy8b350f62009-11-15 23:12:43 +000027426rm -f core conftest.err conftest.$ac_objext \
27427 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027428LIBS=$ac_check_lib_save_LIBS
27429fi
cristy8b350f62009-11-15 23:12:43 +000027430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027431$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027432if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27434fi
27435
27436 fi
27437 fi
27438
27439 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27440 # socket/setsockopt and other routines are undefined under SCO ODT
27441 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27442 # on later versions), says Simon Leinen: it contains gethostby*
27443 # variants that don't use the name server (or something). -lsocket
27444 # must be given before -lnsl if both are needed. We assume that
27445 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027446 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027447if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027448
cristy3ed852e2009-09-05 21:47:34 +000027449fi
27450
cristy3ed852e2009-09-05 21:47:34 +000027451 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027453$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027454if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027455 $as_echo_n "(cached) " >&6
27456else
27457 ac_check_lib_save_LIBS=$LIBS
27458LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027460/* end confdefs.h. */
27461
27462/* Override any GCC internal prototype to avoid an error.
27463 Use char because int might match the return type of a GCC
27464 builtin and then its argument prototype would still apply. */
27465#ifdef __cplusplus
27466extern "C"
27467#endif
27468char connect ();
27469int
27470main ()
27471{
27472return connect ();
27473 ;
27474 return 0;
27475}
27476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027477if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027478 ac_cv_lib_socket_connect=yes
27479else
cristy8b350f62009-11-15 23:12:43 +000027480 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027481fi
cristy8b350f62009-11-15 23:12:43 +000027482rm -f core conftest.err conftest.$ac_objext \
27483 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027484LIBS=$ac_check_lib_save_LIBS
27485fi
cristy8b350f62009-11-15 23:12:43 +000027486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027487$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027488if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027489 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27490fi
27491
27492 fi
27493
27494 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027495 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027496if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027497
cristy3ed852e2009-09-05 21:47:34 +000027498fi
27499
cristy3ed852e2009-09-05 21:47:34 +000027500 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027502$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027503if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027504 $as_echo_n "(cached) " >&6
27505else
27506 ac_check_lib_save_LIBS=$LIBS
27507LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027509/* end confdefs.h. */
27510
27511/* Override any GCC internal prototype to avoid an error.
27512 Use char because int might match the return type of a GCC
27513 builtin and then its argument prototype would still apply. */
27514#ifdef __cplusplus
27515extern "C"
27516#endif
27517char remove ();
27518int
27519main ()
27520{
27521return remove ();
27522 ;
27523 return 0;
27524}
27525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027527 ac_cv_lib_posix_remove=yes
27528else
cristy8b350f62009-11-15 23:12:43 +000027529 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027530fi
cristy8b350f62009-11-15 23:12:43 +000027531rm -f core conftest.err conftest.$ac_objext \
27532 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027533LIBS=$ac_check_lib_save_LIBS
27534fi
cristy8b350f62009-11-15 23:12:43 +000027535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027536$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027537if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027538 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27539fi
27540
27541 fi
27542
27543 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027544 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027545if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027546
cristy3ed852e2009-09-05 21:47:34 +000027547fi
27548
cristy3ed852e2009-09-05 21:47:34 +000027549 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027551$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027552if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027553 $as_echo_n "(cached) " >&6
27554else
27555 ac_check_lib_save_LIBS=$LIBS
27556LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027558/* end confdefs.h. */
27559
27560/* Override any GCC internal prototype to avoid an error.
27561 Use char because int might match the return type of a GCC
27562 builtin and then its argument prototype would still apply. */
27563#ifdef __cplusplus
27564extern "C"
27565#endif
27566char shmat ();
27567int
27568main ()
27569{
27570return shmat ();
27571 ;
27572 return 0;
27573}
27574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027575if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027576 ac_cv_lib_ipc_shmat=yes
27577else
cristy8b350f62009-11-15 23:12:43 +000027578 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027579fi
cristy8b350f62009-11-15 23:12:43 +000027580rm -f core conftest.err conftest.$ac_objext \
27581 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027582LIBS=$ac_check_lib_save_LIBS
27583fi
cristy8b350f62009-11-15 23:12:43 +000027584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027585$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027586if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027587 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27588fi
27589
27590 fi
27591 fi
27592
27593 # Check for libraries that X11R6 Xt/Xaw programs need.
27594 ac_save_LDFLAGS=$LDFLAGS
27595 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27596 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27597 # check for ICE first), but we must link in the order -lSM -lICE or
27598 # we get undefined symbols. So assume we have SM if we have ICE.
27599 # These have to be linked with before -lX11, unlike the other
27600 # libraries we check for below, so use a different variable.
27601 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027603$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027604if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027605 $as_echo_n "(cached) " >&6
27606else
27607 ac_check_lib_save_LIBS=$LIBS
27608LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027610/* end confdefs.h. */
27611
27612/* Override any GCC internal prototype to avoid an error.
27613 Use char because int might match the return type of a GCC
27614 builtin and then its argument prototype would still apply. */
27615#ifdef __cplusplus
27616extern "C"
27617#endif
27618char IceConnectionNumber ();
27619int
27620main ()
27621{
27622return IceConnectionNumber ();
27623 ;
27624 return 0;
27625}
27626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027628 ac_cv_lib_ICE_IceConnectionNumber=yes
27629else
cristy8b350f62009-11-15 23:12:43 +000027630 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027631fi
cristy8b350f62009-11-15 23:12:43 +000027632rm -f core conftest.err conftest.$ac_objext \
27633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027634LIBS=$ac_check_lib_save_LIBS
27635fi
cristy8b350f62009-11-15 23:12:43 +000027636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027637$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027638if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027639 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27640fi
27641
27642 LDFLAGS=$ac_save_LDFLAGS
27643
27644fi
27645
27646if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27648$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027650$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27652$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027653 LDFLAGS="$LDFLAGS $X_LIBS"
27654 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27655 LIBS="$X11_LIBS $LIBS"
27656 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27657
27658
cristy8b350f62009-11-15 23:12:43 +000027659$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027660
27661 #
27662 # Check for X11 shared memory extension
27663 #
27664 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027665 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027666if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027667 have_shmctl='yes'
27668fi
27669
27670 if test "$have_shmctl" != 'yes'; then
27671 PERSIST_LIBS=$LIBS
27672 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027674/* end confdefs.h. */
27675
27676/* Override any GCC internal prototype to avoid an error.
27677 Use char because int might match the return type of a GCC
27678 builtin and then its argument prototype would still apply. */
27679#ifdef __cplusplus
27680extern "C"
27681#endif
27682char shmctl ();
27683int
27684main ()
27685{
27686return shmctl ();
27687 ;
27688 return 0;
27689}
27690_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027691if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027692 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027693fi
cristy8b350f62009-11-15 23:12:43 +000027694rm -f core conftest.err conftest.$ac_objext \
27695 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027696 LIBS=$PERSIST_LIBS
27697 fi
27698
27699 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027701$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027702if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027703 $as_echo_n "(cached) " >&6
27704else
27705 ac_check_lib_save_LIBS=$LIBS
27706LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027708/* end confdefs.h. */
27709
27710/* Override any GCC internal prototype to avoid an error.
27711 Use char because int might match the return type of a GCC
27712 builtin and then its argument prototype would still apply. */
27713#ifdef __cplusplus
27714extern "C"
27715#endif
27716char XShmAttach ();
27717int
27718main ()
27719{
27720return XShmAttach ();
27721 ;
27722 return 0;
27723}
27724_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027725if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027726 ac_cv_lib_Xext_XShmAttach=yes
27727else
cristy8b350f62009-11-15 23:12:43 +000027728 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027729fi
cristy8b350f62009-11-15 23:12:43 +000027730rm -f core conftest.err conftest.$ac_objext \
27731 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027732LIBS=$ac_check_lib_save_LIBS
27733fi
cristy8b350f62009-11-15 23:12:43 +000027734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027735$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027736if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027737 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027738$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027739
27740fi
27741
27742 fi
27743
27744 #
27745 # Check for X11 shape extension
27746 #
cristy8b350f62009-11-15 23:12:43 +000027747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027748$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027749if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027750 $as_echo_n "(cached) " >&6
27751else
27752 ac_check_lib_save_LIBS=$LIBS
27753LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027755/* end confdefs.h. */
27756
27757/* Override any GCC internal prototype to avoid an error.
27758 Use char because int might match the return type of a GCC
27759 builtin and then its argument prototype would still apply. */
27760#ifdef __cplusplus
27761extern "C"
27762#endif
27763char XShapeCombineMask ();
27764int
27765main ()
27766{
27767return XShapeCombineMask ();
27768 ;
27769 return 0;
27770}
27771_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027772if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027773 ac_cv_lib_Xext_XShapeCombineMask=yes
27774else
cristy8b350f62009-11-15 23:12:43 +000027775 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027776fi
cristy8b350f62009-11-15 23:12:43 +000027777rm -f core conftest.err conftest.$ac_objext \
27778 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027779LIBS=$ac_check_lib_save_LIBS
27780fi
cristy8b350f62009-11-15 23:12:43 +000027781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027782$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027783if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027784 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027785$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027786
27787fi
27788
cristy8b350f62009-11-15 23:12:43 +000027789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027790$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027791if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027792 $as_echo_n "(cached) " >&6
27793else
27794 ac_check_lib_save_LIBS=$LIBS
27795LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027797/* end confdefs.h. */
27798
27799/* Override any GCC internal prototype to avoid an error.
27800 Use char because int might match the return type of a GCC
27801 builtin and then its argument prototype would still apply. */
27802#ifdef __cplusplus
27803extern "C"
27804#endif
27805char XtSetEventDispatcher ();
27806int
27807main ()
27808{
27809return XtSetEventDispatcher ();
27810 ;
27811 return 0;
27812}
27813_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027814if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027815 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27816else
cristy8b350f62009-11-15 23:12:43 +000027817 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027818fi
cristy8b350f62009-11-15 23:12:43 +000027819rm -f core conftest.err conftest.$ac_objext \
27820 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027821LIBS=$ac_check_lib_save_LIBS
27822fi
cristy8b350f62009-11-15 23:12:43 +000027823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027824$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027825if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027826 XT_LIBS='-lXt'
27827fi
27828
27829 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27830fi
27831if test "$no_x" != 'yes'; then
27832 have_x='yes'
27833else
27834 have_x='no'
27835fi
cristy73bd4a52010-10-05 11:24:23 +000027836 if test "$have_x" = 'yes'; then
27837 X11_DELEGATE_TRUE=
27838 X11_DELEGATE_FALSE='#'
27839else
27840 X11_DELEGATE_TRUE='#'
27841 X11_DELEGATE_FALSE=
27842fi
27843
cristy3ed852e2009-09-05 21:47:34 +000027844
27845
27846
27847
27848#
27849# Check for ZLIB
27850#
27851
27852# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027853if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027854 withval=$with_zlib; with_zlib=$withval
27855else
27856 with_zlib='yes'
27857fi
27858
27859
27860if test "$with_zlib" != 'yes'; then
27861 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27862fi
27863
27864have_zlib='no'
27865ZLIB_LIBS=''
27866if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27868$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027870$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27872$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027873 ZLIB_LIBS=''
27874 failed=0
27875 passed=0
cristy8b350f62009-11-15 23:12:43 +000027876 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027877if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027878 passed=`expr $passed + 1`
27879else
27880 failed=`expr $failed + 1`
27881fi
27882
27883
cristy8b350f62009-11-15 23:12:43 +000027884 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027885if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027886 passed=`expr $passed + 1`
27887else
27888 failed=`expr $failed + 1`
27889fi
27890
27891
cristy8b350f62009-11-15 23:12:43 +000027892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027893$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027894if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027895 $as_echo_n "(cached) " >&6
27896else
27897 ac_check_lib_save_LIBS=$LIBS
27898LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027900/* end confdefs.h. */
27901
27902/* Override any GCC internal prototype to avoid an error.
27903 Use char because int might match the return type of a GCC
27904 builtin and then its argument prototype would still apply. */
27905#ifdef __cplusplus
27906extern "C"
27907#endif
27908char compress ();
27909int
27910main ()
27911{
27912return compress ();
27913 ;
27914 return 0;
27915}
27916_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027917if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027918 ac_cv_lib_z_compress=yes
27919else
cristy8b350f62009-11-15 23:12:43 +000027920 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027921fi
cristy8b350f62009-11-15 23:12:43 +000027922rm -f core conftest.err conftest.$ac_objext \
27923 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027924LIBS=$ac_check_lib_save_LIBS
27925fi
cristy8b350f62009-11-15 23:12:43 +000027926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027927$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027928if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027929 passed=`expr $passed + 1`
27930else
27931 failed=`expr $failed + 1`
27932fi
27933
cristy8b350f62009-11-15 23:12:43 +000027934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027935$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027936if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027937 $as_echo_n "(cached) " >&6
27938else
27939 ac_check_lib_save_LIBS=$LIBS
27940LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027942/* end confdefs.h. */
27943
27944/* Override any GCC internal prototype to avoid an error.
27945 Use char because int might match the return type of a GCC
27946 builtin and then its argument prototype would still apply. */
27947#ifdef __cplusplus
27948extern "C"
27949#endif
27950char uncompress ();
27951int
27952main ()
27953{
27954return uncompress ();
27955 ;
27956 return 0;
27957}
27958_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027959if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027960 ac_cv_lib_z_uncompress=yes
27961else
cristy8b350f62009-11-15 23:12:43 +000027962 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027963fi
cristy8b350f62009-11-15 23:12:43 +000027964rm -f core conftest.err conftest.$ac_objext \
27965 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027966LIBS=$ac_check_lib_save_LIBS
27967fi
cristy8b350f62009-11-15 23:12:43 +000027968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027969$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027970if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027971 passed=`expr $passed + 1`
27972else
27973 failed=`expr $failed + 1`
27974fi
27975
cristy8b350f62009-11-15 23:12:43 +000027976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027977$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027978if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027979 $as_echo_n "(cached) " >&6
27980else
27981 ac_check_lib_save_LIBS=$LIBS
27982LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027984/* end confdefs.h. */
27985
27986/* Override any GCC internal prototype to avoid an error.
27987 Use char because int might match the return type of a GCC
27988 builtin and then its argument prototype would still apply. */
27989#ifdef __cplusplus
27990extern "C"
27991#endif
27992char deflate ();
27993int
27994main ()
27995{
27996return deflate ();
27997 ;
27998 return 0;
27999}
28000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028001if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028002 ac_cv_lib_z_deflate=yes
28003else
cristy8b350f62009-11-15 23:12:43 +000028004 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028005fi
cristy8b350f62009-11-15 23:12:43 +000028006rm -f core conftest.err conftest.$ac_objext \
28007 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028008LIBS=$ac_check_lib_save_LIBS
28009fi
cristy8b350f62009-11-15 23:12:43 +000028010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028011$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028012if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028013 passed=`expr $passed + 1`
28014else
28015 failed=`expr $failed + 1`
28016fi
28017
cristy8b350f62009-11-15 23:12:43 +000028018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028019$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028020if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028021 $as_echo_n "(cached) " >&6
28022else
28023 ac_check_lib_save_LIBS=$LIBS
28024LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028026/* end confdefs.h. */
28027
28028/* Override any GCC internal prototype to avoid an error.
28029 Use char because int might match the return type of a GCC
28030 builtin and then its argument prototype would still apply. */
28031#ifdef __cplusplus
28032extern "C"
28033#endif
28034char inflate ();
28035int
28036main ()
28037{
28038return inflate ();
28039 ;
28040 return 0;
28041}
28042_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028043if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028044 ac_cv_lib_z_inflate=yes
28045else
cristy8b350f62009-11-15 23:12:43 +000028046 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028047fi
cristy8b350f62009-11-15 23:12:43 +000028048rm -f core conftest.err conftest.$ac_objext \
28049 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028050LIBS=$ac_check_lib_save_LIBS
28051fi
cristy8b350f62009-11-15 23:12:43 +000028052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028053$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028054if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028055 passed=`expr $passed + 1`
28056else
28057 failed=`expr $failed + 1`
28058fi
28059
cristy8b350f62009-11-15 23:12:43 +000028060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028061$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028062if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028063 $as_echo_n "(cached) " >&6
28064else
28065 ac_check_lib_save_LIBS=$LIBS
28066LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028068/* end confdefs.h. */
28069
28070/* Override any GCC internal prototype to avoid an error.
28071 Use char because int might match the return type of a GCC
28072 builtin and then its argument prototype would still apply. */
28073#ifdef __cplusplus
28074extern "C"
28075#endif
28076char gzseek ();
28077int
28078main ()
28079{
28080return gzseek ();
28081 ;
28082 return 0;
28083}
28084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028085if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028086 ac_cv_lib_z_gzseek=yes
28087else
cristy8b350f62009-11-15 23:12:43 +000028088 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028089fi
cristy8b350f62009-11-15 23:12:43 +000028090rm -f core conftest.err conftest.$ac_objext \
28091 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028092LIBS=$ac_check_lib_save_LIBS
28093fi
cristy8b350f62009-11-15 23:12:43 +000028094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028095$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028096if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028097 passed=`expr $passed + 1`
28098else
28099 failed=`expr $failed + 1`
28100fi
28101
cristy8b350f62009-11-15 23:12:43 +000028102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028103$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028104if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028105 $as_echo_n "(cached) " >&6
28106else
28107 ac_check_lib_save_LIBS=$LIBS
28108LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028110/* end confdefs.h. */
28111
28112/* Override any GCC internal prototype to avoid an error.
28113 Use char because int might match the return type of a GCC
28114 builtin and then its argument prototype would still apply. */
28115#ifdef __cplusplus
28116extern "C"
28117#endif
28118char gztell ();
28119int
28120main ()
28121{
28122return gztell ();
28123 ;
28124 return 0;
28125}
28126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028127if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028128 ac_cv_lib_z_gztell=yes
28129else
cristy8b350f62009-11-15 23:12:43 +000028130 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028131fi
cristy8b350f62009-11-15 23:12:43 +000028132rm -f core conftest.err conftest.$ac_objext \
28133 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028134LIBS=$ac_check_lib_save_LIBS
28135fi
cristy8b350f62009-11-15 23:12:43 +000028136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028137$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028138if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028139 passed=`expr $passed + 1`
28140else
28141 failed=`expr $failed + 1`
28142fi
28143
cristy8b350f62009-11-15 23:12:43 +000028144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028145$as_echo_n "checking if ZLIB package is complete... " >&6; }
28146 if test $passed -gt 0; then
28147 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28149$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028150 have_zlib='no (failed tests)'
28151 else
28152 ZLIB_LIBS='-lz'
28153 LIBS="$ZLIB_LIBS $LIBS"
28154
cristy8b350f62009-11-15 23:12:43 +000028155$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028156
cristyad38abe2012-12-23 23:03:21 +000028157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28158$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028159 have_zlib='yes'
28160 fi
28161 else
cristyad38abe2012-12-23 23:03:21 +000028162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28163$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028164 fi
28165fi
cristy73bd4a52010-10-05 11:24:23 +000028166 if test "$have_zlib" = 'yes'; then
28167 ZLIB_DELEGATE_TRUE=
28168 ZLIB_DELEGATE_FALSE='#'
28169else
28170 ZLIB_DELEGATE_TRUE='#'
28171 ZLIB_DELEGATE_FALSE=
28172fi
28173
cristy3ed852e2009-09-05 21:47:34 +000028174
28175
cristy5eef09f2012-10-16 12:08:28 +000028176# whether modules are built or not.
28177with_ltdl='yes'
28178have_ltdl='no'
28179LTDL_LIBS=''
28180if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28182$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28184$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28186$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028187 failed=0
28188 passed=0
28189 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28190if test "x$ac_cv_header_ltdl_h" = xyes; then :
28191 passed=`expr $passed + 1`
28192else
28193 failed=`expr $failed + 1`
28194fi
28195
28196
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28198$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28199if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28200 $as_echo_n "(cached) " >&6
28201else
28202 ac_check_lib_save_LIBS=$LIBS
28203LIBS="-lltdl $LIBS"
28204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28205/* end confdefs.h. */
28206
28207/* Override any GCC internal prototype to avoid an error.
28208 Use char because int might match the return type of a GCC
28209 builtin and then its argument prototype would still apply. */
28210#ifdef __cplusplus
28211extern "C"
28212#endif
28213char lt_dlinit ();
28214int
28215main ()
28216{
28217return lt_dlinit ();
28218 ;
28219 return 0;
28220}
28221_ACEOF
28222if ac_fn_c_try_link "$LINENO"; then :
28223 ac_cv_lib_ltdl_lt_dlinit=yes
28224else
28225 ac_cv_lib_ltdl_lt_dlinit=no
28226fi
28227rm -f core conftest.err conftest.$ac_objext \
28228 conftest$ac_exeext conftest.$ac_ext
28229LIBS=$ac_check_lib_save_LIBS
28230fi
28231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28232$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28233if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28234 passed=`expr $passed + 1`
28235else
28236 failed=`expr $failed + 1`
28237fi
28238
28239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28240$as_echo_n "checking if libltdl package is complete... " >&6; }
28241 if test $passed -gt 0 ; then
28242 if test $failed -gt 0 ; then
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28244$as_echo "no -- some components failed test" >&6; }
28245 have_ltdl='no (failed tests)'
28246 else
28247 LTDL_LIBS='-lltdl'
28248 LIBS="$LTDL_LIBS $LIBS"
28249
28250$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28251
28252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28253$as_echo "yes" >&6; }
28254 have_ltdl='yes'
28255 fi
28256 else
28257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28258$as_echo "no" >&6; }
28259 fi
cristyaf4cbf32012-10-16 23:47:41 +000028260 if test "$have_ltdl" != 'yes' ; then
28261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28263as_fn_error 1 "libltdl is required for modules build
28264See \`config.log' for more details" "$LINENO" 5; }
28265 fi
cristy5eef09f2012-10-16 12:08:28 +000028266fi
28267 if test "$have_ltdl" != 'no'; then
28268 WITH_LTDL_TRUE=
28269 WITH_LTDL_FALSE='#'
28270else
28271 WITH_LTDL_TRUE='#'
28272 WITH_LTDL_FALSE=
28273fi
28274
28275
cristy3ed852e2009-09-05 21:47:34 +000028276#
28277# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28278#
28279LIB_DL=''
28280if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028282$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028283if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028284 $as_echo_n "(cached) " >&6
28285else
28286 ac_check_lib_save_LIBS=$LIBS
28287LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028289/* end confdefs.h. */
28290
28291/* Override any GCC internal prototype to avoid an error.
28292 Use char because int might match the return type of a GCC
28293 builtin and then its argument prototype would still apply. */
28294#ifdef __cplusplus
28295extern "C"
28296#endif
28297char dlopen ();
28298int
28299main ()
28300{
28301return dlopen ();
28302 ;
28303 return 0;
28304}
28305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028306if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028307 ac_cv_lib_dl_dlopen=yes
28308else
cristy8b350f62009-11-15 23:12:43 +000028309 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028310fi
cristy8b350f62009-11-15 23:12:43 +000028311rm -f core conftest.err conftest.$ac_objext \
28312 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028313LIBS=$ac_check_lib_save_LIBS
28314fi
cristy8b350f62009-11-15 23:12:43 +000028315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028316$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028317if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028318 LIB_DL='-ldl'
28319fi
28320
28321 LIBS="$LIB_DL $LIBS"
28322fi
28323
28324
28325
28326#
28327# Check for Autotrace delegate library.
28328#
28329
28330# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028331if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028332 withval=$with_autotrace; with_autotrace=$withval
28333else
28334 with_autotrace='no'
28335fi
28336
28337
28338if test "$with_autotrace" != 'yes'; then
28339 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28340fi
28341
28342have_autotrace='no'
28343AUTOTRACE_CFLAGS=""
28344AUTOTRACE_LIBS=""
28345AUTOTRACE_PKG=""
28346if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28348$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028349
28350pkg_failed=no
28351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28352$as_echo_n "checking for AUTOTRACE... " >&6; }
28353
28354if test -n "$AUTOTRACE_CFLAGS"; then
28355 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28356 elif test -n "$PKG_CONFIG"; then
28357 if test -n "$PKG_CONFIG" && \
28358 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28359 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28360 ac_status=$?
28361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28362 test $ac_status = 0; }; then
28363 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28364else
28365 pkg_failed=yes
28366fi
28367 else
28368 pkg_failed=untried
28369fi
28370if test -n "$AUTOTRACE_LIBS"; then
28371 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28372 elif test -n "$PKG_CONFIG"; then
28373 if test -n "$PKG_CONFIG" && \
28374 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28375 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28376 ac_status=$?
28377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28378 test $ac_status = 0; }; then
28379 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28380else
28381 pkg_failed=yes
28382fi
28383 else
28384 pkg_failed=untried
28385fi
28386
28387
28388
28389if test $pkg_failed = yes; then
28390
28391if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28392 _pkg_short_errors_supported=yes
28393else
28394 _pkg_short_errors_supported=no
28395fi
28396 if test $_pkg_short_errors_supported = yes; then
28397 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28398 else
28399 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28400 fi
28401 # Put the nasty error message in config.log where it belongs
28402 echo "$AUTOTRACE_PKG_ERRORS" >&5
28403
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28405$as_echo "no" >&6; }
28406 have_autotrace=no
28407elif test $pkg_failed = untried; then
28408 have_autotrace=no
28409else
28410 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28411 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28413$as_echo "yes" >&6; }
28414 have_autotrace=yes
28415fi
cristyad38abe2012-12-23 23:03:21 +000028416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28417$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028418fi
28419
28420if test "$have_autotrace" = 'yes'; then
28421 failed=0
28422
cristy8b350f62009-11-15 23:12:43 +000028423$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028424
cristyc6722092012-10-14 00:19:31 +000028425 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028426 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028427 fi
28428fi
28429
cristy73bd4a52010-10-05 11:24:23 +000028430 if test "$have_autotrace" = 'yes'; then
28431 AUTOTRACE_DELEGATE_TRUE=
28432 AUTOTRACE_DELEGATE_FALSE='#'
28433else
28434 AUTOTRACE_DELEGATE_TRUE='#'
28435 AUTOTRACE_DELEGATE_FALSE=
28436fi
28437
cristy3ed852e2009-09-05 21:47:34 +000028438
28439
28440
28441
28442#
28443# Check for Display Postscript delegate library.
28444#
28445
28446# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028447if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028448 withval=$with_dps; with_dps=$withval
28449else
28450 with_dps='yes'
28451fi
28452
28453
28454if test "$with_dps" != 'yes'; then
28455 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28456fi
28457
28458have_dps='no'
28459DPS_LIBS=''
28460if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28462$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028464$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28466$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028467 failed=0
28468 passed=0
28469 PERSIST_CPPFLAGS="$CPPFLAGS"
28470 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028471 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 +000028472if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028473 passed=`expr $passed + 1`
28474else
28475 failed=`expr $failed + 1`
28476fi
28477
28478
28479 # DPS issues:
28480 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28481 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28482 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28483 # ImageMagick itself doesn't use -lXt.
28484 have_libdps='no'
28485 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028487$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028488if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028489 $as_echo_n "(cached) " >&6
28490else
28491 ac_check_lib_save_LIBS=$LIBS
28492LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028494/* end confdefs.h. */
28495
28496/* Override any GCC internal prototype to avoid an error.
28497 Use char because int might match the return type of a GCC
28498 builtin and then its argument prototype would still apply. */
28499#ifdef __cplusplus
28500extern "C"
28501#endif
28502char DPSInitialize ();
28503int
28504main ()
28505{
28506return DPSInitialize ();
28507 ;
28508 return 0;
28509}
28510_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028511if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028512 ac_cv_lib_dps_DPSInitialize=yes
28513else
cristy8b350f62009-11-15 23:12:43 +000028514 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028515fi
cristy8b350f62009-11-15 23:12:43 +000028516rm -f core conftest.err conftest.$ac_objext \
28517 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028518LIBS=$ac_check_lib_save_LIBS
28519fi
cristy8b350f62009-11-15 23:12:43 +000028520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028521$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028522if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028523 have_libdps='yes'
28524else
28525 have_libdps='no'
28526fi
28527
28528 if test "$have_libdps" != 'yes'; then
28529 # Unset cache variable so we can try again.
28530 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028532$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028533if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028534 $as_echo_n "(cached) " >&6
28535else
28536 ac_check_lib_save_LIBS=$LIBS
28537LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028539/* end confdefs.h. */
28540
28541/* Override any GCC internal prototype to avoid an error.
28542 Use char because int might match the return type of a GCC
28543 builtin and then its argument prototype would still apply. */
28544#ifdef __cplusplus
28545extern "C"
28546#endif
28547char DPSInitialize ();
28548int
28549main ()
28550{
28551return DPSInitialize ();
28552 ;
28553 return 0;
28554}
28555_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028556if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028557 ac_cv_lib_dps_DPSInitialize=yes
28558else
cristy8b350f62009-11-15 23:12:43 +000028559 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028560fi
cristy8b350f62009-11-15 23:12:43 +000028561rm -f core conftest.err conftest.$ac_objext \
28562 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028563LIBS=$ac_check_lib_save_LIBS
28564fi
cristy8b350f62009-11-15 23:12:43 +000028565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028566$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028567if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028568 have_libdps='yes'
28569else
28570 have_libdps='no'
28571fi
28572
28573 if test "$have_libdps" = 'yes'; then
28574 LIBDPS_XT='-lXt'
28575 fi
28576 fi
28577 if test "$have_libdps" = 'yes'; then
28578 passed=`expr $passed + 1`
28579 else
28580 failed=`expr $failed + 1`
28581 fi
cristy8b350f62009-11-15 23:12:43 +000028582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028583$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028584if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028585 $as_echo_n "(cached) " >&6
28586else
28587 ac_check_lib_save_LIBS=$LIBS
28588LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028590/* end confdefs.h. */
28591
28592/* Override any GCC internal prototype to avoid an error.
28593 Use char because int might match the return type of a GCC
28594 builtin and then its argument prototype would still apply. */
28595#ifdef __cplusplus
28596extern "C"
28597#endif
28598char XDPSPixelsPerPoint ();
28599int
28600main ()
28601{
28602return XDPSPixelsPerPoint ();
28603 ;
28604 return 0;
28605}
28606_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028607if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028608 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28609else
cristy8b350f62009-11-15 23:12:43 +000028610 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028611fi
cristy8b350f62009-11-15 23:12:43 +000028612rm -f core conftest.err conftest.$ac_objext \
28613 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028614LIBS=$ac_check_lib_save_LIBS
28615fi
cristy8b350f62009-11-15 23:12:43 +000028616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028617$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028618if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028619 passed=`expr $passed + 1`
28620else
28621 failed=`expr $failed + 1`
28622fi
28623
cristy8b350f62009-11-15 23:12:43 +000028624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028625$as_echo_n "checking if DPS package is complete... " >&6; }
28626 if test $passed -gt 0; then
28627 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28629$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028630 have_dps='no (failed tests)'
28631 CPPFLAGS="$PERSIST_CPPFLAGS"
28632 else
28633 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28634 LIBS="$DPS_LIBS $LIBS"
28635
cristy8b350f62009-11-15 23:12:43 +000028636$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028637
cristyad38abe2012-12-23 23:03:21 +000028638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28639$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028640 have_dps='yes'
28641 fi
28642 else
cristyad38abe2012-12-23 23:03:21 +000028643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28644$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028645 CPPFLAGS=$PERSIST_CPPFLAGS
28646 fi
28647fi
cristy73bd4a52010-10-05 11:24:23 +000028648 if test "$have_dps" = 'yes'; then
28649 DPS_DELEGATE_TRUE=
28650 DPS_DELEGATE_FALSE='#'
28651else
28652 DPS_DELEGATE_TRUE='#'
28653 DPS_DELEGATE_FALSE=
28654fi
28655
cristy3ed852e2009-09-05 21:47:34 +000028656
28657
28658
28659#
28660# Check for DJVU delegate library.
28661#
28662
28663# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028664if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028665 withval=$with_djvu; with_djvu=$withval
28666else
28667 with_djvu='yes'
28668fi
28669
28670
28671if test "$with_djvu" != 'yes'; then
28672 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28673fi
28674
28675have_djvu='no'
28676DJVU_LIBS=''
28677if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28679$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028681$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28683$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028684 failed=0
28685 passed=0
cristy8b350f62009-11-15 23:12:43 +000028686 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 +000028687if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028688 passed=`expr $passed + 1`
28689else
28690 failed=`expr $failed + 1`
28691fi
28692
28693
cristy8b350f62009-11-15 23:12:43 +000028694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028695$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028696if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028697 $as_echo_n "(cached) " >&6
28698else
28699 ac_check_lib_save_LIBS=$LIBS
28700LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028702/* end confdefs.h. */
28703
28704/* Override any GCC internal prototype to avoid an error.
28705 Use char because int might match the return type of a GCC
28706 builtin and then its argument prototype would still apply. */
28707#ifdef __cplusplus
28708extern "C"
28709#endif
28710char ddjvu_context_create ();
28711int
28712main ()
28713{
28714return ddjvu_context_create ();
28715 ;
28716 return 0;
28717}
28718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028719if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028720 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28721else
cristy8b350f62009-11-15 23:12:43 +000028722 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028723fi
cristy8b350f62009-11-15 23:12:43 +000028724rm -f core conftest.err conftest.$ac_objext \
28725 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028726LIBS=$ac_check_lib_save_LIBS
28727fi
cristy8b350f62009-11-15 23:12:43 +000028728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028729$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028730if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028731 passed=`expr $passed + 1`
28732else
28733 failed=`expr $failed + 1`
28734fi
28735
cristy8b350f62009-11-15 23:12:43 +000028736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028737$as_echo_n "checking if DJVU package is complete... " >&6; }
28738 if test $passed -gt 0; then
28739 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28741$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028742 have_djvu='no (failed tests)'
28743 else
28744 DJVU_LIBS='-ldjvulibre'
28745 LIBS="$DJVU_LIBS $LIBS"
28746
cristy8b350f62009-11-15 23:12:43 +000028747$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028748
cristyad38abe2012-12-23 23:03:21 +000028749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28750$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028751 have_djvu='yes'
28752 fi
28753 else
cristyad38abe2012-12-23 23:03:21 +000028754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28755$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028756 fi
28757fi
cristy73bd4a52010-10-05 11:24:23 +000028758 if test "$have_djvu" = 'yes'; then
28759 DJVU_DELEGATE_TRUE=
28760 DJVU_DELEGATE_FALSE='#'
28761else
28762 DJVU_DELEGATE_TRUE='#'
28763 DJVU_DELEGATE_FALSE=
28764fi
28765
cristy3ed852e2009-09-05 21:47:34 +000028766
28767
28768
28769#
cristy430a7312010-01-21 20:44:04 +000028770# Set DejaVu font directory.
28771#
28772
28773# Check whether --with-dejavu-font-dir was given.
28774if test "${with_dejavu_font_dir+set}" = set; then :
28775 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28776else
28777 with_dejavu_font_dir='default'
28778fi
28779
28780
28781if test "$with_dejavu_font_dir" != 'default'; then
28782 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28783fi
28784
28785
28786#
cristy3ed852e2009-09-05 21:47:34 +000028787# Check for FFTW delegate library.
28788#
28789
28790# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028791if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028792 withval=$with_fftw; with_fftw=$withval
28793else
28794 with_fftw='yes'
28795fi
28796
28797
28798if test "$with_fftw" != 'yes'; then
28799 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28800fi
28801
cristy81beccd2011-10-03 18:17:24 +000028802have_fftw='no'
28803FFTW_LIBS=''
28804if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28806$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28808$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28810$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028811 failed=0
28812 passed=0
28813 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28814if test "x$ac_cv_header_fftw3_h" = xyes; then :
28815 passed=`expr $passed + 1`
28816else
28817 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028818fi
28819
cristy81beccd2011-10-03 18:17:24 +000028820
28821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28822$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28823if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28824 $as_echo_n "(cached) " >&6
28825else
28826 ac_check_lib_save_LIBS=$LIBS
28827LIBS="-lfftw3 $LIBS"
28828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28829/* end confdefs.h. */
28830
28831/* Override any GCC internal prototype to avoid an error.
28832 Use char because int might match the return type of a GCC
28833 builtin and then its argument prototype would still apply. */
28834#ifdef __cplusplus
28835extern "C"
28836#endif
28837char fftw_execute ();
28838int
28839main ()
28840{
28841return fftw_execute ();
28842 ;
28843 return 0;
28844}
28845_ACEOF
28846if ac_fn_c_try_link "$LINENO"; then :
28847 ac_cv_lib_fftw3_fftw_execute=yes
28848else
28849 ac_cv_lib_fftw3_fftw_execute=no
28850fi
28851rm -f core conftest.err conftest.$ac_objext \
28852 conftest$ac_exeext conftest.$ac_ext
28853LIBS=$ac_check_lib_save_LIBS
28854fi
28855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28856$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28857if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28858 passed=`expr $passed + 1`
28859else
28860 failed=`expr $failed + 1`
28861fi
28862
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28864$as_echo_n "checking if FFTW package is complete... " >&6; }
28865 if test $passed -gt 0; then
28866 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28868$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028869 have_fftw='no (failed tests)'
28870 else
28871 FFTW_LIBS='-lfftw3'
28872 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028873
cristy8b350f62009-11-15 23:12:43 +000028874$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028875
cristyad38abe2012-12-23 23:03:21 +000028876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28877$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028878 have_fftw='yes'
28879 fi
28880 else
cristyad38abe2012-12-23 23:03:21 +000028881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28882$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028883 fi
28884fi
cristy73bd4a52010-10-05 11:24:23 +000028885 if test "$have_fftw" = 'yes'; then
28886 FFTW_DELEGATE_TRUE=
28887 FFTW_DELEGATE_FALSE='#'
28888else
28889 FFTW_DELEGATE_TRUE='#'
28890 FFTW_DELEGATE_FALSE=
28891fi
28892
cristy3ed852e2009-09-05 21:47:34 +000028893
28894
28895
28896#
28897# Check for FlashPIX delegate library.
28898#
28899
28900# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028901if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028902 withval=$with_fpx; with_fpx=$withval
28903else
28904 with_fpx='yes'
28905fi
28906
28907
28908if test "$with_fpx" != 'yes'; then
28909 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28910fi
28911
28912have_fpx='no'
28913FPX_LIBS=''
28914if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28916$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028918$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28920$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028921 failed=0
28922 passed=0
28923 ac_ext=cpp
28924ac_cpp='$CXXCPP $CPPFLAGS'
28925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28928
28929
cristy8b350f62009-11-15 23:12:43 +000028930ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028931if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028932 passed=`expr $passed + 1`
28933else
28934 failed=`expr $failed + 1`
28935fi
28936
28937
cristy8b350f62009-11-15 23:12:43 +000028938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028939$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028940if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028941 $as_echo_n "(cached) " >&6
28942else
28943 ac_check_lib_save_LIBS=$LIBS
28944LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028946/* end confdefs.h. */
28947
28948/* Override any GCC internal prototype to avoid an error.
28949 Use char because int might match the return type of a GCC
28950 builtin and then its argument prototype would still apply. */
28951#ifdef __cplusplus
28952extern "C"
28953#endif
28954char FPX_OpenImageByFilename ();
28955int
28956main ()
28957{
28958return FPX_OpenImageByFilename ();
28959 ;
28960 return 0;
28961}
28962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028963if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028964 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28965else
cristy8b350f62009-11-15 23:12:43 +000028966 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028967fi
cristy8b350f62009-11-15 23:12:43 +000028968rm -f core conftest.err conftest.$ac_objext \
28969 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028970LIBS=$ac_check_lib_save_LIBS
28971fi
cristy8b350f62009-11-15 23:12:43 +000028972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028973$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028974if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028975 passed=`expr $passed + 1`
28976else
28977 failed=`expr $failed + 1`
28978fi
28979
28980 ac_ext=c
28981ac_cpp='$CPP $CPPFLAGS'
28982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28984ac_compiler_gnu=$ac_cv_c_compiler_gnu
28985
cristy8b350f62009-11-15 23:12:43 +000028986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028987$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28988 if test $passed -gt 0; then
28989 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28991$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028992 have_fpx='no (failed tests)'
28993 else
28994 FPX_LIBS='-lfpx'
28995
cristy8b350f62009-11-15 23:12:43 +000028996$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028997
cristyad38abe2012-12-23 23:03:21 +000028998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28999$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029000 have_fpx='yes'
29001 PERLMAINCC="$CXX"
29002 fi
29003 else
cristyad38abe2012-12-23 23:03:21 +000029004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29005$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029006 fi
29007fi
cristy73bd4a52010-10-05 11:24:23 +000029008 if test "$have_fpx" = 'yes'; then
29009 FPX_DELEGATE_TRUE=
29010 FPX_DELEGATE_FALSE='#'
29011else
29012 FPX_DELEGATE_TRUE='#'
29013 FPX_DELEGATE_FALSE=
29014fi
29015
cristy3ed852e2009-09-05 21:47:34 +000029016
29017
29018
29019#
29020# Check for fontconfig delegate library.
29021#
29022
29023# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029024if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029025 withval=$with_fontconfig; with_fontconfig=$withval
29026else
cristyfc3d0222012-02-07 15:05:57 +000029027 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029028fi
29029
29030
29031if test "$with_fontconfig" != 'yes'; then
29032 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29033fi
29034
29035have_fontconfig='no'
29036FONTCONFIG_CFLAGS=""
29037FONTCONFIG_LIBS=""
29038FONTCONFIG_PKG=""
29039if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29041$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029042
29043pkg_failed=no
29044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29045$as_echo_n "checking for FONTCONFIG... " >&6; }
29046
29047if test -n "$FONTCONFIG_CFLAGS"; then
29048 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29049 elif test -n "$PKG_CONFIG"; then
29050 if test -n "$PKG_CONFIG" && \
29051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29052 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29053 ac_status=$?
29054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29055 test $ac_status = 0; }; then
29056 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29057else
29058 pkg_failed=yes
29059fi
29060 else
29061 pkg_failed=untried
29062fi
29063if test -n "$FONTCONFIG_LIBS"; then
29064 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29065 elif test -n "$PKG_CONFIG"; then
29066 if test -n "$PKG_CONFIG" && \
29067 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29068 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29069 ac_status=$?
29070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29071 test $ac_status = 0; }; then
29072 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29073else
29074 pkg_failed=yes
29075fi
29076 else
29077 pkg_failed=untried
29078fi
29079
29080
29081
29082if test $pkg_failed = yes; then
29083
29084if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29085 _pkg_short_errors_supported=yes
29086else
29087 _pkg_short_errors_supported=no
29088fi
29089 if test $_pkg_short_errors_supported = yes; then
29090 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29091 else
29092 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29093 fi
29094 # Put the nasty error message in config.log where it belongs
29095 echo "$FONTCONFIG_PKG_ERRORS" >&5
29096
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29098$as_echo "no" >&6; }
29099 have_fontconfig=no
29100elif test $pkg_failed = untried; then
29101 have_fontconfig=no
29102else
29103 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29104 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29106$as_echo "yes" >&6; }
29107 have_fontconfig=yes
29108fi
cristyad38abe2012-12-23 23:03:21 +000029109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29110$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029111fi
29112
29113if test "$have_fontconfig" = 'yes'; then
29114
cristy8b350f62009-11-15 23:12:43 +000029115$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029116
cristyc6722092012-10-14 00:19:31 +000029117 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029118 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029119 fi
cristy3ed852e2009-09-05 21:47:34 +000029120fi
29121
cristy73bd4a52010-10-05 11:24:23 +000029122 if test "$have_fontconfig" = 'yes'; then
29123 FONTCONFIG_DELEGATE_TRUE=
29124 FONTCONFIG_DELEGATE_FALSE='#'
29125else
29126 FONTCONFIG_DELEGATE_TRUE='#'
29127 FONTCONFIG_DELEGATE_FALSE=
29128fi
29129
cristy3ed852e2009-09-05 21:47:34 +000029130
29131
29132
29133
29134#
cristy03f187e2013-01-24 00:22:19 +000029135# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029136#
29137
29138# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029139if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029140 withval=$with_freetype; with_freetype=$withval
29141else
29142 with_freetype='yes'
29143fi
29144
29145
cristy3ed852e2009-09-05 21:47:34 +000029146if test "$with_freetype" != 'yes'; then
29147 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29148fi
29149
cristy81beccd2011-10-03 18:17:24 +000029150have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029151FREETYPE_CFLAGS=""
29152FREETYPE_LIBS=""
29153FREETYPE_PKG=""
29154if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29156$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029157
29158pkg_failed=no
29159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29160$as_echo_n "checking for FREETYPE... " >&6; }
29161
29162if test -n "$FREETYPE_CFLAGS"; then
29163 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29164 elif test -n "$PKG_CONFIG"; then
29165 if test -n "$PKG_CONFIG" && \
29166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29167 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29168 ac_status=$?
29169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29170 test $ac_status = 0; }; then
29171 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29172else
29173 pkg_failed=yes
29174fi
29175 else
29176 pkg_failed=untried
29177fi
29178if test -n "$FREETYPE_LIBS"; then
29179 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29180 elif test -n "$PKG_CONFIG"; then
29181 if test -n "$PKG_CONFIG" && \
29182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29183 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29184 ac_status=$?
29185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29186 test $ac_status = 0; }; then
29187 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29188else
29189 pkg_failed=yes
29190fi
29191 else
29192 pkg_failed=untried
29193fi
29194
29195
29196
29197if test $pkg_failed = yes; then
29198
29199if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29200 _pkg_short_errors_supported=yes
29201else
29202 _pkg_short_errors_supported=no
29203fi
29204 if test $_pkg_short_errors_supported = yes; then
29205 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29206 else
29207 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29208 fi
29209 # Put the nasty error message in config.log where it belongs
29210 echo "$FREETYPE_PKG_ERRORS" >&5
29211
29212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29213$as_echo "no" >&6; }
29214 have_freetype=no
29215elif test $pkg_failed = untried; then
29216 have_freetype=no
29217else
29218 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29219 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29221$as_echo "yes" >&6; }
29222 have_freetype=yes
29223fi
cristyad38abe2012-12-23 23:03:21 +000029224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29225$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029226fi
29227
cristy03f187e2013-01-24 00:22:19 +000029228if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029229
cristy8b350f62009-11-15 23:12:43 +000029230$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029231
cristy03f187e2013-01-24 00:22:19 +000029232 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029233fi
cristy03f187e2013-01-24 00:22:19 +000029234
cristy73bd4a52010-10-05 11:24:23 +000029235 if test "$have_freetype" = 'yes'; then
29236 FREETYPE_DELEGATE_TRUE=
29237 FREETYPE_DELEGATE_FALSE='#'
29238else
29239 FREETYPE_DELEGATE_TRUE='#'
29240 FREETYPE_DELEGATE_FALSE=
29241fi
29242
cristy3ed852e2009-09-05 21:47:34 +000029243
29244
29245
cristy03f187e2013-01-24 00:22:19 +000029246
cristy3ed852e2009-09-05 21:47:34 +000029247#
29248# Check for Ghostscript library or framework.
29249#
29250# Test for iapi.h & test for gsapi_new_instance in -lgs
29251# or -framework Ghostscript
29252
29253
29254# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029255if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029256 withval=$with_gslib; with_gslib=$withval
29257else
29258 with_gslib='no'
29259fi
29260
29261
cristyb7931f12009-09-25 10:22:21 +000029262gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029263if test "$with_gslib" != 'yes'; then
29264 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29265fi
29266
29267have_gslib='no'
29268GS_LIBS=''
29269if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29271$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029273$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29275$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029276 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029277 failed=0
29278 passed=0
cristy8b350f62009-11-15 23:12:43 +000029279 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 +000029280if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029281 passed=`expr $passed + 1`
29282else
29283 failed=`expr $failed + 1`
29284fi
29285
29286
cristy8b350f62009-11-15 23:12:43 +000029287 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 +000029288if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029289 passed=`expr $passed + 1`
29290else
29291 failed=`expr $failed + 1`
29292fi
29293
29294
cristy73bd4a52010-10-05 11:24:23 +000029295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29296$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029297if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029298 $as_echo_n "(cached) " >&6
29299else
29300 ac_check_framework_save_LIBS=$LIBS
29301LIBS="-framework Ghostscript $LIBS"
29302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29303/* end confdefs.h. */
29304
29305/* Override any GCC internal prototype to avoid an error.
29306 Use char because int might match the return type of a GCC
29307 builtin and then its argument prototype would still apply. */
29308#ifdef __cplusplus
29309extern "C"
29310#endif
29311char gsapi_new_instance ();
29312int
29313main ()
29314{
29315return gsapi_new_instance ();
29316 ;
29317 return 0;
29318}
29319_ACEOF
29320if ac_fn_c_try_link "$LINENO"; then :
29321 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29322else
29323 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29324fi
29325rm -f core conftest.err conftest.$ac_objext \
29326 conftest$ac_exeext conftest.$ac_ext
29327LIBS=$ac_check_framework_save_LIBS
29328fi
29329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29330$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29331if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29332 framework=`expr $framework + 1`
29333else
29334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029335$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029336if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029337 $as_echo_n "(cached) " >&6
29338else
29339 ac_check_lib_save_LIBS=$LIBS
29340LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029342/* end confdefs.h. */
29343
29344/* Override any GCC internal prototype to avoid an error.
29345 Use char because int might match the return type of a GCC
29346 builtin and then its argument prototype would still apply. */
29347#ifdef __cplusplus
29348extern "C"
29349#endif
29350char gsapi_new_instance ();
29351int
29352main ()
29353{
29354return gsapi_new_instance ();
29355 ;
29356 return 0;
29357}
29358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029359if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029360 ac_cv_lib_gs_gsapi_new_instance=yes
29361else
cristy8b350f62009-11-15 23:12:43 +000029362 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029363fi
cristy8b350f62009-11-15 23:12:43 +000029364rm -f core conftest.err conftest.$ac_objext \
29365 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029366LIBS=$ac_check_lib_save_LIBS
29367fi
cristy8b350f62009-11-15 23:12:43 +000029368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029369$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029370if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029371 passed=`expr $passed + 1`
29372else
29373 failed=`expr $failed + 1`
29374fi
cristy73bd4a52010-10-05 11:24:23 +000029375
29376fi
cristy8b350f62009-11-15 23:12:43 +000029377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029378$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29379 if test $passed -gt 0; then
29380 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29382$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029383 have_gslib='no (failed tests)'
29384 else
29385 if test $framework -gt 0; then
29386 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029387 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29389$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029390 else
cristyad38abe2012-12-23 23:03:21 +000029391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29392$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029393 GS_LIBS='-lgs'
29394 fi
29395 LIBS="$GS_LIBS $LIBS"
29396
cristy8b350f62009-11-15 23:12:43 +000029397$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029398
29399 have_gslib='yes'
29400 fi
29401 else
cristyad38abe2012-12-23 23:03:21 +000029402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29403$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029404 fi
29405fi
cristy73bd4a52010-10-05 11:24:23 +000029406 if test "$have_gslib" = 'yes'; then
29407 GS_DELEGATE_TRUE=
29408 GS_DELEGATE_FALSE='#'
29409else
29410 GS_DELEGATE_TRUE='#'
29411 GS_DELEGATE_FALSE=
29412fi
29413
cristy3ed852e2009-09-05 21:47:34 +000029414
29415
29416# Set default font search path
29417
29418# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029419if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029420 withval=$with_fontpath; with_fontpath=$withval
29421else
29422 with_fontpath=''
29423fi
29424
29425
29426if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29427 with_fontpath=''
29428else
29429
29430cat >>confdefs.h <<_ACEOF
29431#define MAGICK_FONT_PATH "$with_fontpath"
29432_ACEOF
29433
29434fi
29435if test "$with_fontpath=" != ''; then
29436 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29437fi
29438
29439# Set Ghostscript font directory
29440
29441# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029442if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029443 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29444else
29445 with_gs_font_dir='default'
29446fi
29447
29448
29449if test "$with_gs_font_dir" != 'default'; then
29450 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29451fi
29452
29453
29454#
29455# Check for GVC delegate library.
29456#
29457
29458# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029459if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029460 withval=$with_gvc; with_gvc=$withval
29461else
cristy1b70dc82012-07-01 23:15:05 +000029462 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029463fi
29464
29465
29466if test "$with_gvc" != 'yes'; then
29467 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29468fi
29469
29470GVC_PKG=""
29471if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29473$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029474
29475pkg_failed=no
29476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29477$as_echo_n "checking for GVC... " >&6; }
29478
29479if test -n "$GVC_CFLAGS"; then
29480 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29481 elif test -n "$PKG_CONFIG"; then
29482 if test -n "$PKG_CONFIG" && \
29483 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29484 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29485 ac_status=$?
29486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29487 test $ac_status = 0; }; then
29488 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29489else
29490 pkg_failed=yes
29491fi
29492 else
29493 pkg_failed=untried
29494fi
29495if test -n "$GVC_LIBS"; then
29496 pkg_cv_GVC_LIBS="$GVC_LIBS"
29497 elif test -n "$PKG_CONFIG"; then
29498 if test -n "$PKG_CONFIG" && \
29499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29500 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29501 ac_status=$?
29502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29503 test $ac_status = 0; }; then
29504 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29505else
29506 pkg_failed=yes
29507fi
29508 else
29509 pkg_failed=untried
29510fi
29511
29512
29513
29514if test $pkg_failed = yes; then
29515
29516if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29517 _pkg_short_errors_supported=yes
29518else
29519 _pkg_short_errors_supported=no
29520fi
29521 if test $_pkg_short_errors_supported = yes; then
29522 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29523 else
29524 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29525 fi
29526 # Put the nasty error message in config.log where it belongs
29527 echo "$GVC_PKG_ERRORS" >&5
29528
29529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29530$as_echo "no" >&6; }
29531 have_gvc=no
29532elif test $pkg_failed = untried; then
29533 have_gvc=no
29534else
29535 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29536 GVC_LIBS=$pkg_cv_GVC_LIBS
29537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29538$as_echo "yes" >&6; }
29539 have_gvc=yes
29540fi
cristyad38abe2012-12-23 23:03:21 +000029541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29542$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029543fi
29544
29545if test "$have_gvc" = 'yes'; then
29546
cristy8b350f62009-11-15 23:12:43 +000029547$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029548
cristyc6722092012-10-14 00:19:31 +000029549 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029550 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29551 fi
29552fi
29553
cristy73bd4a52010-10-05 11:24:23 +000029554 if test "$have_gvc" = 'yes'; then
29555 GVC_DELEGATE_TRUE=
29556 GVC_DELEGATE_FALSE='#'
29557else
29558 GVC_DELEGATE_TRUE='#'
29559 GVC_DELEGATE_FALSE=
29560fi
29561
cristy3ed852e2009-09-05 21:47:34 +000029562
29563
29564
29565
29566#
29567# Check for JBIG delegate library.
29568#
29569
29570
29571# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029572if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029573 withval=$with_jbig; with_jbig=$withval
29574else
29575 with_jbig='yes'
29576fi
29577
29578
29579have_jbig='no'
29580JBIG_LIBS=''
29581if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29583$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029585$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29587$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029588 failed=0
29589 passed=0
cristy8b350f62009-11-15 23:12:43 +000029590 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029591if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029592 passed=`expr $passed + 1`
29593else
29594 failed=`expr $failed + 1`
29595fi
29596
29597
cristy8b350f62009-11-15 23:12:43 +000029598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029599$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029600if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029601 $as_echo_n "(cached) " >&6
29602else
29603 ac_check_lib_save_LIBS=$LIBS
29604LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029606/* end confdefs.h. */
29607
29608/* Override any GCC internal prototype to avoid an error.
29609 Use char because int might match the return type of a GCC
29610 builtin and then its argument prototype would still apply. */
29611#ifdef __cplusplus
29612extern "C"
29613#endif
29614char jbg_dec_init ();
29615int
29616main ()
29617{
29618return jbg_dec_init ();
29619 ;
29620 return 0;
29621}
29622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029623if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029624 ac_cv_lib_jbig_jbg_dec_init=yes
29625else
cristy8b350f62009-11-15 23:12:43 +000029626 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029627fi
cristy8b350f62009-11-15 23:12:43 +000029628rm -f core conftest.err conftest.$ac_objext \
29629 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029630LIBS=$ac_check_lib_save_LIBS
29631fi
cristy8b350f62009-11-15 23:12:43 +000029632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029633$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029634if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029635 passed=`expr $passed + 1`
29636else
29637 failed=`expr $failed + 1`
29638fi
29639
cristy8b350f62009-11-15 23:12:43 +000029640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029641$as_echo_n "checking if JBIG package is complete... " >&6; }
29642 if test $passed -gt 0; then
29643 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29645$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029646 have_jbig='no (failed tests)'
29647 else
29648 JBIG_LIBS='-ljbig'
29649 LIBS="$JBIG_LIBS $LIBS"
29650
cristy8b350f62009-11-15 23:12:43 +000029651$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029652
cristyad38abe2012-12-23 23:03:21 +000029653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29654$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029655 have_jbig='yes'
29656 fi
29657 else
cristyad38abe2012-12-23 23:03:21 +000029658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29659$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029660 fi
29661fi
cristy73bd4a52010-10-05 11:24:23 +000029662 if test "$have_jbig" = 'yes'; then
29663 JBIG_DELEGATE_TRUE=
29664 JBIG_DELEGATE_FALSE='#'
29665else
29666 JBIG_DELEGATE_TRUE='#'
29667 JBIG_DELEGATE_FALSE=
29668fi
29669
cristy3ed852e2009-09-05 21:47:34 +000029670
29671
29672
29673#
29674# Check for JPEG delegate library.
29675#
29676
29677# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029678if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029679 withval=$with_jpeg; with_jpeg=$withval
29680else
29681 with_jpeg='yes'
29682fi
29683
29684
29685if test "$with_jpeg" != 'yes'; then
29686 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29687fi
29688
29689have_jpeg='no'
29690JPEG_LIBS=''
29691if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29693$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029695$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29697$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029698 failed=0
29699 passed=0
cristy8b350f62009-11-15 23:12:43 +000029700 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029701if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029702 passed=`expr $passed + 1`
29703else
29704 failed=`expr $failed + 1`
29705fi
29706
29707
cristy8b350f62009-11-15 23:12:43 +000029708 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029709if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029710 passed=`expr $passed + 1`
29711else
29712 failed=`expr $failed + 1`
29713fi
29714
29715
cristy8b350f62009-11-15 23:12:43 +000029716 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029717if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029718 passed=`expr $passed + 1`
29719else
29720 failed=`expr $failed + 1`
29721fi
29722
29723
cristy8b350f62009-11-15 23:12:43 +000029724 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029725if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029726 passed=`expr $passed + 1`
29727else
29728 failed=`expr $failed + 1`
29729fi
29730
29731
cristy8b350f62009-11-15 23:12:43 +000029732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029733$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029734if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029735 $as_echo_n "(cached) " >&6
29736else
29737 ac_check_lib_save_LIBS=$LIBS
29738LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029740/* end confdefs.h. */
29741
29742/* Override any GCC internal prototype to avoid an error.
29743 Use char because int might match the return type of a GCC
29744 builtin and then its argument prototype would still apply. */
29745#ifdef __cplusplus
29746extern "C"
29747#endif
29748char jpeg_read_header ();
29749int
29750main ()
29751{
29752return jpeg_read_header ();
29753 ;
29754 return 0;
29755}
29756_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029757if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029758 ac_cv_lib_jpeg_jpeg_read_header=yes
29759else
cristy8b350f62009-11-15 23:12:43 +000029760 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029761fi
cristy8b350f62009-11-15 23:12:43 +000029762rm -f core conftest.err conftest.$ac_objext \
29763 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029764LIBS=$ac_check_lib_save_LIBS
29765fi
cristy8b350f62009-11-15 23:12:43 +000029766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029767$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029768if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029769 passed=`expr $passed + 1`
29770else
29771 failed=`expr $failed + 1`
29772fi
29773
29774
29775# Test for compatible JPEG library
29776if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029778$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029779if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029780 $as_echo_n "(cached) " >&6
29781else
cristy8b350f62009-11-15 23:12:43 +000029782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029783/* end confdefs.h. */
29784#include <stdio.h>
29785#include <stdlib.h>
29786#include <jpeglib.h>
29787
29788int
29789main ()
29790{
29791
29792#if JPEG_LIB_VERSION < 62
29793#error IJG JPEG library must be version 6b or newer!
29794#endif
29795return 0;
29796
29797 ;
29798 return 0;
29799}
29800_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029801if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029802 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29803else
cristy8b350f62009-11-15 23:12:43 +000029804 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029805fi
cristy3ed852e2009-09-05 21:47:34 +000029806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29807fi
cristy8b350f62009-11-15 23:12:43 +000029808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029809$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29810fi
cristy8b350f62009-11-15 23:12:43 +000029811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029812$as_echo_n "checking if JPEG package is complete... " >&6; }
29813 if test $passed -gt 0; then
29814 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29816$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029817 have_jpeg='no (failed tests)'
29818 else
29819 JPEG_LIBS='-ljpeg'
29820 LIBS="$JPEG_LIBS $LIBS"
29821
cristy8b350f62009-11-15 23:12:43 +000029822$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029823
cristyad38abe2012-12-23 23:03:21 +000029824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29825$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029826 have_jpeg='yes'
29827 fi
29828 else
cristyad38abe2012-12-23 23:03:21 +000029829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29830$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029831 fi
29832fi
cristy73bd4a52010-10-05 11:24:23 +000029833 if test "$have_jpeg" = 'yes'; then
29834 JPEG_DELEGATE_TRUE=
29835 JPEG_DELEGATE_FALSE='#'
29836else
29837 JPEG_DELEGATE_TRUE='#'
29838 JPEG_DELEGATE_FALSE=
29839fi
29840
cristy3ed852e2009-09-05 21:47:34 +000029841
29842
29843
29844#
29845# Check for JPEG Version 2 delegate library.
29846#
29847
29848# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029849if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029850 withval=$with_jp2; with_jp2=$withval
29851else
29852 with_jp2='yes'
29853fi
29854
29855
29856if test "$with_jp2" != 'yes'; then
29857 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29858fi
29859
29860have_jp2='no'
29861JP2_LIBS=''
29862if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29864$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029866$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29868$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029869 failed=0
29870 passed=0
cristy8b350f62009-11-15 23:12:43 +000029871 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 +000029872if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029873 passed=`expr $passed + 1`
29874else
29875 failed=`expr $failed + 1`
29876fi
29877
29878
cristy8b350f62009-11-15 23:12:43 +000029879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029880$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029881if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029882 $as_echo_n "(cached) " >&6
29883else
29884 ac_check_lib_save_LIBS=$LIBS
29885LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029887/* end confdefs.h. */
29888
29889/* Override any GCC internal prototype to avoid an error.
29890 Use char because int might match the return type of a GCC
29891 builtin and then its argument prototype would still apply. */
29892#ifdef __cplusplus
29893extern "C"
29894#endif
29895char jas_stream_fopen ();
29896int
29897main ()
29898{
29899return jas_stream_fopen ();
29900 ;
29901 return 0;
29902}
29903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029904if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029905 ac_cv_lib_jasper_jas_stream_fopen=yes
29906else
cristy8b350f62009-11-15 23:12:43 +000029907 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029908fi
cristy8b350f62009-11-15 23:12:43 +000029909rm -f core conftest.err conftest.$ac_objext \
29910 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029911LIBS=$ac_check_lib_save_LIBS
29912fi
cristy8b350f62009-11-15 23:12:43 +000029913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029914$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029915if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029916 passed=`expr $passed + 1`
29917else
29918 failed=`expr $failed + 1`
29919fi
29920
cristy8b350f62009-11-15 23:12:43 +000029921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029922$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29923 if test $passed -gt 0; then
29924 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29926$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029927 have_jp2='no (failed tests)'
29928 else
29929 JP2_LIBS='-ljasper'
29930 LIBS="$JP2_LIBS $LIBS"
29931
cristy8b350f62009-11-15 23:12:43 +000029932$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029933
cristyad38abe2012-12-23 23:03:21 +000029934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29935$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029936 have_jp2='yes'
29937 fi
29938 else
cristyad38abe2012-12-23 23:03:21 +000029939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29940$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029941 fi
29942fi
cristy73bd4a52010-10-05 11:24:23 +000029943 if test "$have_jp2" = 'yes'; then
29944 JP2_DELEGATE_TRUE=
29945 JP2_DELEGATE_FALSE='#'
29946else
29947 JP2_DELEGATE_TRUE='#'
29948 JP2_DELEGATE_FALSE=
29949fi
29950
cristy3ed852e2009-09-05 21:47:34 +000029951
29952
29953
29954#
29955# Check for LCMS delegate library.
29956#
cristy71203402010-06-18 13:12:03 +000029957# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029958
29959# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029960if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029961 withval=$with_lcms; with_lcms=$withval
29962else
29963 with_lcms='yes'
29964fi
29965
cristy71203402010-06-18 13:12:03 +000029966if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029967 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29968fi
29969
cristy71203402010-06-18 13:12:03 +000029970# Disable LCMS2.
29971
29972# Check whether --with-lcms2 was given.
29973if test "${with_lcms2+set}" = set; then :
29974 withval=$with_lcms2; with_lcms2=$withval
29975else
29976 with_lcms2='yes'
29977fi
29978
29979if test "$with_lcms2" != 'yes' ; then
29980 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29981fi
29982
29983have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029984LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029985if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29987$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29989$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29991$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029992 failed=0
29993 passed=0
29994 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029995
29996 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029997 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029998if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029999 have_lcms_header='yes'
30000fi
30001
30002
30003 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030004
30005$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30006
cristy71203402010-06-18 13:12:03 +000030007 passed=`expr $passed + 1`
30008 fi
30009
30010 # Check for <lcms2/lcms2.h)
30011 if test "$have_lcms_header" != 'yes'; then
30012 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 +000030013if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030014 have_lcms_header='yes'
30015fi
30016
30017
cristy71203402010-06-18 13:12:03 +000030018 if test "$have_lcms_header" = 'yes'; then
30019 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030020
cristy71203402010-06-18 13:12:03 +000030021$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030022
cristy71203402010-06-18 13:12:03 +000030023 fi
cristyd09bcf92010-03-25 03:04:45 +000030024 fi
cristy71203402010-06-18 13:12:03 +000030025
30026 # Failed to find lcms header?
30027 if test "$have_lcms_header" != 'yes'; then
30028 failed=`expr $failed + 1`
30029 fi
30030
30031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30032$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030033if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030034 $as_echo_n "(cached) " >&6
30035else
30036 ac_check_lib_save_LIBS=$LIBS
30037LIBS="-llcms2 $LIBS"
30038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30039/* end confdefs.h. */
30040
30041/* Override any GCC internal prototype to avoid an error.
30042 Use char because int might match the return type of a GCC
30043 builtin and then its argument prototype would still apply. */
30044#ifdef __cplusplus
30045extern "C"
30046#endif
cristy71203402010-06-18 13:12:03 +000030047char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030048int
30049main ()
30050{
cristy71203402010-06-18 13:12:03 +000030051return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030052 ;
30053 return 0;
30054}
30055_ACEOF
30056if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030057 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030058else
cristy71203402010-06-18 13:12:03 +000030059 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030060fi
30061rm -f core conftest.err conftest.$ac_objext \
30062 conftest$ac_exeext conftest.$ac_ext
30063LIBS=$ac_check_lib_save_LIBS
30064fi
cristy71203402010-06-18 13:12:03 +000030065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30066$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030067if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030068 passed=`expr $passed + 1`
30069else
30070 failed=`expr $failed + 1`
30071fi
30072
cristy71203402010-06-18 13:12:03 +000030073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30074$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030075 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030076 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30078$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030079 have_lcms2='no (failed tests)'
30080 else
30081 LCMS_LIBS='-llcms2'
30082 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30084$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030085 have_lcms2='yes'
30086 fi
cristyd09bcf92010-03-25 03:04:45 +000030087 else
cristyad38abe2012-12-23 23:03:21 +000030088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30089$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030090 fi
30091fi
30092
cristy71203402010-06-18 13:12:03 +000030093#
30094# Check for LCMS v1 (1.11 or later)
30095#
30096if test $have_lcms2 = 'yes'; then
30097 with_lcms='no'
30098fi
30099
30100have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030101if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30103$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30105$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30107$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030108 failed=0
30109 passed=0
30110 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030111
30112 # Check for <lcms.h>
30113 if test "$have_lcms_header" != 'yes'; then
30114 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030115if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030116 have_lcms_header='yes'
30117fi
30118
30119
cristy71203402010-06-18 13:12:03 +000030120 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030121 passed=`expr $passed + 1`
30122
cristy8b350f62009-11-15 23:12:43 +000030123$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030124
cristy71203402010-06-18 13:12:03 +000030125 fi
30126 fi
30127
30128 # Check for <lcms/lcms.h>
30129 if test "$have_lcms_header" != 'yes'; then
30130 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 +000030131if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030132 have_lcms_header='yes'
30133fi
30134
30135
cristy71203402010-06-18 13:12:03 +000030136 if test "$have_lcms_header" = 'yes'; then
30137 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030138
cristy8b350f62009-11-15 23:12:43 +000030139$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030140
cristy71203402010-06-18 13:12:03 +000030141 fi
cristy3ed852e2009-09-05 21:47:34 +000030142 fi
cristy71203402010-06-18 13:12:03 +000030143
30144 # Failed to find lcms header?
30145 if test "$have_lcms_header" != 'yes'; then
30146 failed=`expr $failed + 1`
30147 fi
30148
30149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30150$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030151if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030152 $as_echo_n "(cached) " >&6
30153else
30154 ac_check_lib_save_LIBS=$LIBS
30155LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030157/* end confdefs.h. */
30158
30159/* Override any GCC internal prototype to avoid an error.
30160 Use char because int might match the return type of a GCC
30161 builtin and then its argument prototype would still apply. */
30162#ifdef __cplusplus
30163extern "C"
30164#endif
cristy71203402010-06-18 13:12:03 +000030165char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030166int
30167main ()
30168{
cristy71203402010-06-18 13:12:03 +000030169return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030170 ;
30171 return 0;
30172}
30173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030174if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030175 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030176else
cristy71203402010-06-18 13:12:03 +000030177 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030178fi
cristy8b350f62009-11-15 23:12:43 +000030179rm -f core conftest.err conftest.$ac_objext \
30180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030181LIBS=$ac_check_lib_save_LIBS
30182fi
cristy71203402010-06-18 13:12:03 +000030183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30184$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030185if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030186 passed=`expr $passed + 1`
30187else
30188 failed=`expr $failed + 1`
30189fi
30190
cristy8b350f62009-11-15 23:12:43 +000030191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030192$as_echo_n "checking if LCMS package is complete... " >&6; }
30193 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030194 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30196$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030197 have_lcms='no (failed tests)'
30198 else
30199 LCMS_LIBS='-llcms'
30200 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30202$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030203 have_lcms='yes'
30204 fi
cristy3ed852e2009-09-05 21:47:34 +000030205 else
cristyad38abe2012-12-23 23:03:21 +000030206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30207$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030208 fi
30209fi
cristy71203402010-06-18 13:12:03 +000030210
cristy73bd4a52010-10-05 11:24:23 +000030211 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30212 LCMS_DELEGATE_TRUE=
30213 LCMS_DELEGATE_FALSE='#'
30214else
30215 LCMS_DELEGATE_TRUE='#'
30216 LCMS_DELEGATE_FALSE=
30217fi
30218
cristy71203402010-06-18 13:12:03 +000030219if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30220
30221$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30222
30223fi
30224
cristy3ed852e2009-09-05 21:47:34 +000030225
30226
30227
30228#
30229# Check for the LQR (Liquid Rescale) delegate library.
30230#
30231
30232# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030233if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030234 withval=$with_lqr; with_lqr=$withval
30235else
30236 with_lqr='yes'
30237fi
30238
30239
30240if test "$with_lqr" != 'yes'; then
30241 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30242fi
30243
30244have_lqr='no'
30245LQR_CFLAGS=""
30246LQR_LIBS=""
30247LQR_PKG=""
30248if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30250$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030251
30252pkg_failed=no
30253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30254$as_echo_n "checking for LQR... " >&6; }
30255
30256if test -n "$LQR_CFLAGS"; then
30257 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30258 elif test -n "$PKG_CONFIG"; then
30259 if test -n "$PKG_CONFIG" && \
30260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30261 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30262 ac_status=$?
30263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30264 test $ac_status = 0; }; then
30265 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30266else
30267 pkg_failed=yes
30268fi
30269 else
30270 pkg_failed=untried
30271fi
30272if test -n "$LQR_LIBS"; then
30273 pkg_cv_LQR_LIBS="$LQR_LIBS"
30274 elif test -n "$PKG_CONFIG"; then
30275 if test -n "$PKG_CONFIG" && \
30276 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30277 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30278 ac_status=$?
30279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30280 test $ac_status = 0; }; then
30281 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30282else
30283 pkg_failed=yes
30284fi
30285 else
30286 pkg_failed=untried
30287fi
30288
30289
30290
30291if test $pkg_failed = yes; then
30292
30293if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30294 _pkg_short_errors_supported=yes
30295else
30296 _pkg_short_errors_supported=no
30297fi
30298 if test $_pkg_short_errors_supported = yes; then
30299 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30300 else
30301 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30302 fi
30303 # Put the nasty error message in config.log where it belongs
30304 echo "$LQR_PKG_ERRORS" >&5
30305
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30307$as_echo "no" >&6; }
30308 have_lqr=no
30309elif test $pkg_failed = untried; then
30310 have_lqr=no
30311else
30312 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30313 LQR_LIBS=$pkg_cv_LQR_LIBS
30314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30315$as_echo "yes" >&6; }
30316 have_lqr=yes
30317fi
cristyad38abe2012-12-23 23:03:21 +000030318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30319$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030320fi
30321
30322if test "$have_lqr" = 'yes'; then
30323
cristy8b350f62009-11-15 23:12:43 +000030324$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030325
30326 CFLAGS="$LQR_CFLAGS $CFLAGS"
30327fi
30328
cristy73bd4a52010-10-05 11:24:23 +000030329 if test "$have_lqr" = 'yes'; then
30330 LQR_DELEGATE_TRUE=
30331 LQR_DELEGATE_FALSE='#'
30332else
30333 LQR_DELEGATE_TRUE='#'
30334 LQR_DELEGATE_FALSE=
30335fi
30336
cristy3ed852e2009-09-05 21:47:34 +000030337
30338
30339
30340
cristy81beccd2011-10-03 18:17:24 +000030341# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030342
30343# Check whether --with-lzma was given.
30344if test "${with_lzma+set}" = set; then :
30345 withval=$with_lzma; with_lzma=$withval
30346else
30347 with_lzma='yes'
30348fi
30349
cristy81beccd2011-10-03 18:17:24 +000030350if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030351 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30352fi
30353
cristyb94e5002011-11-14 13:20:10 +000030354LZMA_PKG=""
30355if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30357$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030358
30359pkg_failed=no
30360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030361$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030362
30363if test -n "$LZMA_CFLAGS"; then
30364 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30365 elif test -n "$PKG_CONFIG"; then
30366 if test -n "$PKG_CONFIG" && \
30367 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30368 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30369 ac_status=$?
30370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30371 test $ac_status = 0; }; then
30372 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30373else
30374 pkg_failed=yes
30375fi
30376 else
30377 pkg_failed=untried
30378fi
30379if test -n "$LZMA_LIBS"; then
30380 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30381 elif test -n "$PKG_CONFIG"; then
30382 if test -n "$PKG_CONFIG" && \
30383 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30384 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30385 ac_status=$?
30386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30387 test $ac_status = 0; }; then
30388 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30389else
30390 pkg_failed=yes
30391fi
30392 else
30393 pkg_failed=untried
30394fi
30395
30396
30397
30398if test $pkg_failed = yes; then
30399
30400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30401 _pkg_short_errors_supported=yes
30402else
30403 _pkg_short_errors_supported=no
30404fi
30405 if test $_pkg_short_errors_supported = yes; then
30406 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30407 else
30408 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30409 fi
30410 # Put the nasty error message in config.log where it belongs
30411 echo "$LZMA_PKG_ERRORS" >&5
30412
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30414$as_echo "no" >&6; }
30415 have_lzma=no
30416elif test $pkg_failed = untried; then
30417 have_lzma=no
30418else
30419 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30420 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30422$as_echo "yes" >&6; }
30423 have_lzma=yes
30424fi
cristyad38abe2012-12-23 23:03:21 +000030425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30426$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030427fi
30428
cristyb94e5002011-11-14 13:20:10 +000030429if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030430
30431$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30432
cristyc6722092012-10-14 00:19:31 +000030433 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030434 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030435 fi
cristyfbb0ef02010-12-19 02:32:11 +000030436fi
cristyb94e5002011-11-14 13:20:10 +000030437
cristyfbb0ef02010-12-19 02:32:11 +000030438 if test "$have_lzma" = 'yes'; then
30439 LZMA_DELEGATE_TRUE=
30440 LZMA_DELEGATE_FALSE='#'
30441else
30442 LZMA_DELEGATE_TRUE='#'
30443 LZMA_DELEGATE_FALSE=
30444fi
30445
30446
30447
30448
cristyb94e5002011-11-14 13:20:10 +000030449
cristy3ed852e2009-09-05 21:47:34 +000030450#
30451# Check for the OpenEXR delegate library.
30452#
30453
30454# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030455if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030456 withval=$with_openexr; with_openexr=$withval
30457else
30458 with_openexr='yes'
30459fi
30460
30461
30462if test "$with_openexr" != 'yes'; then
30463 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30464fi
30465
30466have_openexr='no'
30467OPENEXR_CFLAGS=""
30468OPENEXR_LIBS=""
30469OPENEXR_PKG=""
30470if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30472$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030473
30474pkg_failed=no
30475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30476$as_echo_n "checking for OPENEXR... " >&6; }
30477
30478if test -n "$OPENEXR_CFLAGS"; then
30479 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30480 elif test -n "$PKG_CONFIG"; then
30481 if test -n "$PKG_CONFIG" && \
30482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30483 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30484 ac_status=$?
30485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30486 test $ac_status = 0; }; then
30487 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30488else
30489 pkg_failed=yes
30490fi
30491 else
30492 pkg_failed=untried
30493fi
30494if test -n "$OPENEXR_LIBS"; then
30495 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30496 elif test -n "$PKG_CONFIG"; then
30497 if test -n "$PKG_CONFIG" && \
30498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30499 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30500 ac_status=$?
30501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30502 test $ac_status = 0; }; then
30503 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30504else
30505 pkg_failed=yes
30506fi
30507 else
30508 pkg_failed=untried
30509fi
30510
30511
30512
30513if test $pkg_failed = yes; then
30514
30515if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30516 _pkg_short_errors_supported=yes
30517else
30518 _pkg_short_errors_supported=no
30519fi
30520 if test $_pkg_short_errors_supported = yes; then
30521 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30522 else
30523 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30524 fi
30525 # Put the nasty error message in config.log where it belongs
30526 echo "$OPENEXR_PKG_ERRORS" >&5
30527
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30529$as_echo "no" >&6; }
30530 have_openexr=no
30531elif test $pkg_failed = untried; then
30532 have_openexr=no
30533else
30534 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30535 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30537$as_echo "yes" >&6; }
30538 have_openexr=yes
30539fi
cristyad38abe2012-12-23 23:03:21 +000030540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30541$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030542fi
30543
30544if test "$have_openexr" = 'yes'; then
30545
cristy8b350f62009-11-15 23:12:43 +000030546$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030547
cristyc6722092012-10-14 00:19:31 +000030548 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030549 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30550 fi
30551fi
30552
cristy73bd4a52010-10-05 11:24:23 +000030553 if test "$have_openexr" = 'yes'; then
30554 OPENEXR_DELEGATE_TRUE=
30555 OPENEXR_DELEGATE_FALSE='#'
30556else
30557 OPENEXR_DELEGATE_TRUE='#'
30558 OPENEXR_DELEGATE_FALSE=
30559fi
30560
cristy3ed852e2009-09-05 21:47:34 +000030561
30562
30563
30564
30565#
cristy41cbe8a2011-10-27 01:35:18 +000030566# Check for PANGO delegate library.
30567#
30568
30569# Check whether --with-pango was given.
30570if test "${with_pango+set}" = set; then :
30571 withval=$with_pango; with_pango=$withval
30572else
cristyfc3d0222012-02-07 15:05:57 +000030573 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030574fi
30575
30576
30577if test "$with_pango" != 'yes'; then
30578 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30579fi
30580
30581have_pango='no'
cristya054b762012-03-26 23:16:00 +000030582have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030583PANGO_CFLAGS=""
30584PANGO_LIBS=""
30585PANGO_PKG=""
30586if test "x$with_pango" = "xyes"; then
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30588$as_echo "-------------------------------------------------------------" >&6; }
30589
30590pkg_failed=no
30591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30592$as_echo_n "checking for PANGO... " >&6; }
30593
30594if test -n "$PANGO_CFLAGS"; then
30595 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30596 elif test -n "$PKG_CONFIG"; then
30597 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030598 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30599 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030600 ac_status=$?
30601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30602 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030603 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030604else
30605 pkg_failed=yes
30606fi
30607 else
30608 pkg_failed=untried
30609fi
30610if test -n "$PANGO_LIBS"; then
30611 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30612 elif test -n "$PKG_CONFIG"; then
30613 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030614 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30615 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030616 ac_status=$?
30617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30618 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030619 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030620else
30621 pkg_failed=yes
30622fi
30623 else
30624 pkg_failed=untried
30625fi
30626
30627
30628
30629if test $pkg_failed = yes; then
30630
30631if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30632 _pkg_short_errors_supported=yes
30633else
30634 _pkg_short_errors_supported=no
30635fi
30636 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030637 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030638 else
cristya054b762012-03-26 23:16:00 +000030639 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030640 fi
30641 # Put the nasty error message in config.log where it belongs
30642 echo "$PANGO_PKG_ERRORS" >&5
30643
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30645$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030646 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030647elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030648 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030649else
30650 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30651 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30653$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030654 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030655fi
30656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30657$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030658
30659pkg_failed=no
30660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30661$as_echo_n "checking for PANGO... " >&6; }
30662
30663if test -n "$PANGO_CFLAGS"; then
30664 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30665 elif test -n "$PKG_CONFIG"; then
30666 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30668 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030669 ac_status=$?
30670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30671 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030672 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030673else
30674 pkg_failed=yes
30675fi
30676 else
30677 pkg_failed=untried
30678fi
30679if test -n "$PANGO_LIBS"; then
30680 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30681 elif test -n "$PKG_CONFIG"; then
30682 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30684 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030685 ac_status=$?
30686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30687 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030688 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030689else
30690 pkg_failed=yes
30691fi
30692 else
30693 pkg_failed=untried
30694fi
30695
30696
30697
30698if test $pkg_failed = yes; then
30699
30700if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30701 _pkg_short_errors_supported=yes
30702else
30703 _pkg_short_errors_supported=no
30704fi
30705 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030706 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030707 else
cristy2542fc62011-12-06 17:50:25 +000030708 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030709 fi
30710 # Put the nasty error message in config.log where it belongs
30711 echo "$PANGO_PKG_ERRORS" >&5
30712
30713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30714$as_echo "no" >&6; }
30715 have_pango=no
30716elif test $pkg_failed = untried; then
30717 have_pango=no
30718else
30719 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30720 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30722$as_echo "yes" >&6; }
30723 have_pango=yes
30724fi
30725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30726$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030727fi
30728
30729if test "$have_pango" = 'yes'; then
30730
30731$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30732
cristyc6722092012-10-14 00:19:31 +000030733 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030734 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30735 fi
30736fi
30737
cristya054b762012-03-26 23:16:00 +000030738if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030739
cristya054b762012-03-26 23:16:00 +000030740$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030741
cristyc6722092012-10-14 00:19:31 +000030742 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030743 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030744 fi
30745fi
30746
30747 if test "$have_pango" = 'yes'; then
30748 PANGO_DELEGATE_TRUE=
30749 PANGO_DELEGATE_FALSE='#'
30750else
30751 PANGO_DELEGATE_TRUE='#'
30752 PANGO_DELEGATE_FALSE=
30753fi
30754
cristya054b762012-03-26 23:16:00 +000030755 if test "$have_pangocairo" = 'yes'; then
30756 PANGOCAIRO_DELEGATE_TRUE=
30757 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030758else
cristya054b762012-03-26 23:16:00 +000030759 PANGOCAIRO_DELEGATE_TRUE='#'
30760 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030761fi
30762
30763
30764
30765
30766
30767#
cristy3ed852e2009-09-05 21:47:34 +000030768# Check for PNG delegate library.
30769#
30770
30771# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030772if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030773 withval=$with_png; with_png=$withval
30774else
30775 with_png='yes'
30776fi
30777
30778
30779if test "$with_png" != 'yes'; then
30780 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30781fi
30782
cristy81beccd2011-10-03 18:17:24 +000030783have_png='no'
30784PNG_LIBS=''
30785
30786if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30788$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30790$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30792$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030793 failed=0
30794 passed=0
30795 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30796if test "x$ac_cv_header_png_h" = xyes; then :
30797 passed=`expr $passed + 1`
30798else
30799 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030800fi
30801
cristy81beccd2011-10-03 18:17:24 +000030802
30803
30804 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030805 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030806 if test "$have_png" = 'no' ; then
30807 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030808 pnglib='png'
30809 else
30810 pnglib="png1${var}"
30811 fi
30812
30813# Test for compatible LIBPNG library
30814 failed=0
30815 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030816 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030817 if test "${pnglib}" != 'png' ; then
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30819$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30821/* end confdefs.h. */
30822#include <stdio.h>
30823#include <stdlib.h>
30824#include <png.h>
30825
30826int
30827main ()
30828{
30829
30830#if PNG_LIBPNG_VER_MINOR != ${var}
30831#error LIBPNG library must be version 1${var}!
30832Kaboom, Kaboom
30833#endif
30834return 0;
30835
30836 ;
30837 return 0;
30838}
30839_ACEOF
30840if ac_fn_c_try_compile "$LINENO"; then :
30841 ac_cv_libpng_ok='yes'
30842else
30843 ac_cv_libpng_ok='no'
30844fi
30845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30846 if test "$ac_cv_libpng_ok" = 'yes' ; then
30847 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30849$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030850 else
30851 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30853$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030854 fi
30855 else
30856 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30858$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030859 fi
30860 fi
30861
30862 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030863 if test "1${var}" = '17' ; then
30864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30865$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30866if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30867 $as_echo_n "(cached) " >&6
30868else
30869 ac_check_lib_save_LIBS=$LIBS
30870LIBS="-lpng17 $LIBS"
30871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30872/* end confdefs.h. */
30873
30874/* Override any GCC internal prototype to avoid an error.
30875 Use char because int might match the return type of a GCC
30876 builtin and then its argument prototype would still apply. */
30877#ifdef __cplusplus
30878extern "C"
30879#endif
30880char png_get_io_ptr ();
30881int
30882main ()
30883{
30884return png_get_io_ptr ();
30885 ;
30886 return 0;
30887}
30888_ACEOF
30889if ac_fn_c_try_link "$LINENO"; then :
30890 ac_cv_lib_png17_png_get_io_ptr=yes
30891else
30892 ac_cv_lib_png17_png_get_io_ptr=no
30893fi
30894rm -f core conftest.err conftest.$ac_objext \
30895 conftest$ac_exeext conftest.$ac_ext
30896LIBS=$ac_check_lib_save_LIBS
30897fi
30898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30899$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30900if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30901 passed=`expr $passed + 1`
30902else
30903 failed=`expr $failed + 1`
30904fi
30905
30906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30907$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30908if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30909 $as_echo_n "(cached) " >&6
30910else
30911 ac_check_lib_save_LIBS=$LIBS
30912LIBS="-lpng17 $LIBS"
30913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30914/* end confdefs.h. */
30915
30916/* Override any GCC internal prototype to avoid an error.
30917 Use char because int might match the return type of a GCC
30918 builtin and then its argument prototype would still apply. */
30919#ifdef __cplusplus
30920extern "C"
30921#endif
30922char png_longjmp ();
30923int
30924main ()
30925{
30926return png_longjmp ();
30927 ;
30928 return 0;
30929}
30930_ACEOF
30931if ac_fn_c_try_link "$LINENO"; then :
30932 ac_cv_lib_png17_png_longjmp=yes
30933else
30934 ac_cv_lib_png17_png_longjmp=no
30935fi
30936rm -f core conftest.err conftest.$ac_objext \
30937 conftest$ac_exeext conftest.$ac_ext
30938LIBS=$ac_check_lib_save_LIBS
30939fi
30940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30941$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30942if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30943 passed=`expr $passed + 1`
30944else
30945 failed=`expr $failed + 1`
30946fi
30947
30948 fi
30949 if test "1${var}" = '16' ; then
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30951$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30952if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30953 $as_echo_n "(cached) " >&6
30954else
30955 ac_check_lib_save_LIBS=$LIBS
30956LIBS="-lpng16 $LIBS"
30957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30958/* end confdefs.h. */
30959
30960/* Override any GCC internal prototype to avoid an error.
30961 Use char because int might match the return type of a GCC
30962 builtin and then its argument prototype would still apply. */
30963#ifdef __cplusplus
30964extern "C"
30965#endif
30966char png_get_io_ptr ();
30967int
30968main ()
30969{
30970return png_get_io_ptr ();
30971 ;
30972 return 0;
30973}
30974_ACEOF
30975if ac_fn_c_try_link "$LINENO"; then :
30976 ac_cv_lib_png16_png_get_io_ptr=yes
30977else
30978 ac_cv_lib_png16_png_get_io_ptr=no
30979fi
30980rm -f core conftest.err conftest.$ac_objext \
30981 conftest$ac_exeext conftest.$ac_ext
30982LIBS=$ac_check_lib_save_LIBS
30983fi
30984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30985$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30986if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30987 passed=`expr $passed + 1`
30988else
30989 failed=`expr $failed + 1`
30990fi
30991
30992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30993$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30994if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30995 $as_echo_n "(cached) " >&6
30996else
30997 ac_check_lib_save_LIBS=$LIBS
30998LIBS="-lpng16 $LIBS"
30999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31000/* end confdefs.h. */
31001
31002/* Override any GCC internal prototype to avoid an error.
31003 Use char because int might match the return type of a GCC
31004 builtin and then its argument prototype would still apply. */
31005#ifdef __cplusplus
31006extern "C"
31007#endif
31008char png_longjmp ();
31009int
31010main ()
31011{
31012return png_longjmp ();
31013 ;
31014 return 0;
31015}
31016_ACEOF
31017if ac_fn_c_try_link "$LINENO"; then :
31018 ac_cv_lib_png16_png_longjmp=yes
31019else
31020 ac_cv_lib_png16_png_longjmp=no
31021fi
31022rm -f core conftest.err conftest.$ac_objext \
31023 conftest$ac_exeext conftest.$ac_ext
31024LIBS=$ac_check_lib_save_LIBS
31025fi
31026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31027$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31028if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31029 passed=`expr $passed + 1`
31030else
31031 failed=`expr $failed + 1`
31032fi
31033
31034 fi
cristy81beccd2011-10-03 18:17:24 +000031035 if test "1${var}" = '15' ; then
31036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31037$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31038if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31039 $as_echo_n "(cached) " >&6
31040else
31041 ac_check_lib_save_LIBS=$LIBS
31042LIBS="-lpng15 $LIBS"
31043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31044/* end confdefs.h. */
31045
31046/* Override any GCC internal prototype to avoid an error.
31047 Use char because int might match the return type of a GCC
31048 builtin and then its argument prototype would still apply. */
31049#ifdef __cplusplus
31050extern "C"
31051#endif
31052char png_get_io_ptr ();
31053int
31054main ()
31055{
31056return png_get_io_ptr ();
31057 ;
31058 return 0;
31059}
31060_ACEOF
31061if ac_fn_c_try_link "$LINENO"; then :
31062 ac_cv_lib_png15_png_get_io_ptr=yes
31063else
31064 ac_cv_lib_png15_png_get_io_ptr=no
31065fi
31066rm -f core conftest.err conftest.$ac_objext \
31067 conftest$ac_exeext conftest.$ac_ext
31068LIBS=$ac_check_lib_save_LIBS
31069fi
31070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31071$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31072if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31073 passed=`expr $passed + 1`
31074else
31075 failed=`expr $failed + 1`
31076fi
31077
31078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31079$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31080if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31081 $as_echo_n "(cached) " >&6
31082else
31083 ac_check_lib_save_LIBS=$LIBS
31084LIBS="-lpng15 $LIBS"
31085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31086/* end confdefs.h. */
31087
31088/* Override any GCC internal prototype to avoid an error.
31089 Use char because int might match the return type of a GCC
31090 builtin and then its argument prototype would still apply. */
31091#ifdef __cplusplus
31092extern "C"
31093#endif
31094char png_longjmp ();
31095int
31096main ()
31097{
31098return png_longjmp ();
31099 ;
31100 return 0;
31101}
31102_ACEOF
31103if ac_fn_c_try_link "$LINENO"; then :
31104 ac_cv_lib_png15_png_longjmp=yes
31105else
31106 ac_cv_lib_png15_png_longjmp=no
31107fi
31108rm -f core conftest.err conftest.$ac_objext \
31109 conftest$ac_exeext conftest.$ac_ext
31110LIBS=$ac_check_lib_save_LIBS
31111fi
31112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31113$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31114if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31115 passed=`expr $passed + 1`
31116else
31117 failed=`expr $failed + 1`
31118fi
31119
31120 fi
31121 if test "1${var}" = '14' ; then
31122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31123$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31124if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31125 $as_echo_n "(cached) " >&6
31126else
31127 ac_check_lib_save_LIBS=$LIBS
31128LIBS="-lpng14 $LIBS"
31129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31130/* end confdefs.h. */
31131
31132/* Override any GCC internal prototype to avoid an error.
31133 Use char because int might match the return type of a GCC
31134 builtin and then its argument prototype would still apply. */
31135#ifdef __cplusplus
31136extern "C"
31137#endif
31138char png_get_io_ptr ();
31139int
31140main ()
31141{
31142return png_get_io_ptr ();
31143 ;
31144 return 0;
31145}
31146_ACEOF
31147if ac_fn_c_try_link "$LINENO"; then :
31148 ac_cv_lib_png14_png_get_io_ptr=yes
31149else
31150 ac_cv_lib_png14_png_get_io_ptr=no
31151fi
31152rm -f core conftest.err conftest.$ac_objext \
31153 conftest$ac_exeext conftest.$ac_ext
31154LIBS=$ac_check_lib_save_LIBS
31155fi
31156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31157$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31158if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31159 passed=`expr $passed + 1`
31160else
31161 failed=`expr $failed + 1`
31162fi
31163
31164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31165$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31166if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31167 $as_echo_n "(cached) " >&6
31168else
31169 ac_check_lib_save_LIBS=$LIBS
31170LIBS="-lpng14 $LIBS"
31171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31172/* end confdefs.h. */
31173
31174/* Override any GCC internal prototype to avoid an error.
31175 Use char because int might match the return type of a GCC
31176 builtin and then its argument prototype would still apply. */
31177#ifdef __cplusplus
31178extern "C"
31179#endif
31180char png_get_io_state ();
31181int
31182main ()
31183{
31184return png_get_io_state ();
31185 ;
31186 return 0;
31187}
31188_ACEOF
31189if ac_fn_c_try_link "$LINENO"; then :
31190 ac_cv_lib_png14_png_get_io_state=yes
31191else
31192 ac_cv_lib_png14_png_get_io_state=no
31193fi
31194rm -f core conftest.err conftest.$ac_objext \
31195 conftest$ac_exeext conftest.$ac_ext
31196LIBS=$ac_check_lib_save_LIBS
31197fi
31198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31199$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31200if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31201 passed=`expr $passed + 1`
31202else
31203 failed=`expr $failed + 1`
31204fi
31205
31206 fi
31207 if test "1${var}" = '12' ; then
31208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31209$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31210if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31211 $as_echo_n "(cached) " >&6
31212else
31213 ac_check_lib_save_LIBS=$LIBS
31214LIBS="-lpng12 $LIBS"
31215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31216/* end confdefs.h. */
31217
31218/* Override any GCC internal prototype to avoid an error.
31219 Use char because int might match the return type of a GCC
31220 builtin and then its argument prototype would still apply. */
31221#ifdef __cplusplus
31222extern "C"
31223#endif
31224char png_get_io_ptr ();
31225int
31226main ()
31227{
31228return png_get_io_ptr ();
31229 ;
31230 return 0;
31231}
31232_ACEOF
31233if ac_fn_c_try_link "$LINENO"; then :
31234 ac_cv_lib_png12_png_get_io_ptr=yes
31235else
31236 ac_cv_lib_png12_png_get_io_ptr=no
31237fi
31238rm -f core conftest.err conftest.$ac_objext \
31239 conftest$ac_exeext conftest.$ac_ext
31240LIBS=$ac_check_lib_save_LIBS
31241fi
31242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31243$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31244if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31245 passed=`expr $passed + 1`
31246else
31247 failed=`expr $failed + 1`
31248fi
31249
31250 fi
31251 if test "1${var}" = '1' ; then
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31253$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31254if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31255 $as_echo_n "(cached) " >&6
31256else
31257 ac_check_lib_save_LIBS=$LIBS
31258LIBS="-lpng $LIBS"
31259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31260/* end confdefs.h. */
31261
31262/* Override any GCC internal prototype to avoid an error.
31263 Use char because int might match the return type of a GCC
31264 builtin and then its argument prototype would still apply. */
31265#ifdef __cplusplus
31266extern "C"
31267#endif
31268char png_get_io_ptr ();
31269int
31270main ()
31271{
31272return png_get_io_ptr ();
31273 ;
31274 return 0;
31275}
31276_ACEOF
31277if ac_fn_c_try_link "$LINENO"; then :
31278 ac_cv_lib_png_png_get_io_ptr=yes
31279else
31280 ac_cv_lib_png_png_get_io_ptr=no
31281fi
31282rm -f core conftest.err conftest.$ac_objext \
31283 conftest$ac_exeext conftest.$ac_ext
31284LIBS=$ac_check_lib_save_LIBS
31285fi
31286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31287$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31288if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31289 passed=`expr $passed + 1`
31290else
31291 failed=`expr $failed + 1`
31292fi
31293
31294 fi
31295 if test $passed -gt 0 -a $failed -le 0 ; then
31296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31297$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31298 if test $passed -gt 0 ; then
31299 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31301$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031302 have_png='no (failed tests)'
31303 else
31304 PNG_LIBS="-l${pnglib}"
31305 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031306
cristy8b350f62009-11-15 23:12:43 +000031307$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031308
cristyad38abe2012-12-23 23:03:21 +000031309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31310$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031311 have_png='yes'
31312 fi
31313 fi
31314 fi
31315 fi
31316 fi
31317 done
31318 fi
cristy3ed852e2009-09-05 21:47:34 +000031319fi
cristy64877302011-08-23 19:10:31 +000031320
cristy73bd4a52010-10-05 11:24:23 +000031321 if test "$have_png" = 'yes'; then
31322 PNG_DELEGATE_TRUE=
31323 PNG_DELEGATE_FALSE='#'
31324else
31325 PNG_DELEGATE_TRUE='#'
31326 PNG_DELEGATE_FALSE=
31327fi
31328
cristy3ed852e2009-09-05 21:47:34 +000031329
cristy50d3f5c2011-09-10 20:09:06 +000031330
cristy3ed852e2009-09-05 21:47:34 +000031331
31332
31333#
31334# Check for RSVG delegate library.
31335#
31336
31337# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031338if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031339 withval=$with_rsvg; with_rsvg=$withval
31340else
cristy1164d5f2012-08-15 00:58:25 +000031341 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031342fi
31343
31344
31345if test "$with_rsvg" != 'yes'; then
31346 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31347fi
31348
31349have_rsvg='no'
31350have_cairo='no'
31351RSVG_CFLAGS=""
31352RSVG_LIBS=""
31353RSVG_PKG=""
31354if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31356$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031357
31358pkg_failed=no
31359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31360$as_echo_n "checking for RSVG... " >&6; }
31361
31362if test -n "$RSVG_CFLAGS"; then
31363 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31364 elif test -n "$PKG_CONFIG"; then
31365 if test -n "$PKG_CONFIG" && \
31366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31367 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31368 ac_status=$?
31369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31370 test $ac_status = 0; }; then
31371 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31372else
31373 pkg_failed=yes
31374fi
31375 else
31376 pkg_failed=untried
31377fi
31378if test -n "$RSVG_LIBS"; then
31379 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31380 elif test -n "$PKG_CONFIG"; then
31381 if test -n "$PKG_CONFIG" && \
31382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31383 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31384 ac_status=$?
31385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31386 test $ac_status = 0; }; then
31387 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31388else
31389 pkg_failed=yes
31390fi
31391 else
31392 pkg_failed=untried
31393fi
31394
31395
31396
31397if test $pkg_failed = yes; then
31398
31399if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31400 _pkg_short_errors_supported=yes
31401else
31402 _pkg_short_errors_supported=no
31403fi
31404 if test $_pkg_short_errors_supported = yes; then
31405 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31406 else
31407 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31408 fi
31409 # Put the nasty error message in config.log where it belongs
31410 echo "$RSVG_PKG_ERRORS" >&5
31411
31412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31413$as_echo "no" >&6; }
31414 have_rsvg=no
31415elif test $pkg_failed = untried; then
31416 have_rsvg=no
31417else
31418 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31419 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31421$as_echo "yes" >&6; }
31422 have_rsvg=yes
31423fi
cristyad38abe2012-12-23 23:03:21 +000031424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31425$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031426
31427pkg_failed=no
31428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31429$as_echo_n "checking for CAIRO_SVG... " >&6; }
31430
31431if test -n "$CAIRO_SVG_CFLAGS"; then
31432 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31433 elif test -n "$PKG_CONFIG"; then
31434 if test -n "$PKG_CONFIG" && \
31435 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31436 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31437 ac_status=$?
31438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31439 test $ac_status = 0; }; then
31440 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31441else
31442 pkg_failed=yes
31443fi
31444 else
31445 pkg_failed=untried
31446fi
31447if test -n "$CAIRO_SVG_LIBS"; then
31448 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31449 elif test -n "$PKG_CONFIG"; then
31450 if test -n "$PKG_CONFIG" && \
31451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31452 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31453 ac_status=$?
31454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31455 test $ac_status = 0; }; then
31456 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31457else
31458 pkg_failed=yes
31459fi
31460 else
31461 pkg_failed=untried
31462fi
31463
31464
31465
31466if test $pkg_failed = yes; then
31467
31468if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31469 _pkg_short_errors_supported=yes
31470else
31471 _pkg_short_errors_supported=no
31472fi
31473 if test $_pkg_short_errors_supported = yes; then
31474 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31475 else
31476 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31477 fi
31478 # Put the nasty error message in config.log where it belongs
31479 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31480
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31482$as_echo "no" >&6; }
31483 have_cairo=no
31484elif test $pkg_failed = untried; then
31485 have_cairo=no
31486else
31487 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31488 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31490$as_echo "yes" >&6; }
31491 have_cairo=yes
31492fi
cristyad38abe2012-12-23 23:03:21 +000031493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31494$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031495fi
31496
31497if test "$have_rsvg" = 'yes'; then
31498
cristy8b350f62009-11-15 23:12:43 +000031499$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031500
cristyc6722092012-10-14 00:19:31 +000031501 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031502 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31503 fi
31504fi
31505
31506if test "$have_cairo" = 'yes'; then
31507
cristy8b350f62009-11-15 23:12:43 +000031508$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031509
cristyc6722092012-10-14 00:19:31 +000031510 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031511 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31512 fi
31513fi
31514
cristy73bd4a52010-10-05 11:24:23 +000031515 if test "$have_rsvg" = 'yes'; then
31516 RSVG_DELEGATE_TRUE=
31517 RSVG_DELEGATE_FALSE='#'
31518else
31519 RSVG_DELEGATE_TRUE='#'
31520 RSVG_DELEGATE_FALSE=
31521fi
31522
31523 if test "$have_cairo" = 'yes'; then
31524 CAIRO_DELEGATE_TRUE=
31525 CAIRO_DELEGATE_FALSE='#'
31526else
31527 CAIRO_DELEGATE_TRUE='#'
31528 CAIRO_DELEGATE_FALSE=
31529fi
31530
cristy3ed852e2009-09-05 21:47:34 +000031531
31532
31533
31534
31535#
31536# Check for TIFF delegate library.
31537#
31538
31539# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031540if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031541 withval=$with_tiff; with_tiff=$withval
31542else
31543 with_tiff='yes'
31544fi
31545
31546
31547if test "$with_tiff" != 'yes'; then
31548 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31549fi
31550
31551have_tiff='no'
31552TIFF_LIBS=''
31553if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31555$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031557$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31559$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031560 failed=0
31561 passed=0
cristy8b350f62009-11-15 23:12:43 +000031562 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031563if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031564 passed=`expr $passed + 1`
31565else
31566 failed=`expr $failed + 1`
31567fi
31568
31569
cristy8b350f62009-11-15 23:12:43 +000031570 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031571if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031572 passed=`expr $passed + 1`
31573else
31574 failed=`expr $failed + 1`
31575fi
31576
31577
cristy8b350f62009-11-15 23:12:43 +000031578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031579$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031580if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031581 $as_echo_n "(cached) " >&6
31582else
31583 ac_check_lib_save_LIBS=$LIBS
31584LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031586/* end confdefs.h. */
31587
31588/* Override any GCC internal prototype to avoid an error.
31589 Use char because int might match the return type of a GCC
31590 builtin and then its argument prototype would still apply. */
31591#ifdef __cplusplus
31592extern "C"
31593#endif
31594char TIFFOpen ();
31595int
31596main ()
31597{
31598return TIFFOpen ();
31599 ;
31600 return 0;
31601}
31602_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031603if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031604 ac_cv_lib_tiff_TIFFOpen=yes
31605else
cristy8b350f62009-11-15 23:12:43 +000031606 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031607fi
cristy8b350f62009-11-15 23:12:43 +000031608rm -f core conftest.err conftest.$ac_objext \
31609 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031610LIBS=$ac_check_lib_save_LIBS
31611fi
cristy8b350f62009-11-15 23:12:43 +000031612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031613$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031614if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031615 passed=`expr $passed + 1`
31616else
31617 failed=`expr $failed + 1`
31618fi
31619
cristy8b350f62009-11-15 23:12:43 +000031620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031621$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031622if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031623 $as_echo_n "(cached) " >&6
31624else
31625 ac_check_lib_save_LIBS=$LIBS
31626LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031628/* end confdefs.h. */
31629
31630/* Override any GCC internal prototype to avoid an error.
31631 Use char because int might match the return type of a GCC
31632 builtin and then its argument prototype would still apply. */
31633#ifdef __cplusplus
31634extern "C"
31635#endif
31636char TIFFClientOpen ();
31637int
31638main ()
31639{
31640return TIFFClientOpen ();
31641 ;
31642 return 0;
31643}
31644_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031645if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031646 ac_cv_lib_tiff_TIFFClientOpen=yes
31647else
cristy8b350f62009-11-15 23:12:43 +000031648 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031649fi
cristy8b350f62009-11-15 23:12:43 +000031650rm -f core conftest.err conftest.$ac_objext \
31651 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031652LIBS=$ac_check_lib_save_LIBS
31653fi
cristy8b350f62009-11-15 23:12:43 +000031654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031655$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031656if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031657 passed=`expr $passed + 1`
31658else
31659 failed=`expr $failed + 1`
31660fi
31661
cristy8b350f62009-11-15 23:12:43 +000031662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031663$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031664if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031665 $as_echo_n "(cached) " >&6
31666else
31667 ac_check_lib_save_LIBS=$LIBS
31668LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031670/* end confdefs.h. */
31671
31672/* Override any GCC internal prototype to avoid an error.
31673 Use char because int might match the return type of a GCC
31674 builtin and then its argument prototype would still apply. */
31675#ifdef __cplusplus
31676extern "C"
31677#endif
31678char TIFFIsByteSwapped ();
31679int
31680main ()
31681{
31682return TIFFIsByteSwapped ();
31683 ;
31684 return 0;
31685}
31686_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031687if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031688 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31689else
cristy8b350f62009-11-15 23:12:43 +000031690 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031691fi
cristy8b350f62009-11-15 23:12:43 +000031692rm -f core conftest.err conftest.$ac_objext \
31693 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031694LIBS=$ac_check_lib_save_LIBS
31695fi
cristy8b350f62009-11-15 23:12:43 +000031696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031697$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031698if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031699 passed=`expr $passed + 1`
31700else
31701 failed=`expr $failed + 1`
31702fi
31703
cristy8b350f62009-11-15 23:12:43 +000031704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031705$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031706if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031707 $as_echo_n "(cached) " >&6
31708else
31709 ac_check_lib_save_LIBS=$LIBS
31710LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031712/* end confdefs.h. */
31713
31714/* Override any GCC internal prototype to avoid an error.
31715 Use char because int might match the return type of a GCC
31716 builtin and then its argument prototype would still apply. */
31717#ifdef __cplusplus
31718extern "C"
31719#endif
31720char TIFFReadRGBATile ();
31721int
31722main ()
31723{
31724return TIFFReadRGBATile ();
31725 ;
31726 return 0;
31727}
31728_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031729if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031730 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31731else
cristy8b350f62009-11-15 23:12:43 +000031732 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031733fi
cristy8b350f62009-11-15 23:12:43 +000031734rm -f core conftest.err conftest.$ac_objext \
31735 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031736LIBS=$ac_check_lib_save_LIBS
31737fi
cristy8b350f62009-11-15 23:12:43 +000031738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031739$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031740if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031741 passed=`expr $passed + 1`
31742else
31743 failed=`expr $failed + 1`
31744fi
31745
cristy8b350f62009-11-15 23:12:43 +000031746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031747$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031748if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031749 $as_echo_n "(cached) " >&6
31750else
31751 ac_check_lib_save_LIBS=$LIBS
31752LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031754/* end confdefs.h. */
31755
31756/* Override any GCC internal prototype to avoid an error.
31757 Use char because int might match the return type of a GCC
31758 builtin and then its argument prototype would still apply. */
31759#ifdef __cplusplus
31760extern "C"
31761#endif
31762char TIFFReadRGBAStrip ();
31763int
31764main ()
31765{
31766return TIFFReadRGBAStrip ();
31767 ;
31768 return 0;
31769}
31770_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031771if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031772 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31773else
cristy8b350f62009-11-15 23:12:43 +000031774 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031775fi
cristy8b350f62009-11-15 23:12:43 +000031776rm -f core conftest.err conftest.$ac_objext \
31777 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031778LIBS=$ac_check_lib_save_LIBS
31779fi
cristy8b350f62009-11-15 23:12:43 +000031780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031781$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031782if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031783 passed=`expr $passed + 1`
31784else
31785 failed=`expr $failed + 1`
31786fi
31787
cristy8b350f62009-11-15 23:12:43 +000031788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031789$as_echo_n "checking if TIFF package is complete... " >&6; }
31790 if test $passed -gt 0; then
31791 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31793$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031794 have_tiff='no (failed tests)'
31795 else
31796 TIFF_LIBS='-ltiff'
31797 LIBS="$TIFF_LIBS $LIBS"
31798
cristy8b350f62009-11-15 23:12:43 +000031799$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031800
cristyad38abe2012-12-23 23:03:21 +000031801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31802$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031803 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031804 for ac_header in tiffconf.h
31805do :
31806 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031807if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031808 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031809#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031810_ACEOF
31811
31812fi
31813
31814done
31815
cristy8b350f62009-11-15 23:12:43 +000031816 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031817 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31818 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31819 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031820do :
31821 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31822ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031823if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031824 cat >>confdefs.h <<_ACEOF
31825#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31826_ACEOF
31827
31828fi
31829done
31830
31831 fi
31832 else
cristyad38abe2012-12-23 23:03:21 +000031833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31834$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031835 fi
31836fi
cristy73bd4a52010-10-05 11:24:23 +000031837 if test "$have_tiff" = 'yes'; then
31838 TIFF_DELEGATE_TRUE=
31839 TIFF_DELEGATE_FALSE='#'
31840else
31841 TIFF_DELEGATE_TRUE='#'
31842 TIFF_DELEGATE_FALSE=
31843fi
31844
cristy3ed852e2009-09-05 21:47:34 +000031845
31846
31847
31848#
cristyb1860752011-03-14 00:27:46 +000031849# Check for WEBP delegate library.
31850#
31851
31852# Check whether --with-webp was given.
31853if test "${with_webp+set}" = set; then :
31854 withval=$with_webp; with_webp=$withval
31855else
31856 with_webp='yes'
31857fi
31858
31859
31860if test "$with_webp" != 'yes'; then
31861 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31862fi
31863
31864have_webp='no'
31865WEBP_LIBS=''
31866if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31868$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31870$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31872$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031873 failed=0
31874 passed=0
31875 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31876if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31877 passed=`expr $passed + 1`
31878else
31879 failed=`expr $failed + 1`
31880fi
31881
31882
cristy6d670312013-03-22 23:23:01 +000031883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31884$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31885if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031886 $as_echo_n "(cached) " >&6
31887else
31888 ac_check_lib_save_LIBS=$LIBS
31889LIBS="-lwebp $LIBS"
31890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31891/* end confdefs.h. */
31892
31893/* Override any GCC internal prototype to avoid an error.
31894 Use char because int might match the return type of a GCC
31895 builtin and then its argument prototype would still apply. */
31896#ifdef __cplusplus
31897extern "C"
31898#endif
cristy6d670312013-03-22 23:23:01 +000031899char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031900int
31901main ()
31902{
cristy6d670312013-03-22 23:23:01 +000031903return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031904 ;
31905 return 0;
31906}
31907_ACEOF
31908if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031909 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031910else
cristy6d670312013-03-22 23:23:01 +000031911 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031912fi
31913rm -f core conftest.err conftest.$ac_objext \
31914 conftest$ac_exeext conftest.$ac_ext
31915LIBS=$ac_check_lib_save_LIBS
31916fi
cristy6d670312013-03-22 23:23:01 +000031917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31918$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31919if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031920 passed=`expr $passed + 1`
31921else
31922 failed=`expr $failed + 1`
31923fi
31924
31925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31926$as_echo_n "checking if WEBP package is complete... " >&6; }
31927 if test $passed -gt 0; then
31928 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31930$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031931 have_webp='no (failed tests)'
31932 else
31933 WEBP_LIBS='-lwebp'
31934 LIBS="$WEBP_LIBS $LIBS"
31935
31936$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31937
cristyad38abe2012-12-23 23:03:21 +000031938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31939$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031940 have_webp='yes'
31941 fi
31942 else
cristyad38abe2012-12-23 23:03:21 +000031943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31944$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031945 fi
31946fi
31947 if test "$have_webp" = 'yes'; then
31948 WEBP_DELEGATE_TRUE=
31949 WEBP_DELEGATE_FALSE='#'
31950else
31951 WEBP_DELEGATE_TRUE='#'
31952 WEBP_DELEGATE_FALSE=
31953fi
31954
31955
31956
31957
31958#
cristy3ed852e2009-09-05 21:47:34 +000031959# Set Windows font directory.
31960#
31961
31962# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031963if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031964 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31965else
31966 with_windows_font_dir=''
31967fi
31968
31969if test "$with_windows_font_dir" != '' ; then
31970 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31971fi
31972
31973
31974#
31975# Check for WMF delegate library.
31976#
31977
31978# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031979if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031980 withval=$with_wmf; with_wmf=$withval
31981else
cristyfc3d0222012-02-07 15:05:57 +000031982 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031983fi
31984
31985
31986if test "$with_wmf" != 'yes'; then
31987 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31988fi
31989
31990have_wmf='no'
31991WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031992WMF_LIBS_DEPS=''
31993OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031994if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31996$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031998$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32000$as_echo "" >&6; }
32001 have_libwmf='no'
32002 have_libwmflite='no'
32003 have_libwmf_ipa_h='no'
32004
32005 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32006"
32007if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32008 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032009fi
32010
32011
cristy03f7cf92011-12-15 01:40:41 +000032012 if test "$have_libwmf_ipa_h" = 'yes'; then
32013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32014$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32015if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032016 $as_echo_n "(cached) " >&6
32017else
32018 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032019LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032021/* end confdefs.h. */
32022
32023/* Override any GCC internal prototype to avoid an error.
32024 Use char because int might match the return type of a GCC
32025 builtin and then its argument prototype would still apply. */
32026#ifdef __cplusplus
32027extern "C"
32028#endif
cristy03f7cf92011-12-15 01:40:41 +000032029char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032030int
32031main ()
32032{
cristy03f7cf92011-12-15 01:40:41 +000032033return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032034 ;
32035 return 0;
32036}
32037_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032038if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032039 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032040else
cristy03f7cf92011-12-15 01:40:41 +000032041 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032042fi
cristy8b350f62009-11-15 23:12:43 +000032043rm -f core conftest.err conftest.$ac_objext \
32044 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032045LIBS=$ac_check_lib_save_LIBS
32046fi
cristy03f7cf92011-12-15 01:40:41 +000032047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32048$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32049if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32050 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032051fi
32052
cristy03f7cf92011-12-15 01:40:41 +000032053 if test "$have_libwmflite" = 'yes'; then
32054
32055$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32056
32057 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032058 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032059 have_wmf='yes'
32060 else
32061 WMF_LIBS_DEPS=''
32062 WMF_CONFIG_LIBS=`libwmf-config --libs`
32063 for lib in xml2 expat freetype jpeg png z; do
32064 testlib="-l${lib}"
32065 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32066 done
32067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32068$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32069if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32070 $as_echo_n "(cached) " >&6
32071else
32072 ac_check_lib_save_LIBS=$LIBS
32073LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32075/* end confdefs.h. */
32076
32077/* Override any GCC internal prototype to avoid an error.
32078 Use char because int might match the return type of a GCC
32079 builtin and then its argument prototype would still apply. */
32080#ifdef __cplusplus
32081extern "C"
32082#endif
32083char wmf_api_create ();
32084int
32085main ()
32086{
32087return wmf_api_create ();
32088 ;
32089 return 0;
32090}
32091_ACEOF
32092if ac_fn_c_try_link "$LINENO"; then :
32093 ac_cv_lib_wmf_wmf_api_create=yes
32094else
32095 ac_cv_lib_wmf_wmf_api_create=no
32096fi
32097rm -f core conftest.err conftest.$ac_objext \
32098 conftest$ac_exeext conftest.$ac_ext
32099LIBS=$ac_check_lib_save_LIBS
32100fi
32101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32102$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32103if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32104 have_libwmf='yes'
32105fi
32106
32107 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032108
cristy8b350f62009-11-15 23:12:43 +000032109$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032110
cristy03f7cf92011-12-15 01:40:41 +000032111 WMF_LIBS='-lwmf'
32112 LIBS="$WMF_LIBS $LIBS"
32113 have_wmf='yes'
32114 else
32115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32116$as_echo "no -- some components failed test" >&6; }
32117 have_wmf='no (failed tests)'
32118 have_wmflite='no (failed tests)'
32119 LIBS="$OLIBS"
32120 WMF_LIBS=''
32121 fi
glennrp33e524b2011-08-24 17:41:57 +000032122 fi
cristy03f7cf92011-12-15 01:40:41 +000032123 fi
32124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32125$as_echo_n "checking if WMF package is complete... " >&6; }
32126 if test "$have_wmf" = 'yes'; then
32127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32128$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032129 else
cristy03f7cf92011-12-15 01:40:41 +000032130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32131$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032132 fi
cristy3ed852e2009-09-05 21:47:34 +000032133fi
cristy73bd4a52010-10-05 11:24:23 +000032134 if test "$have_wmf" = 'yes'; then
32135 WMF_DELEGATE_TRUE=
32136 WMF_DELEGATE_FALSE='#'
32137else
32138 WMF_DELEGATE_TRUE='#'
32139 WMF_DELEGATE_FALSE=
32140fi
32141
cristy3ed852e2009-09-05 21:47:34 +000032142
32143
32144
cristy81beccd2011-10-03 18:17:24 +000032145
32146
cristy3ed852e2009-09-05 21:47:34 +000032147#
32148# Check for XML delegate library.
32149#
32150
32151# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032152if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032153 withval=$with_xml; with_xml=$withval
32154else
cristyfc3d0222012-02-07 15:05:57 +000032155 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032156fi
32157
32158
cristy81beccd2011-10-03 18:17:24 +000032159if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032160 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32161fi
32162
cristy81beccd2011-10-03 18:17:24 +000032163have_xml='no'
32164XML_LIBS=''
32165if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32167$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32169$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32171$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032172 PERSIST_LDFLAGS=$LDFLAGS
32173 PERSIST_CPPFLAGS=$CPPFLAGS
32174 xml2_config=''
32175 # Extract the first word of "xml2-config", so it can be a program name with args.
32176set dummy xml2-config; ac_word=$2
32177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32178$as_echo_n "checking for $ac_word... " >&6; }
32179if ${ac_cv_path_xml2_config+:} false; then :
32180 $as_echo_n "(cached) " >&6
32181else
32182 case $xml2_config in
32183 [\\/]* | ?:[\\/]*)
32184 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32185 ;;
32186 *)
32187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32188for as_dir in $PATH
32189do
32190 IFS=$as_save_IFS
32191 test -z "$as_dir" && as_dir=.
32192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032194 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32196 break 2
32197 fi
32198done
32199 done
32200IFS=$as_save_IFS
32201
32202 ;;
32203esac
32204fi
32205xml2_config=$ac_cv_path_xml2_config
32206if test -n "$xml2_config"; then
32207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32208$as_echo "$xml2_config" >&6; }
32209else
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32211$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032212fi
32213
cristy81beccd2011-10-03 18:17:24 +000032214 if test -n "$xml2_config"; then
32215 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32216 # the shared library installed under /usr/lib, whereas the package
32217 # installs itself under $prefix/libxml and $prefix/lib.
32218 xml2_prefix=`xml2-config --prefix`
32219 if test -d "${xml2_prefix}/include/libxml2"; then
32220 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32221 fi
32222 if test "${xml2_prefix}" != '/usr'; then
32223 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32224 fi
32225 fi
32226 failed=0
32227 passed=0
32228 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32229if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32230 passed=`expr $passed + 1`
32231else
32232 failed=`expr $failed + 1`
32233fi
32234
32235
32236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32237$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32238if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32239 $as_echo_n "(cached) " >&6
32240else
32241 ac_check_lib_save_LIBS=$LIBS
32242LIBS="-lxml2 $LIBS"
32243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32244/* end confdefs.h. */
32245
32246/* Override any GCC internal prototype to avoid an error.
32247 Use char because int might match the return type of a GCC
32248 builtin and then its argument prototype would still apply. */
32249#ifdef __cplusplus
32250extern "C"
32251#endif
32252char xmlSAXVersion ();
32253int
32254main ()
32255{
32256return xmlSAXVersion ();
32257 ;
32258 return 0;
32259}
32260_ACEOF
32261if ac_fn_c_try_link "$LINENO"; then :
32262 ac_cv_lib_xml2_xmlSAXVersion=yes
32263else
32264 ac_cv_lib_xml2_xmlSAXVersion=no
32265fi
32266rm -f core conftest.err conftest.$ac_objext \
32267 conftest$ac_exeext conftest.$ac_ext
32268LIBS=$ac_check_lib_save_LIBS
32269fi
32270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32271$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32272if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32273 passed=`expr $passed + 1`
32274else
32275 failed=`expr $failed + 1`
32276fi
32277
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32279$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32280if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32281 $as_echo_n "(cached) " >&6
32282else
32283 ac_check_lib_save_LIBS=$LIBS
32284LIBS="-lxml2 $LIBS"
32285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32286/* end confdefs.h. */
32287
32288/* Override any GCC internal prototype to avoid an error.
32289 Use char because int might match the return type of a GCC
32290 builtin and then its argument prototype would still apply. */
32291#ifdef __cplusplus
32292extern "C"
32293#endif
32294char xmlParseChunk ();
32295int
32296main ()
32297{
32298return xmlParseChunk ();
32299 ;
32300 return 0;
32301}
32302_ACEOF
32303if ac_fn_c_try_link "$LINENO"; then :
32304 ac_cv_lib_xml2_xmlParseChunk=yes
32305else
32306 ac_cv_lib_xml2_xmlParseChunk=no
32307fi
32308rm -f core conftest.err conftest.$ac_objext \
32309 conftest$ac_exeext conftest.$ac_ext
32310LIBS=$ac_check_lib_save_LIBS
32311fi
32312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32313$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32314if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32315 passed=`expr $passed + 1`
32316else
32317 failed=`expr $failed + 1`
32318fi
32319
32320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32321$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32322if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32323 $as_echo_n "(cached) " >&6
32324else
32325 ac_check_lib_save_LIBS=$LIBS
32326LIBS="-lxml2 $LIBS"
32327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32328/* end confdefs.h. */
32329
32330/* Override any GCC internal prototype to avoid an error.
32331 Use char because int might match the return type of a GCC
32332 builtin and then its argument prototype would still apply. */
32333#ifdef __cplusplus
32334extern "C"
32335#endif
32336char xmlCreatePushParserCtxt ();
32337int
32338main ()
32339{
32340return xmlCreatePushParserCtxt ();
32341 ;
32342 return 0;
32343}
32344_ACEOF
32345if ac_fn_c_try_link "$LINENO"; then :
32346 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32347else
32348 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32349fi
32350rm -f core conftest.err conftest.$ac_objext \
32351 conftest$ac_exeext conftest.$ac_ext
32352LIBS=$ac_check_lib_save_LIBS
32353fi
32354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32355$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32356if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32357 passed=`expr $passed + 1`
32358else
32359 failed=`expr $failed + 1`
32360fi
32361
32362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32363$as_echo_n "checking if XML package is complete... " >&6; }
32364 if test $passed -gt 0; then
32365 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32367$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032368 have_xml='no (failed tests)'
32369 LDFLAGS="$PERSIST_LDFLAGS"
32370 CPPFLAGS="$PERSIST_CPPFLAGS"
32371 else
32372 XML_LIBS='-lxml2'
32373 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032374
cristy8b350f62009-11-15 23:12:43 +000032375$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032376
cristyad38abe2012-12-23 23:03:21 +000032377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32378$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032379 have_xml='yes'
32380 fi
32381 else
cristyad38abe2012-12-23 23:03:21 +000032382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32383$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032384 fi
32385fi
cristy73bd4a52010-10-05 11:24:23 +000032386 if test "$have_xml" = 'yes'; then
32387 XML_DELEGATE_TRUE=
32388 XML_DELEGATE_FALSE='#'
32389else
32390 XML_DELEGATE_TRUE='#'
32391 XML_DELEGATE_FALSE=
32392fi
32393
cristy3ed852e2009-09-05 21:47:34 +000032394
32395
32396
32397# Substitute compiler name to build/link PerlMagick
32398#
32399
32400
32401#
32402# Configure install Paths
32403#
cristy7def36a2011-10-28 19:04:41 +000032404
cristy2a11bef2011-10-28 18:33:11 +000032405# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032406INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032407INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32408DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032409case "${build_os}" in
32410 mingw* )
32411 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32412 ;;
32413esac
32414
32415cat >>confdefs.h <<_ACEOF
32416#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32417_ACEOF
32418
32419
cristy3ed852e2009-09-05 21:47:34 +000032420
cristye52f12f2012-12-31 15:32:36 +000032421# Path to ImageMagick header files (arch part)
32422INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32423DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32424case "${build_os}" in
32425 mingw* )
32426 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32427 ;;
32428esac
32429
32430cat >>confdefs.h <<_ACEOF
32431#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32432_ACEOF
32433
32434
32435
cristy3ed852e2009-09-05 21:47:34 +000032436# Subdirectory under lib to place ImageMagick lib files
32437LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32438
32439cat >>confdefs.h <<_ACEOF
32440#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32441_ACEOF
32442
32443
32444# Path to ImageMagick bin directory
32445EXECUTABLE_PATH="${BIN_DIR}"
32446DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32447case "${build_os}" in
32448 mingw* )
32449 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32450 ;;
32451esac
32452
32453cat >>confdefs.h <<_ACEOF
32454#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32455_ACEOF
32456
32457
32458
32459# Path to ImageMagick lib
32460LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32461DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32462case "${build_os}" in
32463 mingw* )
32464 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32465 ;;
32466esac
32467
32468cat >>confdefs.h <<_ACEOF
32469#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32470_ACEOF
32471
32472
32473
cristy3ed852e2009-09-05 21:47:34 +000032474#
cristy8d0ff762013-03-10 20:33:28 +000032475# path to local binaries
32476if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32477 LIB_BIN_BASEDIRNAME="bin"
32478fi
32479
32480cat >>confdefs.h <<_ACEOF
32481#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32482_ACEOF
32483
32484
32485
32486if test "x$LIB_BIN_DIR" = "x"; then
32487 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32488fi
32489
32490
32491LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32492
32493LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32494
32495
32496#
cristy01ff9f32012-12-01 18:15:29 +000032497# path to modules lib
32498if test "x$MODULES_BASEDIRNAME" = "x"; then
32499 MODULES_BASEDIRNAME="modules"
32500fi
cristy3ed852e2009-09-05 21:47:34 +000032501
32502cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032503#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032504_ACEOF
32505
cristy01ff9f32012-12-01 18:15:29 +000032506
32507
32508if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032509 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32510else
cristy3ed852e2009-09-05 21:47:34 +000032511
32512cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032513#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032514_ACEOF
32515
cristycf4a3c22012-12-02 21:47:25 +000032516fi
cristy01ff9f32012-12-01 18:15:29 +000032517
32518
cristy371d4812012-12-01 19:48:10 +000032519MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032520
32521MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32522
32523
32524#
32525# path to coders lib
32526if test "x$CODER_DIRNAME" = "x"; then
32527 CODER_DIRNAME="coders"
32528fi
32529
32530cat >>confdefs.h <<_ACEOF
32531#define CODER_DIRNAME "$CODER_DIRNAME"
32532_ACEOF
32533
32534
32535
cristy371d4812012-12-01 19:48:10 +000032536CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032537CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032538
32539
32540#
32541# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032542#
32543# path to coders lib
32544if test "x$FILTER_DIRNAME" = "x"; then
32545 FILTER_DIRNAME="filters"
32546fi
cristy3ed852e2009-09-05 21:47:34 +000032547
32548cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032549#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032550_ACEOF
32551
cristy3ed852e2009-09-05 21:47:34 +000032552
cristy3ed852e2009-09-05 21:47:34 +000032553
cristy371d4812012-12-01 19:48:10 +000032554FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032555FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032556
32557
32558#
32559# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032560DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032561DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32562DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032563case "${build_os}" in
32564 mingw* )
32565 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32566 ;;
32567esac
32568
32569cat >>confdefs.h <<_ACEOF
32570#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32571_ACEOF
32572
32573
32574
cristy2a11bef2011-10-28 18:33:11 +000032575# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032576CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032577
32578cat >>confdefs.h <<_ACEOF
32579#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32580_ACEOF
32581
cristy7def36a2011-10-28 19:04:41 +000032582CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032583DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32584case "${build_os}" in
32585 mingw* )
32586 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32587 ;;
32588esac
32589
32590cat >>confdefs.h <<_ACEOF
32591#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32592_ACEOF
32593
32594
32595
cristy2a11bef2011-10-28 18:33:11 +000032596# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032597SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032598
32599cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032600#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032601_ACEOF
32602
cristy670aa3c2011-11-03 00:54:00 +000032603SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032604DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032605case "${build_os}" in
32606 mingw* )
cristy4f820712011-04-01 12:35:43 +000032607 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032608 ;;
32609esac
32610
32611cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032612#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032613_ACEOF
32614
32615
32616
cristy54378032012-12-04 15:52:20 +000032617#
32618# Subdirectory to place architecture-dependent configuration files.
32619if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32620 SHAREARCH_BASEDIRNAME="config"
32621fi
cristy670aa3c2011-11-03 00:54:00 +000032622
32623cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032624#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032625_ACEOF
32626
cristy54378032012-12-04 15:52:20 +000032627
32628
32629if test "x$SHAREARCH_DIRNAME" = "x"; then
32630 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32631else
cristy670aa3c2011-11-03 00:54:00 +000032632
32633cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032634#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032635_ACEOF
32636
cristy54378032012-12-04 15:52:20 +000032637fi
32638
32639
32640SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32641
32642SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032643
32644
cristy3ed852e2009-09-05 21:47:34 +000032645#
32646# program_transform_name is formed for use in a Makefile, so create a
32647# modified version for use in a shell script.
32648configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32649
32650# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32652$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032654$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32656$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032657AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032658BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032659BZIPDelegateDefault='bzip2'
32660BrowseDelegateDefault='xdg-open'
32661CGMDecodeDelegateDefault='ralcgm'
32662CatDelegateDefault='cat'
32663DNGDecodeDelegateDefault='ufraw-batch'
32664GVCDecodeDelegateDefault='dot'
32665DVIDecodeDelegateDefault='dvips'
32666EchoDelegateDefault='echo'
32667EditorDelegateDefault='xterm'
32668FIGDecodeDelegateDefault='fig2dev'
32669ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32670DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32671MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32672GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032673HPGLDecodeDelegateDefault='hp2xx'
32674HTMLDecodeDelegateDefault='html2ps'
32675ILBMDecodeDelegateDefault='ilbmtoppm'
32676ILBMEncodeDelegateDefault='ppmtoilbm'
32677LPDelegateDefault='lp'
32678LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032679LaunchDelegateDefault='gimp'
32680MANDelegateDefault='groff'
32681MPEGDecodeDelegateDefault='ffmpeg'
32682MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032683MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032684MVDelegateDefault='mv'
32685PCLDelegateDefault='pcl6'
32686PGPDecodeDelegateDefault='pgpv'
32687POVDelegateDefault='povray'
32688if test "$native_win32_build" = 'yes'; then
32689 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032690elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032691 PSDelegateDefault='gsc'
32692else
32693 PSDelegateDefault='gs'
32694fi
32695RLEEncodeDelegateDefault='rawtorle'
32696RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032697RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032698SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032699SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032700TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032701UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032702WMFDecodeDelegateDefault='wmf2eps'
32703WWWDecodeDelegateDefault='curl'
32704XPSDelegateDefault='gxps'
32705ZipDelegateDefault='gzip'
32706
32707# Search for delegates
32708# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32709set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032711$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032712if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032713 $as_echo_n "(cached) " >&6
32714else
32715 case $AutotraceDecodeDelegate in
32716 [\\/]* | ?:[\\/]*)
32717 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32718 ;;
32719 *)
32720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32721for as_dir in $PATH
32722do
32723 IFS=$as_save_IFS
32724 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032725 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032727 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032729 break 2
32730 fi
32731done
cristy8b350f62009-11-15 23:12:43 +000032732 done
cristy3ed852e2009-09-05 21:47:34 +000032733IFS=$as_save_IFS
32734
32735 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32736 ;;
32737esac
32738fi
32739AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32740if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032742$as_echo "$AutotraceDecodeDelegate" >&6; }
32743else
cristy8b350f62009-11-15 23:12:43 +000032744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032745$as_echo "no" >&6; }
32746fi
32747
32748
cristy3ed852e2009-09-05 21:47:34 +000032749# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32750set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032752$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032753if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032754 $as_echo_n "(cached) " >&6
32755else
32756 case $BlenderDecodeDelegate in
32757 [\\/]* | ?:[\\/]*)
32758 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32759 ;;
32760 *)
32761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32762for as_dir in $PATH
32763do
32764 IFS=$as_save_IFS
32765 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032768 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032770 break 2
32771 fi
32772done
cristy8b350f62009-11-15 23:12:43 +000032773 done
cristy3ed852e2009-09-05 21:47:34 +000032774IFS=$as_save_IFS
32775
32776 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32777 ;;
32778esac
32779fi
32780BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32781if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032783$as_echo "$BlenderDecodeDelegate" >&6; }
32784else
cristy8b350f62009-11-15 23:12:43 +000032785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032786$as_echo "no" >&6; }
32787fi
32788
32789
32790# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32791set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032794if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032795 $as_echo_n "(cached) " >&6
32796else
32797 case $BZIPDelegate in
32798 [\\/]* | ?:[\\/]*)
32799 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32800 ;;
32801 *)
32802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32803for as_dir in $PATH
32804do
32805 IFS=$as_save_IFS
32806 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032809 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032811 break 2
32812 fi
32813done
cristy8b350f62009-11-15 23:12:43 +000032814 done
cristy3ed852e2009-09-05 21:47:34 +000032815IFS=$as_save_IFS
32816
32817 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32818 ;;
32819esac
32820fi
32821BZIPDelegate=$ac_cv_path_BZIPDelegate
32822if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032824$as_echo "$BZIPDelegate" >&6; }
32825else
cristy8b350f62009-11-15 23:12:43 +000032826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032827$as_echo "no" >&6; }
32828fi
32829
32830
cristyc59f0e72012-08-27 12:59:33 +000032831for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32832do
32833 # Extract the first word of "$ac_prog", so it can be a program name with args.
32834set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032836$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032837if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032838 $as_echo_n "(cached) " >&6
32839else
32840 case $BrowseDelegate in
32841 [\\/]* | ?:[\\/]*)
32842 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32843 ;;
32844 *)
32845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32846for as_dir in $PATH
32847do
32848 IFS=$as_save_IFS
32849 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032852 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032854 break 2
32855 fi
32856done
cristy8b350f62009-11-15 23:12:43 +000032857 done
cristy3ed852e2009-09-05 21:47:34 +000032858IFS=$as_save_IFS
32859
cristy3ed852e2009-09-05 21:47:34 +000032860 ;;
32861esac
32862fi
32863BrowseDelegate=$ac_cv_path_BrowseDelegate
32864if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032866$as_echo "$BrowseDelegate" >&6; }
32867else
cristy8b350f62009-11-15 23:12:43 +000032868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032869$as_echo "no" >&6; }
32870fi
32871
32872
cristyc59f0e72012-08-27 12:59:33 +000032873 test -n "$BrowseDelegate" && break
32874done
32875test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32876
cristy3ed852e2009-09-05 21:47:34 +000032877# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32878set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032881if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032882 $as_echo_n "(cached) " >&6
32883else
32884 case $CGMDecodeDelegate in
32885 [\\/]* | ?:[\\/]*)
32886 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32887 ;;
32888 *)
32889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32890for as_dir in $PATH
32891do
32892 IFS=$as_save_IFS
32893 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032896 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032898 break 2
32899 fi
32900done
cristy8b350f62009-11-15 23:12:43 +000032901 done
cristy3ed852e2009-09-05 21:47:34 +000032902IFS=$as_save_IFS
32903
32904 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32905 ;;
32906esac
32907fi
32908CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32909if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911$as_echo "$CGMDecodeDelegate" >&6; }
32912else
cristy8b350f62009-11-15 23:12:43 +000032913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032914$as_echo "no" >&6; }
32915fi
32916
32917
32918# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32919set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032922if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032923 $as_echo_n "(cached) " >&6
32924else
32925 case $CatDelegate in
32926 [\\/]* | ?:[\\/]*)
32927 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32928 ;;
32929 *)
32930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32931for as_dir in $PATH
32932do
32933 IFS=$as_save_IFS
32934 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032937 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032939 break 2
32940 fi
32941done
cristy8b350f62009-11-15 23:12:43 +000032942 done
cristy3ed852e2009-09-05 21:47:34 +000032943IFS=$as_save_IFS
32944
32945 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32946 ;;
32947esac
32948fi
32949CatDelegate=$ac_cv_path_CatDelegate
32950if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo "$CatDelegate" >&6; }
32953else
cristy8b350f62009-11-15 23:12:43 +000032954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032955$as_echo "no" >&6; }
32956fi
32957
32958
32959# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32960set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032962$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032963if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032964 $as_echo_n "(cached) " >&6
32965else
32966 case $DNGDecodeDelegate in
32967 [\\/]* | ?:[\\/]*)
32968 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32969 ;;
32970 *)
32971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32972for as_dir in $PATH
32973do
32974 IFS=$as_save_IFS
32975 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032978 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032980 break 2
32981 fi
32982done
cristy8b350f62009-11-15 23:12:43 +000032983 done
cristy3ed852e2009-09-05 21:47:34 +000032984IFS=$as_save_IFS
32985
32986 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32987 ;;
32988esac
32989fi
32990DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32991if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032993$as_echo "$DNGDecodeDelegate" >&6; }
32994else
cristy8b350f62009-11-15 23:12:43 +000032995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032996$as_echo "no" >&6; }
32997fi
32998
32999
33000# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33001set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033003$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033004if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033005 $as_echo_n "(cached) " >&6
33006else
33007 case $GVCDecodeDelegate in
33008 [\\/]* | ?:[\\/]*)
33009 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33010 ;;
33011 *)
33012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33013for as_dir in $PATH
33014do
33015 IFS=$as_save_IFS
33016 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033017 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033019 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033021 break 2
33022 fi
33023done
cristy8b350f62009-11-15 23:12:43 +000033024 done
cristy3ed852e2009-09-05 21:47:34 +000033025IFS=$as_save_IFS
33026
33027 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33028 ;;
33029esac
33030fi
33031GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33032if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033034$as_echo "$GVCDecodeDelegate" >&6; }
33035else
cristy8b350f62009-11-15 23:12:43 +000033036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033037$as_echo "no" >&6; }
33038fi
33039
33040
33041# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33042set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033044$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033045if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033046 $as_echo_n "(cached) " >&6
33047else
33048 case $DVIDecodeDelegate in
33049 [\\/]* | ?:[\\/]*)
33050 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33051 ;;
33052 *)
33053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33054for as_dir in $PATH
33055do
33056 IFS=$as_save_IFS
33057 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033058 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033060 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033062 break 2
33063 fi
33064done
cristy8b350f62009-11-15 23:12:43 +000033065 done
cristy3ed852e2009-09-05 21:47:34 +000033066IFS=$as_save_IFS
33067
33068 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33069 ;;
33070esac
33071fi
33072DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33073if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033075$as_echo "$DVIDecodeDelegate" >&6; }
33076else
cristy8b350f62009-11-15 23:12:43 +000033077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033078$as_echo "no" >&6; }
33079fi
33080
33081
33082# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33083set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033085$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033086if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033087 $as_echo_n "(cached) " >&6
33088else
33089 case $EchoDelegate in
33090 [\\/]* | ?:[\\/]*)
33091 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33092 ;;
33093 *)
33094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33095for as_dir in $PATH
33096do
33097 IFS=$as_save_IFS
33098 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033101 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033103 break 2
33104 fi
33105done
cristy8b350f62009-11-15 23:12:43 +000033106 done
cristy3ed852e2009-09-05 21:47:34 +000033107IFS=$as_save_IFS
33108
33109 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33110 ;;
33111esac
33112fi
33113EchoDelegate=$ac_cv_path_EchoDelegate
33114if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033116$as_echo "$EchoDelegate" >&6; }
33117else
cristy8b350f62009-11-15 23:12:43 +000033118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033119$as_echo "no" >&6; }
33120fi
33121
33122
33123# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33124set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033126$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033127if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033128 $as_echo_n "(cached) " >&6
33129else
33130 case $EditorDelegate in
33131 [\\/]* | ?:[\\/]*)
33132 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33133 ;;
33134 *)
33135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33136for as_dir in $PATH
33137do
33138 IFS=$as_save_IFS
33139 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033142 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033144 break 2
33145 fi
33146done
cristy8b350f62009-11-15 23:12:43 +000033147 done
cristy3ed852e2009-09-05 21:47:34 +000033148IFS=$as_save_IFS
33149
33150 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33151 ;;
33152esac
33153fi
33154EditorDelegate=$ac_cv_path_EditorDelegate
33155if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033157$as_echo "$EditorDelegate" >&6; }
33158else
cristy8b350f62009-11-15 23:12:43 +000033159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033160$as_echo "no" >&6; }
33161fi
33162
33163
33164# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33165set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033167$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033168if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033169 $as_echo_n "(cached) " >&6
33170else
33171 case $FIGDecodeDelegate in
33172 [\\/]* | ?:[\\/]*)
33173 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33174 ;;
33175 *)
33176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33177for as_dir in $PATH
33178do
33179 IFS=$as_save_IFS
33180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033183 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033185 break 2
33186 fi
33187done
cristy8b350f62009-11-15 23:12:43 +000033188 done
cristy3ed852e2009-09-05 21:47:34 +000033189IFS=$as_save_IFS
33190
33191 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33192 ;;
33193esac
33194fi
33195FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33196if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033198$as_echo "$FIGDecodeDelegate" >&6; }
33199else
cristy8b350f62009-11-15 23:12:43 +000033200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033201$as_echo "no" >&6; }
33202fi
33203
33204
33205# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33206set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033208$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033209if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033210 $as_echo_n "(cached) " >&6
33211else
33212 case $ConvertDelegate in
33213 [\\/]* | ?:[\\/]*)
33214 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33215 ;;
33216 *)
33217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33218for as_dir in $PATH
33219do
33220 IFS=$as_save_IFS
33221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033224 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033226 break 2
33227 fi
33228done
cristy8b350f62009-11-15 23:12:43 +000033229 done
cristy3ed852e2009-09-05 21:47:34 +000033230IFS=$as_save_IFS
33231
33232 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33233 ;;
33234esac
33235fi
33236ConvertDelegate=$ac_cv_path_ConvertDelegate
33237if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033239$as_echo "$ConvertDelegate" >&6; }
33240else
cristy8b350f62009-11-15 23:12:43 +000033241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033242$as_echo "no" >&6; }
33243fi
33244
33245
33246# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33247set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033249$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033250if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033251 $as_echo_n "(cached) " >&6
33252else
33253 case $DisplayDelegate in
33254 [\\/]* | ?:[\\/]*)
33255 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33256 ;;
33257 *)
33258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33259for as_dir in $PATH
33260do
33261 IFS=$as_save_IFS
33262 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033263 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033265 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033267 break 2
33268 fi
33269done
cristy8b350f62009-11-15 23:12:43 +000033270 done
cristy3ed852e2009-09-05 21:47:34 +000033271IFS=$as_save_IFS
33272
33273 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33274 ;;
33275esac
33276fi
33277DisplayDelegate=$ac_cv_path_DisplayDelegate
33278if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033280$as_echo "$DisplayDelegate" >&6; }
33281else
cristy8b350f62009-11-15 23:12:43 +000033282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033283$as_echo "no" >&6; }
33284fi
33285
33286
33287# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33288set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033290$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033291if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033292 $as_echo_n "(cached) " >&6
33293else
33294 case $MogrifyDelegate in
33295 [\\/]* | ?:[\\/]*)
33296 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33297 ;;
33298 *)
33299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33300for as_dir in $PATH
33301do
33302 IFS=$as_save_IFS
33303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033306 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033308 break 2
33309 fi
33310done
cristy8b350f62009-11-15 23:12:43 +000033311 done
cristy3ed852e2009-09-05 21:47:34 +000033312IFS=$as_save_IFS
33313
33314 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33315 ;;
33316esac
33317fi
33318MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33319if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033321$as_echo "$MogrifyDelegate" >&6; }
33322else
cristy8b350f62009-11-15 23:12:43 +000033323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033324$as_echo "no" >&6; }
33325fi
33326
33327
33328# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33329set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033331$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033332if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033333 $as_echo_n "(cached) " >&6
33334else
33335 case $GnuplotDecodeDelegate in
33336 [\\/]* | ?:[\\/]*)
33337 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33338 ;;
33339 *)
33340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33341for as_dir in $PATH
33342do
33343 IFS=$as_save_IFS
33344 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033345 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033347 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033349 break 2
33350 fi
33351done
cristy8b350f62009-11-15 23:12:43 +000033352 done
cristy3ed852e2009-09-05 21:47:34 +000033353IFS=$as_save_IFS
33354
33355 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33356 ;;
33357esac
33358fi
33359GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33360if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033362$as_echo "$GnuplotDecodeDelegate" >&6; }
33363else
cristy8b350f62009-11-15 23:12:43 +000033364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033365$as_echo "no" >&6; }
33366fi
33367
33368
cristy3ed852e2009-09-05 21:47:34 +000033369# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33370set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033372$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033373if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033374 $as_echo_n "(cached) " >&6
33375else
33376 case $HPGLDecodeDelegate in
33377 [\\/]* | ?:[\\/]*)
33378 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33379 ;;
33380 *)
33381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33382for as_dir in $PATH
33383do
33384 IFS=$as_save_IFS
33385 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033388 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033390 break 2
33391 fi
33392done
cristy8b350f62009-11-15 23:12:43 +000033393 done
cristy3ed852e2009-09-05 21:47:34 +000033394IFS=$as_save_IFS
33395
33396 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33397 ;;
33398esac
33399fi
33400HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33401if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033403$as_echo "$HPGLDecodeDelegate" >&6; }
33404else
cristy8b350f62009-11-15 23:12:43 +000033405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033406$as_echo "no" >&6; }
33407fi
33408
33409
33410# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33411set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033413$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033414if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033415 $as_echo_n "(cached) " >&6
33416else
33417 case $HTMLDecodeDelegate in
33418 [\\/]* | ?:[\\/]*)
33419 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33420 ;;
33421 *)
33422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33423for as_dir in $PATH
33424do
33425 IFS=$as_save_IFS
33426 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033427 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033429 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033431 break 2
33432 fi
33433done
cristy8b350f62009-11-15 23:12:43 +000033434 done
cristy3ed852e2009-09-05 21:47:34 +000033435IFS=$as_save_IFS
33436
33437 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33438 ;;
33439esac
33440fi
33441HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33442if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033444$as_echo "$HTMLDecodeDelegate" >&6; }
33445else
cristy8b350f62009-11-15 23:12:43 +000033446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033447$as_echo "no" >&6; }
33448fi
33449
33450
33451# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33452set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033455if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033456 $as_echo_n "(cached) " >&6
33457else
33458 case $ILBMDecodeDelegate in
33459 [\\/]* | ?:[\\/]*)
33460 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33461 ;;
33462 *)
33463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33464for as_dir in $PATH
33465do
33466 IFS=$as_save_IFS
33467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033470 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033472 break 2
33473 fi
33474done
cristy8b350f62009-11-15 23:12:43 +000033475 done
cristy3ed852e2009-09-05 21:47:34 +000033476IFS=$as_save_IFS
33477
33478 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33479 ;;
33480esac
33481fi
33482ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33483if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033485$as_echo "$ILBMDecodeDelegate" >&6; }
33486else
cristy8b350f62009-11-15 23:12:43 +000033487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033488$as_echo "no" >&6; }
33489fi
33490
33491
33492# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33493set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033496if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033497 $as_echo_n "(cached) " >&6
33498else
33499 case $ILBMEncodeDelegate in
33500 [\\/]* | ?:[\\/]*)
33501 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33502 ;;
33503 *)
33504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33505for as_dir in $PATH
33506do
33507 IFS=$as_save_IFS
33508 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033511 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033513 break 2
33514 fi
33515done
cristy8b350f62009-11-15 23:12:43 +000033516 done
cristy3ed852e2009-09-05 21:47:34 +000033517IFS=$as_save_IFS
33518
33519 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33520 ;;
33521esac
33522fi
33523ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33524if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033526$as_echo "$ILBMEncodeDelegate" >&6; }
33527else
cristy8b350f62009-11-15 23:12:43 +000033528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033529$as_echo "no" >&6; }
33530fi
33531
33532
33533# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33534set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033536$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033537if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033538 $as_echo_n "(cached) " >&6
33539else
33540 case $LPDelegate in
33541 [\\/]* | ?:[\\/]*)
33542 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33543 ;;
33544 *)
33545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33546for as_dir in $PATH
33547do
33548 IFS=$as_save_IFS
33549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033552 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033554 break 2
33555 fi
33556done
cristy8b350f62009-11-15 23:12:43 +000033557 done
cristy3ed852e2009-09-05 21:47:34 +000033558IFS=$as_save_IFS
33559
33560 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33561 ;;
33562esac
33563fi
33564LPDelegate=$ac_cv_path_LPDelegate
33565if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033567$as_echo "$LPDelegate" >&6; }
33568else
cristy8b350f62009-11-15 23:12:43 +000033569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033570$as_echo "no" >&6; }
33571fi
33572
33573
33574# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33575set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033577$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033578if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033579 $as_echo_n "(cached) " >&6
33580else
33581 case $LPRDelegate in
33582 [\\/]* | ?:[\\/]*)
33583 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33584 ;;
33585 *)
33586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33587for as_dir in $PATH
33588do
33589 IFS=$as_save_IFS
33590 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033591 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033593 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033595 break 2
33596 fi
33597done
cristy8b350f62009-11-15 23:12:43 +000033598 done
cristy3ed852e2009-09-05 21:47:34 +000033599IFS=$as_save_IFS
33600
33601 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33602 ;;
33603esac
33604fi
33605LPRDelegate=$ac_cv_path_LPRDelegate
33606if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033608$as_echo "$LPRDelegate" >&6; }
33609else
cristy8b350f62009-11-15 23:12:43 +000033610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033611$as_echo "no" >&6; }
33612fi
33613
33614
cristy3ed852e2009-09-05 21:47:34 +000033615# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33616set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033618$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033619if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033620 $as_echo_n "(cached) " >&6
33621else
33622 case $LaunchDelegate in
33623 [\\/]* | ?:[\\/]*)
33624 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33625 ;;
33626 *)
33627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33628for as_dir in $PATH
33629do
33630 IFS=$as_save_IFS
33631 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033632 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033634 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033636 break 2
33637 fi
33638done
cristy8b350f62009-11-15 23:12:43 +000033639 done
cristy3ed852e2009-09-05 21:47:34 +000033640IFS=$as_save_IFS
33641
33642 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33643 ;;
33644esac
33645fi
33646LaunchDelegate=$ac_cv_path_LaunchDelegate
33647if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033649$as_echo "$LaunchDelegate" >&6; }
33650else
cristy8b350f62009-11-15 23:12:43 +000033651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033652$as_echo "no" >&6; }
33653fi
33654
33655
33656# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33657set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033659$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033660if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033661 $as_echo_n "(cached) " >&6
33662else
33663 case $MANDelegate in
33664 [\\/]* | ?:[\\/]*)
33665 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33666 ;;
33667 *)
33668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33669for as_dir in $PATH
33670do
33671 IFS=$as_save_IFS
33672 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033675 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033677 break 2
33678 fi
33679done
cristy8b350f62009-11-15 23:12:43 +000033680 done
cristy3ed852e2009-09-05 21:47:34 +000033681IFS=$as_save_IFS
33682
33683 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33684 ;;
33685esac
33686fi
33687MANDelegate=$ac_cv_path_MANDelegate
33688if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033690$as_echo "$MANDelegate" >&6; }
33691else
cristy8b350f62009-11-15 23:12:43 +000033692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033693$as_echo "no" >&6; }
33694fi
33695
33696
33697# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33698set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033701if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033702 $as_echo_n "(cached) " >&6
33703else
33704 case $MPEGDecodeDelegate in
33705 [\\/]* | ?:[\\/]*)
33706 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33707 ;;
33708 *)
33709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33710for as_dir in $PATH
33711do
33712 IFS=$as_save_IFS
33713 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033714 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033716 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033718 break 2
33719 fi
33720done
cristy8b350f62009-11-15 23:12:43 +000033721 done
cristy3ed852e2009-09-05 21:47:34 +000033722IFS=$as_save_IFS
33723
33724 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33725 ;;
33726esac
33727fi
33728MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33729if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033731$as_echo "$MPEGDecodeDelegate" >&6; }
33732else
cristy8b350f62009-11-15 23:12:43 +000033733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033734$as_echo "no" >&6; }
33735fi
33736
33737
33738# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33739set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033742if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033743 $as_echo_n "(cached) " >&6
33744else
33745 case $MPEGEncodeDelegate in
33746 [\\/]* | ?:[\\/]*)
33747 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33748 ;;
33749 *)
33750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33751for as_dir in $PATH
33752do
33753 IFS=$as_save_IFS
33754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033757 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033759 break 2
33760 fi
33761done
cristy8b350f62009-11-15 23:12:43 +000033762 done
cristy3ed852e2009-09-05 21:47:34 +000033763IFS=$as_save_IFS
33764
33765 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33766 ;;
33767esac
33768fi
33769MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33770if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033772$as_echo "$MPEGEncodeDelegate" >&6; }
33773else
cristy8b350f62009-11-15 23:12:43 +000033774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033775$as_echo "no" >&6; }
33776fi
33777
33778
cristy935c86e2010-06-05 23:50:07 +000033779# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33780set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033783if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033784 $as_echo_n "(cached) " >&6
33785else
33786 case $MrSIDDecodeDelegate in
33787 [\\/]* | ?:[\\/]*)
33788 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33789 ;;
33790 *)
33791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33792for as_dir in $PATH
33793do
33794 IFS=$as_save_IFS
33795 test -z "$as_dir" && as_dir=.
33796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033798 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33800 break 2
33801 fi
33802done
33803 done
33804IFS=$as_save_IFS
33805
33806 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33807 ;;
33808esac
33809fi
33810MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33811if test -n "$MrSIDDecodeDelegate"; then
33812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33813$as_echo "$MrSIDDecodeDelegate" >&6; }
33814else
33815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33816$as_echo "no" >&6; }
33817fi
33818
33819
cristy3ed852e2009-09-05 21:47:34 +000033820# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33821set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033823$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033824if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033825 $as_echo_n "(cached) " >&6
33826else
33827 case $MVDelegate in
33828 [\\/]* | ?:[\\/]*)
33829 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33830 ;;
33831 *)
33832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33833for as_dir in $PATH
33834do
33835 IFS=$as_save_IFS
33836 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033837 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033839 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033841 break 2
33842 fi
33843done
cristy8b350f62009-11-15 23:12:43 +000033844 done
cristy3ed852e2009-09-05 21:47:34 +000033845IFS=$as_save_IFS
33846
33847 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33848 ;;
33849esac
33850fi
33851MVDelegate=$ac_cv_path_MVDelegate
33852if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033854$as_echo "$MVDelegate" >&6; }
33855else
cristy8b350f62009-11-15 23:12:43 +000033856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033857$as_echo "no" >&6; }
33858fi
33859
33860
33861# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33862set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033864$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033865if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033866 $as_echo_n "(cached) " >&6
33867else
33868 case $PCLDelegate in
33869 [\\/]* | ?:[\\/]*)
33870 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33871 ;;
33872 *)
33873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33874for as_dir in $PATH
33875do
33876 IFS=$as_save_IFS
33877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033880 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033882 break 2
33883 fi
33884done
cristy8b350f62009-11-15 23:12:43 +000033885 done
cristy3ed852e2009-09-05 21:47:34 +000033886IFS=$as_save_IFS
33887
33888 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33889 ;;
33890esac
33891fi
33892PCLDelegate=$ac_cv_path_PCLDelegate
33893if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033895$as_echo "$PCLDelegate" >&6; }
33896else
cristy8b350f62009-11-15 23:12:43 +000033897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033898$as_echo "no" >&6; }
33899fi
33900
33901
33902# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33903set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033906if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033907 $as_echo_n "(cached) " >&6
33908else
33909 case $PGPDecodeDelegate in
33910 [\\/]* | ?:[\\/]*)
33911 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33912 ;;
33913 *)
33914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33915for as_dir in $PATH
33916do
33917 IFS=$as_save_IFS
33918 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033921 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033923 break 2
33924 fi
33925done
cristy8b350f62009-11-15 23:12:43 +000033926 done
cristy3ed852e2009-09-05 21:47:34 +000033927IFS=$as_save_IFS
33928
33929 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33930 ;;
33931esac
33932fi
33933PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33934if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033936$as_echo "$PGPDecodeDelegate" >&6; }
33937else
cristy8b350f62009-11-15 23:12:43 +000033938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033939$as_echo "no" >&6; }
33940fi
33941
33942
33943# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33944set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033946$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033947if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033948 $as_echo_n "(cached) " >&6
33949else
33950 case $POVDelegate in
33951 [\\/]* | ?:[\\/]*)
33952 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33953 ;;
33954 *)
33955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33956for as_dir in $PATH
33957do
33958 IFS=$as_save_IFS
33959 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033960 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033962 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033964 break 2
33965 fi
33966done
cristy8b350f62009-11-15 23:12:43 +000033967 done
cristy3ed852e2009-09-05 21:47:34 +000033968IFS=$as_save_IFS
33969
33970 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33971 ;;
33972esac
33973fi
33974POVDelegate=$ac_cv_path_POVDelegate
33975if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033977$as_echo "$POVDelegate" >&6; }
33978else
cristy8b350f62009-11-15 23:12:43 +000033979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033980$as_echo "no" >&6; }
33981fi
33982
33983
33984for ac_prog in gsx gsc "$PSDelegateDefault"
33985do
33986 # Extract the first word of "$ac_prog", so it can be a program name with args.
33987set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033989$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033990if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033991 $as_echo_n "(cached) " >&6
33992else
33993 case $PSDelegate in
33994 [\\/]* | ?:[\\/]*)
33995 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33996 ;;
33997 *)
33998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33999for as_dir in $PATH
34000do
34001 IFS=$as_save_IFS
34002 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034003 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034005 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034007 break 2
34008 fi
34009done
cristy8b350f62009-11-15 23:12:43 +000034010 done
cristy3ed852e2009-09-05 21:47:34 +000034011IFS=$as_save_IFS
34012
34013 ;;
34014esac
34015fi
34016PSDelegate=$ac_cv_path_PSDelegate
34017if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034019$as_echo "$PSDelegate" >&6; }
34020else
cristy8b350f62009-11-15 23:12:43 +000034021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034022$as_echo "no" >&6; }
34023fi
34024
34025
34026 test -n "$PSDelegate" && break
34027done
34028test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34029
34030# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34031set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034034if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034035 $as_echo_n "(cached) " >&6
34036else
34037 case $RLEEncodeDelegate in
34038 [\\/]* | ?:[\\/]*)
34039 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34040 ;;
34041 *)
34042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34043for as_dir in $PATH
34044do
34045 IFS=$as_save_IFS
34046 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034049 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034051 break 2
34052 fi
34053done
cristy8b350f62009-11-15 23:12:43 +000034054 done
cristy3ed852e2009-09-05 21:47:34 +000034055IFS=$as_save_IFS
34056
34057 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34058 ;;
34059esac
34060fi
34061RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34062if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034064$as_echo "$RLEEncodeDelegate" >&6; }
34065else
cristy8b350f62009-11-15 23:12:43 +000034066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034067$as_echo "no" >&6; }
34068fi
34069
34070
34071# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34072set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034074$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034075if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034076 $as_echo_n "(cached) " >&6
34077else
34078 case $RMDelegate in
34079 [\\/]* | ?:[\\/]*)
34080 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34081 ;;
34082 *)
34083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34084for as_dir in $PATH
34085do
34086 IFS=$as_save_IFS
34087 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034088 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034090 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034092 break 2
34093 fi
34094done
cristy8b350f62009-11-15 23:12:43 +000034095 done
cristy3ed852e2009-09-05 21:47:34 +000034096IFS=$as_save_IFS
34097
34098 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34099 ;;
34100esac
34101fi
34102RMDelegate=$ac_cv_path_RMDelegate
34103if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034105$as_echo "$RMDelegate" >&6; }
34106else
cristy8b350f62009-11-15 23:12:43 +000034107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034108$as_echo "no" >&6; }
34109fi
34110
34111
cristy4689cf02010-02-17 21:15:45 +000034112# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34113set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34115$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034116if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034117 $as_echo_n "(cached) " >&6
34118else
34119 case $RSVGDecodeDelegate in
34120 [\\/]* | ?:[\\/]*)
34121 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34122 ;;
34123 *)
34124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34125for as_dir in $PATH
34126do
34127 IFS=$as_save_IFS
34128 test -z "$as_dir" && as_dir=.
34129 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034131 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34133 break 2
34134 fi
34135done
34136 done
34137IFS=$as_save_IFS
34138
34139 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34140 ;;
34141esac
34142fi
34143RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34144if test -n "$RSVGDecodeDelegate"; then
34145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34146$as_echo "$RSVGDecodeDelegate" >&6; }
34147else
34148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34149$as_echo "no" >&6; }
34150fi
34151
34152
cristy3ed852e2009-09-05 21:47:34 +000034153# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34154set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034156$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034157if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034158 $as_echo_n "(cached) " >&6
34159else
34160 case $SCANDecodeDelegate in
34161 [\\/]* | ?:[\\/]*)
34162 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34163 ;;
34164 *)
34165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34166for as_dir in $PATH
34167do
34168 IFS=$as_save_IFS
34169 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034172 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034174 break 2
34175 fi
34176done
cristy8b350f62009-11-15 23:12:43 +000034177 done
cristy3ed852e2009-09-05 21:47:34 +000034178IFS=$as_save_IFS
34179
34180 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34181 ;;
34182esac
34183fi
34184SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34185if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034187$as_echo "$SCANDecodeDelegate" >&6; }
34188else
cristy8b350f62009-11-15 23:12:43 +000034189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034190$as_echo "no" >&6; }
34191fi
34192
34193
cristyec6934f2012-08-14 18:38:40 +000034194# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34195set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34197$as_echo_n "checking for $ac_word... " >&6; }
34198if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34199 $as_echo_n "(cached) " >&6
34200else
34201 case $SVGDecodeDelegate in
34202 [\\/]* | ?:[\\/]*)
34203 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34204 ;;
34205 *)
34206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34207for as_dir in $PATH
34208do
34209 IFS=$as_save_IFS
34210 test -z "$as_dir" && as_dir=.
34211 for ac_exec_ext in '' $ac_executable_extensions; do
34212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34213 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34215 break 2
34216 fi
34217done
34218 done
34219IFS=$as_save_IFS
34220
34221 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34222 ;;
34223esac
34224fi
34225SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34226if test -n "$SVGDecodeDelegate"; then
34227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34228$as_echo "$SVGDecodeDelegate" >&6; }
34229else
34230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34231$as_echo "no" >&6; }
34232fi
34233
34234
cristy3ed852e2009-09-05 21:47:34 +000034235# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34236set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034238$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034239if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034240 $as_echo_n "(cached) " >&6
34241else
34242 case $TXTDelegate in
34243 [\\/]* | ?:[\\/]*)
34244 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34245 ;;
34246 *)
34247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34248for as_dir in $PATH
34249do
34250 IFS=$as_save_IFS
34251 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034252 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034254 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034256 break 2
34257 fi
34258done
cristy8b350f62009-11-15 23:12:43 +000034259 done
cristy3ed852e2009-09-05 21:47:34 +000034260IFS=$as_save_IFS
34261
34262 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34263 ;;
34264esac
34265fi
34266TXTDelegate=$ac_cv_path_TXTDelegate
34267if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034269$as_echo "$TXTDelegate" >&6; }
34270else
cristy8b350f62009-11-15 23:12:43 +000034271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034272$as_echo "no" >&6; }
34273fi
34274
34275
cristy5ac9ac82010-07-29 13:24:24 +000034276# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34277set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34279$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034280if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034281 $as_echo_n "(cached) " >&6
34282else
34283 case $UniconvertorDelegate in
34284 [\\/]* | ?:[\\/]*)
34285 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34286 ;;
34287 *)
34288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34289for as_dir in $PATH
34290do
34291 IFS=$as_save_IFS
34292 test -z "$as_dir" && as_dir=.
34293 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034295 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34297 break 2
34298 fi
34299done
34300 done
34301IFS=$as_save_IFS
34302
34303 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34304 ;;
34305esac
34306fi
34307UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34308if test -n "$UniconvertorDelegate"; then
34309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34310$as_echo "$UniconvertorDelegate" >&6; }
34311else
34312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34313$as_echo "no" >&6; }
34314fi
34315
34316
cristy3ed852e2009-09-05 21:47:34 +000034317# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34318set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034320$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034321if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034322 $as_echo_n "(cached) " >&6
34323else
34324 case $WMFDecodeDelegate in
34325 [\\/]* | ?:[\\/]*)
34326 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34327 ;;
34328 *)
34329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34330for as_dir in $PATH
34331do
34332 IFS=$as_save_IFS
34333 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034336 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034338 break 2
34339 fi
34340done
cristy8b350f62009-11-15 23:12:43 +000034341 done
cristy3ed852e2009-09-05 21:47:34 +000034342IFS=$as_save_IFS
34343
34344 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34345 ;;
34346esac
34347fi
34348WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34349if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034351$as_echo "$WMFDecodeDelegate" >&6; }
34352else
cristy8b350f62009-11-15 23:12:43 +000034353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034354$as_echo "no" >&6; }
34355fi
34356
34357
34358# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34359set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034361$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034362if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034363 $as_echo_n "(cached) " >&6
34364else
34365 case $WWWDecodeDelegate in
34366 [\\/]* | ?:[\\/]*)
34367 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34368 ;;
34369 *)
34370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34371for as_dir in $PATH
34372do
34373 IFS=$as_save_IFS
34374 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034375 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034377 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034379 break 2
34380 fi
34381done
cristy8b350f62009-11-15 23:12:43 +000034382 done
cristy3ed852e2009-09-05 21:47:34 +000034383IFS=$as_save_IFS
34384
34385 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34386 ;;
34387esac
34388fi
34389WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34390if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034392$as_echo "$WWWDecodeDelegate" >&6; }
34393else
cristy8b350f62009-11-15 23:12:43 +000034394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034395$as_echo "no" >&6; }
34396fi
34397
34398
34399# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34400set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034402$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034403if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034404 $as_echo_n "(cached) " >&6
34405else
34406 case $XPSDelegate in
34407 [\\/]* | ?:[\\/]*)
34408 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34409 ;;
34410 *)
34411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34412for as_dir in $PATH
34413do
34414 IFS=$as_save_IFS
34415 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034416 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034418 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034420 break 2
34421 fi
34422done
cristy8b350f62009-11-15 23:12:43 +000034423 done
cristy3ed852e2009-09-05 21:47:34 +000034424IFS=$as_save_IFS
34425
34426 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34427 ;;
34428esac
34429fi
34430XPSDelegate=$ac_cv_path_XPSDelegate
34431if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034433$as_echo "$XPSDelegate" >&6; }
34434else
cristy8b350f62009-11-15 23:12:43 +000034435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034436$as_echo "no" >&6; }
34437fi
34438
34439
34440# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34441set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034443$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034444if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034445 $as_echo_n "(cached) " >&6
34446else
34447 case $ZipDelegate in
34448 [\\/]* | ?:[\\/]*)
34449 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34450 ;;
34451 *)
34452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34453for as_dir in $PATH
34454do
34455 IFS=$as_save_IFS
34456 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034457 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034459 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034461 break 2
34462 fi
34463done
cristy8b350f62009-11-15 23:12:43 +000034464 done
cristy3ed852e2009-09-05 21:47:34 +000034465IFS=$as_save_IFS
34466
34467 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34468 ;;
34469esac
34470fi
34471ZipDelegate=$ac_cv_path_ZipDelegate
34472if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034474$as_echo "$ZipDelegate" >&6; }
34475else
cristy8b350f62009-11-15 23:12:43 +000034476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034477$as_echo "no" >&6; }
34478fi
34479
34480
34481
34482# Prefer lpr to lp; lp needs options tacked on.
34483if test "$LPRDelegate" != no; then
34484 PrintDelegate="$LPRDelegate"
34485else
34486 PrintDelegate="$LPDelegate -c -s"
34487fi
34488
34489
34490# Installed ImageMagick utiltity paths
34491ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34492DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34493MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34494
34495# Set delegate booleans
34496have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34497have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34498have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34499have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34500have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034501have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034502have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34503have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034504have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34505have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34506
34507#
34508# Test for font directories
34509#
34510type_include_files=''
34511
cristy430a7312010-01-21 20:44:04 +000034512# Dejavu fonts.
34513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34514$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34515dejavu_font_dir=''
34516if test "${with_dejavu_font_dir}" != 'default'; then
34517 dejavu_font_dir="${with_dejavu_font_dir}/"
34518else
34519 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34520 if test -f "${font_dir}DejaVuSerif.ttf"; then
34521 dejavu_font_dir="${font_dir}"
34522 break 1
34523 fi
34524 done
34525fi
34526if test "${dejavu_font_dir}x" != 'x'; then
34527 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34529$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034530else
cristyad38abe2012-12-23 23:03:21 +000034531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34532$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034533fi
34534
34535
cristy3ed852e2009-09-05 21:47:34 +000034536# Windows
34537windows_font_dir=''
34538if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34539 windows_font_dir="${with_windows_font_dir}/"
34540fi
cristy430a7312010-01-21 20:44:04 +000034541if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034542 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34543 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34544 fi
34545 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34546 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34547 fi
34548 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34549 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34550 fi
34551fi
cristy430a7312010-01-21 20:44:04 +000034552if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034553 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34554fi
34555
34556
34557# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034559$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34560ghostscript_font_dir=''
34561if test "${with_gs_font_dir}" != 'default'; then
34562 ghostscript_font_dir="${with_gs_font_dir}/"
34563else
34564 if test "${native_win32_build}" = 'yes'; then
34565 # Native Windows Build
34566 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34567 if test -f "${font_dir}a010013l.pfb"; then
34568 ghostscript_font_dir="$font_dir"
34569 break 1
34570 fi
34571 done
34572 if test "${PSDelegate}" != 'gswin32c'; then
34573 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34574 fi
34575 else
34576 # Linux / Mac OS X / Unix Build
34577 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
34578 if test -f "${font_dir}a010013l.pfb"; then
34579 ghostscript_font_dir="${font_dir}"
34580 break 1
34581 fi
34582 done
34583 if test "${ghostscript_font_dir}x" = 'x'; then
34584 if test "$PSDelegate" != 'gs'; then
34585 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34586 fi
34587 fi
34588 fi
34589fi
34590if test "${ghostscript_font_dir}x" != 'x'; then
34591 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34593$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034594else
cristyad38abe2012-12-23 23:03:21 +000034595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34596$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034597fi
34598
34599case "${build_os}" in
34600 mingw* )
34601 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34602 ;;
34603esac
34604
34605
34606
34607#
34608# Handle case where user doesn't want frozen paths
34609#
34610if test "$with_frozenpaths" != 'yes'; then
34611 # Re-set delegate definitions to default (no paths)
34612 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034613 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34614 BZIPDelegate="$BZIPDelegateDefault"
34615 BrowseDelegate="$BrowseDelegateDefault"
34616 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34617 CatDelegate="$CatDelegateDefault"
34618 ConvertDelegate="$ConvertDelegateDefault"
34619 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34620 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34621 EchoDelegate="$EchoDelegateDefault"
34622 EditorDelegate="$EditorDelegateDefault"
34623 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34624 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34625 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34626 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34627 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34628 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34629 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034630 LaunchDelegate="$LaunchDelegateDefault"
34631 MANDelegate="$MANDelegateDefault"
34632 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34633 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034634 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034635 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34636 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034637 PCLDelegate="$PCLDelegateDefault"
34638 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34639 POVDelegate="$POVDelegateDefault"
34640 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034641 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34642 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034643 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034644 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034645 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034646 ShowImageDelegate="$ShowImageDelegateDefault"
34647 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034648 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034649 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34650 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34651 XPSDelegate="$XPSDelegateDefault"
34652 ZipDelegate="$ZipDelegateDefault"
34653fi
34654
34655# Delegate substitutions
34656
34657
34658
34659
34660
34661
34662
34663
34664
34665
34666
34667
34668
34669
34670
34671
34672
34673
34674
34675
34676
34677
34678
34679
34680
34681
34682
34683
34684
34685
34686
34687
34688
34689
34690
34691
34692
34693
34694
34695
cristy3ed852e2009-09-05 21:47:34 +000034696#
34697# RPM support.
34698#
34699RPM=''
34700for ac_prog in gnutar gtar tar
34701do
34702 # Extract the first word of "$ac_prog", so it can be a program name with args.
34703set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034705$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034706if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034707 $as_echo_n "(cached) " >&6
34708else
34709 if test -n "$TAR"; then
34710 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34711else
34712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34713for as_dir in $PATH
34714do
34715 IFS=$as_save_IFS
34716 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034717 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034719 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034721 break 2
34722 fi
34723done
cristy8b350f62009-11-15 23:12:43 +000034724 done
cristy3ed852e2009-09-05 21:47:34 +000034725IFS=$as_save_IFS
34726
34727fi
34728fi
34729TAR=$ac_cv_prog_TAR
34730if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034732$as_echo "$TAR" >&6; }
34733else
cristy8b350f62009-11-15 23:12:43 +000034734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034735$as_echo "no" >&6; }
34736fi
34737
34738
34739 test -n "$TAR" && break
34740done
34741
34742for ac_prog in perl
34743do
34744 # Extract the first word of "$ac_prog", so it can be a program name with args.
34745set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034747$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034748if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034749 $as_echo_n "(cached) " >&6
34750else
34751 if test -n "$PERL"; then
34752 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34753else
34754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34755for as_dir in $PATH
34756do
34757 IFS=$as_save_IFS
34758 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034759 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034761 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034763 break 2
34764 fi
34765done
cristy8b350f62009-11-15 23:12:43 +000034766 done
cristy3ed852e2009-09-05 21:47:34 +000034767IFS=$as_save_IFS
34768
34769fi
34770fi
34771PERL=$ac_cv_prog_PERL
34772if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034774$as_echo "$PERL" >&6; }
34775else
cristy8b350f62009-11-15 23:12:43 +000034776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034777$as_echo "no" >&6; }
34778fi
34779
34780
34781 test -n "$PERL" && break
34782done
34783
34784for ac_prog in rpmbuild rpm
34785do
34786 # Extract the first word of "$ac_prog", so it can be a program name with args.
34787set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034789$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034790if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034791 $as_echo_n "(cached) " >&6
34792else
34793 if test -n "$RPM"; then
34794 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34795else
34796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34797for as_dir in $PATH
34798do
34799 IFS=$as_save_IFS
34800 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034801 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034803 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034805 break 2
34806 fi
34807done
cristy8b350f62009-11-15 23:12:43 +000034808 done
cristy3ed852e2009-09-05 21:47:34 +000034809IFS=$as_save_IFS
34810
34811fi
34812fi
34813RPM=$ac_cv_prog_RPM
34814if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034816$as_echo "$RPM" >&6; }
34817else
cristy8b350f62009-11-15 23:12:43 +000034818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034819$as_echo "no" >&6; }
34820fi
34821
34822
34823 test -n "$RPM" && break
34824done
34825
34826
cristy73bd4a52010-10-05 11:24:23 +000034827ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34828
34829
34830AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34831
34832
34833AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34834
34835
34836AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34837
34838
34839 if test "x$RPM" != "x" ; then
34840 RPM_DELEGATE_TRUE=
34841 RPM_DELEGATE_FALSE='#'
34842else
34843 RPM_DELEGATE_TRUE='#'
34844 RPM_DELEGATE_FALSE=
34845fi
34846
cristy3ed852e2009-09-05 21:47:34 +000034847
34848#
34849# 7ZIP support (http://p7zip.sourceforge.net/)
34850#
34851P7ZIP=''
34852for ac_prog in 7za
34853do
34854 # Extract the first word of "$ac_prog", so it can be a program name with args.
34855set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034857$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034858if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034859 $as_echo_n "(cached) " >&6
34860else
34861 if test -n "$P7ZIP"; then
34862 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34863else
34864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34865for as_dir in $PATH
34866do
34867 IFS=$as_save_IFS
34868 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034871 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034873 break 2
34874 fi
34875done
cristy8b350f62009-11-15 23:12:43 +000034876 done
cristy3ed852e2009-09-05 21:47:34 +000034877IFS=$as_save_IFS
34878
34879fi
34880fi
34881P7ZIP=$ac_cv_prog_P7ZIP
34882if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034884$as_echo "$P7ZIP" >&6; }
34885else
cristy8b350f62009-11-15 23:12:43 +000034886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034887$as_echo "no" >&6; }
34888fi
34889
34890
34891 test -n "$P7ZIP" && break
34892done
34893
34894
cristy73bd4a52010-10-05 11:24:23 +000034895 if test "x$P7ZIP" != "x" ; then
34896 P7ZIP_DELEGATE_TRUE=
34897 P7ZIP_DELEGATE_FALSE='#'
34898else
34899 P7ZIP_DELEGATE_TRUE='#'
34900 P7ZIP_DELEGATE_FALSE=
34901fi
34902
cristy3ed852e2009-09-05 21:47:34 +000034903
34904#
34905# ZIP support (http://www.info-zip.org/Zip.html)
34906#
34907ZIP=''
34908for ac_prog in zip
34909do
34910 # Extract the first word of "$ac_prog", so it can be a program name with args.
34911set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034913$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034914if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034915 $as_echo_n "(cached) " >&6
34916else
34917 if test -n "$ZIP"; then
34918 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34919else
34920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34921for as_dir in $PATH
34922do
34923 IFS=$as_save_IFS
34924 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034925 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034927 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034929 break 2
34930 fi
34931done
cristy8b350f62009-11-15 23:12:43 +000034932 done
cristy3ed852e2009-09-05 21:47:34 +000034933IFS=$as_save_IFS
34934
34935fi
34936fi
34937ZIP=$ac_cv_prog_ZIP
34938if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034940$as_echo "$ZIP" >&6; }
34941else
cristy8b350f62009-11-15 23:12:43 +000034942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034943$as_echo "no" >&6; }
34944fi
34945
34946
34947 test -n "$ZIP" && break
34948done
34949
34950
cristy73bd4a52010-10-05 11:24:23 +000034951 if test "x$ZIP" != "x" ; then
34952 ZIP_DELEGATE_TRUE=
34953 ZIP_DELEGATE_FALSE='#'
34954else
34955 ZIP_DELEGATE_TRUE='#'
34956 ZIP_DELEGATE_FALSE=
34957fi
34958
cristy3ed852e2009-09-05 21:47:34 +000034959
34960#
34961# GhostPCL related configuration.
34962#
34963PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034964PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034965PCLMonoDevice=pbmraw
34966if test -z "$PCLVersion"; then
34967 PCLVersion='unknown'
34968fi
34969if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34971$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034973$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34975$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034976 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034978$as_echo_n "checking for pcl color device... " >&6; }
34979 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34980 :
34981 else
34982 PCLColorDevice=ppmraw
34983 fi
cristyad38abe2012-12-23 23:03:21 +000034984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34985$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034986
34987 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034989$as_echo_n "checking for pcl CMYK device... " >&6; }
34990 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34991 :
34992 else
34993 PCLCMYKDevice=$PCLColorDevice
34994 fi
cristyad38abe2012-12-23 23:03:21 +000034995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34996$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034997
34998 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035000$as_echo_n "checking for pcl mono device... " >&6; }
35001 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35002 :
35003 else
35004 PCLMonoDevice=$PCLColorDevice
35005 fi
cristyad38abe2012-12-23 23:03:21 +000035006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35007$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035008fi
35009
35010
35011
35012
35013
35014
35015#
35016# GhostXPS related configuration.
35017#
35018XPSColorDevice=ppmraw
35019XPSCMYKDevice=bmpsep8
35020XPSMonoDevice=pbmraw
35021if test -z "$XPSVersion"; then
35022 XPSVersion='unknown'
35023fi
35024if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35026$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035028$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35030$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035031 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035033$as_echo_n "checking for xps color device... " >&6; }
35034 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35035 :
35036 else
35037 XPSColorDevice=ppmraw
35038 fi
cristyad38abe2012-12-23 23:03:21 +000035039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35040$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035041
35042 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035044$as_echo_n "checking for xps CMYK device... " >&6; }
35045 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35046 :
35047 else
35048 XPSCMYKDevice=$XPSColorDevice
35049 fi
cristyad38abe2012-12-23 23:03:21 +000035050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35051$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035052
35053 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035055$as_echo_n "checking for xps mono device... " >&6; }
35056 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35057 :
35058 else
35059 XPSMonoDevice=$XPSColorDevice
35060 fi
cristyad38abe2012-12-23 23:03:21 +000035061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35062$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035063fi
35064
35065
35066
35067
35068
35069
35070#
35071# Ghostscript related configuration.
35072#
cristya97426c2011-02-04 01:41:27 +000035073GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035074GSColorDevice=pnmraw
35075GSCMYKDevice=pam
35076GSMonoDevice=pbmraw
35077GSPDFDevice=pdfwrite
35078GSPSDevice=pswrite
35079GSEPSDevice=epswrite
35080GSVersion='unknown'
35081if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35083$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035085$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35087$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035089$as_echo_n "checking for Ghostscript version... " >&6; }
35090 if GSVersion=`$PSDelegate --version`; then
35091 :
35092 else
35093 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35094 fi
cristyad38abe2012-12-23 23:03:21 +000035095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35096$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035097
35098 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035100$as_echo_n "checking for gs alpha device... " >&6; }
35101 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35102 :
35103 else
35104 GSAlphaDevice=pnmraw
35105 fi
cristyad38abe2012-12-23 23:03:21 +000035106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35107$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035108
35109 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035111$as_echo_n "checking for gs color device... " >&6; }
35112 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35113 :
35114 else
35115 GSColorDevice=pnmraw
35116 fi
cristyad38abe2012-12-23 23:03:21 +000035117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35118$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035119
35120 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035122$as_echo_n "checking for gs CMYK device... " >&6; }
35123 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35124 :
35125 else
35126 GSCMYKDevice=bmpsep8
35127 fi
cristyad38abe2012-12-23 23:03:21 +000035128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35129$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035130
35131 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035133$as_echo_n "checking for gs mono device... " >&6; }
35134 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35135 :
35136 else
35137 GSMonoDevice=$GSColorDevice
35138 fi
cristyad38abe2012-12-23 23:03:21 +000035139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35140$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035141
35142 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035144$as_echo_n "checking for gs PDF writing device... " >&6; }
35145 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35146 :
35147 else
35148 GSPDFDevice=nodevice
35149 fi
cristyad38abe2012-12-23 23:03:21 +000035150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35151$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035152
35153 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035155$as_echo_n "checking for gs PS writing device... " >&6; }
35156 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35157 :
35158 else
35159 GSPSDevice=nodevice
35160 fi
cristyad38abe2012-12-23 23:03:21 +000035161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35162$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035163
35164 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035166$as_echo_n "checking for gs EPS writing device... " >&6; }
35167 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35168 :
35169 else
35170 GSEPSDevice=nodevice
35171 fi
cristyad38abe2012-12-23 23:03:21 +000035172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35173$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035174fi
35175
35176
35177
35178
35179
35180
35181
35182
35183
35184
35185#
35186# PerlMagick-related configuration
35187#
35188
35189# Look for PERL if PerlMagick requested
35190# If name/path of desired PERL interpreter is specified, look for that one first
35191have_perl='no'
35192if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35194$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035196$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35198$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035199 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035201$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035202if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035203 $as_echo_n "(cached) " >&6
35204else
35205 ac_cv_path_PERL="$with_perl"
35206fi
cristy8b350f62009-11-15 23:12:43 +000035207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035208$as_echo "$ac_cv_path_PERL" >&6; };
35209 PERL=$ac_cv_path_PERL
35210 have_perl="$ac_cv_path_PERL"
35211 else
35212 for ac_prog in perl perl5
35213do
35214 # Extract the first word of "$ac_prog", so it can be a program name with args.
35215set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035217$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035218if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035219 $as_echo_n "(cached) " >&6
35220else
35221 case $PERL in
35222 [\\/]* | ?:[\\/]*)
35223 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35224 ;;
35225 *)
35226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35227for as_dir in $PATH
35228do
35229 IFS=$as_save_IFS
35230 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035231 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035233 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035235 break 2
35236 fi
35237done
cristy8b350f62009-11-15 23:12:43 +000035238 done
cristy3ed852e2009-09-05 21:47:34 +000035239IFS=$as_save_IFS
35240
35241 ;;
35242esac
35243fi
35244PERL=$ac_cv_path_PERL
35245if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035247$as_echo "$PERL" >&6; }
35248else
cristy8b350f62009-11-15 23:12:43 +000035249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035250$as_echo "no" >&6; }
35251fi
35252
35253
35254 test -n "$PERL" && break
35255done
35256 if test "$ac_cv_path_PERL"; then
35257 have_perl="$ac_cv_path_PERL"
35258 fi
35259 fi
35260fi
35261
cristy949301e2010-01-06 01:38:40 +000035262if test "$with_perl" != 'yes' ; then
35263 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35264fi
35265
35266PERL_SUPPORTS_DESTDIR='no'
35267
cristy3ed852e2009-09-05 21:47:34 +000035268with_perl_static='no'
35269with_perl_dynamic='no'
35270if test "$have_perl" != 'no'; then
35271 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35272 with_perl_static='yes'
35273 fi
35274 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35275 with_perl_dynamic='yes'
35276 fi
35277 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035278
35279
35280
35281
35282 if test -n "$PERL"; then :
35283
35284 ax_perl_version="5.8.1"
35285
35286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35287$as_echo_n "checking for perl version... " >&6; }
35288
35289 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35290
35291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35292$as_echo "$perl_version" >&6; }
35293
35294 PERL_VERSION=$perl_version
35295
35296
35297
35298
35299
35300 # Used to indicate true or false condition
35301 ax_compare_version=false
35302
35303 # Convert the two version strings to be compared into a format that
35304 # allows a simple string comparison. The end result is that a version
35305 # string of the form 1.12.5-r617 will be converted to the form
35306 # 0001001200050617. In other words, each number is zero padded to four
35307 # digits, and non digits are removed.
35308
35309 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35310 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35311 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35312 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35313 -e 's/[^0-9]//g'`
35314
35315
35316 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35317 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35318 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35319 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35320 -e 's/[^0-9]//g'`
35321
35322
35323 ax_compare_version=`echo "x$ax_compare_version_A
35324x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35325
35326
35327
35328 if test "$ax_compare_version" = "true" ; then
35329
35330 :
35331 PERL_SUPPORTS_DESTDIR='yes'
35332
35333 else
35334 :
35335 PERL_SUPPORTS_DESTDIR='no'
35336
35337 fi
35338
35339
35340else
35341
35342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35343$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35344 PERL_SUPPORTS_DESTDIR='no'
35345
cristy3ed852e2009-09-05 21:47:34 +000035346fi
cristy73bd4a52010-10-05 11:24:23 +000035347
35348fi
35349 if test "$have_perl" != 'no'; then
35350 WITH_PERL_TRUE=
35351 WITH_PERL_FALSE='#'
35352else
35353 WITH_PERL_TRUE='#'
35354 WITH_PERL_FALSE=
35355fi
35356
35357 if test $with_perl_static = 'yes'; then
35358 WITH_PERL_STATIC_TRUE=
35359 WITH_PERL_STATIC_FALSE='#'
35360else
35361 WITH_PERL_STATIC_TRUE='#'
35362 WITH_PERL_STATIC_FALSE=
35363fi
35364
35365 if test $with_perl_dynamic = 'yes'; then
35366 WITH_PERL_DYNAMIC_TRUE=
35367 WITH_PERL_DYNAMIC_FALSE='#'
35368else
35369 WITH_PERL_DYNAMIC_TRUE='#'
35370 WITH_PERL_DYNAMIC_FALSE=
35371fi
35372
cristy3ed852e2009-09-05 21:47:34 +000035373
35374
35375# Determine path to pick up MagickCore library from for use with building PerlMagick
35376MAGICKCORE_PATH="${LIB_DIR}"
35377if test $with_perl_static = 'yes'; then
35378 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35379 libtool_objdir=$objdir
35380
35381 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035382 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035383fi
35384
35385
cristy2a3eb392012-12-17 13:39:20 +000035386# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035387MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035388if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035389 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035390fi
cristy2a3eb392012-12-17 13:39:20 +000035391if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035392 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035393fi
35394if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035395 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035396fi
35397if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035398 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035399fi
35400if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035401 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035402fi
35403if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035404 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035405fi
35406if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035407 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035408fi
35409if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035410 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035411fi
35412if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035413 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035414fi
35415if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035416 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035417fi
35418if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035419 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035420fi
35421if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035422 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035423fi
35424if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035425 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035426fi
35427if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035428 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035429fi
35430if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035431 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035432fi
35433if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035434 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035435fi
35436if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035437 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035438fi
35439if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035440 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035441fi
35442if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035443 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035444fi
35445if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035446 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035447fi
35448if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035449 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035450fi
35451have_ps='no'
35452if test "$have_dps" = 'yes' || \
35453 test "$have_gs" = 'yes' || \
35454 test "${native_win32_build}" = 'yes' ; then
35455 have_ps='yes'
35456fi
35457if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035458 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035459fi
35460if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035461 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035462fi
35463if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035464 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035465fi
35466if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035467 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035468fi
35469if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035470 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035471fi
35472if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035473 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035474fi
35475if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035476 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035477fi
35478if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035479 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035480fi
35481if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035482 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035483fi
35484if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035485 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035486fi
cristy2a3eb392012-12-17 13:39:20 +000035487# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035488MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035489MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035490
35491
cristyfa161182012-12-19 15:45:28 +000035492
cristy3ed852e2009-09-05 21:47:34 +000035493#
35494# Handle special compiler flags
35495#
35496
35497# Add '-p' if prof source profiling support enabled
35498if test "$enable_prof" = 'yes'; then
35499 CFLAGS="-p $CFLAGS"
35500 CXXFLAGS="-p $CXXFLAGS"
35501 LDFLAGS="-p $LDFLAGS"
35502fi
35503
35504# Add '-pg' if gprof source profiling support enabled
35505if test "$enable_gprof" = 'yes'; then
35506 CFLAGS="-pg $CFLAGS"
35507 CXXFLAGS="-pg $CXXFLAGS"
35508 LDFLAGS="-pg $LDFLAGS"
35509fi
35510
35511# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35512# This is a gcc-specific feature
35513if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035515$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035516if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035517 $as_echo_n "(cached) " >&6
35518else
35519 ac_check_lib_save_LIBS=$LIBS
35520LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035522/* end confdefs.h. */
35523
35524/* Override any GCC internal prototype to avoid an error.
35525 Use char because int might match the return type of a GCC
35526 builtin and then its argument prototype would still apply. */
35527#ifdef __cplusplus
35528extern "C"
35529#endif
35530char _gcov_init ();
35531int
35532main ()
35533{
35534return _gcov_init ();
35535 ;
35536 return 0;
35537}
35538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035539if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035540 ac_cv_lib_gcov__gcov_init=yes
35541else
cristy8b350f62009-11-15 23:12:43 +000035542 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035543fi
cristy8b350f62009-11-15 23:12:43 +000035544rm -f core conftest.err conftest.$ac_objext \
35545 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035546LIBS=$ac_check_lib_save_LIBS
35547fi
cristy8b350f62009-11-15 23:12:43 +000035548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035549$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035550if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035551 cat >>confdefs.h <<_ACEOF
35552#define HAVE_LIBGCOV 1
35553_ACEOF
35554
35555 LIBS="-lgcov $LIBS"
35556
35557fi
35558
cristy8b350f62009-11-15 23:12:43 +000035559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035560$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035561if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035562 $as_echo_n "(cached) " >&6
35563else
35564 ac_check_lib_save_LIBS=$LIBS
35565LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035567/* end confdefs.h. */
35568
35569/* Override any GCC internal prototype to avoid an error.
35570 Use char because int might match the return type of a GCC
35571 builtin and then its argument prototype would still apply. */
35572#ifdef __cplusplus
35573extern "C"
35574#endif
35575char __gcov_init ();
35576int
35577main ()
35578{
35579return __gcov_init ();
35580 ;
35581 return 0;
35582}
35583_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035584if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035585 ac_cv_lib_gcov___gcov_init=yes
35586else
cristy8b350f62009-11-15 23:12:43 +000035587 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035588fi
cristy8b350f62009-11-15 23:12:43 +000035589rm -f core conftest.err conftest.$ac_objext \
35590 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035591LIBS=$ac_check_lib_save_LIBS
35592fi
cristy8b350f62009-11-15 23:12:43 +000035593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035594$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035595if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035596 cat >>confdefs.h <<_ACEOF
35597#define HAVE_LIBGCOV 1
35598_ACEOF
35599
35600 LIBS="-lgcov $LIBS"
35601
35602fi
35603
35604 case "$target_os" in
35605 darwin*)
35606 OSX_GCOV_LDFLAG="-Wl,-single_module"
35607 ;;
35608 *)
35609 OSX_GCOV_LDFLAG=""
35610 ;;
35611 esac
35612
35613 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35614 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35615 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35616fi
35617
35618#
35619# Build library dependency list for libMagickCore
35620#
35621
cristyc6722092012-10-14 00:19:31 +000035622if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035623 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 +000035624else
cristy3a75f062012-09-08 23:29:40 +000035625 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 +000035626fi
35627
35628
35629#
35630# Remove extraneous spaces from output variables (asthetic)
35631#
35632X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35633X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35634X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35635X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35636
35637CC=`echo $CC | sed -e 's/ */ /g'`
35638CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35639CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35640CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035641DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35642LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35643TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35644MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35645#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35646
35647# Pass only user-provided LIBS as "global" libraries
35648LIBS=$USER_LIBS
35649
35650#AC_SUBST(CPPFLAGS)
35651
35652#AC_SUBST(LDFLAGS)
35653#AC_SUBST(X_PRE_LIBS)
35654#AC_SUBST(X_LIBS)
35655#AC_SUBST(X_EXTRA_LIBS)
35656
35657MAGICK_CFLAGS=$CFLAGS
35658MAGICK_CXXFLAGS="$CXXFLAGS"
35659MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35660MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35661MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035662MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035663
35664
35665
35666
35667
35668
35669
35670
35671# Set configured scripts to executable.
35672ac_config_commands="$ac_config_commands default"
35673
cristy2bd4b6e2012-07-22 15:29:11 +000035674ac_config_commands="$ac_config_commands magick.sh.in"
35675
cristy3ed852e2009-09-05 21:47:34 +000035676ac_config_commands="$ac_config_commands MagickCore-config.in"
35677
cristy3ed852e2009-09-05 21:47:34 +000035678ac_config_commands="$ac_config_commands MagickWand-config.in"
35679
cristy3ed852e2009-09-05 21:47:34 +000035680ac_config_commands="$ac_config_commands Magick++-config.in"
35681
35682ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35683
35684
cristyad38abe2012-12-23 23:03:21 +000035685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35686$as_echo "-------------------------------------------------------------" >&6; }
35687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35688$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035689cat >confcache <<\_ACEOF
35690# This file is a shell script that caches the results of configure
35691# tests run on this system so they can be shared between configure
35692# scripts and configure runs, see configure's option --config-cache.
35693# It is not useful on other systems. If it contains results you don't
35694# want to keep, you may remove or edit it.
35695#
35696# config.status only pays attention to the cache file if you give it
35697# the --recheck option to rerun configure.
35698#
35699# `ac_cv_env_foo' variables (set or unset) will be overridden when
35700# loading this file, other *unset* `ac_cv_foo' will be assigned the
35701# following values.
35702
35703_ACEOF
35704
35705# The following way of writing the cache mishandles newlines in values,
35706# but we know of no workaround that is simple, portable, and efficient.
35707# So, we kill variables containing newlines.
35708# Ultrix sh set writes to stderr and can't be redirected directly,
35709# and sets the high bit in the cache file unless we assign to the vars.
35710(
35711 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35712 eval ac_val=\$$ac_var
35713 case $ac_val in #(
35714 *${as_nl}*)
35715 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035716 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035717$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35718 esac
35719 case $ac_var in #(
35720 _ | IFS | as_nl) ;; #(
35721 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035722 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035723 esac ;;
35724 esac
35725 done
35726
35727 (set) 2>&1 |
35728 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35729 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035730 # `set' does not quote correctly, so add quotes: double-quote
35731 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035732 sed -n \
35733 "s/'/'\\\\''/g;
35734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35735 ;; #(
35736 *)
35737 # `set' quotes correctly as required by POSIX, so do not add quotes.
35738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35739 ;;
35740 esac |
35741 sort
35742) |
35743 sed '
35744 /^ac_cv_env_/b end
35745 t clear
35746 :clear
35747 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35748 t end
35749 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35750 :end' >>confcache
35751if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35752 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035753 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035754 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035755$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035756 if test ! -f "$cache_file" || test -h "$cache_file"; then
35757 cat confcache >"$cache_file"
35758 else
35759 case $cache_file in #(
35760 */* | ?:*)
35761 mv -f confcache "$cache_file"$$ &&
35762 mv -f "$cache_file"$$ "$cache_file" ;; #(
35763 *)
35764 mv -f confcache "$cache_file" ;;
35765 esac
35766 fi
35767 fi
cristy3ed852e2009-09-05 21:47:34 +000035768 else
cristy8b350f62009-11-15 23:12:43 +000035769 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035770$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35771 fi
35772fi
35773rm -f confcache
35774
35775test "x$prefix" = xNONE && prefix=$ac_default_prefix
35776# Let make expand exec_prefix.
35777test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35778
35779DEFS=-DHAVE_CONFIG_H
35780
35781ac_libobjs=
35782ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035783U=
cristy3ed852e2009-09-05 21:47:34 +000035784for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35785 # 1. Remove the extension, and $U if already installed.
35786 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35787 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35788 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35789 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035790 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35791 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035792done
35793LIBOBJS=$ac_libobjs
35794
35795LTLIBOBJS=$ac_ltlibobjs
35796
35797
cristyc0890a62012-07-19 00:18:20 +000035798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35799$as_echo_n "checking that generated files are newer than configure... " >&6; }
35800 if test -n "$am_sleep_pid"; then
35801 # Hide warnings about reused PIDs.
35802 wait $am_sleep_pid 2>/dev/null
35803 fi
35804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35805$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035806 if test -n "$EXEEXT"; then
35807 am__EXEEXT_TRUE=
35808 am__EXEEXT_FALSE='#'
35809else
35810 am__EXEEXT_TRUE='#'
35811 am__EXEEXT_FALSE=
35812fi
cristy3ed852e2009-09-05 21:47:34 +000035813
cristy73bd4a52010-10-05 11:24:23 +000035814if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035815 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035816Usually this means the macro was only invoked conditionally." "$LINENO" 5
35817fi
35818if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035819 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035820Usually this means the macro was only invoked conditionally." "$LINENO" 5
35821fi
35822if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035823 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035824Usually this means the macro was only invoked conditionally." "$LINENO" 5
35825fi
35826if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035827 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035828Usually this means the macro was only invoked conditionally." "$LINENO" 5
35829fi
cristy9b86f202012-11-28 21:55:35 +000035830if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35831 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35832Usually this means the macro was only invoked conditionally." "$LINENO" 5
35833fi
cristy73bd4a52010-10-05 11:24:23 +000035834if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035835 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035836Usually this means the macro was only invoked conditionally." "$LINENO" 5
35837fi
35838if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035839 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035840Usually this means the macro was only invoked conditionally." "$LINENO" 5
35841fi
35842if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035843 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035844Usually this means the macro was only invoked conditionally." "$LINENO" 5
35845fi
35846if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035847 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035848Usually this means the macro was only invoked conditionally." "$LINENO" 5
35849fi
cristy73bd4a52010-10-05 11:24:23 +000035850if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035851 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035852Usually this means the macro was only invoked conditionally." "$LINENO" 5
35853fi
35854if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035855 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035856Usually this means the macro was only invoked conditionally." "$LINENO" 5
35857fi
cristy73bd4a52010-10-05 11:24:23 +000035858if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035859 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035860Usually this means the macro was only invoked conditionally." "$LINENO" 5
35861fi
cristy71d8c202012-03-20 17:05:01 +000035862if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35863 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35864Usually this means the macro was only invoked conditionally." "$LINENO" 5
35865fi
cristy73bd4a52010-10-05 11:24:23 +000035866
35867if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035868 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035869Usually this means the macro was only invoked conditionally." "$LINENO" 5
35870fi
35871if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035872 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035873Usually this means the macro was only invoked conditionally." "$LINENO" 5
35874fi
35875if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035876 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035877Usually this means the macro was only invoked conditionally." "$LINENO" 5
35878fi
35879if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035880 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035881Usually this means the macro was only invoked conditionally." "$LINENO" 5
35882fi
35883if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035884 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035885Usually this means the macro was only invoked conditionally." "$LINENO" 5
35886fi
35887if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035888 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035889Usually this means the macro was only invoked conditionally." "$LINENO" 5
35890fi
cristy5eef09f2012-10-16 12:08:28 +000035891if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35892 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35893Usually this means the macro was only invoked conditionally." "$LINENO" 5
35894fi
cristy73bd4a52010-10-05 11:24:23 +000035895if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035896 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035897Usually this means the macro was only invoked conditionally." "$LINENO" 5
35898fi
35899if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035900 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035901Usually this means the macro was only invoked conditionally." "$LINENO" 5
35902fi
35903if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035904 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035905Usually this means the macro was only invoked conditionally." "$LINENO" 5
35906fi
35907if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035908 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035909Usually this means the macro was only invoked conditionally." "$LINENO" 5
35910fi
35911if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035912 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035913Usually this means the macro was only invoked conditionally." "$LINENO" 5
35914fi
35915if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035916 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035917Usually this means the macro was only invoked conditionally." "$LINENO" 5
35918fi
35919if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035920 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035921Usually this means the macro was only invoked conditionally." "$LINENO" 5
35922fi
35923if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035924 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035925Usually this means the macro was only invoked conditionally." "$LINENO" 5
35926fi
35927if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035928 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035929Usually this means the macro was only invoked conditionally." "$LINENO" 5
35930fi
35931if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035932 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035933Usually this means the macro was only invoked conditionally." "$LINENO" 5
35934fi
35935if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035936 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035937Usually this means the macro was only invoked conditionally." "$LINENO" 5
35938fi
35939if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035940 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035941Usually this means the macro was only invoked conditionally." "$LINENO" 5
35942fi
35943if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035944 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035945Usually this means the macro was only invoked conditionally." "$LINENO" 5
35946fi
35947if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035948 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035949Usually this means the macro was only invoked conditionally." "$LINENO" 5
35950fi
cristyfbb0ef02010-12-19 02:32:11 +000035951if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35952 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35953Usually this means the macro was only invoked conditionally." "$LINENO" 5
35954fi
cristy73bd4a52010-10-05 11:24:23 +000035955if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035956 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035957Usually this means the macro was only invoked conditionally." "$LINENO" 5
35958fi
cristy41cbe8a2011-10-27 01:35:18 +000035959if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35960 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35961Usually this means the macro was only invoked conditionally." "$LINENO" 5
35962fi
cristya054b762012-03-26 23:16:00 +000035963if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35964 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035965Usually this means the macro was only invoked conditionally." "$LINENO" 5
35966fi
cristy73bd4a52010-10-05 11:24:23 +000035967if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035968 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035969Usually this means the macro was only invoked conditionally." "$LINENO" 5
35970fi
35971if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035972 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035973Usually this means the macro was only invoked conditionally." "$LINENO" 5
35974fi
35975if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035976 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035977Usually this means the macro was only invoked conditionally." "$LINENO" 5
35978fi
35979if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035980 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035981Usually this means the macro was only invoked conditionally." "$LINENO" 5
35982fi
cristyb1860752011-03-14 00:27:46 +000035983if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35984 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35985Usually this means the macro was only invoked conditionally." "$LINENO" 5
35986fi
cristy73bd4a52010-10-05 11:24:23 +000035987if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035988 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035989Usually this means the macro was only invoked conditionally." "$LINENO" 5
35990fi
35991if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035992 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035993Usually this means the macro was only invoked conditionally." "$LINENO" 5
35994fi
35995if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035996 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035997Usually this means the macro was only invoked conditionally." "$LINENO" 5
35998fi
35999if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036000 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036001Usually this means the macro was only invoked conditionally." "$LINENO" 5
36002fi
36003if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036004 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036005Usually this means the macro was only invoked conditionally." "$LINENO" 5
36006fi
36007if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036008 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036009Usually this means the macro was only invoked conditionally." "$LINENO" 5
36010fi
36011if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036012 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036013Usually this means the macro was only invoked conditionally." "$LINENO" 5
36014fi
36015if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036016 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036017Usually this means the macro was only invoked conditionally." "$LINENO" 5
36018fi
cristy3ed852e2009-09-05 21:47:34 +000036019
cristyda16f162011-02-19 23:52:17 +000036020: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036021ac_write_fail=0
36022ac_clean_files_save=$ac_clean_files
36023ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036024{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036025$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036026as_write_fail=0
36027cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036028#! $SHELL
36029# Generated by $as_me.
36030# Run this file to recreate the current configuration.
36031# Compiler output produced by configure, useful for debugging
36032# configure, is in config.log if it exists.
36033
36034debug=false
36035ac_cs_recheck=false
36036ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036037
cristy8b350f62009-11-15 23:12:43 +000036038SHELL=\${CONFIG_SHELL-$SHELL}
36039export SHELL
36040_ASEOF
36041cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36042## -------------------- ##
36043## M4sh Initialization. ##
36044## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036045
36046# Be more Bourne compatible
36047DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036048if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036049 emulate sh
36050 NULLCMD=:
36051 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36052 # is contrary to our usage. Disable this feature.
36053 alias -g '${1+"$@"}'='"$@"'
36054 setopt NO_GLOB_SUBST
36055else
cristy8b350f62009-11-15 23:12:43 +000036056 case `(set -o) 2>/dev/null` in #(
36057 *posix*) :
36058 set -o posix ;; #(
36059 *) :
36060 ;;
cristy3ed852e2009-09-05 21:47:34 +000036061esac
cristy3ed852e2009-09-05 21:47:34 +000036062fi
36063
36064
cristy3ed852e2009-09-05 21:47:34 +000036065as_nl='
36066'
36067export as_nl
36068# Printing a long string crashes Solaris 7 /usr/bin/printf.
36069as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36070as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36071as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036072# Prefer a ksh shell builtin over an external printf program on Solaris,
36073# but without wasting forks for bash or zsh.
36074if test -z "$BASH_VERSION$ZSH_VERSION" \
36075 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36076 as_echo='print -r --'
36077 as_echo_n='print -rn --'
36078elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036079 as_echo='printf %s\n'
36080 as_echo_n='printf %s'
36081else
36082 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36083 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36084 as_echo_n='/usr/ucb/echo -n'
36085 else
36086 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36087 as_echo_n_body='eval
36088 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036089 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036090 *"$as_nl"*)
36091 expr "X$arg" : "X\\(.*\\)$as_nl";
36092 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36093 esac;
36094 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36095 '
36096 export as_echo_n_body
36097 as_echo_n='sh -c $as_echo_n_body as_echo'
36098 fi
36099 export as_echo_body
36100 as_echo='sh -c $as_echo_body as_echo'
36101fi
36102
36103# The user is always right.
36104if test "${PATH_SEPARATOR+set}" != set; then
36105 PATH_SEPARATOR=:
36106 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36107 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36108 PATH_SEPARATOR=';'
36109 }
36110fi
36111
cristy3ed852e2009-09-05 21:47:34 +000036112
36113# IFS
36114# We need space, tab and new line, in precisely that order. Quoting is
36115# there to prevent editors from complaining about space-tab.
36116# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36117# splitting by setting IFS to empty value.)
36118IFS=" "" $as_nl"
36119
36120# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036121as_myself=
cristy8b350f62009-11-15 23:12:43 +000036122case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036123 *[\\/]* ) as_myself=$0 ;;
36124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36125for as_dir in $PATH
36126do
36127 IFS=$as_save_IFS
36128 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36130 done
cristy3ed852e2009-09-05 21:47:34 +000036131IFS=$as_save_IFS
36132
36133 ;;
36134esac
36135# We did not find ourselves, most probably we were run as `sh COMMAND'
36136# in which case we are not to be found in the path.
36137if test "x$as_myself" = x; then
36138 as_myself=$0
36139fi
36140if test ! -f "$as_myself"; then
36141 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036142 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036143fi
36144
cristy8b350f62009-11-15 23:12:43 +000036145# Unset variables that we do not need and which cause bugs (e.g. in
36146# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36147# suppresses any "Segmentation fault" message there. '((' could
36148# trigger a bug in pdksh 5.2.14.
36149for as_var in BASH_ENV ENV MAIL MAILPATH
36150do eval test x\${$as_var+set} = xset \
36151 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036152done
36153PS1='$ '
36154PS2='> '
36155PS4='+ '
36156
36157# NLS nuisances.
36158LC_ALL=C
36159export LC_ALL
36160LANGUAGE=C
36161export LANGUAGE
36162
cristy8b350f62009-11-15 23:12:43 +000036163# CDPATH.
36164(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36165
36166
cristy98dddb52010-11-04 00:30:15 +000036167# as_fn_error STATUS ERROR [LINENO LOG_FD]
36168# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036169# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36170# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036171# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036172as_fn_error ()
36173{
cristy98dddb52010-11-04 00:30:15 +000036174 as_status=$1; test $as_status -eq 0 && as_status=1
36175 if test "$4"; then
36176 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36177 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036178 fi
cristy98dddb52010-11-04 00:30:15 +000036179 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036180 as_fn_exit $as_status
36181} # as_fn_error
36182
36183
36184# as_fn_set_status STATUS
36185# -----------------------
36186# Set $? to STATUS, without forking.
36187as_fn_set_status ()
36188{
36189 return $1
36190} # as_fn_set_status
36191
36192# as_fn_exit STATUS
36193# -----------------
36194# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36195as_fn_exit ()
36196{
36197 set +e
36198 as_fn_set_status $1
36199 exit $1
36200} # as_fn_exit
36201
36202# as_fn_unset VAR
36203# ---------------
36204# Portably unset VAR.
36205as_fn_unset ()
36206{
36207 { eval $1=; unset $1;}
36208}
36209as_unset=as_fn_unset
36210# as_fn_append VAR VALUE
36211# ----------------------
36212# Append the text in VALUE to the end of the definition contained in VAR. Take
36213# advantage of any shell optimizations that allow amortized linear growth over
36214# repeated appends, instead of the typical quadratic growth present in naive
36215# implementations.
36216if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36217 eval 'as_fn_append ()
36218 {
36219 eval $1+=\$2
36220 }'
36221else
36222 as_fn_append ()
36223 {
36224 eval $1=\$$1\$2
36225 }
36226fi # as_fn_append
36227
36228# as_fn_arith ARG...
36229# ------------------
36230# Perform arithmetic evaluation on the ARGs, and store the result in the
36231# global $as_val. Take advantage of shells that can avoid forks. The arguments
36232# must be portable across $(()) and expr.
36233if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36234 eval 'as_fn_arith ()
36235 {
36236 as_val=$(( $* ))
36237 }'
36238else
36239 as_fn_arith ()
36240 {
36241 as_val=`expr "$@" || test $? -eq 1`
36242 }
36243fi # as_fn_arith
36244
36245
cristy3ed852e2009-09-05 21:47:34 +000036246if expr a : '\(a\)' >/dev/null 2>&1 &&
36247 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36248 as_expr=expr
36249else
36250 as_expr=false
36251fi
36252
36253if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36254 as_basename=basename
36255else
36256 as_basename=false
36257fi
36258
cristy8b350f62009-11-15 23:12:43 +000036259if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36260 as_dirname=dirname
36261else
36262 as_dirname=false
36263fi
cristy3ed852e2009-09-05 21:47:34 +000036264
cristy3ed852e2009-09-05 21:47:34 +000036265as_me=`$as_basename -- "$0" ||
36266$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36267 X"$0" : 'X\(//\)$' \| \
36268 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36269$as_echo X/"$0" |
36270 sed '/^.*\/\([^/][^/]*\)\/*$/{
36271 s//\1/
36272 q
36273 }
36274 /^X\/\(\/\/\)$/{
36275 s//\1/
36276 q
36277 }
36278 /^X\/\(\/\).*/{
36279 s//\1/
36280 q
36281 }
36282 s/.*/./; q'`
36283
cristy8b350f62009-11-15 23:12:43 +000036284# Avoid depending upon Character Ranges.
36285as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36286as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36287as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36288as_cr_digits='0123456789'
36289as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036290
36291ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036292case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036293-n*)
cristy8b350f62009-11-15 23:12:43 +000036294 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036295 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036296 xy) ECHO_C='\c';;
36297 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36298 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036299 esac;;
36300*)
36301 ECHO_N='-n';;
36302esac
cristy3ed852e2009-09-05 21:47:34 +000036303
36304rm -f conf$$ conf$$.exe conf$$.file
36305if test -d conf$$.dir; then
36306 rm -f conf$$.dir/conf$$.file
36307else
36308 rm -f conf$$.dir
36309 mkdir conf$$.dir 2>/dev/null
36310fi
36311if (echo >conf$$.file) 2>/dev/null; then
36312 if ln -s conf$$.file conf$$ 2>/dev/null; then
36313 as_ln_s='ln -s'
36314 # ... but there are two gotchas:
36315 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36316 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036317 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036318 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036319 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036320 elif ln conf$$.file conf$$ 2>/dev/null; then
36321 as_ln_s=ln
36322 else
cristy14fefe52012-05-21 00:59:18 +000036323 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036324 fi
36325else
cristy14fefe52012-05-21 00:59:18 +000036326 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036327fi
36328rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36329rmdir conf$$.dir 2>/dev/null
36330
cristy8b350f62009-11-15 23:12:43 +000036331
36332# as_fn_mkdir_p
36333# -------------
36334# Create "$as_dir" as a directory, including parents if necessary.
36335as_fn_mkdir_p ()
36336{
36337
36338 case $as_dir in #(
36339 -*) as_dir=./$as_dir;;
36340 esac
36341 test -d "$as_dir" || eval $as_mkdir_p || {
36342 as_dirs=
36343 while :; do
36344 case $as_dir in #(
36345 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36346 *) as_qdir=$as_dir;;
36347 esac
36348 as_dirs="'$as_qdir' $as_dirs"
36349 as_dir=`$as_dirname -- "$as_dir" ||
36350$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36351 X"$as_dir" : 'X\(//\)[^/]' \| \
36352 X"$as_dir" : 'X\(//\)$' \| \
36353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36354$as_echo X"$as_dir" |
36355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36356 s//\1/
36357 q
36358 }
36359 /^X\(\/\/\)[^/].*/{
36360 s//\1/
36361 q
36362 }
36363 /^X\(\/\/\)$/{
36364 s//\1/
36365 q
36366 }
36367 /^X\(\/\).*/{
36368 s//\1/
36369 q
36370 }
36371 s/.*/./; q'`
36372 test -d "$as_dir" && break
36373 done
36374 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036375 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036376
36377
36378} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036379if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036380 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036381else
36382 test -d ./-p && rmdir ./-p
36383 as_mkdir_p=false
36384fi
36385
cristy14fefe52012-05-21 00:59:18 +000036386
36387# as_fn_executable_p FILE
36388# -----------------------
36389# Test if FILE is an executable regular file.
36390as_fn_executable_p ()
36391{
36392 test -f "$1" && test -x "$1"
36393} # as_fn_executable_p
36394as_test_x='test -x'
36395as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036396
36397# Sed expression to map a string onto a valid CPP name.
36398as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36399
36400# Sed expression to map a string onto a valid variable name.
36401as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36402
36403
36404exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036405## ----------------------------------- ##
36406## Main body of $CONFIG_STATUS script. ##
36407## ----------------------------------- ##
36408_ASEOF
36409test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036410
cristy8b350f62009-11-15 23:12:43 +000036411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36412# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036413# report actual input values of CONFIG_FILES etc. instead of their
36414# values after options handling.
36415ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036416This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036417generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036418
36419 CONFIG_FILES = $CONFIG_FILES
36420 CONFIG_HEADERS = $CONFIG_HEADERS
36421 CONFIG_LINKS = $CONFIG_LINKS
36422 CONFIG_COMMANDS = $CONFIG_COMMANDS
36423 $ $0 $@
36424
36425on `(hostname || uname -n) 2>/dev/null | sed 1q`
36426"
36427
36428_ACEOF
36429
36430case $ac_config_files in *"
36431"*) set x $ac_config_files; shift; ac_config_files=$*;;
36432esac
36433
36434case $ac_config_headers in *"
36435"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36436esac
36437
36438
36439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36440# Files that config.status was made for.
36441config_files="$ac_config_files"
36442config_headers="$ac_config_headers"
36443config_commands="$ac_config_commands"
36444
36445_ACEOF
36446
36447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36448ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036449\`$as_me' instantiates files and other configuration actions
36450from templates according to the current configuration. Unless the files
36451and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036452
cristy8b350f62009-11-15 23:12:43 +000036453Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036454
36455 -h, --help print this help, then exit
36456 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036457 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036458 -q, --quiet, --silent
36459 do not print progress messages
36460 -d, --debug don't remove temporary files
36461 --recheck update $as_me by reconfiguring in the same conditions
36462 --file=FILE[:TEMPLATE]
36463 instantiate the configuration file FILE
36464 --header=FILE[:TEMPLATE]
36465 instantiate the configuration header FILE
36466
36467Configuration files:
36468$config_files
36469
36470Configuration headers:
36471$config_headers
36472
36473Configuration commands:
36474$config_commands
36475
cristy8b350f62009-11-15 23:12:43 +000036476Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036477
36478_ACEOF
36479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036480ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036481ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036482ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036483configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036484 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036485
cristy14fefe52012-05-21 00:59:18 +000036486Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036487This config.status script is free software; the Free Software Foundation
36488gives unlimited permission to copy, distribute and modify it."
36489
36490ac_pwd='$ac_pwd'
36491srcdir='$srcdir'
36492INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036493MKDIR_P='$MKDIR_P'
36494AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036495test -n "\$AWK" || AWK=awk
36496_ACEOF
36497
36498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36499# The default lists apply if the user does not specify any file.
36500ac_need_defaults=:
36501while test $# != 0
36502do
36503 case $1 in
cristyda16f162011-02-19 23:52:17 +000036504 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036505 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36506 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36507 ac_shift=:
36508 ;;
cristyda16f162011-02-19 23:52:17 +000036509 --*=)
36510 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36511 ac_optarg=
36512 ac_shift=:
36513 ;;
cristy3ed852e2009-09-05 21:47:34 +000036514 *)
36515 ac_option=$1
36516 ac_optarg=$2
36517 ac_shift=shift
36518 ;;
36519 esac
36520
36521 case $ac_option in
36522 # Handling of the options.
36523 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36524 ac_cs_recheck=: ;;
36525 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36526 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036527 --config | --confi | --conf | --con | --co | --c )
36528 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036529 --debug | --debu | --deb | --de | --d | -d )
36530 debug=: ;;
36531 --file | --fil | --fi | --f )
36532 $ac_shift
36533 case $ac_optarg in
36534 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036535 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036536 esac
cristy8b350f62009-11-15 23:12:43 +000036537 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036538 ac_need_defaults=false;;
36539 --header | --heade | --head | --hea )
36540 $ac_shift
36541 case $ac_optarg in
36542 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36543 esac
cristy8b350f62009-11-15 23:12:43 +000036544 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036545 ac_need_defaults=false;;
36546 --he | --h)
36547 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036548 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036549Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036550 --help | --hel | -h )
36551 $as_echo "$ac_cs_usage"; exit ;;
36552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36553 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36554 ac_cs_silent=: ;;
36555
36556 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036557 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036558Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036559
cristy8b350f62009-11-15 23:12:43 +000036560 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036561 ac_need_defaults=false ;;
36562
36563 esac
36564 shift
36565done
36566
36567ac_configure_extra_args=
36568
36569if $ac_cs_silent; then
36570 exec 6>/dev/null
36571 ac_configure_extra_args="$ac_configure_extra_args --silent"
36572fi
36573
36574_ACEOF
36575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36576if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036577 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036578 shift
36579 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36580 CONFIG_SHELL='$SHELL'
36581 export CONFIG_SHELL
36582 exec "\$@"
36583fi
36584
36585_ACEOF
36586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36587exec 5>>config.log
36588{
36589 echo
36590 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36591## Running $as_me. ##
36592_ASBOX
36593 $as_echo "$ac_log"
36594} >&5
36595
36596_ACEOF
36597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036598#
36599# INIT-COMMANDS
36600#
36601PACKAGE="$PACKAGE"
36602AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36603
36604
36605# The HP-UX ksh and POSIX shell print the target directory to stdout
36606# if CDPATH is set.
36607(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36608
36609sed_quote_subst='$sed_quote_subst'
36610double_quote_subst='$double_quote_subst'
36611delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036612SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36613Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36614GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36615EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36616FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36617SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36618ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36619LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36620macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36621macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36622AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36623DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36624OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36625enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36626enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36627pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36628enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036629PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036630host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36631host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36632host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36633build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36634build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36635build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36636NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36637LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36638max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36639ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36640exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36641lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36642lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36643lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036644lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36645lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036646reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36647reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36648deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36649file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036650file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36651want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36652sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036653AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36654AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036655archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036656STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36657RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36658old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36659old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36660old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36661lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36662CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36663CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36664compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36665GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36666lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36667lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36668lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36669lt_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 +000036670nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36671lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036672objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36673MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36674lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036675lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036676lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036677lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36678lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36679need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036680MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036681DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36682NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36683LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36684OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36685OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36686libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36687shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36688extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36689archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36690enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36691export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36692whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36693compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36694old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36695old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36696archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36697archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36698module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36699module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36700with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36701allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36702no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36703hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036704hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36705hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36706hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36707hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36708hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36709hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36710inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36711link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036712always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36713export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36714exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36715include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36716prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036717postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036718file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36719variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36720need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36721need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36722version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36723runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36724shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36725shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36726libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36727library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36728soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36729install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36730postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36731postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36732finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36733finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36734hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36735sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36736sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36737hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36738enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36739enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36740enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36741old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36742striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36743compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36744predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36745postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36746predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36747postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36748compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36749LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36750reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36751reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36752old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36753compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36754GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36755lt_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 +000036756lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036757lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036758lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36759lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36760archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36761enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36762export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36763whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36764compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36765old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36766old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36767archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36768archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36769module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36770module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36771with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36772allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36773no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36774hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036775hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36776hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36777hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36778hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36779hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36780hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36781inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36782link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036783always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36784export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36785exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36786include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36787prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036788postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036789file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36790hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36791compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36792predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36793postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36794predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36795postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36796compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036797
36798LTCC='$LTCC'
36799LTCFLAGS='$LTCFLAGS'
36800compiler='$compiler_DEFAULT'
36801
cristy0c60a692010-11-04 01:09:47 +000036802# A function that is used when there is no print builtin or printf.
36803func_fallback_echo ()
36804{
36805 eval 'cat <<_LTECHO_EOF
36806\$1
36807_LTECHO_EOF'
36808}
36809
cristy73bd4a52010-10-05 11:24:23 +000036810# Quote evaled strings.
36811for var in SED \
36812GREP \
36813EGREP \
36814FGREP \
cristy0c60a692010-11-04 01:09:47 +000036815SHELL \
36816ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036817LD \
cristy0c60a692010-11-04 01:09:47 +000036818AS \
36819DLLTOOL \
36820OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036821PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036822NM \
36823LN_S \
36824lt_SP2NL \
36825lt_NL2SP \
36826reload_flag \
36827deplibs_check_method \
36828file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036829file_magic_glob \
36830want_nocaseglob \
36831sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036832AR \
36833AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036834archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036835STRIP \
36836RANLIB \
36837CC \
36838CFLAGS \
36839compiler \
36840lt_cv_sys_global_symbol_pipe \
36841lt_cv_sys_global_symbol_to_cdecl \
36842lt_cv_sys_global_symbol_to_c_name_address \
36843lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036844nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036845lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036846lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036847lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036848lt_prog_compiler_static \
36849lt_cv_prog_compiler_c_o \
36850need_locks \
cristyda16f162011-02-19 23:52:17 +000036851MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036852DSYMUTIL \
36853NMEDIT \
36854LIPO \
36855OTOOL \
36856OTOOL64 \
36857shrext_cmds \
36858export_dynamic_flag_spec \
36859whole_archive_flag_spec \
36860compiler_needs_object \
36861with_gnu_ld \
36862allow_undefined_flag \
36863no_undefined_flag \
36864hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036865hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036866exclude_expsyms \
36867include_expsyms \
36868file_list_spec \
36869variables_saved_for_relink \
36870libname_spec \
36871library_names_spec \
36872soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036873install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036874finish_eval \
36875old_striplib \
36876striplib \
36877compiler_lib_search_dirs \
36878predep_objects \
36879postdep_objects \
36880predeps \
36881postdeps \
36882compiler_lib_search_path \
36883LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036884reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036885compiler_CXX \
36886lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036887lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036888lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036889lt_prog_compiler_static_CXX \
36890lt_cv_prog_compiler_c_o_CXX \
36891export_dynamic_flag_spec_CXX \
36892whole_archive_flag_spec_CXX \
36893compiler_needs_object_CXX \
36894with_gnu_ld_CXX \
36895allow_undefined_flag_CXX \
36896no_undefined_flag_CXX \
36897hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036898hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036899exclude_expsyms_CXX \
36900include_expsyms_CXX \
36901file_list_spec_CXX \
36902compiler_lib_search_dirs_CXX \
36903predep_objects_CXX \
36904postdep_objects_CXX \
36905predeps_CXX \
36906postdeps_CXX \
36907compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036908 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036909 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036910 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036911 ;;
36912 *)
36913 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36914 ;;
36915 esac
36916done
36917
36918# Double-quote double-evaled strings.
36919for var in reload_cmds \
36920old_postinstall_cmds \
36921old_postuninstall_cmds \
36922old_archive_cmds \
36923extract_expsyms_cmds \
36924old_archive_from_new_cmds \
36925old_archive_from_expsyms_cmds \
36926archive_cmds \
36927archive_expsym_cmds \
36928module_cmds \
36929module_expsym_cmds \
36930export_symbols_cmds \
36931prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036932postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036933postinstall_cmds \
36934postuninstall_cmds \
36935finish_cmds \
36936sys_lib_search_path_spec \
36937sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036938reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036939old_archive_cmds_CXX \
36940old_archive_from_new_cmds_CXX \
36941old_archive_from_expsyms_cmds_CXX \
36942archive_cmds_CXX \
36943archive_expsym_cmds_CXX \
36944module_cmds_CXX \
36945module_expsym_cmds_CXX \
36946export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036947prelink_cmds_CXX \
36948postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036949 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036950 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036951 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036952 ;;
36953 *)
36954 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36955 ;;
36956 esac
36957done
36958
cristy73bd4a52010-10-05 11:24:23 +000036959ac_aux_dir='$ac_aux_dir'
36960xsi_shell='$xsi_shell'
36961lt_shell_append='$lt_shell_append'
36962
36963# See if we are running on zsh, and set the options which allow our
36964# commands through without removal of \ escapes INIT.
36965if test -n "\${ZSH_VERSION+set}" ; then
36966 setopt NO_GLOB_SUBST
36967fi
36968
36969
36970 PACKAGE='$PACKAGE'
36971 VERSION='$VERSION'
36972 TIMESTAMP='$TIMESTAMP'
36973 RM='$RM'
36974 ofile='$ofile'
36975
36976
36977
36978
36979
36980
cristy3ed852e2009-09-05 21:47:34 +000036981_ACEOF
36982
36983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36984
36985# Handling of arguments.
36986for ac_config_target in $ac_config_targets
36987do
36988 case $ac_config_target in
36989 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036990 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036991 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036992 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36993 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36994 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36995 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36996 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036997 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036998 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036999 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37000 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37001 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37002 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37003 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037004 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037005 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037006 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37007 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37008 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037009 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37010 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037011 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037012 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037013 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037014 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037015 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37016 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37017 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37018 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037019 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37020 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37021 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37022 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37023 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37024 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37025 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37026 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37027 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37028 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37029 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37030 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037031 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37032 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037033 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37034 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037035 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037036 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037037 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037038 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037039 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37040 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37041
cristy98dddb52010-11-04 00:30:15 +000037042 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037043 esac
37044done
37045
37046
37047# If the user did not use the arguments to specify the items to instantiate,
37048# then the envvar interface is used. Set only those that are not.
37049# We use the long form for the default assignment because of an extremely
37050# bizarre bug on SunOS 4.1.3.
37051if $ac_need_defaults; then
37052 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37053 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37054 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37055fi
37056
37057# Have a temporary directory for convenience. Make it in the build tree
37058# simply because there is no reason against having it here, and in addition,
37059# creating and moving files from /tmp can sometimes cause problems.
37060# Hook for its removal unless debugging.
37061# Note that there is a small window in which the directory will not be cleaned:
37062# after its creation but before its name has been assigned to `$tmp'.
37063$debug ||
37064{
cristyda16f162011-02-19 23:52:17 +000037065 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037066 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037067 : "${ac_tmp:=$tmp}"
37068 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037069' 0
cristy8b350f62009-11-15 23:12:43 +000037070 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037071}
37072# Create a (secure) tmp directory for tmp files.
37073
37074{
37075 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037076 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037077} ||
37078{
37079 tmp=./conf$$-$RANDOM
37080 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037081} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037082ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037083
37084# Set up the scripts for CONFIG_FILES section.
37085# No need to generate them if there are no CONFIG_FILES.
37086# This happens for instance with `./config.status config.h'.
37087if test -n "$CONFIG_FILES"; then
37088
37089
cristy8b350f62009-11-15 23:12:43 +000037090ac_cr=`echo X | tr X '\015'`
37091# On cygwin, bash can eat \r inside `` if the user requested igncr.
37092# But we know of no other shell where ac_cr would be empty at this
37093# point, so we can use a bashism as a fallback.
37094if test "x$ac_cr" = x; then
37095 eval ac_cr=\$\'\\r\'
37096fi
cristy3ed852e2009-09-05 21:47:34 +000037097ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37098if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037099 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037100else
37101 ac_cs_awk_cr=$ac_cr
37102fi
37103
cristyda16f162011-02-19 23:52:17 +000037104echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037105_ACEOF
37106
37107
37108{
37109 echo "cat >conf$$subs.awk <<_ACEOF" &&
37110 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37111 echo "_ACEOF"
37112} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037113 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37114ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037115ac_delim='%!_!# '
37116for ac_last_try in false false false false false :; do
37117 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037118 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037119
37120 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37121 if test $ac_delim_n = $ac_delim_num; then
37122 break
37123 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037124 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037125 else
37126 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37127 fi
37128done
37129rm -f conf$$subs.sh
37130
37131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037132cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037133_ACEOF
37134sed -n '
37135h
37136s/^/S["/; s/!.*/"]=/
37137p
37138g
37139s/^[^!]*!//
37140:repl
37141t repl
37142s/'"$ac_delim"'$//
37143t delim
37144:nl
37145h
cristycd4c5312009-11-22 01:19:08 +000037146s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037147t more1
37148s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37149p
37150n
37151b repl
37152:more1
37153s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37154p
37155g
37156s/.\{148\}//
37157t nl
37158:delim
37159h
cristycd4c5312009-11-22 01:19:08 +000037160s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037161t more2
37162s/["\\]/\\&/g; s/^/"/; s/$/"/
37163p
37164b
37165:more2
37166s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37167p
37168g
37169s/.\{148\}//
37170t delim
37171' <conf$$subs.awk | sed '
37172/^[^""]/{
37173 N
37174 s/\n//
37175}
37176' >>$CONFIG_STATUS || ac_write_fail=1
37177rm -f conf$$subs.awk
37178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37179_ACAWK
cristyda16f162011-02-19 23:52:17 +000037180cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037181 for (key in S) S_is_set[key] = 1
37182 FS = ""
37183
37184}
37185{
37186 line = $ 0
37187 nfields = split(line, field, "@")
37188 substed = 0
37189 len = length(field[1])
37190 for (i = 2; i < nfields; i++) {
37191 key = field[i]
37192 keylen = length(key)
37193 if (S_is_set[key]) {
37194 value = S[key]
37195 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37196 len += length(value) + length(field[++i])
37197 substed = 1
37198 } else
37199 len += 1 + keylen
37200 }
37201
37202 print line
37203}
37204
37205_ACAWK
37206_ACEOF
37207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37208if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37209 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37210else
37211 cat
cristyda16f162011-02-19 23:52:17 +000037212fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037213 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037214_ACEOF
37215
cristy98dddb52010-11-04 00:30:15 +000037216# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37217# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037218# trailing colons and then remove the whole line if VPATH becomes empty
37219# (actually we leave an empty line to preserve line numbers).
37220if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037221 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37222h
37223s///
37224s/^/:/
37225s/[ ]*$/:/
37226s/:\$(srcdir):/:/g
37227s/:\${srcdir}:/:/g
37228s/:@srcdir@:/:/g
37229s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037230s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037231x
37232s/\(=[ ]*\).*/\1/
37233G
37234s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037235s/^[^=]*=[ ]*$//
37236}'
37237fi
37238
37239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37240fi # test -n "$CONFIG_FILES"
37241
37242# Set up the scripts for CONFIG_HEADERS section.
37243# No need to generate them if there are no CONFIG_HEADERS.
37244# This happens for instance with `./config.status Makefile'.
37245if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037246cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037247BEGIN {
37248_ACEOF
37249
37250# Transform confdefs.h into an awk script `defines.awk', embedded as
37251# here-document in config.status, that substitutes the proper values into
37252# config.h.in to produce config.h.
37253
37254# Create a delimiter string that does not exist in confdefs.h, to ease
37255# handling of long lines.
37256ac_delim='%!_!# '
37257for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037258 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37259 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037260 break
37261 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037262 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037263 else
37264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37265 fi
37266done
37267
37268# For the awk script, D is an array of macro values keyed by name,
37269# likewise P contains macro parameters if any. Preserve backslash
37270# newline sequences.
37271
37272ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37273sed -n '
37274s/.\{148\}/&'"$ac_delim"'/g
37275t rset
37276:rset
37277s/^[ ]*#[ ]*define[ ][ ]*/ /
37278t def
37279d
37280:def
37281s/\\$//
37282t bsnl
37283s/["\\]/\\&/g
37284s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37285D["\1"]=" \3"/p
37286s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37287d
37288:bsnl
37289s/["\\]/\\&/g
37290s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37291D["\1"]=" \3\\\\\\n"\\/p
37292t cont
37293s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37294t cont
37295d
37296:cont
37297n
37298s/.\{148\}/&'"$ac_delim"'/g
37299t clear
37300:clear
37301s/\\$//
37302t bsnlc
37303s/["\\]/\\&/g; s/^/"/; s/$/"/p
37304d
37305:bsnlc
37306s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37307b cont
37308' <confdefs.h | sed '
37309s/'"$ac_delim"'/"\\\
37310"/g' >>$CONFIG_STATUS || ac_write_fail=1
37311
37312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37313 for (key in D) D_is_set[key] = 1
37314 FS = ""
37315}
37316/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37317 line = \$ 0
37318 split(line, arg, " ")
37319 if (arg[1] == "#") {
37320 defundef = arg[2]
37321 mac1 = arg[3]
37322 } else {
37323 defundef = substr(arg[1], 2)
37324 mac1 = arg[2]
37325 }
37326 split(mac1, mac2, "(") #)
37327 macro = mac2[1]
37328 prefix = substr(line, 1, index(line, defundef) - 1)
37329 if (D_is_set[macro]) {
37330 # Preserve the white space surrounding the "#".
37331 print prefix "define", macro P[macro] D[macro]
37332 next
37333 } else {
37334 # Replace #undef with comments. This is necessary, for example,
37335 # in the case of _POSIX_SOURCE, which is predefined and required
37336 # on some systems where configure will not decide to define it.
37337 if (defundef == "undef") {
37338 print "/*", prefix defundef, macro, "*/"
37339 next
37340 }
37341 }
37342}
37343{ print }
37344_ACAWK
37345_ACEOF
37346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037347 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037348fi # test -n "$CONFIG_HEADERS"
37349
37350
37351eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37352shift
37353for ac_tag
37354do
37355 case $ac_tag in
37356 :[FHLC]) ac_mode=$ac_tag; continue;;
37357 esac
37358 case $ac_mode$ac_tag in
37359 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037360 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037361 :[FH]-) ac_tag=-:-;;
37362 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37363 esac
37364 ac_save_IFS=$IFS
37365 IFS=:
37366 set x $ac_tag
37367 IFS=$ac_save_IFS
37368 shift
37369 ac_file=$1
37370 shift
37371
37372 case $ac_mode in
37373 :L) ac_source=$1;;
37374 :[FH])
37375 ac_file_inputs=
37376 for ac_f
37377 do
37378 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037379 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037380 *) # Look for the file first in the build tree, then in the source tree
37381 # (if the path is not absolute). The absolute path cannot be DOS-style,
37382 # because $ac_f cannot contain `:'.
37383 test -f "$ac_f" ||
37384 case $ac_f in
37385 [\\/$]*) false;;
37386 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37387 esac ||
cristy98dddb52010-11-04 00:30:15 +000037388 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037389 esac
37390 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037391 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037392 done
37393
37394 # Let's still pretend it is `configure' which instantiates (i.e., don't
37395 # use $as_me), people would be surprised to read:
37396 # /* config.h. Generated by config.status. */
37397 configure_input='Generated from '`
37398 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37399 `' by configure.'
37400 if test x"$ac_file" != x-; then
37401 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037402 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037403$as_echo "$as_me: creating $ac_file" >&6;}
37404 fi
37405 # Neutralize special characters interpreted by sed in replacement strings.
37406 case $configure_input in #(
37407 *\&* | *\|* | *\\* )
37408 ac_sed_conf_input=`$as_echo "$configure_input" |
37409 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37410 *) ac_sed_conf_input=$configure_input;;
37411 esac
37412
37413 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037414 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037415 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037416 esac
37417 ;;
37418 esac
37419
37420 ac_dir=`$as_dirname -- "$ac_file" ||
37421$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37422 X"$ac_file" : 'X\(//\)[^/]' \| \
37423 X"$ac_file" : 'X\(//\)$' \| \
37424 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37425$as_echo X"$ac_file" |
37426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37427 s//\1/
37428 q
37429 }
37430 /^X\(\/\/\)[^/].*/{
37431 s//\1/
37432 q
37433 }
37434 /^X\(\/\/\)$/{
37435 s//\1/
37436 q
37437 }
37438 /^X\(\/\).*/{
37439 s//\1/
37440 q
37441 }
37442 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037443 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037444 ac_builddir=.
37445
37446case "$ac_dir" in
37447.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37448*)
37449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37450 # A ".." for each directory in $ac_dir_suffix.
37451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37452 case $ac_top_builddir_sub in
37453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37455 esac ;;
37456esac
37457ac_abs_top_builddir=$ac_pwd
37458ac_abs_builddir=$ac_pwd$ac_dir_suffix
37459# for backward compatibility:
37460ac_top_builddir=$ac_top_build_prefix
37461
37462case $srcdir in
37463 .) # We are building in place.
37464 ac_srcdir=.
37465 ac_top_srcdir=$ac_top_builddir_sub
37466 ac_abs_top_srcdir=$ac_pwd ;;
37467 [\\/]* | ?:[\\/]* ) # Absolute name.
37468 ac_srcdir=$srcdir$ac_dir_suffix;
37469 ac_top_srcdir=$srcdir
37470 ac_abs_top_srcdir=$srcdir ;;
37471 *) # Relative name.
37472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37473 ac_top_srcdir=$ac_top_build_prefix$srcdir
37474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37475esac
37476ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37477
37478
37479 case $ac_mode in
37480 :F)
37481 #
37482 # CONFIG_FILE
37483 #
37484
37485 case $INSTALL in
37486 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37487 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37488 esac
cristy73bd4a52010-10-05 11:24:23 +000037489 ac_MKDIR_P=$MKDIR_P
37490 case $MKDIR_P in
37491 [\\/$]* | ?:[\\/]* ) ;;
37492 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37493 esac
cristy3ed852e2009-09-05 21:47:34 +000037494_ACEOF
37495
37496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37497# If the template does not know about datarootdir, expand it.
37498# FIXME: This hack should be removed a few years after 2.60.
37499ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037500ac_sed_dataroot='
37501/datarootdir/ {
37502 p
37503 q
37504}
37505/@datadir@/p
37506/@docdir@/p
37507/@infodir@/p
37508/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037509/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037510case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37511*datarootdir*) ac_datarootdir_seen=yes;;
37512*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037514$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37515_ACEOF
37516cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37517 ac_datarootdir_hack='
37518 s&@datadir@&$datadir&g
37519 s&@docdir@&$docdir&g
37520 s&@infodir@&$infodir&g
37521 s&@localedir@&$localedir&g
37522 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037523 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037524esac
37525_ACEOF
37526
37527# Neutralize VPATH when `$srcdir' = `.'.
37528# Shell code in configure.ac might set extrasub.
37529# FIXME: do we really want to maintain this feature?
37530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37531ac_sed_extra="$ac_vpsub
37532$extrasub
37533_ACEOF
37534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37535:t
37536/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37537s|@configure_input@|$ac_sed_conf_input|;t t
37538s&@top_builddir@&$ac_top_builddir_sub&;t t
37539s&@top_build_prefix@&$ac_top_build_prefix&;t t
37540s&@srcdir@&$ac_srcdir&;t t
37541s&@abs_srcdir@&$ac_abs_srcdir&;t t
37542s&@top_srcdir@&$ac_top_srcdir&;t t
37543s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37544s&@builddir@&$ac_builddir&;t t
37545s&@abs_builddir@&$ac_abs_builddir&;t t
37546s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37547s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037548s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037549$ac_datarootdir_hack
37550"
cristyda16f162011-02-19 23:52:17 +000037551eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37552 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037553
37554test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037555 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37556 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37557 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037559which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037560$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037561which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037562
cristyda16f162011-02-19 23:52:17 +000037563 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037564 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037565 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37566 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037567 esac \
cristy98dddb52010-11-04 00:30:15 +000037568 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037569 ;;
37570 :H)
37571 #
37572 # CONFIG_HEADER
37573 #
37574 if test x"$ac_file" != x-; then
37575 {
37576 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037577 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37578 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037579 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037580 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037581 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037582$as_echo "$as_me: $ac_file is unchanged" >&6;}
37583 else
37584 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037585 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037586 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037587 fi
37588 else
37589 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037590 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037591 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037592 fi
cristy73bd4a52010-10-05 11:24:23 +000037593# Compute "$ac_file"'s index in $config_headers.
37594_am_arg="$ac_file"
37595_am_stamp_count=1
37596for _am_header in $config_headers :; do
37597 case $_am_header in
37598 $_am_arg | $_am_arg:* )
37599 break ;;
37600 * )
37601 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37602 esac
37603done
37604echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37605$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37606 X"$_am_arg" : 'X\(//\)[^/]' \| \
37607 X"$_am_arg" : 'X\(//\)$' \| \
37608 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37609$as_echo X"$_am_arg" |
37610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37611 s//\1/
37612 q
37613 }
37614 /^X\(\/\/\)[^/].*/{
37615 s//\1/
37616 q
37617 }
37618 /^X\(\/\/\)$/{
37619 s//\1/
37620 q
37621 }
37622 /^X\(\/\).*/{
37623 s//\1/
37624 q
37625 }
37626 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037627 ;;
37628
cristy8b350f62009-11-15 23:12:43 +000037629 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037630$as_echo "$as_me: executing $ac_file commands" >&6;}
37631 ;;
37632 esac
37633
37634
37635 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037636 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037637ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37638ac_prefix_conf_PKG=`echo MagickCore`
37639ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37640ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37641ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37642if test ".$ac_prefix_conf_INP" = "."; then
37643 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37644 case "$ac_file" in
37645 *.h) ac_prefix_conf_INP=$ac_file ;;
37646 *)
37647 esac
37648 test ".$ac_prefix_conf_INP" != "." && break
37649 done
37650fi
37651if test ".$ac_prefix_conf_INP" = "."; then
37652 case "$ac_prefix_conf_OUT" in
37653 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37654 ;;
37655 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37656 ;;
37657 *) ac_prefix_conf_INP=config.h
37658 ;;
37659 esac
37660fi
37661if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037662 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037663else
37664 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37665 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37666 fi fi
37667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37668$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37669 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037670 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37671 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37672 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37673 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37674 $as_echo "#endif/" >> conftest.prefix
37675 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37676 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37677 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037678 # now executing _script on _DEF input to create _OUT output file
37679 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37680 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37681 echo ' ' >>$tmp/pconfig.h
37682 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37683
37684 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37685 echo ' ' >>$tmp/pconfig.h
37686 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37687 echo "#endif" >>$tmp/pconfig.h
37688 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37689 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37690$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37691 else
37692 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37693$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37694 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37695 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37696 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37697$as_echo X"$ac_prefix_conf_OUT" |
37698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37699 s//\1/
37700 q
37701 }
37702 /^X\(\/\/\)[^/].*/{
37703 s//\1/
37704 q
37705 }
37706 /^X\(\/\/\)$/{
37707 s//\1/
37708 q
37709 }
37710 /^X\(\/\).*/{
37711 s//\1/
37712 q
37713 }
37714 s/.*/./; q'`
37715 as_dir="$ac_dir"; as_fn_mkdir_p
37716 rm -f "$ac_prefix_conf_OUT"
37717 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37718 fi
37719 cp conftest.prefix _configs.sed
37720 else
cristy98dddb52010-11-04 00:30:15 +000037721 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 +000037722 fi
37723 rm -f conftest.*
37724fi
37725 ;;
37726 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037727 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037728 # are listed without --file. Let's play safe and only enable the eval
37729 # if we detect the quoting.
37730 case $CONFIG_FILES in
37731 *\'*) eval set x "$CONFIG_FILES" ;;
37732 *) set x $CONFIG_FILES ;;
37733 esac
37734 shift
37735 for mf
37736 do
37737 # Strip MF so we end up with the name of the file.
37738 mf=`echo "$mf" | sed -e 's/:.*$//'`
37739 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037740 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037741 # some people rename them; so instead we look at the file content.
37742 # Grep'ing the first line is not enough: some people post-process
37743 # each Makefile.in and add a new line on top of each file to say so.
37744 # Grep'ing the whole file is not good either: AIX grep has a line
37745 # limit of 2048, but all sed's we know have understand at least 4000.
37746 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37747 dirpart=`$as_dirname -- "$mf" ||
37748$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37749 X"$mf" : 'X\(//\)[^/]' \| \
37750 X"$mf" : 'X\(//\)$' \| \
37751 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37752$as_echo X"$mf" |
37753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37754 s//\1/
37755 q
37756 }
37757 /^X\(\/\/\)[^/].*/{
37758 s//\1/
37759 q
37760 }
37761 /^X\(\/\/\)$/{
37762 s//\1/
37763 q
37764 }
37765 /^X\(\/\).*/{
37766 s//\1/
37767 q
37768 }
37769 s/.*/./; q'`
37770 else
37771 continue
37772 fi
37773 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037774 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037775 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37776 test -z "$DEPDIR" && continue
37777 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37778 test -z "am__include" && continue
37779 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037780 # Find all dependency output files, they are included files with
37781 # $(DEPDIR) in their names. We invoke sed twice because it is the
37782 # simplest approach to changing $(DEPDIR) to its actual value in the
37783 # expansion.
37784 for file in `sed -n "
37785 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037786 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037787 # Make sure the directory exists.
37788 test -f "$dirpart/$file" && continue
37789 fdir=`$as_dirname -- "$file" ||
37790$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37791 X"$file" : 'X\(//\)[^/]' \| \
37792 X"$file" : 'X\(//\)$' \| \
37793 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37794$as_echo X"$file" |
37795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37796 s//\1/
37797 q
37798 }
37799 /^X\(\/\/\)[^/].*/{
37800 s//\1/
37801 q
37802 }
37803 /^X\(\/\/\)$/{
37804 s//\1/
37805 q
37806 }
37807 /^X\(\/\).*/{
37808 s//\1/
37809 q
37810 }
37811 s/.*/./; q'`
37812 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37813 # echo "creating $dirpart/$file"
37814 echo '# dummy' > "$dirpart/$file"
37815 done
37816 done
37817}
37818 ;;
37819 "libtool":C)
37820
37821 # See if we are running on zsh, and set the options which allow our
37822 # commands through without removal of \ escapes.
37823 if test -n "${ZSH_VERSION+set}" ; then
37824 setopt NO_GLOB_SUBST
37825 fi
37826
37827 cfgfile="${ofile}T"
37828 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37829 $RM "$cfgfile"
37830
37831 cat <<_LT_EOF >> "$cfgfile"
37832#! $SHELL
37833
37834# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37835# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37836# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37837# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37838#
37839# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037840# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37841# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037842# Written by Gordon Matzigkeit, 1996
37843#
37844# This file is part of GNU Libtool.
37845#
37846# GNU Libtool is free software; you can redistribute it and/or
37847# modify it under the terms of the GNU General Public License as
37848# published by the Free Software Foundation; either version 2 of
37849# the License, or (at your option) any later version.
37850#
37851# As a special exception to the GNU General Public License,
37852# if you distribute this file as part of a program or library that
37853# is built using GNU Libtool, you may include this file under the
37854# same distribution terms that you use for the rest of that program.
37855#
37856# GNU Libtool is distributed in the hope that it will be useful,
37857# but WITHOUT ANY WARRANTY; without even the implied warranty of
37858# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37859# GNU General Public License for more details.
37860#
37861# You should have received a copy of the GNU General Public License
37862# along with GNU Libtool; see the file COPYING. If not, a copy
37863# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37864# obtained by writing to the Free Software Foundation, Inc.,
37865# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37866
37867
37868# The names of the tagged configurations supported by this script.
37869available_tags="CXX "
37870
37871# ### BEGIN LIBTOOL CONFIG
37872
37873# A sed program that does not truncate output.
37874SED=$lt_SED
37875
37876# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37877Xsed="\$SED -e 1s/^X//"
37878
37879# A grep program that handles long lines.
37880GREP=$lt_GREP
37881
37882# An ERE matcher.
37883EGREP=$lt_EGREP
37884
37885# A literal string matcher.
37886FGREP=$lt_FGREP
37887
cristy0c60a692010-11-04 01:09:47 +000037888# Shell to use when invoking shell scripts.
37889SHELL=$lt_SHELL
37890
37891# An echo program that protects backslashes.
37892ECHO=$lt_ECHO
37893
cristy73bd4a52010-10-05 11:24:23 +000037894# Which release of libtool.m4 was used?
37895macro_version=$macro_version
37896macro_revision=$macro_revision
37897
37898# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037899AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037900
37901# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037902DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037903
37904# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037905OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037906
37907# Whether or not to build shared libraries.
37908build_libtool_libs=$enable_shared
37909
37910# Whether or not to build static libraries.
37911build_old_libs=$enable_static
37912
37913# What type of objects to build.
37914pic_mode=$pic_mode
37915
37916# Whether or not to optimize for fast installation.
37917fast_install=$enable_fast_install
37918
cristy99bd5232011-12-07 14:38:20 +000037919# The PATH separator for the build system.
37920PATH_SEPARATOR=$lt_PATH_SEPARATOR
37921
cristy73bd4a52010-10-05 11:24:23 +000037922# The host system.
37923host_alias=$host_alias
37924host=$host
37925host_os=$host_os
37926
37927# The build system.
37928build_alias=$build_alias
37929build=$build
37930build_os=$build_os
37931
37932# A BSD- or MS-compatible name lister.
37933NM=$lt_NM
37934
37935# Whether we need soft or hard links.
37936LN_S=$lt_LN_S
37937
37938# What is the maximum length of a command?
37939max_cmd_len=$max_cmd_len
37940
37941# Object file suffix (normally "o").
37942objext=$ac_objext
37943
37944# Executable file suffix (normally "").
37945exeext=$exeext
37946
37947# whether the shell understands "unset".
37948lt_unset=$lt_unset
37949
37950# turn spaces into newlines.
37951SP2NL=$lt_lt_SP2NL
37952
37953# turn newlines into spaces.
37954NL2SP=$lt_lt_NL2SP
37955
cristyda16f162011-02-19 23:52:17 +000037956# convert \$build file names to \$host format.
37957to_host_file_cmd=$lt_cv_to_host_file_cmd
37958
37959# convert \$build files to toolchain format.
37960to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37961
cristy73bd4a52010-10-05 11:24:23 +000037962# Method to check whether dependent libraries are shared objects.
37963deplibs_check_method=$lt_deplibs_check_method
37964
cristyda16f162011-02-19 23:52:17 +000037965# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037966file_magic_cmd=$lt_file_magic_cmd
37967
cristyda16f162011-02-19 23:52:17 +000037968# How to find potential files when deplibs_check_method = "file_magic".
37969file_magic_glob=$lt_file_magic_glob
37970
37971# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37972want_nocaseglob=$lt_want_nocaseglob
37973
37974# Command to associate shared and link libraries.
37975sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37976
cristy73bd4a52010-10-05 11:24:23 +000037977# The archiver.
37978AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037979
37980# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037981AR_FLAGS=$lt_AR_FLAGS
37982
cristyda16f162011-02-19 23:52:17 +000037983# How to feed a file listing to the archiver.
37984archiver_list_spec=$lt_archiver_list_spec
37985
cristy73bd4a52010-10-05 11:24:23 +000037986# A symbol stripping program.
37987STRIP=$lt_STRIP
37988
37989# Commands used to install an old-style archive.
37990RANLIB=$lt_RANLIB
37991old_postinstall_cmds=$lt_old_postinstall_cmds
37992old_postuninstall_cmds=$lt_old_postuninstall_cmds
37993
cristy0c60a692010-11-04 01:09:47 +000037994# Whether to use a lock for old archive extraction.
37995lock_old_archive_extraction=$lock_old_archive_extraction
37996
cristy73bd4a52010-10-05 11:24:23 +000037997# A C compiler.
37998LTCC=$lt_CC
37999
38000# LTCC compiler flags.
38001LTCFLAGS=$lt_CFLAGS
38002
38003# Take the output of nm and produce a listing of raw symbols and C names.
38004global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38005
38006# Transform the output of nm in a proper C declaration.
38007global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38008
38009# Transform the output of nm in a C name address pair.
38010global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38011
38012# Transform the output of nm in a C name address pair when lib prefix is needed.
38013global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38014
cristyda16f162011-02-19 23:52:17 +000038015# Specify filename containing input files for \$NM.
38016nm_file_list_spec=$lt_nm_file_list_spec
38017
38018# The root where to search for dependent libraries,and in which our libraries should be installed.
38019lt_sysroot=$lt_sysroot
38020
cristy73bd4a52010-10-05 11:24:23 +000038021# The name of the directory that contains temporary libtool files.
38022objdir=$objdir
38023
cristy73bd4a52010-10-05 11:24:23 +000038024# Used to examine libraries when file_magic_cmd begins with "file".
38025MAGIC_CMD=$MAGIC_CMD
38026
38027# Must we lock files when doing compilation?
38028need_locks=$lt_need_locks
38029
cristyda16f162011-02-19 23:52:17 +000038030# Manifest tool.
38031MANIFEST_TOOL=$lt_MANIFEST_TOOL
38032
cristy73bd4a52010-10-05 11:24:23 +000038033# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38034DSYMUTIL=$lt_DSYMUTIL
38035
38036# Tool to change global to local symbols on Mac OS X.
38037NMEDIT=$lt_NMEDIT
38038
38039# Tool to manipulate fat objects and archives on Mac OS X.
38040LIPO=$lt_LIPO
38041
38042# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38043OTOOL=$lt_OTOOL
38044
38045# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38046OTOOL64=$lt_OTOOL64
38047
38048# Old archive suffix (normally "a").
38049libext=$libext
38050
38051# Shared library suffix (normally ".so").
38052shrext_cmds=$lt_shrext_cmds
38053
38054# The commands to extract the exported symbol list from a shared archive.
38055extract_expsyms_cmds=$lt_extract_expsyms_cmds
38056
38057# Variables whose values should be saved in libtool wrapper scripts and
38058# restored at link time.
38059variables_saved_for_relink=$lt_variables_saved_for_relink
38060
38061# Do we need the "lib" prefix for modules?
38062need_lib_prefix=$need_lib_prefix
38063
38064# Do we need a version for libraries?
38065need_version=$need_version
38066
38067# Library versioning type.
38068version_type=$version_type
38069
38070# Shared library runtime path variable.
38071runpath_var=$runpath_var
38072
38073# Shared library path variable.
38074shlibpath_var=$shlibpath_var
38075
38076# Is shlibpath searched before the hard-coded library search path?
38077shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38078
38079# Format of library name prefix.
38080libname_spec=$lt_libname_spec
38081
38082# List of archive names. First name is the real one, the rest are links.
38083# The last name is the one that the linker finds with -lNAME
38084library_names_spec=$lt_library_names_spec
38085
38086# The coded name of the library, if different from the real name.
38087soname_spec=$lt_soname_spec
38088
cristy0c60a692010-11-04 01:09:47 +000038089# Permission mode override for installation of shared libraries.
38090install_override_mode=$lt_install_override_mode
38091
cristy73bd4a52010-10-05 11:24:23 +000038092# Command to use after installation of a shared archive.
38093postinstall_cmds=$lt_postinstall_cmds
38094
38095# Command to use after uninstallation of a shared archive.
38096postuninstall_cmds=$lt_postuninstall_cmds
38097
38098# Commands used to finish a libtool library installation in a directory.
38099finish_cmds=$lt_finish_cmds
38100
38101# As "finish_cmds", except a single script fragment to be evaled but
38102# not shown.
38103finish_eval=$lt_finish_eval
38104
38105# Whether we should hardcode library paths into libraries.
38106hardcode_into_libs=$hardcode_into_libs
38107
38108# Compile-time system search path for libraries.
38109sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38110
38111# Run-time system search path for libraries.
38112sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38113
38114# Whether dlopen is supported.
38115dlopen_support=$enable_dlopen
38116
38117# Whether dlopen of programs is supported.
38118dlopen_self=$enable_dlopen_self
38119
38120# Whether dlopen of statically linked programs is supported.
38121dlopen_self_static=$enable_dlopen_self_static
38122
38123# Commands to strip libraries.
38124old_striplib=$lt_old_striplib
38125striplib=$lt_striplib
38126
38127
38128# The linker used to build libraries.
38129LD=$lt_LD
38130
cristy0c60a692010-11-04 01:09:47 +000038131# How to create reloadable object files.
38132reload_flag=$lt_reload_flag
38133reload_cmds=$lt_reload_cmds
38134
cristy73bd4a52010-10-05 11:24:23 +000038135# Commands used to build an old-style archive.
38136old_archive_cmds=$lt_old_archive_cmds
38137
38138# A language specific compiler.
38139CC=$lt_compiler
38140
38141# Is the compiler the GNU compiler?
38142with_gcc=$GCC
38143
38144# Compiler flag to turn off builtin functions.
38145no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38146
cristy73bd4a52010-10-05 11:24:23 +000038147# Additional compiler flags for building library objects.
38148pic_flag=$lt_lt_prog_compiler_pic
38149
cristyda16f162011-02-19 23:52:17 +000038150# How to pass a linker flag through the compiler.
38151wl=$lt_lt_prog_compiler_wl
38152
cristy73bd4a52010-10-05 11:24:23 +000038153# Compiler flag to prevent dynamic linking.
38154link_static_flag=$lt_lt_prog_compiler_static
38155
38156# Does compiler simultaneously support -c and -o options?
38157compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38158
38159# Whether or not to add -lc for building shared libraries.
38160build_libtool_need_lc=$archive_cmds_need_lc
38161
38162# Whether or not to disallow shared libs when runtime libs are static.
38163allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38164
38165# Compiler flag to allow reflexive dlopens.
38166export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38167
38168# Compiler flag to generate shared objects directly from archives.
38169whole_archive_flag_spec=$lt_whole_archive_flag_spec
38170
38171# Whether the compiler copes with passing no objects directly.
38172compiler_needs_object=$lt_compiler_needs_object
38173
38174# Create an old-style archive from a shared archive.
38175old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38176
38177# Create a temporary old-style archive to link instead of a shared archive.
38178old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38179
38180# Commands used to build a shared archive.
38181archive_cmds=$lt_archive_cmds
38182archive_expsym_cmds=$lt_archive_expsym_cmds
38183
38184# Commands used to build a loadable module if different from building
38185# a shared archive.
38186module_cmds=$lt_module_cmds
38187module_expsym_cmds=$lt_module_expsym_cmds
38188
38189# Whether we are building with GNU ld or not.
38190with_gnu_ld=$lt_with_gnu_ld
38191
38192# Flag that allows shared libraries with undefined symbols to be built.
38193allow_undefined_flag=$lt_allow_undefined_flag
38194
38195# Flag that enforces no undefined symbols.
38196no_undefined_flag=$lt_no_undefined_flag
38197
38198# Flag to hardcode \$libdir into a binary during linking.
38199# This must work even if \$libdir does not exist
38200hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38201
cristy73bd4a52010-10-05 11:24:23 +000038202# Whether we need a single "-rpath" flag with a separated argument.
38203hardcode_libdir_separator=$lt_hardcode_libdir_separator
38204
38205# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38206# DIR into the resulting binary.
38207hardcode_direct=$hardcode_direct
38208
38209# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38210# DIR into the resulting binary and the resulting library dependency is
38211# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38212# library is relocated.
38213hardcode_direct_absolute=$hardcode_direct_absolute
38214
38215# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38216# into the resulting binary.
38217hardcode_minus_L=$hardcode_minus_L
38218
38219# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38220# into the resulting binary.
38221hardcode_shlibpath_var=$hardcode_shlibpath_var
38222
38223# Set to "yes" if building a shared library automatically hardcodes DIR
38224# into the library and all subsequent libraries and executables linked
38225# against it.
38226hardcode_automatic=$hardcode_automatic
38227
38228# Set to yes if linker adds runtime paths of dependent libraries
38229# to runtime path list.
38230inherit_rpath=$inherit_rpath
38231
38232# Whether libtool must link a program against all its dependency libraries.
38233link_all_deplibs=$link_all_deplibs
38234
cristy73bd4a52010-10-05 11:24:23 +000038235# Set to "yes" if exported symbols are required.
38236always_export_symbols=$always_export_symbols
38237
38238# The commands to list exported symbols.
38239export_symbols_cmds=$lt_export_symbols_cmds
38240
38241# Symbols that should not be listed in the preloaded symbols.
38242exclude_expsyms=$lt_exclude_expsyms
38243
38244# Symbols that must always be exported.
38245include_expsyms=$lt_include_expsyms
38246
38247# Commands necessary for linking programs (against libraries) with templates.
38248prelink_cmds=$lt_prelink_cmds
38249
cristyda16f162011-02-19 23:52:17 +000038250# Commands necessary for finishing linking programs.
38251postlink_cmds=$lt_postlink_cmds
38252
cristy73bd4a52010-10-05 11:24:23 +000038253# Specify filename containing input files.
38254file_list_spec=$lt_file_list_spec
38255
38256# How to hardcode a shared library path into an executable.
38257hardcode_action=$hardcode_action
38258
38259# The directories searched by this compiler when creating a shared library.
38260compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38261
38262# Dependencies to place before and after the objects being linked to
38263# create a shared library.
38264predep_objects=$lt_predep_objects
38265postdep_objects=$lt_postdep_objects
38266predeps=$lt_predeps
38267postdeps=$lt_postdeps
38268
38269# The library search path used internally by the compiler when linking
38270# a shared library.
38271compiler_lib_search_path=$lt_compiler_lib_search_path
38272
38273# ### END LIBTOOL CONFIG
38274
38275_LT_EOF
38276
38277 case $host_os in
38278 aix3*)
38279 cat <<\_LT_EOF >> "$cfgfile"
38280# AIX sometimes has problems with the GCC collect2 program. For some
38281# reason, if we set the COLLECT_NAMES environment variable, the problems
38282# vanish in a puff of smoke.
38283if test "X${COLLECT_NAMES+set}" != Xset; then
38284 COLLECT_NAMES=
38285 export COLLECT_NAMES
38286fi
38287_LT_EOF
38288 ;;
38289 esac
38290
38291
38292ltmain="$ac_aux_dir/ltmain.sh"
38293
38294
38295 # We use sed instead of cat because bash on DJGPP gets confused if
38296 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38297 # text mode, it properly converts lines to CR/LF. This bash problem
38298 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038299 sed '$q' "$ltmain" >> "$cfgfile" \
38300 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038301
cristyda16f162011-02-19 23:52:17 +000038302 if test x"$xsi_shell" = xyes; then
38303 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38304func_dirname ()\
38305{\
38306\ case ${1} in\
38307\ */*) func_dirname_result="${1%/*}${2}" ;;\
38308\ * ) func_dirname_result="${3}" ;;\
38309\ esac\
38310} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38311 && mv -f "$cfgfile.tmp" "$cfgfile" \
38312 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38313test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038314
38315
cristyda16f162011-02-19 23:52:17 +000038316 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38317func_basename ()\
38318{\
38319\ func_basename_result="${1##*/}"\
38320} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38321 && mv -f "$cfgfile.tmp" "$cfgfile" \
38322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38323test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038324
38325
cristyda16f162011-02-19 23:52:17 +000038326 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38327func_dirname_and_basename ()\
38328{\
38329\ case ${1} in\
38330\ */*) func_dirname_result="${1%/*}${2}" ;;\
38331\ * ) func_dirname_result="${3}" ;;\
38332\ esac\
38333\ func_basename_result="${1##*/}"\
38334} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38335 && mv -f "$cfgfile.tmp" "$cfgfile" \
38336 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38337test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038338
cristyda16f162011-02-19 23:52:17 +000038339
38340 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38341func_stripname ()\
38342{\
38343\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38344\ # positional parameters, so assign one to ordinary parameter first.\
38345\ func_stripname_result=${3}\
38346\ func_stripname_result=${func_stripname_result#"${1}"}\
38347\ func_stripname_result=${func_stripname_result%"${2}"}\
38348} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38349 && mv -f "$cfgfile.tmp" "$cfgfile" \
38350 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38351test 0 -eq $? || _lt_function_replace_fail=:
38352
38353
38354 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38355func_split_long_opt ()\
38356{\
38357\ func_split_long_opt_name=${1%%=*}\
38358\ func_split_long_opt_arg=${1#*=}\
38359} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38360 && mv -f "$cfgfile.tmp" "$cfgfile" \
38361 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38362test 0 -eq $? || _lt_function_replace_fail=:
38363
38364
38365 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38366func_split_short_opt ()\
38367{\
38368\ func_split_short_opt_arg=${1#??}\
38369\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38370} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38371 && mv -f "$cfgfile.tmp" "$cfgfile" \
38372 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38373test 0 -eq $? || _lt_function_replace_fail=:
38374
38375
38376 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38377func_lo2o ()\
38378{\
38379\ case ${1} in\
38380\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38381\ *) func_lo2o_result=${1} ;;\
38382\ esac\
38383} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38384 && mv -f "$cfgfile.tmp" "$cfgfile" \
38385 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38386test 0 -eq $? || _lt_function_replace_fail=:
38387
38388
38389 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38390func_xform ()\
38391{\
38392 func_xform_result=${1%.*}.lo\
38393} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38394 && mv -f "$cfgfile.tmp" "$cfgfile" \
38395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38396test 0 -eq $? || _lt_function_replace_fail=:
38397
38398
38399 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38400func_arith ()\
38401{\
38402 func_arith_result=$(( $* ))\
38403} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38404 && mv -f "$cfgfile.tmp" "$cfgfile" \
38405 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38406test 0 -eq $? || _lt_function_replace_fail=:
38407
38408
38409 sed -e '/^func_len ()$/,/^} # func_len /c\
38410func_len ()\
38411{\
38412 func_len_result=${#1}\
38413} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38414 && mv -f "$cfgfile.tmp" "$cfgfile" \
38415 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38416test 0 -eq $? || _lt_function_replace_fail=:
38417
38418fi
38419
38420if test x"$lt_shell_append" = xyes; then
38421 sed -e '/^func_append ()$/,/^} # func_append /c\
38422func_append ()\
38423{\
38424 eval "${1}+=\\${2}"\
38425} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38426 && mv -f "$cfgfile.tmp" "$cfgfile" \
38427 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38428test 0 -eq $? || _lt_function_replace_fail=:
38429
38430
38431 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38432func_append_quoted ()\
38433{\
38434\ func_quote_for_eval "${2}"\
38435\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38436} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38437 && mv -f "$cfgfile.tmp" "$cfgfile" \
38438 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38439test 0 -eq $? || _lt_function_replace_fail=:
38440
38441
38442 # Save a `func_append' function call where possible by direct use of '+='
38443 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38444 && mv -f "$cfgfile.tmp" "$cfgfile" \
38445 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38446 test 0 -eq $? || _lt_function_replace_fail=:
38447else
38448 # Save a `func_append' function call even when '+=' is not available
38449 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38450 && mv -f "$cfgfile.tmp" "$cfgfile" \
38451 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38452 test 0 -eq $? || _lt_function_replace_fail=:
38453fi
38454
38455if test x"$_lt_function_replace_fail" = x":"; then
38456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38457$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38458fi
38459
38460
38461 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38463 chmod +x "$ofile"
38464
38465
38466 cat <<_LT_EOF >> "$ofile"
38467
38468# ### BEGIN LIBTOOL TAG CONFIG: CXX
38469
38470# The linker used to build libraries.
38471LD=$lt_LD_CXX
38472
cristy0c60a692010-11-04 01:09:47 +000038473# How to create reloadable object files.
38474reload_flag=$lt_reload_flag_CXX
38475reload_cmds=$lt_reload_cmds_CXX
38476
cristy73bd4a52010-10-05 11:24:23 +000038477# Commands used to build an old-style archive.
38478old_archive_cmds=$lt_old_archive_cmds_CXX
38479
38480# A language specific compiler.
38481CC=$lt_compiler_CXX
38482
38483# Is the compiler the GNU compiler?
38484with_gcc=$GCC_CXX
38485
38486# Compiler flag to turn off builtin functions.
38487no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38488
cristy73bd4a52010-10-05 11:24:23 +000038489# Additional compiler flags for building library objects.
38490pic_flag=$lt_lt_prog_compiler_pic_CXX
38491
cristyda16f162011-02-19 23:52:17 +000038492# How to pass a linker flag through the compiler.
38493wl=$lt_lt_prog_compiler_wl_CXX
38494
cristy73bd4a52010-10-05 11:24:23 +000038495# Compiler flag to prevent dynamic linking.
38496link_static_flag=$lt_lt_prog_compiler_static_CXX
38497
38498# Does compiler simultaneously support -c and -o options?
38499compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38500
38501# Whether or not to add -lc for building shared libraries.
38502build_libtool_need_lc=$archive_cmds_need_lc_CXX
38503
38504# Whether or not to disallow shared libs when runtime libs are static.
38505allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38506
38507# Compiler flag to allow reflexive dlopens.
38508export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38509
38510# Compiler flag to generate shared objects directly from archives.
38511whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38512
38513# Whether the compiler copes with passing no objects directly.
38514compiler_needs_object=$lt_compiler_needs_object_CXX
38515
38516# Create an old-style archive from a shared archive.
38517old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38518
38519# Create a temporary old-style archive to link instead of a shared archive.
38520old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38521
38522# Commands used to build a shared archive.
38523archive_cmds=$lt_archive_cmds_CXX
38524archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38525
38526# Commands used to build a loadable module if different from building
38527# a shared archive.
38528module_cmds=$lt_module_cmds_CXX
38529module_expsym_cmds=$lt_module_expsym_cmds_CXX
38530
38531# Whether we are building with GNU ld or not.
38532with_gnu_ld=$lt_with_gnu_ld_CXX
38533
38534# Flag that allows shared libraries with undefined symbols to be built.
38535allow_undefined_flag=$lt_allow_undefined_flag_CXX
38536
38537# Flag that enforces no undefined symbols.
38538no_undefined_flag=$lt_no_undefined_flag_CXX
38539
38540# Flag to hardcode \$libdir into a binary during linking.
38541# This must work even if \$libdir does not exist
38542hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38543
cristy73bd4a52010-10-05 11:24:23 +000038544# Whether we need a single "-rpath" flag with a separated argument.
38545hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38546
38547# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38548# DIR into the resulting binary.
38549hardcode_direct=$hardcode_direct_CXX
38550
38551# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38552# DIR into the resulting binary and the resulting library dependency is
38553# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38554# library is relocated.
38555hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38556
38557# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38558# into the resulting binary.
38559hardcode_minus_L=$hardcode_minus_L_CXX
38560
38561# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38562# into the resulting binary.
38563hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38564
38565# Set to "yes" if building a shared library automatically hardcodes DIR
38566# into the library and all subsequent libraries and executables linked
38567# against it.
38568hardcode_automatic=$hardcode_automatic_CXX
38569
38570# Set to yes if linker adds runtime paths of dependent libraries
38571# to runtime path list.
38572inherit_rpath=$inherit_rpath_CXX
38573
38574# Whether libtool must link a program against all its dependency libraries.
38575link_all_deplibs=$link_all_deplibs_CXX
38576
cristy73bd4a52010-10-05 11:24:23 +000038577# Set to "yes" if exported symbols are required.
38578always_export_symbols=$always_export_symbols_CXX
38579
38580# The commands to list exported symbols.
38581export_symbols_cmds=$lt_export_symbols_cmds_CXX
38582
38583# Symbols that should not be listed in the preloaded symbols.
38584exclude_expsyms=$lt_exclude_expsyms_CXX
38585
38586# Symbols that must always be exported.
38587include_expsyms=$lt_include_expsyms_CXX
38588
38589# Commands necessary for linking programs (against libraries) with templates.
38590prelink_cmds=$lt_prelink_cmds_CXX
38591
cristyda16f162011-02-19 23:52:17 +000038592# Commands necessary for finishing linking programs.
38593postlink_cmds=$lt_postlink_cmds_CXX
38594
cristy73bd4a52010-10-05 11:24:23 +000038595# Specify filename containing input files.
38596file_list_spec=$lt_file_list_spec_CXX
38597
38598# How to hardcode a shared library path into an executable.
38599hardcode_action=$hardcode_action_CXX
38600
38601# The directories searched by this compiler when creating a shared library.
38602compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38603
38604# Dependencies to place before and after the objects being linked to
38605# create a shared library.
38606predep_objects=$lt_predep_objects_CXX
38607postdep_objects=$lt_postdep_objects_CXX
38608predeps=$lt_predeps_CXX
38609postdeps=$lt_postdeps_CXX
38610
38611# The library search path used internally by the compiler when linking
38612# a shared library.
38613compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38614
38615# ### END LIBTOOL TAG CONFIG: CXX
38616_LT_EOF
38617
38618 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038619 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038620 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038621 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038622 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38623 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38624
38625 esac
38626done # for ac_tag
38627
38628
cristy8b350f62009-11-15 23:12:43 +000038629as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038630_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038631ac_clean_files=$ac_clean_files_save
38632
38633test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038634 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038635
38636
38637# configure is writing to config.log, and then calls config.status.
38638# config.status does its own redirection, appending to config.log.
38639# Unfortunately, on DOS this fails, as config.log is still kept open
38640# by configure, so config.status won't be able to write to it; its
38641# output is simply discarded. So we exec the FD to /dev/null,
38642# effectively closing config.log, so it can be properly (re)opened and
38643# appended to by config.status. When coming back to configure, we
38644# need to make the FD available again.
38645if test "$no_create" != yes; then
38646 ac_cs_success=:
38647 ac_config_status_args=
38648 test "$silent" = yes &&
38649 ac_config_status_args="$ac_config_status_args --quiet"
38650 exec 5>/dev/null
38651 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38652 exec 5>>config.log
38653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38654 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038655 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038656fi
38657if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038659$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38660fi
38661
38662
38663rm -f magick-version
38664
cristy430a7312010-01-21 20:44:04 +000038665result_dejavu_font_dir='none'
38666if test "${dejavu_font_dir}x" != 'x'; then
38667 result_dejavu_font_dir=$dejavu_font_dir
38668fi
38669
cristy3ed852e2009-09-05 21:47:34 +000038670result_ghostscript_font_dir='none'
38671if test "${ghostscript_font_dir}x" != 'x'; then
38672 result_ghostscript_font_dir=$ghostscript_font_dir
38673fi
38674
38675result_windows_font_dir='none'
38676if test "${windows_font_dir}x" != 'x'; then
38677 result_windows_font_dir=${windows_font_dir}
38678fi
38679
cristyad38abe2012-12-23 23:03:21 +000038680{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038681ImageMagick is configured as follows. Please verify that this configuration
38682matches your expectations.
38683
38684Host system type: $host
38685Build system type: $build
38686
38687 Option Value
38688-------------------------------------------------------------------------------
38689Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38690Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038691Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038692GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38693Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38694High Dynamic Range Imagery
38695 --enable-hdri=$enable_hdri $enable_hdri
38696
38697Delegate Configuration:
38698BZLIB --with-bzlib=$with_bzlib $have_bzlib
38699Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038700Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038701DJVU --with-djvu=$with_djvu $have_djvu
38702DPS --with-dps=$with_dps $have_dps
38703FFTW --with-fftw=$with_fftw $have_fftw
38704FlashPIX --with-fpx=$with_fpx $have_fpx
38705FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38706FreeType --with-freetype=$with_freetype $have_freetype
38707GhostPCL None $PCLDelegate ($PCLVersion)
38708GhostXPS None $XPSDelegate ($XPSVersion)
38709Ghostscript None $PSDelegate ($GSVersion)
38710Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38711Ghostscript lib --with-gslib=$with_gslib $have_gslib
38712Graphviz --with-gvc=$with_gvc $have_gvc
38713JBIG --with-jbig=$with_jbig $have_jbig
38714JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38715JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038716LCMS v1 --with-lcms=$with_lcms $have_lcms
38717LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038718LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038719LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038720LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038721Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38722OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038723PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038724PERL --with-perl=$with_perl $have_perl
38725PNG --with-png=$with_png $have_png
38726RSVG --with-rsvg=$with_rsvg $have_rsvg
38727TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038728WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038729Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038730WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038731X11 --with-x=$with_x $have_x
38732XML --with-xml=$with_xml $have_xml
38733ZLIB --with-zlib=$with_zlib $have_zlib
38734
38735X11 Configuration:
38736 X_CFLAGS = $X_CFLAGS
38737 X_PRE_LIBS = $X_PRE_LIBS
38738 X_LIBS = $X_LIBS
38739 X_EXTRA_LIBS = $X_EXTRA_LIBS
38740
38741Options used to compile and link:
38742 PREFIX = $PREFIX_DIR
38743 EXEC-PREFIX = $EXEC_PREFIX_DIR
38744 VERSION = $PACKAGE_VERSION
38745 CC = $CC
38746 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038747 CPPFLAGS = $MAGICK_CPPFLAGS
38748 PCFLAGS = $MAGICK_PCFLAGS
38749 DEFS = $DEFS
38750 LDFLAGS = $LDFLAGS
38751 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38752 LIBS = $MAGICK_LIBS
38753 CXX = $CXX
38754 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038755 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038756 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038757" >&5
cristyad38abe2012-12-23 23:03:21 +000038758$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038759ImageMagick is configured as follows. Please verify that this configuration
38760matches your expectations.
38761
38762Host system type: $host
38763Build system type: $build
38764
38765 Option Value
38766-------------------------------------------------------------------------------
38767Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38768Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038769Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038770GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38771Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38772High Dynamic Range Imagery
38773 --enable-hdri=$enable_hdri $enable_hdri
38774
38775Delegate Configuration:
38776BZLIB --with-bzlib=$with_bzlib $have_bzlib
38777Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038778Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038779DJVU --with-djvu=$with_djvu $have_djvu
38780DPS --with-dps=$with_dps $have_dps
38781FFTW --with-fftw=$with_fftw $have_fftw
38782FlashPIX --with-fpx=$with_fpx $have_fpx
38783FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38784FreeType --with-freetype=$with_freetype $have_freetype
38785GhostPCL None $PCLDelegate ($PCLVersion)
38786GhostXPS None $XPSDelegate ($XPSVersion)
38787Ghostscript None $PSDelegate ($GSVersion)
38788Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38789Ghostscript lib --with-gslib=$with_gslib $have_gslib
38790Graphviz --with-gvc=$with_gvc $have_gvc
38791JBIG --with-jbig=$with_jbig $have_jbig
38792JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38793JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038794LCMS v1 --with-lcms=$with_lcms $have_lcms
38795LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038796LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038797LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038798LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038799Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38800OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038801PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038802PERL --with-perl=$with_perl $have_perl
38803PNG --with-png=$with_png $have_png
38804RSVG --with-rsvg=$with_rsvg $have_rsvg
38805TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038806WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038807Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038808WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038809X11 --with-x=$with_x $have_x
38810XML --with-xml=$with_xml $have_xml
38811ZLIB --with-zlib=$with_zlib $have_zlib
38812
38813X11 Configuration:
38814 X_CFLAGS = $X_CFLAGS
38815 X_PRE_LIBS = $X_PRE_LIBS
38816 X_LIBS = $X_LIBS
38817 X_EXTRA_LIBS = $X_EXTRA_LIBS
38818
38819Options used to compile and link:
38820 PREFIX = $PREFIX_DIR
38821 EXEC-PREFIX = $EXEC_PREFIX_DIR
38822 VERSION = $PACKAGE_VERSION
38823 CC = $CC
38824 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038825 CPPFLAGS = $MAGICK_CPPFLAGS
38826 PCFLAGS = $MAGICK_PCFLAGS
38827 DEFS = $DEFS
38828 LDFLAGS = $LDFLAGS
38829 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38830 LIBS = $MAGICK_LIBS
38831 CXX = $CXX
38832 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038833 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038834 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038835" >&6; }