blob: 0c52ea31a1654c37d1da30dc37d7efcbd4b92d31 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000695UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000697SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000699RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700RMDelegate
701RLEEncodeDelegate
702PSDelegate
703POVDelegate
704PGPDecodeDelegate
705PCLDelegate
706MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000707MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708MPEGEncodeDelegate
709MPEGDecodeDelegate
710MANDelegate
711LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000712LPRDelegate
713LPDelegate
714ILBMEncodeDelegate
715ILBMDecodeDelegate
716HTMLDecodeDelegate
717HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718GnuplotDecodeDelegate
719MogrifyDelegate
720DisplayDelegate
721ConvertDelegate
722FIGDecodeDelegate
723EditorDelegate
724EchoDelegate
725DVIDecodeDelegate
726GVCDecodeDelegate
727DNGDecodeDelegate
728CatDelegate
729CGMDecodeDelegate
730BrowseDelegate
731BZIPDelegate
732BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000733AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000734SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000735SHAREARCH_RELATIVE_PATH
736SHAREARCH_DIRNAME
737SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000738SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000739CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000740DOCUMENTATION_PATH
741FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000742FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000743CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744CODER_DIRNAME
745MODULES_PATH
746MODULES_RELATIVE_PATH
747MODULES_DIRNAME
748MODULES_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000749LIBRARY_PATH
750EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000751INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000752INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000753PERLMAINCC
754XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000755XML_DELEGATE_FALSE
756XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000757xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000758WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000759WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000760WMF_DELEGATE_FALSE
761WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000762WEBP_LIBS
763WEBP_DELEGATE_FALSE
764WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766TIFF_DELEGATE_FALSE
767TIFF_DELEGATE_TRUE
768CAIRO_DELEGATE_FALSE
769CAIRO_DELEGATE_TRUE
770RSVG_DELEGATE_FALSE
771RSVG_DELEGATE_TRUE
772CAIRO_SVG_LIBS
773CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000774RSVG_LIBS
775RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000776PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777PNG_DELEGATE_FALSE
778PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000779PANGOCAIRO_DELEGATE_FALSE
780PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000781PANGO_DELEGATE_FALSE
782PANGO_DELEGATE_TRUE
783PANGO_LIBS
784PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000785OPENEXR_DELEGATE_FALSE
786OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787OPENEXR_LIBS
788OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000789LZMA_DELEGATE_FALSE
790LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000791LZMA_LIBS
792LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000793LQR_DELEGATE_FALSE
794LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795LQR_LIBS
796LQR_CFLAGS
797LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798LCMS_DELEGATE_FALSE
799LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801JP2_DELEGATE_FALSE
802JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804JPEG_DELEGATE_FALSE
805JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807JBIG_DELEGATE_FALSE
808JBIG_DELEGATE_TRUE
809GVC_DELEGATE_FALSE
810GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000811GVC_LIBS
812GVC_CFLAGS
813GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814GS_DELEGATE_FALSE
815GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000816FREETYPE_DELEGATE_FALSE
817FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000818FREETYPE_LIBS
819FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000820FONTCONFIG_DELEGATE_FALSE
821FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000822FONTCONFIG_LIBS
823FONTCONFIG_CFLAGS
824FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825FPX_DELEGATE_FALSE
826FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000827FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828FFTW_DELEGATE_FALSE
829FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831DJVU_DELEGATE_FALSE
832DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834DPS_DELEGATE_FALSE
835DPS_DELEGATE_TRUE
836AUTOTRACE_DELEGATE_FALSE
837AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000838AUTOTRACE_LIBS
839AUTOTRACE_CFLAGS
840LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000841WITH_LTDL_FALSE
842WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844ZLIB_DELEGATE_FALSE
845ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846XEXT_LIBS
847X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000848X11_DELEGATE_FALSE
849X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000850X_EXTRA_LIBS
851X_LIBS
852X_PRE_LIBS
853X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000854XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000855BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000856BZLIB_DELEGATE_FALSE
857BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000858CCMALLOCDelegate
859UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000860HasUMEM_FALSE
861HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862THREAD_LIBS
863GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000864WITH_MAGICK_PLUS_PLUS_FALSE
865WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000866OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000867MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000868POW_LIB
869LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000870UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000871UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000872UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000873UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000874UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000875UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000876INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000877INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000878UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000879UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000880INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000881INT32_T
882UINT16_T
883INT16_T
884UINT8_T
885INT8_T
886LIBRARY_EXTRA_CPPFLAGS
887MODULE_EXTRA_CPPFLAGS
888LIBSTDCLDFLAGS
889PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000890MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000891MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000892QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000893LEGACY_SUPPORT_FALSE
894LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000895MAINT
896MAINTAINER_MODE_FALSE
897MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000898MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000899WITH_MODULES_FALSE
900WITH_MODULES_TRUE
901WITH_SHARED_LIBS_FALSE
902WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000903LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000904CXXCPP
905OTOOL64
906OTOOL
907LIPO
908NMEDIT
909DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000910MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000911RANLIB
cristyda16f162011-02-19 23:52:17 +0000912ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000913AR
914NM
915ac_ct_DUMPBIN
916DUMPBIN
917LIBTOOL
918OBJDUMP
919DLLTOOL
920AS
cristy3ed852e2009-09-05 21:47:34 +0000921LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000922CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000923CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000924OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000925PTHREAD_CFLAGS
926PTHREAD_LIBS
927PTHREAD_CC
928ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000929SHAREARCH_DIR
930INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000931WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000932USING_CL_FALSE
933USING_CL_TRUE
934CYGWIN_BUILD_FALSE
935CYGWIN_BUILD_TRUE
936WIN32_NATIVE_BUILD_FALSE
937WIN32_NATIVE_BUILD_TRUE
938WINGDI32_DELEGATE_FALSE
939WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000940GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000941HAVE_LD_VERSION_SCRIPT_FALSE
942HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000943PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000944PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000945LN_S
cristy3ed852e2009-09-05 21:47:34 +0000946LD
cristy73bd4a52010-10-05 11:24:23 +0000947FGREP
948SED
949am__fastdepCXX_FALSE
950am__fastdepCXX_TRUE
951CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000952ac_ct_CXX
953CXXFLAGS
954CXX
cristya0b81c32010-01-22 02:54:33 +0000955EGREP
956GREP
957CPP
cristy73bd4a52010-10-05 11:24:23 +0000958am__fastdepCC_FALSE
959am__fastdepCC_TRUE
960CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000961am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000962AMDEPBACKSLASH
963AMDEP_FALSE
964AMDEP_TRUE
965am__quote
966am__include
967DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000968OBJEXT
969EXEEXT
970ac_ct_CC
971CPPFLAGS
972LDFLAGS
973CFLAGS
974CC
975DIRSEP
976MAGICK_FILTER_MODULE_PATH
977MAGICK_CONFIGURE_BUILD_PATH
978MAGICK_CONFIGURE_SRC_PATH
979MAGICK_CODER_MODULE_PATH
980MAN_DIR
981INFO_DIR
982PERSISTINCLUDE_DIR
983INCLUDE_DIR
984LIB_DIR
985LOCALSTATE_DIR
986SHAREDSTATE_DIR
987SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000988DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000989DATA_DIR
990LIBEXEC_DIR
991SBIN_DIR
992BIN_DIR
993EXEC_PREFIX_DIR
994PREFIX_DIR
995CONFIG_STATUS_DEPENDENCIES
996MAGICK_LIB_VERSION_NUMBER
997MAGICK_LIB_VERSION_TEXT
998MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000999AM_BACKSLASH
1000AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001001AM_DEFAULT_V
1002AM_V
cristy73bd4a52010-10-05 11:24:23 +00001003am__untar
1004am__tar
1005AMTAR
1006am__leading_dot
1007SET_MAKE
1008AWK
1009mkdir_p
1010MKDIR_P
1011INSTALL_STRIP_PROGRAM
1012STRIP
1013install_sh
1014MAKEINFO
1015AUTOHEADER
1016AUTOMAKE
1017AUTOCONF
1018ACLOCAL
1019VERSION
1020PACKAGE
1021CYGPATH_W
1022am__isrc
1023INSTALL_DATA
1024INSTALL_SCRIPT
1025INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001026PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001027PACKAGE_RELEASE_DATE
1028PACKAGE_LIB_VERSION_NUMBER
1029PACKAGE_LIB_VERSION
1030PACKAGE_CHANGE_DATE
1031PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001032PACKAGE_PERL_VERSION
cristybab87c32010-02-09 20:54:22 +00001033MAGICK_LIBRARY_VERSION_INFO
1034MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001035MAGICK_LIBRARY_AGE
1036MAGICK_LIBRARY_REVISION
1037MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001038MAGICK_SVN_REVISION
1039MAGICK_VERSION
1040MAGICK_PATCHLEVEL_VERSION
1041MAGICK_MICRO_VERSION
1042MAGICK_MINOR_VERSION
1043MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001044MAGICK_TARGET_OS
1045MAGICK_TARGET_VENDOR
1046MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001047target_os
1048target_vendor
1049target_cpu
1050target
1051host_os
1052host_vendor
1053host_cpu
1054host
1055build_os
1056build_vendor
1057build_cpu
1058build
1059CONFIGURE_ARGS
1060DISTCHECK_CONFIG_FLAGS
1061target_alias
1062host_alias
1063build_alias
1064LIBS
1065ECHO_T
1066ECHO_N
1067ECHO_C
1068DEFS
1069mandir
1070localedir
1071libdir
1072psdir
1073pdfdir
1074dvidir
1075htmldir
1076infodir
1077docdir
1078oldincludedir
1079includedir
1080localstatedir
1081sharedstatedir
1082sysconfdir
1083datadir
1084datarootdir
1085libexecdir
1086sbindir
1087bindir
1088program_transform_name
1089prefix
1090exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001091PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001092PACKAGE_BUGREPORT
1093PACKAGE_STRING
1094PACKAGE_VERSION
1095PACKAGE_TARNAME
1096PACKAGE_NAME
1097PATH_SEPARATOR
1098SHELL'
1099ac_subst_files=''
1100ac_user_opts='
1101enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001102enable_silent_rules
1103enable_dependency_tracking
1104with_gnu_ld
1105with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001106with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001107enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001108enable_bounds_checking
1109enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001110with_includearch_dir
1111with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001112with_threads
1113enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001114enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001115enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001116enable_shared
1117enable_static
1118with_pic
1119enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001120with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001121enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001122with_modules
1123enable_delegate_build
1124enable_deprecated
1125enable_installed
1126enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001127enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001128enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001129enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001130enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001131enable_ccmalloc
1132enable_efence
1133enable_prof
1134enable_gprof
1135enable_gcov
1136with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001137enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001138with_quantum_depth
1139with_cache
1140with_frozenpaths
1141with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001142with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001143with_perl
1144with_perl_options
1145with_umem
1146with_libstdc
1147with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001148with_x
cristy3ed852e2009-09-05 21:47:34 +00001149with_zlib
1150with_autotrace
1151with_dps
1152with_djvu
cristy430a7312010-01-21 20:44:04 +00001153with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001154with_fftw
1155with_fpx
1156with_fontconfig
1157with_freetype
1158with_gslib
1159with_fontpath
1160with_gs_font_dir
1161with_gvc
1162with_jbig
1163with_jpeg
1164with_jp2
1165with_lcms
cristy71203402010-06-18 13:12:03 +00001166with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001167with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001168with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001169with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001170with_pango
cristy3ed852e2009-09-05 21:47:34 +00001171with_png
1172with_rsvg
1173with_tiff
cristyb1860752011-03-14 00:27:46 +00001174with_webp
cristy3ed852e2009-09-05 21:47:34 +00001175with_windows_font_dir
1176with_wmf
1177with_xml
1178'
1179 ac_precious_vars='build_alias
1180host_alias
1181target_alias
1182CC
1183CFLAGS
1184LDFLAGS
1185LIBS
1186CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001187CPP
cristy3ed852e2009-09-05 21:47:34 +00001188CXX
1189CXXFLAGS
1190CCC
cristy73bd4a52010-10-05 11:24:23 +00001191PKG_CONFIG
1192CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001193XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001194AUTOTRACE_CFLAGS
1195AUTOTRACE_LIBS
1196FONTCONFIG_CFLAGS
1197FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001198FREETYPE_CFLAGS
1199FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001200GVC_CFLAGS
1201GVC_LIBS
1202LQR_CFLAGS
1203LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001204LZMA_CFLAGS
1205LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001206OPENEXR_CFLAGS
1207OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001208PANGO_CFLAGS
1209PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001210RSVG_CFLAGS
1211RSVG_LIBS
1212CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001213CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001214
1215
1216# Initialize some variables set by options.
1217ac_init_help=
1218ac_init_version=false
1219ac_unrecognized_opts=
1220ac_unrecognized_sep=
1221# The variables have the same names as the options, with
1222# dashes changed to underlines.
1223cache_file=/dev/null
1224exec_prefix=NONE
1225no_create=
1226no_recursion=
1227prefix=NONE
1228program_prefix=NONE
1229program_suffix=NONE
1230program_transform_name=s,x,x,
1231silent=
1232site=
1233srcdir=
1234verbose=
1235x_includes=NONE
1236x_libraries=NONE
1237
1238# Installation directory options.
1239# These are left unexpanded so users can "make install exec_prefix=/foo"
1240# and all the variables that are supposed to be based on exec_prefix
1241# by default will actually change.
1242# Use braces instead of parens because sh, perl, etc. also accept them.
1243# (The list follows the same order as the GNU Coding Standards.)
1244bindir='${exec_prefix}/bin'
1245sbindir='${exec_prefix}/sbin'
1246libexecdir='${exec_prefix}/libexec'
1247datarootdir='${prefix}/share'
1248datadir='${datarootdir}'
1249sysconfdir='${prefix}/etc'
1250sharedstatedir='${prefix}/com'
1251localstatedir='${prefix}/var'
1252includedir='${prefix}/include'
1253oldincludedir='/usr/include'
1254docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1255infodir='${datarootdir}/info'
1256htmldir='${docdir}'
1257dvidir='${docdir}'
1258pdfdir='${docdir}'
1259psdir='${docdir}'
1260libdir='${exec_prefix}/lib'
1261localedir='${datarootdir}/locale'
1262mandir='${datarootdir}/man'
1263
1264ac_prev=
1265ac_dashdash=
1266for ac_option
1267do
1268 # If the previous option needs an argument, assign it.
1269 if test -n "$ac_prev"; then
1270 eval $ac_prev=\$ac_option
1271 ac_prev=
1272 continue
1273 fi
1274
1275 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001276 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1277 *=) ac_optarg= ;;
1278 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001279 esac
1280
1281 # Accept the important Cygnus configure options, so we can diagnose typos.
1282
1283 case $ac_dashdash$ac_option in
1284 --)
1285 ac_dashdash=yes ;;
1286
1287 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1288 ac_prev=bindir ;;
1289 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1290 bindir=$ac_optarg ;;
1291
1292 -build | --build | --buil | --bui | --bu)
1293 ac_prev=build_alias ;;
1294 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1295 build_alias=$ac_optarg ;;
1296
1297 -cache-file | --cache-file | --cache-fil | --cache-fi \
1298 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1299 ac_prev=cache_file ;;
1300 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1301 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1302 cache_file=$ac_optarg ;;
1303
1304 --config-cache | -C)
1305 cache_file=config.cache ;;
1306
1307 -datadir | --datadir | --datadi | --datad)
1308 ac_prev=datadir ;;
1309 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1310 datadir=$ac_optarg ;;
1311
1312 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1313 | --dataroo | --dataro | --datar)
1314 ac_prev=datarootdir ;;
1315 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1316 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1317 datarootdir=$ac_optarg ;;
1318
1319 -disable-* | --disable-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001323 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1327 *"
1328"enable_$ac_useropt"
1329"*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1332 esac
1333 eval enable_$ac_useropt=no ;;
1334
1335 -docdir | --docdir | --docdi | --doc | --do)
1336 ac_prev=docdir ;;
1337 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1338 docdir=$ac_optarg ;;
1339
1340 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1341 ac_prev=dvidir ;;
1342 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1343 dvidir=$ac_optarg ;;
1344
1345 -enable-* | --enable-*)
1346 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001349 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1353 *"
1354"enable_$ac_useropt"
1355"*) ;;
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1358 esac
1359 eval enable_$ac_useropt=\$ac_optarg ;;
1360
1361 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1362 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1363 | --exec | --exe | --ex)
1364 ac_prev=exec_prefix ;;
1365 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1366 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1367 | --exec=* | --exe=* | --ex=*)
1368 exec_prefix=$ac_optarg ;;
1369
1370 -gas | --gas | --ga | --g)
1371 # Obsolete; use --with-gas.
1372 with_gas=yes ;;
1373
1374 -help | --help | --hel | --he | -h)
1375 ac_init_help=long ;;
1376 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1377 ac_init_help=recursive ;;
1378 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1379 ac_init_help=short ;;
1380
1381 -host | --host | --hos | --ho)
1382 ac_prev=host_alias ;;
1383 -host=* | --host=* | --hos=* | --ho=*)
1384 host_alias=$ac_optarg ;;
1385
1386 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1387 ac_prev=htmldir ;;
1388 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1389 | --ht=*)
1390 htmldir=$ac_optarg ;;
1391
1392 -includedir | --includedir | --includedi | --included | --include \
1393 | --includ | --inclu | --incl | --inc)
1394 ac_prev=includedir ;;
1395 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1396 | --includ=* | --inclu=* | --incl=* | --inc=*)
1397 includedir=$ac_optarg ;;
1398
1399 -infodir | --infodir | --infodi | --infod | --info | --inf)
1400 ac_prev=infodir ;;
1401 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1402 infodir=$ac_optarg ;;
1403
1404 -libdir | --libdir | --libdi | --libd)
1405 ac_prev=libdir ;;
1406 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1407 libdir=$ac_optarg ;;
1408
1409 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1410 | --libexe | --libex | --libe)
1411 ac_prev=libexecdir ;;
1412 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1413 | --libexe=* | --libex=* | --libe=*)
1414 libexecdir=$ac_optarg ;;
1415
1416 -localedir | --localedir | --localedi | --localed | --locale)
1417 ac_prev=localedir ;;
1418 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1419 localedir=$ac_optarg ;;
1420
1421 -localstatedir | --localstatedir | --localstatedi | --localstated \
1422 | --localstate | --localstat | --localsta | --localst | --locals)
1423 ac_prev=localstatedir ;;
1424 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1425 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1426 localstatedir=$ac_optarg ;;
1427
1428 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1429 ac_prev=mandir ;;
1430 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1431 mandir=$ac_optarg ;;
1432
1433 -nfp | --nfp | --nf)
1434 # Obsolete; use --without-fp.
1435 with_fp=no ;;
1436
1437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1438 | --no-cr | --no-c | -n)
1439 no_create=yes ;;
1440
1441 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1442 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1443 no_recursion=yes ;;
1444
1445 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1446 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1447 | --oldin | --oldi | --old | --ol | --o)
1448 ac_prev=oldincludedir ;;
1449 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1450 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1451 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1452 oldincludedir=$ac_optarg ;;
1453
1454 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1455 ac_prev=prefix ;;
1456 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1457 prefix=$ac_optarg ;;
1458
1459 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1460 | --program-pre | --program-pr | --program-p)
1461 ac_prev=program_prefix ;;
1462 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1463 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1464 program_prefix=$ac_optarg ;;
1465
1466 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1467 | --program-suf | --program-su | --program-s)
1468 ac_prev=program_suffix ;;
1469 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1470 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1471 program_suffix=$ac_optarg ;;
1472
1473 -program-transform-name | --program-transform-name \
1474 | --program-transform-nam | --program-transform-na \
1475 | --program-transform-n | --program-transform- \
1476 | --program-transform | --program-transfor \
1477 | --program-transfo | --program-transf \
1478 | --program-trans | --program-tran \
1479 | --progr-tra | --program-tr | --program-t)
1480 ac_prev=program_transform_name ;;
1481 -program-transform-name=* | --program-transform-name=* \
1482 | --program-transform-nam=* | --program-transform-na=* \
1483 | --program-transform-n=* | --program-transform-=* \
1484 | --program-transform=* | --program-transfor=* \
1485 | --program-transfo=* | --program-transf=* \
1486 | --program-trans=* | --program-tran=* \
1487 | --progr-tra=* | --program-tr=* | --program-t=*)
1488 program_transform_name=$ac_optarg ;;
1489
1490 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1491 ac_prev=pdfdir ;;
1492 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1493 pdfdir=$ac_optarg ;;
1494
1495 -psdir | --psdir | --psdi | --psd | --ps)
1496 ac_prev=psdir ;;
1497 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1498 psdir=$ac_optarg ;;
1499
1500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1501 | -silent | --silent | --silen | --sile | --sil)
1502 silent=yes ;;
1503
1504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1505 ac_prev=sbindir ;;
1506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1507 | --sbi=* | --sb=*)
1508 sbindir=$ac_optarg ;;
1509
1510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1512 | --sharedst | --shareds | --shared | --share | --shar \
1513 | --sha | --sh)
1514 ac_prev=sharedstatedir ;;
1515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1518 | --sha=* | --sh=*)
1519 sharedstatedir=$ac_optarg ;;
1520
1521 -site | --site | --sit)
1522 ac_prev=site ;;
1523 -site=* | --site=* | --sit=*)
1524 site=$ac_optarg ;;
1525
1526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1527 ac_prev=srcdir ;;
1528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1529 srcdir=$ac_optarg ;;
1530
1531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1532 | --syscon | --sysco | --sysc | --sys | --sy)
1533 ac_prev=sysconfdir ;;
1534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1536 sysconfdir=$ac_optarg ;;
1537
1538 -target | --target | --targe | --targ | --tar | --ta | --t)
1539 ac_prev=target_alias ;;
1540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1541 target_alias=$ac_optarg ;;
1542
1543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1544 verbose=yes ;;
1545
1546 -version | --version | --versio | --versi | --vers | -V)
1547 ac_init_version=: ;;
1548
1549 -with-* | --with-*)
1550 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1551 # Reject names that are not valid shell variable names.
1552 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001553 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001554 ac_useropt_orig=$ac_useropt
1555 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1556 case $ac_user_opts in
1557 *"
1558"with_$ac_useropt"
1559"*) ;;
1560 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1561 ac_unrecognized_sep=', ';;
1562 esac
1563 eval with_$ac_useropt=\$ac_optarg ;;
1564
1565 -without-* | --without-*)
1566 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1567 # Reject names that are not valid shell variable names.
1568 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001569 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001570 ac_useropt_orig=$ac_useropt
1571 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1572 case $ac_user_opts in
1573 *"
1574"with_$ac_useropt"
1575"*) ;;
1576 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1577 ac_unrecognized_sep=', ';;
1578 esac
1579 eval with_$ac_useropt=no ;;
1580
1581 --x)
1582 # Obsolete; use --with-x.
1583 with_x=yes ;;
1584
1585 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1586 | --x-incl | --x-inc | --x-in | --x-i)
1587 ac_prev=x_includes ;;
1588 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1589 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1590 x_includes=$ac_optarg ;;
1591
1592 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1593 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1594 ac_prev=x_libraries ;;
1595 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1596 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1597 x_libraries=$ac_optarg ;;
1598
cristy98dddb52010-11-04 00:30:15 +00001599 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1600Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001601 ;;
1602
1603 *=*)
1604 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1605 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001606 case $ac_envvar in #(
1607 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001608 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001609 esac
cristy3ed852e2009-09-05 21:47:34 +00001610 eval $ac_envvar=\$ac_optarg
1611 export $ac_envvar ;;
1612
1613 *)
1614 # FIXME: should be removed in autoconf 3.0.
1615 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1616 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1617 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001618 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001619 ;;
1620
1621 esac
1622done
1623
1624if test -n "$ac_prev"; then
1625 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001626 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001627fi
1628
1629if test -n "$ac_unrecognized_opts"; then
1630 case $enable_option_checking in
1631 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001632 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001633 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1634 esac
1635fi
1636
1637# Check all directory arguments for consistency.
1638for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1639 datadir sysconfdir sharedstatedir localstatedir includedir \
1640 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1641 libdir localedir mandir
1642do
1643 eval ac_val=\$$ac_var
1644 # Remove trailing slashes.
1645 case $ac_val in
1646 */ )
1647 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1648 eval $ac_var=\$ac_val;;
1649 esac
1650 # Be sure to have absolute directory names.
1651 case $ac_val in
1652 [\\/$]* | ?:[\\/]* ) continue;;
1653 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1654 esac
cristy98dddb52010-11-04 00:30:15 +00001655 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001656done
1657
1658# There might be people who depend on the old broken behavior: `$host'
1659# used to hold the argument of --host etc.
1660# FIXME: To remove some day.
1661build=$build_alias
1662host=$host_alias
1663target=$target_alias
1664
1665# FIXME: To remove some day.
1666if test "x$host_alias" != x; then
1667 if test "x$build_alias" = x; then
1668 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001669 elif test "x$build_alias" != "x$host_alias"; then
1670 cross_compiling=yes
1671 fi
1672fi
1673
1674ac_tool_prefix=
1675test -n "$host_alias" && ac_tool_prefix=$host_alias-
1676
1677test "$silent" = yes && exec 6>/dev/null
1678
1679
1680ac_pwd=`pwd` && test -n "$ac_pwd" &&
1681ac_ls_di=`ls -di .` &&
1682ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001683 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001684test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001685 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001686
1687
1688# Find the source files, if location was not specified.
1689if test -z "$srcdir"; then
1690 ac_srcdir_defaulted=yes
1691 # Try the directory containing this script, then the parent directory.
1692 ac_confdir=`$as_dirname -- "$as_myself" ||
1693$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1694 X"$as_myself" : 'X\(//\)[^/]' \| \
1695 X"$as_myself" : 'X\(//\)$' \| \
1696 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1697$as_echo X"$as_myself" |
1698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1699 s//\1/
1700 q
1701 }
1702 /^X\(\/\/\)[^/].*/{
1703 s//\1/
1704 q
1705 }
1706 /^X\(\/\/\)$/{
1707 s//\1/
1708 q
1709 }
1710 /^X\(\/\).*/{
1711 s//\1/
1712 q
1713 }
1714 s/.*/./; q'`
1715 srcdir=$ac_confdir
1716 if test ! -r "$srcdir/$ac_unique_file"; then
1717 srcdir=..
1718 fi
1719else
1720 ac_srcdir_defaulted=no
1721fi
1722if test ! -r "$srcdir/$ac_unique_file"; then
1723 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001724 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001725fi
1726ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1727ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001728 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001729 pwd)`
1730# When building in place, set srcdir=.
1731if test "$ac_abs_confdir" = "$ac_pwd"; then
1732 srcdir=.
1733fi
1734# Remove unnecessary trailing slashes from srcdir.
1735# Double slashes in file names in object file debugging info
1736# mess up M-x gdb in Emacs.
1737case $srcdir in
1738*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1739esac
1740for ac_var in $ac_precious_vars; do
1741 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1742 eval ac_env_${ac_var}_value=\$${ac_var}
1743 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1744 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1745done
1746
1747#
1748# Report the --help message.
1749#
1750if test "$ac_init_help" = "long"; then
1751 # Omit some internal or obsolete options to make the list less imposing.
1752 # This message is too long to be a string in the A/UX 3.1 sh.
1753 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001754\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001755
1756Usage: $0 [OPTION]... [VAR=VALUE]...
1757
1758To assign environment variables (e.g., CC, CFLAGS...), specify them as
1759VAR=VALUE. See below for descriptions of some of the useful variables.
1760
1761Defaults for the options are specified in brackets.
1762
1763Configuration:
1764 -h, --help display this help and exit
1765 --help=short display options specific to this package
1766 --help=recursive display the short help of all the included packages
1767 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001768 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001769 --cache-file=FILE cache test results in FILE [disabled]
1770 -C, --config-cache alias for \`--cache-file=config.cache'
1771 -n, --no-create do not create output files
1772 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1773
1774Installation directories:
1775 --prefix=PREFIX install architecture-independent files in PREFIX
1776 [$ac_default_prefix]
1777 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1778 [PREFIX]
1779
1780By default, \`make install' will install all the files in
1781\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1782an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1783for instance \`--prefix=\$HOME'.
1784
1785For better control, use the options below.
1786
1787Fine tuning of the installation directories:
1788 --bindir=DIR user executables [EPREFIX/bin]
1789 --sbindir=DIR system admin executables [EPREFIX/sbin]
1790 --libexecdir=DIR program executables [EPREFIX/libexec]
1791 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1792 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1793 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1794 --libdir=DIR object code libraries [EPREFIX/lib]
1795 --includedir=DIR C header files [PREFIX/include]
1796 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1797 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1798 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1799 --infodir=DIR info documentation [DATAROOTDIR/info]
1800 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1801 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001802 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001803 --htmldir=DIR html documentation [DOCDIR]
1804 --dvidir=DIR dvi documentation [DOCDIR]
1805 --pdfdir=DIR pdf documentation [DOCDIR]
1806 --psdir=DIR ps documentation [DOCDIR]
1807_ACEOF
1808
1809 cat <<\_ACEOF
1810
cristy73bd4a52010-10-05 11:24:23 +00001811Program names:
1812 --program-prefix=PREFIX prepend PREFIX to installed program names
1813 --program-suffix=SUFFIX append SUFFIX to installed program names
1814 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1815
cristy3ed852e2009-09-05 21:47:34 +00001816X features:
1817 --x-includes=DIR X include files are in DIR
1818 --x-libraries=DIR X library files are in DIR
1819
1820System types:
1821 --build=BUILD configure for building on BUILD [guessed]
1822 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1823 --target=TARGET configure for building compilers for TARGET [HOST]
1824_ACEOF
1825fi
1826
1827if test -n "$ac_init_help"; then
1828 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001829 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001830 esac
1831 cat <<\_ACEOF
1832
1833Optional Features:
1834 --disable-option-checking ignore unrecognized --enable/--with options
1835 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1836 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001837 --enable-silent-rules less verbose build output (undo: "make V=1")
1838 --disable-silent-rules verbose build output (undo: "make V=0")
1839 --enable-dependency-tracking
1840 do not reject slow dependency extractors
1841 --disable-dependency-tracking
1842 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001843 --enable-ld-version-script
1844 enable linker version script (default is enabled
1845 when possible)
cristya3824692012-03-30 17:22:07 +00001846 --enable-bounds-checking
1847 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001848 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001849 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001850 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001851 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001852 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001853 --enable-shared[=PKGS] build shared libraries [default=yes]
1854 --enable-static[=PKGS] build static libraries [default=yes]
1855 --enable-fast-install[=PKGS]
1856 optimize for fast installation [default=yes]
1857 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001858 --enable-delegate-build look for delegate libraries in build directory
1859 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001860 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001861 --disable-installed Formally install ImageMagick under PREFIX
1862 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001863 --enable-zero-configuration
1864 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001865 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001866 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001867 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001868 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001869 --enable-maintainer-mode
1870 enable make rules and dependencies not useful (and
1871 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001872 --enable-ccmalloc enable 'ccmalloc' memory debug support
1873 --enable-efence enable 'efence' memory debug support
1874 --enable-prof enable 'prof' profiling support
1875 --enable-gprof enable 'gprof' profiling support
1876 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001877 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001878 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001879
1880Optional Packages:
1881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001883 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001884 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001885 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1886 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001887 --includearch-dir=DIR ARCH specific include directory
1888 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001889 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001890 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001891 both]
cristyda16f162011-02-19 23:52:17 +00001892 --with-sysroot=DIR Search for dependent libraries within DIR
1893 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001894 --with-modules enable building dynamically loadable modules
1895 --with-method-prefix=PREFIX
1896 prefix MagickCore API methods
1897 --with-quantum-depth=DEPTH
1898 number of bits in a pixel quantum (default 16)
1899 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1900 memory)
1901 --with-frozenpaths freeze delegate paths
1902 --without-magick-plus-plus
1903 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001904 --with-package-release-name=NAME
1905 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001906 --with-perl enable build/install of PerlMagick
1907 --with-perl-options=OPTIONS
1908 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001909 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001910 --with-umem enable umem memory allocation library support
1911 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1912 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001913 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001914 --without-zlib disable ZLIB support
1915 --with-autotrace enable autotrace support
1916 --without-dps disable Display Postscript support
1917 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001918 --with-dejavu-font-dir=DIR
1919 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001920 --without-fftw disable FFTW support
1921 --without-fpx disable FlashPIX support
1922 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001923 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001924 --without-gslib enable Ghostscript library support
1925 --with-fontpath=DIR prepend to default font search path
1926 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001927 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001928 --without-jbig disable JBIG support
1929 --without-jpeg disable JPEG support
1930 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001931 --without-lcms disable lcms (v1.1X) support
1932 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001933 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001934 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001935 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001936 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001937 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001938 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001939 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001940 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001941 --with-windows-font-dir=DIR
1942 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001943 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001944 --without-xml disable XML support
1945
1946Some influential environment variables:
1947 CC C compiler command
1948 CFLAGS C compiler flags
1949 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1950 nonstandard directory <lib dir>
1951 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001952 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001953 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001954 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001955 CXX C++ compiler command
1956 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001957 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001958 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001959 XMKMF Path to xmkmf, Makefile generator for X Window System
1960 AUTOTRACE_CFLAGS
1961 C compiler flags for AUTOTRACE, overriding pkg-config
1962 AUTOTRACE_LIBS
1963 linker flags for AUTOTRACE, overriding pkg-config
1964 FONTCONFIG_CFLAGS
1965 C compiler flags for FONTCONFIG, overriding pkg-config
1966 FONTCONFIG_LIBS
1967 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001968 FREETYPE_CFLAGS
1969 C compiler flags for FREETYPE, overriding pkg-config
1970 FREETYPE_LIBS
1971 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001972 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1973 GVC_LIBS linker flags for GVC, overriding pkg-config
1974 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1975 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001976 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1977 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001978 OPENEXR_CFLAGS
1979 C compiler flags for OPENEXR, overriding pkg-config
1980 OPENEXR_LIBS
1981 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001982 PANGO_CFLAGS
1983 C compiler flags for PANGO, overriding pkg-config
1984 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001985 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1986 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1987 CAIRO_SVG_CFLAGS
1988 C compiler flags for CAIRO_SVG, overriding pkg-config
1989 CAIRO_SVG_LIBS
1990 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001991
1992Use these variables to override the choices made by `configure' or to help
1993it to find libraries and programs with nonstandard names/locations.
1994
1995Report bugs to <http://www.imagemagick.org>.
1996_ACEOF
1997ac_status=$?
1998fi
1999
2000if test "$ac_init_help" = "recursive"; then
2001 # If there are subdirs, report their specific --help.
2002 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2003 test -d "$ac_dir" ||
2004 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2005 continue
2006 ac_builddir=.
2007
2008case "$ac_dir" in
2009.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2010*)
2011 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2012 # A ".." for each directory in $ac_dir_suffix.
2013 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2014 case $ac_top_builddir_sub in
2015 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2016 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2017 esac ;;
2018esac
2019ac_abs_top_builddir=$ac_pwd
2020ac_abs_builddir=$ac_pwd$ac_dir_suffix
2021# for backward compatibility:
2022ac_top_builddir=$ac_top_build_prefix
2023
2024case $srcdir in
2025 .) # We are building in place.
2026 ac_srcdir=.
2027 ac_top_srcdir=$ac_top_builddir_sub
2028 ac_abs_top_srcdir=$ac_pwd ;;
2029 [\\/]* | ?:[\\/]* ) # Absolute name.
2030 ac_srcdir=$srcdir$ac_dir_suffix;
2031 ac_top_srcdir=$srcdir
2032 ac_abs_top_srcdir=$srcdir ;;
2033 *) # Relative name.
2034 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2035 ac_top_srcdir=$ac_top_build_prefix$srcdir
2036 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2037esac
2038ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2039
2040 cd "$ac_dir" || { ac_status=$?; continue; }
2041 # Check for guested configure.
2042 if test -f "$ac_srcdir/configure.gnu"; then
2043 echo &&
2044 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2045 elif test -f "$ac_srcdir/configure"; then
2046 echo &&
2047 $SHELL "$ac_srcdir/configure" --help=recursive
2048 else
2049 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2050 fi || ac_status=$?
2051 cd "$ac_pwd" || { ac_status=$?; break; }
2052 done
2053fi
2054
2055test -n "$ac_init_help" && exit $ac_status
2056if $ac_init_version; then
2057 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002058ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002059generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002060
cristy14fefe52012-05-21 00:59:18 +00002061Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002062This configure script is free software; the Free Software Foundation
2063gives unlimited permission to copy, distribute and modify it.
2064_ACEOF
2065 exit
2066fi
cristy8b350f62009-11-15 23:12:43 +00002067
2068## ------------------------ ##
2069## Autoconf initialization. ##
2070## ------------------------ ##
2071
2072# ac_fn_c_try_compile LINENO
2073# --------------------------
2074# Try to compile conftest.$ac_ext, and return whether this succeeded.
2075ac_fn_c_try_compile ()
2076{
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 rm -f conftest.$ac_objext
2079 if { { ac_try="$ac_compile"
2080case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2083esac
2084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085$as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_compile") 2>conftest.err
2087 ac_status=$?
2088 if test -s conftest.err; then
2089 grep -v '^ *+' conftest.err >conftest.er1
2090 cat conftest.er1 >&5
2091 mv -f conftest.er1 conftest.err
2092 fi
2093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094 test $ac_status = 0; } && {
2095 test -z "$ac_c_werror_flag" ||
2096 test ! -s conftest.err
2097 } && test -s conftest.$ac_objext; then :
2098 ac_retval=0
2099else
2100 $as_echo "$as_me: failed program was:" >&5
2101sed 's/^/| /' conftest.$ac_ext >&5
2102
2103 ac_retval=1
2104fi
cristyda16f162011-02-19 23:52:17 +00002105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002106 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002107
2108} # ac_fn_c_try_compile
2109
cristy95646052009-11-28 23:05:30 +00002110# ac_fn_c_try_cpp LINENO
2111# ----------------------
2112# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2113ac_fn_c_try_cpp ()
2114{
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if { { ac_try="$ac_cpp conftest.$ac_ext"
2117case "(($ac_try" in
2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119 *) ac_try_echo=$ac_try;;
2120esac
2121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2122$as_echo "$ac_try_echo"; } >&5
2123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2124 ac_status=$?
2125 if test -s conftest.err; then
2126 grep -v '^ *+' conftest.err >conftest.er1
2127 cat conftest.er1 >&5
2128 mv -f conftest.er1 conftest.err
2129 fi
2130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002131 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2133 test ! -s conftest.err
2134 }; then :
2135 ac_retval=0
2136else
2137 $as_echo "$as_me: failed program was:" >&5
2138sed 's/^/| /' conftest.$ac_ext >&5
2139
2140 ac_retval=1
2141fi
cristyda16f162011-02-19 23:52:17 +00002142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002143 as_fn_set_status $ac_retval
2144
2145} # ac_fn_c_try_cpp
2146
cristy8b350f62009-11-15 23:12:43 +00002147# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2148# -------------------------------------------------------
2149# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2150# the include files in INCLUDES and setting the cache variable VAR
2151# accordingly.
2152ac_fn_c_check_header_mongrel ()
2153{
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002155 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002158if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002159 $as_echo_n "(cached) " >&6
2160fi
2161eval ac_res=\$$3
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163$as_echo "$ac_res" >&6; }
2164else
2165 # Is the header compilable?
2166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2167$as_echo_n "checking $2 usability... " >&6; }
2168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h. */
2170$4
2171#include <$2>
2172_ACEOF
2173if ac_fn_c_try_compile "$LINENO"; then :
2174 ac_header_compiler=yes
2175else
2176 ac_header_compiler=no
2177fi
2178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2180$as_echo "$ac_header_compiler" >&6; }
2181
2182# Is the header present?
2183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2184$as_echo_n "checking $2 presence... " >&6; }
2185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186/* end confdefs.h. */
2187#include <$2>
2188_ACEOF
2189if ac_fn_c_try_cpp "$LINENO"; then :
2190 ac_header_preproc=yes
2191else
2192 ac_header_preproc=no
2193fi
cristyda16f162011-02-19 23:52:17 +00002194rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2196$as_echo "$ac_header_preproc" >&6; }
2197
2198# So? What about this header?
2199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2200 yes:no: )
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2202$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2204$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2205 ;;
2206 no:yes:* )
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2208$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2210$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2212$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2214$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2216$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002217( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002218## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002219## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002220 ) | sed "s/^/$as_me: WARNING: /" >&2
2221 ;;
2222esac
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002225if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002226 $as_echo_n "(cached) " >&6
2227else
2228 eval "$3=\$ac_header_compiler"
2229fi
2230eval ac_res=\$$3
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232$as_echo "$ac_res" >&6; }
2233fi
cristyda16f162011-02-19 23:52:17 +00002234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002235
2236} # ac_fn_c_check_header_mongrel
2237
2238# ac_fn_c_try_run LINENO
2239# ----------------------
2240# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2241# that executables *can* be run.
2242ac_fn_c_try_run ()
2243{
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 if { { ac_try="$ac_link"
2246case "(($ac_try" in
2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248 *) ac_try_echo=$ac_try;;
2249esac
2250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2251$as_echo "$ac_try_echo"; } >&5
2252 (eval "$ac_link") 2>&5
2253 ac_status=$?
2254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2255 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2256 { { case "(($ac_try" in
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2259esac
2260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2261$as_echo "$ac_try_echo"; } >&5
2262 (eval "$ac_try") 2>&5
2263 ac_status=$?
2264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2265 test $ac_status = 0; }; }; then :
2266 ac_retval=0
2267else
2268 $as_echo "$as_me: program exited with status $ac_status" >&5
2269 $as_echo "$as_me: failed program was:" >&5
2270sed 's/^/| /' conftest.$ac_ext >&5
2271
2272 ac_retval=$ac_status
2273fi
2274 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002276 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002277
2278} # ac_fn_c_try_run
2279
2280# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2281# -------------------------------------------------------
2282# Tests whether HEADER exists and can be compiled using the include files in
2283# INCLUDES, setting the cache variable VAR accordingly.
2284ac_fn_c_check_header_compile ()
2285{
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002289if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002290 $as_echo_n "(cached) " >&6
2291else
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293/* end confdefs.h. */
2294$4
2295#include <$2>
2296_ACEOF
2297if ac_fn_c_try_compile "$LINENO"; then :
2298 eval "$3=yes"
2299else
2300 eval "$3=no"
2301fi
2302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303fi
2304eval ac_res=\$$3
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002308
2309} # ac_fn_c_check_header_compile
2310
cristya0b81c32010-01-22 02:54:33 +00002311# ac_fn_cxx_try_compile LINENO
2312# ----------------------------
2313# Try to compile conftest.$ac_ext, and return whether this succeeded.
2314ac_fn_cxx_try_compile ()
2315{
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 rm -f conftest.$ac_objext
2318 if { { ac_try="$ac_compile"
2319case "(($ac_try" in
2320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2321 *) ac_try_echo=$ac_try;;
2322esac
2323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2324$as_echo "$ac_try_echo"; } >&5
2325 (eval "$ac_compile") 2>conftest.err
2326 ac_status=$?
2327 if test -s conftest.err; then
2328 grep -v '^ *+' conftest.err >conftest.er1
2329 cat conftest.er1 >&5
2330 mv -f conftest.er1 conftest.err
2331 fi
2332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2333 test $ac_status = 0; } && {
2334 test -z "$ac_cxx_werror_flag" ||
2335 test ! -s conftest.err
2336 } && test -s conftest.$ac_objext; then :
2337 ac_retval=0
2338else
2339 $as_echo "$as_me: failed program was:" >&5
2340sed 's/^/| /' conftest.$ac_ext >&5
2341
2342 ac_retval=1
2343fi
cristyda16f162011-02-19 23:52:17 +00002344 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002345 as_fn_set_status $ac_retval
2346
2347} # ac_fn_cxx_try_compile
2348
cristy8b350f62009-11-15 23:12:43 +00002349# ac_fn_c_try_link LINENO
2350# -----------------------
2351# Try to link conftest.$ac_ext, and return whether this succeeded.
2352ac_fn_c_try_link ()
2353{
2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355 rm -f conftest.$ac_objext conftest$ac_exeext
2356 if { { ac_try="$ac_link"
2357case "(($ac_try" in
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2360esac
2361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362$as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_link") 2>conftest.err
2364 ac_status=$?
2365 if test -s conftest.err; then
2366 grep -v '^ *+' conftest.err >conftest.er1
2367 cat conftest.er1 >&5
2368 mv -f conftest.er1 conftest.err
2369 fi
2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371 test $ac_status = 0; } && {
2372 test -z "$ac_c_werror_flag" ||
2373 test ! -s conftest.err
2374 } && test -s conftest$ac_exeext && {
2375 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002376 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002377 }; then :
2378 ac_retval=0
2379else
2380 $as_echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 ac_retval=1
2384fi
2385 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2386 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2387 # interfere with the next link command; also delete a directory that is
2388 # left behind by Apple's compiler. We do this before executing the actions.
2389 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002391 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002392
2393} # ac_fn_c_try_link
2394
cristy73bd4a52010-10-05 11:24:23 +00002395# ac_fn_c_check_func LINENO FUNC VAR
2396# ----------------------------------
2397# Tests whether FUNC exists, setting the cache variable VAR accordingly
2398ac_fn_c_check_func ()
2399{
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2402$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002403if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002404 $as_echo_n "(cached) " >&6
2405else
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407/* end confdefs.h. */
2408/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2410#define $2 innocuous_$2
2411
2412/* System header to define __stub macros and hopefully few prototypes,
2413 which can conflict with char $2 (); below.
2414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2415 <limits.h> exists even on freestanding compilers. */
2416
2417#ifdef __STDC__
2418# include <limits.h>
2419#else
2420# include <assert.h>
2421#endif
2422
2423#undef $2
2424
2425/* Override any GCC internal prototype to avoid an error.
2426 Use char because int might match the return type of a GCC
2427 builtin and then its argument prototype would still apply. */
2428#ifdef __cplusplus
2429extern "C"
2430#endif
2431char $2 ();
2432/* The GNU C library defines this for functions which it implements
2433 to always fail with ENOSYS. Some functions are actually named
2434 something starting with __ and the normal name is an alias. */
2435#if defined __stub_$2 || defined __stub___$2
2436choke me
2437#endif
2438
2439int
2440main ()
2441{
2442return $2 ();
2443 ;
2444 return 0;
2445}
2446_ACEOF
2447if ac_fn_c_try_link "$LINENO"; then :
2448 eval "$3=yes"
2449else
2450 eval "$3=no"
2451fi
2452rm -f core conftest.err conftest.$ac_objext \
2453 conftest$ac_exeext conftest.$ac_ext
2454fi
2455eval ac_res=\$$3
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2457$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002458 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002459
2460} # ac_fn_c_check_func
2461
2462# ac_fn_cxx_try_cpp LINENO
2463# ------------------------
2464# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2465ac_fn_cxx_try_cpp ()
2466{
2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468 if { { ac_try="$ac_cpp conftest.$ac_ext"
2469case "(($ac_try" in
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2472esac
2473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2474$as_echo "$ac_try_echo"; } >&5
2475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2476 ac_status=$?
2477 if test -s conftest.err; then
2478 grep -v '^ *+' conftest.err >conftest.er1
2479 cat conftest.er1 >&5
2480 mv -f conftest.er1 conftest.err
2481 fi
2482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002483 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002484 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2485 test ! -s conftest.err
2486 }; then :
2487 ac_retval=0
2488else
2489 $as_echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 ac_retval=1
2493fi
cristyda16f162011-02-19 23:52:17 +00002494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002495 as_fn_set_status $ac_retval
2496
2497} # ac_fn_cxx_try_cpp
2498
2499# ac_fn_cxx_try_link LINENO
2500# -------------------------
2501# Try to link conftest.$ac_ext, and return whether this succeeded.
2502ac_fn_cxx_try_link ()
2503{
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 rm -f conftest.$ac_objext conftest$ac_exeext
2506 if { { ac_try="$ac_link"
2507case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2510esac
2511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2512$as_echo "$ac_try_echo"; } >&5
2513 (eval "$ac_link") 2>conftest.err
2514 ac_status=$?
2515 if test -s conftest.err; then
2516 grep -v '^ *+' conftest.err >conftest.er1
2517 cat conftest.er1 >&5
2518 mv -f conftest.er1 conftest.err
2519 fi
2520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2521 test $ac_status = 0; } && {
2522 test -z "$ac_cxx_werror_flag" ||
2523 test ! -s conftest.err
2524 } && test -s conftest$ac_exeext && {
2525 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002526 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002527 }; then :
2528 ac_retval=0
2529else
2530 $as_echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533 ac_retval=1
2534fi
2535 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2536 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2537 # interfere with the next link command; also delete a directory that is
2538 # left behind by Apple's compiler. We do this before executing the actions.
2539 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002541 as_fn_set_status $ac_retval
2542
2543} # ac_fn_cxx_try_link
2544
cristy8b350f62009-11-15 23:12:43 +00002545# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2546# -------------------------------------------
2547# Tests whether TYPE exists after having included INCLUDES, setting cache
2548# variable VAR accordingly.
2549ac_fn_c_check_type ()
2550{
2551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2553$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002554if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002555 $as_echo_n "(cached) " >&6
2556else
2557 eval "$3=no"
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559/* end confdefs.h. */
2560$4
2561int
2562main ()
2563{
2564if (sizeof ($2))
2565 return 0;
2566 ;
2567 return 0;
2568}
2569_ACEOF
2570if ac_fn_c_try_compile "$LINENO"; then :
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572/* end confdefs.h. */
2573$4
2574int
2575main ()
2576{
2577if (sizeof (($2)))
2578 return 0;
2579 ;
2580 return 0;
2581}
2582_ACEOF
2583if ac_fn_c_try_compile "$LINENO"; then :
2584
2585else
2586 eval "$3=yes"
2587fi
2588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589fi
2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591fi
2592eval ac_res=\$$3
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002596
2597} # ac_fn_c_check_type
2598
cristy92703d82010-04-26 00:18:18 +00002599# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2600# ----------------------------------------------------
2601# Tries to find if the field MEMBER exists in type AGGR, after including
2602# INCLUDES, setting cache variable VAR accordingly.
2603ac_fn_c_check_member ()
2604{
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2607$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002608if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002609 $as_echo_n "(cached) " >&6
2610else
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612/* end confdefs.h. */
2613$5
2614int
2615main ()
2616{
2617static $2 ac_aggr;
2618if (ac_aggr.$3)
2619return 0;
2620 ;
2621 return 0;
2622}
2623_ACEOF
2624if ac_fn_c_try_compile "$LINENO"; then :
2625 eval "$4=yes"
2626else
2627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628/* end confdefs.h. */
2629$5
2630int
2631main ()
2632{
2633static $2 ac_aggr;
2634if (sizeof ac_aggr.$3)
2635return 0;
2636 ;
2637 return 0;
2638}
2639_ACEOF
2640if ac_fn_c_try_compile "$LINENO"; then :
2641 eval "$4=yes"
2642else
2643 eval "$4=no"
2644fi
2645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646fi
2647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648fi
2649eval ac_res=\$$4
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2651$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002653
2654} # ac_fn_c_check_member
2655
cristy5eef09f2012-10-16 12:08:28 +00002656# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2657# ---------------------------------------------
2658# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2659# accordingly.
2660ac_fn_c_check_decl ()
2661{
2662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2663 as_decl_name=`echo $2|sed 's/ *(.*//'`
2664 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2666$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2667if eval \${$3+:} false; then :
2668 $as_echo_n "(cached) " >&6
2669else
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671/* end confdefs.h. */
2672$4
2673int
2674main ()
2675{
2676#ifndef $as_decl_name
2677#ifdef __cplusplus
2678 (void) $as_decl_use;
2679#else
2680 (void) $as_decl_name;
2681#endif
2682#endif
2683
2684 ;
2685 return 0;
2686}
2687_ACEOF
2688if ac_fn_c_try_compile "$LINENO"; then :
2689 eval "$3=yes"
2690else
2691 eval "$3=no"
2692fi
2693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694fi
2695eval ac_res=\$$3
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2697$as_echo "$ac_res" >&6; }
2698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2699
2700} # ac_fn_c_check_decl
2701
cristy501c8042011-05-26 17:46:28 +00002702# ac_fn_c_find_intX_t LINENO BITS VAR
2703# -----------------------------------
2704# Finds a signed integer type with width BITS, setting cache variable VAR
2705# accordingly.
2706ac_fn_c_find_intX_t ()
2707{
2708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2710$as_echo_n "checking for int$2_t... " >&6; }
2711if eval \${$3+:} false; then :
2712 $as_echo_n "(cached) " >&6
2713else
2714 eval "$3=no"
2715 # Order is important - never check a type that is potentially smaller
2716 # than half of the expected target width.
2717 for ac_type in int$2_t 'int' 'long int' \
2718 'long long int' 'short int' 'signed char'; do
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720/* end confdefs.h. */
2721$ac_includes_default
2722 enum { N = $2 / 2 - 1 };
2723int
2724main ()
2725{
2726static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002727test_array [0] = 0;
2728return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002729
2730 ;
2731 return 0;
2732}
2733_ACEOF
2734if ac_fn_c_try_compile "$LINENO"; then :
2735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2736/* end confdefs.h. */
2737$ac_includes_default
2738 enum { N = $2 / 2 - 1 };
2739int
2740main ()
2741{
2742static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2743 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002744test_array [0] = 0;
2745return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002746
2747 ;
2748 return 0;
2749}
2750_ACEOF
2751if ac_fn_c_try_compile "$LINENO"; then :
2752
2753else
2754 case $ac_type in #(
2755 int$2_t) :
2756 eval "$3=yes" ;; #(
2757 *) :
2758 eval "$3=\$ac_type" ;;
2759esac
2760fi
2761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762fi
2763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764 if eval test \"x\$"$3"\" = x"no"; then :
2765
2766else
2767 break
2768fi
2769 done
2770fi
2771eval ac_res=\$$3
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2773$as_echo "$ac_res" >&6; }
2774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2775
2776} # ac_fn_c_find_intX_t
2777
2778# ac_fn_c_find_uintX_t LINENO BITS VAR
2779# ------------------------------------
2780# Finds an unsigned integer type with width BITS, setting cache variable VAR
2781# accordingly.
2782ac_fn_c_find_uintX_t ()
2783{
2784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2786$as_echo_n "checking for uint$2_t... " >&6; }
2787if eval \${$3+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789else
2790 eval "$3=no"
2791 # Order is important - never check a type that is potentially smaller
2792 # than half of the expected target width.
2793 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2794 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796/* end confdefs.h. */
2797$ac_includes_default
2798int
2799main ()
2800{
2801static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002802test_array [0] = 0;
2803return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002804
2805 ;
2806 return 0;
2807}
2808_ACEOF
2809if ac_fn_c_try_compile "$LINENO"; then :
2810 case $ac_type in #(
2811 uint$2_t) :
2812 eval "$3=yes" ;; #(
2813 *) :
2814 eval "$3=\$ac_type" ;;
2815esac
2816fi
2817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818 if eval test \"x\$"$3"\" = x"no"; then :
2819
2820else
2821 break
2822fi
2823 done
2824fi
2825eval ac_res=\$$3
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2827$as_echo "$ac_res" >&6; }
2828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2829
2830} # ac_fn_c_find_uintX_t
2831
cristy8b350f62009-11-15 23:12:43 +00002832# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2833# --------------------------------------------
2834# Tries to find the compile-time value of EXPR in a program that includes
2835# INCLUDES, setting VAR accordingly. Returns whether the value could be
2836# computed
2837ac_fn_c_compute_int ()
2838{
2839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2840 if test "$cross_compiling" = yes; then
2841 # Depending upon the size, compute the lo and hi bounds.
2842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843/* end confdefs.h. */
2844$4
2845int
2846main ()
2847{
2848static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002849test_array [0] = 0;
2850return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002851
2852 ;
2853 return 0;
2854}
2855_ACEOF
2856if ac_fn_c_try_compile "$LINENO"; then :
2857 ac_lo=0 ac_mid=0
2858 while :; do
2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860/* end confdefs.h. */
2861$4
2862int
2863main ()
2864{
2865static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002866test_array [0] = 0;
2867return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002868
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873if ac_fn_c_try_compile "$LINENO"; then :
2874 ac_hi=$ac_mid; break
2875else
2876 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2877 if test $ac_lo -le $ac_mid; then
2878 ac_lo= ac_hi=
2879 break
2880 fi
2881 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2882fi
2883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2884 done
2885else
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887/* end confdefs.h. */
2888$4
2889int
2890main ()
2891{
2892static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002893test_array [0] = 0;
2894return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002895
2896 ;
2897 return 0;
2898}
2899_ACEOF
2900if ac_fn_c_try_compile "$LINENO"; then :
2901 ac_hi=-1 ac_mid=-1
2902 while :; do
2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904/* end confdefs.h. */
2905$4
2906int
2907main ()
2908{
2909static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002910test_array [0] = 0;
2911return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002912
2913 ;
2914 return 0;
2915}
2916_ACEOF
2917if ac_fn_c_try_compile "$LINENO"; then :
2918 ac_lo=$ac_mid; break
2919else
2920 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2921 if test $ac_mid -le $ac_hi; then
2922 ac_lo= ac_hi=
2923 break
2924 fi
2925 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2926fi
2927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928 done
2929else
2930 ac_lo= ac_hi=
2931fi
2932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933fi
2934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935# Binary search between lo and hi bounds.
2936while test "x$ac_lo" != "x$ac_hi"; do
2937 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939/* end confdefs.h. */
2940$4
2941int
2942main ()
2943{
2944static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002945test_array [0] = 0;
2946return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952if ac_fn_c_try_compile "$LINENO"; then :
2953 ac_hi=$ac_mid
2954else
2955 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2956fi
2957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958done
2959case $ac_lo in #((
2960?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2961'') ac_retval=1 ;;
2962esac
2963 else
2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965/* end confdefs.h. */
2966$4
2967static long int longval () { return $2; }
2968static unsigned long int ulongval () { return $2; }
2969#include <stdio.h>
2970#include <stdlib.h>
2971int
2972main ()
2973{
2974
2975 FILE *f = fopen ("conftest.val", "w");
2976 if (! f)
2977 return 1;
2978 if (($2) < 0)
2979 {
2980 long int i = longval ();
2981 if (i != ($2))
2982 return 1;
2983 fprintf (f, "%ld", i);
2984 }
2985 else
2986 {
2987 unsigned long int i = ulongval ();
2988 if (i != ($2))
2989 return 1;
2990 fprintf (f, "%lu", i);
2991 }
2992 /* Do not output a trailing newline, as this causes \r\n confusion
2993 on some platforms. */
2994 return ferror (f) || fclose (f) != 0;
2995
2996 ;
2997 return 0;
2998}
2999_ACEOF
3000if ac_fn_c_try_run "$LINENO"; then :
3001 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3002else
3003 ac_retval=1
3004fi
3005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3006 conftest.$ac_objext conftest.beam conftest.$ac_ext
3007rm -f conftest.val
3008
3009 fi
cristyda16f162011-02-19 23:52:17 +00003010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003011 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003012
3013} # ac_fn_c_compute_int
3014
3015# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3016# ---------------------------------------------------------
3017# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3018# the include files in INCLUDES and setting the cache variable VAR
3019# accordingly.
3020ac_fn_cxx_check_header_mongrel ()
3021{
3022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003023 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3025$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003026if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003027 $as_echo_n "(cached) " >&6
3028fi
3029eval ac_res=\$$3
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3031$as_echo "$ac_res" >&6; }
3032else
3033 # Is the header compilable?
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3035$as_echo_n "checking $2 usability... " >&6; }
3036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037/* end confdefs.h. */
3038$4
3039#include <$2>
3040_ACEOF
3041if ac_fn_cxx_try_compile "$LINENO"; then :
3042 ac_header_compiler=yes
3043else
3044 ac_header_compiler=no
3045fi
3046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3048$as_echo "$ac_header_compiler" >&6; }
3049
3050# Is the header present?
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3052$as_echo_n "checking $2 presence... " >&6; }
3053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054/* end confdefs.h. */
3055#include <$2>
3056_ACEOF
3057if ac_fn_cxx_try_cpp "$LINENO"; then :
3058 ac_header_preproc=yes
3059else
3060 ac_header_preproc=no
3061fi
cristyda16f162011-02-19 23:52:17 +00003062rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3064$as_echo "$ac_header_preproc" >&6; }
3065
3066# So? What about this header?
3067case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3068 yes:no: )
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3070$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3072$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3073 ;;
3074 no:yes:* )
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3076$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3078$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3080$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3082$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3084$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003085( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003086## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003087## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003088 ) | sed "s/^/$as_me: WARNING: /" >&2
3089 ;;
3090esac
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3092$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003093if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003094 $as_echo_n "(cached) " >&6
3095else
3096 eval "$3=\$ac_header_compiler"
3097fi
3098eval ac_res=\$$3
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3100$as_echo "$ac_res" >&6; }
3101fi
cristyda16f162011-02-19 23:52:17 +00003102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003103
3104} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003105cat >config.log <<_ACEOF
3106This file contains any messages produced by compilers while
3107running configure, to aid debugging if configure makes a mistake.
3108
cristy29eb34e2011-10-16 00:46:08 +00003109It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003110generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003111
3112 $ $0 $@
3113
3114_ACEOF
3115exec 5>>config.log
3116{
3117cat <<_ASUNAME
3118## --------- ##
3119## Platform. ##
3120## --------- ##
3121
3122hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3123uname -m = `(uname -m) 2>/dev/null || echo unknown`
3124uname -r = `(uname -r) 2>/dev/null || echo unknown`
3125uname -s = `(uname -s) 2>/dev/null || echo unknown`
3126uname -v = `(uname -v) 2>/dev/null || echo unknown`
3127
3128/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3129/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3130
3131/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3132/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3133/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3134/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3135/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3136/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3137/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3138
3139_ASUNAME
3140
3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003146 $as_echo "PATH: $as_dir"
3147 done
cristy3ed852e2009-09-05 21:47:34 +00003148IFS=$as_save_IFS
3149
3150} >&5
3151
3152cat >&5 <<_ACEOF
3153
3154
3155## ----------- ##
3156## Core tests. ##
3157## ----------- ##
3158
3159_ACEOF
3160
3161
3162# Keep a trace of the command line.
3163# Strip out --no-create and --no-recursion so they do not pile up.
3164# Strip out --silent because we don't want to record it for future runs.
3165# Also quote any args containing shell meta-characters.
3166# Make two passes to allow for proper duplicate-argument suppression.
3167ac_configure_args=
3168ac_configure_args0=
3169ac_configure_args1=
3170ac_must_keep_next=false
3171for ac_pass in 1 2
3172do
3173 for ac_arg
3174 do
3175 case $ac_arg in
3176 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3178 | -silent | --silent | --silen | --sile | --sil)
3179 continue ;;
3180 *\'*)
3181 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3182 esac
3183 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003184 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003185 2)
cristy8b350f62009-11-15 23:12:43 +00003186 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003187 if test $ac_must_keep_next = true; then
3188 ac_must_keep_next=false # Got value, back to normal.
3189 else
3190 case $ac_arg in
3191 *=* | --config-cache | -C | -disable-* | --disable-* \
3192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3194 | -with-* | --with-* | -without-* | --without-* | --x)
3195 case "$ac_configure_args0 " in
3196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3197 esac
3198 ;;
3199 -* ) ac_must_keep_next=true ;;
3200 esac
3201 fi
cristy8b350f62009-11-15 23:12:43 +00003202 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003203 ;;
3204 esac
3205 done
3206done
cristy8b350f62009-11-15 23:12:43 +00003207{ ac_configure_args0=; unset ac_configure_args0;}
3208{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003209
3210# When interrupted or exit'd, cleanup temporary files, and complete
3211# config.log. We remove comments because anyway the quotes in there
3212# would cause problems or look ugly.
3213# WARNING: Use '\'' to represent an apostrophe within the trap.
3214# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3215trap 'exit_status=$?
3216 # Save into config.log some information that might help in debugging.
3217 {
3218 echo
3219
cristy98dddb52010-11-04 00:30:15 +00003220 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003221## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003222## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003223 echo
3224 # The following way of writing the cache mishandles newlines in values,
3225(
3226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3227 eval ac_val=\$$ac_var
3228 case $ac_val in #(
3229 *${as_nl}*)
3230 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003231 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003232$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3233 esac
3234 case $ac_var in #(
3235 _ | IFS | as_nl) ;; #(
3236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003237 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003238 esac ;;
3239 esac
3240 done
3241 (set) 2>&1 |
3242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3243 *${as_nl}ac_space=\ *)
3244 sed -n \
3245 "s/'\''/'\''\\\\'\'''\''/g;
3246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3247 ;; #(
3248 *)
3249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3250 ;;
3251 esac |
3252 sort
3253)
3254 echo
3255
cristy98dddb52010-11-04 00:30:15 +00003256 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003257## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003258## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003259 echo
3260 for ac_var in $ac_subst_vars
3261 do
3262 eval ac_val=\$$ac_var
3263 case $ac_val in
3264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3265 esac
3266 $as_echo "$ac_var='\''$ac_val'\''"
3267 done | sort
3268 echo
3269
3270 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003271 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003272## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003273## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003274 echo
3275 for ac_var in $ac_subst_files
3276 do
3277 eval ac_val=\$$ac_var
3278 case $ac_val in
3279 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3280 esac
3281 $as_echo "$ac_var='\''$ac_val'\''"
3282 done | sort
3283 echo
3284 fi
3285
3286 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003287 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003288## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003289## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003290 echo
3291 cat confdefs.h
3292 echo
3293 fi
3294 test "$ac_signal" != 0 &&
3295 $as_echo "$as_me: caught signal $ac_signal"
3296 $as_echo "$as_me: exit $exit_status"
3297 } >&5
3298 rm -f core *.core core.conftest.* &&
3299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3300 exit $exit_status
3301' 0
3302for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003304done
3305ac_signal=0
3306
3307# confdefs.h avoids OS command line length limits that DEFS can exceed.
3308rm -f -r conftest* confdefs.h
3309
cristy8b350f62009-11-15 23:12:43 +00003310$as_echo "/* confdefs.h */" > confdefs.h
3311
cristy3ed852e2009-09-05 21:47:34 +00003312# Predefined preprocessor variables.
3313
3314cat >>confdefs.h <<_ACEOF
3315#define PACKAGE_NAME "$PACKAGE_NAME"
3316_ACEOF
3317
cristy3ed852e2009-09-05 21:47:34 +00003318cat >>confdefs.h <<_ACEOF
3319#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3320_ACEOF
3321
cristy3ed852e2009-09-05 21:47:34 +00003322cat >>confdefs.h <<_ACEOF
3323#define PACKAGE_VERSION "$PACKAGE_VERSION"
3324_ACEOF
3325
cristy3ed852e2009-09-05 21:47:34 +00003326cat >>confdefs.h <<_ACEOF
3327#define PACKAGE_STRING "$PACKAGE_STRING"
3328_ACEOF
3329
cristy3ed852e2009-09-05 21:47:34 +00003330cat >>confdefs.h <<_ACEOF
3331#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3332_ACEOF
3333
cristy8b350f62009-11-15 23:12:43 +00003334cat >>confdefs.h <<_ACEOF
3335#define PACKAGE_URL "$PACKAGE_URL"
3336_ACEOF
3337
cristy3ed852e2009-09-05 21:47:34 +00003338
3339# Let the site file select an alternate cache file if it wants to.
3340# Prefer an explicitly selected file to automatically selected ones.
3341ac_site_file1=NONE
3342ac_site_file2=NONE
3343if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003344 # We do not want a PATH search for config.site.
3345 case $CONFIG_SITE in #((
3346 -*) ac_site_file1=./$CONFIG_SITE;;
3347 */*) ac_site_file1=$CONFIG_SITE;;
3348 *) ac_site_file1=./$CONFIG_SITE;;
3349 esac
cristy3ed852e2009-09-05 21:47:34 +00003350elif test "x$prefix" != xNONE; then
3351 ac_site_file1=$prefix/share/config.site
3352 ac_site_file2=$prefix/etc/config.site
3353else
3354 ac_site_file1=$ac_default_prefix/share/config.site
3355 ac_site_file2=$ac_default_prefix/etc/config.site
3356fi
3357for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3358do
3359 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003360 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003362$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3363 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003364 . "$ac_site_file" \
3365 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367as_fn_error $? "failed to load site script $ac_site_file
3368See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003369 fi
3370done
3371
3372if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003373 # Some versions of bash will fail to source /dev/null (special files
3374 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3375 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003376 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003377$as_echo "$as_me: loading cache $cache_file" >&6;}
3378 case $cache_file in
3379 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3380 *) . "./$cache_file";;
3381 esac
3382 fi
3383else
cristy8b350f62009-11-15 23:12:43 +00003384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003385$as_echo "$as_me: creating cache $cache_file" >&6;}
3386 >$cache_file
3387fi
3388
cristycd4c5312009-11-22 01:19:08 +00003389as_fn_append ac_header_list " stdlib.h"
3390as_fn_append ac_header_list " unistd.h"
3391as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003392# Check that the precious variables saved in the cache have kept the same
3393# value.
3394ac_cache_corrupted=false
3395for ac_var in $ac_precious_vars; do
3396 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3397 eval ac_new_set=\$ac_env_${ac_var}_set
3398 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3399 eval ac_new_val=\$ac_env_${ac_var}_value
3400 case $ac_old_set,$ac_new_set in
3401 set,)
cristy8b350f62009-11-15 23:12:43 +00003402 { $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 +00003403$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3404 ac_cache_corrupted=: ;;
3405 ,set)
cristy8b350f62009-11-15 23:12:43 +00003406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003407$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3408 ac_cache_corrupted=: ;;
3409 ,);;
3410 *)
3411 if test "x$ac_old_val" != "x$ac_new_val"; then
3412 # differences in whitespace do not lead to failure.
3413 ac_old_val_w=`echo x $ac_old_val`
3414 ac_new_val_w=`echo x $ac_new_val`
3415 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003417$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3418 ac_cache_corrupted=:
3419 else
cristy8b350f62009-11-15 23:12:43 +00003420 { $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 +00003421$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3422 eval $ac_var=\$ac_old_val
3423 fi
cristy8b350f62009-11-15 23:12:43 +00003424 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003425$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003426 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003427$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3428 fi;;
3429 esac
3430 # Pass precious variables to config.status.
3431 if test "$ac_new_set" = set; then
3432 case $ac_new_val in
3433 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3434 *) ac_arg=$ac_var=$ac_new_val ;;
3435 esac
3436 case " $ac_configure_args " in
3437 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003438 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003439 esac
3440 fi
3441done
3442if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003446$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003447 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003448fi
cristy8b350f62009-11-15 23:12:43 +00003449## -------------------- ##
3450## Main body of script. ##
3451## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003452
3453ac_ext=c
3454ac_cpp='$CPP $CPPFLAGS'
3455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458
3459
3460
3461ac_aux_dir=
3462for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003463 if test -f "$ac_dir/install-sh"; then
3464 ac_aux_dir=$ac_dir
3465 ac_install_sh="$ac_aux_dir/install-sh -c"
3466 break
3467 elif test -f "$ac_dir/install.sh"; then
3468 ac_aux_dir=$ac_dir
3469 ac_install_sh="$ac_aux_dir/install.sh -c"
3470 break
3471 elif test -f "$ac_dir/shtool"; then
3472 ac_aux_dir=$ac_dir
3473 ac_install_sh="$ac_aux_dir/shtool install -c"
3474 break
3475 fi
cristy3ed852e2009-09-05 21:47:34 +00003476done
3477if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003478 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003479fi
3480
3481# These three variables are undocumented and unsupported,
3482# and are intended to be withdrawn in a future Autoconf release.
3483# They can cause serious problems if a builder's source tree is in a directory
3484# whose full name contains unusual characters.
3485ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3486ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3487ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3488
3489
3490
3491
3492ac_config_headers="$ac_config_headers config/config.h"
3493
cristy24fc1fe2010-10-23 21:13:01 +00003494
cristy01ff9f32012-12-01 18:15:29 +00003495ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003496
cristycf0cbcc2013-02-13 23:32:58 +00003497ac_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/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap PerlMagick/Magick.pm 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 +00003498
3499
3500#
3501# Save initial user-tunable values
3502#
3503USER_LIBS=$LIBS
3504for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3505 eval isset=\${$var+set}
3506 if test "$isset" = 'set'; then
3507 eval val=$`echo $var`
3508 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3509 fi
3510done
3511
3512
3513CONFIGURE_ARGS="$0 ${ac_configure_args}"
3514
3515
3516# Source file containing package/library versioning information.
3517. ${srcdir}/version.sh
3518
cristy15a88782010-01-31 23:24:49 +00003519echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003520# Make sure we can run config.sub.
3521$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003522 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003523
cristy8b350f62009-11-15 23:12:43 +00003524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003525$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003526if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003527 $as_echo_n "(cached) " >&6
3528else
3529 ac_build_alias=$build_alias
3530test "x$ac_build_alias" = x &&
3531 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3532test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003533 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003534ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003535 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003536
3537fi
cristy8b350f62009-11-15 23:12:43 +00003538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003539$as_echo "$ac_cv_build" >&6; }
3540case $ac_cv_build in
3541*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003542*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003543esac
3544build=$ac_cv_build
3545ac_save_IFS=$IFS; IFS='-'
3546set x $ac_cv_build
3547shift
3548build_cpu=$1
3549build_vendor=$2
3550shift; shift
3551# Remember, the first character of IFS is used to create $*,
3552# except with old shells:
3553build_os=$*
3554IFS=$ac_save_IFS
3555case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3556
3557
cristy8b350f62009-11-15 23:12:43 +00003558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003559$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003560if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003561 $as_echo_n "(cached) " >&6
3562else
3563 if test "x$host_alias" = x; then
3564 ac_cv_host=$ac_cv_build
3565else
3566 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003567 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003568fi
3569
3570fi
cristy8b350f62009-11-15 23:12:43 +00003571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003572$as_echo "$ac_cv_host" >&6; }
3573case $ac_cv_host in
3574*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003575*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003576esac
3577host=$ac_cv_host
3578ac_save_IFS=$IFS; IFS='-'
3579set x $ac_cv_host
3580shift
3581host_cpu=$1
3582host_vendor=$2
3583shift; shift
3584# Remember, the first character of IFS is used to create $*,
3585# except with old shells:
3586host_os=$*
3587IFS=$ac_save_IFS
3588case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3589
3590
cristy8b350f62009-11-15 23:12:43 +00003591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003592$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003593if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003594 $as_echo_n "(cached) " >&6
3595else
3596 if test "x$target_alias" = x; then
3597 ac_cv_target=$ac_cv_host
3598else
3599 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003600 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003601fi
3602
3603fi
cristy8b350f62009-11-15 23:12:43 +00003604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003605$as_echo "$ac_cv_target" >&6; }
3606case $ac_cv_target in
3607*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003608*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003609esac
3610target=$ac_cv_target
3611ac_save_IFS=$IFS; IFS='-'
3612set x $ac_cv_target
3613shift
3614target_cpu=$1
3615target_vendor=$2
3616shift; shift
3617# Remember, the first character of IFS is used to create $*,
3618# except with old shells:
3619target_os=$*
3620IFS=$ac_save_IFS
3621case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3622
3623
3624# The aliases save the names the user supplied, while $host etc.
3625# will get canonicalized.
3626test -n "$target_alias" &&
3627 test "$program_prefix$program_suffix$program_transform_name" = \
3628 NONENONEs,x,x, &&
3629 program_prefix=${target_alias}-
3630
cristy837d6dc2010-02-27 01:16:57 +00003631
3632
3633
cristy8be34142012-06-17 14:07:18 +00003634
cristy19615b82011-04-13 20:02:01 +00003635MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003636
3637
cristy27d53d62012-07-29 23:30:07 +00003638cat >>confdefs.h <<_ACEOF
3639#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3640_ACEOF
3641
3642
cristy19615b82011-04-13 20:02:01 +00003643MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003644
3645
cristy27d53d62012-07-29 23:30:07 +00003646cat >>confdefs.h <<_ACEOF
3647#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3648_ACEOF
3649
3650
cristy19615b82011-04-13 20:02:01 +00003651MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003652
3653
cristy27d53d62012-07-29 23:30:07 +00003654cat >>confdefs.h <<_ACEOF
3655#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3656_ACEOF
3657
3658
cristy37442762013-02-10 21:07:23 +00003659
3660# Substitute versioning
3661MAGICK_MAJOR_VERSION=7
3662
3663MAGICK_MINOR_VERSION=0
3664
3665MAGICK_MICRO_VERSION=0
3666
3667MAGICK_PATCHLEVEL_VERSION=0
3668
3669MAGICK_VERSION=7.0.0-0
3670
cristyb3b90d32013-02-16 15:44:08 +00003671MAGICK_SVN_REVISION=11008:11057M
cristy37442762013-02-10 21:07:23 +00003672
3673
cristy3ed852e2009-09-05 21:47:34 +00003674# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003675MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3676
3677MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3678
cristy37442762013-02-10 21:07:23 +00003679
cristyd694ca32011-03-27 21:42:54 +00003680
cristy3ed852e2009-09-05 21:47:34 +00003681
3682
3683# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3685$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003686# Reject unsafe characters in $srcdir or the absolute working directory
3687# name. Accept space and tab only in the latter.
3688am_lf='
3689'
3690case `pwd` in
3691 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003692 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003693esac
3694case $srcdir in
3695 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003696 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003697esac
cristy3ed852e2009-09-05 21:47:34 +00003698
cristyc0890a62012-07-19 00:18:20 +00003699# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003700# arguments. Must try -L first in case configure is actually a
3701# symlink; some systems play weird games with the mod time of symlinks
3702# (eg FreeBSD returns the mod time of the symlink's containing
3703# directory).
3704if (
cristyc0890a62012-07-19 00:18:20 +00003705 am_has_slept=no
3706 for am_try in 1 2; do
3707 echo "timestamp, slept: $am_has_slept" > conftest.file
3708 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3709 if test "$*" = "X"; then
3710 # -L didn't work.
3711 set X `ls -t "$srcdir/configure" conftest.file`
3712 fi
3713 if test "$*" != "X $srcdir/configure conftest.file" \
3714 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003715
cristyc0890a62012-07-19 00:18:20 +00003716 # If neither matched, then we have a broken ls. This can happen
3717 # if, for instance, CONFIG_SHELL is bash and it inherits a
3718 # broken ls alias from the environment. This has actually
3719 # happened. Such a system could not be considered "sane".
3720 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3721 alias in your environment" "$LINENO" 5
3722 fi
3723 if test "$2" = conftest.file || test $am_try -eq 2; then
3724 break
3725 fi
3726 # Just in case.
3727 sleep 1
3728 am_has_slept=yes
3729 done
cristy73bd4a52010-10-05 11:24:23 +00003730 test "$2" = conftest.file
3731 )
3732then
3733 # Ok.
3734 :
3735else
cristy98dddb52010-11-04 00:30:15 +00003736 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003737Check your system clock" "$LINENO" 5
3738fi
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3740$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003741# If we didn't sleep, we still need to ensure time stamps of config.status and
3742# generated files are strictly newer.
3743am_sleep_pid=
3744if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3745 ( sleep 1 ) &
3746 am_sleep_pid=$!
3747fi
cristy73bd4a52010-10-05 11:24:23 +00003748
cristyc0890a62012-07-19 00:18:20 +00003749rm -f conftest.file
3750
3751
cristy58d34aa2013-01-24 15:11:54 +00003752am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003753
3754# Find a good install program. We prefer a C program (faster),
3755# so one script is as good as another. But avoid the broken or
3756# incompatible versions:
3757# SysV /etc/install, /usr/sbin/install
3758# SunOS /usr/etc/install
3759# IRIX /sbin/install
3760# AIX /bin/install
3761# AmigaOS /C/install, which installs bootblocks on floppy discs
3762# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3763# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3764# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3765# OS/2's system install, which has a completely different semantic
3766# ./install, which can be erroneously created by make from ./install.sh.
3767# Reject install programs that cannot install multiple files.
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3769$as_echo_n "checking for a BSD-compatible install... " >&6; }
3770if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003771if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003772 $as_echo_n "(cached) " >&6
3773else
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775for as_dir in $PATH
3776do
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 # Account for people who put trailing slashes in PATH elements.
3780case $as_dir/ in #((
3781 ./ | .// | /[cC]/* | \
3782 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3783 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3784 /usr/ucb/* ) ;;
3785 *)
3786 # OSF1 and SCO ODT 3.0 have their own names for install.
3787 # Don't use installbsd from OSF since it installs stuff as root
3788 # by default.
3789 for ac_prog in ginstall scoinst install; do
3790 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003791 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003792 if test $ac_prog = install &&
3793 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3794 # AIX install. It has an incompatible calling convention.
3795 :
3796 elif test $ac_prog = install &&
3797 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3798 # program-specific install script used by HP pwplus--don't use.
3799 :
3800 else
3801 rm -rf conftest.one conftest.two conftest.dir
3802 echo one > conftest.one
3803 echo two > conftest.two
3804 mkdir conftest.dir
3805 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3806 test -s conftest.one && test -s conftest.two &&
3807 test -s conftest.dir/conftest.one &&
3808 test -s conftest.dir/conftest.two
3809 then
3810 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3811 break 3
3812 fi
3813 fi
3814 fi
3815 done
3816 done
3817 ;;
3818esac
3819
3820 done
3821IFS=$as_save_IFS
3822
3823rm -rf conftest.one conftest.two conftest.dir
3824
3825fi
3826 if test "${ac_cv_path_install+set}" = set; then
3827 INSTALL=$ac_cv_path_install
3828 else
3829 # As a last resort, use the slow shell script. Don't cache a
3830 # value for INSTALL within a source directory, because that will
3831 # break other packages using the cache if that directory is
3832 # removed, or if the value is a relative name.
3833 INSTALL=$ac_install_sh
3834 fi
3835fi
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3837$as_echo "$INSTALL" >&6; }
3838
3839# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3840# It thinks the first close brace ends the variable substitution.
3841test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3842
3843test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3844
3845test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3846
3847test "$program_prefix" != NONE &&
3848 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3849# Use a double $ so make ignores it.
3850test "$program_suffix" != NONE &&
3851 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3852# Double any \ or $.
3853# By default was `s,x,x', remove it if useless.
3854ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3855program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3856
3857# expand $ac_aux_dir to an absolute path
3858am_aux_dir=`cd $ac_aux_dir && pwd`
3859
3860if test x"${MISSING+set}" != xset; then
3861 case $am_aux_dir in
3862 *\ * | *\ *)
3863 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3864 *)
3865 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3866 esac
3867fi
3868# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003869if eval "$MISSING --is-lightweight"; then
3870 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003871else
3872 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3874$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003875fi
3876
3877if test x"${install_sh}" != xset; then
3878 case $am_aux_dir in
3879 *\ * | *\ *)
3880 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3881 *)
3882 install_sh="\${SHELL} $am_aux_dir/install-sh"
3883 esac
3884fi
3885
cristyc0890a62012-07-19 00:18:20 +00003886# Installed binaries are usually stripped using 'strip' when the user
3887# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003888# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003889# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003890if test "$cross_compiling" != no; then
3891 if test -n "$ac_tool_prefix"; then
3892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3893set dummy ${ac_tool_prefix}strip; ac_word=$2
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003896if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003897 $as_echo_n "(cached) " >&6
3898else
3899 if test -n "$STRIP"; then
3900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3901else
3902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH
3904do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003909 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913done
3914 done
3915IFS=$as_save_IFS
3916
3917fi
3918fi
3919STRIP=$ac_cv_prog_STRIP
3920if test -n "$STRIP"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3922$as_echo "$STRIP" >&6; }
3923else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925$as_echo "no" >&6; }
3926fi
3927
3928
3929fi
3930if test -z "$ac_cv_prog_STRIP"; then
3931 ac_ct_STRIP=$STRIP
3932 # Extract the first word of "strip", so it can be a program name with args.
3933set dummy strip; ac_word=$2
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003936if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003937 $as_echo_n "(cached) " >&6
3938else
3939 if test -n "$ac_ct_STRIP"; then
3940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3941else
3942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943for as_dir in $PATH
3944do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003949 ac_cv_prog_ac_ct_STRIP="strip"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3952 fi
3953done
3954 done
3955IFS=$as_save_IFS
3956
3957fi
3958fi
3959ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3960if test -n "$ac_ct_STRIP"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3962$as_echo "$ac_ct_STRIP" >&6; }
3963else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965$as_echo "no" >&6; }
3966fi
3967
3968 if test "x$ac_ct_STRIP" = x; then
3969 STRIP=":"
3970 else
3971 case $cross_compiling:$ac_tool_warned in
3972yes:)
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3975ac_tool_warned=yes ;;
3976esac
3977 STRIP=$ac_ct_STRIP
3978 fi
3979else
3980 STRIP="$ac_cv_prog_STRIP"
3981fi
3982
3983fi
3984INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3985
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3987$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3988if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003989 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003990 $as_echo_n "(cached) " >&6
3991else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3994do
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_prog in mkdir gmkdir; do
3998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003999 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004000 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4001 'mkdir (GNU coreutils) '* | \
4002 'mkdir (coreutils) '* | \
4003 'mkdir (fileutils) '4.1*)
4004 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4005 break 3;;
4006 esac
4007 done
4008 done
4009 done
4010IFS=$as_save_IFS
4011
4012fi
4013
4014 test -d ./--version && rmdir ./--version
4015 if test "${ac_cv_path_mkdir+set}" = set; then
4016 MKDIR_P="$ac_cv_path_mkdir -p"
4017 else
4018 # As a last resort, use the slow shell script. Don't cache a
4019 # value for MKDIR_P within a source directory, because that will
4020 # break other packages using the cache if that directory is
4021 # removed, or if the value is a relative name.
4022 MKDIR_P="$ac_install_sh -d"
4023 fi
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4026$as_echo "$MKDIR_P" >&6; }
4027
cristy73bd4a52010-10-05 11:24:23 +00004028for ac_prog in gawk mawk nawk awk
4029do
4030 # Extract the first word of "$ac_prog", so it can be a program name with args.
4031set dummy $ac_prog; ac_word=$2
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004034if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004035 $as_echo_n "(cached) " >&6
4036else
4037 if test -n "$AWK"; then
4038 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4039else
4040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041for as_dir in $PATH
4042do
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004047 ac_cv_prog_AWK="$ac_prog"
4048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 break 2
4050 fi
4051done
4052 done
4053IFS=$as_save_IFS
4054
4055fi
4056fi
4057AWK=$ac_cv_prog_AWK
4058if test -n "$AWK"; then
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4060$as_echo "$AWK" >&6; }
4061else
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063$as_echo "no" >&6; }
4064fi
4065
4066
4067 test -n "$AWK" && break
4068done
4069
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4071$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4072set x ${MAKE-make}
4073ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004074if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004075 $as_echo_n "(cached) " >&6
4076else
4077 cat >conftest.make <<\_ACEOF
4078SHELL = /bin/sh
4079all:
4080 @echo '@@@%%%=$(MAKE)=@@@%%%'
4081_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004082# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004083case `${MAKE-make} -f conftest.make 2>/dev/null` in
4084 *@@@%%%=?*=@@@%%%*)
4085 eval ac_cv_prog_make_${ac_make}_set=yes;;
4086 *)
4087 eval ac_cv_prog_make_${ac_make}_set=no;;
4088esac
4089rm -f conftest.make
4090fi
4091if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4093$as_echo "yes" >&6; }
4094 SET_MAKE=
4095else
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4097$as_echo "no" >&6; }
4098 SET_MAKE="MAKE=${MAKE-make}"
4099fi
4100
4101rm -rf .tst 2>/dev/null
4102mkdir .tst 2>/dev/null
4103if test -d .tst; then
4104 am__leading_dot=.
4105else
4106 am__leading_dot=_
4107fi
4108rmdir .tst 2>/dev/null
4109
cristya448bd22011-10-14 12:38:13 +00004110# Check whether --enable-silent-rules was given.
4111if test "${enable_silent_rules+set}" = set; then :
4112 enableval=$enable_silent_rules;
4113fi
4114
cristyc0890a62012-07-19 00:18:20 +00004115case $enable_silent_rules in # (((
4116 yes) AM_DEFAULT_VERBOSITY=0;;
4117 no) AM_DEFAULT_VERBOSITY=1;;
4118 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004119esac
cristyc3fb77b2012-02-06 01:49:41 +00004120am_make=${MAKE-make}
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4122$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4123if ${am_cv_make_support_nested_variables+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125else
4126 if $as_echo 'TRUE=$(BAR$(V))
4127BAR0=false
4128BAR1=true
4129V=1
4130am__doit:
4131 @$(TRUE)
4132.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4133 am_cv_make_support_nested_variables=yes
4134else
4135 am_cv_make_support_nested_variables=no
4136fi
4137fi
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4139$as_echo "$am_cv_make_support_nested_variables" >&6; }
4140if test $am_cv_make_support_nested_variables = yes; then
4141 AM_V='$(V)'
4142 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4143else
4144 AM_V=$AM_DEFAULT_VERBOSITY
4145 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4146fi
cristya448bd22011-10-14 12:38:13 +00004147AM_BACKSLASH='\'
4148
cristy73bd4a52010-10-05 11:24:23 +00004149if test "`cd $srcdir && pwd`" != "`pwd`"; then
4150 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4151 # is not polluted with repeated "-I."
4152 am__isrc=' -I$(srcdir)'
4153 # test to see if srcdir already configured
4154 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004155 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004156 fi
4157fi
4158
4159# test whether we have cygpath
4160if test -z "$CYGPATH_W"; then
4161 if (cygpath --version) >/dev/null 2>/dev/null; then
4162 CYGPATH_W='cygpath -w'
4163 else
4164 CYGPATH_W=echo
4165 fi
4166fi
4167
4168
4169# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004170 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004171 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004172
4173
cristya448bd22011-10-14 12:38:13 +00004174cat >>confdefs.h <<_ACEOF
4175#define PACKAGE "$PACKAGE"
4176_ACEOF
4177
4178
4179cat >>confdefs.h <<_ACEOF
4180#define VERSION "$VERSION"
4181_ACEOF
4182
cristy73bd4a52010-10-05 11:24:23 +00004183# Some tools Automake needs.
4184
4185ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4186
4187
4188AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4189
4190
4191AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4192
4193
4194AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4195
4196
4197MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4198
cristyc0890a62012-07-19 00:18:20 +00004199# For better backward compatibility. To be removed once Automake 1.9.x
4200# dies out for good. For more background, see:
4201# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4202# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4203mkdir_p='$(MKDIR_P)'
4204
cristy73bd4a52010-10-05 11:24:23 +00004205# We need awk for the "check" target. The system "awk" is bad on
4206# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004207# Always define AMTAR for backward compatibility. Yes, it's still used
4208# in the wild :-( We should find a proper way to deprecate it ...
4209AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004210
cristyc3fb77b2012-02-06 01:49:41 +00004211am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004212
4213
4214
4215
4216
cristy3ed852e2009-09-05 21:47:34 +00004217
4218# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004219# Check whether --enable-silent-rules was given.
4220if test "${enable_silent_rules+set}" = set; then :
4221 enableval=$enable_silent_rules;
4222fi
4223
cristyc0890a62012-07-19 00:18:20 +00004224case $enable_silent_rules in # (((
4225 yes) AM_DEFAULT_VERBOSITY=0;;
4226 no) AM_DEFAULT_VERBOSITY=1;;
4227 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004228esac
cristyc3fb77b2012-02-06 01:49:41 +00004229am_make=${MAKE-make}
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4231$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4232if ${am_cv_make_support_nested_variables+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234else
4235 if $as_echo 'TRUE=$(BAR$(V))
4236BAR0=false
4237BAR1=true
4238V=1
4239am__doit:
4240 @$(TRUE)
4241.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4242 am_cv_make_support_nested_variables=yes
4243else
4244 am_cv_make_support_nested_variables=no
4245fi
4246fi
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4248$as_echo "$am_cv_make_support_nested_variables" >&6; }
4249if test $am_cv_make_support_nested_variables = yes; then
4250 AM_V='$(V)'
4251 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4252else
4253 AM_V=$AM_DEFAULT_VERBOSITY
4254 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4255fi
cristy73bd4a52010-10-05 11:24:23 +00004256AM_BACKSLASH='\'
4257
cristy3ed852e2009-09-05 21:47:34 +00004258
4259MAGICK_LIB_VERSION="0x"
4260if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4261 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4262fi
4263MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4264if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4265 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4266fi
4267MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4268if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4269 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4270fi
4271MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4272
4273
4274# Definition used to define MagickLibVersionText in version.h
4275MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4276
4277
4278# Definition used to define MagickLibVersionNumber in version.h
4279MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4280
4281
4282# Regenerate config.status if ChangeLog or version.sh is updated.
4283CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4284
4285
4286PERLMAINCC=$CC
4287
4288MAGICK_CFLAGS=''
4289MAGICK_CPPFLAGS=$CPPFLAGS_USER
4290MAGICK_PCFLAGS=$CPPFLAGS_USER
4291MAGICK_LDFLAGS=''
4292MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004293MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004294
4295#
4296# Evaluate shell variable equivalents to Makefile directory variables
4297#
4298if test "x$prefix" = xNONE; then
4299 prefix=$ac_default_prefix
4300fi
4301# Let make expand exec_prefix.
4302if test "x$exec_prefix" = xNONE; then
4303 exec_prefix='${prefix}'
4304fi
4305
4306#
4307eval "eval PREFIX_DIR=${prefix}"
4308
4309eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4310
4311eval "eval BIN_DIR=$bindir"
4312
4313eval "eval SBIN_DIR=$sbindir"
4314
4315eval "eval LIBEXEC_DIR=$libexecdir"
4316
4317eval "eval DATA_DIR=$datadir"
4318
cristy4e65ec22012-04-08 01:33:27 +00004319eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004320
cristy3ed852e2009-09-05 21:47:34 +00004321eval "eval SYSCONF_DIR=$sysconfdir"
4322
4323eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4324
4325eval "eval LOCALSTATE_DIR=$localstatedir"
4326
4327eval "eval LIB_DIR=$libdir"
4328
4329eval "eval INCLUDE_DIR=$includedir"
4330
4331eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4332
4333eval "eval INFO_DIR=$infodir"
4334
4335eval "eval MAN_DIR=$mandir"
4336
4337
4338# Get full paths to source and build directories
4339srcdirfull="`cd $srcdir && pwd`"
4340builddir="`pwd`"
4341
4342#
4343# Compute variables useful for running uninstalled software.
4344#
4345MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4346MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4347MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4348MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4349DIRSEP=':'
4350case "${build_os}" in
4351 mingw* )
4352 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4353 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4354 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4355 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4356 DIRSEP=';'
4357 ;;
4358esac
4359case "${host_os}" in
4360 mingw* )
4361 DIRSEP=';'
4362 ;;
4363esac
4364
4365
4366
4367
4368
4369
cristya0b81c32010-01-22 02:54:33 +00004370
4371#
4372# Enable OS features.
4373#
cristy73bd4a52010-10-05 11:24:23 +00004374DEPDIR="${am__leading_dot}deps"
4375
4376ac_config_commands="$ac_config_commands depfiles"
4377
4378
4379am_make=${MAKE-make}
4380cat > confinc << 'END'
4381am__doit:
4382 @echo this is the am__doit target
4383.PHONY: am__doit
4384END
4385# If we don't find an include directive, just comment out the code.
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4387$as_echo_n "checking for style of include used by $am_make... " >&6; }
4388am__include="#"
4389am__quote=
4390_am_result=none
4391# First try GNU make style include.
4392echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004393# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004394case `$am_make -s -f confmf 2> /dev/null` in #(
4395*the\ am__doit\ target*)
4396 am__include=include
4397 am__quote=
4398 _am_result=GNU
4399 ;;
4400esac
4401# Now try BSD make style include.
4402if test "$am__include" = "#"; then
4403 echo '.include "confinc"' > confmf
4404 case `$am_make -s -f confmf 2> /dev/null` in #(
4405 *the\ am__doit\ target*)
4406 am__include=.include
4407 am__quote="\""
4408 _am_result=BSD
4409 ;;
4410 esac
4411fi
4412
4413
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4415$as_echo "$_am_result" >&6; }
4416rm -f confinc confmf
4417
4418# Check whether --enable-dependency-tracking was given.
4419if test "${enable_dependency_tracking+set}" = set; then :
4420 enableval=$enable_dependency_tracking;
4421fi
4422
4423if test "x$enable_dependency_tracking" != xno; then
4424 am_depcomp="$ac_aux_dir/depcomp"
4425 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004426 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004427fi
4428 if test "x$enable_dependency_tracking" != xno; then
4429 AMDEP_TRUE=
4430 AMDEP_FALSE='#'
4431else
4432 AMDEP_TRUE='#'
4433 AMDEP_FALSE=
4434fi
4435
4436
cristy3ed852e2009-09-05 21:47:34 +00004437ac_ext=c
4438ac_cpp='$CPP $CPPFLAGS'
4439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442if test -n "$ac_tool_prefix"; then
4443 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4444set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004446$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004447if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004448 $as_echo_n "(cached) " >&6
4449else
4450 if test -n "$CC"; then
4451 ac_cv_prog_CC="$CC" # Let the user override the test.
4452else
4453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004458 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004460 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004462 break 2
4463 fi
4464done
cristy8b350f62009-11-15 23:12:43 +00004465 done
cristy3ed852e2009-09-05 21:47:34 +00004466IFS=$as_save_IFS
4467
4468fi
4469fi
4470CC=$ac_cv_prog_CC
4471if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004473$as_echo "$CC" >&6; }
4474else
cristy8b350f62009-11-15 23:12:43 +00004475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004476$as_echo "no" >&6; }
4477fi
4478
4479
4480fi
4481if test -z "$ac_cv_prog_CC"; then
4482 ac_ct_CC=$CC
4483 # Extract the first word of "gcc", so it can be a program name with args.
4484set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004486$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004487if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004488 $as_echo_n "(cached) " >&6
4489else
4490 if test -n "$ac_ct_CC"; then
4491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4492else
4493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494for as_dir in $PATH
4495do
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004498 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004500 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004502 break 2
4503 fi
4504done
cristy8b350f62009-11-15 23:12:43 +00004505 done
cristy3ed852e2009-09-05 21:47:34 +00004506IFS=$as_save_IFS
4507
4508fi
4509fi
4510ac_ct_CC=$ac_cv_prog_ac_ct_CC
4511if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004513$as_echo "$ac_ct_CC" >&6; }
4514else
cristy8b350f62009-11-15 23:12:43 +00004515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004516$as_echo "no" >&6; }
4517fi
4518
4519 if test "x$ac_ct_CC" = x; then
4520 CC=""
4521 else
4522 case $cross_compiling:$ac_tool_warned in
4523yes:)
cristy8b350f62009-11-15 23:12:43 +00004524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4526ac_tool_warned=yes ;;
4527esac
4528 CC=$ac_ct_CC
4529 fi
4530else
4531 CC="$ac_cv_prog_CC"
4532fi
4533
4534if test -z "$CC"; then
4535 if test -n "$ac_tool_prefix"; then
4536 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4537set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004539$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004540if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004541 $as_echo_n "(cached) " >&6
4542else
4543 if test -n "$CC"; then
4544 ac_cv_prog_CC="$CC" # Let the user override the test.
4545else
4546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004551 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004553 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004555 break 2
4556 fi
4557done
cristy8b350f62009-11-15 23:12:43 +00004558 done
cristy3ed852e2009-09-05 21:47:34 +00004559IFS=$as_save_IFS
4560
4561fi
4562fi
4563CC=$ac_cv_prog_CC
4564if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004566$as_echo "$CC" >&6; }
4567else
cristy8b350f62009-11-15 23:12:43 +00004568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004569$as_echo "no" >&6; }
4570fi
4571
4572
4573 fi
4574fi
4575if test -z "$CC"; then
4576 # Extract the first word of "cc", so it can be a program name with args.
4577set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004579$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004580if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004581 $as_echo_n "(cached) " >&6
4582else
4583 if test -n "$CC"; then
4584 ac_cv_prog_CC="$CC" # Let the user override the test.
4585else
4586 ac_prog_rejected=no
4587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588for as_dir in $PATH
4589do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004592 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004594 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4595 ac_prog_rejected=yes
4596 continue
4597 fi
4598 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004600 break 2
4601 fi
4602done
cristy8b350f62009-11-15 23:12:43 +00004603 done
cristy3ed852e2009-09-05 21:47:34 +00004604IFS=$as_save_IFS
4605
4606if test $ac_prog_rejected = yes; then
4607 # We found a bogon in the path, so make sure we never use it.
4608 set dummy $ac_cv_prog_CC
4609 shift
4610 if test $# != 0; then
4611 # We chose a different compiler from the bogus one.
4612 # However, it has the same basename, so the bogon will be chosen
4613 # first if we set CC to just the basename; use the full file name.
4614 shift
4615 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4616 fi
4617fi
4618fi
4619fi
4620CC=$ac_cv_prog_CC
4621if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004623$as_echo "$CC" >&6; }
4624else
cristy8b350f62009-11-15 23:12:43 +00004625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004626$as_echo "no" >&6; }
4627fi
4628
4629
4630fi
4631if test -z "$CC"; then
4632 if test -n "$ac_tool_prefix"; then
4633 for ac_prog in cl.exe
4634 do
4635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4636set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004639if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004640 $as_echo_n "(cached) " >&6
4641else
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4644else
4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004650 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004652 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004654 break 2
4655 fi
4656done
cristy8b350f62009-11-15 23:12:43 +00004657 done
cristy3ed852e2009-09-05 21:47:34 +00004658IFS=$as_save_IFS
4659
4660fi
4661fi
4662CC=$ac_cv_prog_CC
4663if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004665$as_echo "$CC" >&6; }
4666else
cristy8b350f62009-11-15 23:12:43 +00004667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004668$as_echo "no" >&6; }
4669fi
4670
4671
4672 test -n "$CC" && break
4673 done
4674fi
4675if test -z "$CC"; then
4676 ac_ct_CC=$CC
4677 for ac_prog in cl.exe
4678do
4679 # Extract the first word of "$ac_prog", so it can be a program name with args.
4680set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004683if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004684 $as_echo_n "(cached) " >&6
4685else
4686 if test -n "$ac_ct_CC"; then
4687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4688else
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004696 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004698 break 2
4699 fi
4700done
cristy8b350f62009-11-15 23:12:43 +00004701 done
cristy3ed852e2009-09-05 21:47:34 +00004702IFS=$as_save_IFS
4703
4704fi
4705fi
4706ac_ct_CC=$ac_cv_prog_ac_ct_CC
4707if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004709$as_echo "$ac_ct_CC" >&6; }
4710else
cristy8b350f62009-11-15 23:12:43 +00004711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004712$as_echo "no" >&6; }
4713fi
4714
4715
4716 test -n "$ac_ct_CC" && break
4717done
4718
4719 if test "x$ac_ct_CC" = x; then
4720 CC=""
4721 else
4722 case $cross_compiling:$ac_tool_warned in
4723yes:)
cristy8b350f62009-11-15 23:12:43 +00004724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726ac_tool_warned=yes ;;
4727esac
4728 CC=$ac_ct_CC
4729 fi
4730fi
4731
4732fi
4733
4734
cristy8b350f62009-11-15 23:12:43 +00004735test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004736$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004737as_fn_error $? "no acceptable C compiler found in \$PATH
4738See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004739
4740# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004741$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004742set X $ac_compile
4743ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004744for ac_option in --version -v -V -qversion; do
4745 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004746case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749esac
cristy8b350f62009-11-15 23:12:43 +00004750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4751$as_echo "$ac_try_echo"; } >&5
4752 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004753 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004754 if test -s conftest.err; then
4755 sed '10a\
4756... rest of stderr output deleted ...
4757 10q' conftest.err >conftest.er1
4758 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004759 fi
cristycd4c5312009-11-22 01:19:08 +00004760 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4762 test $ac_status = 0; }
4763done
cristy3ed852e2009-09-05 21:47:34 +00004764
cristy8b350f62009-11-15 23:12:43 +00004765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004766/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004767
cristy3ed852e2009-09-05 21:47:34 +00004768int
4769main ()
4770{
4771
4772 ;
4773 return 0;
4774}
4775_ACEOF
4776ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004777ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004778# Try to create an executable without -o first, disregard a.out.
4779# It will help us diagnose broken compilers, and finding out an intuition
4780# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4782$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004783ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4784
4785# The possible output files:
4786ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4787
4788ac_rmfiles=
4789for ac_file in $ac_files
4790do
4791 case $ac_file in
4792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4793 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4794 esac
4795done
4796rm -f $ac_rmfiles
4797
cristy8b350f62009-11-15 23:12:43 +00004798if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004799case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4802esac
cristy8b350f62009-11-15 23:12:43 +00004803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4804$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004805 (eval "$ac_link_default") 2>&5
4806 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4808 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004809 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4810# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4811# in a Makefile. We should not override ac_cv_exeext if it was cached,
4812# so that the user can short-circuit this test for compilers unknown to
4813# Autoconf.
4814for ac_file in $ac_files ''
4815do
4816 test -f "$ac_file" || continue
4817 case $ac_file in
4818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4819 ;;
4820 [ab].out )
4821 # We found the default executable, but exeext='' is most
4822 # certainly right.
4823 break;;
4824 *.* )
cristy8b350f62009-11-15 23:12:43 +00004825 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004826 then :; else
4827 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4828 fi
4829 # We set ac_cv_exeext here because the later test for it is not
4830 # safe: cross compilers may not add the suffix if given an `-o'
4831 # argument, so we may need to know it at that point already.
4832 # Even if this section looks crufty: it has the advantage of
4833 # actually working.
4834 break;;
4835 * )
4836 break;;
4837 esac
4838done
4839test "$ac_cv_exeext" = no && ac_cv_exeext=
4840
4841else
4842 ac_file=''
4843fi
cristy8b350f62009-11-15 23:12:43 +00004844if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846$as_echo "no" >&6; }
4847$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004848sed 's/^/| /' conftest.$ac_ext >&5
4849
cristy8b350f62009-11-15 23:12:43 +00004850{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004852as_fn_error 77 "C compiler cannot create executables
4853See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004854else
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4856$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004857fi
cristycd4c5312009-11-22 01:19:08 +00004858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4859$as_echo_n "checking for C compiler default output file name... " >&6; }
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4861$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004862ac_exeext=$ac_cv_exeext
4863
cristycd4c5312009-11-22 01:19:08 +00004864rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004865ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004867$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004868if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004869case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872esac
cristy8b350f62009-11-15 23:12:43 +00004873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4874$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004875 (eval "$ac_link") 2>&5
4876 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4878 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004879 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4880# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4881# work properly (i.e., refer to `conftest.exe'), while it won't with
4882# `rm'.
4883for ac_file in conftest.exe conftest conftest.*; do
4884 test -f "$ac_file" || continue
4885 case $ac_file in
4886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4887 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4888 break;;
4889 * ) break;;
4890 esac
4891done
4892else
cristy8b350f62009-11-15 23:12:43 +00004893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004895as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4896See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004897fi
cristycd4c5312009-11-22 01:19:08 +00004898rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004900$as_echo "$ac_cv_exeext" >&6; }
4901
4902rm -f conftest.$ac_ext
4903EXEEXT=$ac_cv_exeext
4904ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h. */
4907#include <stdio.h>
4908int
4909main ()
4910{
4911FILE *f = fopen ("conftest.out", "w");
4912 return ferror (f) || fclose (f) != 0;
4913
4914 ;
4915 return 0;
4916}
4917_ACEOF
4918ac_clean_files="$ac_clean_files conftest.out"
4919# Check that the compiler produces executables we can run. If not, either
4920# the compiler is broken, or we cross compile.
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4922$as_echo_n "checking whether we are cross compiling... " >&6; }
4923if test "$cross_compiling" != yes; then
4924 { { ac_try="$ac_link"
4925case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4928esac
4929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4930$as_echo "$ac_try_echo"; } >&5
4931 (eval "$ac_link") 2>&5
4932 ac_status=$?
4933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4934 test $ac_status = 0; }
4935 if { ac_try='./conftest$ac_cv_exeext'
4936 { { case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939esac
4940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4941$as_echo "$ac_try_echo"; } >&5
4942 (eval "$ac_try") 2>&5
4943 ac_status=$?
4944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4945 test $ac_status = 0; }; }; then
4946 cross_compiling=no
4947 else
4948 if test "$cross_compiling" = maybe; then
4949 cross_compiling=yes
4950 else
4951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004953as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004954If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004955See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004956 fi
4957 fi
4958fi
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4960$as_echo "$cross_compiling" >&6; }
4961
4962rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4963ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004965$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004966if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004967 $as_echo_n "(cached) " >&6
4968else
cristy8b350f62009-11-15 23:12:43 +00004969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004970/* end confdefs.h. */
4971
4972int
4973main ()
4974{
4975
4976 ;
4977 return 0;
4978}
4979_ACEOF
4980rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004981if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004982case "(($ac_try" in
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4985esac
cristy8b350f62009-11-15 23:12:43 +00004986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4987$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004988 (eval "$ac_compile") 2>&5
4989 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4991 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004992 for ac_file in conftest.o conftest.obj conftest.*; do
4993 test -f "$ac_file" || continue;
4994 case $ac_file in
4995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4996 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4997 break;;
4998 esac
4999done
5000else
5001 $as_echo "$as_me: failed program was:" >&5
5002sed 's/^/| /' conftest.$ac_ext >&5
5003
cristy8b350f62009-11-15 23:12:43 +00005004{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005006as_fn_error $? "cannot compute suffix of object files: cannot compile
5007See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005008fi
cristy3ed852e2009-09-05 21:47:34 +00005009rm -f conftest.$ac_cv_objext conftest.$ac_ext
5010fi
cristy8b350f62009-11-15 23:12:43 +00005011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005012$as_echo "$ac_cv_objext" >&6; }
5013OBJEXT=$ac_cv_objext
5014ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005016$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005017if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005018 $as_echo_n "(cached) " >&6
5019else
cristy8b350f62009-11-15 23:12:43 +00005020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005021/* end confdefs.h. */
5022
5023int
5024main ()
5025{
5026#ifndef __GNUC__
5027 choke me
5028#endif
5029
5030 ;
5031 return 0;
5032}
5033_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005034if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005035 ac_compiler_gnu=yes
5036else
cristy8b350f62009-11-15 23:12:43 +00005037 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005038fi
cristy3ed852e2009-09-05 21:47:34 +00005039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040ac_cv_c_compiler_gnu=$ac_compiler_gnu
5041
5042fi
cristy8b350f62009-11-15 23:12:43 +00005043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005044$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5045if test $ac_compiler_gnu = yes; then
5046 GCC=yes
5047else
5048 GCC=
5049fi
5050ac_test_CFLAGS=${CFLAGS+set}
5051ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005053$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005054if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005055 $as_echo_n "(cached) " >&6
5056else
5057 ac_save_c_werror_flag=$ac_c_werror_flag
5058 ac_c_werror_flag=yes
5059 ac_cv_prog_cc_g=no
5060 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005062/* end confdefs.h. */
5063
5064int
5065main ()
5066{
5067
5068 ;
5069 return 0;
5070}
5071_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005072if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005073 ac_cv_prog_cc_g=yes
5074else
cristy8b350f62009-11-15 23:12:43 +00005075 CFLAGS=""
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005077/* end confdefs.h. */
5078
5079int
5080main ()
5081{
5082
5083 ;
5084 return 0;
5085}
5086_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005087if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005088
cristy8b350f62009-11-15 23:12:43 +00005089else
5090 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005091 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005093/* end confdefs.h. */
5094
5095int
5096main ()
5097{
5098
5099 ;
5100 return 0;
5101}
5102_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005103if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005104 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005105fi
cristy3ed852e2009-09-05 21:47:34 +00005106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107fi
cristy3ed852e2009-09-05 21:47:34 +00005108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109fi
cristy3ed852e2009-09-05 21:47:34 +00005110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 ac_c_werror_flag=$ac_save_c_werror_flag
5112fi
cristy8b350f62009-11-15 23:12:43 +00005113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005114$as_echo "$ac_cv_prog_cc_g" >&6; }
5115if test "$ac_test_CFLAGS" = set; then
5116 CFLAGS=$ac_save_CFLAGS
5117elif test $ac_cv_prog_cc_g = yes; then
5118 if test "$GCC" = yes; then
5119 CFLAGS="-g -O2"
5120 else
5121 CFLAGS="-g"
5122 fi
5123else
5124 if test "$GCC" = yes; then
5125 CFLAGS="-O2"
5126 else
5127 CFLAGS=
5128 fi
5129fi
cristy8b350f62009-11-15 23:12:43 +00005130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005131$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005132if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005133 $as_echo_n "(cached) " >&6
5134else
5135 ac_cv_prog_cc_c89=no
5136ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005138/* end confdefs.h. */
5139#include <stdarg.h>
5140#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005141struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005142/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5143struct buf { int x; };
5144FILE * (*rcsopen) (struct buf *, struct stat *, int);
5145static char *e (p, i)
5146 char **p;
5147 int i;
5148{
5149 return p[i];
5150}
5151static char *f (char * (*g) (char **, int), char **p, ...)
5152{
5153 char *s;
5154 va_list v;
5155 va_start (v,p);
5156 s = g (p, va_arg (v,int));
5157 va_end (v);
5158 return s;
5159}
5160
5161/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5162 function prototypes and stuff, but not '\xHH' hex character constants.
5163 These don't provoke an error unfortunately, instead are silently treated
5164 as 'x'. The following induces an error, until -std is added to get
5165 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5166 array size at least. It's necessary to write '\x00'==0 to get something
5167 that's true only with -std. */
5168int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5169
5170/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5171 inside strings and character constants. */
5172#define FOO(x) 'x'
5173int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5174
5175int test (int i, double x);
5176struct s1 {int (*f) (int a);};
5177struct s2 {int (*f) (double a);};
5178int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5179int argc;
5180char **argv;
5181int
5182main ()
5183{
5184return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5185 ;
5186 return 0;
5187}
5188_ACEOF
5189for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5190 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5191do
5192 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005193 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005194 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005195fi
cristy3ed852e2009-09-05 21:47:34 +00005196rm -f core conftest.err conftest.$ac_objext
5197 test "x$ac_cv_prog_cc_c89" != "xno" && break
5198done
5199rm -f conftest.$ac_ext
5200CC=$ac_save_CC
5201
5202fi
5203# AC_CACHE_VAL
5204case "x$ac_cv_prog_cc_c89" in
5205 x)
cristy8b350f62009-11-15 23:12:43 +00005206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005207$as_echo "none needed" >&6; } ;;
5208 xno)
cristy8b350f62009-11-15 23:12:43 +00005209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005210$as_echo "unsupported" >&6; } ;;
5211 *)
5212 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005214$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5215esac
cristy8b350f62009-11-15 23:12:43 +00005216if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005217
cristy8b350f62009-11-15 23:12:43 +00005218fi
cristy3ed852e2009-09-05 21:47:34 +00005219
5220ac_ext=c
5221ac_cpp='$CPP $CPPFLAGS'
5222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005225
cristy73bd4a52010-10-05 11:24:23 +00005226depcc="$CC" am_compiler_list=
5227
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5229$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005230if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005231 $as_echo_n "(cached) " >&6
5232else
5233 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5234 # We make a subdir and do the tests there. Otherwise we can end up
5235 # making bogus files that we don't know about and never remove. For
5236 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005237 # making a dummy file named 'D' -- because '-MD' means "put the output
5238 # in D".
cristy7247bba2012-02-05 16:37:27 +00005239 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005240 mkdir conftest.dir
5241 # Copy depcomp to subdir because otherwise we won't find it if we're
5242 # using a relative directory.
5243 cp "$am_depcomp" conftest.dir
5244 cd conftest.dir
5245 # We will build objects and dependencies in a subdirectory because
5246 # it helps to detect inapplicable dependency modes. For instance
5247 # both Tru64's cc and ICC support -MD to output dependencies as a
5248 # side effect of compilation, but ICC will put the dependencies in
5249 # the current directory while Tru64 will put them in the object
5250 # directory.
5251 mkdir sub
5252
5253 am_cv_CC_dependencies_compiler_type=none
5254 if test "$am_compiler_list" = ""; then
5255 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5256 fi
5257 am__universal=false
5258 case " $depcc " in #(
5259 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5260 esac
5261
5262 for depmode in $am_compiler_list; do
5263 # Setup a source with many dependencies, because some compilers
5264 # like to wrap large dependency lists on column 80 (with \), and
5265 # we should not choose a depcomp mode which is confused by this.
5266 #
5267 # We need to recreate these files for each test, as the compiler may
5268 # overwrite some of them when testing with obscure command lines.
5269 # This happens at least with the AIX C compiler.
5270 : > sub/conftest.c
5271 for i in 1 2 3 4 5 6; do
5272 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005273 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5274 # Solaris 10 /bin/sh.
5275 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005276 done
5277 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5278
cristyc0890a62012-07-19 00:18:20 +00005279 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005280 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005281 # handle '-M -o', and we need to detect this. Also, some Intel
5282 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005283 am__obj=sub/conftest.${OBJEXT-o}
5284 am__minus_obj="-o $am__obj"
5285 case $depmode in
5286 gcc)
5287 # This depmode causes a compiler race in universal mode.
5288 test "$am__universal" = false || continue
5289 ;;
5290 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005291 # After this tag, mechanisms are not by side-effect, so they'll
5292 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005293 if test "x$enable_dependency_tracking" = xyes; then
5294 continue
5295 else
5296 break
5297 fi
5298 ;;
cristy7247bba2012-02-05 16:37:27 +00005299 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005300 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005301 # not run yet. These depmodes are late enough in the game, and
5302 # so weak that their functioning should not be impacted.
5303 am__obj=conftest.${OBJEXT-o}
5304 am__minus_obj=
5305 ;;
5306 none) break ;;
5307 esac
5308 if depmode=$depmode \
5309 source=sub/conftest.c object=$am__obj \
5310 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5311 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5312 >/dev/null 2>conftest.err &&
5313 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5314 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5315 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5316 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5317 # icc doesn't choke on unknown options, it will just issue warnings
5318 # or remarks (even with -Werror). So we grep stderr for any message
5319 # that says an option was ignored or not supported.
5320 # When given -MP, icc 7.0 and 7.1 complain thusly:
5321 # icc: Command line warning: ignoring option '-M'; no argument required
5322 # The diagnosis changed in icc 8.0:
5323 # icc: Command line remark: option '-MP' not supported
5324 if (grep 'ignoring option' conftest.err ||
5325 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5326 am_cv_CC_dependencies_compiler_type=$depmode
5327 break
5328 fi
5329 fi
5330 done
5331
5332 cd ..
5333 rm -rf conftest.dir
5334else
5335 am_cv_CC_dependencies_compiler_type=none
5336fi
5337
5338fi
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5340$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5341CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5342
5343 if
5344 test "x$enable_dependency_tracking" != xno \
5345 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5346 am__fastdepCC_TRUE=
5347 am__fastdepCC_FALSE='#'
5348else
5349 am__fastdepCC_TRUE='#'
5350 am__fastdepCC_FALSE=
5351fi
5352
5353
cristy3ed852e2009-09-05 21:47:34 +00005354
cristya0b81c32010-01-22 02:54:33 +00005355ac_ext=c
5356ac_cpp='$CPP $CPPFLAGS'
5357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359ac_compiler_gnu=$ac_cv_c_compiler_gnu
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5361$as_echo_n "checking how to run the C preprocessor... " >&6; }
5362# On Suns, sometimes $CPP names a directory.
5363if test -n "$CPP" && test -d "$CPP"; then
5364 CPP=
5365fi
5366if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005367 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005368 $as_echo_n "(cached) " >&6
5369else
5370 # Double quotes because CPP needs to be expanded
5371 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5372 do
5373 ac_preproc_ok=false
5374for ac_c_preproc_warn_flag in '' yes
5375do
5376 # Use a header file that comes with gcc, so configuring glibc
5377 # with a fresh cross-compiler works.
5378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5379 # <limits.h> exists even on freestanding compilers.
5380 # On the NeXT, cc -E runs the code through the compiler's parser,
5381 # not just through cpp. "Syntax error" is here to catch this case.
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h. */
5384#ifdef __STDC__
5385# include <limits.h>
5386#else
5387# include <assert.h>
5388#endif
5389 Syntax error
5390_ACEOF
5391if ac_fn_c_try_cpp "$LINENO"; then :
5392
5393else
5394 # Broken: fails on valid input.
5395continue
5396fi
cristyda16f162011-02-19 23:52:17 +00005397rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005398
5399 # OK, works on sane cases. Now check whether nonexistent headers
5400 # can be detected and how.
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402/* end confdefs.h. */
5403#include <ac_nonexistent.h>
5404_ACEOF
5405if ac_fn_c_try_cpp "$LINENO"; then :
5406 # Broken: success on invalid input.
5407continue
5408else
5409 # Passes both tests.
5410ac_preproc_ok=:
5411break
5412fi
cristyda16f162011-02-19 23:52:17 +00005413rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005414
5415done
5416# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005417rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005418if $ac_preproc_ok; then :
5419 break
5420fi
5421
5422 done
5423 ac_cv_prog_CPP=$CPP
5424
5425fi
5426 CPP=$ac_cv_prog_CPP
5427else
5428 ac_cv_prog_CPP=$CPP
5429fi
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5431$as_echo "$CPP" >&6; }
5432ac_preproc_ok=false
5433for ac_c_preproc_warn_flag in '' yes
5434do
5435 # Use a header file that comes with gcc, so configuring glibc
5436 # with a fresh cross-compiler works.
5437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5438 # <limits.h> exists even on freestanding compilers.
5439 # On the NeXT, cc -E runs the code through the compiler's parser,
5440 # not just through cpp. "Syntax error" is here to catch this case.
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442/* end confdefs.h. */
5443#ifdef __STDC__
5444# include <limits.h>
5445#else
5446# include <assert.h>
5447#endif
5448 Syntax error
5449_ACEOF
5450if ac_fn_c_try_cpp "$LINENO"; then :
5451
5452else
5453 # Broken: fails on valid input.
5454continue
5455fi
cristyda16f162011-02-19 23:52:17 +00005456rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005457
5458 # OK, works on sane cases. Now check whether nonexistent headers
5459 # can be detected and how.
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461/* end confdefs.h. */
5462#include <ac_nonexistent.h>
5463_ACEOF
5464if ac_fn_c_try_cpp "$LINENO"; then :
5465 # Broken: success on invalid input.
5466continue
5467else
5468 # Passes both tests.
5469ac_preproc_ok=:
5470break
5471fi
cristyda16f162011-02-19 23:52:17 +00005472rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005473
5474done
5475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005476rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005477if $ac_preproc_ok; then :
5478
5479else
5480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005482as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5483See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005484fi
5485
5486ac_ext=c
5487ac_cpp='$CPP $CPPFLAGS'
5488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5490ac_compiler_gnu=$ac_cv_c_compiler_gnu
5491
5492
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5494$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005495if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005496 $as_echo_n "(cached) " >&6
5497else
5498 if test -z "$GREP"; then
5499 ac_path_GREP_found=false
5500 # Loop through the user's path and test for each of PROGNAME-LIST
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5503do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_prog in grep ggrep; do
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005509 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005510# Check for GNU ac_path_GREP and select it if it is found.
5511 # Check for GNU $ac_path_GREP
5512case `"$ac_path_GREP" --version 2>&1` in
5513*GNU*)
5514 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5515*)
5516 ac_count=0
5517 $as_echo_n 0123456789 >"conftest.in"
5518 while :
5519 do
5520 cat "conftest.in" "conftest.in" >"conftest.tmp"
5521 mv "conftest.tmp" "conftest.in"
5522 cp "conftest.in" "conftest.nl"
5523 $as_echo 'GREP' >> "conftest.nl"
5524 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5526 as_fn_arith $ac_count + 1 && ac_count=$as_val
5527 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5528 # Best one so far, save it but keep looking for a better one
5529 ac_cv_path_GREP="$ac_path_GREP"
5530 ac_path_GREP_max=$ac_count
5531 fi
5532 # 10*(2^10) chars as input seems more than enough
5533 test $ac_count -gt 10 && break
5534 done
5535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5536esac
5537
5538 $ac_path_GREP_found && break 3
5539 done
5540 done
5541 done
5542IFS=$as_save_IFS
5543 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005544 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005545 fi
5546else
5547 ac_cv_path_GREP=$GREP
5548fi
5549
5550fi
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5552$as_echo "$ac_cv_path_GREP" >&6; }
5553 GREP="$ac_cv_path_GREP"
5554
5555
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5557$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005558if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005559 $as_echo_n "(cached) " >&6
5560else
5561 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5562 then ac_cv_path_EGREP="$GREP -E"
5563 else
5564 if test -z "$EGREP"; then
5565 ac_path_EGREP_found=false
5566 # Loop through the user's path and test for each of PROGNAME-LIST
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5569do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_prog in egrep; do
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005575 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005576# Check for GNU ac_path_EGREP and select it if it is found.
5577 # Check for GNU $ac_path_EGREP
5578case `"$ac_path_EGREP" --version 2>&1` in
5579*GNU*)
5580 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5581*)
5582 ac_count=0
5583 $as_echo_n 0123456789 >"conftest.in"
5584 while :
5585 do
5586 cat "conftest.in" "conftest.in" >"conftest.tmp"
5587 mv "conftest.tmp" "conftest.in"
5588 cp "conftest.in" "conftest.nl"
5589 $as_echo 'EGREP' >> "conftest.nl"
5590 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5592 as_fn_arith $ac_count + 1 && ac_count=$as_val
5593 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5594 # Best one so far, save it but keep looking for a better one
5595 ac_cv_path_EGREP="$ac_path_EGREP"
5596 ac_path_EGREP_max=$ac_count
5597 fi
5598 # 10*(2^10) chars as input seems more than enough
5599 test $ac_count -gt 10 && break
5600 done
5601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5602esac
5603
5604 $ac_path_EGREP_found && break 3
5605 done
5606 done
5607 done
5608IFS=$as_save_IFS
5609 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005610 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005611 fi
5612else
5613 ac_cv_path_EGREP=$EGREP
5614fi
5615
5616 fi
5617fi
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5619$as_echo "$ac_cv_path_EGREP" >&6; }
5620 EGREP="$ac_cv_path_EGREP"
5621
5622
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5624$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005625if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005626 $as_echo_n "(cached) " >&6
5627else
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629/* end confdefs.h. */
5630#include <stdlib.h>
5631#include <stdarg.h>
5632#include <string.h>
5633#include <float.h>
5634
5635int
5636main ()
5637{
5638
5639 ;
5640 return 0;
5641}
5642_ACEOF
5643if ac_fn_c_try_compile "$LINENO"; then :
5644 ac_cv_header_stdc=yes
5645else
5646 ac_cv_header_stdc=no
5647fi
5648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649
5650if test $ac_cv_header_stdc = yes; then
5651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h. */
5654#include <string.h>
5655
5656_ACEOF
5657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5658 $EGREP "memchr" >/dev/null 2>&1; then :
5659
5660else
5661 ac_cv_header_stdc=no
5662fi
5663rm -f conftest*
5664
5665fi
5666
5667if test $ac_cv_header_stdc = yes; then
5668 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h. */
5671#include <stdlib.h>
5672
5673_ACEOF
5674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5675 $EGREP "free" >/dev/null 2>&1; then :
5676
5677else
5678 ac_cv_header_stdc=no
5679fi
5680rm -f conftest*
5681
5682fi
5683
5684if test $ac_cv_header_stdc = yes; then
5685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5686 if test "$cross_compiling" = yes; then :
5687 :
5688else
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690/* end confdefs.h. */
5691#include <ctype.h>
5692#include <stdlib.h>
5693#if ((' ' & 0x0FF) == 0x020)
5694# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5695# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5696#else
5697# define ISLOWER(c) \
5698 (('a' <= (c) && (c) <= 'i') \
5699 || ('j' <= (c) && (c) <= 'r') \
5700 || ('s' <= (c) && (c) <= 'z'))
5701# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5702#endif
5703
5704#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5705int
5706main ()
5707{
5708 int i;
5709 for (i = 0; i < 256; i++)
5710 if (XOR (islower (i), ISLOWER (i))
5711 || toupper (i) != TOUPPER (i))
5712 return 2;
5713 return 0;
5714}
5715_ACEOF
5716if ac_fn_c_try_run "$LINENO"; then :
5717
5718else
5719 ac_cv_header_stdc=no
5720fi
5721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5722 conftest.$ac_objext conftest.beam conftest.$ac_ext
5723fi
5724
5725fi
5726fi
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5728$as_echo "$ac_cv_header_stdc" >&6; }
5729if test $ac_cv_header_stdc = yes; then
5730
5731$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5732
5733fi
5734
5735# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5736for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5737 inttypes.h stdint.h unistd.h
5738do :
5739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5740ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5741"
cristy98dddb52010-11-04 00:30:15 +00005742if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005743 cat >>confdefs.h <<_ACEOF
5744#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5745_ACEOF
5746
5747fi
5748
5749done
5750
5751
5752
5753 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 +00005754if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005755 MINIX=yes
5756else
5757 MINIX=
5758fi
5759
5760
5761 if test "$MINIX" = yes; then
5762
5763$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5764
5765
5766$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5767
5768
5769$as_echo "#define _MINIX 1" >>confdefs.h
5770
5771 fi
5772
5773
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5775$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005776if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005777 $as_echo_n "(cached) " >&6
5778else
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780/* end confdefs.h. */
5781
cristy14fefe52012-05-21 00:59:18 +00005782# define __EXTENSIONS__ 1
5783 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005784int
5785main ()
5786{
5787
5788 ;
5789 return 0;
5790}
5791_ACEOF
5792if ac_fn_c_try_compile "$LINENO"; then :
5793 ac_cv_safe_to_define___extensions__=yes
5794else
5795 ac_cv_safe_to_define___extensions__=no
5796fi
5797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798fi
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5800$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5801 test $ac_cv_safe_to_define___extensions__ = yes &&
5802 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5803
5804 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5805
5806 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5807
5808 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5809
5810 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5811
5812
5813
5814# Check for programs
5815ac_ext=c
5816ac_cpp='$CPP $CPPFLAGS'
5817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819ac_compiler_gnu=$ac_cv_c_compiler_gnu
5820if test -n "$ac_tool_prefix"; then
5821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5822set dummy ${ac_tool_prefix}gcc; ac_word=$2
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005825if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005826 $as_echo_n "(cached) " >&6
5827else
5828 if test -n "$CC"; then
5829 ac_cv_prog_CC="$CC" # Let the user override the test.
5830else
5831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832for as_dir in $PATH
5833do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 break 2
5841 fi
5842done
5843 done
5844IFS=$as_save_IFS
5845
5846fi
5847fi
5848CC=$ac_cv_prog_CC
5849if test -n "$CC"; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5851$as_echo "$CC" >&6; }
5852else
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854$as_echo "no" >&6; }
5855fi
5856
5857
5858fi
5859if test -z "$ac_cv_prog_CC"; then
5860 ac_ct_CC=$CC
5861 # Extract the first word of "gcc", so it can be a program name with args.
5862set dummy gcc; ac_word=$2
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005865if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005866 $as_echo_n "(cached) " >&6
5867else
5868 if test -n "$ac_ct_CC"; then
5869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5870else
5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005878 ac_cv_prog_ac_ct_CC="gcc"
5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5881 fi
5882done
5883 done
5884IFS=$as_save_IFS
5885
5886fi
5887fi
5888ac_ct_CC=$ac_cv_prog_ac_ct_CC
5889if test -n "$ac_ct_CC"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5891$as_echo "$ac_ct_CC" >&6; }
5892else
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894$as_echo "no" >&6; }
5895fi
5896
5897 if test "x$ac_ct_CC" = x; then
5898 CC=""
5899 else
5900 case $cross_compiling:$ac_tool_warned in
5901yes:)
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5904ac_tool_warned=yes ;;
5905esac
5906 CC=$ac_ct_CC
5907 fi
5908else
5909 CC="$ac_cv_prog_CC"
5910fi
5911
5912if test -z "$CC"; then
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5915set dummy ${ac_tool_prefix}cc; ac_word=$2
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005918if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005919 $as_echo_n "(cached) " >&6
5920else
5921 if test -n "$CC"; then
5922 ac_cv_prog_CC="$CC" # Let the user override the test.
5923else
5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005931 ac_cv_prog_CC="${ac_tool_prefix}cc"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935done
5936 done
5937IFS=$as_save_IFS
5938
5939fi
5940fi
5941CC=$ac_cv_prog_CC
5942if test -n "$CC"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5944$as_echo "$CC" >&6; }
5945else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947$as_echo "no" >&6; }
5948fi
5949
5950
5951 fi
5952fi
5953if test -z "$CC"; then
5954 # Extract the first word of "cc", so it can be a program name with args.
5955set dummy cc; ac_word=$2
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005958if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005959 $as_echo_n "(cached) " >&6
5960else
5961 if test -n "$CC"; then
5962 ac_cv_prog_CC="$CC" # Let the user override the test.
5963else
5964 ac_prog_rejected=no
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005972 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5973 ac_prog_rejected=yes
5974 continue
5975 fi
5976 ac_cv_prog_CC="cc"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980done
5981 done
5982IFS=$as_save_IFS
5983
5984if test $ac_prog_rejected = yes; then
5985 # We found a bogon in the path, so make sure we never use it.
5986 set dummy $ac_cv_prog_CC
5987 shift
5988 if test $# != 0; then
5989 # We chose a different compiler from the bogus one.
5990 # However, it has the same basename, so the bogon will be chosen
5991 # first if we set CC to just the basename; use the full file name.
5992 shift
5993 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5994 fi
5995fi
5996fi
5997fi
5998CC=$ac_cv_prog_CC
5999if test -n "$CC"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6001$as_echo "$CC" >&6; }
6002else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004$as_echo "no" >&6; }
6005fi
6006
6007
6008fi
6009if test -z "$CC"; then
6010 if test -n "$ac_tool_prefix"; then
6011 for ac_prog in cl.exe
6012 do
6013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6014set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006017if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006018 $as_echo_n "(cached) " >&6
6019else
6020 if test -n "$CC"; then
6021 ac_cv_prog_CC="$CC" # Let the user override the test.
6022else
6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006030 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034done
6035 done
6036IFS=$as_save_IFS
6037
6038fi
6039fi
6040CC=$ac_cv_prog_CC
6041if test -n "$CC"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6043$as_echo "$CC" >&6; }
6044else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046$as_echo "no" >&6; }
6047fi
6048
6049
6050 test -n "$CC" && break
6051 done
6052fi
6053if test -z "$CC"; then
6054 ac_ct_CC=$CC
6055 for ac_prog in cl.exe
6056do
6057 # Extract the first word of "$ac_prog", so it can be a program name with args.
6058set dummy $ac_prog; ac_word=$2
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006061if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006062 $as_echo_n "(cached) " >&6
6063else
6064 if test -n "$ac_ct_CC"; then
6065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6066else
6067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068for as_dir in $PATH
6069do
6070 IFS=$as_save_IFS
6071 test -z "$as_dir" && as_dir=.
6072 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006074 ac_cv_prog_ac_ct_CC="$ac_prog"
6075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 break 2
6077 fi
6078done
6079 done
6080IFS=$as_save_IFS
6081
6082fi
6083fi
6084ac_ct_CC=$ac_cv_prog_ac_ct_CC
6085if test -n "$ac_ct_CC"; then
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6087$as_echo "$ac_ct_CC" >&6; }
6088else
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090$as_echo "no" >&6; }
6091fi
6092
6093
6094 test -n "$ac_ct_CC" && break
6095done
6096
6097 if test "x$ac_ct_CC" = x; then
6098 CC=""
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101yes:)
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104ac_tool_warned=yes ;;
6105esac
6106 CC=$ac_ct_CC
6107 fi
6108fi
6109
6110fi
6111
6112
6113test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006115as_fn_error $? "no acceptable C compiler found in \$PATH
6116See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006117
6118# Provide some information about the compiler.
6119$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6120set X $ac_compile
6121ac_compiler=$2
6122for ac_option in --version -v -V -qversion; do
6123 { { ac_try="$ac_compiler $ac_option >&5"
6124case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127esac
6128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6129$as_echo "$ac_try_echo"; } >&5
6130 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6131 ac_status=$?
6132 if test -s conftest.err; then
6133 sed '10a\
6134... rest of stderr output deleted ...
6135 10q' conftest.err >conftest.er1
6136 cat conftest.er1 >&5
6137 fi
6138 rm -f conftest.er1 conftest.err
6139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6140 test $ac_status = 0; }
6141done
6142
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6144$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006145if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006146 $as_echo_n "(cached) " >&6
6147else
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149/* end confdefs.h. */
6150
6151int
6152main ()
6153{
6154#ifndef __GNUC__
6155 choke me
6156#endif
6157
6158 ;
6159 return 0;
6160}
6161_ACEOF
6162if ac_fn_c_try_compile "$LINENO"; then :
6163 ac_compiler_gnu=yes
6164else
6165 ac_compiler_gnu=no
6166fi
6167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168ac_cv_c_compiler_gnu=$ac_compiler_gnu
6169
6170fi
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6172$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6173if test $ac_compiler_gnu = yes; then
6174 GCC=yes
6175else
6176 GCC=
6177fi
6178ac_test_CFLAGS=${CFLAGS+set}
6179ac_save_CFLAGS=$CFLAGS
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6181$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006182if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006183 $as_echo_n "(cached) " >&6
6184else
6185 ac_save_c_werror_flag=$ac_c_werror_flag
6186 ac_c_werror_flag=yes
6187 ac_cv_prog_cc_g=no
6188 CFLAGS="-g"
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190/* end confdefs.h. */
6191
6192int
6193main ()
6194{
6195
6196 ;
6197 return 0;
6198}
6199_ACEOF
6200if ac_fn_c_try_compile "$LINENO"; then :
6201 ac_cv_prog_cc_g=yes
6202else
6203 CFLAGS=""
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205/* end confdefs.h. */
6206
6207int
6208main ()
6209{
6210
6211 ;
6212 return 0;
6213}
6214_ACEOF
6215if ac_fn_c_try_compile "$LINENO"; then :
6216
6217else
6218 ac_c_werror_flag=$ac_save_c_werror_flag
6219 CFLAGS="-g"
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221/* end confdefs.h. */
6222
6223int
6224main ()
6225{
6226
6227 ;
6228 return 0;
6229}
6230_ACEOF
6231if ac_fn_c_try_compile "$LINENO"; then :
6232 ac_cv_prog_cc_g=yes
6233fi
6234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235fi
6236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237fi
6238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 ac_c_werror_flag=$ac_save_c_werror_flag
6240fi
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6242$as_echo "$ac_cv_prog_cc_g" >&6; }
6243if test "$ac_test_CFLAGS" = set; then
6244 CFLAGS=$ac_save_CFLAGS
6245elif test $ac_cv_prog_cc_g = yes; then
6246 if test "$GCC" = yes; then
6247 CFLAGS="-g -O2"
6248 else
6249 CFLAGS="-g"
6250 fi
6251else
6252 if test "$GCC" = yes; then
6253 CFLAGS="-O2"
6254 else
6255 CFLAGS=
6256 fi
6257fi
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6259$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006260if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006261 $as_echo_n "(cached) " >&6
6262else
6263 ac_cv_prog_cc_c89=no
6264ac_save_CC=$CC
6265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266/* end confdefs.h. */
6267#include <stdarg.h>
6268#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006269struct stat;
cristya0b81c32010-01-22 02:54:33 +00006270/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6271struct buf { int x; };
6272FILE * (*rcsopen) (struct buf *, struct stat *, int);
6273static char *e (p, i)
6274 char **p;
6275 int i;
6276{
6277 return p[i];
6278}
6279static char *f (char * (*g) (char **, int), char **p, ...)
6280{
6281 char *s;
6282 va_list v;
6283 va_start (v,p);
6284 s = g (p, va_arg (v,int));
6285 va_end (v);
6286 return s;
6287}
6288
6289/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6290 function prototypes and stuff, but not '\xHH' hex character constants.
6291 These don't provoke an error unfortunately, instead are silently treated
6292 as 'x'. The following induces an error, until -std is added to get
6293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6294 array size at least. It's necessary to write '\x00'==0 to get something
6295 that's true only with -std. */
6296int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6297
6298/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6299 inside strings and character constants. */
6300#define FOO(x) 'x'
6301int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6302
6303int test (int i, double x);
6304struct s1 {int (*f) (int a);};
6305struct s2 {int (*f) (double a);};
6306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6307int argc;
6308char **argv;
6309int
6310main ()
6311{
6312return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6313 ;
6314 return 0;
6315}
6316_ACEOF
6317for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6319do
6320 CC="$ac_save_CC $ac_arg"
6321 if ac_fn_c_try_compile "$LINENO"; then :
6322 ac_cv_prog_cc_c89=$ac_arg
6323fi
6324rm -f core conftest.err conftest.$ac_objext
6325 test "x$ac_cv_prog_cc_c89" != "xno" && break
6326done
6327rm -f conftest.$ac_ext
6328CC=$ac_save_CC
6329
6330fi
6331# AC_CACHE_VAL
6332case "x$ac_cv_prog_cc_c89" in
6333 x)
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6335$as_echo "none needed" >&6; } ;;
6336 xno)
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6338$as_echo "unsupported" >&6; } ;;
6339 *)
6340 CC="$CC $ac_cv_prog_cc_c89"
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6342$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6343esac
6344if test "x$ac_cv_prog_cc_c89" != xno; then :
6345
6346fi
6347
6348ac_ext=c
6349ac_cpp='$CPP $CPPFLAGS'
6350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6352ac_compiler_gnu=$ac_cv_c_compiler_gnu
6353
cristy73bd4a52010-10-05 11:24:23 +00006354depcc="$CC" am_compiler_list=
6355
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6357$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006358if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006359 $as_echo_n "(cached) " >&6
6360else
6361 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6362 # We make a subdir and do the tests there. Otherwise we can end up
6363 # making bogus files that we don't know about and never remove. For
6364 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006365 # making a dummy file named 'D' -- because '-MD' means "put the output
6366 # in D".
cristy7247bba2012-02-05 16:37:27 +00006367 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006368 mkdir conftest.dir
6369 # Copy depcomp to subdir because otherwise we won't find it if we're
6370 # using a relative directory.
6371 cp "$am_depcomp" conftest.dir
6372 cd conftest.dir
6373 # We will build objects and dependencies in a subdirectory because
6374 # it helps to detect inapplicable dependency modes. For instance
6375 # both Tru64's cc and ICC support -MD to output dependencies as a
6376 # side effect of compilation, but ICC will put the dependencies in
6377 # the current directory while Tru64 will put them in the object
6378 # directory.
6379 mkdir sub
6380
6381 am_cv_CC_dependencies_compiler_type=none
6382 if test "$am_compiler_list" = ""; then
6383 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6384 fi
6385 am__universal=false
6386 case " $depcc " in #(
6387 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6388 esac
6389
6390 for depmode in $am_compiler_list; do
6391 # Setup a source with many dependencies, because some compilers
6392 # like to wrap large dependency lists on column 80 (with \), and
6393 # we should not choose a depcomp mode which is confused by this.
6394 #
6395 # We need to recreate these files for each test, as the compiler may
6396 # overwrite some of them when testing with obscure command lines.
6397 # This happens at least with the AIX C compiler.
6398 : > sub/conftest.c
6399 for i in 1 2 3 4 5 6; do
6400 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006401 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6402 # Solaris 10 /bin/sh.
6403 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006404 done
6405 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6406
cristyc0890a62012-07-19 00:18:20 +00006407 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006408 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006409 # handle '-M -o', and we need to detect this. Also, some Intel
6410 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006411 am__obj=sub/conftest.${OBJEXT-o}
6412 am__minus_obj="-o $am__obj"
6413 case $depmode in
6414 gcc)
6415 # This depmode causes a compiler race in universal mode.
6416 test "$am__universal" = false || continue
6417 ;;
6418 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006419 # After this tag, mechanisms are not by side-effect, so they'll
6420 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006421 if test "x$enable_dependency_tracking" = xyes; then
6422 continue
6423 else
6424 break
6425 fi
6426 ;;
cristy7247bba2012-02-05 16:37:27 +00006427 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006428 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006429 # not run yet. These depmodes are late enough in the game, and
6430 # so weak that their functioning should not be impacted.
6431 am__obj=conftest.${OBJEXT-o}
6432 am__minus_obj=
6433 ;;
6434 none) break ;;
6435 esac
6436 if depmode=$depmode \
6437 source=sub/conftest.c object=$am__obj \
6438 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6439 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6440 >/dev/null 2>conftest.err &&
6441 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6442 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6443 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6444 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6445 # icc doesn't choke on unknown options, it will just issue warnings
6446 # or remarks (even with -Werror). So we grep stderr for any message
6447 # that says an option was ignored or not supported.
6448 # When given -MP, icc 7.0 and 7.1 complain thusly:
6449 # icc: Command line warning: ignoring option '-M'; no argument required
6450 # The diagnosis changed in icc 8.0:
6451 # icc: Command line remark: option '-MP' not supported
6452 if (grep 'ignoring option' conftest.err ||
6453 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6454 am_cv_CC_dependencies_compiler_type=$depmode
6455 break
6456 fi
6457 fi
6458 done
6459
6460 cd ..
6461 rm -rf conftest.dir
6462else
6463 am_cv_CC_dependencies_compiler_type=none
6464fi
6465
6466fi
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6468$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6469CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6470
6471 if
6472 test "x$enable_dependency_tracking" != xno \
6473 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6474 am__fastdepCC_TRUE=
6475 am__fastdepCC_FALSE='#'
6476else
6477 am__fastdepCC_TRUE='#'
6478 am__fastdepCC_FALSE=
6479fi
6480
6481
cristy95646052009-11-28 23:05:30 +00006482ac_ext=cpp
6483ac_cpp='$CXXCPP $CPPFLAGS'
6484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6487if test -z "$CXX"; then
6488 if test -n "$CCC"; then
6489 CXX=$CCC
6490 else
6491 if test -n "$ac_tool_prefix"; then
6492 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6493 do
6494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6495set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006498if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006499 $as_echo_n "(cached) " >&6
6500else
6501 if test -n "$CXX"; then
6502 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6503else
6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505for as_dir in $PATH
6506do
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006511 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 break 2
6514 fi
6515done
6516 done
6517IFS=$as_save_IFS
6518
6519fi
6520fi
6521CXX=$ac_cv_prog_CXX
6522if test -n "$CXX"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6524$as_echo "$CXX" >&6; }
6525else
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527$as_echo "no" >&6; }
6528fi
6529
6530
6531 test -n "$CXX" && break
6532 done
6533fi
6534if test -z "$CXX"; then
6535 ac_ct_CXX=$CXX
6536 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6537do
6538 # Extract the first word of "$ac_prog", so it can be a program name with args.
6539set dummy $ac_prog; ac_word=$2
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006542if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006543 $as_echo_n "(cached) " >&6
6544else
6545 if test -n "$ac_ct_CXX"; then
6546 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6547else
6548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549for as_dir in $PATH
6550do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006555 ac_cv_prog_ac_ct_CXX="$ac_prog"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6558 fi
6559done
6560 done
6561IFS=$as_save_IFS
6562
6563fi
6564fi
6565ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6566if test -n "$ac_ct_CXX"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6568$as_echo "$ac_ct_CXX" >&6; }
6569else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571$as_echo "no" >&6; }
6572fi
6573
6574
6575 test -n "$ac_ct_CXX" && break
6576done
6577
6578 if test "x$ac_ct_CXX" = x; then
6579 CXX="g++"
6580 else
6581 case $cross_compiling:$ac_tool_warned in
6582yes:)
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585ac_tool_warned=yes ;;
6586esac
6587 CXX=$ac_ct_CXX
6588 fi
6589fi
6590
6591 fi
6592fi
6593# Provide some information about the compiler.
6594$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6595set X $ac_compile
6596ac_compiler=$2
6597for ac_option in --version -v -V -qversion; do
6598 { { ac_try="$ac_compiler $ac_option >&5"
6599case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6602esac
6603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6604$as_echo "$ac_try_echo"; } >&5
6605 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6606 ac_status=$?
6607 if test -s conftest.err; then
6608 sed '10a\
6609... rest of stderr output deleted ...
6610 10q' conftest.err >conftest.er1
6611 cat conftest.er1 >&5
6612 fi
6613 rm -f conftest.er1 conftest.err
6614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6615 test $ac_status = 0; }
6616done
6617
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6619$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006620if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006621 $as_echo_n "(cached) " >&6
6622else
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h. */
6625
6626int
6627main ()
6628{
6629#ifndef __GNUC__
6630 choke me
6631#endif
6632
6633 ;
6634 return 0;
6635}
6636_ACEOF
6637if ac_fn_cxx_try_compile "$LINENO"; then :
6638 ac_compiler_gnu=yes
6639else
6640 ac_compiler_gnu=no
6641fi
6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6644
6645fi
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6647$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6648if test $ac_compiler_gnu = yes; then
6649 GXX=yes
6650else
6651 GXX=
6652fi
6653ac_test_CXXFLAGS=${CXXFLAGS+set}
6654ac_save_CXXFLAGS=$CXXFLAGS
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6656$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006657if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006658 $as_echo_n "(cached) " >&6
6659else
6660 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6661 ac_cxx_werror_flag=yes
6662 ac_cv_prog_cxx_g=no
6663 CXXFLAGS="-g"
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665/* end confdefs.h. */
6666
6667int
6668main ()
6669{
6670
6671 ;
6672 return 0;
6673}
6674_ACEOF
6675if ac_fn_cxx_try_compile "$LINENO"; then :
6676 ac_cv_prog_cxx_g=yes
6677else
6678 CXXFLAGS=""
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680/* end confdefs.h. */
6681
6682int
6683main ()
6684{
6685
6686 ;
6687 return 0;
6688}
6689_ACEOF
6690if ac_fn_cxx_try_compile "$LINENO"; then :
6691
6692else
6693 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6694 CXXFLAGS="-g"
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696/* end confdefs.h. */
6697
6698int
6699main ()
6700{
6701
6702 ;
6703 return 0;
6704}
6705_ACEOF
6706if ac_fn_cxx_try_compile "$LINENO"; then :
6707 ac_cv_prog_cxx_g=yes
6708fi
6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710fi
6711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712fi
6713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6715fi
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6717$as_echo "$ac_cv_prog_cxx_g" >&6; }
6718if test "$ac_test_CXXFLAGS" = set; then
6719 CXXFLAGS=$ac_save_CXXFLAGS
6720elif test $ac_cv_prog_cxx_g = yes; then
6721 if test "$GXX" = yes; then
6722 CXXFLAGS="-g -O2"
6723 else
6724 CXXFLAGS="-g"
6725 fi
6726else
6727 if test "$GXX" = yes; then
6728 CXXFLAGS="-O2"
6729 else
6730 CXXFLAGS=
6731 fi
6732fi
6733ac_ext=c
6734ac_cpp='$CPP $CPPFLAGS'
6735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6737ac_compiler_gnu=$ac_cv_c_compiler_gnu
6738
cristy73bd4a52010-10-05 11:24:23 +00006739depcc="$CXX" am_compiler_list=
6740
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6742$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006743if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006744 $as_echo_n "(cached) " >&6
6745else
6746 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6747 # We make a subdir and do the tests there. Otherwise we can end up
6748 # making bogus files that we don't know about and never remove. For
6749 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006750 # making a dummy file named 'D' -- because '-MD' means "put the output
6751 # in D".
cristy7247bba2012-02-05 16:37:27 +00006752 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006753 mkdir conftest.dir
6754 # Copy depcomp to subdir because otherwise we won't find it if we're
6755 # using a relative directory.
6756 cp "$am_depcomp" conftest.dir
6757 cd conftest.dir
6758 # We will build objects and dependencies in a subdirectory because
6759 # it helps to detect inapplicable dependency modes. For instance
6760 # both Tru64's cc and ICC support -MD to output dependencies as a
6761 # side effect of compilation, but ICC will put the dependencies in
6762 # the current directory while Tru64 will put them in the object
6763 # directory.
6764 mkdir sub
6765
6766 am_cv_CXX_dependencies_compiler_type=none
6767 if test "$am_compiler_list" = ""; then
6768 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6769 fi
6770 am__universal=false
6771 case " $depcc " in #(
6772 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6773 esac
6774
6775 for depmode in $am_compiler_list; do
6776 # Setup a source with many dependencies, because some compilers
6777 # like to wrap large dependency lists on column 80 (with \), and
6778 # we should not choose a depcomp mode which is confused by this.
6779 #
6780 # We need to recreate these files for each test, as the compiler may
6781 # overwrite some of them when testing with obscure command lines.
6782 # This happens at least with the AIX C compiler.
6783 : > sub/conftest.c
6784 for i in 1 2 3 4 5 6; do
6785 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006786 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6787 # Solaris 10 /bin/sh.
6788 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006789 done
6790 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6791
cristyc0890a62012-07-19 00:18:20 +00006792 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006793 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006794 # handle '-M -o', and we need to detect this. Also, some Intel
6795 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006796 am__obj=sub/conftest.${OBJEXT-o}
6797 am__minus_obj="-o $am__obj"
6798 case $depmode in
6799 gcc)
6800 # This depmode causes a compiler race in universal mode.
6801 test "$am__universal" = false || continue
6802 ;;
6803 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006804 # After this tag, mechanisms are not by side-effect, so they'll
6805 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006806 if test "x$enable_dependency_tracking" = xyes; then
6807 continue
6808 else
6809 break
6810 fi
6811 ;;
cristy7247bba2012-02-05 16:37:27 +00006812 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006813 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006814 # not run yet. These depmodes are late enough in the game, and
6815 # so weak that their functioning should not be impacted.
6816 am__obj=conftest.${OBJEXT-o}
6817 am__minus_obj=
6818 ;;
6819 none) break ;;
6820 esac
6821 if depmode=$depmode \
6822 source=sub/conftest.c object=$am__obj \
6823 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6824 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6825 >/dev/null 2>conftest.err &&
6826 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6827 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6828 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6829 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6830 # icc doesn't choke on unknown options, it will just issue warnings
6831 # or remarks (even with -Werror). So we grep stderr for any message
6832 # that says an option was ignored or not supported.
6833 # When given -MP, icc 7.0 and 7.1 complain thusly:
6834 # icc: Command line warning: ignoring option '-M'; no argument required
6835 # The diagnosis changed in icc 8.0:
6836 # icc: Command line remark: option '-MP' not supported
6837 if (grep 'ignoring option' conftest.err ||
6838 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6839 am_cv_CXX_dependencies_compiler_type=$depmode
6840 break
6841 fi
6842 fi
6843 done
6844
6845 cd ..
6846 rm -rf conftest.dir
6847else
6848 am_cv_CXX_dependencies_compiler_type=none
6849fi
6850
6851fi
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6853$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6854CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6855
6856 if
6857 test "x$enable_dependency_tracking" != xno \
6858 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6859 am__fastdepCXX_TRUE=
6860 am__fastdepCXX_FALSE='#'
6861else
6862 am__fastdepCXX_TRUE='#'
6863 am__fastdepCXX_FALSE=
6864fi
6865
6866
cristy8b350f62009-11-15 23:12:43 +00006867 case $ac_cv_prog_cc_stdc in #(
6868 no) :
6869 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6870 *) :
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006872$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006873if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006874 $as_echo_n "(cached) " >&6
6875else
6876 ac_cv_prog_cc_c99=no
6877ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006879/* end confdefs.h. */
6880#include <stdarg.h>
6881#include <stdbool.h>
6882#include <stdlib.h>
6883#include <wchar.h>
6884#include <stdio.h>
6885
6886// Check varargs macros. These examples are taken from C99 6.10.3.5.
6887#define debug(...) fprintf (stderr, __VA_ARGS__)
6888#define showlist(...) puts (#__VA_ARGS__)
6889#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6890static void
6891test_varargs_macros (void)
6892{
6893 int x = 1234;
6894 int y = 5678;
6895 debug ("Flag");
6896 debug ("X = %d\n", x);
6897 showlist (The first, second, and third items.);
6898 report (x>y, "x is %d but y is %d", x, y);
6899}
6900
6901// Check long long types.
6902#define BIG64 18446744073709551615ull
6903#define BIG32 4294967295ul
6904#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6905#if !BIG_OK
6906 your preprocessor is broken;
6907#endif
6908#if BIG_OK
6909#else
6910 your preprocessor is broken;
6911#endif
6912static long long int bignum = -9223372036854775807LL;
6913static unsigned long long int ubignum = BIG64;
6914
6915struct incomplete_array
6916{
6917 int datasize;
6918 double data[];
6919};
6920
6921struct named_init {
6922 int number;
6923 const wchar_t *name;
6924 double average;
6925};
6926
6927typedef const char *ccp;
6928
6929static inline int
6930test_restrict (ccp restrict text)
6931{
6932 // See if C++-style comments work.
6933 // Iterate through items via the restricted pointer.
6934 // Also check for declarations in for loops.
6935 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6936 continue;
6937 return 0;
6938}
6939
6940// Check varargs and va_copy.
6941static void
6942test_varargs (const char *format, ...)
6943{
6944 va_list args;
6945 va_start (args, format);
6946 va_list args_copy;
6947 va_copy (args_copy, args);
6948
6949 const char *str;
6950 int number;
6951 float fnumber;
6952
6953 while (*format)
6954 {
6955 switch (*format++)
6956 {
6957 case 's': // string
6958 str = va_arg (args_copy, const char *);
6959 break;
6960 case 'd': // int
6961 number = va_arg (args_copy, int);
6962 break;
6963 case 'f': // float
6964 fnumber = va_arg (args_copy, double);
6965 break;
6966 default:
6967 break;
6968 }
6969 }
6970 va_end (args_copy);
6971 va_end (args);
6972}
6973
6974int
6975main ()
6976{
6977
6978 // Check bool.
6979 _Bool success = false;
6980
6981 // Check restrict.
6982 if (test_restrict ("String literal") == 0)
6983 success = true;
6984 char *restrict newvar = "Another string";
6985
6986 // Check varargs.
6987 test_varargs ("s, d' f .", "string", 65, 34.234);
6988 test_varargs_macros ();
6989
6990 // Check flexible array members.
6991 struct incomplete_array *ia =
6992 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6993 ia->datasize = 10;
6994 for (int i = 0; i < ia->datasize; ++i)
6995 ia->data[i] = i * 1.234;
6996
6997 // Check named initializers.
6998 struct named_init ni = {
6999 .number = 34,
7000 .name = L"Test wide string",
7001 .average = 543.34343,
7002 };
7003
7004 ni.number = 58;
7005
7006 int dynamic_array[ni.number];
7007 dynamic_array[ni.number - 1] = 543;
7008
7009 // work around unused variable warnings
7010 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7011 || dynamic_array[ni.number - 1] != 543);
7012
7013 ;
7014 return 0;
7015}
7016_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007017for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007018do
7019 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007020 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007021 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007022fi
cristy3ed852e2009-09-05 21:47:34 +00007023rm -f core conftest.err conftest.$ac_objext
7024 test "x$ac_cv_prog_cc_c99" != "xno" && break
7025done
7026rm -f conftest.$ac_ext
7027CC=$ac_save_CC
7028
7029fi
7030# AC_CACHE_VAL
7031case "x$ac_cv_prog_cc_c99" in
7032 x)
cristy8b350f62009-11-15 23:12:43 +00007033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007034$as_echo "none needed" >&6; } ;;
7035 xno)
cristy8b350f62009-11-15 23:12:43 +00007036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007037$as_echo "unsupported" >&6; } ;;
7038 *)
7039 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007041$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7042esac
cristy8b350f62009-11-15 23:12:43 +00007043if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007044 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7045else
cristy8b350f62009-11-15 23:12:43 +00007046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007047$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007048if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007049 $as_echo_n "(cached) " >&6
7050else
7051 ac_cv_prog_cc_c89=no
7052ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007054/* end confdefs.h. */
7055#include <stdarg.h>
7056#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007057struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007058/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7059struct buf { int x; };
7060FILE * (*rcsopen) (struct buf *, struct stat *, int);
7061static char *e (p, i)
7062 char **p;
7063 int i;
7064{
7065 return p[i];
7066}
7067static char *f (char * (*g) (char **, int), char **p, ...)
7068{
7069 char *s;
7070 va_list v;
7071 va_start (v,p);
7072 s = g (p, va_arg (v,int));
7073 va_end (v);
7074 return s;
7075}
7076
7077/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7078 function prototypes and stuff, but not '\xHH' hex character constants.
7079 These don't provoke an error unfortunately, instead are silently treated
7080 as 'x'. The following induces an error, until -std is added to get
7081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7082 array size at least. It's necessary to write '\x00'==0 to get something
7083 that's true only with -std. */
7084int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7085
7086/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7087 inside strings and character constants. */
7088#define FOO(x) 'x'
7089int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7090
7091int test (int i, double x);
7092struct s1 {int (*f) (int a);};
7093struct s2 {int (*f) (double a);};
7094int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7095int argc;
7096char **argv;
7097int
7098main ()
7099{
7100return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7101 ;
7102 return 0;
7103}
7104_ACEOF
7105for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7107do
7108 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007109 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007110 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007111fi
cristy3ed852e2009-09-05 21:47:34 +00007112rm -f core conftest.err conftest.$ac_objext
7113 test "x$ac_cv_prog_cc_c89" != "xno" && break
7114done
7115rm -f conftest.$ac_ext
7116CC=$ac_save_CC
7117
7118fi
7119# AC_CACHE_VAL
7120case "x$ac_cv_prog_cc_c89" in
7121 x)
cristy8b350f62009-11-15 23:12:43 +00007122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007123$as_echo "none needed" >&6; } ;;
7124 xno)
cristy8b350f62009-11-15 23:12:43 +00007125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007126$as_echo "unsupported" >&6; } ;;
7127 *)
7128 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007130$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7131esac
cristy8b350f62009-11-15 23:12:43 +00007132if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007133 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7134else
7135 ac_cv_prog_cc_stdc=no
7136fi
7137
cristy3ed852e2009-09-05 21:47:34 +00007138fi
cristy3ed852e2009-09-05 21:47:34 +00007139 ;;
7140esac
cristy8b350f62009-11-15 23:12:43 +00007141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007142$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007143 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007144 $as_echo_n "(cached) " >&6
7145fi
7146
cristy8b350f62009-11-15 23:12:43 +00007147 case $ac_cv_prog_cc_stdc in #(
7148 no) :
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7150$as_echo "unsupported" >&6; } ;; #(
7151 '') :
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7153$as_echo "none needed" >&6; } ;; #(
7154 *) :
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007156$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7157esac
7158
cristy3ed852e2009-09-05 21:47:34 +00007159ac_ext=c
7160ac_cpp='$CPP $CPPFLAGS'
7161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007165$as_echo_n "checking how to run the C preprocessor... " >&6; }
7166# On Suns, sometimes $CPP names a directory.
7167if test -n "$CPP" && test -d "$CPP"; then
7168 CPP=
7169fi
7170if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007171 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007172 $as_echo_n "(cached) " >&6
7173else
7174 # Double quotes because CPP needs to be expanded
7175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7176 do
7177 ac_preproc_ok=false
7178for ac_c_preproc_warn_flag in '' yes
7179do
7180 # Use a header file that comes with gcc, so configuring glibc
7181 # with a fresh cross-compiler works.
7182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7183 # <limits.h> exists even on freestanding compilers.
7184 # On the NeXT, cc -E runs the code through the compiler's parser,
7185 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007187/* end confdefs.h. */
7188#ifdef __STDC__
7189# include <limits.h>
7190#else
7191# include <assert.h>
7192#endif
7193 Syntax error
7194_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007195if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007196
cristy8b350f62009-11-15 23:12:43 +00007197else
cristy3ed852e2009-09-05 21:47:34 +00007198 # Broken: fails on valid input.
7199continue
7200fi
cristyda16f162011-02-19 23:52:17 +00007201rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007202
7203 # OK, works on sane cases. Now check whether nonexistent headers
7204 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007206/* end confdefs.h. */
7207#include <ac_nonexistent.h>
7208_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007209if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007210 # Broken: success on invalid input.
7211continue
7212else
cristy3ed852e2009-09-05 21:47:34 +00007213 # Passes both tests.
7214ac_preproc_ok=:
7215break
7216fi
cristyda16f162011-02-19 23:52:17 +00007217rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007218
7219done
7220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007221rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007222if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007223 break
7224fi
7225
7226 done
7227 ac_cv_prog_CPP=$CPP
7228
7229fi
7230 CPP=$ac_cv_prog_CPP
7231else
7232 ac_cv_prog_CPP=$CPP
7233fi
cristy8b350f62009-11-15 23:12:43 +00007234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007235$as_echo "$CPP" >&6; }
7236ac_preproc_ok=false
7237for ac_c_preproc_warn_flag in '' yes
7238do
7239 # Use a header file that comes with gcc, so configuring glibc
7240 # with a fresh cross-compiler works.
7241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7242 # <limits.h> exists even on freestanding compilers.
7243 # On the NeXT, cc -E runs the code through the compiler's parser,
7244 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007246/* end confdefs.h. */
7247#ifdef __STDC__
7248# include <limits.h>
7249#else
7250# include <assert.h>
7251#endif
7252 Syntax error
7253_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007254if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007255
cristy8b350f62009-11-15 23:12:43 +00007256else
cristy3ed852e2009-09-05 21:47:34 +00007257 # Broken: fails on valid input.
7258continue
7259fi
cristyda16f162011-02-19 23:52:17 +00007260rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007261
7262 # OK, works on sane cases. Now check whether nonexistent headers
7263 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007265/* end confdefs.h. */
7266#include <ac_nonexistent.h>
7267_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007268if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007269 # Broken: success on invalid input.
7270continue
7271else
cristy3ed852e2009-09-05 21:47:34 +00007272 # Passes both tests.
7273ac_preproc_ok=:
7274break
7275fi
cristyda16f162011-02-19 23:52:17 +00007276rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007277
7278done
7279# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007280rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007281if $ac_preproc_ok; then :
7282
cristy3ed852e2009-09-05 21:47:34 +00007283else
cristy8b350f62009-11-15 23:12:43 +00007284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007286as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7287See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007288fi
7289
7290ac_ext=c
7291ac_cpp='$CPP $CPPFLAGS'
7292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7294ac_compiler_gnu=$ac_cv_c_compiler_gnu
7295
cristy73bd4a52010-10-05 11:24:23 +00007296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7297$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007298if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007299 $as_echo_n "(cached) " >&6
7300else
7301 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7302 for ac_i in 1 2 3 4 5 6 7; do
7303 ac_script="$ac_script$as_nl$ac_script"
7304 done
7305 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7306 { ac_script=; unset ac_script;}
7307 if test -z "$SED"; then
7308 ac_path_SED_found=false
7309 # Loop through the user's path and test for each of PROGNAME-LIST
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_prog in sed gsed; do
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007318 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007319# Check for GNU ac_path_SED and select it if it is found.
7320 # Check for GNU $ac_path_SED
7321case `"$ac_path_SED" --version 2>&1` in
7322*GNU*)
7323 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7324*)
7325 ac_count=0
7326 $as_echo_n 0123456789 >"conftest.in"
7327 while :
7328 do
7329 cat "conftest.in" "conftest.in" >"conftest.tmp"
7330 mv "conftest.tmp" "conftest.in"
7331 cp "conftest.in" "conftest.nl"
7332 $as_echo '' >> "conftest.nl"
7333 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7335 as_fn_arith $ac_count + 1 && ac_count=$as_val
7336 if test $ac_count -gt ${ac_path_SED_max-0}; then
7337 # Best one so far, save it but keep looking for a better one
7338 ac_cv_path_SED="$ac_path_SED"
7339 ac_path_SED_max=$ac_count
7340 fi
7341 # 10*(2^10) chars as input seems more than enough
7342 test $ac_count -gt 10 && break
7343 done
7344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7345esac
7346
7347 $ac_path_SED_found && break 3
7348 done
7349 done
7350 done
7351IFS=$as_save_IFS
7352 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007353 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007354 fi
7355else
7356 ac_cv_path_SED=$SED
7357fi
7358
7359fi
7360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7361$as_echo "$ac_cv_path_SED" >&6; }
7362 SED="$ac_cv_path_SED"
7363 rm -f conftest.sed
7364
7365test -z "$SED" && SED=sed
7366Xsed="$SED -e 1s/^X//"
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7379$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007380if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007381 $as_echo_n "(cached) " >&6
7382else
7383 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7384 then ac_cv_path_FGREP="$GREP -F"
7385 else
7386 if test -z "$FGREP"; then
7387 ac_path_FGREP_found=false
7388 # Loop through the user's path and test for each of PROGNAME-LIST
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_prog in fgrep; do
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007397 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007398# Check for GNU ac_path_FGREP and select it if it is found.
7399 # Check for GNU $ac_path_FGREP
7400case `"$ac_path_FGREP" --version 2>&1` in
7401*GNU*)
7402 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7403*)
7404 ac_count=0
7405 $as_echo_n 0123456789 >"conftest.in"
7406 while :
7407 do
7408 cat "conftest.in" "conftest.in" >"conftest.tmp"
7409 mv "conftest.tmp" "conftest.in"
7410 cp "conftest.in" "conftest.nl"
7411 $as_echo 'FGREP' >> "conftest.nl"
7412 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7414 as_fn_arith $ac_count + 1 && ac_count=$as_val
7415 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7416 # Best one so far, save it but keep looking for a better one
7417 ac_cv_path_FGREP="$ac_path_FGREP"
7418 ac_path_FGREP_max=$ac_count
7419 fi
7420 # 10*(2^10) chars as input seems more than enough
7421 test $ac_count -gt 10 && break
7422 done
7423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7424esac
7425
7426 $ac_path_FGREP_found && break 3
7427 done
7428 done
7429 done
7430IFS=$as_save_IFS
7431 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007432 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007433 fi
7434else
7435 ac_cv_path_FGREP=$FGREP
7436fi
7437
7438 fi
7439fi
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7441$as_echo "$ac_cv_path_FGREP" >&6; }
7442 FGREP="$ac_cv_path_FGREP"
7443
7444
7445test -z "$GREP" && GREP=grep
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
cristy0c60a692010-11-04 01:09:47 +00007463ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7464ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7465ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7466
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7468$as_echo_n "checking how to print strings... " >&6; }
7469# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007470if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007471 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7472 ECHO='print -r --'
7473elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7474 ECHO='printf %s\n'
7475else
7476 # Use this function as a fallback that always works.
7477 func_fallback_echo ()
7478 {
7479 eval 'cat <<_LTECHO_EOF
7480$1
7481_LTECHO_EOF'
7482 }
7483 ECHO='func_fallback_echo'
7484fi
7485
7486# func_echo_all arg...
7487# Invoke $ECHO with all args, space-separated.
7488func_echo_all ()
7489{
7490 $ECHO ""
7491}
7492
7493case "$ECHO" in
7494 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7495$as_echo "printf" >&6; } ;;
7496 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7497$as_echo "print -r" >&6; } ;;
7498 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7499$as_echo "cat" >&6; } ;;
7500esac
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
cristy73bd4a52010-10-05 11:24:23 +00007515
7516
7517# Check whether --with-gnu-ld was given.
7518if test "${with_gnu_ld+set}" = set; then :
7519 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7520else
7521 with_gnu_ld=no
7522fi
7523
7524ac_prog=ld
7525if test "$GCC" = yes; then
7526 # Check if gcc -print-prog-name=ld gives a path.
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7528$as_echo_n "checking for ld used by $CC... " >&6; }
7529 case $host in
7530 *-*-mingw*)
7531 # gcc leaves a trailing carriage return which upsets mingw
7532 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7533 *)
7534 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7535 esac
7536 case $ac_prog in
7537 # Accept absolute paths.
7538 [\\/]* | ?:[\\/]*)
7539 re_direlt='/[^/][^/]*/\.\./'
7540 # Canonicalize the pathname of ld
7541 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7542 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7543 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7544 done
7545 test -z "$LD" && LD="$ac_prog"
7546 ;;
7547 "")
7548 # If it fails, then pretend we aren't using GCC.
7549 ac_prog=ld
7550 ;;
7551 *)
7552 # If it is relative, then search for the first ld in PATH.
7553 with_gnu_ld=unknown
7554 ;;
7555 esac
7556elif test "$with_gnu_ld" = yes; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7558$as_echo_n "checking for GNU ld... " >&6; }
7559else
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7561$as_echo_n "checking for non-GNU ld... " >&6; }
7562fi
cristyda16f162011-02-19 23:52:17 +00007563if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007564 $as_echo_n "(cached) " >&6
7565else
7566 if test -z "$LD"; then
7567 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7568 for ac_dir in $PATH; do
7569 IFS="$lt_save_ifs"
7570 test -z "$ac_dir" && ac_dir=.
7571 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7572 lt_cv_path_LD="$ac_dir/$ac_prog"
7573 # Check to see if the program is GNU ld. I'd rather use --version,
7574 # but apparently some variants of GNU ld only accept -v.
7575 # Break only if it was the GNU/non-GNU ld that we prefer.
7576 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7577 *GNU* | *'with BFD'*)
7578 test "$with_gnu_ld" != no && break
7579 ;;
7580 *)
7581 test "$with_gnu_ld" != yes && break
7582 ;;
7583 esac
7584 fi
7585 done
7586 IFS="$lt_save_ifs"
7587else
7588 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7589fi
7590fi
7591
7592LD="$lt_cv_path_LD"
7593if test -n "$LD"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7595$as_echo "$LD" >&6; }
7596else
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598$as_echo "no" >&6; }
7599fi
cristy98dddb52010-11-04 00:30:15 +00007600test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7602$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007603if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007604 $as_echo_n "(cached) " >&6
7605else
7606 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7607case `$LD -v 2>&1 </dev/null` in
7608*GNU* | *'with BFD'*)
7609 lt_cv_prog_gnu_ld=yes
7610 ;;
7611*)
7612 lt_cv_prog_gnu_ld=no
7613 ;;
7614esac
7615fi
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7617$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7618with_gnu_ld=$lt_cv_prog_gnu_ld
7619
7620
7621
7622
7623
7624
7625
7626
7627
cristy3ed852e2009-09-05 21:47:34 +00007628
cristy837d6dc2010-02-27 01:16:57 +00007629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7630$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007631if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007632 $as_echo_n "(cached) " >&6
7633else
7634 ac_cv_prog_cc_c99=no
7635ac_save_CC=$CC
7636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637/* end confdefs.h. */
7638#include <stdarg.h>
7639#include <stdbool.h>
7640#include <stdlib.h>
7641#include <wchar.h>
7642#include <stdio.h>
7643
7644// Check varargs macros. These examples are taken from C99 6.10.3.5.
7645#define debug(...) fprintf (stderr, __VA_ARGS__)
7646#define showlist(...) puts (#__VA_ARGS__)
7647#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7648static void
7649test_varargs_macros (void)
7650{
7651 int x = 1234;
7652 int y = 5678;
7653 debug ("Flag");
7654 debug ("X = %d\n", x);
7655 showlist (The first, second, and third items.);
7656 report (x>y, "x is %d but y is %d", x, y);
7657}
7658
7659// Check long long types.
7660#define BIG64 18446744073709551615ull
7661#define BIG32 4294967295ul
7662#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7663#if !BIG_OK
7664 your preprocessor is broken;
7665#endif
7666#if BIG_OK
7667#else
7668 your preprocessor is broken;
7669#endif
7670static long long int bignum = -9223372036854775807LL;
7671static unsigned long long int ubignum = BIG64;
7672
7673struct incomplete_array
7674{
7675 int datasize;
7676 double data[];
7677};
7678
7679struct named_init {
7680 int number;
7681 const wchar_t *name;
7682 double average;
7683};
7684
7685typedef const char *ccp;
7686
7687static inline int
7688test_restrict (ccp restrict text)
7689{
7690 // See if C++-style comments work.
7691 // Iterate through items via the restricted pointer.
7692 // Also check for declarations in for loops.
7693 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7694 continue;
7695 return 0;
7696}
7697
7698// Check varargs and va_copy.
7699static void
7700test_varargs (const char *format, ...)
7701{
7702 va_list args;
7703 va_start (args, format);
7704 va_list args_copy;
7705 va_copy (args_copy, args);
7706
7707 const char *str;
7708 int number;
7709 float fnumber;
7710
7711 while (*format)
7712 {
7713 switch (*format++)
7714 {
7715 case 's': // string
7716 str = va_arg (args_copy, const char *);
7717 break;
7718 case 'd': // int
7719 number = va_arg (args_copy, int);
7720 break;
7721 case 'f': // float
7722 fnumber = va_arg (args_copy, double);
7723 break;
7724 default:
7725 break;
7726 }
7727 }
7728 va_end (args_copy);
7729 va_end (args);
7730}
7731
7732int
7733main ()
7734{
7735
7736 // Check bool.
7737 _Bool success = false;
7738
7739 // Check restrict.
7740 if (test_restrict ("String literal") == 0)
7741 success = true;
7742 char *restrict newvar = "Another string";
7743
7744 // Check varargs.
7745 test_varargs ("s, d' f .", "string", 65, 34.234);
7746 test_varargs_macros ();
7747
7748 // Check flexible array members.
7749 struct incomplete_array *ia =
7750 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7751 ia->datasize = 10;
7752 for (int i = 0; i < ia->datasize; ++i)
7753 ia->data[i] = i * 1.234;
7754
7755 // Check named initializers.
7756 struct named_init ni = {
7757 .number = 34,
7758 .name = L"Test wide string",
7759 .average = 543.34343,
7760 };
7761
7762 ni.number = 58;
7763
7764 int dynamic_array[ni.number];
7765 dynamic_array[ni.number - 1] = 543;
7766
7767 // work around unused variable warnings
7768 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7769 || dynamic_array[ni.number - 1] != 543);
7770
7771 ;
7772 return 0;
7773}
7774_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007775for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007776do
7777 CC="$ac_save_CC $ac_arg"
7778 if ac_fn_c_try_compile "$LINENO"; then :
7779 ac_cv_prog_cc_c99=$ac_arg
7780fi
7781rm -f core conftest.err conftest.$ac_objext
7782 test "x$ac_cv_prog_cc_c99" != "xno" && break
7783done
7784rm -f conftest.$ac_ext
7785CC=$ac_save_CC
7786
7787fi
7788# AC_CACHE_VAL
7789case "x$ac_cv_prog_cc_c99" in
7790 x)
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7792$as_echo "none needed" >&6; } ;;
7793 xno)
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7795$as_echo "unsupported" >&6; } ;;
7796 *)
7797 CC="$CC $ac_cv_prog_cc_c99"
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7799$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7800esac
7801if test "x$ac_cv_prog_cc_c99" != xno; then :
7802
7803fi
7804
7805
cristy73bd4a52010-10-05 11:24:23 +00007806if test "x$CC" != xcc; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7808$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7809else
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7811$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7812fi
7813set dummy $CC; ac_cc=`$as_echo "$2" |
7814 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007815if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007816 $as_echo_n "(cached) " >&6
7817else
cristy73bd4a52010-10-05 11:24:23 +00007818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819/* end confdefs.h. */
7820
7821int
7822main ()
7823{
7824
7825 ;
7826 return 0;
7827}
7828_ACEOF
7829# Make sure it works both with $CC and with simple cc.
7830# We do the test twice because some compilers refuse to overwrite an
7831# existing .o file with -o, though they will create one.
7832ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7833rm -f conftest2.*
7834if { { case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837esac
7838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7839$as_echo "$ac_try_echo"; } >&5
7840 (eval "$ac_try") 2>&5
7841 ac_status=$?
7842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843 test $ac_status = 0; } &&
7844 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7847esac
7848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7849$as_echo "$ac_try_echo"; } >&5
7850 (eval "$ac_try") 2>&5
7851 ac_status=$?
7852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7853 test $ac_status = 0; };
7854then
7855 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7856 if test "x$CC" != xcc; then
7857 # Test first that cc exists at all.
7858 if { ac_try='cc -c conftest.$ac_ext >&5'
7859 { { case "(($ac_try" in
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7862esac
7863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7864$as_echo "$ac_try_echo"; } >&5
7865 (eval "$ac_try") 2>&5
7866 ac_status=$?
7867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7868 test $ac_status = 0; }; }; then
7869 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7870 rm -f conftest2.*
7871 if { { case "(($ac_try" in
7872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873 *) ac_try_echo=$ac_try;;
7874esac
7875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7876$as_echo "$ac_try_echo"; } >&5
7877 (eval "$ac_try") 2>&5
7878 ac_status=$?
7879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7880 test $ac_status = 0; } &&
7881 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883 *) ac_try_echo=$ac_try;;
7884esac
7885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7886$as_echo "$ac_try_echo"; } >&5
7887 (eval "$ac_try") 2>&5
7888 ac_status=$?
7889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7890 test $ac_status = 0; };
7891 then
7892 # cc works too.
7893 :
7894 else
7895 # cc exists but doesn't like -o.
7896 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7897 fi
7898 fi
7899 fi
7900else
7901 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7902fi
7903rm -f core conftest*
7904
7905fi
7906if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7908$as_echo "yes" >&6; }
7909else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911$as_echo "no" >&6; }
7912
7913$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7914
7915fi
7916
7917# FIXME: we rely on the cache variable name because
7918# there is no other way.
7919set dummy $CC
7920am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7921eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7922if test "$am_t" != yes; then
7923 # Losing compiler, so override with the script.
7924 # FIXME: It is wrong to rewrite CC.
7925 # But if we don't then we get into trouble of one sort or another.
7926 # A longer-term fix would be to have automake use am__CC in this case,
7927 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7928 CC="$am_aux_dir/compile $CC"
7929fi
7930
7931
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7933$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007934if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007935 $as_echo_n "(cached) " >&6
7936else
7937 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007938 ac_ext=c
7939ac_cpp='$CPP $CPPFLAGS'
7940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7942ac_compiler_gnu=$ac_cv_c_compiler_gnu
7943
7944 ac_save_CFLAGS="$CFLAGS"
7945for 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" #
7946do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948/* end confdefs.h. */
7949
7950int
7951main ()
7952{
cristy24fc1fe2010-10-23 21:13:01 +00007953
cristy73bd4a52010-10-05 11:24:23 +00007954 ;
7955 return 0;
7956}
7957_ACEOF
7958if ac_fn_c_try_compile "$LINENO"; then :
7959 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7960fi
7961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962done
7963 CFLAGS="$ac_save_CFLAGS"
7964 ac_ext=c
7965ac_cpp='$CPP $CPPFLAGS'
7966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7968ac_compiler_gnu=$ac_cv_c_compiler_gnu
7969
7970
7971fi
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7973$as_echo "$ac_cv_cflags_warn_all" >&6; }
7974case ".$ac_cv_cflags_warn_all" in
7975 .ok|.ok,*) ;;
7976 .|.no|.no,*)
7977 ;;
7978 *)
7979 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7980 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7981 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7982 ac_status=$?
7983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7984 test $ac_status = 0; }
7985 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7986 (: CFLAGS="$CFLAGS $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 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7991 fi
7992 ;;
nicolas6237c462010-10-05 06:11:49 +00007993esac
cristy3ed852e2009-09-05 21:47:34 +00007994
cristy016e8b82012-12-26 12:11:06 +00007995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7996$as_echo_n "checking for C compiler vendor... " >&6; }
7997if ${ax_cv_c_compiler_vendor+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999else
8000 # note: don't check for gcc first since some other compilers define __GNUC__
8001 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8002 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8003 pathscale: __PATHCC__,__PATHSCALE__
8004 clang: __clang__
8005 gnu: __GNUC__
8006 sun: __SUNPRO_C,__SUNPRO_CC
8007 hp: __HP_cc,__HP_aCC
8008 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8009 borland: __BORLANDC__,__TURBOC__
8010 comeau: __COMO__
8011 cray: _CRAYC
8012 kai: __KCC
8013 lcc: __LCC__
8014 sgi: __sgi,sgi
8015 microsoft: _MSC_VER
8016 metrowerks: __MWERKS__
8017 watcom: __WATCOMC__
8018 portland: __PGI
8019 unknown: UNKNOWN"
8020 for ventest in $vendors; do
8021 case $ventest in
8022 *:) vendor=$ventest; continue ;;
8023 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8024 esac
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026/* end confdefs.h. */
8027
8028int
8029main ()
8030{
8031
8032 #if !($vencpp)
8033 thisisanerror;
8034 #endif
8035
8036 ;
8037 return 0;
8038}
8039_ACEOF
8040if ac_fn_c_try_compile "$LINENO"; then :
8041 break
8042fi
8043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 done
8045 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8046
8047fi
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8049$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8050
cristya0b81c32010-01-22 02:54:33 +00008051
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8053$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8054set x ${MAKE-make}
8055ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008056if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008057 $as_echo_n "(cached) " >&6
8058else
8059 cat >conftest.make <<\_ACEOF
8060SHELL = /bin/sh
8061all:
8062 @echo '@@@%%%=$(MAKE)=@@@%%%'
8063_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008064# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008065case `${MAKE-make} -f conftest.make 2>/dev/null` in
8066 *@@@%%%=?*=@@@%%%*)
8067 eval ac_cv_prog_make_${ac_make}_set=yes;;
8068 *)
8069 eval ac_cv_prog_make_${ac_make}_set=no;;
8070esac
8071rm -f conftest.make
8072fi
8073if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8075$as_echo "yes" >&6; }
8076 SET_MAKE=
8077else
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079$as_echo "no" >&6; }
8080 SET_MAKE="MAKE=${MAKE-make}"
8081fi
8082
cristy8b350f62009-11-15 23:12:43 +00008083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008084$as_echo_n "checking whether ln -s works... " >&6; }
8085LN_S=$as_ln_s
8086if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008088$as_echo "yes" >&6; }
8089else
cristy8b350f62009-11-15 23:12:43 +00008090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008091$as_echo "no, using $LN_S" >&6; }
8092fi
8093
cristybc556452012-08-17 19:44:03 +00008094for ac_prog in gawk mawk nawk awk
8095do
8096 # Extract the first word of "$ac_prog", so it can be a program name with args.
8097set dummy $ac_prog; ac_word=$2
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099$as_echo_n "checking for $ac_word... " >&6; }
8100if ${ac_cv_prog_AWK+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102else
8103 if test -n "$AWK"; then
8104 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8105else
8106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113 ac_cv_prog_AWK="$ac_prog"
8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 break 2
8116 fi
8117done
8118 done
8119IFS=$as_save_IFS
8120
8121fi
8122fi
8123AWK=$ac_cv_prog_AWK
8124if test -n "$AWK"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8126$as_echo "$AWK" >&6; }
8127else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129$as_echo "no" >&6; }
8130fi
8131
8132
8133 test -n "$AWK" && break
8134done
8135
cristy73bd4a52010-10-05 11:24:23 +00008136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8137$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8138
8139# Check whether --with-dmalloc was given.
8140if test "${with_dmalloc+set}" = set; then :
8141 withval=$with_dmalloc; if test "$withval" = yes; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8143$as_echo "yes" >&6; }
8144
8145$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8146
8147 LIBS="$LIBS -ldmalloc"
8148 LDFLAGS="$LDFLAGS -g"
8149else
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151$as_echo "no" >&6; }
8152fi
8153else
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155$as_echo "no" >&6; }
8156fi
8157
8158
8159
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8161$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008162if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008163 $as_echo_n "(cached) " >&6
8164else
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166/* end confdefs.h. */
8167#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008168 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008169 static void
8170 foo(void) {
8171 exit(1);
8172 }
8173
8174int
8175main ()
8176{
8177
8178 ;
8179 return 0;
8180}
8181_ACEOF
8182if ac_fn_c_try_compile "$LINENO"; then :
8183 ax_cv___attribute__=yes
8184else
8185 ax_cv___attribute__=no
8186
8187fi
8188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189
8190fi
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8192$as_echo "$ax_cv___attribute__" >&6; }
8193 if test "$ax_cv___attribute__" = "yes"; then
8194
8195$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8196
8197 fi
8198
8199
8200
cristy37110d62012-03-01 18:38:20 +00008201
8202
8203# Check whether --with-gcc-arch was given.
8204if test "${with_gcc_arch+set}" = set; then :
8205 withval=$with_gcc_arch; ax_gcc_arch=$withval
8206else
cristya32d1812012-03-02 19:24:21 +00008207 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008208fi
8209
8210
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8212$as_echo_n "checking for gcc architecture flag... " >&6; }
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8214$as_echo "" >&6; }
8215if ${ax_cv_gcc_archflag+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217else
8218
8219ax_cv_gcc_archflag="unknown"
8220
8221if test "$GCC" = yes; then
8222
8223if test "x$ax_gcc_arch" = xyes; then
8224ax_gcc_arch=""
8225if test "$cross_compiling" = no; then
8226case $host_cpu in
8227 i[3456]86*|x86_64*) # use cpuid codes
8228
8229ac_ext=c
8230ac_cpp='$CPP $CPPFLAGS'
8231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8233ac_compiler_gnu=$ac_cv_c_compiler_gnu
8234
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8236$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8237if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8238 $as_echo_n "(cached) " >&6
8239else
8240 if test "$cross_compiling" = yes; then :
8241 ax_cv_gcc_x86_cpuid_0=unknown
8242else
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244/* end confdefs.h. */
8245#include <stdio.h>
8246int
8247main ()
8248{
8249
8250 int op = 0, eax, ebx, ecx, edx;
8251 FILE *f;
8252 __asm__("cpuid"
8253 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8254 : "a" (op));
8255 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8256 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8257 fclose(f);
8258 return 0;
8259
8260 ;
8261 return 0;
8262}
8263_ACEOF
8264if ac_fn_c_try_run "$LINENO"; then :
8265 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8266else
8267 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8268fi
8269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8270 conftest.$ac_objext conftest.beam conftest.$ac_ext
8271fi
8272
8273fi
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8275$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8276ac_ext=c
8277ac_cpp='$CPP $CPPFLAGS'
8278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8280ac_compiler_gnu=$ac_cv_c_compiler_gnu
8281
8282
8283
8284ac_ext=c
8285ac_cpp='$CPP $CPPFLAGS'
8286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8288ac_compiler_gnu=$ac_cv_c_compiler_gnu
8289
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8291$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8292if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294else
8295 if test "$cross_compiling" = yes; then :
8296 ax_cv_gcc_x86_cpuid_1=unknown
8297else
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299/* end confdefs.h. */
8300#include <stdio.h>
8301int
8302main ()
8303{
8304
8305 int op = 1, eax, ebx, ecx, edx;
8306 FILE *f;
8307 __asm__("cpuid"
8308 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8309 : "a" (op));
8310 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8311 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8312 fclose(f);
8313 return 0;
8314
8315 ;
8316 return 0;
8317}
8318_ACEOF
8319if ac_fn_c_try_run "$LINENO"; then :
8320 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8321else
8322 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8323fi
8324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8325 conftest.$ac_objext conftest.beam conftest.$ac_ext
8326fi
8327
8328fi
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8330$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8331ac_ext=c
8332ac_cpp='$CPP $CPPFLAGS'
8333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8335ac_compiler_gnu=$ac_cv_c_compiler_gnu
8336
8337
8338 case $ax_cv_gcc_x86_cpuid_0 in
8339 *:756e6547:*:*) # Intel
8340 case $ax_cv_gcc_x86_cpuid_1 in
8341 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8342 *5??:*:*:*) ax_gcc_arch=pentium ;;
8343 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8344 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8345 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8346 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8347 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8348 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8349 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8350 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8351 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8352 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8353 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8354 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8355 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8356 case $host_cpu in
8357 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8358 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8359 esac ;;
8360 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8361 esac ;;
8362 *:68747541:*:*) # AMD
8363 case $ax_cv_gcc_x86_cpuid_1 in
8364 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8365 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8366 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8367 *60?:*:*:*) ax_gcc_arch=k7 ;;
8368 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8369 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8370 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8371 *6[68a]?:*:*:*)
8372
8373ac_ext=c
8374ac_cpp='$CPP $CPPFLAGS'
8375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8377ac_compiler_gnu=$ac_cv_c_compiler_gnu
8378
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8380$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8381if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8382 $as_echo_n "(cached) " >&6
8383else
8384 if test "$cross_compiling" = yes; then :
8385 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8386else
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388/* end confdefs.h. */
8389#include <stdio.h>
8390int
8391main ()
8392{
8393
8394 int op = 0x80000006, eax, ebx, ecx, edx;
8395 FILE *f;
8396 __asm__("cpuid"
8397 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8398 : "a" (op));
8399 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8400 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8401 fclose(f);
8402 return 0;
8403
8404 ;
8405 return 0;
8406}
8407_ACEOF
8408if ac_fn_c_try_run "$LINENO"; then :
8409 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8410else
8411 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8412fi
8413rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8414 conftest.$ac_objext conftest.beam conftest.$ac_ext
8415fi
8416
8417fi
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8419$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8420ac_ext=c
8421ac_cpp='$CPP $CPPFLAGS'
8422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8424ac_compiler_gnu=$ac_cv_c_compiler_gnu
8425
8426 # L2 cache size
8427 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8428 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8429 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8430 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8431 esac ;;
8432 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8433 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8434 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8435 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8436 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8437 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8438 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8439 esac ;;
8440 *:746e6543:*:*) # IDT
8441 case $ax_cv_gcc_x86_cpuid_1 in
8442 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8443 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8444 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8445 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8446 esac ;;
8447 esac
8448 if test x"$ax_gcc_arch" = x; then # fallback
8449 case $host_cpu in
8450 i586*) ax_gcc_arch=pentium ;;
8451 i686*) ax_gcc_arch=pentiumpro ;;
8452 esac
8453 fi
8454 ;;
8455
8456 sparc*)
8457 # Extract the first word of "prtdiag", so it can be a program name with args.
8458set dummy prtdiag; ac_word=$2
8459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8460$as_echo_n "checking for $ac_word... " >&6; }
8461if ${ac_cv_path_PRTDIAG+:} false; then :
8462 $as_echo_n "(cached) " >&6
8463else
8464 case $PRTDIAG in
8465 [\\/]* | ?:[\\/]*)
8466 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8467 ;;
8468 *)
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8471for as_dir in $as_dummy
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008477 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8480 fi
8481done
8482 done
8483IFS=$as_save_IFS
8484
8485 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8486 ;;
8487esac
8488fi
8489PRTDIAG=$ac_cv_path_PRTDIAG
8490if test -n "$PRTDIAG"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8492$as_echo "$PRTDIAG" >&6; }
8493else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495$as_echo "no" >&6; }
8496fi
8497
8498
8499 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`
8500 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8501 case $cputype in
8502 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8503 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8504 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8505 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8506 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8507 *cypress*) ax_gcc_arch=cypress ;;
8508 esac ;;
8509
8510 alphaev5) ax_gcc_arch=ev5 ;;
8511 alphaev56) ax_gcc_arch=ev56 ;;
8512 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8513 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8514 alphaev6) ax_gcc_arch=ev6 ;;
8515 alphaev67) ax_gcc_arch=ev67 ;;
8516 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8517 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8518 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8519 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8520
8521 powerpc*)
8522 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`
8523 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8524 case $cputype in
8525 *750*) ax_gcc_arch="750 G3" ;;
8526 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8527 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8528 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8529 *970*) ax_gcc_arch="970 G5 power4";;
8530 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8531 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8532 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8533 *) ax_gcc_arch=$cputype ;;
8534 esac
8535 ax_gcc_arch="$ax_gcc_arch powerpc"
8536 ;;
8537esac
8538fi # not cross-compiling
8539fi # guess arch
8540
8541if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8542for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008543 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008544 flags="-mtune=$arch"
8545 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8546 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8547 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8548 else
8549 flags="-march=$arch -mcpu=$arch -m$arch"
8550 fi
8551 for flag in $flags; do
8552 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8554$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8555if eval \${$as_CACHEVAR+:} false; then :
8556 $as_echo_n "(cached) " >&6
8557else
8558
8559 ax_check_save_flags=$CFLAGS
8560 CFLAGS="$CFLAGS $flag"
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562/* end confdefs.h. */
8563
8564int
8565main ()
8566{
8567
8568 ;
8569 return 0;
8570}
8571_ACEOF
8572if ac_fn_c_try_compile "$LINENO"; then :
8573 eval "$as_CACHEVAR=yes"
8574else
8575 eval "$as_CACHEVAR=no"
8576fi
8577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8578 CFLAGS=$ax_check_save_flags
8579fi
8580eval ac_res=\$$as_CACHEVAR
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8582$as_echo "$ac_res" >&6; }
8583if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8584 ax_cv_gcc_archflag=$flag; break
8585else
8586 :
8587fi
8588
8589 done
8590 test "x$ax_cv_gcc_archflag" = xunknown || break
8591done
8592fi
8593
8594fi # $GCC=yes
8595
8596fi
8597
8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8599$as_echo_n "checking for gcc architecture flag... " >&6; }
8600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8601$as_echo "$ax_cv_gcc_archflag" >&6; }
8602if test "x$ax_cv_gcc_archflag" = xunknown; then
8603 :
8604else
8605 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8606fi
8607
8608
8609
cristy73bd4a52010-10-05 11:24:23 +00008610if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8611 if test -n "$ac_tool_prefix"; then
8612 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8613set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008616if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008617 $as_echo_n "(cached) " >&6
8618else
8619 case $PKG_CONFIG in
8620 [\\/]* | ?:[\\/]*)
8621 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8622 ;;
8623 *)
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625for as_dir in $PATH
8626do
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008631 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 break 2
8634 fi
8635done
8636 done
8637IFS=$as_save_IFS
8638
8639 ;;
8640esac
8641fi
8642PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8643if test -n "$PKG_CONFIG"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8645$as_echo "$PKG_CONFIG" >&6; }
8646else
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648$as_echo "no" >&6; }
8649fi
8650
8651
8652fi
8653if test -z "$ac_cv_path_PKG_CONFIG"; then
8654 ac_pt_PKG_CONFIG=$PKG_CONFIG
8655 # Extract the first word of "pkg-config", so it can be a program name with args.
8656set dummy pkg-config; ac_word=$2
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008659if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008660 $as_echo_n "(cached) " >&6
8661else
8662 case $ac_pt_PKG_CONFIG in
8663 [\\/]* | ?:[\\/]*)
8664 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8665 ;;
8666 *)
8667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668for as_dir in $PATH
8669do
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
8672 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008674 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 break 2
8677 fi
8678done
8679 done
8680IFS=$as_save_IFS
8681
8682 ;;
8683esac
8684fi
8685ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8686if test -n "$ac_pt_PKG_CONFIG"; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8688$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8689else
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691$as_echo "no" >&6; }
8692fi
8693
8694 if test "x$ac_pt_PKG_CONFIG" = x; then
8695 PKG_CONFIG=""
8696 else
8697 case $cross_compiling:$ac_tool_warned in
8698yes:)
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8701ac_tool_warned=yes ;;
8702esac
8703 PKG_CONFIG=$ac_pt_PKG_CONFIG
8704 fi
8705else
8706 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8707fi
8708
8709fi
8710if test -n "$PKG_CONFIG"; then
8711 _pkg_min_version=0.9.0
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8713$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8714 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8716$as_echo "yes" >&6; }
8717 else
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719$as_echo "no" >&6; }
8720 PKG_CONFIG=""
8721 fi
8722
8723fi
cristy3ed852e2009-09-05 21:47:34 +00008724
cristy9b86f202012-11-28 21:55:35 +00008725# Check for linker script support
8726
8727 # Check whether --enable-ld-version-script was given.
8728if test "${enable_ld_version_script+set}" = set; then :
8729 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8730fi
8731
8732 if test -z "$have_ld_version_script"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8734$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8735 save_LDFLAGS="$LDFLAGS"
8736 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8737 cat > conftest.map <<EOF
8738foo
8739EOF
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h. */
8742
8743int
8744main ()
8745{
8746
8747 ;
8748 return 0;
8749}
8750_ACEOF
8751if ac_fn_c_try_link "$LINENO"; then :
8752 accepts_syntax_errors=yes
8753else
8754 accepts_syntax_errors=no
8755fi
8756rm -f core conftest.err conftest.$ac_objext \
8757 conftest$ac_exeext conftest.$ac_ext
8758 if test "$accepts_syntax_errors" = no; then
8759 cat > conftest.map <<EOF
8760VERS_1 {
8761 global: sym;
8762};
8763
8764VERS_2 {
8765 global: sym;
8766} VERS_1;
8767EOF
8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769/* end confdefs.h. */
8770
8771int
8772main ()
8773{
8774
8775 ;
8776 return 0;
8777}
8778_ACEOF
8779if ac_fn_c_try_link "$LINENO"; then :
8780 have_ld_version_script=yes
8781else
8782 have_ld_version_script=no
8783fi
8784rm -f core conftest.err conftest.$ac_objext \
8785 conftest$ac_exeext conftest.$ac_ext
8786 else
8787 have_ld_version_script=no
8788 fi
8789 rm -f conftest.map
8790 LDFLAGS="$save_LDFLAGS"
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8792$as_echo "$have_ld_version_script" >&6; }
8793 fi
8794 if test "$have_ld_version_script" = "yes"; then
8795 HAVE_LD_VERSION_SCRIPT_TRUE=
8796 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8797else
8798 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8799 HAVE_LD_VERSION_SCRIPT_FALSE=
8800fi
8801
8802
8803
cristy3ed852e2009-09-05 21:47:34 +00008804#
cristy3ed852e2009-09-05 21:47:34 +00008805# Enable run-time checking.
8806#
8807# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008808if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008809 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8810else
8811 enable_bounds_checking='no'
8812fi
8813
8814
8815if test "$enable_bounds_checking" = yes; then
8816
cristy8b350f62009-11-15 23:12:43 +00008817$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008818
8819fi
8820
8821#
8822# Tests for Windows
8823#
8824
8825
8826
8827GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008828native_win32_build='no'
8829cygwin_build='no'
8830case "${host_os}" in
8831 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008832 cygwin_build='yes'
8833 GDI32_LIBS='-lgdi32'
8834 ;;
8835 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008836 native_win32_build='yes'
8837 GDI32_LIBS='-lgdi32'
8838 ;;
8839esac
8840if test "${GDI32_LIBS}x" != 'x'; then
8841
cristy8b350f62009-11-15 23:12:43 +00008842$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008843
8844fi
8845
cristy73bd4a52010-10-05 11:24:23 +00008846 if test "${GDI32_LIBS}x" != 'x' ; then
8847 WINGDI32_DELEGATE_TRUE=
8848 WINGDI32_DELEGATE_FALSE='#'
8849else
8850 WINGDI32_DELEGATE_TRUE='#'
8851 WINGDI32_DELEGATE_FALSE=
8852fi
8853
8854 if test "${native_win32_build}" = 'yes' ; then
8855 WIN32_NATIVE_BUILD_TRUE=
8856 WIN32_NATIVE_BUILD_FALSE='#'
8857else
8858 WIN32_NATIVE_BUILD_TRUE='#'
8859 WIN32_NATIVE_BUILD_FALSE=
8860fi
8861
8862 if test "${cygwin_build}" = 'yes' ; then
8863 CYGWIN_BUILD_TRUE=
8864 CYGWIN_BUILD_FALSE='#'
8865else
8866 CYGWIN_BUILD_TRUE='#'
8867 CYGWIN_BUILD_FALSE=
8868fi
8869
8870 if test "x${CC}" = 'xcl.exe' ; then
8871 USING_CL_TRUE=
8872 USING_CL_FALSE='#'
8873else
8874 USING_CL_TRUE='#'
8875 USING_CL_FALSE=
8876fi
8877
cristy3ed852e2009-09-05 21:47:34 +00008878
8879WinPathScript="${srcdirfull}/winpath.sh"
8880
8881
8882#
8883# Compiler flags tweaks
8884#
8885if test "${GCC}" != "yes"; then
8886 case "${host}" in
8887 *-*-hpux* )
8888 # aCC: HP ANSI C++ B3910B A.03.34
8889 CFLAGS="${CFLAGS} -Wp,-H30000"
8890 if test -n "${CXXFLAGS}"; then
8891 CXXFLAGS='-AA'
8892 else
8893 CXXFLAGS="${CXXFLAGS} -AA"
8894 fi
8895 ;;
8896 *-dec-osf5.* )
8897 # Compaq alphaev68-dec-osf5.1 compiler
8898 if test -n "${CXXFLAGS}"; then
8899 CXXFLAGS='-std strict_ansi -noimplicit_include'
8900 else
8901 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8902 fi
8903 esac
8904fi
8905
8906# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008908$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008909if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008910 $as_echo_n "(cached) " >&6
8911else
8912
8913im_cv_ld_lazyload='none'
8914case "${host}" in
8915 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8916 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8917 im_cv_ld_lazyload='-Wl,-zlazyload'
8918 fi
8919 ;;
8920esac
8921
8922fi
cristy8b350f62009-11-15 23:12:43 +00008923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008924$as_echo "$im_cv_ld_lazyload" >&6; }
8925if test "${im_cv_ld_lazyload}" != 'none' ; then
8926 if test -z "${LDFLAGS}" ; then
8927 LDFLAGS="${im_cv_ld_lazyload}"
8928 else
8929 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8930 fi
8931fi
8932
8933case "$host" in
cristyc37574e2013-02-16 01:04:55 +00008934 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00008935 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00008936 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008937if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008938 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8939else
8940 build_osxuniversal=no
8941fi
8942
8943
cristyc37574e2013-02-16 01:04:55 +00008944 if test "${build_osxuniversal}" != no ; then
8945 if test "$enable_dependency_tracking" != no ; then
8946 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008947Please re-run configure with these options:
8948 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008949 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00008950 fi
8951 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8952 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8953 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00008954 fi
8955 ;;
8956esac
8957
cristy0151ae12011-10-28 16:32:29 +00008958#
8959# ARCH specific include directory
8960#
8961
cristy670aa3c2011-11-03 00:54:00 +00008962# Check whether --with-includearch-dir was given.
8963if test "${with_includearch_dir+set}" = set; then :
8964 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008965else
cristy670aa3c2011-11-03 00:54:00 +00008966 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008967fi
8968
8969
cristy670aa3c2011-11-03 00:54:00 +00008970eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008971
cristy0151ae12011-10-28 16:32:29 +00008972
8973#
8974# ARCH specific configuration directory
8975#
8976
cristy670aa3c2011-11-03 00:54:00 +00008977# Check whether --with-sharearch-dir was given.
8978if test "${with_sharearch_dir+set}" = set; then :
8979 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008980else
cristy408ebcd2011-11-14 01:36:57 +00008981 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008982fi
8983
8984
cristy670aa3c2011-11-03 00:54:00 +00008985eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008986
cristy0151ae12011-10-28 16:32:29 +00008987
8988#
cristy3ed852e2009-09-05 21:47:34 +00008989# Enable support for threads
8990
8991# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008992if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008993 withval=$with_threads; with_threads=$withval
8994else
8995 with_threads='yes'
8996fi
8997
8998
8999have_threads=no
9000if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009001
9002
cristy73bd4a52010-10-05 11:24:23 +00009003ac_ext=c
9004ac_cpp='$CPP $CPPFLAGS'
9005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007ac_compiler_gnu=$ac_cv_c_compiler_gnu
9008
9009ax_pthread_ok=no
9010
9011# We used to check for pthread.h first, but this fails if pthread.h
9012# requires special compiler flags (e.g. on True64 or Sequent).
9013# It gets checked for in the link test anyway.
9014
9015# First of all, check if the user has set any of the PTHREAD_LIBS,
9016# etcetera environment variables, and if threads linking works using
9017# them:
9018if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9019 save_CFLAGS="$CFLAGS"
9020 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9021 save_LIBS="$LIBS"
9022 LIBS="$PTHREAD_LIBS $LIBS"
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9024$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026/* end confdefs.h. */
9027
9028/* Override any GCC internal prototype to avoid an error.
9029 Use char because int might match the return type of a GCC
9030 builtin and then its argument prototype would still apply. */
9031#ifdef __cplusplus
9032extern "C"
9033#endif
9034char pthread_join ();
9035int
9036main ()
9037{
9038return pthread_join ();
9039 ;
9040 return 0;
9041}
9042_ACEOF
9043if ac_fn_c_try_link "$LINENO"; then :
9044 ax_pthread_ok=yes
9045fi
9046rm -f core conftest.err conftest.$ac_objext \
9047 conftest$ac_exeext conftest.$ac_ext
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9049$as_echo "$ax_pthread_ok" >&6; }
9050 if test x"$ax_pthread_ok" = xno; then
9051 PTHREAD_LIBS=""
9052 PTHREAD_CFLAGS=""
9053 fi
9054 LIBS="$save_LIBS"
9055 CFLAGS="$save_CFLAGS"
9056fi
9057
9058# We must check for the threads library under a number of different
9059# names; the ordering is very important because some systems
9060# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9061# libraries is broken (non-POSIX).
9062
9063# Create a list of thread flags to try. Items starting with a "-" are
9064# C compiler flags, and other items are library names, except for "none"
9065# which indicates that we try without any flags at all, and "pthread-config"
9066# which is a program returning the flags for the Pth emulation library.
9067
cristy18307f12011-12-30 01:20:16 +00009068ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009069
9070# The ordering *is* (sometimes) important. Some notes on the
9071# individual items follow:
9072
9073# pthreads: AIX (must check this before -lpthread)
9074# none: in case threads are in libc; should be tried before -Kthread and
9075# other compiler flags to prevent continual compiler warnings
9076# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9077# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9078# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9079# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9080# -pthreads: Solaris/gcc
9081# -mthreads: Mingw32/gcc, Lynx/gcc
9082# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9083# doesn't hurt to check since this sometimes defines pthreads too;
9084# also defines -D_REENTRANT)
9085# ... -mt is also the pthreads flag for HP/aCC
9086# pthread: Linux, etcetera
9087# --thread-safe: KAI C++
9088# pthread-config: use pthread-config program (for GNU Pth library)
9089
9090case "${host_cpu}-${host_os}" in
9091 *solaris*)
9092
9093 # On Solaris (at least, for some versions), libc contains stubbed
9094 # (non-functional) versions of the pthreads routines, so link-based
9095 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9096 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9097 # a function called by this macro, so we could check for that, but
9098 # who knows whether they'll stub that too in a future libc.) So,
9099 # we'll just look for -pthreads and -lpthread first:
9100
9101 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9102 ;;
9103
cristya316db12011-10-24 00:49:45 +00009104 *-darwin*)
9105 ax_pthread_flags="-pthread $ax_pthread_flags"
9106 ;;
cristy73bd4a52010-10-05 11:24:23 +00009107esac
9108
9109if test x"$ax_pthread_ok" = xno; then
9110for flag in $ax_pthread_flags; do
9111
9112 case $flag in
9113 none)
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9115$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9116 ;;
9117
9118 -*)
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9120$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9121 PTHREAD_CFLAGS="$flag"
9122 ;;
9123
cristya316db12011-10-24 00:49:45 +00009124 pthread-config)
9125 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009126set dummy pthread-config; ac_word=$2
9127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009129if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009130 $as_echo_n "(cached) " >&6
9131else
9132 if test -n "$ax_pthread_config"; then
9133 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9134else
9135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136for as_dir in $PATH
9137do
9138 IFS=$as_save_IFS
9139 test -z "$as_dir" && as_dir=.
9140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009142 ac_cv_prog_ax_pthread_config="yes"
9143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9144 break 2
9145 fi
9146done
9147 done
9148IFS=$as_save_IFS
9149
9150 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9151fi
9152fi
9153ax_pthread_config=$ac_cv_prog_ax_pthread_config
9154if test -n "$ax_pthread_config"; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9156$as_echo "$ax_pthread_config" >&6; }
9157else
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159$as_echo "no" >&6; }
9160fi
9161
9162
cristya316db12011-10-24 00:49:45 +00009163 if test x"$ax_pthread_config" = xno; then continue; fi
9164 PTHREAD_CFLAGS="`pthread-config --cflags`"
9165 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9166 ;;
cristy73bd4a52010-10-05 11:24:23 +00009167
9168 *)
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9170$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9171 PTHREAD_LIBS="-l$flag"
9172 ;;
9173 esac
9174
9175 save_LIBS="$LIBS"
9176 save_CFLAGS="$CFLAGS"
9177 LIBS="$PTHREAD_LIBS $LIBS"
9178 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9179
9180 # Check for various functions. We must include pthread.h,
9181 # since some functions may be macros. (On the Sequent, we
9182 # need a special flag -Kthread to make this header compile.)
9183 # We check for pthread_join because it is in -lpthread on IRIX
9184 # while pthread_create is in libc. We check for pthread_attr_init
9185 # due to DEC craziness with -lpthreads. We check for
9186 # pthread_cleanup_push because it is one of the few pthread
9187 # functions on Solaris that doesn't have a non-functional libc stub.
9188 # We try pthread_create on general principles.
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190/* end confdefs.h. */
9191#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009192 static void routine(void *a) { a = 0; }
9193 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009194int
9195main ()
9196{
9197pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009198 pthread_create(&th, 0, start_routine, 0);
9199 pthread_join(th, 0);
9200 pthread_attr_init(&attr);
9201 pthread_cleanup_push(routine, 0);
9202 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009203 ;
9204 return 0;
9205}
9206_ACEOF
9207if ac_fn_c_try_link "$LINENO"; then :
9208 ax_pthread_ok=yes
9209fi
9210rm -f core conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
9212
9213 LIBS="$save_LIBS"
9214 CFLAGS="$save_CFLAGS"
9215
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9217$as_echo "$ax_pthread_ok" >&6; }
9218 if test "x$ax_pthread_ok" = xyes; then
9219 break;
9220 fi
9221
9222 PTHREAD_LIBS=""
9223 PTHREAD_CFLAGS=""
9224done
9225fi
9226
9227# Various other checks:
9228if test "x$ax_pthread_ok" = xyes; then
9229 save_LIBS="$LIBS"
9230 LIBS="$PTHREAD_LIBS $LIBS"
9231 save_CFLAGS="$CFLAGS"
9232 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9233
9234 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009236$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009237 attr_name=unknown
9238 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009240/* end confdefs.h. */
9241#include <pthread.h>
9242int
9243main ()
9244{
cristya316db12011-10-24 00:49:45 +00009245int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009246 ;
9247 return 0;
9248}
9249_ACEOF
9250if ac_fn_c_try_link "$LINENO"; then :
9251 attr_name=$attr; break
9252fi
9253rm -f core conftest.err conftest.$ac_objext \
9254 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009255 done
cristy73bd4a52010-10-05 11:24:23 +00009256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9257$as_echo "$attr_name" >&6; }
9258 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9259
9260cat >>confdefs.h <<_ACEOF
9261#define PTHREAD_CREATE_JOINABLE $attr_name
9262_ACEOF
9263
9264 fi
9265
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9267$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9268 flag=no
9269 case "${host_cpu}-${host_os}" in
9270 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9271 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9272 esac
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9274$as_echo "${flag}" >&6; }
9275 if test "x$flag" != xno; then
9276 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9277 fi
9278
cristya316db12011-10-24 00:49:45 +00009279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9280$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9281if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9282 $as_echo_n "(cached) " >&6
9283else
9284
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286/* end confdefs.h. */
9287
9288 #include <pthread.h>
9289int
9290main ()
9291{
9292int i = PTHREAD_PRIO_INHERIT;
9293 ;
9294 return 0;
9295}
9296_ACEOF
9297if ac_fn_c_try_link "$LINENO"; then :
9298 ax_cv_PTHREAD_PRIO_INHERIT=yes
9299else
9300 ax_cv_PTHREAD_PRIO_INHERIT=no
9301fi
9302rm -f core conftest.err conftest.$ac_objext \
9303 conftest$ac_exeext conftest.$ac_ext
9304
9305fi
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9307$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9308 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9309
9310$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9311
9312fi
9313
cristy73bd4a52010-10-05 11:24:23 +00009314 LIBS="$save_LIBS"
9315 CFLAGS="$save_CFLAGS"
9316
9317 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009318 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009319 for ac_prog in xlc_r cc_r
9320do
9321 # Extract the first word of "$ac_prog", so it can be a program name with args.
9322set dummy $ac_prog; ac_word=$2
9323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009325if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009326 $as_echo_n "(cached) " >&6
9327else
9328 if test -n "$PTHREAD_CC"; then
9329 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9330else
9331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332for as_dir in $PATH
9333do
9334 IFS=$as_save_IFS
9335 test -z "$as_dir" && as_dir=.
9336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009338 ac_cv_prog_PTHREAD_CC="$ac_prog"
9339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9340 break 2
9341 fi
9342done
9343 done
9344IFS=$as_save_IFS
9345
9346fi
9347fi
9348PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9349if test -n "$PTHREAD_CC"; then
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9351$as_echo "$PTHREAD_CC" >&6; }
9352else
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354$as_echo "no" >&6; }
9355fi
9356
9357
9358 test -n "$PTHREAD_CC" && break
9359done
9360test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9361
9362 else
9363 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009364 fi
cristy73bd4a52010-10-05 11:24:23 +00009365else
9366 PTHREAD_CC="$CC"
9367fi
9368
9369
9370
9371
9372
9373# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9374if test x"$ax_pthread_ok" = xyes; then
9375
9376$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9377
9378 :
9379else
9380 ax_pthread_ok=no
9381
9382fi
9383ac_ext=c
9384ac_cpp='$CPP $CPPFLAGS'
9385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9387ac_compiler_gnu=$ac_cv_c_compiler_gnu
9388
9389
cristy7acf8fb2010-09-23 19:58:53 +00009390 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009391 have_threads=yes
9392 DEF_THREAD="$PTHREAD_CFLAGS"
9393 CFLAGS="$CFLAGS $DEF_THREAD"
9394 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9395 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009396 { $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 +00009397$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9398 CC="$PTHREAD_CC"
9399 fi
cristy55bf91c2010-09-24 00:29:41 +00009400
9401$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9402
cristy3ed852e2009-09-05 21:47:34 +00009403 fi
9404fi
9405
9406# Enable support for OpenMP
9407if test "$have_threads" != 'yes'; then
9408 ac_cv_prog_c_openmp=unsupported
9409fi
9410
9411 OPENMP_CFLAGS=
9412 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009413if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009414 enableval=$enable_openmp;
9415fi
9416
9417 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009419$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009420if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009421 $as_echo_n "(cached) " >&6
9422else
cristy8b350f62009-11-15 23:12:43 +00009423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009425
9426#ifndef _OPENMP
9427 choke me
9428#endif
9429#include <omp.h>
9430int main () { return omp_get_num_threads (); }
9431
9432_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009433if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009434 ac_cv_prog_c_openmp='none needed'
9435else
cristy8b350f62009-11-15 23:12:43 +00009436 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009437 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9438 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009439 ac_save_CFLAGS=$CFLAGS
9440 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009443
9444#ifndef _OPENMP
9445 choke me
9446#endif
9447#include <omp.h>
9448int main () { return omp_get_num_threads (); }
9449
9450_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009451if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009452 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009453fi
cristy8b350f62009-11-15 23:12:43 +00009454rm -f core conftest.err conftest.$ac_objext \
9455 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009456 CFLAGS=$ac_save_CFLAGS
9457 if test "$ac_cv_prog_c_openmp" != unsupported; then
9458 break
9459 fi
9460 done
9461fi
cristy8b350f62009-11-15 23:12:43 +00009462rm -f core conftest.err conftest.$ac_objext \
9463 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009464fi
cristy8b350f62009-11-15 23:12:43 +00009465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009466$as_echo "$ac_cv_prog_c_openmp" >&6; }
9467 case $ac_cv_prog_c_openmp in #(
9468 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009469 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009470 *)
cristy8b350f62009-11-15 23:12:43 +00009471 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009472 esac
9473 fi
9474
9475
9476CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9477MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9478
cristy391f1ce2010-09-09 17:23:28 +00009479if test "$enable_openmp" != no; then
9480 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9481 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9482 fi
9483fi
cristy3ed852e2009-09-05 21:47:34 +00009484
cristy736173a2009-09-20 21:18:22 +00009485# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009486
9487
cristy73bd4a52010-10-05 11:24:23 +00009488ac_ext=c
9489ac_cpp='$CPP $CPPFLAGS'
9490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9492ac_compiler_gnu=$ac_cv_c_compiler_gnu
9493
9494ax_pthread_ok=no
9495
9496# We used to check for pthread.h first, but this fails if pthread.h
9497# requires special compiler flags (e.g. on True64 or Sequent).
9498# It gets checked for in the link test anyway.
9499
9500# First of all, check if the user has set any of the PTHREAD_LIBS,
9501# etcetera environment variables, and if threads linking works using
9502# them:
9503if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9504 save_CFLAGS="$CFLAGS"
9505 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9506 save_LIBS="$LIBS"
9507 LIBS="$PTHREAD_LIBS $LIBS"
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9509$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511/* end confdefs.h. */
9512
9513/* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
9516#ifdef __cplusplus
9517extern "C"
9518#endif
9519char pthread_join ();
9520int
9521main ()
9522{
9523return pthread_join ();
9524 ;
9525 return 0;
9526}
9527_ACEOF
9528if ac_fn_c_try_link "$LINENO"; then :
9529 ax_pthread_ok=yes
9530fi
9531rm -f core conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9534$as_echo "$ax_pthread_ok" >&6; }
9535 if test x"$ax_pthread_ok" = xno; then
9536 PTHREAD_LIBS=""
9537 PTHREAD_CFLAGS=""
9538 fi
9539 LIBS="$save_LIBS"
9540 CFLAGS="$save_CFLAGS"
9541fi
9542
9543# We must check for the threads library under a number of different
9544# names; the ordering is very important because some systems
9545# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9546# libraries is broken (non-POSIX).
9547
9548# Create a list of thread flags to try. Items starting with a "-" are
9549# C compiler flags, and other items are library names, except for "none"
9550# which indicates that we try without any flags at all, and "pthread-config"
9551# which is a program returning the flags for the Pth emulation library.
9552
cristy18307f12011-12-30 01:20:16 +00009553ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009554
9555# The ordering *is* (sometimes) important. Some notes on the
9556# individual items follow:
9557
9558# pthreads: AIX (must check this before -lpthread)
9559# none: in case threads are in libc; should be tried before -Kthread and
9560# other compiler flags to prevent continual compiler warnings
9561# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9562# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9563# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9564# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9565# -pthreads: Solaris/gcc
9566# -mthreads: Mingw32/gcc, Lynx/gcc
9567# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9568# doesn't hurt to check since this sometimes defines pthreads too;
9569# also defines -D_REENTRANT)
9570# ... -mt is also the pthreads flag for HP/aCC
9571# pthread: Linux, etcetera
9572# --thread-safe: KAI C++
9573# pthread-config: use pthread-config program (for GNU Pth library)
9574
9575case "${host_cpu}-${host_os}" in
9576 *solaris*)
9577
9578 # On Solaris (at least, for some versions), libc contains stubbed
9579 # (non-functional) versions of the pthreads routines, so link-based
9580 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9581 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9582 # a function called by this macro, so we could check for that, but
9583 # who knows whether they'll stub that too in a future libc.) So,
9584 # we'll just look for -pthreads and -lpthread first:
9585
9586 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9587 ;;
9588
cristya316db12011-10-24 00:49:45 +00009589 *-darwin*)
9590 ax_pthread_flags="-pthread $ax_pthread_flags"
9591 ;;
cristy73bd4a52010-10-05 11:24:23 +00009592esac
9593
9594if test x"$ax_pthread_ok" = xno; then
9595for flag in $ax_pthread_flags; do
9596
9597 case $flag in
9598 none)
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9600$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9601 ;;
9602
9603 -*)
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9605$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9606 PTHREAD_CFLAGS="$flag"
9607 ;;
9608
cristya316db12011-10-24 00:49:45 +00009609 pthread-config)
9610 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009611set dummy pthread-config; ac_word=$2
9612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9613$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009614if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009615 $as_echo_n "(cached) " >&6
9616else
9617 if test -n "$ax_pthread_config"; then
9618 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9619else
9620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9621for as_dir in $PATH
9622do
9623 IFS=$as_save_IFS
9624 test -z "$as_dir" && as_dir=.
9625 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009627 ac_cv_prog_ax_pthread_config="yes"
9628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9629 break 2
9630 fi
9631done
9632 done
9633IFS=$as_save_IFS
9634
9635 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9636fi
9637fi
9638ax_pthread_config=$ac_cv_prog_ax_pthread_config
9639if test -n "$ax_pthread_config"; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9641$as_echo "$ax_pthread_config" >&6; }
9642else
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644$as_echo "no" >&6; }
9645fi
9646
9647
cristya316db12011-10-24 00:49:45 +00009648 if test x"$ax_pthread_config" = xno; then continue; fi
9649 PTHREAD_CFLAGS="`pthread-config --cflags`"
9650 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9651 ;;
cristy73bd4a52010-10-05 11:24:23 +00009652
9653 *)
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9655$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9656 PTHREAD_LIBS="-l$flag"
9657 ;;
9658 esac
9659
9660 save_LIBS="$LIBS"
9661 save_CFLAGS="$CFLAGS"
9662 LIBS="$PTHREAD_LIBS $LIBS"
9663 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9664
9665 # Check for various functions. We must include pthread.h,
9666 # since some functions may be macros. (On the Sequent, we
9667 # need a special flag -Kthread to make this header compile.)
9668 # We check for pthread_join because it is in -lpthread on IRIX
9669 # while pthread_create is in libc. We check for pthread_attr_init
9670 # due to DEC craziness with -lpthreads. We check for
9671 # pthread_cleanup_push because it is one of the few pthread
9672 # functions on Solaris that doesn't have a non-functional libc stub.
9673 # We try pthread_create on general principles.
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675/* end confdefs.h. */
9676#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009677 static void routine(void *a) { a = 0; }
9678 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009679int
9680main ()
9681{
9682pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009683 pthread_create(&th, 0, start_routine, 0);
9684 pthread_join(th, 0);
9685 pthread_attr_init(&attr);
9686 pthread_cleanup_push(routine, 0);
9687 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009688 ;
9689 return 0;
9690}
9691_ACEOF
9692if ac_fn_c_try_link "$LINENO"; then :
9693 ax_pthread_ok=yes
9694fi
9695rm -f core conftest.err conftest.$ac_objext \
9696 conftest$ac_exeext conftest.$ac_ext
9697
9698 LIBS="$save_LIBS"
9699 CFLAGS="$save_CFLAGS"
9700
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9702$as_echo "$ax_pthread_ok" >&6; }
9703 if test "x$ax_pthread_ok" = xyes; then
9704 break;
9705 fi
9706
9707 PTHREAD_LIBS=""
9708 PTHREAD_CFLAGS=""
9709done
9710fi
9711
9712# Various other checks:
9713if test "x$ax_pthread_ok" = xyes; then
9714 save_LIBS="$LIBS"
9715 LIBS="$PTHREAD_LIBS $LIBS"
9716 save_CFLAGS="$CFLAGS"
9717 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9718
9719 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009721$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009722 attr_name=unknown
9723 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009725/* end confdefs.h. */
9726#include <pthread.h>
9727int
9728main ()
9729{
cristya316db12011-10-24 00:49:45 +00009730int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009731 ;
9732 return 0;
9733}
9734_ACEOF
9735if ac_fn_c_try_link "$LINENO"; then :
9736 attr_name=$attr; break
9737fi
9738rm -f core conftest.err conftest.$ac_objext \
9739 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009740 done
cristy73bd4a52010-10-05 11:24:23 +00009741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9742$as_echo "$attr_name" >&6; }
9743 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9744
9745cat >>confdefs.h <<_ACEOF
9746#define PTHREAD_CREATE_JOINABLE $attr_name
9747_ACEOF
9748
9749 fi
9750
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9752$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9753 flag=no
9754 case "${host_cpu}-${host_os}" in
9755 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9756 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9757 esac
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9759$as_echo "${flag}" >&6; }
9760 if test "x$flag" != xno; then
9761 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9762 fi
9763
cristya316db12011-10-24 00:49:45 +00009764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9765$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9766if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9767 $as_echo_n "(cached) " >&6
9768else
9769
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771/* end confdefs.h. */
9772
9773 #include <pthread.h>
9774int
9775main ()
9776{
9777int i = PTHREAD_PRIO_INHERIT;
9778 ;
9779 return 0;
9780}
9781_ACEOF
9782if ac_fn_c_try_link "$LINENO"; then :
9783 ax_cv_PTHREAD_PRIO_INHERIT=yes
9784else
9785 ax_cv_PTHREAD_PRIO_INHERIT=no
9786fi
9787rm -f core conftest.err conftest.$ac_objext \
9788 conftest$ac_exeext conftest.$ac_ext
9789
9790fi
9791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9792$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9793 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9794
9795$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9796
9797fi
9798
cristy73bd4a52010-10-05 11:24:23 +00009799 LIBS="$save_LIBS"
9800 CFLAGS="$save_CFLAGS"
9801
9802 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009803 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009804 for ac_prog in xlc_r cc_r
9805do
9806 # Extract the first word of "$ac_prog", so it can be a program name with args.
9807set dummy $ac_prog; ac_word=$2
9808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9809$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009810if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009811 $as_echo_n "(cached) " >&6
9812else
9813 if test -n "$PTHREAD_CC"; then
9814 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9815else
9816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9817for as_dir in $PATH
9818do
9819 IFS=$as_save_IFS
9820 test -z "$as_dir" && as_dir=.
9821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009823 ac_cv_prog_PTHREAD_CC="$ac_prog"
9824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9825 break 2
9826 fi
9827done
9828 done
9829IFS=$as_save_IFS
9830
9831fi
9832fi
9833PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9834if test -n "$PTHREAD_CC"; then
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9836$as_echo "$PTHREAD_CC" >&6; }
9837else
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9839$as_echo "no" >&6; }
9840fi
9841
9842
9843 test -n "$PTHREAD_CC" && break
9844done
9845test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9846
9847 else
9848 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009849 fi
cristy73bd4a52010-10-05 11:24:23 +00009850else
9851 PTHREAD_CC="$CC"
9852fi
9853
9854
9855
9856
9857
9858# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9859if test x"$ax_pthread_ok" = xyes; then
9860
9861$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9862
9863 :
9864else
9865 ax_pthread_ok=no
9866
9867fi
9868ac_ext=c
9869ac_cpp='$CPP $CPPFLAGS'
9870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9872ac_compiler_gnu=$ac_cv_c_compiler_gnu
9873
9874
9875
9876# Check whether --enable-opencl was given.
9877if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009878 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009879else
cristy48794642012-09-02 15:19:08 +00009880 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009881fi
9882
9883
cristy48794642012-09-02 15:19:08 +00009884if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009885 ac_ext=c
9886ac_cpp='$CPP $CPPFLAGS'
9887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9889ac_compiler_gnu=$ac_cv_c_compiler_gnu
9890
cristy75314cc2012-09-15 23:08:29 +00009891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9892$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9893if ${ax_cv_c_compiler_ms+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895else
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897/* end confdefs.h. */
9898
9899int
9900main ()
9901{
9902#ifndef _MSC_VER
9903 choke me
9904#endif
9905
9906 ;
9907 return 0;
9908}
9909_ACEOF
9910if ac_fn_c_try_compile "$LINENO"; then :
9911 ax_compiler_ms=yes
9912else
9913 ax_compiler_ms=no
9914fi
9915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9916ax_cv_c_compiler_ms=$ax_compiler_ms
9917
9918fi
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9920$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009921 if test X$ax_compiler_ms = Xno; then :
9922 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9923fi
9924
9925 ax_save_CPPFLAGS=$CPPFLAGS
9926 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9927 for ac_header in CL/cl.h OpenCL/cl.h
9928do :
9929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9930ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009931if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009932 cat >>confdefs.h <<_ACEOF
9933#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9934_ACEOF
9935
9936fi
9937
9938done
9939
9940 CPPFLAGS=$ax_save_CPPFLAGS
9941
9942 for ac_header in windows.h
9943do :
9944 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009945if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009946 cat >>confdefs.h <<_ACEOF
9947#define HAVE_WINDOWS_H 1
9948_ACEOF
9949
9950fi
9951
9952done
9953
9954
9955
9956
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9958$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009959if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009960 $as_echo_n "(cached) " >&6
9961else
9962 ax_cv_check_cl_libcl=no
9963 case $host_cpu in
9964 x86_64) ax_check_cl_libdir=lib64 ;;
9965 *) ax_check_cl_libdir=lib ;;
9966 esac
9967 ax_save_CPPFLAGS=$CPPFLAGS
9968 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9969 ax_save_LIBS=$LIBS
9970 LIBS=""
9971 ax_check_libs="-lOpenCL -lCL -lclparser"
9972 for ax_lib in $ax_check_libs; do
9973 if test X$ax_compiler_ms = Xyes; then :
9974 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9975else
9976 ax_try_lib=$ax_lib
9977fi
9978 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980/* end confdefs.h. */
9981
9982 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9983 # include <windows.h>
9984 # endif
9985 # ifdef HAVE_CL_CL_H
9986 # include <CL/cl.h>
9987 # elif defined(HAVE_OPENCL_CL_H)
9988 # include <OpenCL/cl.h>
9989 # else
9990 # error no CL.h
9991 # endif
9992int
9993main ()
9994{
9995clCreateContextFromType(0,0,0,0,0)
9996 ;
9997 return 0;
9998}
9999_ACEOF
10000if ac_fn_c_try_link "$LINENO"; then :
10001 ax_cv_check_cl_libcl=$ax_try_lib; break
10002else
10003 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"
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005/* end confdefs.h. */
10006
10007 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10008 # include <windows.h>
10009 # endif
10010 # ifdef HAVE_CL_CL_H
10011 # include <CL/cl.h>
10012 # elif defined(HAVE_OPENCL_CL_H)
10013 # include <OpenCL/cl.h>
10014 # else
10015 # error no CL.h
10016 # endif
10017int
10018main ()
10019{
10020clCreateContextFromType(0,0,0,0,0)
10021 ;
10022 return 0;
10023}
10024_ACEOF
10025if ac_fn_c_try_link "$LINENO"; then :
10026 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10027else
cristy78c5a0c2010-12-04 20:00:59 +000010028 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 +000010029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030/* end confdefs.h. */
10031
10032 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10033 # include <windows.h>
10034 # endif
10035 # ifdef HAVE_CL_CL_H
10036 # include <CL/cl.h>
10037 # elif defined(HAVE_OPENCL_CL_H)
10038 # include <OpenCL/cl.h>
10039 # else
10040 # error no CL.h
10041 # endif
10042int
10043main ()
10044{
10045clCreateContextFromType(0,0,0,0,0)
10046 ;
10047 return 0;
10048}
10049_ACEOF
10050if ac_fn_c_try_link "$LINENO"; then :
10051 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10052fi
10053rm -f core conftest.err conftest.$ac_objext \
10054 conftest$ac_exeext conftest.$ac_ext
10055fi
10056rm -f core conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10058fi
10059rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061 done
10062
cristyc3f8b8e2011-12-22 14:55:16 +000010063 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010064 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066/* end confdefs.h. */
10067
10068 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10069 # include <windows.h>
10070 # endif
10071 # ifdef HAVE_CL_CL_H
10072 # include <CL/cl.h>
10073 # elif defined(HAVE_OPENCL_CL_H)
10074 # include <OpenCL/cl.h>
10075 # else
10076 # error no CL.h
10077 # endif
10078int
10079main ()
10080{
10081clCreateContextFromType(0,0,0,0,0)
10082 ;
10083 return 0;
10084}
10085_ACEOF
10086if ac_fn_c_try_link "$LINENO"; then :
10087 ax_cv_check_cl_libcl=$LIBS
10088fi
10089rm -f core conftest.err conftest.$ac_objext \
10090 conftest$ac_exeext conftest.$ac_ext
10091fi
10092
10093 LIBS=$ax_save_LIBS
10094 CPPFLAGS=$ax_save_CPPFLAGS
10095fi
10096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10097$as_echo "$ax_cv_check_cl_libcl" >&6; }
10098
10099 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10100 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10101else
10102 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10103$as_echo "#define _OPENCL 1" >>confdefs.h
10104
10105fi
10106 ac_ext=c
10107ac_cpp='$CPP $CPPFLAGS'
10108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10110ac_compiler_gnu=$ac_cv_c_compiler_gnu
10111
10112fi
10113
10114
10115
10116
cristyc7083c12009-10-14 03:16:55 +000010117CFLAGS="$CL_CFLAGS $CFLAGS"
10118LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010119
cristy391f1ce2010-09-09 17:23:28 +000010120if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010121 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010122 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10123 fi
cristyfd9dcd42010-08-08 18:07:02 +000010124fi
cristy2e8b51d2009-10-17 18:26:15 +000010125
cristy3ed852e2009-09-05 21:47:34 +000010126########
10127#
10128# Check for large file support
10129#
10130########
10131# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010132if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010133 enableval=$enable_largefile;
10134fi
10135
10136if test "$enable_largefile" != no; then
10137
cristy8b350f62009-11-15 23:12:43 +000010138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010139$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010140if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010141 $as_echo_n "(cached) " >&6
10142else
10143 ac_cv_sys_largefile_CC=no
10144 if test "$GCC" != yes; then
10145 ac_save_CC=$CC
10146 while :; do
10147 # IRIX 6.2 and later do not support large files by default,
10148 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010150/* end confdefs.h. */
10151#include <sys/types.h>
10152 /* Check that off_t can represent 2**63 - 1 correctly.
10153 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10154 since some C++ compilers masquerading as C compilers
10155 incorrectly reject 9223372036854775807. */
10156#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10158 && LARGE_OFF_T % 2147483647 == 1)
10159 ? 1 : -1];
10160int
10161main ()
10162{
10163
10164 ;
10165 return 0;
10166}
10167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010168 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010169 break
cristy3ed852e2009-09-05 21:47:34 +000010170fi
cristy3ed852e2009-09-05 21:47:34 +000010171rm -f core conftest.err conftest.$ac_objext
10172 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010173 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010174 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010175fi
cristy3ed852e2009-09-05 21:47:34 +000010176rm -f core conftest.err conftest.$ac_objext
10177 break
10178 done
10179 CC=$ac_save_CC
10180 rm -f conftest.$ac_ext
10181 fi
10182fi
cristy8b350f62009-11-15 23:12:43 +000010183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010184$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10185 if test "$ac_cv_sys_largefile_CC" != no; then
10186 CC=$CC$ac_cv_sys_largefile_CC
10187 fi
10188
cristy8b350f62009-11-15 23:12:43 +000010189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010190$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010191if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010192 $as_echo_n "(cached) " >&6
10193else
10194 while :; do
cristy8b350f62009-11-15 23:12:43 +000010195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010196/* end confdefs.h. */
10197#include <sys/types.h>
10198 /* Check that off_t can represent 2**63 - 1 correctly.
10199 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10200 since some C++ compilers masquerading as C compilers
10201 incorrectly reject 9223372036854775807. */
10202#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10204 && LARGE_OFF_T % 2147483647 == 1)
10205 ? 1 : -1];
10206int
10207main ()
10208{
10209
10210 ;
10211 return 0;
10212}
10213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010214if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010215 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010216fi
cristy3ed852e2009-09-05 21:47:34 +000010217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010219/* end confdefs.h. */
10220#define _FILE_OFFSET_BITS 64
10221#include <sys/types.h>
10222 /* Check that off_t can represent 2**63 - 1 correctly.
10223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10224 since some C++ compilers masquerading as C compilers
10225 incorrectly reject 9223372036854775807. */
10226#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10228 && LARGE_OFF_T % 2147483647 == 1)
10229 ? 1 : -1];
10230int
10231main ()
10232{
10233
10234 ;
10235 return 0;
10236}
10237_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010238if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010239 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010240fi
cristy3ed852e2009-09-05 21:47:34 +000010241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10242 ac_cv_sys_file_offset_bits=unknown
10243 break
10244done
10245fi
cristy8b350f62009-11-15 23:12:43 +000010246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010247$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10248case $ac_cv_sys_file_offset_bits in #(
10249 no | unknown) ;;
10250 *)
10251cat >>confdefs.h <<_ACEOF
10252#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10253_ACEOF
10254;;
10255esac
10256rm -rf conftest*
10257 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010259$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010260if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010261 $as_echo_n "(cached) " >&6
10262else
10263 while :; do
cristy8b350f62009-11-15 23:12:43 +000010264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010265/* end confdefs.h. */
10266#include <sys/types.h>
10267 /* Check that off_t can represent 2**63 - 1 correctly.
10268 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10269 since some C++ compilers masquerading as C compilers
10270 incorrectly reject 9223372036854775807. */
10271#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10273 && LARGE_OFF_T % 2147483647 == 1)
10274 ? 1 : -1];
10275int
10276main ()
10277{
10278
10279 ;
10280 return 0;
10281}
10282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010283if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010284 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010285fi
cristy3ed852e2009-09-05 21:47:34 +000010286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010288/* end confdefs.h. */
10289#define _LARGE_FILES 1
10290#include <sys/types.h>
10291 /* Check that off_t can represent 2**63 - 1 correctly.
10292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10293 since some C++ compilers masquerading as C compilers
10294 incorrectly reject 9223372036854775807. */
10295#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10297 && LARGE_OFF_T % 2147483647 == 1)
10298 ? 1 : -1];
10299int
10300main ()
10301{
10302
10303 ;
10304 return 0;
10305}
10306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010307if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010308 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010309fi
cristy3ed852e2009-09-05 21:47:34 +000010310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311 ac_cv_sys_large_files=unknown
10312 break
10313done
10314fi
cristy8b350f62009-11-15 23:12:43 +000010315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010316$as_echo "$ac_cv_sys_large_files" >&6; }
10317case $ac_cv_sys_large_files in #(
10318 no | unknown) ;;
10319 *)
10320cat >>confdefs.h <<_ACEOF
10321#define _LARGE_FILES $ac_cv_sys_large_files
10322_ACEOF
10323;;
10324esac
10325rm -rf conftest*
10326 fi
cristy14fefe52012-05-21 00:59:18 +000010327
10328
cristy3ed852e2009-09-05 21:47:34 +000010329fi
10330
cristy8b350f62009-11-15 23:12:43 +000010331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010332$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010333if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010334 $as_echo_n "(cached) " >&6
10335else
10336 while :; do
cristy8b350f62009-11-15 23:12:43 +000010337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010338/* end confdefs.h. */
10339#include <sys/types.h> /* for off_t */
10340 #include <stdio.h>
10341int
10342main ()
10343{
10344int (*fp) (FILE *, off_t, int) = fseeko;
10345 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10346 ;
10347 return 0;
10348}
10349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010351 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010352fi
cristy8b350f62009-11-15 23:12:43 +000010353rm -f core conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010356/* end confdefs.h. */
10357#define _LARGEFILE_SOURCE 1
10358#include <sys/types.h> /* for off_t */
10359 #include <stdio.h>
10360int
10361main ()
10362{
10363int (*fp) (FILE *, off_t, int) = fseeko;
10364 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10365 ;
10366 return 0;
10367}
10368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010369if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010370 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010371fi
cristy8b350f62009-11-15 23:12:43 +000010372rm -f core conftest.err conftest.$ac_objext \
10373 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010374 ac_cv_sys_largefile_source=unknown
10375 break
10376done
10377fi
cristy8b350f62009-11-15 23:12:43 +000010378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010379$as_echo "$ac_cv_sys_largefile_source" >&6; }
10380case $ac_cv_sys_largefile_source in #(
10381 no | unknown) ;;
10382 *)
10383cat >>confdefs.h <<_ACEOF
10384#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10385_ACEOF
10386;;
10387esac
10388rm -rf conftest*
10389
10390# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10391# in glibc 2.1.3, but that breaks too many other things.
10392# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10393if test $ac_cv_sys_largefile_source != unknown; then
10394
cristy8b350f62009-11-15 23:12:43 +000010395$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010396
10397fi
10398
10399LFS_CPPFLAGS=''
10400if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010401 case $ac_cv_sys_file_offset_bits in
10402 no)
10403 # nothing to do here as the host supports LFS fine
10404 ;;
10405 unknown)
cristy8b350f62009-11-15 23:12:43 +000010406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010407$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010408 if test "$cross_compiling" = yes; then :
10409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010411as_fn_error $? "cannot run test program while cross compiling
10412See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010413else
cristy8b350f62009-11-15 23:12:43 +000010414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010416#include <unistd.h>
10417 main () {
10418 exit(!(sizeof(off_t) == 8));
10419 }
cristyda16f162011-02-19 23:52:17 +000010420int
10421main ()
10422{
10423
10424 ;
10425 return 0;
10426}
cristy3ed852e2009-09-05 21:47:34 +000010427_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010428if ac_fn_c_try_run "$LINENO"; then :
10429 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010430
cristyad38abe2012-12-23 23:03:21 +000010431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10432$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010433else
cristyad38abe2012-12-23 23:03:21 +000010434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10435$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010436fi
cristy8b350f62009-11-15 23:12:43 +000010437rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10438 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010439fi
10440
cristyc1e0cc12011-09-21 16:41:16 +000010441 ;;
10442 *)
10443 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10444 ;;
10445 esac
cristy3ed852e2009-09-05 21:47:34 +000010446 if test "$ac_cv_sys_large_files" != 'no'; then
10447 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10448 fi
10449 if test "$ac_cv_sys_largefile_source" != 'no'; then
10450 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10451 fi
10452fi
10453
10454
cristy3ed852e2009-09-05 21:47:34 +000010455# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010456enable_dlopen=yes
10457
10458
10459
10460case `pwd` in
10461 *\ * | *\ *)
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10463$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10464esac
10465
10466
10467
cristy99bd5232011-12-07 14:38:20 +000010468macro_version='2.4.2'
10469macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483ltmain="$ac_aux_dir/ltmain.sh"
10484
cristy0c60a692010-11-04 01:09:47 +000010485# Backslashify metacharacters that are still active within
10486# double-quoted strings.
10487sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10488
10489# Same as above, but do not quote variable references.
10490double_quote_subst='s/\(["`\\]\)/\\\1/g'
10491
10492# Sed substitution to delay expansion of an escaped shell variable in a
10493# double_quote_subst'ed string.
10494delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10495
10496# Sed substitution to delay expansion of an escaped single quote.
10497delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10498
10499# Sed substitution to avoid accidental globbing in evaled expressions
10500no_glob_subst='s/\*/\\\*/g'
10501
cristy73bd4a52010-10-05 11:24:23 +000010502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10503$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010504if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010505 $as_echo_n "(cached) " >&6
10506else
10507 if test -n "$NM"; then
10508 # Let the user override the test.
10509 lt_cv_path_NM="$NM"
10510else
10511 lt_nm_to_check="${ac_tool_prefix}nm"
10512 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10513 lt_nm_to_check="$lt_nm_to_check nm"
10514 fi
10515 for lt_tmp_nm in $lt_nm_to_check; do
10516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10517 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10518 IFS="$lt_save_ifs"
10519 test -z "$ac_dir" && ac_dir=.
10520 tmp_nm="$ac_dir/$lt_tmp_nm"
10521 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10522 # Check to see if the nm accepts a BSD-compat flag.
10523 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10524 # nm: unknown option "B" ignored
10525 # Tru64's nm complains that /dev/null is an invalid object file
10526 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10527 */dev/null* | *'Invalid file or object type'*)
10528 lt_cv_path_NM="$tmp_nm -B"
10529 break
10530 ;;
10531 *)
10532 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10533 */dev/null*)
10534 lt_cv_path_NM="$tmp_nm -p"
10535 break
10536 ;;
10537 *)
10538 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10539 continue # so that we can try to find one that supports BSD flags
10540 ;;
10541 esac
10542 ;;
10543 esac
10544 fi
10545 done
10546 IFS="$lt_save_ifs"
10547 done
10548 : ${lt_cv_path_NM=no}
10549fi
10550fi
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10552$as_echo "$lt_cv_path_NM" >&6; }
10553if test "$lt_cv_path_NM" != "no"; then
10554 NM="$lt_cv_path_NM"
10555else
10556 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010557 if test -n "$DUMPBIN"; then :
10558 # Let the user override the test.
10559 else
10560 if test -n "$ac_tool_prefix"; then
10561 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010562 do
10563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10564set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10566$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010567if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010568 $as_echo_n "(cached) " >&6
10569else
10570 if test -n "$DUMPBIN"; then
10571 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10572else
10573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10574for as_dir in $PATH
10575do
10576 IFS=$as_save_IFS
10577 test -z "$as_dir" && as_dir=.
10578 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010580 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10582 break 2
10583 fi
10584done
10585 done
10586IFS=$as_save_IFS
10587
10588fi
10589fi
10590DUMPBIN=$ac_cv_prog_DUMPBIN
10591if test -n "$DUMPBIN"; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10593$as_echo "$DUMPBIN" >&6; }
10594else
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596$as_echo "no" >&6; }
10597fi
10598
10599
10600 test -n "$DUMPBIN" && break
10601 done
10602fi
10603if test -z "$DUMPBIN"; then
10604 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010605 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010606do
10607 # Extract the first word of "$ac_prog", so it can be a program name with args.
10608set dummy $ac_prog; ac_word=$2
10609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10610$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010611if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010612 $as_echo_n "(cached) " >&6
10613else
10614 if test -n "$ac_ct_DUMPBIN"; then
10615 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10616else
10617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618for as_dir in $PATH
10619do
10620 IFS=$as_save_IFS
10621 test -z "$as_dir" && as_dir=.
10622 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010624 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 break 2
10627 fi
10628done
10629 done
10630IFS=$as_save_IFS
10631
10632fi
10633fi
10634ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10635if test -n "$ac_ct_DUMPBIN"; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10637$as_echo "$ac_ct_DUMPBIN" >&6; }
10638else
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640$as_echo "no" >&6; }
10641fi
10642
10643
10644 test -n "$ac_ct_DUMPBIN" && break
10645done
10646
10647 if test "x$ac_ct_DUMPBIN" = x; then
10648 DUMPBIN=":"
10649 else
10650 case $cross_compiling:$ac_tool_warned in
10651yes:)
10652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10654ac_tool_warned=yes ;;
10655esac
10656 DUMPBIN=$ac_ct_DUMPBIN
10657 fi
10658fi
10659
cristy0c60a692010-11-04 01:09:47 +000010660 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10661 *COFF*)
10662 DUMPBIN="$DUMPBIN -symbols"
10663 ;;
10664 *)
10665 DUMPBIN=:
10666 ;;
10667 esac
10668 fi
cristy73bd4a52010-10-05 11:24:23 +000010669
10670 if test "$DUMPBIN" != ":"; then
10671 NM="$DUMPBIN"
10672 fi
10673fi
10674test -z "$NM" && NM=nm
10675
10676
10677
10678
10679
10680
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10682$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010683if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010684 $as_echo_n "(cached) " >&6
10685else
10686 lt_cv_nm_interface="BSD nm"
10687 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010688 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010689 (eval "$ac_compile" 2>conftest.err)
10690 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010691 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010692 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10693 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010694 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010695 cat conftest.out >&5
10696 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10697 lt_cv_nm_interface="MS dumpbin"
10698 fi
10699 rm -f conftest*
10700fi
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10702$as_echo "$lt_cv_nm_interface" >&6; }
10703
10704# find the maximum length of command line arguments
10705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10706$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010707if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010708 $as_echo_n "(cached) " >&6
10709else
10710 i=0
10711 teststring="ABCD"
10712
10713 case $build_os in
10714 msdosdjgpp*)
10715 # On DJGPP, this test can blow up pretty badly due to problems in libc
10716 # (any single argument exceeding 2000 bytes causes a buffer overrun
10717 # during glob expansion). Even if it were fixed, the result of this
10718 # check would be larger than it should be.
10719 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10720 ;;
10721
10722 gnu*)
10723 # Under GNU Hurd, this test is not required because there is
10724 # no limit to the length of command line arguments.
10725 # Libtool will interpret -1 as no limit whatsoever
10726 lt_cv_sys_max_cmd_len=-1;
10727 ;;
10728
10729 cygwin* | mingw* | cegcc*)
10730 # On Win9x/ME, this test blows up -- it succeeds, but takes
10731 # about 5 minutes as the teststring grows exponentially.
10732 # Worse, since 9x/ME are not pre-emptively multitasking,
10733 # you end up with a "frozen" computer, even though with patience
10734 # the test eventually succeeds (with a max line length of 256k).
10735 # Instead, let's just punt: use the minimum linelength reported by
10736 # all of the supported platforms: 8192 (on NT/2K/XP).
10737 lt_cv_sys_max_cmd_len=8192;
10738 ;;
10739
cristy0c60a692010-11-04 01:09:47 +000010740 mint*)
10741 # On MiNT this can take a long time and run out of memory.
10742 lt_cv_sys_max_cmd_len=8192;
10743 ;;
10744
cristy73bd4a52010-10-05 11:24:23 +000010745 amigaos*)
10746 # On AmigaOS with pdksh, this test takes hours, literally.
10747 # So we just punt and use a minimum line length of 8192.
10748 lt_cv_sys_max_cmd_len=8192;
10749 ;;
10750
10751 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10752 # This has been around since 386BSD, at least. Likely further.
10753 if test -x /sbin/sysctl; then
10754 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10755 elif test -x /usr/sbin/sysctl; then
10756 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10757 else
10758 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10759 fi
10760 # And add a safety zone
10761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10763 ;;
10764
10765 interix*)
10766 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10767 lt_cv_sys_max_cmd_len=196608
10768 ;;
10769
cristy99bd5232011-12-07 14:38:20 +000010770 os2*)
10771 # The test takes a long time on OS/2.
10772 lt_cv_sys_max_cmd_len=8192
10773 ;;
10774
cristy73bd4a52010-10-05 11:24:23 +000010775 osf*)
10776 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10777 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10778 # nice to cause kernel panics so lets avoid the loop below.
10779 # First set a reasonable default.
10780 lt_cv_sys_max_cmd_len=16384
10781 #
10782 if test -x /sbin/sysconfig; then
10783 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10784 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10785 esac
10786 fi
10787 ;;
10788 sco3.2v5*)
10789 lt_cv_sys_max_cmd_len=102400
10790 ;;
10791 sysv5* | sco5v6* | sysv4.2uw2*)
10792 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10793 if test -n "$kargmax"; then
10794 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10795 else
10796 lt_cv_sys_max_cmd_len=32768
10797 fi
10798 ;;
10799 *)
10800 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10801 if test -n "$lt_cv_sys_max_cmd_len"; then
10802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10804 else
10805 # Make teststring a little bigger before we do anything with it.
10806 # a 1K string should be a reasonable start.
10807 for i in 1 2 3 4 5 6 7 8 ; do
10808 teststring=$teststring$teststring
10809 done
10810 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10811 # If test is not a shell built-in, we'll probably end up computing a
10812 # maximum length that is only half of the actual maximum length, but
10813 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010814 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010815 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010816 test $i != 17 # 1/2 MB should be enough
10817 do
10818 i=`expr $i + 1`
10819 teststring=$teststring$teststring
10820 done
10821 # Only check the string length outside the loop.
10822 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10823 teststring=
10824 # Add a significant safety factor because C++ compilers can tack on
10825 # massive amounts of additional arguments before passing them to the
10826 # linker. It appears as though 1/2 is a usable value.
10827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10828 fi
10829 ;;
10830 esac
10831
10832fi
10833
10834if test -n $lt_cv_sys_max_cmd_len ; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10836$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10837else
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10839$as_echo "none" >&6; }
10840fi
10841max_cmd_len=$lt_cv_sys_max_cmd_len
10842
10843
10844
10845
10846
10847
10848: ${CP="cp -f"}
10849: ${MV="mv -f"}
10850: ${RM="rm -f"}
10851
10852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10853$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10854# Try some XSI features
10855xsi_shell=no
10856( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010857 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10858 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010859 && eval 'test $(( 1 + 1 )) -eq 2 \
10860 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10861 && xsi_shell=yes
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10863$as_echo "$xsi_shell" >&6; }
10864
10865
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10867$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10868lt_shell_append=no
10869( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10870 >/dev/null 2>&1 \
10871 && lt_shell_append=yes
10872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10873$as_echo "$lt_shell_append" >&6; }
10874
10875
10876if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10877 lt_unset=unset
10878else
10879 lt_unset=false
10880fi
10881
10882
10883
10884
10885
10886# test EBCDIC or ASCII
10887case `echo X|tr X '\101'` in
10888 A) # ASCII based system
10889 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10890 lt_SP2NL='tr \040 \012'
10891 lt_NL2SP='tr \015\012 \040\040'
10892 ;;
10893 *) # EBCDIC based system
10894 lt_SP2NL='tr \100 \n'
10895 lt_NL2SP='tr \r\n \100\100'
10896 ;;
10897esac
10898
10899
10900
10901
10902
10903
10904
10905
10906
cristyda16f162011-02-19 23:52:17 +000010907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10908$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10909if ${lt_cv_to_host_file_cmd+:} false; then :
10910 $as_echo_n "(cached) " >&6
10911else
10912 case $host in
10913 *-*-mingw* )
10914 case $build in
10915 *-*-mingw* ) # actually msys
10916 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10917 ;;
10918 *-*-cygwin* )
10919 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10920 ;;
10921 * ) # otherwise, assume *nix
10922 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10923 ;;
10924 esac
10925 ;;
10926 *-*-cygwin* )
10927 case $build in
10928 *-*-mingw* ) # actually msys
10929 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10930 ;;
10931 *-*-cygwin* )
10932 lt_cv_to_host_file_cmd=func_convert_file_noop
10933 ;;
10934 * ) # otherwise, assume *nix
10935 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10936 ;;
10937 esac
10938 ;;
10939 * ) # unhandled hosts (and "normal" native builds)
10940 lt_cv_to_host_file_cmd=func_convert_file_noop
10941 ;;
10942esac
10943
10944fi
10945
10946to_host_file_cmd=$lt_cv_to_host_file_cmd
10947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10948$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10949
10950
10951
10952
10953
10954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10955$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10956if ${lt_cv_to_tool_file_cmd+:} false; then :
10957 $as_echo_n "(cached) " >&6
10958else
10959 #assume ordinary cross tools, or native build.
10960lt_cv_to_tool_file_cmd=func_convert_file_noop
10961case $host in
10962 *-*-mingw* )
10963 case $build in
10964 *-*-mingw* ) # actually msys
10965 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10966 ;;
10967 esac
10968 ;;
10969esac
10970
10971fi
10972
10973to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10975$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10976
10977
10978
10979
10980
cristy73bd4a52010-10-05 11:24:23 +000010981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10982$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010983if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010984 $as_echo_n "(cached) " >&6
10985else
10986 lt_cv_ld_reload_flag='-r'
10987fi
10988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10989$as_echo "$lt_cv_ld_reload_flag" >&6; }
10990reload_flag=$lt_cv_ld_reload_flag
10991case $reload_flag in
10992"" | " "*) ;;
10993*) reload_flag=" $reload_flag" ;;
10994esac
10995reload_cmds='$LD$reload_flag -o $output$reload_objs'
10996case $host_os in
cristyda16f162011-02-19 23:52:17 +000010997 cygwin* | mingw* | pw32* | cegcc*)
10998 if test "$GCC" != yes; then
10999 reload_cmds=false
11000 fi
11001 ;;
cristy73bd4a52010-10-05 11:24:23 +000011002 darwin*)
11003 if test "$GCC" = yes; then
11004 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11005 else
11006 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11007 fi
11008 ;;
11009esac
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019if test -n "$ac_tool_prefix"; then
11020 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11021set dummy ${ac_tool_prefix}objdump; ac_word=$2
11022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11023$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011024if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011025 $as_echo_n "(cached) " >&6
11026else
11027 if test -n "$OBJDUMP"; then
11028 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11029else
11030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11031for as_dir in $PATH
11032do
11033 IFS=$as_save_IFS
11034 test -z "$as_dir" && as_dir=.
11035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011037 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11039 break 2
11040 fi
11041done
11042 done
11043IFS=$as_save_IFS
11044
11045fi
11046fi
11047OBJDUMP=$ac_cv_prog_OBJDUMP
11048if test -n "$OBJDUMP"; then
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11050$as_echo "$OBJDUMP" >&6; }
11051else
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053$as_echo "no" >&6; }
11054fi
11055
11056
11057fi
11058if test -z "$ac_cv_prog_OBJDUMP"; then
11059 ac_ct_OBJDUMP=$OBJDUMP
11060 # Extract the first word of "objdump", so it can be a program name with args.
11061set dummy objdump; ac_word=$2
11062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011064if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011065 $as_echo_n "(cached) " >&6
11066else
11067 if test -n "$ac_ct_OBJDUMP"; then
11068 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11069else
11070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071for as_dir in $PATH
11072do
11073 IFS=$as_save_IFS
11074 test -z "$as_dir" && as_dir=.
11075 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011077 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 break 2
11080 fi
11081done
11082 done
11083IFS=$as_save_IFS
11084
11085fi
11086fi
11087ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11088if test -n "$ac_ct_OBJDUMP"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11090$as_echo "$ac_ct_OBJDUMP" >&6; }
11091else
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093$as_echo "no" >&6; }
11094fi
11095
11096 if test "x$ac_ct_OBJDUMP" = x; then
11097 OBJDUMP="false"
11098 else
11099 case $cross_compiling:$ac_tool_warned in
11100yes:)
11101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11103ac_tool_warned=yes ;;
11104esac
11105 OBJDUMP=$ac_ct_OBJDUMP
11106 fi
11107else
11108 OBJDUMP="$ac_cv_prog_OBJDUMP"
11109fi
11110
11111test -z "$OBJDUMP" && OBJDUMP=objdump
11112
11113
11114
11115
11116
11117
11118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11119$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011120if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011121 $as_echo_n "(cached) " >&6
11122else
11123 lt_cv_file_magic_cmd='$MAGIC_CMD'
11124lt_cv_file_magic_test_file=
11125lt_cv_deplibs_check_method='unknown'
11126# Need to set the preceding variable on all platforms that support
11127# interlibrary dependencies.
11128# 'none' -- dependencies not supported.
11129# `unknown' -- same as none, but documents that we really don't know.
11130# 'pass_all' -- all dependencies passed with no checks.
11131# 'test_compile' -- check by making test program.
11132# 'file_magic [[regex]]' -- check by looking for files in library path
11133# which responds to the $file_magic_cmd with a given extended regex.
11134# If you have `file' or equivalent on your system and you're not sure
11135# whether `pass_all' will *always* work, you probably want this one.
11136
11137case $host_os in
11138aix[4-9]*)
11139 lt_cv_deplibs_check_method=pass_all
11140 ;;
11141
11142beos*)
11143 lt_cv_deplibs_check_method=pass_all
11144 ;;
11145
11146bsdi[45]*)
11147 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11148 lt_cv_file_magic_cmd='/usr/bin/file -L'
11149 lt_cv_file_magic_test_file=/shlib/libc.so
11150 ;;
11151
11152cygwin*)
11153 # func_win32_libid is a shell function defined in ltmain.sh
11154 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11155 lt_cv_file_magic_cmd='func_win32_libid'
11156 ;;
11157
11158mingw* | pw32*)
11159 # Base MSYS/MinGW do not provide the 'file' command needed by
11160 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11161 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011162 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11163 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011164 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11165 lt_cv_file_magic_cmd='func_win32_libid'
11166 else
cristy0c60a692010-11-04 01:09:47 +000011167 # Keep this pattern in sync with the one in func_win32_libid.
11168 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 +000011169 lt_cv_file_magic_cmd='$OBJDUMP -f'
11170 fi
11171 ;;
11172
cristy0c60a692010-11-04 01:09:47 +000011173cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011174 # use the weaker test based on 'objdump'. See mingw*.
11175 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11176 lt_cv_file_magic_cmd='$OBJDUMP -f'
11177 ;;
11178
11179darwin* | rhapsody*)
11180 lt_cv_deplibs_check_method=pass_all
11181 ;;
11182
11183freebsd* | dragonfly*)
11184 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11185 case $host_cpu in
11186 i*86 )
11187 # Not sure whether the presence of OpenBSD here was a mistake.
11188 # Let's accept both of them until this is cleared up.
11189 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11190 lt_cv_file_magic_cmd=/usr/bin/file
11191 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11192 ;;
11193 esac
11194 else
11195 lt_cv_deplibs_check_method=pass_all
11196 fi
11197 ;;
11198
11199gnu*)
11200 lt_cv_deplibs_check_method=pass_all
11201 ;;
11202
cristy0c60a692010-11-04 01:09:47 +000011203haiku*)
11204 lt_cv_deplibs_check_method=pass_all
11205 ;;
11206
cristy73bd4a52010-10-05 11:24:23 +000011207hpux10.20* | hpux11*)
11208 lt_cv_file_magic_cmd=/usr/bin/file
11209 case $host_cpu in
11210 ia64*)
11211 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11212 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11213 ;;
11214 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011215 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 +000011216 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11217 ;;
11218 *)
cristy0c60a692010-11-04 01:09:47 +000011219 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 +000011220 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11221 ;;
11222 esac
11223 ;;
11224
11225interix[3-9]*)
11226 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11228 ;;
11229
11230irix5* | irix6* | nonstopux*)
11231 case $LD in
11232 *-32|*"-32 ") libmagic=32-bit;;
11233 *-n32|*"-n32 ") libmagic=N32;;
11234 *-64|*"-64 ") libmagic=64-bit;;
11235 *) libmagic=never-match;;
11236 esac
11237 lt_cv_deplibs_check_method=pass_all
11238 ;;
11239
cristy99bd5232011-12-07 14:38:20 +000011240# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011241linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011242 lt_cv_deplibs_check_method=pass_all
11243 ;;
11244
11245netbsd*)
11246 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11248 else
11249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11250 fi
11251 ;;
11252
11253newos6*)
11254 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11255 lt_cv_file_magic_cmd=/usr/bin/file
11256 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11257 ;;
11258
11259*nto* | *qnx*)
11260 lt_cv_deplibs_check_method=pass_all
11261 ;;
11262
11263openbsd*)
11264 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11266 else
11267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11268 fi
11269 ;;
11270
11271osf3* | osf4* | osf5*)
11272 lt_cv_deplibs_check_method=pass_all
11273 ;;
11274
11275rdos*)
11276 lt_cv_deplibs_check_method=pass_all
11277 ;;
11278
11279solaris*)
11280 lt_cv_deplibs_check_method=pass_all
11281 ;;
11282
11283sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11284 lt_cv_deplibs_check_method=pass_all
11285 ;;
11286
11287sysv4 | sysv4.3*)
11288 case $host_vendor in
11289 motorola)
11290 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]'
11291 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11292 ;;
11293 ncr)
11294 lt_cv_deplibs_check_method=pass_all
11295 ;;
11296 sequent)
11297 lt_cv_file_magic_cmd='/bin/file'
11298 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11299 ;;
11300 sni)
11301 lt_cv_file_magic_cmd='/bin/file'
11302 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11303 lt_cv_file_magic_test_file=/lib/libc.so
11304 ;;
11305 siemens)
11306 lt_cv_deplibs_check_method=pass_all
11307 ;;
11308 pc)
11309 lt_cv_deplibs_check_method=pass_all
11310 ;;
11311 esac
11312 ;;
11313
11314tpf*)
11315 lt_cv_deplibs_check_method=pass_all
11316 ;;
11317esac
11318
11319fi
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11321$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011322
11323file_magic_glob=
11324want_nocaseglob=no
11325if test "$build" = "$host"; then
11326 case $host_os in
11327 mingw* | pw32*)
11328 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11329 want_nocaseglob=yes
11330 else
11331 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11332 fi
11333 ;;
11334 esac
11335fi
11336
cristy73bd4a52010-10-05 11:24:23 +000011337file_magic_cmd=$lt_cv_file_magic_cmd
11338deplibs_check_method=$lt_cv_deplibs_check_method
11339test -z "$deplibs_check_method" && deplibs_check_method=unknown
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
cristyda16f162011-02-19 23:52:17 +000011352
11353
11354
11355
11356
11357
11358
11359
11360
11361
cristy73bd4a52010-10-05 11:24:23 +000011362if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011363 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11364set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11366$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011367if ${ac_cv_prog_DLLTOOL+:} false; then :
11368 $as_echo_n "(cached) " >&6
11369else
11370 if test -n "$DLLTOOL"; then
11371 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11372else
11373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374for as_dir in $PATH
11375do
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011380 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11383 fi
11384done
11385 done
11386IFS=$as_save_IFS
11387
11388fi
11389fi
11390DLLTOOL=$ac_cv_prog_DLLTOOL
11391if test -n "$DLLTOOL"; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11393$as_echo "$DLLTOOL" >&6; }
11394else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396$as_echo "no" >&6; }
11397fi
11398
11399
11400fi
11401if test -z "$ac_cv_prog_DLLTOOL"; then
11402 ac_ct_DLLTOOL=$DLLTOOL
11403 # Extract the first word of "dlltool", so it can be a program name with args.
11404set dummy dlltool; ac_word=$2
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11406$as_echo_n "checking for $ac_word... " >&6; }
11407if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11408 $as_echo_n "(cached) " >&6
11409else
11410 if test -n "$ac_ct_DLLTOOL"; then
11411 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11412else
11413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11414for as_dir in $PATH
11415do
11416 IFS=$as_save_IFS
11417 test -z "$as_dir" && as_dir=.
11418 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011420 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11422 break 2
11423 fi
11424done
11425 done
11426IFS=$as_save_IFS
11427
11428fi
11429fi
11430ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11431if test -n "$ac_ct_DLLTOOL"; then
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11433$as_echo "$ac_ct_DLLTOOL" >&6; }
11434else
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436$as_echo "no" >&6; }
11437fi
11438
11439 if test "x$ac_ct_DLLTOOL" = x; then
11440 DLLTOOL="false"
11441 else
11442 case $cross_compiling:$ac_tool_warned in
11443yes:)
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11446ac_tool_warned=yes ;;
11447esac
11448 DLLTOOL=$ac_ct_DLLTOOL
11449 fi
11450else
11451 DLLTOOL="$ac_cv_prog_DLLTOOL"
11452fi
11453
11454test -z "$DLLTOOL" && DLLTOOL=dlltool
11455
11456
11457
11458
11459
11460
11461
11462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11463$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11464if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11465 $as_echo_n "(cached) " >&6
11466else
11467 lt_cv_sharedlib_from_linklib_cmd='unknown'
11468
11469case $host_os in
11470cygwin* | mingw* | pw32* | cegcc*)
11471 # two different shell functions defined in ltmain.sh
11472 # decide which to use based on capabilities of $DLLTOOL
11473 case `$DLLTOOL --help 2>&1` in
11474 *--identify-strict*)
11475 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11476 ;;
11477 *)
11478 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11479 ;;
11480 esac
11481 ;;
11482*)
11483 # fallback: assume linklib IS sharedlib
11484 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11485 ;;
11486esac
11487
11488fi
11489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11490$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11491sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11492test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11493
11494
11495
11496
11497
11498
11499
11500if test -n "$ac_tool_prefix"; then
11501 for ac_prog in ar
11502 do
11503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11504set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506$as_echo_n "checking for $ac_word... " >&6; }
11507if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011508 $as_echo_n "(cached) " >&6
11509else
11510 if test -n "$AR"; then
11511 ac_cv_prog_AR="$AR" # Let the user override the test.
11512else
11513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514for as_dir in $PATH
11515do
11516 IFS=$as_save_IFS
11517 test -z "$as_dir" && as_dir=.
11518 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011520 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11522 break 2
11523 fi
11524done
11525 done
11526IFS=$as_save_IFS
11527
11528fi
11529fi
11530AR=$ac_cv_prog_AR
11531if test -n "$AR"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11533$as_echo "$AR" >&6; }
11534else
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536$as_echo "no" >&6; }
11537fi
11538
11539
cristyda16f162011-02-19 23:52:17 +000011540 test -n "$AR" && break
11541 done
cristy73bd4a52010-10-05 11:24:23 +000011542fi
cristyda16f162011-02-19 23:52:17 +000011543if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011544 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011545 for ac_prog in ar
11546do
11547 # Extract the first word of "$ac_prog", so it can be a program name with args.
11548set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11550$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011551if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011552 $as_echo_n "(cached) " >&6
11553else
11554 if test -n "$ac_ct_AR"; then
11555 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11556else
11557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558for as_dir in $PATH
11559do
11560 IFS=$as_save_IFS
11561 test -z "$as_dir" && as_dir=.
11562 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011564 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11566 break 2
11567 fi
11568done
11569 done
11570IFS=$as_save_IFS
11571
11572fi
11573fi
11574ac_ct_AR=$ac_cv_prog_ac_ct_AR
11575if test -n "$ac_ct_AR"; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11577$as_echo "$ac_ct_AR" >&6; }
11578else
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580$as_echo "no" >&6; }
11581fi
11582
cristyda16f162011-02-19 23:52:17 +000011583
11584 test -n "$ac_ct_AR" && break
11585done
11586
cristy73bd4a52010-10-05 11:24:23 +000011587 if test "x$ac_ct_AR" = x; then
11588 AR="false"
11589 else
11590 case $cross_compiling:$ac_tool_warned in
11591yes:)
11592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11594ac_tool_warned=yes ;;
11595esac
11596 AR=$ac_ct_AR
11597 fi
cristy73bd4a52010-10-05 11:24:23 +000011598fi
11599
cristyda16f162011-02-19 23:52:17 +000011600: ${AR=ar}
11601: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
cristyda16f162011-02-19 23:52:17 +000011613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11614$as_echo_n "checking for archiver @FILE support... " >&6; }
11615if ${lt_cv_ar_at_file+:} false; then :
11616 $as_echo_n "(cached) " >&6
11617else
11618 lt_cv_ar_at_file=no
11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620/* end confdefs.h. */
11621
11622int
11623main ()
11624{
11625
11626 ;
11627 return 0;
11628}
11629_ACEOF
11630if ac_fn_c_try_compile "$LINENO"; then :
11631 echo conftest.$ac_objext > conftest.lst
11632 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11634 (eval $lt_ar_try) 2>&5
11635 ac_status=$?
11636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11637 test $ac_status = 0; }
11638 if test "$ac_status" -eq 0; then
11639 # Ensure the archiver fails upon bogus file names.
11640 rm -f conftest.$ac_objext libconftest.a
11641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11642 (eval $lt_ar_try) 2>&5
11643 ac_status=$?
11644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11645 test $ac_status = 0; }
11646 if test "$ac_status" -ne 0; then
11647 lt_cv_ar_at_file=@
11648 fi
11649 fi
11650 rm -f conftest.* libconftest.a
11651
11652fi
11653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11654
11655fi
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11657$as_echo "$lt_cv_ar_at_file" >&6; }
11658
11659if test "x$lt_cv_ar_at_file" = xno; then
11660 archiver_list_spec=
11661else
11662 archiver_list_spec=$lt_cv_ar_at_file
11663fi
11664
11665
11666
11667
11668
11669
11670
cristy73bd4a52010-10-05 11:24:23 +000011671if test -n "$ac_tool_prefix"; then
11672 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11673set dummy ${ac_tool_prefix}strip; ac_word=$2
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11675$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011676if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011677 $as_echo_n "(cached) " >&6
11678else
11679 if test -n "$STRIP"; then
11680 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11681else
11682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683for as_dir in $PATH
11684do
11685 IFS=$as_save_IFS
11686 test -z "$as_dir" && as_dir=.
11687 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011689 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11691 break 2
11692 fi
11693done
11694 done
11695IFS=$as_save_IFS
11696
11697fi
11698fi
11699STRIP=$ac_cv_prog_STRIP
11700if test -n "$STRIP"; then
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11702$as_echo "$STRIP" >&6; }
11703else
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705$as_echo "no" >&6; }
11706fi
11707
11708
11709fi
11710if test -z "$ac_cv_prog_STRIP"; then
11711 ac_ct_STRIP=$STRIP
11712 # Extract the first word of "strip", so it can be a program name with args.
11713set dummy strip; ac_word=$2
11714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11715$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011716if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011717 $as_echo_n "(cached) " >&6
11718else
11719 if test -n "$ac_ct_STRIP"; then
11720 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11721else
11722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723for as_dir in $PATH
11724do
11725 IFS=$as_save_IFS
11726 test -z "$as_dir" && as_dir=.
11727 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011729 ac_cv_prog_ac_ct_STRIP="strip"
11730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11731 break 2
11732 fi
11733done
11734 done
11735IFS=$as_save_IFS
11736
11737fi
11738fi
11739ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11740if test -n "$ac_ct_STRIP"; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11742$as_echo "$ac_ct_STRIP" >&6; }
11743else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745$as_echo "no" >&6; }
11746fi
11747
11748 if test "x$ac_ct_STRIP" = x; then
11749 STRIP=":"
11750 else
11751 case $cross_compiling:$ac_tool_warned in
11752yes:)
11753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11755ac_tool_warned=yes ;;
11756esac
11757 STRIP=$ac_ct_STRIP
11758 fi
11759else
11760 STRIP="$ac_cv_prog_STRIP"
11761fi
11762
11763test -z "$STRIP" && STRIP=:
11764
11765
11766
11767
11768
11769
11770if test -n "$ac_tool_prefix"; then
11771 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11772set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011776 $as_echo_n "(cached) " >&6
11777else
11778 if test -n "$RANLIB"; then
11779 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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
11798RANLIB=$ac_cv_prog_RANLIB
11799if test -n "$RANLIB"; then
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11801$as_echo "$RANLIB" >&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_RANLIB"; then
11810 ac_ct_RANLIB=$RANLIB
11811 # Extract the first word of "ranlib", so it can be a program name with args.
11812set dummy ranlib; 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_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011816 $as_echo_n "(cached) " >&6
11817else
11818 if test -n "$ac_ct_RANLIB"; then
11819 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
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_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11839if test -n "$ac_ct_RANLIB"; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11841$as_echo "$ac_ct_RANLIB" >&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_RANLIB" = x; then
11848 RANLIB=":"
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 RANLIB=$ac_ct_RANLIB
11857 fi
11858else
11859 RANLIB="$ac_cv_prog_RANLIB"
11860fi
11861
11862test -z "$RANLIB" && RANLIB=:
11863
11864
11865
11866
11867
11868
11869# Determine commands to create old-style static archives.
11870old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11871old_postinstall_cmds='chmod 644 $oldlib'
11872old_postuninstall_cmds=
11873
11874if test -n "$RANLIB"; then
11875 case $host_os in
11876 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011877 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011878 ;;
11879 *)
cristy99bd5232011-12-07 14:38:20 +000011880 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011881 ;;
11882 esac
cristy99bd5232011-12-07 14:38:20 +000011883 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011884fi
11885
cristy0c60a692010-11-04 01:09:47 +000011886case $host_os in
11887 darwin*)
11888 lock_old_archive_extraction=yes ;;
11889 *)
11890 lock_old_archive_extraction=no ;;
11891esac
11892
11893
11894
11895
11896
11897
cristy73bd4a52010-10-05 11:24:23 +000011898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931# If no C compiler was specified, use CC.
11932LTCC=${LTCC-"$CC"}
11933
11934# If no C compiler flags were specified, use CFLAGS.
11935LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11936
11937# Allow CC to be a program name with arguments.
11938compiler=$CC
11939
11940
11941# Check for command to grab the raw symbol name followed by C symbol from nm.
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11943$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011944if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011945 $as_echo_n "(cached) " >&6
11946else
11947
11948# These are sane defaults that work on at least a few old systems.
11949# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11950
11951# Character class describing NM global symbol codes.
11952symcode='[BCDEGRST]'
11953
11954# Regexp to match symbols that can be accessed directly from C.
11955sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11956
11957# Define system-specific variables.
11958case $host_os in
11959aix*)
11960 symcode='[BCDT]'
11961 ;;
11962cygwin* | mingw* | pw32* | cegcc*)
11963 symcode='[ABCDGISTW]'
11964 ;;
11965hpux*)
11966 if test "$host_cpu" = ia64; then
11967 symcode='[ABCDEGRST]'
11968 fi
11969 ;;
11970irix* | nonstopux*)
11971 symcode='[BCDEGRST]'
11972 ;;
11973osf*)
11974 symcode='[BCDEGQRST]'
11975 ;;
11976solaris*)
11977 symcode='[BDRT]'
11978 ;;
11979sco3.2v5*)
11980 symcode='[DT]'
11981 ;;
11982sysv4.2uw2*)
11983 symcode='[DT]'
11984 ;;
11985sysv5* | sco5v6* | unixware* | OpenUNIX*)
11986 symcode='[ABDT]'
11987 ;;
11988sysv4)
11989 symcode='[DFNSTU]'
11990 ;;
11991esac
11992
11993# If we're using GNU nm, then use its standard symbol codes.
11994case `$NM -V 2>&1` in
11995*GNU* | *'with BFD'*)
11996 symcode='[ABCDGIRSTW]' ;;
11997esac
11998
11999# Transform an extracted symbol line into a proper C declaration.
12000# Some systems (esp. on ia64) link data and code symbols differently,
12001# so use this general approach.
12002lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12003
12004# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012005lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12006lt_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 +000012007
12008# Handle CRLF in mingw tool chain
12009opt_cr=
12010case $build_os in
12011mingw*)
12012 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12013 ;;
12014esac
12015
12016# Try without a prefix underscore, then with it.
12017for ac_symprfx in "" "_"; do
12018
12019 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12020 symxfrm="\\1 $ac_symprfx\\2 \\2"
12021
12022 # Write the raw and C identifiers.
12023 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12024 # Fake it for dumpbin and say T for any non-static function
12025 # and D for any global variable.
12026 # Also find C++ and __fastcall symbols from MSVC++,
12027 # which start with @ or ?.
12028 lt_cv_sys_global_symbol_pipe="$AWK '"\
12029" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012030" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012031" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12032" \$ 0!~/External *\|/{next};"\
12033" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12034" {if(hide[section]) next};"\
12035" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12036" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12037" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12038" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12039" ' prfx=^$ac_symprfx"
12040 else
12041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12042 fi
cristyda16f162011-02-19 23:52:17 +000012043 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012044
12045 # Check to see that the pipe works correctly.
12046 pipe_works=no
12047
12048 rm -f conftest*
12049 cat > conftest.$ac_ext <<_LT_EOF
12050#ifdef __cplusplus
12051extern "C" {
12052#endif
12053char nm_test_var;
12054void nm_test_func(void);
12055void nm_test_func(void){}
12056#ifdef __cplusplus
12057}
12058#endif
12059int main(){nm_test_var='a';nm_test_func();return(0);}
12060_LT_EOF
12061
12062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12063 (eval $ac_compile) 2>&5
12064 ac_status=$?
12065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12066 test $ac_status = 0; }; then
12067 # Now try to grab the symbols.
12068 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12070 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012071 ac_status=$?
12072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12073 test $ac_status = 0; } && test -s "$nlist"; then
12074 # Try sorting and uniquifying the output.
12075 if sort "$nlist" | uniq > "$nlist"T; then
12076 mv -f "$nlist"T "$nlist"
12077 else
12078 rm -f "$nlist"T
12079 fi
12080
12081 # Make sure that we snagged all the symbols we need.
12082 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12083 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12084 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012085/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12086#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12087/* DATA imports from DLLs on WIN32 con't be const, because runtime
12088 relocations are performed -- see ld's documentation on pseudo-relocs. */
12089# define LT_DLSYM_CONST
12090#elif defined(__osf__)
12091/* This system does not cope well with relocations in const data. */
12092# define LT_DLSYM_CONST
12093#else
12094# define LT_DLSYM_CONST const
12095#endif
12096
cristy73bd4a52010-10-05 11:24:23 +000012097#ifdef __cplusplus
12098extern "C" {
12099#endif
12100
12101_LT_EOF
12102 # Now generate the symbol file.
12103 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12104
12105 cat <<_LT_EOF >> conftest.$ac_ext
12106
12107/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012108LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012109 const char *name;
12110 void *address;
12111}
12112lt__PROGRAM__LTX_preloaded_symbols[] =
12113{
12114 { "@PROGRAM@", (void *) 0 },
12115_LT_EOF
12116 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12117 cat <<\_LT_EOF >> conftest.$ac_ext
12118 {0, (void *) 0}
12119};
12120
12121/* This works around a problem in FreeBSD linker */
12122#ifdef FREEBSD_WORKAROUND
12123static const void *lt_preloaded_setup() {
12124 return lt__PROGRAM__LTX_preloaded_symbols;
12125}
12126#endif
12127
12128#ifdef __cplusplus
12129}
12130#endif
12131_LT_EOF
12132 # Now try linking the two files.
12133 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012134 lt_globsym_save_LIBS=$LIBS
12135 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012136 LIBS="conftstm.$ac_objext"
12137 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12139 (eval $ac_link) 2>&5
12140 ac_status=$?
12141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12142 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12143 pipe_works=yes
12144 fi
cristyda16f162011-02-19 23:52:17 +000012145 LIBS=$lt_globsym_save_LIBS
12146 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012147 else
12148 echo "cannot find nm_test_func in $nlist" >&5
12149 fi
12150 else
12151 echo "cannot find nm_test_var in $nlist" >&5
12152 fi
12153 else
12154 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12155 fi
12156 else
12157 echo "$progname: failed program was:" >&5
12158 cat conftest.$ac_ext >&5
12159 fi
12160 rm -rf conftest* conftst*
12161
12162 # Do not use the global_symbol_pipe unless it works.
12163 if test "$pipe_works" = yes; then
12164 break
12165 else
12166 lt_cv_sys_global_symbol_pipe=
12167 fi
12168done
12169
12170fi
12171
12172if test -z "$lt_cv_sys_global_symbol_pipe"; then
12173 lt_cv_sys_global_symbol_to_cdecl=
12174fi
12175if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12177$as_echo "failed" >&6; }
12178else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12180$as_echo "ok" >&6; }
12181fi
12182
cristyda16f162011-02-19 23:52:17 +000012183# Response file support.
12184if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12185 nm_file_list_spec='@'
12186elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12187 nm_file_list_spec='@'
12188fi
cristy73bd4a52010-10-05 11:24:23 +000012189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
cristyda16f162011-02-19 23:52:17 +000012210
12211
12212
12213
12214
12215
12216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12217$as_echo_n "checking for sysroot... " >&6; }
12218
12219# Check whether --with-sysroot was given.
12220if test "${with_sysroot+set}" = set; then :
12221 withval=$with_sysroot;
12222else
12223 with_sysroot=no
12224fi
12225
12226
12227lt_sysroot=
12228case ${with_sysroot} in #(
12229 yes)
12230 if test "$GCC" = yes; then
12231 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12232 fi
12233 ;; #(
12234 /*)
12235 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12236 ;; #(
12237 no|'')
12238 ;; #(
12239 *)
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12241$as_echo "${with_sysroot}" >&6; }
12242 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12243 ;;
12244esac
12245
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12247$as_echo "${lt_sysroot:-no}" >&6; }
12248
12249
12250
12251
12252
cristy73bd4a52010-10-05 11:24:23 +000012253# Check whether --enable-libtool-lock was given.
12254if test "${enable_libtool_lock+set}" = set; then :
12255 enableval=$enable_libtool_lock;
12256fi
12257
12258test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12259
12260# Some flags need to be propagated to the compiler or linker for good
12261# libtool support.
12262case $host in
12263ia64-*-hpux*)
12264 # Find out which ABI we are using.
12265 echo 'int i;' > conftest.$ac_ext
12266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12267 (eval $ac_compile) 2>&5
12268 ac_status=$?
12269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12270 test $ac_status = 0; }; then
12271 case `/usr/bin/file conftest.$ac_objext` in
12272 *ELF-32*)
12273 HPUX_IA64_MODE="32"
12274 ;;
12275 *ELF-64*)
12276 HPUX_IA64_MODE="64"
12277 ;;
12278 esac
12279 fi
12280 rm -rf conftest*
12281 ;;
12282*-*-irix6*)
12283 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012284 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12286 (eval $ac_compile) 2>&5
12287 ac_status=$?
12288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12289 test $ac_status = 0; }; then
12290 if test "$lt_cv_prog_gnu_ld" = yes; then
12291 case `/usr/bin/file conftest.$ac_objext` in
12292 *32-bit*)
12293 LD="${LD-ld} -melf32bsmip"
12294 ;;
12295 *N32*)
12296 LD="${LD-ld} -melf32bmipn32"
12297 ;;
12298 *64-bit*)
12299 LD="${LD-ld} -melf64bmip"
12300 ;;
12301 esac
12302 else
12303 case `/usr/bin/file conftest.$ac_objext` in
12304 *32-bit*)
12305 LD="${LD-ld} -32"
12306 ;;
12307 *N32*)
12308 LD="${LD-ld} -n32"
12309 ;;
12310 *64-bit*)
12311 LD="${LD-ld} -64"
12312 ;;
12313 esac
12314 fi
12315 fi
12316 rm -rf conftest*
12317 ;;
12318
12319x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12320s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12321 # Find out which ABI we are using.
12322 echo 'int i;' > conftest.$ac_ext
12323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12324 (eval $ac_compile) 2>&5
12325 ac_status=$?
12326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12327 test $ac_status = 0; }; then
12328 case `/usr/bin/file conftest.o` in
12329 *32-bit*)
12330 case $host in
12331 x86_64-*kfreebsd*-gnu)
12332 LD="${LD-ld} -m elf_i386_fbsd"
12333 ;;
12334 x86_64-*linux*)
12335 LD="${LD-ld} -m elf_i386"
12336 ;;
12337 ppc64-*linux*|powerpc64-*linux*)
12338 LD="${LD-ld} -m elf32ppclinux"
12339 ;;
12340 s390x-*linux*)
12341 LD="${LD-ld} -m elf_s390"
12342 ;;
12343 sparc64-*linux*)
12344 LD="${LD-ld} -m elf32_sparc"
12345 ;;
12346 esac
12347 ;;
12348 *64-bit*)
12349 case $host in
12350 x86_64-*kfreebsd*-gnu)
12351 LD="${LD-ld} -m elf_x86_64_fbsd"
12352 ;;
12353 x86_64-*linux*)
12354 LD="${LD-ld} -m elf_x86_64"
12355 ;;
12356 ppc*-*linux*|powerpc*-*linux*)
12357 LD="${LD-ld} -m elf64ppc"
12358 ;;
12359 s390*-*linux*|s390*-*tpf*)
12360 LD="${LD-ld} -m elf64_s390"
12361 ;;
12362 sparc*-*linux*)
12363 LD="${LD-ld} -m elf64_sparc"
12364 ;;
12365 esac
12366 ;;
12367 esac
12368 fi
12369 rm -rf conftest*
12370 ;;
12371
12372*-*-sco3.2v5*)
12373 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12374 SAVE_CFLAGS="$CFLAGS"
12375 CFLAGS="$CFLAGS -belf"
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12377$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012378if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012379 $as_echo_n "(cached) " >&6
12380else
12381 ac_ext=c
12382ac_cpp='$CPP $CPPFLAGS'
12383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12385ac_compiler_gnu=$ac_cv_c_compiler_gnu
12386
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388/* end confdefs.h. */
12389
12390int
12391main ()
12392{
12393
12394 ;
12395 return 0;
12396}
12397_ACEOF
12398if ac_fn_c_try_link "$LINENO"; then :
12399 lt_cv_cc_needs_belf=yes
12400else
12401 lt_cv_cc_needs_belf=no
12402fi
12403rm -f core conftest.err conftest.$ac_objext \
12404 conftest$ac_exeext conftest.$ac_ext
12405 ac_ext=c
12406ac_cpp='$CPP $CPPFLAGS'
12407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12409ac_compiler_gnu=$ac_cv_c_compiler_gnu
12410
12411fi
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12413$as_echo "$lt_cv_cc_needs_belf" >&6; }
12414 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12415 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12416 CFLAGS="$SAVE_CFLAGS"
12417 fi
12418 ;;
cristy99bd5232011-12-07 14:38:20 +000012419*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012420 # 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 *64-bit*)
12429 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012430 yes*)
12431 case $host in
12432 i?86-*-solaris*)
12433 LD="${LD-ld} -m elf_x86_64"
12434 ;;
12435 sparc*-*-solaris*)
12436 LD="${LD-ld} -m elf64_sparc"
12437 ;;
12438 esac
12439 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12440 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12441 LD="${LD-ld}_sol2"
12442 fi
12443 ;;
cristy73bd4a52010-10-05 11:24:23 +000012444 *)
12445 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12446 LD="${LD-ld} -64"
12447 fi
12448 ;;
12449 esac
12450 ;;
12451 esac
12452 fi
12453 rm -rf conftest*
12454 ;;
12455esac
12456
12457need_locks="$enable_libtool_lock"
12458
cristyda16f162011-02-19 23:52:17 +000012459if test -n "$ac_tool_prefix"; then
12460 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12461set dummy ${ac_tool_prefix}mt; ac_word=$2
12462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463$as_echo_n "checking for $ac_word... " >&6; }
12464if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466else
12467 if test -n "$MANIFEST_TOOL"; then
12468 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12469else
12470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471for as_dir in $PATH
12472do
12473 IFS=$as_save_IFS
12474 test -z "$as_dir" && as_dir=.
12475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012477 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12479 break 2
12480 fi
12481done
12482 done
12483IFS=$as_save_IFS
12484
12485fi
12486fi
12487MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12488if test -n "$MANIFEST_TOOL"; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12490$as_echo "$MANIFEST_TOOL" >&6; }
12491else
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493$as_echo "no" >&6; }
12494fi
12495
12496
12497fi
12498if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12499 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12500 # Extract the first word of "mt", so it can be a program name with args.
12501set dummy mt; ac_word=$2
12502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503$as_echo_n "checking for $ac_word... " >&6; }
12504if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12505 $as_echo_n "(cached) " >&6
12506else
12507 if test -n "$ac_ct_MANIFEST_TOOL"; then
12508 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12509else
12510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12511for as_dir in $PATH
12512do
12513 IFS=$as_save_IFS
12514 test -z "$as_dir" && as_dir=.
12515 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012517 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12519 break 2
12520 fi
12521done
12522 done
12523IFS=$as_save_IFS
12524
12525fi
12526fi
12527ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12528if test -n "$ac_ct_MANIFEST_TOOL"; then
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12530$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12531else
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533$as_echo "no" >&6; }
12534fi
12535
12536 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12537 MANIFEST_TOOL=":"
12538 else
12539 case $cross_compiling:$ac_tool_warned in
12540yes:)
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12543ac_tool_warned=yes ;;
12544esac
12545 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12546 fi
12547else
12548 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12549fi
12550
12551test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12553$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12554if ${lt_cv_path_mainfest_tool+:} false; then :
12555 $as_echo_n "(cached) " >&6
12556else
12557 lt_cv_path_mainfest_tool=no
12558 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12559 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12560 cat conftest.err >&5
12561 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12562 lt_cv_path_mainfest_tool=yes
12563 fi
12564 rm -f conftest*
12565fi
12566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12567$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12568if test "x$lt_cv_path_mainfest_tool" != xyes; then
12569 MANIFEST_TOOL=:
12570fi
12571
12572
12573
12574
12575
cristy73bd4a52010-10-05 11:24:23 +000012576
12577 case $host_os in
12578 rhapsody* | darwin*)
12579 if test -n "$ac_tool_prefix"; then
12580 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12581set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12583$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012584if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012585 $as_echo_n "(cached) " >&6
12586else
12587 if test -n "$DSYMUTIL"; then
12588 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12589else
12590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12591for as_dir in $PATH
12592do
12593 IFS=$as_save_IFS
12594 test -z "$as_dir" && as_dir=.
12595 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012597 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12599 break 2
12600 fi
12601done
12602 done
12603IFS=$as_save_IFS
12604
12605fi
12606fi
12607DSYMUTIL=$ac_cv_prog_DSYMUTIL
12608if test -n "$DSYMUTIL"; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12610$as_echo "$DSYMUTIL" >&6; }
12611else
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613$as_echo "no" >&6; }
12614fi
12615
12616
12617fi
12618if test -z "$ac_cv_prog_DSYMUTIL"; then
12619 ac_ct_DSYMUTIL=$DSYMUTIL
12620 # Extract the first word of "dsymutil", so it can be a program name with args.
12621set dummy dsymutil; ac_word=$2
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12623$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012624if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012625 $as_echo_n "(cached) " >&6
12626else
12627 if test -n "$ac_ct_DSYMUTIL"; then
12628 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12629else
12630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631for as_dir in $PATH
12632do
12633 IFS=$as_save_IFS
12634 test -z "$as_dir" && as_dir=.
12635 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012637 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12639 break 2
12640 fi
12641done
12642 done
12643IFS=$as_save_IFS
12644
12645fi
12646fi
12647ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12648if test -n "$ac_ct_DSYMUTIL"; then
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12650$as_echo "$ac_ct_DSYMUTIL" >&6; }
12651else
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653$as_echo "no" >&6; }
12654fi
12655
12656 if test "x$ac_ct_DSYMUTIL" = x; then
12657 DSYMUTIL=":"
12658 else
12659 case $cross_compiling:$ac_tool_warned in
12660yes:)
12661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12663ac_tool_warned=yes ;;
12664esac
12665 DSYMUTIL=$ac_ct_DSYMUTIL
12666 fi
12667else
12668 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12669fi
12670
12671 if test -n "$ac_tool_prefix"; then
12672 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12673set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12675$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012676if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012677 $as_echo_n "(cached) " >&6
12678else
12679 if test -n "$NMEDIT"; then
12680 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12681else
12682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12683for as_dir in $PATH
12684do
12685 IFS=$as_save_IFS
12686 test -z "$as_dir" && as_dir=.
12687 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012689 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12691 break 2
12692 fi
12693done
12694 done
12695IFS=$as_save_IFS
12696
12697fi
12698fi
12699NMEDIT=$ac_cv_prog_NMEDIT
12700if test -n "$NMEDIT"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12702$as_echo "$NMEDIT" >&6; }
12703else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705$as_echo "no" >&6; }
12706fi
12707
12708
12709fi
12710if test -z "$ac_cv_prog_NMEDIT"; then
12711 ac_ct_NMEDIT=$NMEDIT
12712 # Extract the first word of "nmedit", so it can be a program name with args.
12713set dummy nmedit; ac_word=$2
12714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12715$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012716if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012717 $as_echo_n "(cached) " >&6
12718else
12719 if test -n "$ac_ct_NMEDIT"; then
12720 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12721else
12722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723for as_dir in $PATH
12724do
12725 IFS=$as_save_IFS
12726 test -z "$as_dir" && as_dir=.
12727 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012729 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12731 break 2
12732 fi
12733done
12734 done
12735IFS=$as_save_IFS
12736
12737fi
12738fi
12739ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12740if test -n "$ac_ct_NMEDIT"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12742$as_echo "$ac_ct_NMEDIT" >&6; }
12743else
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745$as_echo "no" >&6; }
12746fi
12747
12748 if test "x$ac_ct_NMEDIT" = x; then
12749 NMEDIT=":"
12750 else
12751 case $cross_compiling:$ac_tool_warned in
12752yes:)
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12755ac_tool_warned=yes ;;
12756esac
12757 NMEDIT=$ac_ct_NMEDIT
12758 fi
12759else
12760 NMEDIT="$ac_cv_prog_NMEDIT"
12761fi
12762
12763 if test -n "$ac_tool_prefix"; then
12764 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12765set dummy ${ac_tool_prefix}lipo; ac_word=$2
12766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012768if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012769 $as_echo_n "(cached) " >&6
12770else
12771 if test -n "$LIPO"; then
12772 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12773else
12774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775for as_dir in $PATH
12776do
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012781 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12784 fi
12785done
12786 done
12787IFS=$as_save_IFS
12788
12789fi
12790fi
12791LIPO=$ac_cv_prog_LIPO
12792if test -n "$LIPO"; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12794$as_echo "$LIPO" >&6; }
12795else
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797$as_echo "no" >&6; }
12798fi
12799
12800
12801fi
12802if test -z "$ac_cv_prog_LIPO"; then
12803 ac_ct_LIPO=$LIPO
12804 # Extract the first word of "lipo", so it can be a program name with args.
12805set dummy lipo; ac_word=$2
12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012808if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012809 $as_echo_n "(cached) " >&6
12810else
12811 if test -n "$ac_ct_LIPO"; then
12812 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12813else
12814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12815for as_dir in $PATH
12816do
12817 IFS=$as_save_IFS
12818 test -z "$as_dir" && as_dir=.
12819 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012821 ac_cv_prog_ac_ct_LIPO="lipo"
12822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12823 break 2
12824 fi
12825done
12826 done
12827IFS=$as_save_IFS
12828
12829fi
12830fi
12831ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12832if test -n "$ac_ct_LIPO"; then
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12834$as_echo "$ac_ct_LIPO" >&6; }
12835else
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837$as_echo "no" >&6; }
12838fi
12839
12840 if test "x$ac_ct_LIPO" = x; then
12841 LIPO=":"
12842 else
12843 case $cross_compiling:$ac_tool_warned in
12844yes:)
12845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12847ac_tool_warned=yes ;;
12848esac
12849 LIPO=$ac_ct_LIPO
12850 fi
12851else
12852 LIPO="$ac_cv_prog_LIPO"
12853fi
12854
12855 if test -n "$ac_tool_prefix"; then
12856 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12857set dummy ${ac_tool_prefix}otool; ac_word=$2
12858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12859$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012860if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012861 $as_echo_n "(cached) " >&6
12862else
12863 if test -n "$OTOOL"; then
12864 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12865else
12866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867for as_dir in $PATH
12868do
12869 IFS=$as_save_IFS
12870 test -z "$as_dir" && as_dir=.
12871 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012873 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12875 break 2
12876 fi
12877done
12878 done
12879IFS=$as_save_IFS
12880
12881fi
12882fi
12883OTOOL=$ac_cv_prog_OTOOL
12884if test -n "$OTOOL"; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12886$as_echo "$OTOOL" >&6; }
12887else
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889$as_echo "no" >&6; }
12890fi
12891
12892
12893fi
12894if test -z "$ac_cv_prog_OTOOL"; then
12895 ac_ct_OTOOL=$OTOOL
12896 # Extract the first word of "otool", so it can be a program name with args.
12897set dummy otool; ac_word=$2
12898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12899$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012900if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012901 $as_echo_n "(cached) " >&6
12902else
12903 if test -n "$ac_ct_OTOOL"; then
12904 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12905else
12906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907for as_dir in $PATH
12908do
12909 IFS=$as_save_IFS
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012913 ac_cv_prog_ac_ct_OTOOL="otool"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12915 break 2
12916 fi
12917done
12918 done
12919IFS=$as_save_IFS
12920
12921fi
12922fi
12923ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12924if test -n "$ac_ct_OTOOL"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12926$as_echo "$ac_ct_OTOOL" >&6; }
12927else
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929$as_echo "no" >&6; }
12930fi
12931
12932 if test "x$ac_ct_OTOOL" = x; then
12933 OTOOL=":"
12934 else
12935 case $cross_compiling:$ac_tool_warned in
12936yes:)
12937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12939ac_tool_warned=yes ;;
12940esac
12941 OTOOL=$ac_ct_OTOOL
12942 fi
12943else
12944 OTOOL="$ac_cv_prog_OTOOL"
12945fi
12946
12947 if test -n "$ac_tool_prefix"; then
12948 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12949set dummy ${ac_tool_prefix}otool64; ac_word=$2
12950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12951$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012952if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012953 $as_echo_n "(cached) " >&6
12954else
12955 if test -n "$OTOOL64"; then
12956 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12957else
12958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12959for as_dir in $PATH
12960do
12961 IFS=$as_save_IFS
12962 test -z "$as_dir" && as_dir=.
12963 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012965 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12967 break 2
12968 fi
12969done
12970 done
12971IFS=$as_save_IFS
12972
12973fi
12974fi
12975OTOOL64=$ac_cv_prog_OTOOL64
12976if test -n "$OTOOL64"; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12978$as_echo "$OTOOL64" >&6; }
12979else
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981$as_echo "no" >&6; }
12982fi
12983
12984
12985fi
12986if test -z "$ac_cv_prog_OTOOL64"; then
12987 ac_ct_OTOOL64=$OTOOL64
12988 # Extract the first word of "otool64", so it can be a program name with args.
12989set dummy otool64; ac_word=$2
12990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12991$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012992if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012993 $as_echo_n "(cached) " >&6
12994else
12995 if test -n "$ac_ct_OTOOL64"; then
12996 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12997else
12998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12999for as_dir in $PATH
13000do
13001 IFS=$as_save_IFS
13002 test -z "$as_dir" && as_dir=.
13003 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013005 ac_cv_prog_ac_ct_OTOOL64="otool64"
13006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13007 break 2
13008 fi
13009done
13010 done
13011IFS=$as_save_IFS
13012
13013fi
13014fi
13015ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13016if test -n "$ac_ct_OTOOL64"; then
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13018$as_echo "$ac_ct_OTOOL64" >&6; }
13019else
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021$as_echo "no" >&6; }
13022fi
13023
13024 if test "x$ac_ct_OTOOL64" = x; then
13025 OTOOL64=":"
13026 else
13027 case $cross_compiling:$ac_tool_warned in
13028yes:)
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13031ac_tool_warned=yes ;;
13032esac
13033 OTOOL64=$ac_ct_OTOOL64
13034 fi
13035else
13036 OTOOL64="$ac_cv_prog_OTOOL64"
13037fi
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13066$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013067if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013068 $as_echo_n "(cached) " >&6
13069else
13070 lt_cv_apple_cc_single_mod=no
13071 if test -z "${LT_MULTI_MODULE}"; then
13072 # By default we will add the -single_module flag. You can override
13073 # by either setting the environment variable LT_MULTI_MODULE
13074 # non-empty at configure time, or by adding -multi_module to the
13075 # link flags.
13076 rm -rf libconftest.dylib*
13077 echo "int foo(void){return 1;}" > conftest.c
13078 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13079-dynamiclib -Wl,-single_module conftest.c" >&5
13080 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13081 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13082 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013083 # If there is a non-empty error log, and "single_module"
13084 # appears in it, assume the flag caused a linker warning
13085 if test -s conftest.err && $GREP single_module conftest.err; then
13086 cat conftest.err >&5
13087 # Otherwise, if the output was created with a 0 exit code from
13088 # the compiler, it worked.
13089 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013090 lt_cv_apple_cc_single_mod=yes
13091 else
13092 cat conftest.err >&5
13093 fi
13094 rm -rf libconftest.dylib*
13095 rm -f conftest.*
13096 fi
13097fi
13098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13099$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013100
cristy73bd4a52010-10-05 11:24:23 +000013101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13102$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013103if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013104 $as_echo_n "(cached) " >&6
13105else
13106 lt_cv_ld_exported_symbols_list=no
13107 save_LDFLAGS=$LDFLAGS
13108 echo "_main" > conftest.sym
13109 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111/* end confdefs.h. */
13112
13113int
13114main ()
13115{
13116
13117 ;
13118 return 0;
13119}
13120_ACEOF
13121if ac_fn_c_try_link "$LINENO"; then :
13122 lt_cv_ld_exported_symbols_list=yes
13123else
13124 lt_cv_ld_exported_symbols_list=no
13125fi
13126rm -f core conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
13128 LDFLAGS="$save_LDFLAGS"
13129
13130fi
13131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13132$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013133
cristy0c60a692010-11-04 01:09:47 +000013134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13135$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013136if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013137 $as_echo_n "(cached) " >&6
13138else
13139 lt_cv_ld_force_load=no
13140 cat > conftest.c << _LT_EOF
13141int forced_loaded() { return 2;}
13142_LT_EOF
13143 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13144 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13145 echo "$AR cru libconftest.a conftest.o" >&5
13146 $AR cru libconftest.a conftest.o 2>&5
13147 echo "$RANLIB libconftest.a" >&5
13148 $RANLIB libconftest.a 2>&5
13149 cat > conftest.c << _LT_EOF
13150int main() { return 0;}
13151_LT_EOF
13152 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13153 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13154 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013155 if test -s conftest.err && $GREP force_load conftest.err; then
13156 cat conftest.err >&5
13157 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013158 lt_cv_ld_force_load=yes
13159 else
13160 cat conftest.err >&5
13161 fi
13162 rm -f conftest.err libconftest.a conftest conftest.c
13163 rm -rf conftest.dSYM
13164
13165fi
13166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13167$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013168 case $host_os in
13169 rhapsody* | darwin1.[012])
13170 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13171 darwin1.*)
13172 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13173 darwin*) # darwin 5.x on
13174 # if running on 10.5 or later, the deployment target defaults
13175 # to the OS version, if on x86, and 10.4, the deployment
13176 # target defaults to 10.4. Don't you love it?
13177 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13178 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13179 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13180 10.[012]*)
13181 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13182 10.*)
13183 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13184 esac
13185 ;;
13186 esac
13187 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13188 _lt_dar_single_mod='$single_module'
13189 fi
13190 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13191 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13192 else
13193 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13194 fi
cristy0c60a692010-11-04 01:09:47 +000013195 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013196 _lt_dsymutil='~$DSYMUTIL $lib || :'
13197 else
13198 _lt_dsymutil=
13199 fi
13200 ;;
13201 esac
13202
13203for ac_header in dlfcn.h
13204do :
13205 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13206"
cristyda16f162011-02-19 23:52:17 +000013207if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013208 cat >>confdefs.h <<_ACEOF
13209#define HAVE_DLFCN_H 1
13210_ACEOF
13211
13212fi
13213
13214done
13215
13216
13217
cristy73bd4a52010-10-05 11:24:23 +000013218
cristyda16f162011-02-19 23:52:17 +000013219func_stripname_cnf ()
13220{
13221 case ${2} in
13222 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13223 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13224 esac
13225} # func_stripname_cnf
13226
13227
13228
cristy73bd4a52010-10-05 11:24:23 +000013229
13230
13231# Set options
13232enable_win32_dll=yes
13233
13234case $host in
cristy0c60a692010-11-04 01:09:47 +000013235*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013236 if test -n "$ac_tool_prefix"; then
13237 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13238set dummy ${ac_tool_prefix}as; ac_word=$2
13239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13240$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013241if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013242 $as_echo_n "(cached) " >&6
13243else
13244 if test -n "$AS"; then
13245 ac_cv_prog_AS="$AS" # Let the user override the test.
13246else
13247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248for as_dir in $PATH
13249do
13250 IFS=$as_save_IFS
13251 test -z "$as_dir" && as_dir=.
13252 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013254 ac_cv_prog_AS="${ac_tool_prefix}as"
13255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13256 break 2
13257 fi
13258done
13259 done
13260IFS=$as_save_IFS
13261
13262fi
13263fi
13264AS=$ac_cv_prog_AS
13265if test -n "$AS"; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13267$as_echo "$AS" >&6; }
13268else
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270$as_echo "no" >&6; }
13271fi
13272
13273
13274fi
13275if test -z "$ac_cv_prog_AS"; then
13276 ac_ct_AS=$AS
13277 # Extract the first word of "as", so it can be a program name with args.
13278set dummy as; ac_word=$2
13279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13280$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013281if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013282 $as_echo_n "(cached) " >&6
13283else
13284 if test -n "$ac_ct_AS"; then
13285 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13286else
13287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288for as_dir in $PATH
13289do
13290 IFS=$as_save_IFS
13291 test -z "$as_dir" && as_dir=.
13292 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013294 ac_cv_prog_ac_ct_AS="as"
13295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13296 break 2
13297 fi
13298done
13299 done
13300IFS=$as_save_IFS
13301
13302fi
13303fi
13304ac_ct_AS=$ac_cv_prog_ac_ct_AS
13305if test -n "$ac_ct_AS"; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13307$as_echo "$ac_ct_AS" >&6; }
13308else
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310$as_echo "no" >&6; }
13311fi
13312
13313 if test "x$ac_ct_AS" = x; then
13314 AS="false"
13315 else
13316 case $cross_compiling:$ac_tool_warned in
13317yes:)
13318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13320ac_tool_warned=yes ;;
13321esac
13322 AS=$ac_ct_AS
13323 fi
13324else
13325 AS="$ac_cv_prog_AS"
13326fi
13327
13328 if test -n "$ac_tool_prefix"; then
13329 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13330set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13332$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013333if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013334 $as_echo_n "(cached) " >&6
13335else
13336 if test -n "$DLLTOOL"; then
13337 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13338else
13339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13340for as_dir in $PATH
13341do
13342 IFS=$as_save_IFS
13343 test -z "$as_dir" && as_dir=.
13344 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013346 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13348 break 2
13349 fi
13350done
13351 done
13352IFS=$as_save_IFS
13353
13354fi
13355fi
13356DLLTOOL=$ac_cv_prog_DLLTOOL
13357if test -n "$DLLTOOL"; then
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13359$as_echo "$DLLTOOL" >&6; }
13360else
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362$as_echo "no" >&6; }
13363fi
13364
13365
13366fi
13367if test -z "$ac_cv_prog_DLLTOOL"; then
13368 ac_ct_DLLTOOL=$DLLTOOL
13369 # Extract the first word of "dlltool", so it can be a program name with args.
13370set dummy dlltool; ac_word=$2
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13372$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013373if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013374 $as_echo_n "(cached) " >&6
13375else
13376 if test -n "$ac_ct_DLLTOOL"; then
13377 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13378else
13379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13380for as_dir in $PATH
13381do
13382 IFS=$as_save_IFS
13383 test -z "$as_dir" && as_dir=.
13384 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013386 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13388 break 2
13389 fi
13390done
13391 done
13392IFS=$as_save_IFS
13393
13394fi
13395fi
13396ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13397if test -n "$ac_ct_DLLTOOL"; then
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13399$as_echo "$ac_ct_DLLTOOL" >&6; }
13400else
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402$as_echo "no" >&6; }
13403fi
13404
13405 if test "x$ac_ct_DLLTOOL" = x; then
13406 DLLTOOL="false"
13407 else
13408 case $cross_compiling:$ac_tool_warned in
13409yes:)
13410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13412ac_tool_warned=yes ;;
13413esac
13414 DLLTOOL=$ac_ct_DLLTOOL
13415 fi
13416else
13417 DLLTOOL="$ac_cv_prog_DLLTOOL"
13418fi
13419
13420 if test -n "$ac_tool_prefix"; then
13421 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13422set dummy ${ac_tool_prefix}objdump; ac_word=$2
13423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013425if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013426 $as_echo_n "(cached) " >&6
13427else
13428 if test -n "$OBJDUMP"; then
13429 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13430else
13431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432for as_dir in $PATH
13433do
13434 IFS=$as_save_IFS
13435 test -z "$as_dir" && as_dir=.
13436 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013438 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13440 break 2
13441 fi
13442done
13443 done
13444IFS=$as_save_IFS
13445
13446fi
13447fi
13448OBJDUMP=$ac_cv_prog_OBJDUMP
13449if test -n "$OBJDUMP"; then
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13451$as_echo "$OBJDUMP" >&6; }
13452else
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454$as_echo "no" >&6; }
13455fi
13456
13457
13458fi
13459if test -z "$ac_cv_prog_OBJDUMP"; then
13460 ac_ct_OBJDUMP=$OBJDUMP
13461 # Extract the first word of "objdump", so it can be a program name with args.
13462set dummy objdump; ac_word=$2
13463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13464$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013465if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013466 $as_echo_n "(cached) " >&6
13467else
13468 if test -n "$ac_ct_OBJDUMP"; then
13469 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13470else
13471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13472for as_dir in $PATH
13473do
13474 IFS=$as_save_IFS
13475 test -z "$as_dir" && as_dir=.
13476 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013478 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13480 break 2
13481 fi
13482done
13483 done
13484IFS=$as_save_IFS
13485
13486fi
13487fi
13488ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13489if test -n "$ac_ct_OBJDUMP"; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13491$as_echo "$ac_ct_OBJDUMP" >&6; }
13492else
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494$as_echo "no" >&6; }
13495fi
13496
13497 if test "x$ac_ct_OBJDUMP" = x; then
13498 OBJDUMP="false"
13499 else
13500 case $cross_compiling:$ac_tool_warned in
13501yes:)
13502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13504ac_tool_warned=yes ;;
13505esac
13506 OBJDUMP=$ac_ct_OBJDUMP
13507 fi
13508else
13509 OBJDUMP="$ac_cv_prog_OBJDUMP"
13510fi
13511
13512 ;;
13513esac
13514
13515test -z "$AS" && AS=as
13516
13517
13518
13519
13520
13521test -z "$DLLTOOL" && DLLTOOL=dlltool
13522
13523
13524
13525
13526
13527test -z "$OBJDUMP" && OBJDUMP=objdump
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537 # Check whether --enable-shared was given.
13538if test "${enable_shared+set}" = set; then :
13539 enableval=$enable_shared; p=${PACKAGE-default}
13540 case $enableval in
13541 yes) enable_shared=yes ;;
13542 no) enable_shared=no ;;
13543 *)
13544 enable_shared=no
13545 # Look at the argument we got. We use all the common list separators.
13546 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13547 for pkg in $enableval; do
13548 IFS="$lt_save_ifs"
13549 if test "X$pkg" = "X$p"; then
13550 enable_shared=yes
13551 fi
13552 done
13553 IFS="$lt_save_ifs"
13554 ;;
13555 esac
13556else
13557 enable_shared=yes
13558fi
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568 # Check whether --enable-static was given.
13569if test "${enable_static+set}" = set; then :
13570 enableval=$enable_static; p=${PACKAGE-default}
13571 case $enableval in
13572 yes) enable_static=yes ;;
13573 no) enable_static=no ;;
13574 *)
13575 enable_static=no
13576 # Look at the argument we got. We use all the common list separators.
13577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13578 for pkg in $enableval; do
13579 IFS="$lt_save_ifs"
13580 if test "X$pkg" = "X$p"; then
13581 enable_static=yes
13582 fi
13583 done
13584 IFS="$lt_save_ifs"
13585 ;;
13586 esac
13587else
13588 enable_static=yes
13589fi
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600# Check whether --with-pic was given.
13601if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013602 withval=$with_pic; lt_p=${PACKAGE-default}
13603 case $withval in
13604 yes|no) pic_mode=$withval ;;
13605 *)
13606 pic_mode=default
13607 # Look at the argument we got. We use all the common list separators.
13608 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13609 for lt_pkg in $withval; do
13610 IFS="$lt_save_ifs"
13611 if test "X$lt_pkg" = "X$lt_p"; then
13612 pic_mode=yes
13613 fi
13614 done
13615 IFS="$lt_save_ifs"
13616 ;;
13617 esac
cristy73bd4a52010-10-05 11:24:23 +000013618else
13619 pic_mode=default
13620fi
13621
13622
13623test -z "$pic_mode" && pic_mode=default
13624
13625
13626
13627
13628
13629
13630
13631 # Check whether --enable-fast-install was given.
13632if test "${enable_fast_install+set}" = set; then :
13633 enableval=$enable_fast_install; p=${PACKAGE-default}
13634 case $enableval in
13635 yes) enable_fast_install=yes ;;
13636 no) enable_fast_install=no ;;
13637 *)
13638 enable_fast_install=no
13639 # Look at the argument we got. We use all the common list separators.
13640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13641 for pkg in $enableval; do
13642 IFS="$lt_save_ifs"
13643 if test "X$pkg" = "X$p"; then
13644 enable_fast_install=yes
13645 fi
13646 done
13647 IFS="$lt_save_ifs"
13648 ;;
13649 esac
13650else
13651 enable_fast_install=yes
13652fi
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664# This can be used to rebuild libtool when needed
13665LIBTOOL_DEPS="$ltmain"
13666
13667# Always use our own libtool.
13668LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
cristy0c60a692010-11-04 01:09:47 +000013694
cristy99bd5232011-12-07 14:38:20 +000013695
13696
13697
13698
cristy73bd4a52010-10-05 11:24:23 +000013699test -z "$LN_S" && LN_S="ln -s"
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714if test -n "${ZSH_VERSION+set}" ; then
13715 setopt NO_GLOB_SUBST
13716fi
13717
13718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13719$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013720if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013721 $as_echo_n "(cached) " >&6
13722else
13723 rm -f .libs 2>/dev/null
13724mkdir .libs 2>/dev/null
13725if test -d .libs; then
13726 lt_cv_objdir=.libs
13727else
13728 # MS-DOS does not allow filenames that begin with a dot.
13729 lt_cv_objdir=_libs
13730fi
13731rmdir .libs 2>/dev/null
13732fi
13733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13734$as_echo "$lt_cv_objdir" >&6; }
13735objdir=$lt_cv_objdir
13736
13737
13738
13739
13740
13741cat >>confdefs.h <<_ACEOF
13742#define LT_OBJDIR "$lt_cv_objdir/"
13743_ACEOF
13744
13745
13746
13747
cristy73bd4a52010-10-05 11:24:23 +000013748case $host_os in
13749aix3*)
13750 # AIX sometimes has problems with the GCC collect2 program. For some
13751 # reason, if we set the COLLECT_NAMES environment variable, the problems
13752 # vanish in a puff of smoke.
13753 if test "X${COLLECT_NAMES+set}" != Xset; then
13754 COLLECT_NAMES=
13755 export COLLECT_NAMES
13756 fi
13757 ;;
13758esac
13759
cristy73bd4a52010-10-05 11:24:23 +000013760# Global variables:
13761ofile=libtool
13762can_build_shared=yes
13763
13764# All known linkers require a `.a' archive for static linking (except MSVC,
13765# which needs '.lib').
13766libext=a
13767
13768with_gnu_ld="$lt_cv_prog_gnu_ld"
13769
13770old_CC="$CC"
13771old_CFLAGS="$CFLAGS"
13772
13773# Set sane defaults for various variables
13774test -z "$CC" && CC=cc
13775test -z "$LTCC" && LTCC=$CC
13776test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13777test -z "$LD" && LD=ld
13778test -z "$ac_objext" && ac_objext=o
13779
13780for cc_temp in $compiler""; do
13781 case $cc_temp in
13782 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13783 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13784 \-*) ;;
13785 *) break;;
13786 esac
13787done
cristy0c60a692010-11-04 01:09:47 +000013788cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013789
13790
13791# Only perform the check for file, if the check method requires it
13792test -z "$MAGIC_CMD" && MAGIC_CMD=file
13793case $deplibs_check_method in
13794file_magic*)
13795 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13797$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013798if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013799 $as_echo_n "(cached) " >&6
13800else
13801 case $MAGIC_CMD in
13802[\\/*] | ?:[\\/]*)
13803 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13804 ;;
13805*)
13806 lt_save_MAGIC_CMD="$MAGIC_CMD"
13807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13808 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13809 for ac_dir in $ac_dummy; do
13810 IFS="$lt_save_ifs"
13811 test -z "$ac_dir" && ac_dir=.
13812 if test -f $ac_dir/${ac_tool_prefix}file; then
13813 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13814 if test -n "$file_magic_test_file"; then
13815 case $deplibs_check_method in
13816 "file_magic "*)
13817 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13819 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13820 $EGREP "$file_magic_regex" > /dev/null; then
13821 :
13822 else
13823 cat <<_LT_EOF 1>&2
13824
13825*** Warning: the command libtool uses to detect shared libraries,
13826*** $file_magic_cmd, produces output that libtool cannot recognize.
13827*** The result is that libtool may fail to recognize shared libraries
13828*** as such. This will affect the creation of libtool libraries that
13829*** depend on shared libraries, but programs linked with such libtool
13830*** libraries will work regardless of this problem. Nevertheless, you
13831*** may want to report the problem to your system manager and/or to
13832*** bug-libtool@gnu.org
13833
13834_LT_EOF
13835 fi ;;
13836 esac
13837 fi
13838 break
13839 fi
13840 done
13841 IFS="$lt_save_ifs"
13842 MAGIC_CMD="$lt_save_MAGIC_CMD"
13843 ;;
13844esac
13845fi
13846
13847MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13848if test -n "$MAGIC_CMD"; then
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13850$as_echo "$MAGIC_CMD" >&6; }
13851else
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13853$as_echo "no" >&6; }
13854fi
13855
13856
13857
13858
13859
13860if test -z "$lt_cv_path_MAGIC_CMD"; then
13861 if test -n "$ac_tool_prefix"; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13863$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013864if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013865 $as_echo_n "(cached) " >&6
13866else
13867 case $MAGIC_CMD in
13868[\\/*] | ?:[\\/]*)
13869 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13870 ;;
13871*)
13872 lt_save_MAGIC_CMD="$MAGIC_CMD"
13873 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13874 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13875 for ac_dir in $ac_dummy; do
13876 IFS="$lt_save_ifs"
13877 test -z "$ac_dir" && ac_dir=.
13878 if test -f $ac_dir/file; then
13879 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13880 if test -n "$file_magic_test_file"; then
13881 case $deplibs_check_method in
13882 "file_magic "*)
13883 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13884 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13885 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13886 $EGREP "$file_magic_regex" > /dev/null; then
13887 :
13888 else
13889 cat <<_LT_EOF 1>&2
13890
13891*** Warning: the command libtool uses to detect shared libraries,
13892*** $file_magic_cmd, produces output that libtool cannot recognize.
13893*** The result is that libtool may fail to recognize shared libraries
13894*** as such. This will affect the creation of libtool libraries that
13895*** depend on shared libraries, but programs linked with such libtool
13896*** libraries will work regardless of this problem. Nevertheless, you
13897*** may want to report the problem to your system manager and/or to
13898*** bug-libtool@gnu.org
13899
13900_LT_EOF
13901 fi ;;
13902 esac
13903 fi
13904 break
13905 fi
13906 done
13907 IFS="$lt_save_ifs"
13908 MAGIC_CMD="$lt_save_MAGIC_CMD"
13909 ;;
13910esac
13911fi
13912
13913MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13914if test -n "$MAGIC_CMD"; then
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13916$as_echo "$MAGIC_CMD" >&6; }
13917else
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919$as_echo "no" >&6; }
13920fi
13921
13922
13923 else
13924 MAGIC_CMD=:
13925 fi
13926fi
13927
13928 fi
13929 ;;
13930esac
13931
13932# Use C for the default configuration in the libtool script
13933
13934lt_save_CC="$CC"
13935ac_ext=c
13936ac_cpp='$CPP $CPPFLAGS'
13937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13939ac_compiler_gnu=$ac_cv_c_compiler_gnu
13940
13941
13942# Source file extension for C test sources.
13943ac_ext=c
13944
13945# Object file extension for compiled C test sources.
13946objext=o
13947objext=$objext
13948
13949# Code to be used in simple compile tests
13950lt_simple_compile_test_code="int some_variable = 0;"
13951
13952# Code to be used in simple link tests
13953lt_simple_link_test_code='int main(){return(0);}'
13954
13955
13956
13957
13958
13959
13960
13961# If no C compiler was specified, use CC.
13962LTCC=${LTCC-"$CC"}
13963
13964# If no C compiler flags were specified, use CFLAGS.
13965LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13966
13967# Allow CC to be a program name with arguments.
13968compiler=$CC
13969
13970# Save the default compiler, since it gets overwritten when the other
13971# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13972compiler_DEFAULT=$CC
13973
13974# save warnings/boilerplate of simple test code
13975ac_outfile=conftest.$ac_objext
13976echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13977eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13978_lt_compiler_boilerplate=`cat conftest.err`
13979$RM conftest*
13980
13981ac_outfile=conftest.$ac_objext
13982echo "$lt_simple_link_test_code" >conftest.$ac_ext
13983eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13984_lt_linker_boilerplate=`cat conftest.err`
13985$RM -r conftest*
13986
13987
13988## CAVEAT EMPTOR:
13989## There is no encapsulation within the following macros, do not change
13990## the running order or otherwise move them around unless you know exactly
13991## what you are doing...
13992if test -n "$compiler"; then
13993
13994lt_prog_compiler_no_builtin_flag=
13995
13996if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013997 case $cc_basename in
13998 nvcc*)
13999 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14000 *)
14001 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14002 esac
cristy73bd4a52010-10-05 11:24:23 +000014003
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14005$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014006if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014007 $as_echo_n "(cached) " >&6
14008else
14009 lt_cv_prog_compiler_rtti_exceptions=no
14010 ac_outfile=conftest.$ac_objext
14011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14012 lt_compiler_flag="-fno-rtti -fno-exceptions"
14013 # Insert the option either (1) after the last *FLAGS variable, or
14014 # (2) before a word containing "conftest.", or (3) at the end.
14015 # Note that $ac_compile itself does not contain backslashes and begins
14016 # with a dollar sign (not a hyphen), so the echo should work correctly.
14017 # The option is referenced via a variable to avoid confusing sed.
14018 lt_compile=`echo "$ac_compile" | $SED \
14019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14021 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014022 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014023 (eval "$lt_compile" 2>conftest.err)
14024 ac_status=$?
14025 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014027 if (exit $ac_status) && test -s "$ac_outfile"; then
14028 # The compiler can only warn and ignore the option if not recognized
14029 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014030 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14033 lt_cv_prog_compiler_rtti_exceptions=yes
14034 fi
14035 fi
14036 $RM conftest*
14037
14038fi
14039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14040$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14041
14042if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14043 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14044else
14045 :
14046fi
14047
14048fi
14049
14050
14051
14052
14053
14054
14055 lt_prog_compiler_wl=
14056lt_prog_compiler_pic=
14057lt_prog_compiler_static=
14058
cristy73bd4a52010-10-05 11:24:23 +000014059
14060 if test "$GCC" = yes; then
14061 lt_prog_compiler_wl='-Wl,'
14062 lt_prog_compiler_static='-static'
14063
14064 case $host_os in
14065 aix*)
14066 # All AIX code is PIC.
14067 if test "$host_cpu" = ia64; then
14068 # AIX 5 now supports IA64 processor
14069 lt_prog_compiler_static='-Bstatic'
14070 fi
14071 ;;
14072
14073 amigaos*)
14074 case $host_cpu in
14075 powerpc)
14076 # see comment about AmigaOS4 .so support
14077 lt_prog_compiler_pic='-fPIC'
14078 ;;
14079 m68k)
14080 # FIXME: we need at least 68020 code to build shared libraries, but
14081 # adding the `-m68020' flag to GCC prevents building anything better,
14082 # like `-m68040'.
14083 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14084 ;;
14085 esac
14086 ;;
14087
14088 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14089 # PIC is the default for these OSes.
14090 ;;
14091
14092 mingw* | cygwin* | pw32* | os2* | cegcc*)
14093 # This hack is so that the source file can tell whether it is being
14094 # built for inclusion in a dll (and should export symbols for example).
14095 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14096 # (--disable-auto-import) libraries
14097 lt_prog_compiler_pic='-DDLL_EXPORT'
14098 ;;
14099
14100 darwin* | rhapsody*)
14101 # PIC is the default on this platform
14102 # Common symbols not allowed in MH_DYLIB files
14103 lt_prog_compiler_pic='-fno-common'
14104 ;;
14105
cristy0c60a692010-11-04 01:09:47 +000014106 haiku*)
14107 # PIC is the default for Haiku.
14108 # The "-static" flag exists, but is broken.
14109 lt_prog_compiler_static=
14110 ;;
14111
cristy73bd4a52010-10-05 11:24:23 +000014112 hpux*)
14113 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14114 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14115 # sets the default TLS model and affects inlining.
14116 case $host_cpu in
14117 hppa*64*)
14118 # +Z the default
14119 ;;
14120 *)
14121 lt_prog_compiler_pic='-fPIC'
14122 ;;
14123 esac
14124 ;;
14125
14126 interix[3-9]*)
14127 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14128 # Instead, we relocate shared libraries at runtime.
14129 ;;
14130
14131 msdosdjgpp*)
14132 # Just because we use GCC doesn't mean we suddenly get shared libraries
14133 # on systems that don't support them.
14134 lt_prog_compiler_can_build_shared=no
14135 enable_shared=no
14136 ;;
14137
14138 *nto* | *qnx*)
14139 # QNX uses GNU C++, but need to define -shared option too, otherwise
14140 # it will coredump.
14141 lt_prog_compiler_pic='-fPIC -shared'
14142 ;;
14143
14144 sysv4*MP*)
14145 if test -d /usr/nec; then
14146 lt_prog_compiler_pic=-Kconform_pic
14147 fi
14148 ;;
14149
14150 *)
14151 lt_prog_compiler_pic='-fPIC'
14152 ;;
14153 esac
cristy0c60a692010-11-04 01:09:47 +000014154
14155 case $cc_basename in
14156 nvcc*) # Cuda Compiler Driver 2.2
14157 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014158 if test -n "$lt_prog_compiler_pic"; then
14159 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14160 fi
cristy0c60a692010-11-04 01:09:47 +000014161 ;;
14162 esac
cristy73bd4a52010-10-05 11:24:23 +000014163 else
14164 # PORTME Check for flag to pass linker flags through the system compiler.
14165 case $host_os in
14166 aix*)
14167 lt_prog_compiler_wl='-Wl,'
14168 if test "$host_cpu" = ia64; then
14169 # AIX 5 now supports IA64 processor
14170 lt_prog_compiler_static='-Bstatic'
14171 else
14172 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14173 fi
14174 ;;
14175
14176 mingw* | cygwin* | pw32* | os2* | cegcc*)
14177 # This hack is so that the source file can tell whether it is being
14178 # built for inclusion in a dll (and should export symbols for example).
14179 lt_prog_compiler_pic='-DDLL_EXPORT'
14180 ;;
14181
14182 hpux9* | hpux10* | hpux11*)
14183 lt_prog_compiler_wl='-Wl,'
14184 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14185 # not for PA HP-UX.
14186 case $host_cpu in
14187 hppa*64*|ia64*)
14188 # +Z the default
14189 ;;
14190 *)
14191 lt_prog_compiler_pic='+Z'
14192 ;;
14193 esac
14194 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14195 lt_prog_compiler_static='${wl}-a ${wl}archive'
14196 ;;
14197
14198 irix5* | irix6* | nonstopux*)
14199 lt_prog_compiler_wl='-Wl,'
14200 # PIC (with -KPIC) is the default.
14201 lt_prog_compiler_static='-non_shared'
14202 ;;
14203
cristy0c60a692010-11-04 01:09:47 +000014204 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014205 case $cc_basename in
14206 # old Intel for x86_64 which still supported -KPIC.
14207 ecc*)
14208 lt_prog_compiler_wl='-Wl,'
14209 lt_prog_compiler_pic='-KPIC'
14210 lt_prog_compiler_static='-static'
14211 ;;
14212 # icc used to be incompatible with GCC.
14213 # ICC 10 doesn't accept -KPIC any more.
14214 icc* | ifort*)
14215 lt_prog_compiler_wl='-Wl,'
14216 lt_prog_compiler_pic='-fPIC'
14217 lt_prog_compiler_static='-static'
14218 ;;
14219 # Lahey Fortran 8.1.
14220 lf95*)
14221 lt_prog_compiler_wl='-Wl,'
14222 lt_prog_compiler_pic='--shared'
14223 lt_prog_compiler_static='--static'
14224 ;;
cristyda16f162011-02-19 23:52:17 +000014225 nagfor*)
14226 # NAG Fortran compiler
14227 lt_prog_compiler_wl='-Wl,-Wl,,'
14228 lt_prog_compiler_pic='-PIC'
14229 lt_prog_compiler_static='-Bstatic'
14230 ;;
cristy0c60a692010-11-04 01:09:47 +000014231 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014232 # Portland Group compilers (*not* the Pentium gcc compiler,
14233 # which looks to be a dead project)
14234 lt_prog_compiler_wl='-Wl,'
14235 lt_prog_compiler_pic='-fpic'
14236 lt_prog_compiler_static='-Bstatic'
14237 ;;
14238 ccc*)
14239 lt_prog_compiler_wl='-Wl,'
14240 # All Alpha code is PIC.
14241 lt_prog_compiler_static='-non_shared'
14242 ;;
cristy0c60a692010-11-04 01:09:47 +000014243 xl* | bgxl* | bgf* | mpixl*)
14244 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014245 lt_prog_compiler_wl='-Wl,'
14246 lt_prog_compiler_pic='-qpic'
14247 lt_prog_compiler_static='-qstaticlink'
14248 ;;
14249 *)
14250 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014251 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014252 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14253 lt_prog_compiler_pic='-KPIC'
14254 lt_prog_compiler_static='-Bstatic'
14255 lt_prog_compiler_wl=''
14256 ;;
cristy99bd5232011-12-07 14:38:20 +000014257 *Sun\ F* | *Sun*Fortran*)
14258 lt_prog_compiler_pic='-KPIC'
14259 lt_prog_compiler_static='-Bstatic'
14260 lt_prog_compiler_wl='-Qoption ld '
14261 ;;
cristy73bd4a52010-10-05 11:24:23 +000014262 *Sun\ C*)
14263 # Sun C 5.9
14264 lt_prog_compiler_pic='-KPIC'
14265 lt_prog_compiler_static='-Bstatic'
14266 lt_prog_compiler_wl='-Wl,'
14267 ;;
cristy99bd5232011-12-07 14:38:20 +000014268 *Intel*\ [CF]*Compiler*)
14269 lt_prog_compiler_wl='-Wl,'
14270 lt_prog_compiler_pic='-fPIC'
14271 lt_prog_compiler_static='-static'
14272 ;;
14273 *Portland\ Group*)
14274 lt_prog_compiler_wl='-Wl,'
14275 lt_prog_compiler_pic='-fpic'
14276 lt_prog_compiler_static='-Bstatic'
14277 ;;
cristy73bd4a52010-10-05 11:24:23 +000014278 esac
14279 ;;
14280 esac
14281 ;;
14282
14283 newsos6)
14284 lt_prog_compiler_pic='-KPIC'
14285 lt_prog_compiler_static='-Bstatic'
14286 ;;
14287
14288 *nto* | *qnx*)
14289 # QNX uses GNU C++, but need to define -shared option too, otherwise
14290 # it will coredump.
14291 lt_prog_compiler_pic='-fPIC -shared'
14292 ;;
14293
14294 osf3* | osf4* | osf5*)
14295 lt_prog_compiler_wl='-Wl,'
14296 # All OSF/1 code is PIC.
14297 lt_prog_compiler_static='-non_shared'
14298 ;;
14299
14300 rdos*)
14301 lt_prog_compiler_static='-non_shared'
14302 ;;
14303
14304 solaris*)
14305 lt_prog_compiler_pic='-KPIC'
14306 lt_prog_compiler_static='-Bstatic'
14307 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014308 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014309 lt_prog_compiler_wl='-Qoption ld ';;
14310 *)
14311 lt_prog_compiler_wl='-Wl,';;
14312 esac
14313 ;;
14314
14315 sunos4*)
14316 lt_prog_compiler_wl='-Qoption ld '
14317 lt_prog_compiler_pic='-PIC'
14318 lt_prog_compiler_static='-Bstatic'
14319 ;;
14320
14321 sysv4 | sysv4.2uw2* | sysv4.3*)
14322 lt_prog_compiler_wl='-Wl,'
14323 lt_prog_compiler_pic='-KPIC'
14324 lt_prog_compiler_static='-Bstatic'
14325 ;;
14326
14327 sysv4*MP*)
14328 if test -d /usr/nec ;then
14329 lt_prog_compiler_pic='-Kconform_pic'
14330 lt_prog_compiler_static='-Bstatic'
14331 fi
14332 ;;
14333
14334 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14335 lt_prog_compiler_wl='-Wl,'
14336 lt_prog_compiler_pic='-KPIC'
14337 lt_prog_compiler_static='-Bstatic'
14338 ;;
14339
14340 unicos*)
14341 lt_prog_compiler_wl='-Wl,'
14342 lt_prog_compiler_can_build_shared=no
14343 ;;
14344
14345 uts4*)
14346 lt_prog_compiler_pic='-pic'
14347 lt_prog_compiler_static='-Bstatic'
14348 ;;
14349
14350 *)
14351 lt_prog_compiler_can_build_shared=no
14352 ;;
14353 esac
14354 fi
14355
14356case $host_os in
14357 # For platforms which do not support PIC, -DPIC is meaningless:
14358 *djgpp*)
14359 lt_prog_compiler_pic=
14360 ;;
14361 *)
14362 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14363 ;;
14364esac
cristy73bd4a52010-10-05 11:24:23 +000014365
cristyda16f162011-02-19 23:52:17 +000014366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14367$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14368if ${lt_cv_prog_compiler_pic+:} false; then :
14369 $as_echo_n "(cached) " >&6
14370else
14371 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14372fi
14373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14374$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14375lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014376
14377#
14378# Check to make sure the PIC flag actually works.
14379#
14380if test -n "$lt_prog_compiler_pic"; then
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14382$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014383if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014384 $as_echo_n "(cached) " >&6
14385else
14386 lt_cv_prog_compiler_pic_works=no
14387 ac_outfile=conftest.$ac_objext
14388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14389 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14390 # Insert the option either (1) after the last *FLAGS variable, or
14391 # (2) before a word containing "conftest.", or (3) at the end.
14392 # Note that $ac_compile itself does not contain backslashes and begins
14393 # with a dollar sign (not a hyphen), so the echo should work correctly.
14394 # The option is referenced via a variable to avoid confusing sed.
14395 lt_compile=`echo "$ac_compile" | $SED \
14396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14398 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014399 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014400 (eval "$lt_compile" 2>conftest.err)
14401 ac_status=$?
14402 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014404 if (exit $ac_status) && test -s "$ac_outfile"; then
14405 # The compiler can only warn and ignore the option if not recognized
14406 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14409 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14410 lt_cv_prog_compiler_pic_works=yes
14411 fi
14412 fi
14413 $RM conftest*
14414
14415fi
14416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14417$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14418
14419if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14420 case $lt_prog_compiler_pic in
14421 "" | " "*) ;;
14422 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14423 esac
14424else
14425 lt_prog_compiler_pic=
14426 lt_prog_compiler_can_build_shared=no
14427fi
14428
14429fi
14430
14431
14432
14433
14434
14435
cristyda16f162011-02-19 23:52:17 +000014436
14437
14438
14439
14440
cristy73bd4a52010-10-05 11:24:23 +000014441#
14442# Check to make sure the static flag actually works.
14443#
14444wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14446$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014447if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014448 $as_echo_n "(cached) " >&6
14449else
14450 lt_cv_prog_compiler_static_works=no
14451 save_LDFLAGS="$LDFLAGS"
14452 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14453 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14454 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14455 # The linker can only warn and ignore the option if not recognized
14456 # So say no if there are warnings
14457 if test -s conftest.err; then
14458 # Append any errors to the config.log.
14459 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014460 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14462 if diff conftest.exp conftest.er2 >/dev/null; then
14463 lt_cv_prog_compiler_static_works=yes
14464 fi
14465 else
14466 lt_cv_prog_compiler_static_works=yes
14467 fi
14468 fi
14469 $RM -r conftest*
14470 LDFLAGS="$save_LDFLAGS"
14471
14472fi
14473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14474$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14475
14476if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14477 :
14478else
14479 lt_prog_compiler_static=
14480fi
14481
14482
14483
14484
14485
14486
14487
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14489$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014490if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014491 $as_echo_n "(cached) " >&6
14492else
14493 lt_cv_prog_compiler_c_o=no
14494 $RM -r conftest 2>/dev/null
14495 mkdir conftest
14496 cd conftest
14497 mkdir out
14498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14499
14500 lt_compiler_flag="-o out/conftest2.$ac_objext"
14501 # Insert the option either (1) after the last *FLAGS variable, or
14502 # (2) before a word containing "conftest.", or (3) at the end.
14503 # Note that $ac_compile itself does not contain backslashes and begins
14504 # with a dollar sign (not a hyphen), so the echo should work correctly.
14505 lt_compile=`echo "$ac_compile" | $SED \
14506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14508 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014509 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014510 (eval "$lt_compile" 2>out/conftest.err)
14511 ac_status=$?
14512 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014514 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14515 then
14516 # The compiler can only warn and ignore the option if not recognized
14517 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014518 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014519 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14520 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14521 lt_cv_prog_compiler_c_o=yes
14522 fi
14523 fi
14524 chmod u+w . 2>&5
14525 $RM conftest*
14526 # SGI C++ compiler will create directory out/ii_files/ for
14527 # template instantiation
14528 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14529 $RM out/* && rmdir out
14530 cd ..
14531 $RM -r conftest
14532 $RM conftest*
14533
14534fi
14535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14536$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14537
14538
14539
14540
14541
14542
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14544$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014545if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014546 $as_echo_n "(cached) " >&6
14547else
14548 lt_cv_prog_compiler_c_o=no
14549 $RM -r conftest 2>/dev/null
14550 mkdir conftest
14551 cd conftest
14552 mkdir out
14553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14554
14555 lt_compiler_flag="-o out/conftest2.$ac_objext"
14556 # Insert the option either (1) after the last *FLAGS variable, or
14557 # (2) before a word containing "conftest.", or (3) at the end.
14558 # Note that $ac_compile itself does not contain backslashes and begins
14559 # with a dollar sign (not a hyphen), so the echo should work correctly.
14560 lt_compile=`echo "$ac_compile" | $SED \
14561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14563 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014565 (eval "$lt_compile" 2>out/conftest.err)
14566 ac_status=$?
14567 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14570 then
14571 # The compiler can only warn and ignore the option if not recognized
14572 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14576 lt_cv_prog_compiler_c_o=yes
14577 fi
14578 fi
14579 chmod u+w . 2>&5
14580 $RM conftest*
14581 # SGI C++ compiler will create directory out/ii_files/ for
14582 # template instantiation
14583 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14584 $RM out/* && rmdir out
14585 cd ..
14586 $RM -r conftest
14587 $RM conftest*
14588
14589fi
14590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14591$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14592
14593
14594
14595
14596hard_links="nottested"
14597if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14598 # do not overwrite the value of need_locks provided by the user
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14600$as_echo_n "checking if we can lock with hard links... " >&6; }
14601 hard_links=yes
14602 $RM conftest*
14603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14604 touch conftest.a
14605 ln conftest.a conftest.b 2>&5 || hard_links=no
14606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14608$as_echo "$hard_links" >&6; }
14609 if test "$hard_links" = no; then
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14611$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14612 need_locks=warn
14613 fi
14614else
14615 need_locks=no
14616fi
14617
14618
14619
14620
14621
14622
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14624$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14625
14626 runpath_var=
14627 allow_undefined_flag=
14628 always_export_symbols=no
14629 archive_cmds=
14630 archive_expsym_cmds=
14631 compiler_needs_object=no
14632 enable_shared_with_static_runtimes=no
14633 export_dynamic_flag_spec=
14634 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14635 hardcode_automatic=no
14636 hardcode_direct=no
14637 hardcode_direct_absolute=no
14638 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014639 hardcode_libdir_separator=
14640 hardcode_minus_L=no
14641 hardcode_shlibpath_var=unsupported
14642 inherit_rpath=no
14643 link_all_deplibs=unknown
14644 module_cmds=
14645 module_expsym_cmds=
14646 old_archive_from_new_cmds=
14647 old_archive_from_expsyms_cmds=
14648 thread_safe_flag_spec=
14649 whole_archive_flag_spec=
14650 # include_expsyms should be a list of space-separated symbols to be *always*
14651 # included in the symbol list
14652 include_expsyms=
14653 # exclude_expsyms can be an extended regexp of symbols to exclude
14654 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14655 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14656 # as well as any symbol that contains `d'.
14657 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14658 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14659 # platforms (ab)use it in PIC code, but their linkers get confused if
14660 # the symbol is explicitly referenced. Since portable code cannot
14661 # rely on this symbol name, it's probably fine to never include it in
14662 # preloaded symbol tables.
14663 # Exclude shared library initialization/finalization symbols.
14664 extract_expsyms_cmds=
14665
14666 case $host_os in
14667 cygwin* | mingw* | pw32* | cegcc*)
14668 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14669 # When not using gcc, we currently assume that we are using
14670 # Microsoft Visual C++.
14671 if test "$GCC" != yes; then
14672 with_gnu_ld=no
14673 fi
14674 ;;
14675 interix*)
14676 # we just hope/assume this is gcc and not c89 (= MSVC++)
14677 with_gnu_ld=yes
14678 ;;
14679 openbsd*)
14680 with_gnu_ld=no
14681 ;;
14682 esac
14683
14684 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014685
14686 # On some targets, GNU ld is compatible enough with the native linker
14687 # that we're better off using the native interface for both.
14688 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014689 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014690 case $host_os in
14691 aix*)
14692 # The AIX port of GNU ld has always aspired to compatibility
14693 # with the native linker. However, as the warning in the GNU ld
14694 # block says, versions before 2.19.5* couldn't really create working
14695 # shared libraries, regardless of the interface used.
14696 case `$LD -v 2>&1` in
14697 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14698 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14699 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14700 *)
14701 lt_use_gnu_ld_interface=yes
14702 ;;
14703 esac
14704 ;;
14705 *)
14706 lt_use_gnu_ld_interface=yes
14707 ;;
14708 esac
14709 fi
14710
14711 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014712 # If archive_cmds runs LD, not CC, wlarc should be empty
14713 wlarc='${wl}'
14714
14715 # Set some defaults for GNU ld with shared library support. These
14716 # are reset later if shared libraries are not supported. Putting them
14717 # here allows them to be overridden if necessary.
14718 runpath_var=LD_RUN_PATH
14719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14720 export_dynamic_flag_spec='${wl}--export-dynamic'
14721 # ancient GNU ld didn't support --whole-archive et. al.
14722 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14723 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14724 else
14725 whole_archive_flag_spec=
14726 fi
14727 supports_anon_versioning=no
14728 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014729 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014730 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14731 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14732 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14733 *\ 2.11.*) ;; # other 2.11 versions
14734 *) supports_anon_versioning=yes ;;
14735 esac
14736
14737 # See if GNU ld supports shared libraries.
14738 case $host_os in
14739 aix[3-9]*)
14740 # On AIX/PPC, the GNU linker is very broken
14741 if test "$host_cpu" != ia64; then
14742 ld_shlibs=no
14743 cat <<_LT_EOF 1>&2
14744
cristy0c60a692010-11-04 01:09:47 +000014745*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014746*** to be unable to reliably create shared libraries on AIX.
14747*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014748*** really care for shared libraries, you may want to install binutils
14749*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14750*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014751
14752_LT_EOF
14753 fi
14754 ;;
14755
14756 amigaos*)
14757 case $host_cpu in
14758 powerpc)
14759 # see comment about AmigaOS4 .so support
14760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14761 archive_expsym_cmds=''
14762 ;;
14763 m68k)
14764 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)'
14765 hardcode_libdir_flag_spec='-L$libdir'
14766 hardcode_minus_L=yes
14767 ;;
14768 esac
14769 ;;
14770
14771 beos*)
14772 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14773 allow_undefined_flag=unsupported
14774 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14775 # support --undefined. This deserves some investigation. FIXME
14776 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14777 else
14778 ld_shlibs=no
14779 fi
14780 ;;
14781
14782 cygwin* | mingw* | pw32* | cegcc*)
14783 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14784 # as there is no search path for DLLs.
14785 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014786 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014787 allow_undefined_flag=unsupported
14788 always_export_symbols=no
14789 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014790 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'
14791 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 +000014792
14793 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14795 # If the export-symbols file already is a .def file (1st line
14796 # is EXPORTS), use it as is; otherwise, prepend...
14797 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14798 cp $export_symbols $output_objdir/$soname.def;
14799 else
14800 echo EXPORTS > $output_objdir/$soname.def;
14801 cat $export_symbols >> $output_objdir/$soname.def;
14802 fi~
14803 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14804 else
14805 ld_shlibs=no
14806 fi
14807 ;;
14808
cristy0c60a692010-11-04 01:09:47 +000014809 haiku*)
14810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14811 link_all_deplibs=yes
14812 ;;
14813
cristy73bd4a52010-10-05 11:24:23 +000014814 interix[3-9]*)
14815 hardcode_direct=no
14816 hardcode_shlibpath_var=no
14817 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14818 export_dynamic_flag_spec='${wl}-E'
14819 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14820 # Instead, shared libraries are loaded at an image base (0x10000000 by
14821 # default) and relocated if they conflict, which is a slow very memory
14822 # consuming and fragmenting process. To avoid this, we pick a random,
14823 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14824 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14826 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'
14827 ;;
14828
cristy0c60a692010-11-04 01:09:47 +000014829 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014830 tmp_diet=no
14831 if test "$host_os" = linux-dietlibc; then
14832 case $cc_basename in
14833 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14834 esac
14835 fi
14836 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14837 && test "$tmp_diet" = no
14838 then
cristyda16f162011-02-19 23:52:17 +000014839 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014840 tmp_sharedflag='-shared'
14841 case $cc_basename,$host_cpu in
14842 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014843 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 +000014844 tmp_addflag=' $pic_flag'
14845 ;;
cristy0c60a692010-11-04 01:09:47 +000014846 pgf77* | pgf90* | pgf95* | pgfortran*)
14847 # Portland Group f77 and f90 compilers
14848 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 +000014849 tmp_addflag=' $pic_flag -Mnomain' ;;
14850 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14851 tmp_addflag=' -i_dynamic' ;;
14852 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14853 tmp_addflag=' -i_dynamic -nofor_main' ;;
14854 ifc* | ifort*) # Intel Fortran compiler
14855 tmp_addflag=' -nofor_main' ;;
14856 lf95*) # Lahey Fortran 8.1
14857 whole_archive_flag_spec=
14858 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014859 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014860 tmp_sharedflag='-qmkshrobj'
14861 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014862 nvcc*) # Cuda Compiler Driver 2.2
14863 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'
14864 compiler_needs_object=yes
14865 ;;
cristy73bd4a52010-10-05 11:24:23 +000014866 esac
14867 case `$CC -V 2>&1 | sed 5q` in
14868 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014869 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 +000014870 compiler_needs_object=yes
14871 tmp_sharedflag='-G' ;;
14872 *Sun\ F*) # Sun Fortran 8.3
14873 tmp_sharedflag='-G' ;;
14874 esac
14875 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14876
14877 if test "x$supports_anon_versioning" = xyes; then
14878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14880 echo "local: *; };" >> $output_objdir/$libname.ver~
14881 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14882 fi
14883
14884 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014885 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014886 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14887 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014889 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014890 if test "x$supports_anon_versioning" = xyes; then
14891 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14893 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014894 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014895 fi
14896 ;;
14897 esac
14898 else
14899 ld_shlibs=no
14900 fi
14901 ;;
14902
14903 netbsd*)
14904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14905 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14906 wlarc=
14907 else
cristyda16f162011-02-19 23:52:17 +000014908 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14909 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 +000014910 fi
14911 ;;
14912
14913 solaris*)
14914 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14915 ld_shlibs=no
14916 cat <<_LT_EOF 1>&2
14917
14918*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14919*** create shared libraries on Solaris systems. Therefore, libtool
14920*** is disabling shared libraries support. We urge you to upgrade GNU
14921*** binutils to release 2.9.1 or newer. Another option is to modify
14922*** your PATH or compiler configuration so that the native linker is
14923*** used, and then restart.
14924
14925_LT_EOF
14926 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014927 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14928 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 +000014929 else
14930 ld_shlibs=no
14931 fi
14932 ;;
14933
14934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14935 case `$LD -v 2>&1` in
14936 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14937 ld_shlibs=no
14938 cat <<_LT_EOF 1>&2
14939
14940*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14941*** reliably create shared libraries on SCO systems. Therefore, libtool
14942*** is disabling shared libraries support. We urge you to upgrade GNU
14943*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14944*** your PATH or compiler configuration so that the native linker is
14945*** used, and then restart.
14946
14947_LT_EOF
14948 ;;
14949 *)
14950 # For security reasons, it is highly recommended that you always
14951 # use absolute paths for naming shared libraries, and exclude the
14952 # DT_RUNPATH tag from executables and libraries. But doing so
14953 # requires that you compile everything twice, which is a pain.
14954 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14958 else
14959 ld_shlibs=no
14960 fi
14961 ;;
14962 esac
14963 ;;
14964
14965 sunos4*)
14966 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14967 wlarc=
14968 hardcode_direct=yes
14969 hardcode_shlibpath_var=no
14970 ;;
14971
14972 *)
14973 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014974 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14975 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 +000014976 else
14977 ld_shlibs=no
14978 fi
14979 ;;
14980 esac
14981
14982 if test "$ld_shlibs" = no; then
14983 runpath_var=
14984 hardcode_libdir_flag_spec=
14985 export_dynamic_flag_spec=
14986 whole_archive_flag_spec=
14987 fi
14988 else
14989 # PORTME fill in a description of your system's linker (not GNU ld)
14990 case $host_os in
14991 aix3*)
14992 allow_undefined_flag=unsupported
14993 always_export_symbols=yes
14994 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'
14995 # Note: this linker hardcodes the directories in LIBPATH if there
14996 # are no directories specified by -L.
14997 hardcode_minus_L=yes
14998 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14999 # Neither direct hardcoding nor static linking is supported with a
15000 # broken collect2.
15001 hardcode_direct=unsupported
15002 fi
15003 ;;
15004
15005 aix[4-9]*)
15006 if test "$host_cpu" = ia64; then
15007 # On IA64, the linker does run time linking by default, so we don't
15008 # have to do anything special.
15009 aix_use_runtimelinking=no
15010 exp_sym_flag='-Bexport'
15011 no_entry_flag=""
15012 else
15013 # If we're using GNU nm, then we don't want the "-C" option.
15014 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015015 # Also, AIX nm treats weak defined symbols like other global
15016 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015017 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015018 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 +000015019 else
15020 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'
15021 fi
15022 aix_use_runtimelinking=no
15023
15024 # Test if we are trying to use run time linking or normal
15025 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15026 # need to do runtime linking.
15027 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15028 for ld_flag in $LDFLAGS; do
15029 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15030 aix_use_runtimelinking=yes
15031 break
15032 fi
15033 done
15034 ;;
15035 esac
15036
15037 exp_sym_flag='-bexport'
15038 no_entry_flag='-bnoentry'
15039 fi
15040
15041 # When large executables or shared objects are built, AIX ld can
15042 # have problems creating the table of contents. If linking a library
15043 # or program results in "error TOC overflow" add -mminimal-toc to
15044 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15045 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15046
15047 archive_cmds=''
15048 hardcode_direct=yes
15049 hardcode_direct_absolute=yes
15050 hardcode_libdir_separator=':'
15051 link_all_deplibs=yes
15052 file_list_spec='${wl}-f,'
15053
15054 if test "$GCC" = yes; then
15055 case $host_os in aix4.[012]|aix4.[012].*)
15056 # We only want to do this on AIX 4.2 and lower, the check
15057 # below for broken collect2 doesn't work under 4.3+
15058 collect2name=`${CC} -print-prog-name=collect2`
15059 if test -f "$collect2name" &&
15060 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15061 then
15062 # We have reworked collect2
15063 :
15064 else
15065 # We have old collect2
15066 hardcode_direct=unsupported
15067 # It fails to find uninstalled libraries when the uninstalled
15068 # path is not listed in the libpath. Setting hardcode_minus_L
15069 # to unsupported forces relinking
15070 hardcode_minus_L=yes
15071 hardcode_libdir_flag_spec='-L$libdir'
15072 hardcode_libdir_separator=
15073 fi
15074 ;;
15075 esac
15076 shared_flag='-shared'
15077 if test "$aix_use_runtimelinking" = yes; then
15078 shared_flag="$shared_flag "'${wl}-G'
15079 fi
15080 else
15081 # not using gcc
15082 if test "$host_cpu" = ia64; then
15083 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15084 # chokes on -Wl,-G. The following line is correct:
15085 shared_flag='-G'
15086 else
15087 if test "$aix_use_runtimelinking" = yes; then
15088 shared_flag='${wl}-G'
15089 else
15090 shared_flag='${wl}-bM:SRE'
15091 fi
15092 fi
15093 fi
15094
15095 export_dynamic_flag_spec='${wl}-bexpall'
15096 # It seems that -bexpall does not export symbols beginning with
15097 # underscore (_), so it is better to generate a list of symbols to export.
15098 always_export_symbols=yes
15099 if test "$aix_use_runtimelinking" = yes; then
15100 # Warning - without using the other runtime loading flags (-brtl),
15101 # -berok will link without error, but may produce a broken library.
15102 allow_undefined_flag='-berok'
15103 # Determine the default libpath from the value encoded in an
15104 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015105 if test "${lt_cv_aix_libpath+set}" = set; then
15106 aix_libpath=$lt_cv_aix_libpath
15107else
15108 if ${lt_cv_aix_libpath_+:} false; then :
15109 $as_echo_n "(cached) " >&6
15110else
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015112/* end confdefs.h. */
15113
15114int
15115main ()
15116{
15117
15118 ;
15119 return 0;
15120}
15121_ACEOF
15122if ac_fn_c_try_link "$LINENO"; then :
15123
cristyda16f162011-02-19 23:52:17 +000015124 lt_aix_libpath_sed='
15125 /Import File Strings/,/^$/ {
15126 /^0/ {
15127 s/^0 *\([^ ]*\) *$/\1/
15128 p
15129 }
15130 }'
15131 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15132 # Check for a 64-bit object if we didn't find anything.
15133 if test -z "$lt_cv_aix_libpath_"; then
15134 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15135 fi
cristy73bd4a52010-10-05 11:24:23 +000015136fi
15137rm -f core conftest.err conftest.$ac_objext \
15138 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015139 if test -z "$lt_cv_aix_libpath_"; then
15140 lt_cv_aix_libpath_="/usr/lib:/lib"
15141 fi
15142
15143fi
15144
15145 aix_libpath=$lt_cv_aix_libpath_
15146fi
cristy73bd4a52010-10-05 11:24:23 +000015147
15148 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015149 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 +000015150 else
15151 if test "$host_cpu" = ia64; then
15152 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15153 allow_undefined_flag="-z nodefs"
15154 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"
15155 else
15156 # Determine the default libpath from the value encoded in an
15157 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015158 if test "${lt_cv_aix_libpath+set}" = set; then
15159 aix_libpath=$lt_cv_aix_libpath
15160else
15161 if ${lt_cv_aix_libpath_+:} false; then :
15162 $as_echo_n "(cached) " >&6
15163else
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015165/* end confdefs.h. */
15166
15167int
15168main ()
15169{
15170
15171 ;
15172 return 0;
15173}
15174_ACEOF
15175if ac_fn_c_try_link "$LINENO"; then :
15176
cristyda16f162011-02-19 23:52:17 +000015177 lt_aix_libpath_sed='
15178 /Import File Strings/,/^$/ {
15179 /^0/ {
15180 s/^0 *\([^ ]*\) *$/\1/
15181 p
15182 }
15183 }'
15184 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15185 # Check for a 64-bit object if we didn't find anything.
15186 if test -z "$lt_cv_aix_libpath_"; then
15187 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15188 fi
cristy73bd4a52010-10-05 11:24:23 +000015189fi
15190rm -f core conftest.err conftest.$ac_objext \
15191 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015192 if test -z "$lt_cv_aix_libpath_"; then
15193 lt_cv_aix_libpath_="/usr/lib:/lib"
15194 fi
15195
15196fi
15197
15198 aix_libpath=$lt_cv_aix_libpath_
15199fi
cristy73bd4a52010-10-05 11:24:23 +000015200
15201 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15202 # Warning - without using the other run time loading flags,
15203 # -berok will link without error, but may produce a broken library.
15204 no_undefined_flag=' ${wl}-bernotok'
15205 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015206 if test "$with_gnu_ld" = yes; then
15207 # We only use this code for GNU lds that support --whole-archive.
15208 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15209 else
15210 # Exported symbols can be pulled into shared objects from archives
15211 whole_archive_flag_spec='$convenience'
15212 fi
cristy73bd4a52010-10-05 11:24:23 +000015213 archive_cmds_need_lc=yes
15214 # This is similar to how AIX traditionally builds its shared libraries.
15215 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'
15216 fi
15217 fi
15218 ;;
15219
15220 amigaos*)
15221 case $host_cpu in
15222 powerpc)
15223 # see comment about AmigaOS4 .so support
15224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15225 archive_expsym_cmds=''
15226 ;;
15227 m68k)
15228 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)'
15229 hardcode_libdir_flag_spec='-L$libdir'
15230 hardcode_minus_L=yes
15231 ;;
15232 esac
15233 ;;
15234
15235 bsdi[45]*)
15236 export_dynamic_flag_spec=-rdynamic
15237 ;;
15238
15239 cygwin* | mingw* | pw32* | cegcc*)
15240 # When not using gcc, we currently assume that we are using
15241 # Microsoft Visual C++.
15242 # hardcode_libdir_flag_spec is actually meaningless, as there is
15243 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015244 case $cc_basename in
15245 cl*)
15246 # Native MSVC
15247 hardcode_libdir_flag_spec=' '
15248 allow_undefined_flag=unsupported
15249 always_export_symbols=yes
15250 file_list_spec='@'
15251 # Tell ltmain to make .lib files, not .a files.
15252 libext=lib
15253 # Tell ltmain to make .dll files, not .so files.
15254 shrext_cmds=".dll"
15255 # FIXME: Setting linknames here is a bad hack.
15256 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15257 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15258 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15259 else
15260 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15261 fi~
15262 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15263 linknames='
15264 # The linker will not automatically build a static lib if we build a DLL.
15265 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15266 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015267 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015268 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15269 # Don't use ranlib
15270 old_postinstall_cmds='chmod 644 $oldlib'
15271 postlink_cmds='lt_outputfile="@OUTPUT@"~
15272 lt_tool_outputfile="@TOOL_OUTPUT@"~
15273 case $lt_outputfile in
15274 *.exe|*.EXE) ;;
15275 *)
15276 lt_outputfile="$lt_outputfile.exe"
15277 lt_tool_outputfile="$lt_tool_outputfile.exe"
15278 ;;
15279 esac~
15280 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15281 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15282 $RM "$lt_outputfile.manifest";
15283 fi'
15284 ;;
15285 *)
15286 # Assume MSVC wrapper
15287 hardcode_libdir_flag_spec=' '
15288 allow_undefined_flag=unsupported
15289 # Tell ltmain to make .lib files, not .a files.
15290 libext=lib
15291 # Tell ltmain to make .dll files, not .so files.
15292 shrext_cmds=".dll"
15293 # FIXME: Setting linknames here is a bad hack.
15294 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15295 # The linker will automatically build a .lib file if we build a DLL.
15296 old_archive_from_new_cmds='true'
15297 # FIXME: Should let the user specify the lib program.
15298 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15299 enable_shared_with_static_runtimes=yes
15300 ;;
15301 esac
cristy73bd4a52010-10-05 11:24:23 +000015302 ;;
15303
15304 darwin* | rhapsody*)
15305
15306
15307 archive_cmds_need_lc=no
15308 hardcode_direct=no
15309 hardcode_automatic=yes
15310 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015311 if test "$lt_cv_ld_force_load" = "yes"; then
15312 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 +000015313
cristy0c60a692010-11-04 01:09:47 +000015314 else
15315 whole_archive_flag_spec=''
15316 fi
cristy73bd4a52010-10-05 11:24:23 +000015317 link_all_deplibs=yes
15318 allow_undefined_flag="$_lt_dar_allow_undefined"
15319 case $cc_basename in
15320 ifort*) _lt_dar_can_shared=yes ;;
15321 *) _lt_dar_can_shared=$GCC ;;
15322 esac
15323 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015324 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015325 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15326 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15327 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}"
15328 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}"
15329
15330 else
15331 ld_shlibs=no
15332 fi
15333
15334 ;;
15335
15336 dgux*)
15337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15338 hardcode_libdir_flag_spec='-L$libdir'
15339 hardcode_shlibpath_var=no
15340 ;;
15341
cristy73bd4a52010-10-05 11:24:23 +000015342 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15343 # support. Future versions do this automatically, but an explicit c++rt0.o
15344 # does not break anything, and helps significantly (at the cost of a little
15345 # extra space).
15346 freebsd2.2*)
15347 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15348 hardcode_libdir_flag_spec='-R$libdir'
15349 hardcode_direct=yes
15350 hardcode_shlibpath_var=no
15351 ;;
15352
15353 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015354 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015355 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15356 hardcode_direct=yes
15357 hardcode_minus_L=yes
15358 hardcode_shlibpath_var=no
15359 ;;
15360
15361 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15362 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015364 hardcode_libdir_flag_spec='-R$libdir'
15365 hardcode_direct=yes
15366 hardcode_shlibpath_var=no
15367 ;;
15368
15369 hpux9*)
15370 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015371 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 +000015372 else
15373 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'
15374 fi
15375 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15376 hardcode_libdir_separator=:
15377 hardcode_direct=yes
15378
15379 # hardcode_minus_L: Not really in the search PATH,
15380 # but as the default location of the library.
15381 hardcode_minus_L=yes
15382 export_dynamic_flag_spec='${wl}-E'
15383 ;;
15384
15385 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015386 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015387 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 +000015388 else
15389 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15390 fi
15391 if test "$with_gnu_ld" = no; then
15392 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015393 hardcode_libdir_separator=:
15394 hardcode_direct=yes
15395 hardcode_direct_absolute=yes
15396 export_dynamic_flag_spec='${wl}-E'
15397 # hardcode_minus_L: Not really in the search PATH,
15398 # but as the default location of the library.
15399 hardcode_minus_L=yes
15400 fi
15401 ;;
15402
15403 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015404 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015405 case $host_cpu in
15406 hppa*64*)
15407 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15408 ;;
15409 ia64*)
cristyda16f162011-02-19 23:52:17 +000015410 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015411 ;;
15412 *)
cristyda16f162011-02-19 23:52:17 +000015413 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 +000015414 ;;
15415 esac
15416 else
15417 case $host_cpu in
15418 hppa*64*)
15419 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15420 ;;
15421 ia64*)
15422 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15423 ;;
15424 *)
cristy0c60a692010-11-04 01:09:47 +000015425
15426 # Older versions of the 11.00 compiler do not understand -b yet
15427 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15429$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015430if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015431 $as_echo_n "(cached) " >&6
15432else
15433 lt_cv_prog_compiler__b=no
15434 save_LDFLAGS="$LDFLAGS"
15435 LDFLAGS="$LDFLAGS -b"
15436 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15438 # The linker can only warn and ignore the option if not recognized
15439 # So say no if there are warnings
15440 if test -s conftest.err; then
15441 # Append any errors to the config.log.
15442 cat conftest.err 1>&5
15443 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15445 if diff conftest.exp conftest.er2 >/dev/null; then
15446 lt_cv_prog_compiler__b=yes
15447 fi
15448 else
15449 lt_cv_prog_compiler__b=yes
15450 fi
15451 fi
15452 $RM -r conftest*
15453 LDFLAGS="$save_LDFLAGS"
15454
15455fi
15456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15457$as_echo "$lt_cv_prog_compiler__b" >&6; }
15458
15459if test x"$lt_cv_prog_compiler__b" = xyes; then
15460 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15461else
15462 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15463fi
15464
cristy73bd4a52010-10-05 11:24:23 +000015465 ;;
15466 esac
15467 fi
15468 if test "$with_gnu_ld" = no; then
15469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15470 hardcode_libdir_separator=:
15471
15472 case $host_cpu in
15473 hppa*64*|ia64*)
15474 hardcode_direct=no
15475 hardcode_shlibpath_var=no
15476 ;;
15477 *)
15478 hardcode_direct=yes
15479 hardcode_direct_absolute=yes
15480 export_dynamic_flag_spec='${wl}-E'
15481
15482 # hardcode_minus_L: Not really in the search PATH,
15483 # but as the default location of the library.
15484 hardcode_minus_L=yes
15485 ;;
15486 esac
15487 fi
15488 ;;
15489
15490 irix5* | irix6* | nonstopux*)
15491 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015492 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 +000015493 # Try to use the -exported_symbol ld option, if it does not
15494 # work, assume that -exports_file does not work either and
15495 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015496 # This should be the same for all languages, so no per-tag cache variable.
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15498$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15499if ${lt_cv_irix_exported_symbol+:} false; then :
15500 $as_echo_n "(cached) " >&6
15501else
15502 save_LDFLAGS="$LDFLAGS"
15503 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015505/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015506int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015507_ACEOF
15508if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015509 lt_cv_irix_exported_symbol=yes
15510else
15511 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015512fi
15513rm -f core conftest.err conftest.$ac_objext \
15514 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015515 LDFLAGS="$save_LDFLAGS"
15516fi
15517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15518$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15519 if test "$lt_cv_irix_exported_symbol" = yes; then
15520 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'
15521 fi
cristy73bd4a52010-10-05 11:24:23 +000015522 else
cristy0c60a692010-11-04 01:09:47 +000015523 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'
15524 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 +000015525 fi
15526 archive_cmds_need_lc='no'
15527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15528 hardcode_libdir_separator=:
15529 inherit_rpath=yes
15530 link_all_deplibs=yes
15531 ;;
15532
15533 netbsd*)
15534 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15536 else
15537 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15538 fi
15539 hardcode_libdir_flag_spec='-R$libdir'
15540 hardcode_direct=yes
15541 hardcode_shlibpath_var=no
15542 ;;
15543
15544 newsos6)
15545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_direct=yes
15547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15548 hardcode_libdir_separator=:
15549 hardcode_shlibpath_var=no
15550 ;;
15551
15552 *nto* | *qnx*)
15553 ;;
15554
15555 openbsd*)
15556 if test -f /usr/libexec/ld.so; then
15557 hardcode_direct=yes
15558 hardcode_shlibpath_var=no
15559 hardcode_direct_absolute=yes
15560 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15561 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15562 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15563 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15564 export_dynamic_flag_spec='${wl}-E'
15565 else
15566 case $host_os in
15567 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15568 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15569 hardcode_libdir_flag_spec='-R$libdir'
15570 ;;
15571 *)
15572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15573 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15574 ;;
15575 esac
15576 fi
15577 else
15578 ld_shlibs=no
15579 fi
15580 ;;
15581
15582 os2*)
15583 hardcode_libdir_flag_spec='-L$libdir'
15584 hardcode_minus_L=yes
15585 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015586 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 +000015587 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15588 ;;
15589
15590 osf3*)
15591 if test "$GCC" = yes; then
15592 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015593 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 +000015594 else
15595 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015596 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 +000015597 fi
15598 archive_cmds_need_lc='no'
15599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15600 hardcode_libdir_separator=:
15601 ;;
15602
15603 osf4* | osf5*) # as osf3* with the addition of -msym flag
15604 if test "$GCC" = yes; then
15605 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015606 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 +000015607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15608 else
15609 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015610 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 +000015611 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 +000015612 $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 +000015613
15614 # Both c and cxx compiler support -rpath directly
15615 hardcode_libdir_flag_spec='-rpath $libdir'
15616 fi
15617 archive_cmds_need_lc='no'
15618 hardcode_libdir_separator=:
15619 ;;
15620
15621 solaris*)
15622 no_undefined_flag=' -z defs'
15623 if test "$GCC" = yes; then
15624 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015625 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 +000015626 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 +000015627 $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 +000015628 else
15629 case `$CC -V 2>&1` in
15630 *"Compilers 5.0"*)
15631 wlarc=''
15632 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15633 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15634 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15635 ;;
15636 *)
15637 wlarc='${wl}'
15638 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15639 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15640 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15641 ;;
15642 esac
15643 fi
15644 hardcode_libdir_flag_spec='-R$libdir'
15645 hardcode_shlibpath_var=no
15646 case $host_os in
15647 solaris2.[0-5] | solaris2.[0-5].*) ;;
15648 *)
15649 # The compiler driver will combine and reorder linker options,
15650 # but understands `-z linker_flag'. GCC discards it without `$wl',
15651 # but is careful enough not to reorder.
15652 # Supported since Solaris 2.6 (maybe 2.5.1?)
15653 if test "$GCC" = yes; then
15654 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15655 else
15656 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15657 fi
15658 ;;
15659 esac
15660 link_all_deplibs=yes
15661 ;;
15662
15663 sunos4*)
15664 if test "x$host_vendor" = xsequent; then
15665 # Use $CC to link under sequent, because it throws in some extra .o
15666 # files that make .init and .fini sections work.
15667 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15668 else
15669 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15670 fi
15671 hardcode_libdir_flag_spec='-L$libdir'
15672 hardcode_direct=yes
15673 hardcode_minus_L=yes
15674 hardcode_shlibpath_var=no
15675 ;;
15676
15677 sysv4)
15678 case $host_vendor in
15679 sni)
15680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15681 hardcode_direct=yes # is this really true???
15682 ;;
15683 siemens)
15684 ## LD is ld it makes a PLAMLIB
15685 ## CC just makes a GrossModule.
15686 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15687 reload_cmds='$CC -r -o $output$reload_objs'
15688 hardcode_direct=no
15689 ;;
15690 motorola)
15691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15692 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15693 ;;
15694 esac
15695 runpath_var='LD_RUN_PATH'
15696 hardcode_shlibpath_var=no
15697 ;;
15698
15699 sysv4.3*)
15700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15701 hardcode_shlibpath_var=no
15702 export_dynamic_flag_spec='-Bexport'
15703 ;;
15704
15705 sysv4*MP*)
15706 if test -d /usr/nec; then
15707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15708 hardcode_shlibpath_var=no
15709 runpath_var=LD_RUN_PATH
15710 hardcode_runpath_var=yes
15711 ld_shlibs=yes
15712 fi
15713 ;;
15714
15715 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15716 no_undefined_flag='${wl}-z,text'
15717 archive_cmds_need_lc=no
15718 hardcode_shlibpath_var=no
15719 runpath_var='LD_RUN_PATH'
15720
15721 if test "$GCC" = yes; then
15722 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724 else
15725 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15726 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15727 fi
15728 ;;
15729
15730 sysv5* | sco3.2v5* | sco5v6*)
15731 # Note: We can NOT use -z defs as we might desire, because we do not
15732 # link with -lc, and that would cause any symbols used from libc to
15733 # always be unresolved, which means just about no library would
15734 # ever link correctly. If we're not using GNU ld we use -z text
15735 # though, which does catch some bad symbols but isn't as heavy-handed
15736 # as -z defs.
15737 no_undefined_flag='${wl}-z,text'
15738 allow_undefined_flag='${wl}-z,nodefs'
15739 archive_cmds_need_lc=no
15740 hardcode_shlibpath_var=no
15741 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15742 hardcode_libdir_separator=':'
15743 link_all_deplibs=yes
15744 export_dynamic_flag_spec='${wl}-Bexport'
15745 runpath_var='LD_RUN_PATH'
15746
15747 if test "$GCC" = yes; then
15748 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15749 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15750 else
15751 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15752 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15753 fi
15754 ;;
15755
15756 uts4*)
15757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758 hardcode_libdir_flag_spec='-L$libdir'
15759 hardcode_shlibpath_var=no
15760 ;;
15761
15762 *)
15763 ld_shlibs=no
15764 ;;
15765 esac
15766
15767 if test x$host_vendor = xsni; then
15768 case $host in
15769 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15770 export_dynamic_flag_spec='${wl}-Blargedynsym'
15771 ;;
15772 esac
15773 fi
15774 fi
15775
15776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15777$as_echo "$ld_shlibs" >&6; }
15778test "$ld_shlibs" = no && can_build_shared=no
15779
15780with_gnu_ld=$with_gnu_ld
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796#
15797# Do we need to explicitly link libc?
15798#
15799case "x$archive_cmds_need_lc" in
15800x|xyes)
15801 # Assume -lc should be added
15802 archive_cmds_need_lc=yes
15803
15804 if test "$enable_shared" = yes && test "$GCC" = yes; then
15805 case $archive_cmds in
15806 *'~'*)
15807 # FIXME: we may have to deal with multi-command sequences.
15808 ;;
15809 '$CC '*)
15810 # Test whether the compiler implicitly links with -lc since on some
15811 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15812 # to ld, don't add -lc before -lgcc.
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15814$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015815if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015816 $as_echo_n "(cached) " >&6
15817else
15818 $RM conftest*
15819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015820
cristy0c60a692010-11-04 01:09:47 +000015821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015822 (eval $ac_compile) 2>&5
15823 ac_status=$?
15824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15825 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015826 soname=conftest
15827 lib=conftest
15828 libobjs=conftest.$ac_objext
15829 deplibs=
15830 wl=$lt_prog_compiler_wl
15831 pic_flag=$lt_prog_compiler_pic
15832 compiler_flags=-v
15833 linker_flags=-v
15834 verstring=
15835 output_objdir=.
15836 libname=conftest
15837 lt_save_allow_undefined_flag=$allow_undefined_flag
15838 allow_undefined_flag=
15839 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 +000015840 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15841 ac_status=$?
15842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15843 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015844 then
15845 lt_cv_archive_cmds_need_lc=no
15846 else
15847 lt_cv_archive_cmds_need_lc=yes
15848 fi
15849 allow_undefined_flag=$lt_save_allow_undefined_flag
15850 else
15851 cat conftest.err 1>&5
15852 fi
15853 $RM conftest*
15854
15855fi
15856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15857$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15858 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015859 ;;
15860 esac
15861 fi
15862 ;;
15863esac
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
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
cristy73bd4a52010-10-05 11:24:23 +000016016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16017$as_echo_n "checking dynamic linker characteristics... " >&6; }
16018
16019if test "$GCC" = yes; then
16020 case $host_os in
16021 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16022 *) lt_awk_arg="/^libraries:/" ;;
16023 esac
cristy0c60a692010-11-04 01:09:47 +000016024 case $host_os in
16025 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16026 *) lt_sed_strip_eq="s,=/,/,g" ;;
16027 esac
16028 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16029 case $lt_search_path_spec in
16030 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016031 # if the path contains ";" then we assume it to be the separator
16032 # otherwise default to the standard path separator (i.e. ":") - it is
16033 # assumed that no part of a normal pathname contains ";" but that should
16034 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016035 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16036 ;;
16037 *)
16038 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16039 ;;
16040 esac
cristy73bd4a52010-10-05 11:24:23 +000016041 # Ok, now we have the path, separated by spaces, we can step through it
16042 # and add multilib dir if necessary.
16043 lt_tmp_lt_search_path_spec=
16044 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16045 for lt_sys_path in $lt_search_path_spec; do
16046 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16047 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16048 else
16049 test -d "$lt_sys_path" && \
16050 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16051 fi
16052 done
cristy0c60a692010-11-04 01:09:47 +000016053 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016054BEGIN {RS=" "; FS="/|\n";} {
16055 lt_foo="";
16056 lt_count=0;
16057 for (lt_i = NF; lt_i > 0; lt_i--) {
16058 if ($lt_i != "" && $lt_i != ".") {
16059 if ($lt_i == "..") {
16060 lt_count++;
16061 } else {
16062 if (lt_count == 0) {
16063 lt_foo="/" $lt_i lt_foo;
16064 } else {
16065 lt_count--;
16066 }
16067 }
16068 }
16069 }
16070 if (lt_foo != "") { lt_freq[lt_foo]++; }
16071 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16072}'`
cristy0c60a692010-11-04 01:09:47 +000016073 # AWK program above erroneously prepends '/' to C:/dos/paths
16074 # for these hosts.
16075 case $host_os in
16076 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16077 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16078 esac
16079 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016080else
16081 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16082fi
16083library_names_spec=
16084libname_spec='lib$name'
16085soname_spec=
16086shrext_cmds=".so"
16087postinstall_cmds=
16088postuninstall_cmds=
16089finish_cmds=
16090finish_eval=
16091shlibpath_var=
16092shlibpath_overrides_runpath=unknown
16093version_type=none
16094dynamic_linker="$host_os ld.so"
16095sys_lib_dlsearch_path_spec="/lib /usr/lib"
16096need_lib_prefix=unknown
16097hardcode_into_libs=no
16098
16099# when you set need_version to no, make sure it does not cause -set_version
16100# flags to be left without arguments
16101need_version=unknown
16102
16103case $host_os in
16104aix3*)
cristy99bd5232011-12-07 14:38:20 +000016105 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016106 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16107 shlibpath_var=LIBPATH
16108
16109 # AIX 3 has no versioning support, so we append a major version to the name.
16110 soname_spec='${libname}${release}${shared_ext}$major'
16111 ;;
16112
16113aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016114 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016115 need_lib_prefix=no
16116 need_version=no
16117 hardcode_into_libs=yes
16118 if test "$host_cpu" = ia64; then
16119 # AIX 5 supports IA64
16120 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16121 shlibpath_var=LD_LIBRARY_PATH
16122 else
16123 # With GCC up to 2.95.x, collect2 would create an import file
16124 # for dependence libraries. The import file would start with
16125 # the line `#! .'. This would cause the generated library to
16126 # depend on `.', always an invalid library. This was fixed in
16127 # development snapshots of GCC prior to 3.0.
16128 case $host_os in
16129 aix4 | aix4.[01] | aix4.[01].*)
16130 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16131 echo ' yes '
16132 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16133 :
16134 else
16135 can_build_shared=no
16136 fi
16137 ;;
16138 esac
16139 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16140 # soname into executable. Probably we can add versioning support to
16141 # collect2, so additional links can be useful in future.
16142 if test "$aix_use_runtimelinking" = yes; then
16143 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16144 # instead of lib<name>.a to let people know that these are not
16145 # typical AIX shared libraries.
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147 else
16148 # We preserve .a as extension for shared libraries through AIX4.2
16149 # and later when we are not doing run time linking.
16150 library_names_spec='${libname}${release}.a $libname.a'
16151 soname_spec='${libname}${release}${shared_ext}$major'
16152 fi
16153 shlibpath_var=LIBPATH
16154 fi
16155 ;;
16156
16157amigaos*)
16158 case $host_cpu in
16159 powerpc)
16160 # Since July 2007 AmigaOS4 officially supports .so libraries.
16161 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16163 ;;
16164 m68k)
16165 library_names_spec='$libname.ixlibrary $libname.a'
16166 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016167 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 +000016168 ;;
16169 esac
16170 ;;
16171
16172beos*)
16173 library_names_spec='${libname}${shared_ext}'
16174 dynamic_linker="$host_os ld.so"
16175 shlibpath_var=LIBRARY_PATH
16176 ;;
16177
16178bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016179 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016180 need_version=no
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16182 soname_spec='${libname}${release}${shared_ext}$major'
16183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16184 shlibpath_var=LD_LIBRARY_PATH
16185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16187 # the default ld.so.conf also contains /usr/contrib/lib and
16188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16189 # libtool to hard-code these into programs
16190 ;;
16191
16192cygwin* | mingw* | pw32* | cegcc*)
16193 version_type=windows
16194 shrext_cmds=".dll"
16195 need_version=no
16196 need_lib_prefix=no
16197
cristyda16f162011-02-19 23:52:17 +000016198 case $GCC,$cc_basename in
16199 yes,*)
16200 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016201 library_names_spec='$libname.dll.a'
16202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16203 postinstall_cmds='base_file=`basename \${file}`~
16204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16205 dldir=$destdir/`dirname \$dlpath`~
16206 test -d \$dldir || mkdir -p \$dldir~
16207 $install_prog $dir/$dlname \$dldir/$dlname~
16208 chmod a+x \$dldir/$dlname~
16209 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16210 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16211 fi'
16212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16213 dlpath=$dir/\$dldll~
16214 $RM \$dlpath'
16215 shlibpath_overrides_runpath=yes
16216
16217 case $host_os in
16218 cygwin*)
16219 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16220 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016221
16222 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016223 ;;
16224 mingw* | cegcc*)
16225 # MinGW DLLs use traditional 'lib' prefix
16226 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016227 ;;
16228 pw32*)
16229 # pw32 DLLs use 'pw' prefix rather than 'lib'
16230 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16231 ;;
16232 esac
cristyda16f162011-02-19 23:52:17 +000016233 dynamic_linker='Win32 ld.exe'
16234 ;;
16235
16236 *,cl*)
16237 # Native MSVC
16238 libname_spec='$name'
16239 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16240 library_names_spec='${libname}.dll.lib'
16241
16242 case $build_os in
16243 mingw*)
16244 sys_lib_search_path_spec=
16245 lt_save_ifs=$IFS
16246 IFS=';'
16247 for lt_path in $LIB
16248 do
16249 IFS=$lt_save_ifs
16250 # Let DOS variable expansion print the short 8.3 style file name.
16251 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16252 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16253 done
16254 IFS=$lt_save_ifs
16255 # Convert to MSYS style.
16256 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16257 ;;
16258 cygwin*)
16259 # Convert to unix form, then to dos form, then back to unix form
16260 # but this time dos style (no spaces!) so that the unix form looks
16261 # like /cygdrive/c/PROGRA~1:/cygdr...
16262 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16263 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16264 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16265 ;;
16266 *)
16267 sys_lib_search_path_spec="$LIB"
16268 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16269 # It is most probably a Windows format PATH.
16270 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16271 else
16272 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16273 fi
16274 # FIXME: find the short name or the path components, as spaces are
16275 # common. (e.g. "Program Files" -> "PROGRA~1")
16276 ;;
16277 esac
16278
16279 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16280 postinstall_cmds='base_file=`basename \${file}`~
16281 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16282 dldir=$destdir/`dirname \$dlpath`~
16283 test -d \$dldir || mkdir -p \$dldir~
16284 $install_prog $dir/$dlname \$dldir/$dlname'
16285 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16286 dlpath=$dir/\$dldll~
16287 $RM \$dlpath'
16288 shlibpath_overrides_runpath=yes
16289 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016290 ;;
16291
16292 *)
cristyda16f162011-02-19 23:52:17 +000016293 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016294 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016295 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016296 ;;
16297 esac
cristy73bd4a52010-10-05 11:24:23 +000016298 # FIXME: first we should search . and the directory the executable is in
16299 shlibpath_var=PATH
16300 ;;
16301
16302darwin* | rhapsody*)
16303 dynamic_linker="$host_os dyld"
16304 version_type=darwin
16305 need_lib_prefix=no
16306 need_version=no
16307 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16308 soname_spec='${libname}${release}${major}$shared_ext'
16309 shlibpath_overrides_runpath=yes
16310 shlibpath_var=DYLD_LIBRARY_PATH
16311 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16312
16313 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16314 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16315 ;;
16316
16317dgux*)
cristy99bd5232011-12-07 14:38:20 +000016318 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016319 need_lib_prefix=no
16320 need_version=no
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 shlibpath_var=LD_LIBRARY_PATH
16324 ;;
16325
cristy73bd4a52010-10-05 11:24:23 +000016326freebsd* | dragonfly*)
16327 # DragonFly does not have aout. When/if they implement a new
16328 # versioning mechanism, adjust this.
16329 if test -x /usr/bin/objformat; then
16330 objformat=`/usr/bin/objformat`
16331 else
16332 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016333 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016334 *) objformat=elf ;;
16335 esac
16336 fi
16337 version_type=freebsd-$objformat
16338 case $version_type in
16339 freebsd-elf*)
16340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16341 need_version=no
16342 need_lib_prefix=no
16343 ;;
16344 freebsd-*)
16345 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16346 need_version=yes
16347 ;;
16348 esac
16349 shlibpath_var=LD_LIBRARY_PATH
16350 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016351 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016352 shlibpath_overrides_runpath=yes
16353 ;;
16354 freebsd3.[01]* | freebsdelf3.[01]*)
16355 shlibpath_overrides_runpath=yes
16356 hardcode_into_libs=yes
16357 ;;
16358 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16359 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16360 shlibpath_overrides_runpath=no
16361 hardcode_into_libs=yes
16362 ;;
16363 *) # from 4.6 on, and DragonFly
16364 shlibpath_overrides_runpath=yes
16365 hardcode_into_libs=yes
16366 ;;
16367 esac
16368 ;;
16369
16370gnu*)
cristy99bd5232011-12-07 14:38:20 +000016371 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016372 need_lib_prefix=no
16373 need_version=no
16374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16375 soname_spec='${libname}${release}${shared_ext}$major'
16376 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016377 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016378 hardcode_into_libs=yes
16379 ;;
16380
cristy0c60a692010-11-04 01:09:47 +000016381haiku*)
cristy99bd5232011-12-07 14:38:20 +000016382 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016383 need_lib_prefix=no
16384 need_version=no
16385 dynamic_linker="$host_os runtime_loader"
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16387 soname_spec='${libname}${release}${shared_ext}$major'
16388 shlibpath_var=LIBRARY_PATH
16389 shlibpath_overrides_runpath=yes
16390 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16391 hardcode_into_libs=yes
16392 ;;
16393
cristy73bd4a52010-10-05 11:24:23 +000016394hpux9* | hpux10* | hpux11*)
16395 # Give a soname corresponding to the major version so that dld.sl refuses to
16396 # link against other versions.
16397 version_type=sunos
16398 need_lib_prefix=no
16399 need_version=no
16400 case $host_cpu in
16401 ia64*)
16402 shrext_cmds='.so'
16403 hardcode_into_libs=yes
16404 dynamic_linker="$host_os dld.so"
16405 shlibpath_var=LD_LIBRARY_PATH
16406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408 soname_spec='${libname}${release}${shared_ext}$major'
16409 if test "X$HPUX_IA64_MODE" = X32; then
16410 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16411 else
16412 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16413 fi
16414 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16415 ;;
16416 hppa*64*)
16417 shrext_cmds='.sl'
16418 hardcode_into_libs=yes
16419 dynamic_linker="$host_os dld.sl"
16420 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423 soname_spec='${libname}${release}${shared_ext}$major'
16424 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16426 ;;
16427 *)
16428 shrext_cmds='.sl'
16429 dynamic_linker="$host_os dld.sl"
16430 shlibpath_var=SHLIB_PATH
16431 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16433 soname_spec='${libname}${release}${shared_ext}$major'
16434 ;;
16435 esac
cristy0c60a692010-11-04 01:09:47 +000016436 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016437 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016438 # or fails outright, so override atomically:
16439 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016440 ;;
16441
16442interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016443 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016444 need_lib_prefix=no
16445 need_version=no
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16447 soname_spec='${libname}${release}${shared_ext}$major'
16448 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 shlibpath_overrides_runpath=no
16451 hardcode_into_libs=yes
16452 ;;
16453
16454irix5* | irix6* | nonstopux*)
16455 case $host_os in
16456 nonstopux*) version_type=nonstopux ;;
16457 *)
16458 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016459 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016460 else
16461 version_type=irix
16462 fi ;;
16463 esac
16464 need_lib_prefix=no
16465 need_version=no
16466 soname_spec='${libname}${release}${shared_ext}$major'
16467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16468 case $host_os in
16469 irix5* | nonstopux*)
16470 libsuff= shlibsuff=
16471 ;;
16472 *)
16473 case $LD in # libtool.m4 will add one of these switches to LD
16474 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16475 libsuff= shlibsuff= libmagic=32-bit;;
16476 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16477 libsuff=32 shlibsuff=N32 libmagic=N32;;
16478 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16479 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16480 *) libsuff= shlibsuff= libmagic=never-match;;
16481 esac
16482 ;;
16483 esac
16484 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16485 shlibpath_overrides_runpath=no
16486 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16487 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16488 hardcode_into_libs=yes
16489 ;;
16490
16491# No shared lib support for Linux oldld, aout, or coff.
16492linux*oldld* | linux*aout* | linux*coff*)
16493 dynamic_linker=no
16494 ;;
16495
cristy99bd5232011-12-07 14:38:20 +000016496# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016497linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016498 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016499 need_lib_prefix=no
16500 need_version=no
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502 soname_spec='${libname}${release}${shared_ext}$major'
16503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16504 shlibpath_var=LD_LIBRARY_PATH
16505 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016506
cristy73bd4a52010-10-05 11:24:23 +000016507 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016508 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016509 $as_echo_n "(cached) " >&6
16510else
16511 lt_cv_shlibpath_overrides_runpath=no
16512 save_LDFLAGS=$LDFLAGS
16513 save_libdir=$libdir
16514 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16515 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016517/* end confdefs.h. */
16518
16519int
16520main ()
16521{
16522
16523 ;
16524 return 0;
16525}
16526_ACEOF
16527if ac_fn_c_try_link "$LINENO"; then :
16528 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016529 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016530fi
16531fi
16532rm -f core conftest.err conftest.$ac_objext \
16533 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016534 LDFLAGS=$save_LDFLAGS
16535 libdir=$save_libdir
16536
16537fi
16538
16539 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016540
16541 # This implies no fast_install, which is unacceptable.
16542 # Some rework will be needed to allow for fast_install
16543 # before this can be enabled.
16544 hardcode_into_libs=yes
16545
16546 # Add ABI-specific directories to the system library path.
16547 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16548
16549 # Append ld.so.conf contents to the search path
16550 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016551 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 +000016552 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016553
cristy73bd4a52010-10-05 11:24:23 +000016554 fi
16555
16556 # We used to test for /lib/ld.so.1 and disable shared libraries on
16557 # powerpc, because MkLinux only supported shared libraries with the
16558 # GNU dynamic linker. Since this was broken with cross compilers,
16559 # most powerpc-linux boxes support dynamic linking these days and
16560 # people can always --disable-shared, the test was removed, and we
16561 # assume the GNU/Linux dynamic linker is in use.
16562 dynamic_linker='GNU/Linux ld.so'
16563 ;;
16564
16565netbsd*)
16566 version_type=sunos
16567 need_lib_prefix=no
16568 need_version=no
16569 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16572 dynamic_linker='NetBSD (a.out) ld.so'
16573 else
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16575 soname_spec='${libname}${release}${shared_ext}$major'
16576 dynamic_linker='NetBSD ld.elf_so'
16577 fi
16578 shlibpath_var=LD_LIBRARY_PATH
16579 shlibpath_overrides_runpath=yes
16580 hardcode_into_libs=yes
16581 ;;
16582
16583newsos6)
cristy99bd5232011-12-07 14:38:20 +000016584 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16586 shlibpath_var=LD_LIBRARY_PATH
16587 shlibpath_overrides_runpath=yes
16588 ;;
16589
16590*nto* | *qnx*)
16591 version_type=qnx
16592 need_lib_prefix=no
16593 need_version=no
16594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16595 soname_spec='${libname}${release}${shared_ext}$major'
16596 shlibpath_var=LD_LIBRARY_PATH
16597 shlibpath_overrides_runpath=no
16598 hardcode_into_libs=yes
16599 dynamic_linker='ldqnx.so'
16600 ;;
16601
16602openbsd*)
16603 version_type=sunos
16604 sys_lib_dlsearch_path_spec="/usr/lib"
16605 need_lib_prefix=no
16606 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16607 case $host_os in
16608 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16609 *) need_version=no ;;
16610 esac
16611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16613 shlibpath_var=LD_LIBRARY_PATH
16614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16615 case $host_os in
16616 openbsd2.[89] | openbsd2.[89].*)
16617 shlibpath_overrides_runpath=no
16618 ;;
16619 *)
16620 shlibpath_overrides_runpath=yes
16621 ;;
16622 esac
16623 else
16624 shlibpath_overrides_runpath=yes
16625 fi
16626 ;;
16627
16628os2*)
16629 libname_spec='$name'
16630 shrext_cmds=".dll"
16631 need_lib_prefix=no
16632 library_names_spec='$libname${shared_ext} $libname.a'
16633 dynamic_linker='OS/2 ld.exe'
16634 shlibpath_var=LIBPATH
16635 ;;
16636
16637osf3* | osf4* | osf5*)
16638 version_type=osf
16639 need_lib_prefix=no
16640 need_version=no
16641 soname_spec='${libname}${release}${shared_ext}$major'
16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16643 shlibpath_var=LD_LIBRARY_PATH
16644 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16645 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16646 ;;
16647
16648rdos*)
16649 dynamic_linker=no
16650 ;;
16651
16652solaris*)
cristy99bd5232011-12-07 14:38:20 +000016653 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016654 need_lib_prefix=no
16655 need_version=no
16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16657 soname_spec='${libname}${release}${shared_ext}$major'
16658 shlibpath_var=LD_LIBRARY_PATH
16659 shlibpath_overrides_runpath=yes
16660 hardcode_into_libs=yes
16661 # ldd complains unless libraries are executable
16662 postinstall_cmds='chmod +x $lib'
16663 ;;
16664
16665sunos4*)
16666 version_type=sunos
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16668 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16669 shlibpath_var=LD_LIBRARY_PATH
16670 shlibpath_overrides_runpath=yes
16671 if test "$with_gnu_ld" = yes; then
16672 need_lib_prefix=no
16673 fi
16674 need_version=yes
16675 ;;
16676
16677sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016678 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680 soname_spec='${libname}${release}${shared_ext}$major'
16681 shlibpath_var=LD_LIBRARY_PATH
16682 case $host_vendor in
16683 sni)
16684 shlibpath_overrides_runpath=no
16685 need_lib_prefix=no
16686 runpath_var=LD_RUN_PATH
16687 ;;
16688 siemens)
16689 need_lib_prefix=no
16690 ;;
16691 motorola)
16692 need_lib_prefix=no
16693 need_version=no
16694 shlibpath_overrides_runpath=no
16695 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16696 ;;
16697 esac
16698 ;;
16699
16700sysv4*MP*)
16701 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016702 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016703 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16704 soname_spec='$libname${shared_ext}.$major'
16705 shlibpath_var=LD_LIBRARY_PATH
16706 fi
16707 ;;
16708
16709sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16710 version_type=freebsd-elf
16711 need_lib_prefix=no
16712 need_version=no
16713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16714 soname_spec='${libname}${release}${shared_ext}$major'
16715 shlibpath_var=LD_LIBRARY_PATH
16716 shlibpath_overrides_runpath=yes
16717 hardcode_into_libs=yes
16718 if test "$with_gnu_ld" = yes; then
16719 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16720 else
16721 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16722 case $host_os in
16723 sco3.2v5*)
16724 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16725 ;;
16726 esac
16727 fi
16728 sys_lib_dlsearch_path_spec='/usr/lib'
16729 ;;
16730
16731tpf*)
16732 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016733 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016734 need_lib_prefix=no
16735 need_version=no
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737 shlibpath_var=LD_LIBRARY_PATH
16738 shlibpath_overrides_runpath=no
16739 hardcode_into_libs=yes
16740 ;;
16741
16742uts4*)
cristy99bd5232011-12-07 14:38:20 +000016743 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16745 soname_spec='${libname}${release}${shared_ext}$major'
16746 shlibpath_var=LD_LIBRARY_PATH
16747 ;;
16748
16749*)
16750 dynamic_linker=no
16751 ;;
16752esac
16753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16754$as_echo "$dynamic_linker" >&6; }
16755test "$dynamic_linker" = no && can_build_shared=no
16756
16757variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16758if test "$GCC" = yes; then
16759 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16760fi
16761
16762if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16763 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16764fi
16765if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16766 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16767fi
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
cristy0c60a692010-11-04 01:09:47 +000016855
16856
16857
16858
16859
cristy73bd4a52010-10-05 11:24:23 +000016860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16861$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16862hardcode_action=
16863if test -n "$hardcode_libdir_flag_spec" ||
16864 test -n "$runpath_var" ||
16865 test "X$hardcode_automatic" = "Xyes" ; then
16866
16867 # We can hardcode non-existent directories.
16868 if test "$hardcode_direct" != no &&
16869 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16870 # have to relink, otherwise we might link with an installed library
16871 # when we should be linking with a yet-to-be-installed one
16872 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16873 test "$hardcode_minus_L" != no; then
16874 # Linking always hardcodes the temporary library directory.
16875 hardcode_action=relink
16876 else
16877 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16878 hardcode_action=immediate
16879 fi
16880else
16881 # We cannot hardcode anything, or else we can only hardcode existing
16882 # directories.
16883 hardcode_action=unsupported
16884fi
16885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16886$as_echo "$hardcode_action" >&6; }
16887
16888if test "$hardcode_action" = relink ||
16889 test "$inherit_rpath" = yes; then
16890 # Fast installation is not supported
16891 enable_fast_install=no
16892elif test "$shlibpath_overrides_runpath" = yes ||
16893 test "$enable_shared" = no; then
16894 # Fast installation is not necessary
16895 enable_fast_install=needless
16896fi
16897
16898
16899
16900
16901
16902
16903 if test "x$enable_dlopen" != xyes; then
16904 enable_dlopen=unknown
16905 enable_dlopen_self=unknown
16906 enable_dlopen_self_static=unknown
16907else
16908 lt_cv_dlopen=no
16909 lt_cv_dlopen_libs=
16910
16911 case $host_os in
16912 beos*)
16913 lt_cv_dlopen="load_add_on"
16914 lt_cv_dlopen_libs=
16915 lt_cv_dlopen_self=yes
16916 ;;
16917
16918 mingw* | pw32* | cegcc*)
16919 lt_cv_dlopen="LoadLibrary"
16920 lt_cv_dlopen_libs=
16921 ;;
16922
16923 cygwin*)
16924 lt_cv_dlopen="dlopen"
16925 lt_cv_dlopen_libs=
16926 ;;
16927
16928 darwin*)
16929 # if libdl is installed we need to link against it
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16931$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016932if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016933 $as_echo_n "(cached) " >&6
16934else
16935 ac_check_lib_save_LIBS=$LIBS
16936LIBS="-ldl $LIBS"
16937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938/* end confdefs.h. */
16939
16940/* Override any GCC internal prototype to avoid an error.
16941 Use char because int might match the return type of a GCC
16942 builtin and then its argument prototype would still apply. */
16943#ifdef __cplusplus
16944extern "C"
16945#endif
16946char dlopen ();
16947int
16948main ()
16949{
16950return dlopen ();
16951 ;
16952 return 0;
16953}
16954_ACEOF
16955if ac_fn_c_try_link "$LINENO"; then :
16956 ac_cv_lib_dl_dlopen=yes
16957else
16958 ac_cv_lib_dl_dlopen=no
16959fi
16960rm -f core conftest.err conftest.$ac_objext \
16961 conftest$ac_exeext conftest.$ac_ext
16962LIBS=$ac_check_lib_save_LIBS
16963fi
16964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16965$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016966if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016967 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16968else
16969
16970 lt_cv_dlopen="dyld"
16971 lt_cv_dlopen_libs=
16972 lt_cv_dlopen_self=yes
16973
16974fi
16975
16976 ;;
16977
16978 *)
16979 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016980if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016981 lt_cv_dlopen="shl_load"
16982else
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16984$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016985if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016986 $as_echo_n "(cached) " >&6
16987else
16988 ac_check_lib_save_LIBS=$LIBS
16989LIBS="-ldld $LIBS"
16990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991/* end confdefs.h. */
16992
16993/* Override any GCC internal prototype to avoid an error.
16994 Use char because int might match the return type of a GCC
16995 builtin and then its argument prototype would still apply. */
16996#ifdef __cplusplus
16997extern "C"
16998#endif
16999char shl_load ();
17000int
17001main ()
17002{
17003return shl_load ();
17004 ;
17005 return 0;
17006}
17007_ACEOF
17008if ac_fn_c_try_link "$LINENO"; then :
17009 ac_cv_lib_dld_shl_load=yes
17010else
17011 ac_cv_lib_dld_shl_load=no
17012fi
17013rm -f core conftest.err conftest.$ac_objext \
17014 conftest$ac_exeext conftest.$ac_ext
17015LIBS=$ac_check_lib_save_LIBS
17016fi
17017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17018$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017019if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017020 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17021else
17022 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017023if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017024 lt_cv_dlopen="dlopen"
17025else
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17027$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017028if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017029 $as_echo_n "(cached) " >&6
17030else
17031 ac_check_lib_save_LIBS=$LIBS
17032LIBS="-ldl $LIBS"
17033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034/* end confdefs.h. */
17035
17036/* Override any GCC internal prototype to avoid an error.
17037 Use char because int might match the return type of a GCC
17038 builtin and then its argument prototype would still apply. */
17039#ifdef __cplusplus
17040extern "C"
17041#endif
17042char dlopen ();
17043int
17044main ()
17045{
17046return dlopen ();
17047 ;
17048 return 0;
17049}
17050_ACEOF
17051if ac_fn_c_try_link "$LINENO"; then :
17052 ac_cv_lib_dl_dlopen=yes
17053else
17054 ac_cv_lib_dl_dlopen=no
17055fi
17056rm -f core conftest.err conftest.$ac_objext \
17057 conftest$ac_exeext conftest.$ac_ext
17058LIBS=$ac_check_lib_save_LIBS
17059fi
17060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17061$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017062if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017063 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17064else
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17066$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017067if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017068 $as_echo_n "(cached) " >&6
17069else
17070 ac_check_lib_save_LIBS=$LIBS
17071LIBS="-lsvld $LIBS"
17072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17073/* end confdefs.h. */
17074
17075/* Override any GCC internal prototype to avoid an error.
17076 Use char because int might match the return type of a GCC
17077 builtin and then its argument prototype would still apply. */
17078#ifdef __cplusplus
17079extern "C"
17080#endif
17081char dlopen ();
17082int
17083main ()
17084{
17085return dlopen ();
17086 ;
17087 return 0;
17088}
17089_ACEOF
17090if ac_fn_c_try_link "$LINENO"; then :
17091 ac_cv_lib_svld_dlopen=yes
17092else
17093 ac_cv_lib_svld_dlopen=no
17094fi
17095rm -f core conftest.err conftest.$ac_objext \
17096 conftest$ac_exeext conftest.$ac_ext
17097LIBS=$ac_check_lib_save_LIBS
17098fi
17099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17100$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017101if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17103else
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17105$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017106if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017107 $as_echo_n "(cached) " >&6
17108else
17109 ac_check_lib_save_LIBS=$LIBS
17110LIBS="-ldld $LIBS"
17111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112/* end confdefs.h. */
17113
17114/* Override any GCC internal prototype to avoid an error.
17115 Use char because int might match the return type of a GCC
17116 builtin and then its argument prototype would still apply. */
17117#ifdef __cplusplus
17118extern "C"
17119#endif
17120char dld_link ();
17121int
17122main ()
17123{
17124return dld_link ();
17125 ;
17126 return 0;
17127}
17128_ACEOF
17129if ac_fn_c_try_link "$LINENO"; then :
17130 ac_cv_lib_dld_dld_link=yes
17131else
17132 ac_cv_lib_dld_dld_link=no
17133fi
17134rm -f core conftest.err conftest.$ac_objext \
17135 conftest$ac_exeext conftest.$ac_ext
17136LIBS=$ac_check_lib_save_LIBS
17137fi
17138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17139$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017140if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017141 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17142fi
17143
17144
17145fi
17146
17147
17148fi
17149
17150
17151fi
17152
17153
17154fi
17155
17156
17157fi
17158
17159 ;;
17160 esac
17161
17162 if test "x$lt_cv_dlopen" != xno; then
17163 enable_dlopen=yes
17164 else
17165 enable_dlopen=no
17166 fi
17167
17168 case $lt_cv_dlopen in
17169 dlopen)
17170 save_CPPFLAGS="$CPPFLAGS"
17171 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17172
17173 save_LDFLAGS="$LDFLAGS"
17174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17175
17176 save_LIBS="$LIBS"
17177 LIBS="$lt_cv_dlopen_libs $LIBS"
17178
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17180$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017181if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017182 $as_echo_n "(cached) " >&6
17183else
17184 if test "$cross_compiling" = yes; then :
17185 lt_cv_dlopen_self=cross
17186else
17187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17188 lt_status=$lt_dlunknown
17189 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017190#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017191#include "confdefs.h"
17192
17193#if HAVE_DLFCN_H
17194#include <dlfcn.h>
17195#endif
17196
17197#include <stdio.h>
17198
17199#ifdef RTLD_GLOBAL
17200# define LT_DLGLOBAL RTLD_GLOBAL
17201#else
17202# ifdef DL_GLOBAL
17203# define LT_DLGLOBAL DL_GLOBAL
17204# else
17205# define LT_DLGLOBAL 0
17206# endif
17207#endif
17208
17209/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17210 find out it does not work in some platform. */
17211#ifndef LT_DLLAZY_OR_NOW
17212# ifdef RTLD_LAZY
17213# define LT_DLLAZY_OR_NOW RTLD_LAZY
17214# else
17215# ifdef DL_LAZY
17216# define LT_DLLAZY_OR_NOW DL_LAZY
17217# else
17218# ifdef RTLD_NOW
17219# define LT_DLLAZY_OR_NOW RTLD_NOW
17220# else
17221# ifdef DL_NOW
17222# define LT_DLLAZY_OR_NOW DL_NOW
17223# else
17224# define LT_DLLAZY_OR_NOW 0
17225# endif
17226# endif
17227# endif
17228# endif
17229#endif
17230
cristy0c60a692010-11-04 01:09:47 +000017231/* When -fvisbility=hidden is used, assume the code has been annotated
17232 correspondingly for the symbols needed. */
17233#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017234int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017235#endif
17236
cristyda16f162011-02-19 23:52:17 +000017237int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017238int main ()
17239{
17240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17241 int status = $lt_dlunknown;
17242
17243 if (self)
17244 {
17245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017246 else
17247 {
17248 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17249 else puts (dlerror ());
17250 }
cristy73bd4a52010-10-05 11:24:23 +000017251 /* dlclose (self); */
17252 }
17253 else
17254 puts (dlerror ());
17255
17256 return status;
17257}
17258_LT_EOF
17259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17260 (eval $ac_link) 2>&5
17261 ac_status=$?
17262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17263 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17264 (./conftest; exit; ) >&5 2>/dev/null
17265 lt_status=$?
17266 case x$lt_status in
17267 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17268 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17269 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17270 esac
17271 else :
17272 # compilation failed
17273 lt_cv_dlopen_self=no
17274 fi
17275fi
17276rm -fr conftest*
17277
17278
17279fi
17280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17281$as_echo "$lt_cv_dlopen_self" >&6; }
17282
17283 if test "x$lt_cv_dlopen_self" = xyes; then
17284 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17286$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017287if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017288 $as_echo_n "(cached) " >&6
17289else
17290 if test "$cross_compiling" = yes; then :
17291 lt_cv_dlopen_self_static=cross
17292else
17293 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17294 lt_status=$lt_dlunknown
17295 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017296#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017297#include "confdefs.h"
17298
17299#if HAVE_DLFCN_H
17300#include <dlfcn.h>
17301#endif
17302
17303#include <stdio.h>
17304
17305#ifdef RTLD_GLOBAL
17306# define LT_DLGLOBAL RTLD_GLOBAL
17307#else
17308# ifdef DL_GLOBAL
17309# define LT_DLGLOBAL DL_GLOBAL
17310# else
17311# define LT_DLGLOBAL 0
17312# endif
17313#endif
17314
17315/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17316 find out it does not work in some platform. */
17317#ifndef LT_DLLAZY_OR_NOW
17318# ifdef RTLD_LAZY
17319# define LT_DLLAZY_OR_NOW RTLD_LAZY
17320# else
17321# ifdef DL_LAZY
17322# define LT_DLLAZY_OR_NOW DL_LAZY
17323# else
17324# ifdef RTLD_NOW
17325# define LT_DLLAZY_OR_NOW RTLD_NOW
17326# else
17327# ifdef DL_NOW
17328# define LT_DLLAZY_OR_NOW DL_NOW
17329# else
17330# define LT_DLLAZY_OR_NOW 0
17331# endif
17332# endif
17333# endif
17334# endif
17335#endif
17336
cristy0c60a692010-11-04 01:09:47 +000017337/* When -fvisbility=hidden is used, assume the code has been annotated
17338 correspondingly for the symbols needed. */
17339#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017340int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017341#endif
17342
cristyda16f162011-02-19 23:52:17 +000017343int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017344int main ()
17345{
17346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17347 int status = $lt_dlunknown;
17348
17349 if (self)
17350 {
17351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017352 else
17353 {
17354 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17355 else puts (dlerror ());
17356 }
cristy73bd4a52010-10-05 11:24:23 +000017357 /* dlclose (self); */
17358 }
17359 else
17360 puts (dlerror ());
17361
17362 return status;
17363}
17364_LT_EOF
17365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17366 (eval $ac_link) 2>&5
17367 ac_status=$?
17368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17369 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17370 (./conftest; exit; ) >&5 2>/dev/null
17371 lt_status=$?
17372 case x$lt_status in
17373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17375 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17376 esac
17377 else :
17378 # compilation failed
17379 lt_cv_dlopen_self_static=no
17380 fi
17381fi
17382rm -fr conftest*
17383
17384
17385fi
17386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17387$as_echo "$lt_cv_dlopen_self_static" >&6; }
17388 fi
17389
17390 CPPFLAGS="$save_CPPFLAGS"
17391 LDFLAGS="$save_LDFLAGS"
17392 LIBS="$save_LIBS"
17393 ;;
17394 esac
17395
17396 case $lt_cv_dlopen_self in
17397 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17398 *) enable_dlopen_self=unknown ;;
17399 esac
17400
17401 case $lt_cv_dlopen_self_static in
17402 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17403 *) enable_dlopen_self_static=unknown ;;
17404 esac
17405fi
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423striplib=
17424old_striplib=
17425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17426$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17427if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17428 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17429 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17431$as_echo "yes" >&6; }
17432else
17433# FIXME - insert some real tests, host_os isn't really good enough
17434 case $host_os in
17435 darwin*)
17436 if test -n "$STRIP" ; then
17437 striplib="$STRIP -x"
17438 old_striplib="$STRIP -S"
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17440$as_echo "yes" >&6; }
17441 else
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17443$as_echo "no" >&6; }
17444 fi
17445 ;;
17446 *)
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17448$as_echo "no" >&6; }
17449 ;;
17450 esac
17451fi
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464 # Report which library types will actually be built
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17466$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17468$as_echo "$can_build_shared" >&6; }
17469
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17471$as_echo_n "checking whether to build shared libraries... " >&6; }
17472 test "$can_build_shared" = "no" && enable_shared=no
17473
17474 # On AIX, shared libraries and static libraries use the same namespace, and
17475 # are all built from PIC.
17476 case $host_os in
17477 aix3*)
17478 test "$enable_shared" = yes && enable_static=no
17479 if test -n "$RANLIB"; then
17480 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17481 postinstall_cmds='$RANLIB $lib'
17482 fi
17483 ;;
17484
17485 aix[4-9]*)
17486 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17487 test "$enable_shared" = yes && enable_static=no
17488 fi
17489 ;;
17490 esac
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17492$as_echo "$enable_shared" >&6; }
17493
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17495$as_echo_n "checking whether to build static libraries... " >&6; }
17496 # Make sure either enable_shared or enable_static is yes.
17497 test "$enable_shared" = yes || enable_static=yes
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17499$as_echo "$enable_static" >&6; }
17500
17501
17502
17503
17504fi
17505ac_ext=c
17506ac_cpp='$CPP $CPPFLAGS'
17507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17509ac_compiler_gnu=$ac_cv_c_compiler_gnu
17510
17511CC="$lt_save_CC"
17512
cristy0c60a692010-11-04 01:09:47 +000017513 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17514 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17515 (test "X$CXX" != "Xg++"))) ; then
17516 ac_ext=cpp
17517ac_cpp='$CXXCPP $CPPFLAGS'
17518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17522$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17523if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017524 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017525 $as_echo_n "(cached) " >&6
17526else
17527 # Double quotes because CXXCPP needs to be expanded
17528 for CXXCPP in "$CXX -E" "/lib/cpp"
17529 do
17530 ac_preproc_ok=false
17531for ac_cxx_preproc_warn_flag in '' yes
17532do
17533 # Use a header file that comes with gcc, so configuring glibc
17534 # with a fresh cross-compiler works.
17535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17536 # <limits.h> exists even on freestanding compilers.
17537 # On the NeXT, cc -E runs the code through the compiler's parser,
17538 # not just through cpp. "Syntax error" is here to catch this case.
17539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17540/* end confdefs.h. */
17541#ifdef __STDC__
17542# include <limits.h>
17543#else
17544# include <assert.h>
17545#endif
17546 Syntax error
17547_ACEOF
17548if ac_fn_cxx_try_cpp "$LINENO"; then :
17549
17550else
17551 # Broken: fails on valid input.
17552continue
17553fi
cristyda16f162011-02-19 23:52:17 +000017554rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017555
17556 # OK, works on sane cases. Now check whether nonexistent headers
17557 # can be detected and how.
17558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559/* end confdefs.h. */
17560#include <ac_nonexistent.h>
17561_ACEOF
17562if ac_fn_cxx_try_cpp "$LINENO"; then :
17563 # Broken: success on invalid input.
17564continue
17565else
17566 # Passes both tests.
17567ac_preproc_ok=:
17568break
17569fi
cristyda16f162011-02-19 23:52:17 +000017570rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017571
17572done
17573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017574rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017575if $ac_preproc_ok; then :
17576 break
17577fi
17578
17579 done
17580 ac_cv_prog_CXXCPP=$CXXCPP
17581
17582fi
17583 CXXCPP=$ac_cv_prog_CXXCPP
17584else
17585 ac_cv_prog_CXXCPP=$CXXCPP
17586fi
17587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17588$as_echo "$CXXCPP" >&6; }
17589ac_preproc_ok=false
17590for ac_cxx_preproc_warn_flag in '' yes
17591do
17592 # Use a header file that comes with gcc, so configuring glibc
17593 # with a fresh cross-compiler works.
17594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17595 # <limits.h> exists even on freestanding compilers.
17596 # On the NeXT, cc -E runs the code through the compiler's parser,
17597 # not just through cpp. "Syntax error" is here to catch this case.
17598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599/* end confdefs.h. */
17600#ifdef __STDC__
17601# include <limits.h>
17602#else
17603# include <assert.h>
17604#endif
17605 Syntax error
17606_ACEOF
17607if ac_fn_cxx_try_cpp "$LINENO"; then :
17608
17609else
17610 # Broken: fails on valid input.
17611continue
17612fi
cristyda16f162011-02-19 23:52:17 +000017613rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017614
17615 # OK, works on sane cases. Now check whether nonexistent headers
17616 # can be detected and how.
17617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618/* end confdefs.h. */
17619#include <ac_nonexistent.h>
17620_ACEOF
17621if ac_fn_cxx_try_cpp "$LINENO"; then :
17622 # Broken: success on invalid input.
17623continue
17624else
17625 # Passes both tests.
17626ac_preproc_ok=:
17627break
17628fi
cristyda16f162011-02-19 23:52:17 +000017629rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017630
17631done
17632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017633rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017634if $ac_preproc_ok; then :
17635
17636else
17637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17639as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17640See \`config.log' for more details" "$LINENO" 5; }
17641fi
17642
17643ac_ext=c
17644ac_cpp='$CPP $CPPFLAGS'
17645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17647ac_compiler_gnu=$ac_cv_c_compiler_gnu
17648
17649else
17650 _lt_caught_CXX_error=yes
17651fi
cristy73bd4a52010-10-05 11:24:23 +000017652
17653ac_ext=cpp
17654ac_cpp='$CXXCPP $CPPFLAGS'
17655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17658
17659archive_cmds_need_lc_CXX=no
17660allow_undefined_flag_CXX=
17661always_export_symbols_CXX=no
17662archive_expsym_cmds_CXX=
17663compiler_needs_object_CXX=no
17664export_dynamic_flag_spec_CXX=
17665hardcode_direct_CXX=no
17666hardcode_direct_absolute_CXX=no
17667hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017668hardcode_libdir_separator_CXX=
17669hardcode_minus_L_CXX=no
17670hardcode_shlibpath_var_CXX=unsupported
17671hardcode_automatic_CXX=no
17672inherit_rpath_CXX=no
17673module_cmds_CXX=
17674module_expsym_cmds_CXX=
17675link_all_deplibs_CXX=unknown
17676old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017677reload_flag_CXX=$reload_flag
17678reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017679no_undefined_flag_CXX=
17680whole_archive_flag_spec_CXX=
17681enable_shared_with_static_runtimes_CXX=no
17682
17683# Source file extension for C++ test sources.
17684ac_ext=cpp
17685
17686# Object file extension for compiled C++ test sources.
17687objext=o
17688objext_CXX=$objext
17689
17690# No sense in running all these tests if we already determined that
17691# the CXX compiler isn't working. Some variables (like enable_shared)
17692# are currently assumed to apply to all compilers on this platform,
17693# and will be corrupted by setting them based on a non-working compiler.
17694if test "$_lt_caught_CXX_error" != yes; then
17695 # Code to be used in simple compile tests
17696 lt_simple_compile_test_code="int some_variable = 0;"
17697
17698 # Code to be used in simple link tests
17699 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17700
17701 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17702
17703
17704
17705
17706
17707
17708# If no C compiler was specified, use CC.
17709LTCC=${LTCC-"$CC"}
17710
17711# If no C compiler flags were specified, use CFLAGS.
17712LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17713
17714# Allow CC to be a program name with arguments.
17715compiler=$CC
17716
17717
17718 # save warnings/boilerplate of simple test code
17719 ac_outfile=conftest.$ac_objext
17720echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17721eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17722_lt_compiler_boilerplate=`cat conftest.err`
17723$RM conftest*
17724
17725 ac_outfile=conftest.$ac_objext
17726echo "$lt_simple_link_test_code" >conftest.$ac_ext
17727eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17728_lt_linker_boilerplate=`cat conftest.err`
17729$RM -r conftest*
17730
17731
17732 # Allow CC to be a program name with arguments.
17733 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017734 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017735 lt_save_LD=$LD
17736 lt_save_GCC=$GCC
17737 GCC=$GXX
17738 lt_save_with_gnu_ld=$with_gnu_ld
17739 lt_save_path_LD=$lt_cv_path_LD
17740 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17741 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17742 else
17743 $as_unset lt_cv_prog_gnu_ld
17744 fi
17745 if test -n "${lt_cv_path_LDCXX+set}"; then
17746 lt_cv_path_LD=$lt_cv_path_LDCXX
17747 else
17748 $as_unset lt_cv_path_LD
17749 fi
17750 test -z "${LDCXX+set}" || LD=$LDCXX
17751 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017752 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017753 compiler=$CC
17754 compiler_CXX=$CC
17755 for cc_temp in $compiler""; do
17756 case $cc_temp in
17757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17759 \-*) ;;
17760 *) break;;
17761 esac
17762done
cristy0c60a692010-11-04 01:09:47 +000017763cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017764
17765
17766 if test -n "$compiler"; then
17767 # We don't want -fno-exception when compiling C++ code, so set the
17768 # no_builtin_flag separately
17769 if test "$GXX" = yes; then
17770 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17771 else
17772 lt_prog_compiler_no_builtin_flag_CXX=
17773 fi
17774
17775 if test "$GXX" = yes; then
17776 # Set up default GNU C++ configuration
17777
17778
17779
17780# Check whether --with-gnu-ld was given.
17781if test "${with_gnu_ld+set}" = set; then :
17782 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17783else
17784 with_gnu_ld=no
17785fi
17786
17787ac_prog=ld
17788if test "$GCC" = yes; then
17789 # Check if gcc -print-prog-name=ld gives a path.
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17791$as_echo_n "checking for ld used by $CC... " >&6; }
17792 case $host in
17793 *-*-mingw*)
17794 # gcc leaves a trailing carriage return which upsets mingw
17795 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17796 *)
17797 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17798 esac
17799 case $ac_prog in
17800 # Accept absolute paths.
17801 [\\/]* | ?:[\\/]*)
17802 re_direlt='/[^/][^/]*/\.\./'
17803 # Canonicalize the pathname of ld
17804 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17805 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17806 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17807 done
17808 test -z "$LD" && LD="$ac_prog"
17809 ;;
17810 "")
17811 # If it fails, then pretend we aren't using GCC.
17812 ac_prog=ld
17813 ;;
17814 *)
17815 # If it is relative, then search for the first ld in PATH.
17816 with_gnu_ld=unknown
17817 ;;
17818 esac
17819elif test "$with_gnu_ld" = yes; then
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17821$as_echo_n "checking for GNU ld... " >&6; }
17822else
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17824$as_echo_n "checking for non-GNU ld... " >&6; }
17825fi
cristyda16f162011-02-19 23:52:17 +000017826if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017827 $as_echo_n "(cached) " >&6
17828else
17829 if test -z "$LD"; then
17830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17831 for ac_dir in $PATH; do
17832 IFS="$lt_save_ifs"
17833 test -z "$ac_dir" && ac_dir=.
17834 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17835 lt_cv_path_LD="$ac_dir/$ac_prog"
17836 # Check to see if the program is GNU ld. I'd rather use --version,
17837 # but apparently some variants of GNU ld only accept -v.
17838 # Break only if it was the GNU/non-GNU ld that we prefer.
17839 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17840 *GNU* | *'with BFD'*)
17841 test "$with_gnu_ld" != no && break
17842 ;;
17843 *)
17844 test "$with_gnu_ld" != yes && break
17845 ;;
17846 esac
17847 fi
17848 done
17849 IFS="$lt_save_ifs"
17850else
17851 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17852fi
17853fi
17854
17855LD="$lt_cv_path_LD"
17856if test -n "$LD"; then
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17858$as_echo "$LD" >&6; }
17859else
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17861$as_echo "no" >&6; }
17862fi
cristy98dddb52010-11-04 00:30:15 +000017863test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17865$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017866if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017867 $as_echo_n "(cached) " >&6
17868else
17869 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17870case `$LD -v 2>&1 </dev/null` in
17871*GNU* | *'with BFD'*)
17872 lt_cv_prog_gnu_ld=yes
17873 ;;
17874*)
17875 lt_cv_prog_gnu_ld=no
17876 ;;
17877esac
17878fi
17879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17880$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17881with_gnu_ld=$lt_cv_prog_gnu_ld
17882
17883
17884
17885
17886
17887
17888
17889 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17890 # archiving commands below assume that GNU ld is being used.
17891 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017892 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17893 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 +000017894
17895 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17896 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17897
17898 # If archive_cmds runs LD, not CC, wlarc should be empty
17899 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17900 # investigate it a little bit more. (MM)
17901 wlarc='${wl}'
17902
17903 # ancient GNU ld didn't support --whole-archive et. al.
17904 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17905 $GREP 'no-whole-archive' > /dev/null; then
17906 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17907 else
17908 whole_archive_flag_spec_CXX=
17909 fi
17910 else
17911 with_gnu_ld=no
17912 wlarc=
17913
17914 # A generic and very simple default shared library creation
17915 # command for GNU C++ for the case where it uses the native
17916 # linker, instead of GNU ld. If possible, this setting should
17917 # overridden to take advantage of the native linker features on
17918 # the platform it is being used on.
17919 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17920 fi
17921
17922 # Commands to make compiler produce verbose output that lists
17923 # what "hidden" libraries, object files and flags are used when
17924 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017925 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017926
17927 else
17928 GXX=no
17929 with_gnu_ld=no
17930 wlarc=
17931 fi
17932
17933 # PORTME: fill in a description of your system's C++ link characteristics
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17935$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17936 ld_shlibs_CXX=yes
17937 case $host_os in
17938 aix3*)
17939 # FIXME: insert proper C++ library support
17940 ld_shlibs_CXX=no
17941 ;;
17942 aix[4-9]*)
17943 if test "$host_cpu" = ia64; then
17944 # On IA64, the linker does run time linking by default, so we don't
17945 # have to do anything special.
17946 aix_use_runtimelinking=no
17947 exp_sym_flag='-Bexport'
17948 no_entry_flag=""
17949 else
17950 aix_use_runtimelinking=no
17951
17952 # Test if we are trying to use run time linking or normal
17953 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17954 # need to do runtime linking.
17955 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17956 for ld_flag in $LDFLAGS; do
17957 case $ld_flag in
17958 *-brtl*)
17959 aix_use_runtimelinking=yes
17960 break
17961 ;;
17962 esac
17963 done
17964 ;;
17965 esac
17966
17967 exp_sym_flag='-bexport'
17968 no_entry_flag='-bnoentry'
17969 fi
17970
17971 # When large executables or shared objects are built, AIX ld can
17972 # have problems creating the table of contents. If linking a library
17973 # or program results in "error TOC overflow" add -mminimal-toc to
17974 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17975 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17976
17977 archive_cmds_CXX=''
17978 hardcode_direct_CXX=yes
17979 hardcode_direct_absolute_CXX=yes
17980 hardcode_libdir_separator_CXX=':'
17981 link_all_deplibs_CXX=yes
17982 file_list_spec_CXX='${wl}-f,'
17983
17984 if test "$GXX" = yes; then
17985 case $host_os in aix4.[012]|aix4.[012].*)
17986 # We only want to do this on AIX 4.2 and lower, the check
17987 # below for broken collect2 doesn't work under 4.3+
17988 collect2name=`${CC} -print-prog-name=collect2`
17989 if test -f "$collect2name" &&
17990 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17991 then
17992 # We have reworked collect2
17993 :
17994 else
17995 # We have old collect2
17996 hardcode_direct_CXX=unsupported
17997 # It fails to find uninstalled libraries when the uninstalled
17998 # path is not listed in the libpath. Setting hardcode_minus_L
17999 # to unsupported forces relinking
18000 hardcode_minus_L_CXX=yes
18001 hardcode_libdir_flag_spec_CXX='-L$libdir'
18002 hardcode_libdir_separator_CXX=
18003 fi
18004 esac
18005 shared_flag='-shared'
18006 if test "$aix_use_runtimelinking" = yes; then
18007 shared_flag="$shared_flag "'${wl}-G'
18008 fi
18009 else
18010 # not using gcc
18011 if test "$host_cpu" = ia64; then
18012 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18013 # chokes on -Wl,-G. The following line is correct:
18014 shared_flag='-G'
18015 else
18016 if test "$aix_use_runtimelinking" = yes; then
18017 shared_flag='${wl}-G'
18018 else
18019 shared_flag='${wl}-bM:SRE'
18020 fi
18021 fi
18022 fi
18023
18024 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18025 # It seems that -bexpall does not export symbols beginning with
18026 # underscore (_), so it is better to generate a list of symbols to
18027 # export.
18028 always_export_symbols_CXX=yes
18029 if test "$aix_use_runtimelinking" = yes; then
18030 # Warning - without using the other runtime loading flags (-brtl),
18031 # -berok will link without error, but may produce a broken library.
18032 allow_undefined_flag_CXX='-berok'
18033 # Determine the default libpath from the value encoded in an empty
18034 # executable.
cristyda16f162011-02-19 23:52:17 +000018035 if test "${lt_cv_aix_libpath+set}" = set; then
18036 aix_libpath=$lt_cv_aix_libpath
18037else
18038 if ${lt_cv_aix_libpath__CXX+:} false; then :
18039 $as_echo_n "(cached) " >&6
18040else
18041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018042/* end confdefs.h. */
18043
18044int
18045main ()
18046{
18047
18048 ;
18049 return 0;
18050}
18051_ACEOF
18052if ac_fn_cxx_try_link "$LINENO"; then :
18053
cristyda16f162011-02-19 23:52:17 +000018054 lt_aix_libpath_sed='
18055 /Import File Strings/,/^$/ {
18056 /^0/ {
18057 s/^0 *\([^ ]*\) *$/\1/
18058 p
18059 }
18060 }'
18061 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18062 # Check for a 64-bit object if we didn't find anything.
18063 if test -z "$lt_cv_aix_libpath__CXX"; then
18064 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18065 fi
cristy73bd4a52010-10-05 11:24:23 +000018066fi
18067rm -f core conftest.err conftest.$ac_objext \
18068 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018069 if test -z "$lt_cv_aix_libpath__CXX"; then
18070 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18071 fi
18072
18073fi
18074
18075 aix_libpath=$lt_cv_aix_libpath__CXX
18076fi
cristy73bd4a52010-10-05 11:24:23 +000018077
18078 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18079
cristy0c60a692010-11-04 01:09:47 +000018080 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 +000018081 else
18082 if test "$host_cpu" = ia64; then
18083 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18084 allow_undefined_flag_CXX="-z nodefs"
18085 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"
18086 else
18087 # Determine the default libpath from the value encoded in an
18088 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018089 if test "${lt_cv_aix_libpath+set}" = set; then
18090 aix_libpath=$lt_cv_aix_libpath
18091else
18092 if ${lt_cv_aix_libpath__CXX+:} false; then :
18093 $as_echo_n "(cached) " >&6
18094else
18095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018096/* end confdefs.h. */
18097
18098int
18099main ()
18100{
18101
18102 ;
18103 return 0;
18104}
18105_ACEOF
18106if ac_fn_cxx_try_link "$LINENO"; then :
18107
cristyda16f162011-02-19 23:52:17 +000018108 lt_aix_libpath_sed='
18109 /Import File Strings/,/^$/ {
18110 /^0/ {
18111 s/^0 *\([^ ]*\) *$/\1/
18112 p
18113 }
18114 }'
18115 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18116 # Check for a 64-bit object if we didn't find anything.
18117 if test -z "$lt_cv_aix_libpath__CXX"; then
18118 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18119 fi
cristy73bd4a52010-10-05 11:24:23 +000018120fi
18121rm -f core conftest.err conftest.$ac_objext \
18122 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018123 if test -z "$lt_cv_aix_libpath__CXX"; then
18124 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18125 fi
18126
18127fi
18128
18129 aix_libpath=$lt_cv_aix_libpath__CXX
18130fi
cristy73bd4a52010-10-05 11:24:23 +000018131
18132 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18133 # Warning - without using the other run time loading flags,
18134 # -berok will link without error, but may produce a broken library.
18135 no_undefined_flag_CXX=' ${wl}-bernotok'
18136 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018137 if test "$with_gnu_ld" = yes; then
18138 # We only use this code for GNU lds that support --whole-archive.
18139 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18140 else
18141 # Exported symbols can be pulled into shared objects from archives
18142 whole_archive_flag_spec_CXX='$convenience'
18143 fi
cristy73bd4a52010-10-05 11:24:23 +000018144 archive_cmds_need_lc_CXX=yes
18145 # This is similar to how AIX traditionally builds its shared
18146 # libraries.
18147 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'
18148 fi
18149 fi
18150 ;;
18151
18152 beos*)
18153 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18154 allow_undefined_flag_CXX=unsupported
18155 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18156 # support --undefined. This deserves some investigation. FIXME
18157 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18158 else
18159 ld_shlibs_CXX=no
18160 fi
18161 ;;
18162
18163 chorus*)
18164 case $cc_basename in
18165 *)
18166 # FIXME: insert proper C++ library support
18167 ld_shlibs_CXX=no
18168 ;;
18169 esac
18170 ;;
18171
18172 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018173 case $GXX,$cc_basename in
18174 ,cl* | no,cl*)
18175 # Native MSVC
18176 # hardcode_libdir_flag_spec is actually meaningless, as there is
18177 # no search path for DLLs.
18178 hardcode_libdir_flag_spec_CXX=' '
18179 allow_undefined_flag_CXX=unsupported
18180 always_export_symbols_CXX=yes
18181 file_list_spec_CXX='@'
18182 # Tell ltmain to make .lib files, not .a files.
18183 libext=lib
18184 # Tell ltmain to make .dll files, not .so files.
18185 shrext_cmds=".dll"
18186 # FIXME: Setting linknames here is a bad hack.
18187 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18188 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18189 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18190 else
18191 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18192 fi~
18193 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18194 linknames='
18195 # The linker will not automatically build a static lib if we build a DLL.
18196 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18197 enable_shared_with_static_runtimes_CXX=yes
18198 # Don't use ranlib
18199 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18200 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18201 lt_tool_outputfile="@TOOL_OUTPUT@"~
18202 case $lt_outputfile in
18203 *.exe|*.EXE) ;;
18204 *)
18205 lt_outputfile="$lt_outputfile.exe"
18206 lt_tool_outputfile="$lt_tool_outputfile.exe"
18207 ;;
18208 esac~
18209 func_to_tool_file "$lt_outputfile"~
18210 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18211 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18212 $RM "$lt_outputfile.manifest";
18213 fi'
18214 ;;
18215 *)
18216 # g++
18217 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18218 # as there is no search path for DLLs.
18219 hardcode_libdir_flag_spec_CXX='-L$libdir'
18220 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18221 allow_undefined_flag_CXX=unsupported
18222 always_export_symbols_CXX=no
18223 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018224
cristyda16f162011-02-19 23:52:17 +000018225 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18226 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'
18227 # If the export-symbols file already is a .def file (1st line
18228 # is EXPORTS), use it as is; otherwise, prepend...
18229 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18230 cp $export_symbols $output_objdir/$soname.def;
18231 else
18232 echo EXPORTS > $output_objdir/$soname.def;
18233 cat $export_symbols >> $output_objdir/$soname.def;
18234 fi~
18235 $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'
18236 else
18237 ld_shlibs_CXX=no
18238 fi
18239 ;;
18240 esac
18241 ;;
cristy73bd4a52010-10-05 11:24:23 +000018242 darwin* | rhapsody*)
18243
18244
18245 archive_cmds_need_lc_CXX=no
18246 hardcode_direct_CXX=no
18247 hardcode_automatic_CXX=yes
18248 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018249 if test "$lt_cv_ld_force_load" = "yes"; then
18250 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 +000018251
cristy0c60a692010-11-04 01:09:47 +000018252 else
18253 whole_archive_flag_spec_CXX=''
18254 fi
cristy73bd4a52010-10-05 11:24:23 +000018255 link_all_deplibs_CXX=yes
18256 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18257 case $cc_basename in
18258 ifort*) _lt_dar_can_shared=yes ;;
18259 *) _lt_dar_can_shared=$GCC ;;
18260 esac
18261 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018262 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018263 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}"
18264 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18265 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}"
18266 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}"
18267 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18268 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}"
18269 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}"
18270 fi
18271
18272 else
18273 ld_shlibs_CXX=no
18274 fi
18275
18276 ;;
18277
18278 dgux*)
18279 case $cc_basename in
18280 ec++*)
18281 # FIXME: insert proper C++ library support
18282 ld_shlibs_CXX=no
18283 ;;
18284 ghcx*)
18285 # Green Hills C++ Compiler
18286 # FIXME: insert proper C++ library support
18287 ld_shlibs_CXX=no
18288 ;;
18289 *)
18290 # FIXME: insert proper C++ library support
18291 ld_shlibs_CXX=no
18292 ;;
18293 esac
18294 ;;
18295
cristy99bd5232011-12-07 14:38:20 +000018296 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018297 # C++ shared libraries reported to be fairly broken before
18298 # switch to ELF
18299 ld_shlibs_CXX=no
18300 ;;
18301
18302 freebsd-elf*)
18303 archive_cmds_need_lc_CXX=no
18304 ;;
18305
18306 freebsd* | dragonfly*)
18307 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18308 # conventions
18309 ld_shlibs_CXX=yes
18310 ;;
18311
18312 gnu*)
18313 ;;
18314
cristy0c60a692010-11-04 01:09:47 +000018315 haiku*)
18316 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18317 link_all_deplibs_CXX=yes
18318 ;;
18319
cristy73bd4a52010-10-05 11:24:23 +000018320 hpux9*)
18321 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18322 hardcode_libdir_separator_CXX=:
18323 export_dynamic_flag_spec_CXX='${wl}-E'
18324 hardcode_direct_CXX=yes
18325 hardcode_minus_L_CXX=yes # Not in the search PATH,
18326 # but as the default
18327 # location of the library.
18328
18329 case $cc_basename in
18330 CC*)
18331 # FIXME: insert proper C++ library support
18332 ld_shlibs_CXX=no
18333 ;;
18334 aCC*)
18335 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'
18336 # Commands to make compiler produce verbose output that lists
18337 # what "hidden" libraries, object files and flags are used when
18338 # linking a shared library.
18339 #
18340 # There doesn't appear to be a way to prevent this compiler from
18341 # explicitly linking system object files so we need to strip them
18342 # from the output so that they don't get included in the library
18343 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018344 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 +000018345 ;;
18346 *)
18347 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018348 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 +000018349 else
18350 # FIXME: insert proper C++ library support
18351 ld_shlibs_CXX=no
18352 fi
18353 ;;
18354 esac
18355 ;;
18356
18357 hpux10*|hpux11*)
18358 if test $with_gnu_ld = no; then
18359 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18360 hardcode_libdir_separator_CXX=:
18361
18362 case $host_cpu in
18363 hppa*64*|ia64*)
18364 ;;
18365 *)
18366 export_dynamic_flag_spec_CXX='${wl}-E'
18367 ;;
18368 esac
18369 fi
18370 case $host_cpu in
18371 hppa*64*|ia64*)
18372 hardcode_direct_CXX=no
18373 hardcode_shlibpath_var_CXX=no
18374 ;;
18375 *)
18376 hardcode_direct_CXX=yes
18377 hardcode_direct_absolute_CXX=yes
18378 hardcode_minus_L_CXX=yes # Not in the search PATH,
18379 # but as the default
18380 # location of the library.
18381 ;;
18382 esac
18383
18384 case $cc_basename in
18385 CC*)
18386 # FIXME: insert proper C++ library support
18387 ld_shlibs_CXX=no
18388 ;;
18389 aCC*)
18390 case $host_cpu in
18391 hppa*64*)
18392 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18393 ;;
18394 ia64*)
18395 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18396 ;;
18397 *)
18398 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18399 ;;
18400 esac
18401 # Commands to make compiler produce verbose output that lists
18402 # what "hidden" libraries, object files and flags are used when
18403 # linking a shared library.
18404 #
18405 # There doesn't appear to be a way to prevent this compiler from
18406 # explicitly linking system object files so we need to strip them
18407 # from the output so that they don't get included in the library
18408 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018409 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 +000018410 ;;
18411 *)
18412 if test "$GXX" = yes; then
18413 if test $with_gnu_ld = no; then
18414 case $host_cpu in
18415 hppa*64*)
18416 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18417 ;;
18418 ia64*)
cristyda16f162011-02-19 23:52:17 +000018419 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 +000018420 ;;
18421 *)
cristyda16f162011-02-19 23:52:17 +000018422 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 +000018423 ;;
18424 esac
18425 fi
18426 else
18427 # FIXME: insert proper C++ library support
18428 ld_shlibs_CXX=no
18429 fi
18430 ;;
18431 esac
18432 ;;
18433
18434 interix[3-9]*)
18435 hardcode_direct_CXX=no
18436 hardcode_shlibpath_var_CXX=no
18437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18438 export_dynamic_flag_spec_CXX='${wl}-E'
18439 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18440 # Instead, shared libraries are loaded at an image base (0x10000000 by
18441 # default) and relocated if they conflict, which is a slow very memory
18442 # consuming and fragmenting process. To avoid this, we pick a random,
18443 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18444 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18445 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'
18446 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'
18447 ;;
18448 irix5* | irix6*)
18449 case $cc_basename in
18450 CC*)
18451 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018452 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 +000018453
18454 # Archives containing C++ object files must be created using
18455 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18456 # necessary to make sure instantiated templates are included
18457 # in the archive.
18458 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18459 ;;
18460 *)
18461 if test "$GXX" = yes; then
18462 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018463 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 +000018464 else
cristyda16f162011-02-19 23:52:17 +000018465 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 +000018466 fi
18467 fi
18468 link_all_deplibs_CXX=yes
18469 ;;
18470 esac
18471 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18472 hardcode_libdir_separator_CXX=:
18473 inherit_rpath_CXX=yes
18474 ;;
18475
cristy0c60a692010-11-04 01:09:47 +000018476 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018477 case $cc_basename in
18478 KCC*)
18479 # Kuck and Associates, Inc. (KAI) C++ Compiler
18480
18481 # KCC will only create a shared library if the output file
18482 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18483 # to its proper name (with version) after linking.
18484 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'
18485 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'
18486 # Commands to make compiler produce verbose output that lists
18487 # what "hidden" libraries, object files and flags are used when
18488 # linking a shared library.
18489 #
18490 # There doesn't appear to be a way to prevent this compiler from
18491 # explicitly linking system object files so we need to strip them
18492 # from the output so that they don't get included in the library
18493 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018494 output_verbose_link_cmd='templist=`$CC $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 +000018495
18496 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18497 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18498
18499 # Archives containing C++ object files must be created using
18500 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18501 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18502 ;;
18503 icpc* | ecpc* )
18504 # Intel C++
18505 with_gnu_ld=yes
18506 # version 8.0 and above of icpc choke on multiply defined symbols
18507 # if we add $predep_objects and $postdep_objects, however 7.1 and
18508 # earlier do not add the objects themselves.
18509 case `$CC -V 2>&1` in
18510 *"Version 7."*)
18511 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18512 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'
18513 ;;
18514 *) # Version 8.0 or newer
18515 tmp_idyn=
18516 case $host_cpu in
18517 ia64*) tmp_idyn=' -i_dynamic';;
18518 esac
18519 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18520 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'
18521 ;;
18522 esac
18523 archive_cmds_need_lc_CXX=no
18524 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18525 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18526 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18527 ;;
18528 pgCC* | pgcpp*)
18529 # Portland Group C++ compiler
18530 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018531 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018532 prelink_cmds_CXX='tpldir=Template.dir~
18533 rm -rf $tpldir~
18534 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018535 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018536 old_archive_cmds_CXX='tpldir=Template.dir~
18537 rm -rf $tpldir~
18538 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018539 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018540 $RANLIB $oldlib'
18541 archive_cmds_CXX='tpldir=Template.dir~
18542 rm -rf $tpldir~
18543 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018544 $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 +000018545 archive_expsym_cmds_CXX='tpldir=Template.dir~
18546 rm -rf $tpldir~
18547 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018548 $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 +000018549 ;;
cristy0c60a692010-11-04 01:09:47 +000018550 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018551 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18552 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'
18553 ;;
18554 esac
18555
18556 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18557 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018558 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 +000018559 ;;
18560 cxx*)
18561 # Compaq C++
18562 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18563 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'
18564
18565 runpath_var=LD_RUN_PATH
18566 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18567 hardcode_libdir_separator_CXX=:
18568
18569 # Commands to make compiler produce verbose output that lists
18570 # what "hidden" libraries, object files and flags are used when
18571 # linking a shared library.
18572 #
18573 # There doesn't appear to be a way to prevent this compiler from
18574 # explicitly linking system object files so we need to strip them
18575 # from the output so that they don't get included in the library
18576 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018577 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 +000018578 ;;
cristy0c60a692010-11-04 01:09:47 +000018579 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018580 # IBM XL 8.0 on PPC, with GNU ld
18581 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18582 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18583 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18584 if test "x$supports_anon_versioning" = xyes; then
18585 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18586 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18587 echo "local: *; };" >> $output_objdir/$libname.ver~
18588 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18589 fi
18590 ;;
18591 *)
18592 case `$CC -V 2>&1 | sed 5q` in
18593 *Sun\ C*)
18594 # Sun C++ 5.9
18595 no_undefined_flag_CXX=' -zdefs'
18596 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18597 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'
18598 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018599 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 +000018600 compiler_needs_object_CXX=yes
18601
18602 # Not sure whether something based on
18603 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18604 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018605 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018606
18607 # Archives containing C++ object files must be created using
18608 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18609 # necessary to make sure instantiated templates are included
18610 # in the archive.
18611 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18612 ;;
18613 esac
18614 ;;
18615 esac
18616 ;;
18617
18618 lynxos*)
18619 # FIXME: insert proper C++ library support
18620 ld_shlibs_CXX=no
18621 ;;
18622
18623 m88k*)
18624 # FIXME: insert proper C++ library support
18625 ld_shlibs_CXX=no
18626 ;;
18627
18628 mvs*)
18629 case $cc_basename in
18630 cxx*)
18631 # FIXME: insert proper C++ library support
18632 ld_shlibs_CXX=no
18633 ;;
18634 *)
18635 # FIXME: insert proper C++ library support
18636 ld_shlibs_CXX=no
18637 ;;
18638 esac
18639 ;;
18640
18641 netbsd*)
18642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18643 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18644 wlarc=
18645 hardcode_libdir_flag_spec_CXX='-R$libdir'
18646 hardcode_direct_CXX=yes
18647 hardcode_shlibpath_var_CXX=no
18648 fi
18649 # Workaround some broken pre-1.5 toolchains
18650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18651 ;;
18652
18653 *nto* | *qnx*)
18654 ld_shlibs_CXX=yes
18655 ;;
18656
18657 openbsd2*)
18658 # C++ shared libraries are fairly broken
18659 ld_shlibs_CXX=no
18660 ;;
18661
18662 openbsd*)
18663 if test -f /usr/libexec/ld.so; then
18664 hardcode_direct_CXX=yes
18665 hardcode_shlibpath_var_CXX=no
18666 hardcode_direct_absolute_CXX=yes
18667 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18668 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18669 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18670 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18671 export_dynamic_flag_spec_CXX='${wl}-E'
18672 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18673 fi
cristy0c60a692010-11-04 01:09:47 +000018674 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018675 else
18676 ld_shlibs_CXX=no
18677 fi
18678 ;;
18679
18680 osf3* | osf4* | osf5*)
18681 case $cc_basename in
18682 KCC*)
18683 # Kuck and Associates, Inc. (KAI) C++ Compiler
18684
18685 # KCC will only create a shared library if the output file
18686 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18687 # to its proper name (with version) after linking.
18688 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'
18689
18690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18691 hardcode_libdir_separator_CXX=:
18692
18693 # Archives containing C++ object files must be created using
18694 # the KAI C++ compiler.
18695 case $host in
18696 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18697 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18698 esac
18699 ;;
18700 RCC*)
18701 # Rational C++ 2.4.1
18702 # FIXME: insert proper C++ library support
18703 ld_shlibs_CXX=no
18704 ;;
18705 cxx*)
18706 case $host in
18707 osf3*)
18708 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018709 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 +000018710 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18711 ;;
18712 *)
18713 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018714 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 +000018715 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18716 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018717 $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 +000018718 $RM $lib.exp'
18719 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18720 ;;
18721 esac
18722
18723 hardcode_libdir_separator_CXX=:
18724
18725 # Commands to make compiler produce verbose output that lists
18726 # what "hidden" libraries, object files and flags are used when
18727 # linking a shared library.
18728 #
18729 # There doesn't appear to be a way to prevent this compiler from
18730 # explicitly linking system object files so we need to strip them
18731 # from the output so that they don't get included in the library
18732 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018733 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 +000018734 ;;
18735 *)
18736 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18737 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18738 case $host in
18739 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018740 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 +000018741 ;;
18742 *)
cristyda16f162011-02-19 23:52:17 +000018743 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 +000018744 ;;
18745 esac
18746
18747 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18748 hardcode_libdir_separator_CXX=:
18749
18750 # Commands to make compiler produce verbose output that lists
18751 # what "hidden" libraries, object files and flags are used when
18752 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018753 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018754
18755 else
18756 # FIXME: insert proper C++ library support
18757 ld_shlibs_CXX=no
18758 fi
18759 ;;
18760 esac
18761 ;;
18762
18763 psos*)
18764 # FIXME: insert proper C++ library support
18765 ld_shlibs_CXX=no
18766 ;;
18767
18768 sunos4*)
18769 case $cc_basename in
18770 CC*)
18771 # Sun C++ 4.x
18772 # FIXME: insert proper C++ library support
18773 ld_shlibs_CXX=no
18774 ;;
18775 lcc*)
18776 # Lucid
18777 # FIXME: insert proper C++ library support
18778 ld_shlibs_CXX=no
18779 ;;
18780 *)
18781 # FIXME: insert proper C++ library support
18782 ld_shlibs_CXX=no
18783 ;;
18784 esac
18785 ;;
18786
18787 solaris*)
18788 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018789 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018790 # Sun C++ 4.2, 5.x and Centerline C++
18791 archive_cmds_need_lc_CXX=yes
18792 no_undefined_flag_CXX=' -zdefs'
18793 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18794 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18795 $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'
18796
18797 hardcode_libdir_flag_spec_CXX='-R$libdir'
18798 hardcode_shlibpath_var_CXX=no
18799 case $host_os in
18800 solaris2.[0-5] | solaris2.[0-5].*) ;;
18801 *)
18802 # The compiler driver will combine and reorder linker options,
18803 # but understands `-z linker_flag'.
18804 # Supported since Solaris 2.6 (maybe 2.5.1?)
18805 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18806 ;;
18807 esac
18808 link_all_deplibs_CXX=yes
18809
cristy0c60a692010-11-04 01:09:47 +000018810 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018811
18812 # Archives containing C++ object files must be created using
18813 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18814 # necessary to make sure instantiated templates are included
18815 # in the archive.
18816 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18817 ;;
18818 gcx*)
18819 # Green Hills C++ Compiler
18820 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18821
18822 # The C++ compiler must be used to create the archive.
18823 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18824 ;;
18825 *)
18826 # GNU C++ compiler with Solaris linker
18827 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18828 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18829 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018830 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 +000018831 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 +000018832 $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 +000018833
18834 # Commands to make compiler produce verbose output that lists
18835 # what "hidden" libraries, object files and flags are used when
18836 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018837 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018838 else
18839 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18840 # platform.
18841 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18842 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18843 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18844
18845 # Commands to make compiler produce verbose output that lists
18846 # what "hidden" libraries, object files and flags are used when
18847 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018848 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018849 fi
18850
18851 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18852 case $host_os in
18853 solaris2.[0-5] | solaris2.[0-5].*) ;;
18854 *)
18855 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18856 ;;
18857 esac
18858 fi
18859 ;;
18860 esac
18861 ;;
18862
18863 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18864 no_undefined_flag_CXX='${wl}-z,text'
18865 archive_cmds_need_lc_CXX=no
18866 hardcode_shlibpath_var_CXX=no
18867 runpath_var='LD_RUN_PATH'
18868
18869 case $cc_basename in
18870 CC*)
18871 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18872 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18873 ;;
18874 *)
18875 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18876 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18877 ;;
18878 esac
18879 ;;
18880
18881 sysv5* | sco3.2v5* | sco5v6*)
18882 # Note: We can NOT use -z defs as we might desire, because we do not
18883 # link with -lc, and that would cause any symbols used from libc to
18884 # always be unresolved, which means just about no library would
18885 # ever link correctly. If we're not using GNU ld we use -z text
18886 # though, which does catch some bad symbols but isn't as heavy-handed
18887 # as -z defs.
18888 no_undefined_flag_CXX='${wl}-z,text'
18889 allow_undefined_flag_CXX='${wl}-z,nodefs'
18890 archive_cmds_need_lc_CXX=no
18891 hardcode_shlibpath_var_CXX=no
18892 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18893 hardcode_libdir_separator_CXX=':'
18894 link_all_deplibs_CXX=yes
18895 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18896 runpath_var='LD_RUN_PATH'
18897
18898 case $cc_basename in
18899 CC*)
18900 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18901 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 +000018902 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18903 '"$old_archive_cmds_CXX"
18904 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18905 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018906 ;;
18907 *)
18908 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18909 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18910 ;;
18911 esac
18912 ;;
18913
18914 tandem*)
18915 case $cc_basename in
18916 NCC*)
18917 # NonStop-UX NCC 3.20
18918 # FIXME: insert proper C++ library support
18919 ld_shlibs_CXX=no
18920 ;;
18921 *)
18922 # FIXME: insert proper C++ library support
18923 ld_shlibs_CXX=no
18924 ;;
18925 esac
18926 ;;
18927
18928 vxworks*)
18929 # FIXME: insert proper C++ library support
18930 ld_shlibs_CXX=no
18931 ;;
18932
18933 *)
18934 # FIXME: insert proper C++ library support
18935 ld_shlibs_CXX=no
18936 ;;
18937 esac
18938
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18940$as_echo "$ld_shlibs_CXX" >&6; }
18941 test "$ld_shlibs_CXX" = no && can_build_shared=no
18942
18943 GCC_CXX="$GXX"
18944 LD_CXX="$LD"
18945
18946 ## CAVEAT EMPTOR:
18947 ## There is no encapsulation within the following macros, do not change
18948 ## the running order or otherwise move them around unless you know exactly
18949 ## what you are doing...
18950 # Dependencies to place before and after the object being linked:
18951predep_objects_CXX=
18952postdep_objects_CXX=
18953predeps_CXX=
18954postdeps_CXX=
18955compiler_lib_search_path_CXX=
18956
18957cat > conftest.$ac_ext <<_LT_EOF
18958class Foo
18959{
18960public:
18961 Foo (void) { a = 0; }
18962private:
18963 int a;
18964};
18965_LT_EOF
18966
cristyda16f162011-02-19 23:52:17 +000018967
18968_lt_libdeps_save_CFLAGS=$CFLAGS
18969case "$CC $CFLAGS " in #(
18970*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18971*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018972*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018973esac
18974
cristy73bd4a52010-10-05 11:24:23 +000018975if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18976 (eval $ac_compile) 2>&5
18977 ac_status=$?
18978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18979 test $ac_status = 0; }; then
18980 # Parse the compiler output and extract the necessary
18981 # objects, libraries and library flags.
18982
18983 # Sentinel used to keep track of whether or not we are before
18984 # the conftest object file.
18985 pre_test_object_deps_done=no
18986
18987 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018988 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018989
18990 -L* | -R* | -l*)
18991 # Some compilers place space between "-{L,R}" and the path.
18992 # Remove the space.
18993 if test $p = "-L" ||
18994 test $p = "-R"; then
18995 prev=$p
18996 continue
cristy73bd4a52010-10-05 11:24:23 +000018997 fi
18998
cristyda16f162011-02-19 23:52:17 +000018999 # Expand the sysroot to ease extracting the directories later.
19000 if test -z "$prev"; then
19001 case $p in
19002 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19003 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19004 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19005 esac
19006 fi
19007 case $p in
19008 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19009 esac
cristy73bd4a52010-10-05 11:24:23 +000019010 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019011 case ${prev} in
19012 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019013 # Internal compiler library paths should come after those
19014 # provided the user. The postdeps already come after the
19015 # user supplied libs so there is no need to process them.
19016 if test -z "$compiler_lib_search_path_CXX"; then
19017 compiler_lib_search_path_CXX="${prev}${p}"
19018 else
19019 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19020 fi
19021 ;;
19022 # The "-l" case would never come before the object being
19023 # linked, so don't bother handling this case.
19024 esac
19025 else
19026 if test -z "$postdeps_CXX"; then
19027 postdeps_CXX="${prev}${p}"
19028 else
19029 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19030 fi
19031 fi
cristyda16f162011-02-19 23:52:17 +000019032 prev=
cristy73bd4a52010-10-05 11:24:23 +000019033 ;;
19034
cristyda16f162011-02-19 23:52:17 +000019035 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019036 *.$objext)
19037 # This assumes that the test object file only shows up
19038 # once in the compiler output.
19039 if test "$p" = "conftest.$objext"; then
19040 pre_test_object_deps_done=yes
19041 continue
19042 fi
19043
19044 if test "$pre_test_object_deps_done" = no; then
19045 if test -z "$predep_objects_CXX"; then
19046 predep_objects_CXX="$p"
19047 else
19048 predep_objects_CXX="$predep_objects_CXX $p"
19049 fi
19050 else
19051 if test -z "$postdep_objects_CXX"; then
19052 postdep_objects_CXX="$p"
19053 else
19054 postdep_objects_CXX="$postdep_objects_CXX $p"
19055 fi
19056 fi
19057 ;;
19058
19059 *) ;; # Ignore the rest.
19060
19061 esac
19062 done
19063
19064 # Clean up.
19065 rm -f a.out a.exe
19066else
19067 echo "libtool.m4: error: problem compiling CXX test program"
19068fi
19069
19070$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019071CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019072
19073# PORTME: override above test on systems where it is broken
19074case $host_os in
19075interix[3-9]*)
19076 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19077 # hack all around it, let's just trust "g++" to DTRT.
19078 predep_objects_CXX=
19079 postdep_objects_CXX=
19080 postdeps_CXX=
19081 ;;
19082
19083linux*)
19084 case `$CC -V 2>&1 | sed 5q` in
19085 *Sun\ C*)
19086 # Sun C++ 5.9
19087
19088 # The more standards-conforming stlport4 library is
19089 # incompatible with the Cstd library. Avoid specifying
19090 # it if it's in CXXFLAGS. Ignore libCrun as
19091 # -library=stlport4 depends on it.
19092 case " $CXX $CXXFLAGS " in
19093 *" -library=stlport4 "*)
19094 solaris_use_stlport4=yes
19095 ;;
19096 esac
19097
19098 if test "$solaris_use_stlport4" != yes; then
19099 postdeps_CXX='-library=Cstd -library=Crun'
19100 fi
19101 ;;
19102 esac
19103 ;;
19104
19105solaris*)
19106 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019107 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019108 # The more standards-conforming stlport4 library is
19109 # incompatible with the Cstd library. Avoid specifying
19110 # it if it's in CXXFLAGS. Ignore libCrun as
19111 # -library=stlport4 depends on it.
19112 case " $CXX $CXXFLAGS " in
19113 *" -library=stlport4 "*)
19114 solaris_use_stlport4=yes
19115 ;;
19116 esac
19117
19118 # Adding this requires a known-good setup of shared libraries for
19119 # Sun compiler versions before 5.6, else PIC objects from an old
19120 # archive will be linked into the output, leading to subtle bugs.
19121 if test "$solaris_use_stlport4" != yes; then
19122 postdeps_CXX='-library=Cstd -library=Crun'
19123 fi
19124 ;;
19125 esac
19126 ;;
19127esac
19128
19129
19130case " $postdeps_CXX " in
19131*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19132esac
19133 compiler_lib_search_dirs_CXX=
19134if test -n "${compiler_lib_search_path_CXX}"; then
19135 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19136fi
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168 lt_prog_compiler_wl_CXX=
19169lt_prog_compiler_pic_CXX=
19170lt_prog_compiler_static_CXX=
19171
cristy73bd4a52010-10-05 11:24:23 +000019172
19173 # C++ specific cases for pic, static, wl, etc.
19174 if test "$GXX" = yes; then
19175 lt_prog_compiler_wl_CXX='-Wl,'
19176 lt_prog_compiler_static_CXX='-static'
19177
19178 case $host_os in
19179 aix*)
19180 # All AIX code is PIC.
19181 if test "$host_cpu" = ia64; then
19182 # AIX 5 now supports IA64 processor
19183 lt_prog_compiler_static_CXX='-Bstatic'
19184 fi
19185 ;;
19186
19187 amigaos*)
19188 case $host_cpu in
19189 powerpc)
19190 # see comment about AmigaOS4 .so support
19191 lt_prog_compiler_pic_CXX='-fPIC'
19192 ;;
19193 m68k)
19194 # FIXME: we need at least 68020 code to build shared libraries, but
19195 # adding the `-m68020' flag to GCC prevents building anything better,
19196 # like `-m68040'.
19197 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19198 ;;
19199 esac
19200 ;;
19201
19202 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19203 # PIC is the default for these OSes.
19204 ;;
19205 mingw* | cygwin* | os2* | pw32* | cegcc*)
19206 # This hack is so that the source file can tell whether it is being
19207 # built for inclusion in a dll (and should export symbols for example).
19208 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19209 # (--disable-auto-import) libraries
19210 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19211 ;;
19212 darwin* | rhapsody*)
19213 # PIC is the default on this platform
19214 # Common symbols not allowed in MH_DYLIB files
19215 lt_prog_compiler_pic_CXX='-fno-common'
19216 ;;
19217 *djgpp*)
19218 # DJGPP does not support shared libraries at all
19219 lt_prog_compiler_pic_CXX=
19220 ;;
cristy0c60a692010-11-04 01:09:47 +000019221 haiku*)
19222 # PIC is the default for Haiku.
19223 # The "-static" flag exists, but is broken.
19224 lt_prog_compiler_static_CXX=
19225 ;;
cristy73bd4a52010-10-05 11:24:23 +000019226 interix[3-9]*)
19227 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19228 # Instead, we relocate shared libraries at runtime.
19229 ;;
19230 sysv4*MP*)
19231 if test -d /usr/nec; then
19232 lt_prog_compiler_pic_CXX=-Kconform_pic
19233 fi
19234 ;;
19235 hpux*)
19236 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19237 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19238 # sets the default TLS model and affects inlining.
19239 case $host_cpu in
19240 hppa*64*)
19241 ;;
19242 *)
19243 lt_prog_compiler_pic_CXX='-fPIC'
19244 ;;
19245 esac
19246 ;;
19247 *qnx* | *nto*)
19248 # QNX uses GNU C++, but need to define -shared option too, otherwise
19249 # it will coredump.
19250 lt_prog_compiler_pic_CXX='-fPIC -shared'
19251 ;;
19252 *)
19253 lt_prog_compiler_pic_CXX='-fPIC'
19254 ;;
19255 esac
19256 else
19257 case $host_os in
19258 aix[4-9]*)
19259 # All AIX code is PIC.
19260 if test "$host_cpu" = ia64; then
19261 # AIX 5 now supports IA64 processor
19262 lt_prog_compiler_static_CXX='-Bstatic'
19263 else
19264 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19265 fi
19266 ;;
19267 chorus*)
19268 case $cc_basename in
19269 cxch68*)
19270 # Green Hills C++ Compiler
19271 # _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"
19272 ;;
19273 esac
19274 ;;
cristyda16f162011-02-19 23:52:17 +000019275 mingw* | cygwin* | os2* | pw32* | cegcc*)
19276 # This hack is so that the source file can tell whether it is being
19277 # built for inclusion in a dll (and should export symbols for example).
19278 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19279 ;;
cristy73bd4a52010-10-05 11:24:23 +000019280 dgux*)
19281 case $cc_basename in
19282 ec++*)
19283 lt_prog_compiler_pic_CXX='-KPIC'
19284 ;;
19285 ghcx*)
19286 # Green Hills C++ Compiler
19287 lt_prog_compiler_pic_CXX='-pic'
19288 ;;
19289 *)
19290 ;;
19291 esac
19292 ;;
19293 freebsd* | dragonfly*)
19294 # FreeBSD uses GNU C++
19295 ;;
19296 hpux9* | hpux10* | hpux11*)
19297 case $cc_basename in
19298 CC*)
19299 lt_prog_compiler_wl_CXX='-Wl,'
19300 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19301 if test "$host_cpu" != ia64; then
19302 lt_prog_compiler_pic_CXX='+Z'
19303 fi
19304 ;;
19305 aCC*)
19306 lt_prog_compiler_wl_CXX='-Wl,'
19307 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19308 case $host_cpu in
19309 hppa*64*|ia64*)
19310 # +Z the default
19311 ;;
19312 *)
19313 lt_prog_compiler_pic_CXX='+Z'
19314 ;;
19315 esac
19316 ;;
19317 *)
19318 ;;
19319 esac
19320 ;;
19321 interix*)
19322 # This is c89, which is MS Visual C++ (no shared libs)
19323 # Anyone wants to do a port?
19324 ;;
19325 irix5* | irix6* | nonstopux*)
19326 case $cc_basename in
19327 CC*)
19328 lt_prog_compiler_wl_CXX='-Wl,'
19329 lt_prog_compiler_static_CXX='-non_shared'
19330 # CC pic flag -KPIC is the default.
19331 ;;
19332 *)
19333 ;;
19334 esac
19335 ;;
cristy0c60a692010-11-04 01:09:47 +000019336 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019337 case $cc_basename in
19338 KCC*)
19339 # KAI C++ Compiler
19340 lt_prog_compiler_wl_CXX='--backend -Wl,'
19341 lt_prog_compiler_pic_CXX='-fPIC'
19342 ;;
19343 ecpc* )
19344 # old Intel C++ for x86_64 which still supported -KPIC.
19345 lt_prog_compiler_wl_CXX='-Wl,'
19346 lt_prog_compiler_pic_CXX='-KPIC'
19347 lt_prog_compiler_static_CXX='-static'
19348 ;;
19349 icpc* )
19350 # Intel C++, used to be incompatible with GCC.
19351 # ICC 10 doesn't accept -KPIC any more.
19352 lt_prog_compiler_wl_CXX='-Wl,'
19353 lt_prog_compiler_pic_CXX='-fPIC'
19354 lt_prog_compiler_static_CXX='-static'
19355 ;;
19356 pgCC* | pgcpp*)
19357 # Portland Group C++ compiler
19358 lt_prog_compiler_wl_CXX='-Wl,'
19359 lt_prog_compiler_pic_CXX='-fpic'
19360 lt_prog_compiler_static_CXX='-Bstatic'
19361 ;;
19362 cxx*)
19363 # Compaq C++
19364 # Make sure the PIC flag is empty. It appears that all Alpha
19365 # Linux and Compaq Tru64 Unix objects are PIC.
19366 lt_prog_compiler_pic_CXX=
19367 lt_prog_compiler_static_CXX='-non_shared'
19368 ;;
cristy0c60a692010-11-04 01:09:47 +000019369 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19370 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019371 lt_prog_compiler_wl_CXX='-Wl,'
19372 lt_prog_compiler_pic_CXX='-qpic'
19373 lt_prog_compiler_static_CXX='-qstaticlink'
19374 ;;
19375 *)
19376 case `$CC -V 2>&1 | sed 5q` in
19377 *Sun\ C*)
19378 # Sun C++ 5.9
19379 lt_prog_compiler_pic_CXX='-KPIC'
19380 lt_prog_compiler_static_CXX='-Bstatic'
19381 lt_prog_compiler_wl_CXX='-Qoption ld '
19382 ;;
19383 esac
19384 ;;
19385 esac
19386 ;;
19387 lynxos*)
19388 ;;
19389 m88k*)
19390 ;;
19391 mvs*)
19392 case $cc_basename in
19393 cxx*)
19394 lt_prog_compiler_pic_CXX='-W c,exportall'
19395 ;;
19396 *)
19397 ;;
19398 esac
19399 ;;
19400 netbsd*)
19401 ;;
19402 *qnx* | *nto*)
19403 # QNX uses GNU C++, but need to define -shared option too, otherwise
19404 # it will coredump.
19405 lt_prog_compiler_pic_CXX='-fPIC -shared'
19406 ;;
19407 osf3* | osf4* | osf5*)
19408 case $cc_basename in
19409 KCC*)
19410 lt_prog_compiler_wl_CXX='--backend -Wl,'
19411 ;;
19412 RCC*)
19413 # Rational C++ 2.4.1
19414 lt_prog_compiler_pic_CXX='-pic'
19415 ;;
19416 cxx*)
19417 # Digital/Compaq C++
19418 lt_prog_compiler_wl_CXX='-Wl,'
19419 # Make sure the PIC flag is empty. It appears that all Alpha
19420 # Linux and Compaq Tru64 Unix objects are PIC.
19421 lt_prog_compiler_pic_CXX=
19422 lt_prog_compiler_static_CXX='-non_shared'
19423 ;;
19424 *)
19425 ;;
19426 esac
19427 ;;
19428 psos*)
19429 ;;
19430 solaris*)
19431 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019432 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019433 # Sun C++ 4.2, 5.x and Centerline C++
19434 lt_prog_compiler_pic_CXX='-KPIC'
19435 lt_prog_compiler_static_CXX='-Bstatic'
19436 lt_prog_compiler_wl_CXX='-Qoption ld '
19437 ;;
19438 gcx*)
19439 # Green Hills C++ Compiler
19440 lt_prog_compiler_pic_CXX='-PIC'
19441 ;;
19442 *)
19443 ;;
19444 esac
19445 ;;
19446 sunos4*)
19447 case $cc_basename in
19448 CC*)
19449 # Sun C++ 4.x
19450 lt_prog_compiler_pic_CXX='-pic'
19451 lt_prog_compiler_static_CXX='-Bstatic'
19452 ;;
19453 lcc*)
19454 # Lucid
19455 lt_prog_compiler_pic_CXX='-pic'
19456 ;;
19457 *)
19458 ;;
19459 esac
19460 ;;
19461 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19462 case $cc_basename in
19463 CC*)
19464 lt_prog_compiler_wl_CXX='-Wl,'
19465 lt_prog_compiler_pic_CXX='-KPIC'
19466 lt_prog_compiler_static_CXX='-Bstatic'
19467 ;;
19468 esac
19469 ;;
19470 tandem*)
19471 case $cc_basename in
19472 NCC*)
19473 # NonStop-UX NCC 3.20
19474 lt_prog_compiler_pic_CXX='-KPIC'
19475 ;;
19476 *)
19477 ;;
19478 esac
19479 ;;
19480 vxworks*)
19481 ;;
19482 *)
19483 lt_prog_compiler_can_build_shared_CXX=no
19484 ;;
19485 esac
19486 fi
19487
19488case $host_os in
19489 # For platforms which do not support PIC, -DPIC is meaningless:
19490 *djgpp*)
19491 lt_prog_compiler_pic_CXX=
19492 ;;
19493 *)
19494 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19495 ;;
19496esac
cristy73bd4a52010-10-05 11:24:23 +000019497
cristyda16f162011-02-19 23:52:17 +000019498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19499$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19500if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19501 $as_echo_n "(cached) " >&6
19502else
19503 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19504fi
19505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19506$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19507lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019508
19509#
19510# Check to make sure the PIC flag actually works.
19511#
19512if test -n "$lt_prog_compiler_pic_CXX"; then
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19514$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019515if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019516 $as_echo_n "(cached) " >&6
19517else
19518 lt_cv_prog_compiler_pic_works_CXX=no
19519 ac_outfile=conftest.$ac_objext
19520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19521 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19522 # Insert the option either (1) after the last *FLAGS variable, or
19523 # (2) before a word containing "conftest.", or (3) at the end.
19524 # Note that $ac_compile itself does not contain backslashes and begins
19525 # with a dollar sign (not a hyphen), so the echo should work correctly.
19526 # The option is referenced via a variable to avoid confusing sed.
19527 lt_compile=`echo "$ac_compile" | $SED \
19528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19530 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019531 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019532 (eval "$lt_compile" 2>conftest.err)
19533 ac_status=$?
19534 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019536 if (exit $ac_status) && test -s "$ac_outfile"; then
19537 # The compiler can only warn and ignore the option if not recognized
19538 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019539 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19541 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19542 lt_cv_prog_compiler_pic_works_CXX=yes
19543 fi
19544 fi
19545 $RM conftest*
19546
19547fi
19548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19549$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19550
19551if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19552 case $lt_prog_compiler_pic_CXX in
19553 "" | " "*) ;;
19554 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19555 esac
19556else
19557 lt_prog_compiler_pic_CXX=
19558 lt_prog_compiler_can_build_shared_CXX=no
19559fi
19560
19561fi
19562
19563
19564
cristyda16f162011-02-19 23:52:17 +000019565
19566
cristy73bd4a52010-10-05 11:24:23 +000019567#
19568# Check to make sure the static flag actually works.
19569#
19570wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19572$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019573if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019574 $as_echo_n "(cached) " >&6
19575else
19576 lt_cv_prog_compiler_static_works_CXX=no
19577 save_LDFLAGS="$LDFLAGS"
19578 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19579 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19580 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19581 # The linker can only warn and ignore the option if not recognized
19582 # So say no if there are warnings
19583 if test -s conftest.err; then
19584 # Append any errors to the config.log.
19585 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019586 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19588 if diff conftest.exp conftest.er2 >/dev/null; then
19589 lt_cv_prog_compiler_static_works_CXX=yes
19590 fi
19591 else
19592 lt_cv_prog_compiler_static_works_CXX=yes
19593 fi
19594 fi
19595 $RM -r conftest*
19596 LDFLAGS="$save_LDFLAGS"
19597
19598fi
19599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19600$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19601
19602if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19603 :
19604else
19605 lt_prog_compiler_static_CXX=
19606fi
19607
19608
19609
19610
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19612$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019613if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019614 $as_echo_n "(cached) " >&6
19615else
19616 lt_cv_prog_compiler_c_o_CXX=no
19617 $RM -r conftest 2>/dev/null
19618 mkdir conftest
19619 cd conftest
19620 mkdir out
19621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19622
19623 lt_compiler_flag="-o out/conftest2.$ac_objext"
19624 # Insert the option either (1) after the last *FLAGS variable, or
19625 # (2) before a word containing "conftest.", or (3) at the end.
19626 # Note that $ac_compile itself does not contain backslashes and begins
19627 # with a dollar sign (not a hyphen), so the echo should work correctly.
19628 lt_compile=`echo "$ac_compile" | $SED \
19629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19631 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019633 (eval "$lt_compile" 2>out/conftest.err)
19634 ac_status=$?
19635 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019637 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19638 then
19639 # The compiler can only warn and ignore the option if not recognized
19640 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019642 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19643 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19644 lt_cv_prog_compiler_c_o_CXX=yes
19645 fi
19646 fi
19647 chmod u+w . 2>&5
19648 $RM conftest*
19649 # SGI C++ compiler will create directory out/ii_files/ for
19650 # template instantiation
19651 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19652 $RM out/* && rmdir out
19653 cd ..
19654 $RM -r conftest
19655 $RM conftest*
19656
19657fi
19658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19659$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19660
19661
19662
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19664$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019665if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019666 $as_echo_n "(cached) " >&6
19667else
19668 lt_cv_prog_compiler_c_o_CXX=no
19669 $RM -r conftest 2>/dev/null
19670 mkdir conftest
19671 cd conftest
19672 mkdir out
19673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19674
19675 lt_compiler_flag="-o out/conftest2.$ac_objext"
19676 # Insert the option either (1) after the last *FLAGS variable, or
19677 # (2) before a word containing "conftest.", or (3) at the end.
19678 # Note that $ac_compile itself does not contain backslashes and begins
19679 # with a dollar sign (not a hyphen), so the echo should work correctly.
19680 lt_compile=`echo "$ac_compile" | $SED \
19681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19683 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019684 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019685 (eval "$lt_compile" 2>out/conftest.err)
19686 ac_status=$?
19687 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019689 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19690 then
19691 # The compiler can only warn and ignore the option if not recognized
19692 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019693 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019694 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19695 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19696 lt_cv_prog_compiler_c_o_CXX=yes
19697 fi
19698 fi
19699 chmod u+w . 2>&5
19700 $RM conftest*
19701 # SGI C++ compiler will create directory out/ii_files/ for
19702 # template instantiation
19703 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19704 $RM out/* && rmdir out
19705 cd ..
19706 $RM -r conftest
19707 $RM conftest*
19708
19709fi
19710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19711$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19712
19713
19714
19715
19716hard_links="nottested"
19717if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19718 # do not overwrite the value of need_locks provided by the user
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19720$as_echo_n "checking if we can lock with hard links... " >&6; }
19721 hard_links=yes
19722 $RM conftest*
19723 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19724 touch conftest.a
19725 ln conftest.a conftest.b 2>&5 || hard_links=no
19726 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19728$as_echo "$hard_links" >&6; }
19729 if test "$hard_links" = no; then
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19731$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19732 need_locks=warn
19733 fi
19734else
19735 need_locks=no
19736fi
19737
19738
19739
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19741$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19742
19743 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019744 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019745 case $host_os in
19746 aix[4-9]*)
19747 # If we're using GNU nm, then we don't want the "-C" option.
19748 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019749 # Also, AIX nm treats weak defined symbols like other global defined
19750 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019751 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019752 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 +000019753 else
19754 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'
19755 fi
19756 ;;
19757 pw32*)
19758 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019759 ;;
cristy73bd4a52010-10-05 11:24:23 +000019760 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019761 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019762 cl*)
19763 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19764 ;;
cristyda16f162011-02-19 23:52:17 +000019765 *)
19766 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'
19767 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19768 ;;
19769 esac
19770 ;;
cristy73bd4a52010-10-05 11:24:23 +000019771 *)
19772 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019773 ;;
cristy73bd4a52010-10-05 11:24:23 +000019774 esac
cristy73bd4a52010-10-05 11:24:23 +000019775
19776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19777$as_echo "$ld_shlibs_CXX" >&6; }
19778test "$ld_shlibs_CXX" = no && can_build_shared=no
19779
19780with_gnu_ld_CXX=$with_gnu_ld
19781
19782
19783
19784
19785
19786
19787#
19788# Do we need to explicitly link libc?
19789#
19790case "x$archive_cmds_need_lc_CXX" in
19791x|xyes)
19792 # Assume -lc should be added
19793 archive_cmds_need_lc_CXX=yes
19794
19795 if test "$enable_shared" = yes && test "$GCC" = yes; then
19796 case $archive_cmds_CXX in
19797 *'~'*)
19798 # FIXME: we may have to deal with multi-command sequences.
19799 ;;
19800 '$CC '*)
19801 # Test whether the compiler implicitly links with -lc since on some
19802 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19803 # to ld, don't add -lc before -lgcc.
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19805$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019806if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019807 $as_echo_n "(cached) " >&6
19808else
19809 $RM conftest*
19810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019811
cristy0c60a692010-11-04 01:09:47 +000019812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019813 (eval $ac_compile) 2>&5
19814 ac_status=$?
19815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19816 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019817 soname=conftest
19818 lib=conftest
19819 libobjs=conftest.$ac_objext
19820 deplibs=
19821 wl=$lt_prog_compiler_wl_CXX
19822 pic_flag=$lt_prog_compiler_pic_CXX
19823 compiler_flags=-v
19824 linker_flags=-v
19825 verstring=
19826 output_objdir=.
19827 libname=conftest
19828 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19829 allow_undefined_flag_CXX=
19830 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 +000019831 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19832 ac_status=$?
19833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19834 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019835 then
19836 lt_cv_archive_cmds_need_lc_CXX=no
19837 else
19838 lt_cv_archive_cmds_need_lc_CXX=yes
19839 fi
19840 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19841 else
19842 cat conftest.err 1>&5
19843 fi
19844 $RM conftest*
19845
19846fi
19847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19848$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19849 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019850 ;;
19851 esac
19852 fi
19853 ;;
19854esac
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
cristy73bd4a52010-10-05 11:24:23 +000019917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19918$as_echo_n "checking dynamic linker characteristics... " >&6; }
19919
19920library_names_spec=
19921libname_spec='lib$name'
19922soname_spec=
19923shrext_cmds=".so"
19924postinstall_cmds=
19925postuninstall_cmds=
19926finish_cmds=
19927finish_eval=
19928shlibpath_var=
19929shlibpath_overrides_runpath=unknown
19930version_type=none
19931dynamic_linker="$host_os ld.so"
19932sys_lib_dlsearch_path_spec="/lib /usr/lib"
19933need_lib_prefix=unknown
19934hardcode_into_libs=no
19935
19936# when you set need_version to no, make sure it does not cause -set_version
19937# flags to be left without arguments
19938need_version=unknown
19939
19940case $host_os in
19941aix3*)
cristy99bd5232011-12-07 14:38:20 +000019942 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19944 shlibpath_var=LIBPATH
19945
19946 # AIX 3 has no versioning support, so we append a major version to the name.
19947 soname_spec='${libname}${release}${shared_ext}$major'
19948 ;;
19949
19950aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019951 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019952 need_lib_prefix=no
19953 need_version=no
19954 hardcode_into_libs=yes
19955 if test "$host_cpu" = ia64; then
19956 # AIX 5 supports IA64
19957 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19958 shlibpath_var=LD_LIBRARY_PATH
19959 else
19960 # With GCC up to 2.95.x, collect2 would create an import file
19961 # for dependence libraries. The import file would start with
19962 # the line `#! .'. This would cause the generated library to
19963 # depend on `.', always an invalid library. This was fixed in
19964 # development snapshots of GCC prior to 3.0.
19965 case $host_os in
19966 aix4 | aix4.[01] | aix4.[01].*)
19967 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19968 echo ' yes '
19969 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19970 :
19971 else
19972 can_build_shared=no
19973 fi
19974 ;;
19975 esac
19976 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19977 # soname into executable. Probably we can add versioning support to
19978 # collect2, so additional links can be useful in future.
19979 if test "$aix_use_runtimelinking" = yes; then
19980 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19981 # instead of lib<name>.a to let people know that these are not
19982 # typical AIX shared libraries.
19983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19984 else
19985 # We preserve .a as extension for shared libraries through AIX4.2
19986 # and later when we are not doing run time linking.
19987 library_names_spec='${libname}${release}.a $libname.a'
19988 soname_spec='${libname}${release}${shared_ext}$major'
19989 fi
19990 shlibpath_var=LIBPATH
19991 fi
19992 ;;
19993
19994amigaos*)
19995 case $host_cpu in
19996 powerpc)
19997 # Since July 2007 AmigaOS4 officially supports .so libraries.
19998 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20000 ;;
20001 m68k)
20002 library_names_spec='$libname.ixlibrary $libname.a'
20003 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020004 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 +000020005 ;;
20006 esac
20007 ;;
20008
20009beos*)
20010 library_names_spec='${libname}${shared_ext}'
20011 dynamic_linker="$host_os ld.so"
20012 shlibpath_var=LIBRARY_PATH
20013 ;;
20014
20015bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020016 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020017 need_version=no
20018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20019 soname_spec='${libname}${release}${shared_ext}$major'
20020 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20021 shlibpath_var=LD_LIBRARY_PATH
20022 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20023 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20024 # the default ld.so.conf also contains /usr/contrib/lib and
20025 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20026 # libtool to hard-code these into programs
20027 ;;
20028
20029cygwin* | mingw* | pw32* | cegcc*)
20030 version_type=windows
20031 shrext_cmds=".dll"
20032 need_version=no
20033 need_lib_prefix=no
20034
cristyda16f162011-02-19 23:52:17 +000020035 case $GCC,$cc_basename in
20036 yes,*)
20037 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020038 library_names_spec='$libname.dll.a'
20039 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20040 postinstall_cmds='base_file=`basename \${file}`~
20041 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20042 dldir=$destdir/`dirname \$dlpath`~
20043 test -d \$dldir || mkdir -p \$dldir~
20044 $install_prog $dir/$dlname \$dldir/$dlname~
20045 chmod a+x \$dldir/$dlname~
20046 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20047 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20048 fi'
20049 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20050 dlpath=$dir/\$dldll~
20051 $RM \$dlpath'
20052 shlibpath_overrides_runpath=yes
20053
20054 case $host_os in
20055 cygwin*)
20056 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20057 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020058
cristy73bd4a52010-10-05 11:24:23 +000020059 ;;
20060 mingw* | cegcc*)
20061 # MinGW DLLs use traditional 'lib' prefix
20062 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020063 ;;
20064 pw32*)
20065 # pw32 DLLs use 'pw' prefix rather than 'lib'
20066 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20067 ;;
20068 esac
cristyda16f162011-02-19 23:52:17 +000020069 dynamic_linker='Win32 ld.exe'
20070 ;;
20071
20072 *,cl*)
20073 # Native MSVC
20074 libname_spec='$name'
20075 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20076 library_names_spec='${libname}.dll.lib'
20077
20078 case $build_os in
20079 mingw*)
20080 sys_lib_search_path_spec=
20081 lt_save_ifs=$IFS
20082 IFS=';'
20083 for lt_path in $LIB
20084 do
20085 IFS=$lt_save_ifs
20086 # Let DOS variable expansion print the short 8.3 style file name.
20087 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20088 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20089 done
20090 IFS=$lt_save_ifs
20091 # Convert to MSYS style.
20092 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20093 ;;
20094 cygwin*)
20095 # Convert to unix form, then to dos form, then back to unix form
20096 # but this time dos style (no spaces!) so that the unix form looks
20097 # like /cygdrive/c/PROGRA~1:/cygdr...
20098 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20099 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20100 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20101 ;;
20102 *)
20103 sys_lib_search_path_spec="$LIB"
20104 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20105 # It is most probably a Windows format PATH.
20106 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20107 else
20108 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20109 fi
20110 # FIXME: find the short name or the path components, as spaces are
20111 # common. (e.g. "Program Files" -> "PROGRA~1")
20112 ;;
20113 esac
20114
20115 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20116 postinstall_cmds='base_file=`basename \${file}`~
20117 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20118 dldir=$destdir/`dirname \$dlpath`~
20119 test -d \$dldir || mkdir -p \$dldir~
20120 $install_prog $dir/$dlname \$dldir/$dlname'
20121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20122 dlpath=$dir/\$dldll~
20123 $RM \$dlpath'
20124 shlibpath_overrides_runpath=yes
20125 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020126 ;;
20127
20128 *)
cristyda16f162011-02-19 23:52:17 +000020129 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020130 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020131 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020132 ;;
20133 esac
cristy73bd4a52010-10-05 11:24:23 +000020134 # FIXME: first we should search . and the directory the executable is in
20135 shlibpath_var=PATH
20136 ;;
20137
20138darwin* | rhapsody*)
20139 dynamic_linker="$host_os dyld"
20140 version_type=darwin
20141 need_lib_prefix=no
20142 need_version=no
20143 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20144 soname_spec='${libname}${release}${major}$shared_ext'
20145 shlibpath_overrides_runpath=yes
20146 shlibpath_var=DYLD_LIBRARY_PATH
20147 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20148
20149 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20150 ;;
20151
20152dgux*)
cristy99bd5232011-12-07 14:38:20 +000020153 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020154 need_lib_prefix=no
20155 need_version=no
20156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20157 soname_spec='${libname}${release}${shared_ext}$major'
20158 shlibpath_var=LD_LIBRARY_PATH
20159 ;;
20160
cristy73bd4a52010-10-05 11:24:23 +000020161freebsd* | dragonfly*)
20162 # DragonFly does not have aout. When/if they implement a new
20163 # versioning mechanism, adjust this.
20164 if test -x /usr/bin/objformat; then
20165 objformat=`/usr/bin/objformat`
20166 else
20167 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020168 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020169 *) objformat=elf ;;
20170 esac
20171 fi
20172 version_type=freebsd-$objformat
20173 case $version_type in
20174 freebsd-elf*)
20175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20176 need_version=no
20177 need_lib_prefix=no
20178 ;;
20179 freebsd-*)
20180 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20181 need_version=yes
20182 ;;
20183 esac
20184 shlibpath_var=LD_LIBRARY_PATH
20185 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020186 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020187 shlibpath_overrides_runpath=yes
20188 ;;
20189 freebsd3.[01]* | freebsdelf3.[01]*)
20190 shlibpath_overrides_runpath=yes
20191 hardcode_into_libs=yes
20192 ;;
20193 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20194 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20195 shlibpath_overrides_runpath=no
20196 hardcode_into_libs=yes
20197 ;;
20198 *) # from 4.6 on, and DragonFly
20199 shlibpath_overrides_runpath=yes
20200 hardcode_into_libs=yes
20201 ;;
20202 esac
20203 ;;
20204
20205gnu*)
cristy99bd5232011-12-07 14:38:20 +000020206 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020207 need_lib_prefix=no
20208 need_version=no
20209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20210 soname_spec='${libname}${release}${shared_ext}$major'
20211 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020212 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020213 hardcode_into_libs=yes
20214 ;;
20215
cristy0c60a692010-11-04 01:09:47 +000020216haiku*)
cristy99bd5232011-12-07 14:38:20 +000020217 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020218 need_lib_prefix=no
20219 need_version=no
20220 dynamic_linker="$host_os runtime_loader"
20221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20222 soname_spec='${libname}${release}${shared_ext}$major'
20223 shlibpath_var=LIBRARY_PATH
20224 shlibpath_overrides_runpath=yes
20225 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20226 hardcode_into_libs=yes
20227 ;;
20228
cristy73bd4a52010-10-05 11:24:23 +000020229hpux9* | hpux10* | hpux11*)
20230 # Give a soname corresponding to the major version so that dld.sl refuses to
20231 # link against other versions.
20232 version_type=sunos
20233 need_lib_prefix=no
20234 need_version=no
20235 case $host_cpu in
20236 ia64*)
20237 shrext_cmds='.so'
20238 hardcode_into_libs=yes
20239 dynamic_linker="$host_os dld.so"
20240 shlibpath_var=LD_LIBRARY_PATH
20241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20243 soname_spec='${libname}${release}${shared_ext}$major'
20244 if test "X$HPUX_IA64_MODE" = X32; then
20245 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20246 else
20247 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20248 fi
20249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20250 ;;
20251 hppa*64*)
20252 shrext_cmds='.sl'
20253 hardcode_into_libs=yes
20254 dynamic_linker="$host_os dld.sl"
20255 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20258 soname_spec='${libname}${release}${shared_ext}$major'
20259 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20261 ;;
20262 *)
20263 shrext_cmds='.sl'
20264 dynamic_linker="$host_os dld.sl"
20265 shlibpath_var=SHLIB_PATH
20266 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20268 soname_spec='${libname}${release}${shared_ext}$major'
20269 ;;
20270 esac
cristy0c60a692010-11-04 01:09:47 +000020271 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020272 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020273 # or fails outright, so override atomically:
20274 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020275 ;;
20276
20277interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020278 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020279 need_lib_prefix=no
20280 need_version=no
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20282 soname_spec='${libname}${release}${shared_ext}$major'
20283 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20284 shlibpath_var=LD_LIBRARY_PATH
20285 shlibpath_overrides_runpath=no
20286 hardcode_into_libs=yes
20287 ;;
20288
20289irix5* | irix6* | nonstopux*)
20290 case $host_os in
20291 nonstopux*) version_type=nonstopux ;;
20292 *)
20293 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020294 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020295 else
20296 version_type=irix
20297 fi ;;
20298 esac
20299 need_lib_prefix=no
20300 need_version=no
20301 soname_spec='${libname}${release}${shared_ext}$major'
20302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20303 case $host_os in
20304 irix5* | nonstopux*)
20305 libsuff= shlibsuff=
20306 ;;
20307 *)
20308 case $LD in # libtool.m4 will add one of these switches to LD
20309 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20310 libsuff= shlibsuff= libmagic=32-bit;;
20311 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20312 libsuff=32 shlibsuff=N32 libmagic=N32;;
20313 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20314 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20315 *) libsuff= shlibsuff= libmagic=never-match;;
20316 esac
20317 ;;
20318 esac
20319 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20320 shlibpath_overrides_runpath=no
20321 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20322 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20323 hardcode_into_libs=yes
20324 ;;
20325
20326# No shared lib support for Linux oldld, aout, or coff.
20327linux*oldld* | linux*aout* | linux*coff*)
20328 dynamic_linker=no
20329 ;;
20330
cristy99bd5232011-12-07 14:38:20 +000020331# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020332linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020333 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020334 need_lib_prefix=no
20335 need_version=no
20336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20337 soname_spec='${libname}${release}${shared_ext}$major'
20338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20339 shlibpath_var=LD_LIBRARY_PATH
20340 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020341
cristy73bd4a52010-10-05 11:24:23 +000020342 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020343 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020344 $as_echo_n "(cached) " >&6
20345else
20346 lt_cv_shlibpath_overrides_runpath=no
20347 save_LDFLAGS=$LDFLAGS
20348 save_libdir=$libdir
20349 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20350 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020352/* end confdefs.h. */
20353
20354int
20355main ()
20356{
20357
20358 ;
20359 return 0;
20360}
20361_ACEOF
20362if ac_fn_cxx_try_link "$LINENO"; then :
20363 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020364 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020365fi
20366fi
20367rm -f core conftest.err conftest.$ac_objext \
20368 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020369 LDFLAGS=$save_LDFLAGS
20370 libdir=$save_libdir
20371
20372fi
20373
20374 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020375
20376 # This implies no fast_install, which is unacceptable.
20377 # Some rework will be needed to allow for fast_install
20378 # before this can be enabled.
20379 hardcode_into_libs=yes
20380
20381 # Add ABI-specific directories to the system library path.
20382 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20383
20384 # Append ld.so.conf contents to the search path
20385 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020386 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 +000020387 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020388
cristy73bd4a52010-10-05 11:24:23 +000020389 fi
20390
20391 # We used to test for /lib/ld.so.1 and disable shared libraries on
20392 # powerpc, because MkLinux only supported shared libraries with the
20393 # GNU dynamic linker. Since this was broken with cross compilers,
20394 # most powerpc-linux boxes support dynamic linking these days and
20395 # people can always --disable-shared, the test was removed, and we
20396 # assume the GNU/Linux dynamic linker is in use.
20397 dynamic_linker='GNU/Linux ld.so'
20398 ;;
20399
20400netbsd*)
20401 version_type=sunos
20402 need_lib_prefix=no
20403 need_version=no
20404 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20407 dynamic_linker='NetBSD (a.out) ld.so'
20408 else
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20410 soname_spec='${libname}${release}${shared_ext}$major'
20411 dynamic_linker='NetBSD ld.elf_so'
20412 fi
20413 shlibpath_var=LD_LIBRARY_PATH
20414 shlibpath_overrides_runpath=yes
20415 hardcode_into_libs=yes
20416 ;;
20417
20418newsos6)
cristy99bd5232011-12-07 14:38:20 +000020419 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20421 shlibpath_var=LD_LIBRARY_PATH
20422 shlibpath_overrides_runpath=yes
20423 ;;
20424
20425*nto* | *qnx*)
20426 version_type=qnx
20427 need_lib_prefix=no
20428 need_version=no
20429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20430 soname_spec='${libname}${release}${shared_ext}$major'
20431 shlibpath_var=LD_LIBRARY_PATH
20432 shlibpath_overrides_runpath=no
20433 hardcode_into_libs=yes
20434 dynamic_linker='ldqnx.so'
20435 ;;
20436
20437openbsd*)
20438 version_type=sunos
20439 sys_lib_dlsearch_path_spec="/usr/lib"
20440 need_lib_prefix=no
20441 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20442 case $host_os in
20443 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20444 *) need_version=no ;;
20445 esac
20446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20448 shlibpath_var=LD_LIBRARY_PATH
20449 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20450 case $host_os in
20451 openbsd2.[89] | openbsd2.[89].*)
20452 shlibpath_overrides_runpath=no
20453 ;;
20454 *)
20455 shlibpath_overrides_runpath=yes
20456 ;;
20457 esac
20458 else
20459 shlibpath_overrides_runpath=yes
20460 fi
20461 ;;
20462
20463os2*)
20464 libname_spec='$name'
20465 shrext_cmds=".dll"
20466 need_lib_prefix=no
20467 library_names_spec='$libname${shared_ext} $libname.a'
20468 dynamic_linker='OS/2 ld.exe'
20469 shlibpath_var=LIBPATH
20470 ;;
20471
20472osf3* | osf4* | osf5*)
20473 version_type=osf
20474 need_lib_prefix=no
20475 need_version=no
20476 soname_spec='${libname}${release}${shared_ext}$major'
20477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20478 shlibpath_var=LD_LIBRARY_PATH
20479 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20480 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20481 ;;
20482
20483rdos*)
20484 dynamic_linker=no
20485 ;;
20486
20487solaris*)
cristy99bd5232011-12-07 14:38:20 +000020488 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020489 need_lib_prefix=no
20490 need_version=no
20491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20492 soname_spec='${libname}${release}${shared_ext}$major'
20493 shlibpath_var=LD_LIBRARY_PATH
20494 shlibpath_overrides_runpath=yes
20495 hardcode_into_libs=yes
20496 # ldd complains unless libraries are executable
20497 postinstall_cmds='chmod +x $lib'
20498 ;;
20499
20500sunos4*)
20501 version_type=sunos
20502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20503 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20504 shlibpath_var=LD_LIBRARY_PATH
20505 shlibpath_overrides_runpath=yes
20506 if test "$with_gnu_ld" = yes; then
20507 need_lib_prefix=no
20508 fi
20509 need_version=yes
20510 ;;
20511
20512sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020513 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20515 soname_spec='${libname}${release}${shared_ext}$major'
20516 shlibpath_var=LD_LIBRARY_PATH
20517 case $host_vendor in
20518 sni)
20519 shlibpath_overrides_runpath=no
20520 need_lib_prefix=no
20521 runpath_var=LD_RUN_PATH
20522 ;;
20523 siemens)
20524 need_lib_prefix=no
20525 ;;
20526 motorola)
20527 need_lib_prefix=no
20528 need_version=no
20529 shlibpath_overrides_runpath=no
20530 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20531 ;;
20532 esac
20533 ;;
20534
20535sysv4*MP*)
20536 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020537 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020538 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20539 soname_spec='$libname${shared_ext}.$major'
20540 shlibpath_var=LD_LIBRARY_PATH
20541 fi
20542 ;;
20543
20544sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20545 version_type=freebsd-elf
20546 need_lib_prefix=no
20547 need_version=no
20548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20549 soname_spec='${libname}${release}${shared_ext}$major'
20550 shlibpath_var=LD_LIBRARY_PATH
20551 shlibpath_overrides_runpath=yes
20552 hardcode_into_libs=yes
20553 if test "$with_gnu_ld" = yes; then
20554 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20555 else
20556 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20557 case $host_os in
20558 sco3.2v5*)
20559 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20560 ;;
20561 esac
20562 fi
20563 sys_lib_dlsearch_path_spec='/usr/lib'
20564 ;;
20565
20566tpf*)
20567 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020568 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020569 need_lib_prefix=no
20570 need_version=no
20571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20572 shlibpath_var=LD_LIBRARY_PATH
20573 shlibpath_overrides_runpath=no
20574 hardcode_into_libs=yes
20575 ;;
20576
20577uts4*)
cristy99bd5232011-12-07 14:38:20 +000020578 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20580 soname_spec='${libname}${release}${shared_ext}$major'
20581 shlibpath_var=LD_LIBRARY_PATH
20582 ;;
20583
20584*)
20585 dynamic_linker=no
20586 ;;
20587esac
20588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20589$as_echo "$dynamic_linker" >&6; }
20590test "$dynamic_linker" = no && can_build_shared=no
20591
20592variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20593if test "$GCC" = yes; then
20594 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20595fi
20596
20597if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20598 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20599fi
20600if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20601 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20602fi
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
cristy0c60a692010-11-04 01:09:47 +000020639
20640
cristy73bd4a52010-10-05 11:24:23 +000020641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20642$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20643hardcode_action_CXX=
20644if test -n "$hardcode_libdir_flag_spec_CXX" ||
20645 test -n "$runpath_var_CXX" ||
20646 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20647
20648 # We can hardcode non-existent directories.
20649 if test "$hardcode_direct_CXX" != no &&
20650 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20651 # have to relink, otherwise we might link with an installed library
20652 # when we should be linking with a yet-to-be-installed one
20653 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20654 test "$hardcode_minus_L_CXX" != no; then
20655 # Linking always hardcodes the temporary library directory.
20656 hardcode_action_CXX=relink
20657 else
20658 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20659 hardcode_action_CXX=immediate
20660 fi
20661else
20662 # We cannot hardcode anything, or else we can only hardcode existing
20663 # directories.
20664 hardcode_action_CXX=unsupported
20665fi
20666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20667$as_echo "$hardcode_action_CXX" >&6; }
20668
20669if test "$hardcode_action_CXX" = relink ||
20670 test "$inherit_rpath_CXX" = yes; then
20671 # Fast installation is not supported
20672 enable_fast_install=no
20673elif test "$shlibpath_overrides_runpath" = yes ||
20674 test "$enable_shared" = no; then
20675 # Fast installation is not necessary
20676 enable_fast_install=needless
20677fi
20678
20679
20680
20681
20682
20683
20684
20685 fi # test -n "$compiler"
20686
20687 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020688 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020689 LDCXX=$LD
20690 LD=$lt_save_LD
20691 GCC=$lt_save_GCC
20692 with_gnu_ld=$lt_save_with_gnu_ld
20693 lt_cv_path_LDCXX=$lt_cv_path_LD
20694 lt_cv_path_LD=$lt_save_path_LD
20695 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20696 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20697fi # test "$_lt_caught_CXX_error" != yes
20698
20699ac_ext=c
20700ac_cpp='$CPP $CPPFLAGS'
20701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20703ac_compiler_gnu=$ac_cv_c_compiler_gnu
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
cristy99bd5232011-12-07 14:38:20 +000020717
20718
cristy73bd4a52010-10-05 11:24:23 +000020719 ac_config_commands="$ac_config_commands libtool"
20720
20721
20722
20723
20724# Only expand once:
20725
20726
20727
cristy3ed852e2009-09-05 21:47:34 +000020728
20729
cristy3ed852e2009-09-05 21:47:34 +000020730# Check to see if building shared libraries
20731libtool_build_shared_libs='no'
20732if test "$enable_shared" = 'yes'; then
20733 libtool_build_shared_libs='yes'
20734fi
20735
20736# Check to see if building static libraries
20737libtool_build_static_libs='no'
20738if test "$enable_static" = 'yes'; then
20739 libtool_build_static_libs='yes'
20740fi
20741
cristy73bd4a52010-10-05 11:24:23 +000020742 if test "${libtool_build_shared_libs}" = 'yes'; then
20743 WITH_SHARED_LIBS_TRUE=
20744 WITH_SHARED_LIBS_FALSE='#'
20745else
20746 WITH_SHARED_LIBS_TRUE='#'
20747 WITH_SHARED_LIBS_FALSE=
20748fi
20749
cristy3ed852e2009-09-05 21:47:34 +000020750#
20751# Enable support for building loadable modules
20752#
cristyaf4cbf32012-10-16 23:47:41 +000020753build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020754
20755# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020756if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020757 withval=$with_modules; with_modules=$withval
20758else
cristy5a1cefd2010-01-06 20:42:35 +000020759 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020760fi
20761
20762
20763# Only allow building loadable modules if we are building shared libraries
20764if test "$with_modules" != 'no' ; then
20765 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020766 { $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 +000020767$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020768 build_modules='no'
20769 else
20770 build_modules='yes'
20771 fi
cristy3ed852e2009-09-05 21:47:34 +000020772fi
cristyc6722092012-10-14 00:19:31 +000020773if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020774
cristy8b350f62009-11-15 23:12:43 +000020775$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020776
cristyfa161182012-12-19 15:45:28 +000020777 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020778fi
cristyc6722092012-10-14 00:19:31 +000020779 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020780 WITH_MODULES_TRUE=
20781 WITH_MODULES_FALSE='#'
20782else
20783 WITH_MODULES_TRUE='#'
20784 WITH_MODULES_FALSE=
20785fi
20786
cristy3ed852e2009-09-05 21:47:34 +000020787
cristy3ed852e2009-09-05 21:47:34 +000020788# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020789# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020790# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020791if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020792 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20793else
20794 enable_delegate_build='no'
20795fi
20796
20797
20798# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020799if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020800 enableval=$enable_deprecated; enable_deprecated=$enableval
20801else
20802 enable_deprecated='no'
20803fi
20804
20805
20806if test "$enable_deprecated" = 'yes'; then
20807
cristy8b350f62009-11-15 23:12:43 +000020808$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020809
20810else
20811 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20812fi
20813
20814# Build a version of ImageMagick which operates uninstalled.
20815# Used to build distributions located via MAGICK_HOME / executable path
20816# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020817if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020818 enableval=$enable_installed; enable_installed=$enableval
20819else
20820 enable_installed='yes'
20821fi
20822
20823
20824if test "$enable_installed" = 'yes'; then
20825
cristy8b350f62009-11-15 23:12:43 +000020826$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020827
20828else
20829 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20830fi
20831
20832# Permit enciphering and deciphering image pixels.
20833# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020834if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020835 enableval=$enable_cipher; enable_cipher=$enableval
20836else
20837 enable_cipher='yes'
20838fi
20839
20840
20841if test "$enable_cipher" = 'yes'; then
20842
cristy8b350f62009-11-15 23:12:43 +000020843$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020844
20845fi
20846
cristy6e3607c2011-09-13 13:59:17 +000020847# Build a zero-configuration version of ImageMagick.
20848# Check whether --enable-zero-configuration was given.
20849if test "${enable_zero_configuration+set}" = set; then :
20850 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020851else
cristy6e3607c2011-09-13 13:59:17 +000020852 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020853fi
20854
20855
cristy6e3607c2011-09-13 13:59:17 +000020856if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020857
cristy6e3607c2011-09-13 13:59:17 +000020858$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020859
cristy81af5702011-09-13 14:20:58 +000020860 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020861fi
20862
20863# Build a high dynamic range version of ImageMagick.
20864# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020865if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020866 enableval=$enable_hdri; enable_hdri=$enableval
20867else
cristy191c0b72012-08-12 16:29:52 +000020868 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020869fi
20870
20871
20872MAGICK_HDRI=""
20873if test "$enable_hdri" = 'yes'; then
20874 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000020875 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000020876 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000020877else
20878 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000020879fi
20880
cristye52f12f2012-12-31 15:32:36 +000020881cat >>confdefs.h <<_ACEOF
20882#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
20883_ACEOF
20884
20885MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
20886CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000020887CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000020888
cristy3ed852e2009-09-05 21:47:34 +000020889# Build a version of ImageMagick with assert statements.
20890# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020891if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020892 enableval=$enable_assert; enable_assert=$enableval
20893else
20894 enable_assert='yes'
20895fi
20896
20897
20898if test "$enable_assert" = 'no'; then
20899
cristy8b350f62009-11-15 23:12:43 +000020900$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020901
20902fi
20903
cristya448bd22011-10-14 12:38:13 +000020904# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000020905
20906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20907$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20908 # Check whether --enable-maintainer-mode was given.
20909if test "${enable_maintainer_mode+set}" = set; then :
20910 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20911else
20912 USE_MAINTAINER_MODE=no
20913fi
20914
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20916$as_echo "$USE_MAINTAINER_MODE" >&6; }
20917 if test $USE_MAINTAINER_MODE = yes; then
20918 MAINTAINER_MODE_TRUE=
20919 MAINTAINER_MODE_FALSE='#'
20920else
20921 MAINTAINER_MODE_TRUE='#'
20922 MAINTAINER_MODE_FALSE=
20923fi
20924
20925 MAINT=$MAINTAINER_MODE_TRUE
20926
20927
cristy3ed852e2009-09-05 21:47:34 +000020928
cristy3ed852e2009-09-05 21:47:34 +000020929# Enable ccmalloc memory debugging support
20930# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020931if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020932 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20933else
20934 enable_ccmalloc='no'
20935fi
20936
20937
20938# Enable Electric Fence memory debugging support
20939# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020940if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020941 enableval=$enable_efence; enable_efence=$enableval
20942else
20943 enable_efence='no'
20944fi
20945
20946
20947# Enable prof-based profiling support
20948# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020949if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020950 enableval=$enable_prof; enable_prof=$enableval
20951else
20952 enable_prof='no'
20953fi
20954
20955
20956# Enable gprof-based profiling support
20957# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020958if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020959 enableval=$enable_gprof; enable_gprof=$enableval
20960else
20961 enable_gprof='no'
20962fi
20963
20964
20965# Enable gcov-based profiling support
20966# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020967if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020968 enableval=$enable_gcov; enable_gcov=$enableval
20969else
20970 enable_gcov='no'
20971fi
20972
20973
20974enable_profiling='no'
20975if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20976 enable_profiling='yes'
20977 if test "$libtool_build_shared_libs" = 'yes'; then
20978 echo "Warning: Can not profile code using shared libraries"
20979 fi
20980fi
20981
20982# Magick API method prefix
20983
20984# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020985if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000020986 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000020987else
cristyfc3d0222012-02-07 15:05:57 +000020988 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000020989fi
20990
20991
cristyfc3d0222012-02-07 15:05:57 +000020992if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000020993
20994cat >>confdefs.h <<_ACEOF
20995#define NAMESPACE_PREFIX $with_method_prefix
20996_ACEOF
20997
cristyfc3d0222012-02-07 15:05:57 +000020998 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000020999fi
21000
cristy71d8c202012-03-20 17:05:01 +000021001# Enable legacy support (default no)
21002# Check whether --enable-legacy-support was given.
21003if test "${enable_legacy_support+set}" = set; then :
21004 enableval=$enable_legacy_support; with_legacy_support=$enableval
21005else
21006 with_legacy_support='no'
21007fi
21008
21009 if test "$with_legacy_support" != 'no'; then
21010 LEGACY_SUPPORT_TRUE=
21011 LEGACY_SUPPORT_FALSE='#'
21012else
21013 LEGACY_SUPPORT_TRUE='#'
21014 LEGACY_SUPPORT_FALSE=
21015fi
21016
21017
cristy3ed852e2009-09-05 21:47:34 +000021018# Number of bits in a Quantum
21019
21020# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021021if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021022 withval=$with_quantum_depth; with_quantum_depth=$withval
21023else
21024 with_quantum_depth=16
21025fi
21026
21027
21028if test "$with_quantum_depth" != '8'; then
21029 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21030fi
21031
21032case "${with_quantum_depth}" in
21033 8 ) ;;
21034 16 ) ;;
21035 32 ) ;;
21036 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021037 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021038esac
21039QUANTUM_DEPTH="$with_quantum_depth"
21040
21041cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021042#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021043_ACEOF
21044
cristya371edf2013-02-06 13:42:17 +000021045MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021046CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021047CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021048
cristy01ff9f32012-12-01 18:15:29 +000021049# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021050MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021051if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021052 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021053fi
cristy01ff9f32012-12-01 18:15:29 +000021054
21055
cristy3ed852e2009-09-05 21:47:34 +000021056# Set pixel cache threshold
21057
21058# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021059if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021060 withval=$with_cache; with_cache=$withval
21061else
21062 with_cache=''
21063fi
21064
21065
21066if test "$with_cache" != ''; then
21067
21068cat >>confdefs.h <<_ACEOF
21069#define PixelCacheThreshold $with_cache
21070_ACEOF
21071
21072 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21073fi
21074
21075# Disable/Enable support for full delegate paths
21076
21077# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021078if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021079 withval=$with_frozenpaths; with_frozenpaths=$withval
21080else
21081 with_frozenpaths='no'
21082fi
21083
21084
21085# Enable build/install of Magick++
21086
21087# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021088if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021089 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21090else
21091 with_magick_plus_plus='yes'
21092fi
21093
21094
cristy3a75f062012-09-08 23:29:40 +000021095# Encode the this name into the shared library.
21096
21097# Check whether --with-package-release-name was given.
21098if test "${with_package_release_name+set}" = set; then :
21099 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21100fi
21101
21102
21103
cristy3ed852e2009-09-05 21:47:34 +000021104# Disable build/install of PerlMagick.
21105
21106# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021107if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021108 withval=$with_perl; with_perl=$withval
21109else
cristyb5f4e2f2010-04-25 00:49:11 +000021110 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021111fi
21112
21113
21114# Options to pass when configuring PerlMagick
21115
21116# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021117if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021118 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021119fi
21120
21121
cristy3ed852e2009-09-05 21:47:34 +000021122
21123# Enable umem, object-caching memory allocation library.
21124
21125# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021126if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021127 withval=$with_umem; with_umem=$withval
21128else
21129 with_umem='no'
21130fi
21131
21132if test "$with_umem" != 'yes' ; then
21133 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21134fi
21135
21136#
21137# Specify path to shared libstdc++ if not in normal location
21138#
21139
21140# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021141if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021142 withval=$with_libstdc; with_libstdc=$withval
21143else
21144 with_libstdc=''
21145fi
21146
21147
21148if test "$with_libstdc" != ''; then
21149 if test -d "$with_libstdc"; then
21150 LIBSTDCLDFLAGS="-L$with_libstdc"
21151 fi
21152fi
21153
21154
21155# Does gcc required -traditional?
21156if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021158$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021159if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021160 $as_echo_n "(cached) " >&6
21161else
21162 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021164/* end confdefs.h. */
21165#include <sgtty.h>
21166Autoconf TIOCGETP
21167_ACEOF
21168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021169 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021170 ac_cv_prog_gcc_traditional=yes
21171else
21172 ac_cv_prog_gcc_traditional=no
21173fi
21174rm -f conftest*
21175
21176
21177 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021179/* end confdefs.h. */
21180#include <termio.h>
21181Autoconf TCGETA
21182_ACEOF
21183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021184 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021185 ac_cv_prog_gcc_traditional=yes
21186fi
21187rm -f conftest*
21188
21189 fi
21190fi
cristy8b350f62009-11-15 23:12:43 +000021191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021192$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21193 if test $ac_cv_prog_gcc_traditional = yes; then
21194 CC="$CC -traditional"
21195 fi
21196fi
21197
21198
21199########
21200#
21201# Set defines required to build DLLs and modules using MinGW
21202#
21203########
21204# These options are set for multi-thread DLL module build
21205# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21206# module: _DLL
21207# executable/Magick++: _DLL _MAGICKMOD_
21208MODULE_EXTRA_CPPFLAGS=''
21209LIBRARY_EXTRA_CPPFLAGS=''
21210if test "${native_win32_build}" = 'yes'; then
21211 if test "${libtool_build_shared_libs}" = 'yes'; then
21212 CPPFLAGS="$CPPFLAGS -D_DLL"
21213 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21214 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21215 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021216 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021217 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21218 else
21219 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21220 fi
21221 else
21222 CPPFLAGS="$CPPFLAGS -D_LIB"
21223 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21224 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21225 fi
21226 if test "$with_threads" = 'yes'; then
21227 CPPFLAGS="$CPPFLAGS -D_MT"
21228 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21229 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21230 fi
21231fi
21232
21233
21234
21235# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021237$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021238if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021239 $as_echo_n "(cached) " >&6
21240else
cristy8b350f62009-11-15 23:12:43 +000021241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021242/* end confdefs.h. */
21243#include <stdlib.h>
21244#include <stdarg.h>
21245#include <string.h>
21246#include <float.h>
21247
21248int
21249main ()
21250{
21251
21252 ;
21253 return 0;
21254}
21255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021256if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021257 ac_cv_header_stdc=yes
21258else
cristy8b350f62009-11-15 23:12:43 +000021259 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021260fi
cristy3ed852e2009-09-05 21:47:34 +000021261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21262
21263if test $ac_cv_header_stdc = yes; then
21264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021266/* end confdefs.h. */
21267#include <string.h>
21268
21269_ACEOF
21270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021271 $EGREP "memchr" >/dev/null 2>&1; then :
21272
cristy3ed852e2009-09-05 21:47:34 +000021273else
21274 ac_cv_header_stdc=no
21275fi
21276rm -f conftest*
21277
21278fi
21279
21280if test $ac_cv_header_stdc = yes; then
21281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021283/* end confdefs.h. */
21284#include <stdlib.h>
21285
21286_ACEOF
21287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021288 $EGREP "free" >/dev/null 2>&1; then :
21289
cristy3ed852e2009-09-05 21:47:34 +000021290else
21291 ac_cv_header_stdc=no
21292fi
21293rm -f conftest*
21294
21295fi
21296
21297if test $ac_cv_header_stdc = yes; then
21298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021299 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021300 :
21301else
cristy8b350f62009-11-15 23:12:43 +000021302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021303/* end confdefs.h. */
21304#include <ctype.h>
21305#include <stdlib.h>
21306#if ((' ' & 0x0FF) == 0x020)
21307# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21308# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21309#else
21310# define ISLOWER(c) \
21311 (('a' <= (c) && (c) <= 'i') \
21312 || ('j' <= (c) && (c) <= 'r') \
21313 || ('s' <= (c) && (c) <= 'z'))
21314# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21315#endif
21316
21317#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21318int
21319main ()
21320{
21321 int i;
21322 for (i = 0; i < 256; i++)
21323 if (XOR (islower (i), ISLOWER (i))
21324 || toupper (i) != TOUPPER (i))
21325 return 2;
21326 return 0;
21327}
21328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021329if ac_fn_c_try_run "$LINENO"; then :
21330
cristy3ed852e2009-09-05 21:47:34 +000021331else
cristy8b350f62009-11-15 23:12:43 +000021332 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021333fi
cristy8b350f62009-11-15 23:12:43 +000021334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21335 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021336fi
21337
cristy3ed852e2009-09-05 21:47:34 +000021338fi
21339fi
cristy8b350f62009-11-15 23:12:43 +000021340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021341$as_echo "$ac_cv_header_stdc" >&6; }
21342if test $ac_cv_header_stdc = yes; then
21343
cristy8b350f62009-11-15 23:12:43 +000021344$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021345
21346fi
21347
21348if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021349 { $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 +000021350 header files. Compilation cannot proceed. Please install the ANSI C
21351 headers and rerun this script." >&5
21352$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21353 header files. Compilation cannot proceed. Please install the ANSI C
21354 headers and rerun this script." >&2;};
21355fi
cristya0b81c32010-01-22 02:54:33 +000021356
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21358$as_echo_n "checking whether to enable assertions... " >&6; }
21359 # Check whether --enable-assert was given.
21360if test "${enable_assert+set}" = set; then :
21361 enableval=$enable_assert; ac_enable_assert=$enableval
21362 if test "x$enableval" = xno; then :
21363
21364$as_echo "#define NDEBUG 1" >>confdefs.h
21365
21366elif test "x$enableval" != xyes; then :
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21368$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21369 ac_enable_assert=yes
21370fi
21371else
21372 ac_enable_assert=yes
21373fi
21374
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21376$as_echo "$ac_enable_assert" >&6; }
21377
cristy3ed852e2009-09-05 21:47:34 +000021378ac_header_dirent=no
21379for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21380 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021382$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021383if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021384 $as_echo_n "(cached) " >&6
21385else
cristy8b350f62009-11-15 23:12:43 +000021386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021387/* end confdefs.h. */
21388#include <sys/types.h>
21389#include <$ac_hdr>
21390
21391int
21392main ()
21393{
21394if ((DIR *) 0)
21395return 0;
21396 ;
21397 return 0;
21398}
21399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021400if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021401 eval "$as_ac_Header=yes"
21402else
cristy8b350f62009-11-15 23:12:43 +000021403 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021404fi
cristy3ed852e2009-09-05 21:47:34 +000021405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21406fi
cristy8b350f62009-11-15 23:12:43 +000021407eval ac_res=\$$as_ac_Header
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021409$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021410if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021411 cat >>confdefs.h <<_ACEOF
21412#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21413_ACEOF
21414
21415ac_header_dirent=$ac_hdr; break
21416fi
21417
21418done
21419# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21420if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021422$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021423if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021424 $as_echo_n "(cached) " >&6
21425else
21426 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021428/* end confdefs.h. */
21429
21430/* Override any GCC internal prototype to avoid an error.
21431 Use char because int might match the return type of a GCC
21432 builtin and then its argument prototype would still apply. */
21433#ifdef __cplusplus
21434extern "C"
21435#endif
21436char opendir ();
21437int
21438main ()
21439{
21440return opendir ();
21441 ;
21442 return 0;
21443}
21444_ACEOF
21445for ac_lib in '' dir; do
21446 if test -z "$ac_lib"; then
21447 ac_res="none required"
21448 else
21449 ac_res=-l$ac_lib
21450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21451 fi
cristy8b350f62009-11-15 23:12:43 +000021452 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021453 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021454fi
cristy8b350f62009-11-15 23:12:43 +000021455rm -f core conftest.err conftest.$ac_objext \
21456 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021457 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021458 break
21459fi
21460done
cristyda16f162011-02-19 23:52:17 +000021461if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021462
cristy3ed852e2009-09-05 21:47:34 +000021463else
21464 ac_cv_search_opendir=no
21465fi
21466rm conftest.$ac_ext
21467LIBS=$ac_func_search_save_LIBS
21468fi
cristy8b350f62009-11-15 23:12:43 +000021469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021470$as_echo "$ac_cv_search_opendir" >&6; }
21471ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021472if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21474
21475fi
21476
21477else
cristy8b350f62009-11-15 23:12:43 +000021478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021479$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021480if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021481 $as_echo_n "(cached) " >&6
21482else
21483 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021485/* end confdefs.h. */
21486
21487/* Override any GCC internal prototype to avoid an error.
21488 Use char because int might match the return type of a GCC
21489 builtin and then its argument prototype would still apply. */
21490#ifdef __cplusplus
21491extern "C"
21492#endif
21493char opendir ();
21494int
21495main ()
21496{
21497return opendir ();
21498 ;
21499 return 0;
21500}
21501_ACEOF
21502for ac_lib in '' x; do
21503 if test -z "$ac_lib"; then
21504 ac_res="none required"
21505 else
21506 ac_res=-l$ac_lib
21507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21508 fi
cristy8b350f62009-11-15 23:12:43 +000021509 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021510 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021511fi
cristy8b350f62009-11-15 23:12:43 +000021512rm -f core conftest.err conftest.$ac_objext \
21513 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021514 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021515 break
21516fi
21517done
cristyda16f162011-02-19 23:52:17 +000021518if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021519
cristy3ed852e2009-09-05 21:47:34 +000021520else
21521 ac_cv_search_opendir=no
21522fi
21523rm conftest.$ac_ext
21524LIBS=$ac_func_search_save_LIBS
21525fi
cristy8b350f62009-11-15 23:12:43 +000021526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021527$as_echo "$ac_cv_search_opendir" >&6; }
21528ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021529if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21531
21532fi
21533
21534fi
21535
21536
21537# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021538for 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 +000021539do :
21540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21541ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021542if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021543 cat >>confdefs.h <<_ACEOF
21544#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21545_ACEOF
21546
21547fi
21548
21549done
21550
21551
21552########
21553#
21554# Checks for typedefs, structures, and compiler characteristics.
21555#
21556########
21557
cristy8b350f62009-11-15 23:12:43 +000021558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021559$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021560if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021561 $as_echo_n "(cached) " >&6
21562else
cristy8b350f62009-11-15 23:12:43 +000021563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021564/* end confdefs.h. */
21565
cristy14fefe52012-05-21 00:59:18 +000021566 #include <stdbool.h>
21567 #ifndef bool
21568 "error: bool is not defined"
21569 #endif
21570 #ifndef false
21571 "error: false is not defined"
21572 #endif
21573 #if false
21574 "error: false is not 0"
21575 #endif
21576 #ifndef true
21577 "error: true is not defined"
21578 #endif
21579 #if true != 1
21580 "error: true is not 1"
21581 #endif
21582 #ifndef __bool_true_false_are_defined
21583 "error: __bool_true_false_are_defined is not defined"
21584 #endif
cristy3ed852e2009-09-05 21:47:34 +000021585
cristy14fefe52012-05-21 00:59:18 +000021586 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021587
cristy14fefe52012-05-21 00:59:18 +000021588 char a[true == 1 ? 1 : -1];
21589 char b[false == 0 ? 1 : -1];
21590 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21591 char d[(bool) 0.5 == true ? 1 : -1];
21592 /* See body of main program for 'e'. */
21593 char f[(_Bool) 0.0 == false ? 1 : -1];
21594 char g[true];
21595 char h[sizeof (_Bool)];
21596 char i[sizeof s.t];
21597 enum { j = false, k = true, l = false * true, m = true * 256 };
21598 /* The following fails for
21599 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21600 _Bool n[m];
21601 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21602 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21603 /* Catch a bug in an HP-UX C compiler. See
21604 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21605 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21606 */
21607 _Bool q = true;
21608 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021609
21610int
21611main ()
21612{
21613
cristy14fefe52012-05-21 00:59:18 +000021614 bool e = &s;
21615 *pq |= q;
21616 *pq |= ! q;
21617 /* Refer to every declared value, to avoid compiler optimizations. */
21618 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21619 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021620
21621 ;
21622 return 0;
21623}
21624_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021625if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021626 ac_cv_header_stdbool_h=yes
21627else
cristy8b350f62009-11-15 23:12:43 +000021628 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021629fi
cristy3ed852e2009-09-05 21:47:34 +000021630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21631fi
cristy8b350f62009-11-15 23:12:43 +000021632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021633$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021634 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021635if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021636
21637cat >>confdefs.h <<_ACEOF
21638#define HAVE__BOOL 1
21639_ACEOF
21640
21641
21642fi
21643
cristy14fefe52012-05-21 00:59:18 +000021644
cristy3ed852e2009-09-05 21:47:34 +000021645if test $ac_cv_header_stdbool_h = yes; then
21646
cristy8b350f62009-11-15 23:12:43 +000021647$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021648
21649fi
21650
cristy8b350f62009-11-15 23:12:43 +000021651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021652$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021653if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021654 $as_echo_n "(cached) " >&6
21655else
cristy8b350f62009-11-15 23:12:43 +000021656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021657/* end confdefs.h. */
21658
21659int
21660main ()
21661{
21662
21663volatile int x;
21664int * volatile y = (int *) 0;
21665return !x && !y;
21666 ;
21667 return 0;
21668}
21669_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021670if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021671 ac_cv_c_volatile=yes
21672else
cristy8b350f62009-11-15 23:12:43 +000021673 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021674fi
cristy3ed852e2009-09-05 21:47:34 +000021675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21676fi
cristy8b350f62009-11-15 23:12:43 +000021677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021678$as_echo "$ac_cv_c_volatile" >&6; }
21679if test $ac_cv_c_volatile = no; then
21680
cristy8b350f62009-11-15 23:12:43 +000021681$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021682
21683fi
21684
cristy8b350f62009-11-15 23:12:43 +000021685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021686$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021687if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021688 $as_echo_n "(cached) " >&6
21689else
cristy8b350f62009-11-15 23:12:43 +000021690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021691/* end confdefs.h. */
21692#define x(y) #y
21693
21694char *s = x(teststring);
21695_ACEOF
21696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021697 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021698 ac_cv_c_stringize=no
21699else
21700 ac_cv_c_stringize=yes
21701fi
21702rm -f conftest*
21703
21704fi
cristy8b350f62009-11-15 23:12:43 +000021705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021706$as_echo "$ac_cv_c_stringize" >&6; }
21707if test $ac_cv_c_stringize = yes; then
21708
cristy8b350f62009-11-15 23:12:43 +000021709$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021710
21711fi
21712
cristy8b350f62009-11-15 23:12:43 +000021713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021714$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021715if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021716 $as_echo_n "(cached) " >&6
21717else
cristy8b350f62009-11-15 23:12:43 +000021718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021719/* end confdefs.h. */
21720#include <sys/types.h>
21721#include <sys/stat.h>
21722
21723#if defined S_ISBLK && defined S_IFDIR
21724extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21725#endif
21726
21727#if defined S_ISBLK && defined S_IFCHR
21728extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21729#endif
21730
21731#if defined S_ISLNK && defined S_IFREG
21732extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21733#endif
21734
21735#if defined S_ISSOCK && defined S_IFREG
21736extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21737#endif
21738
21739_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021740if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021741 ac_cv_header_stat_broken=no
21742else
cristy8b350f62009-11-15 23:12:43 +000021743 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021744fi
cristy3ed852e2009-09-05 21:47:34 +000021745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21746fi
cristy8b350f62009-11-15 23:12:43 +000021747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021748$as_echo "$ac_cv_header_stat_broken" >&6; }
21749if test $ac_cv_header_stat_broken = yes; then
21750
cristy8b350f62009-11-15 23:12:43 +000021751$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021752
21753fi
21754
cristy8b350f62009-11-15 23:12:43 +000021755{ $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 +000021756$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021757if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021758 $as_echo_n "(cached) " >&6
21759else
cristy8b350f62009-11-15 23:12:43 +000021760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021761/* end confdefs.h. */
21762#include <sys/types.h>
21763#include <sys/time.h>
21764#include <time.h>
21765
21766int
21767main ()
21768{
21769if ((struct tm *) 0)
21770return 0;
21771 ;
21772 return 0;
21773}
21774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021775if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021776 ac_cv_header_time=yes
21777else
cristy8b350f62009-11-15 23:12:43 +000021778 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021779fi
cristy3ed852e2009-09-05 21:47:34 +000021780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21781fi
cristy8b350f62009-11-15 23:12:43 +000021782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021783$as_echo "$ac_cv_header_time" >&6; }
21784if test $ac_cv_header_time = yes; then
21785
cristy8b350f62009-11-15 23:12:43 +000021786$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021787
21788fi
21789
cristy8b350f62009-11-15 23:12:43 +000021790{ $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 +000021791$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021792if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021793 $as_echo_n "(cached) " >&6
21794else
cristy8b350f62009-11-15 23:12:43 +000021795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021796/* end confdefs.h. */
21797#include <sys/types.h>
21798#include <time.h>
21799
21800int
21801main ()
21802{
21803struct tm tm;
21804 int *p = &tm.tm_sec;
21805 return !p;
21806 ;
21807 return 0;
21808}
21809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021810if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021811 ac_cv_struct_tm=time.h
21812else
cristy8b350f62009-11-15 23:12:43 +000021813 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021814fi
cristy3ed852e2009-09-05 21:47:34 +000021815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21816fi
cristy8b350f62009-11-15 23:12:43 +000021817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021818$as_echo "$ac_cv_struct_tm" >&6; }
21819if test $ac_cv_struct_tm = sys/time.h; then
21820
cristy8b350f62009-11-15 23:12:43 +000021821$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021822
21823fi
21824
cristy92703d82010-04-26 00:18:18 +000021825ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21826#include <$ac_cv_struct_tm>
21827
21828"
cristyda16f162011-02-19 23:52:17 +000021829if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021830
21831cat >>confdefs.h <<_ACEOF
21832#define HAVE_STRUCT_TM_TM_ZONE 1
21833_ACEOF
21834
21835
21836fi
21837
21838if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21839
21840$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21841
21842else
21843 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21844"
cristyda16f162011-02-19 23:52:17 +000021845if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021846 ac_have_decl=1
21847else
21848 ac_have_decl=0
21849fi
21850
21851cat >>confdefs.h <<_ACEOF
21852#define HAVE_DECL_TZNAME $ac_have_decl
21853_ACEOF
21854
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21856$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021857if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021858 $as_echo_n "(cached) " >&6
21859else
21860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21861/* end confdefs.h. */
21862#include <time.h>
21863#if !HAVE_DECL_TZNAME
21864extern char *tzname[];
21865#endif
21866
21867int
21868main ()
21869{
21870return tzname[0][0];
21871 ;
21872 return 0;
21873}
21874_ACEOF
21875if ac_fn_c_try_link "$LINENO"; then :
21876 ac_cv_var_tzname=yes
21877else
21878 ac_cv_var_tzname=no
21879fi
21880rm -f core conftest.err conftest.$ac_objext \
21881 conftest$ac_exeext conftest.$ac_ext
21882fi
21883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21884$as_echo "$ac_cv_var_tzname" >&6; }
21885 if test $ac_cv_var_tzname = yes; then
21886
21887$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21888
21889 fi
21890fi
21891
cristy8b350f62009-11-15 23:12:43 +000021892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021893$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021894if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021895 $as_echo_n "(cached) " >&6
21896else
21897 echo '#! /bin/cat
21898exit 69
21899' >conftest
21900chmod u+x conftest
21901(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21902if test $? -ne 69; then
21903 ac_cv_sys_interpreter=yes
21904else
21905 ac_cv_sys_interpreter=no
21906fi
21907rm -f conftest
21908fi
cristy8b350f62009-11-15 23:12:43 +000021909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021910$as_echo "$ac_cv_sys_interpreter" >&6; }
21911interpval=$ac_cv_sys_interpreter
21912
21913
cristye80f9cb2013-01-09 01:09:31 +000021914#
21915# Checks for language qualifiers and semantics.
21916#
21917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21918$as_echo_n "checking whether char is unsigned... " >&6; }
21919if ${ac_cv_c_char_unsigned+:} false; then :
21920 $as_echo_n "(cached) " >&6
21921else
21922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21923/* end confdefs.h. */
21924$ac_includes_default
21925int
21926main ()
21927{
21928static int test_array [1 - 2 * !(((char) -1) < 0)];
21929test_array [0] = 0;
21930return test_array [0];
21931
21932 ;
21933 return 0;
21934}
21935_ACEOF
21936if ac_fn_c_try_compile "$LINENO"; then :
21937 ac_cv_c_char_unsigned=no
21938else
21939 ac_cv_c_char_unsigned=yes
21940fi
21941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21942fi
21943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21944$as_echo "$ac_cv_c_char_unsigned" >&6; }
21945if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21946 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21947
21948fi
21949
21950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21951$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21952if ${ac_cv_c_const+:} false; then :
21953 $as_echo_n "(cached) " >&6
21954else
21955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21956/* end confdefs.h. */
21957
21958int
21959main ()
21960{
21961
21962#ifndef __cplusplus
21963 /* Ultrix mips cc rejects this sort of thing. */
21964 typedef int charset[2];
21965 const charset cs = { 0, 0 };
21966 /* SunOS 4.1.1 cc rejects this. */
21967 char const *const *pcpcc;
21968 char **ppc;
21969 /* NEC SVR4.0.2 mips cc rejects this. */
21970 struct point {int x, y;};
21971 static struct point const zero = {0,0};
21972 /* AIX XL C 1.02.0.0 rejects this.
21973 It does not let you subtract one const X* pointer from another in
21974 an arm of an if-expression whose if-part is not a constant
21975 expression */
21976 const char *g = "string";
21977 pcpcc = &g + (g ? g-g : 0);
21978 /* HPUX 7.0 cc rejects these. */
21979 ++pcpcc;
21980 ppc = (char**) pcpcc;
21981 pcpcc = (char const *const *) ppc;
21982 { /* SCO 3.2v4 cc rejects this sort of thing. */
21983 char tx;
21984 char *t = &tx;
21985 char const *s = 0 ? (char *) 0 : (char const *) 0;
21986
21987 *t++ = 0;
21988 if (s) return 0;
21989 }
21990 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21991 int x[] = {25, 17};
21992 const int *foo = &x[0];
21993 ++foo;
21994 }
21995 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21996 typedef const int *iptr;
21997 iptr p = 0;
21998 ++p;
21999 }
22000 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22001 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22002 struct s { int j; const int *ap[3]; } bx;
22003 struct s *b = &bx; b->j = 5;
22004 }
22005 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22006 const int foo = 10;
22007 if (!foo) return 0;
22008 }
22009 return !cs[0] && !zero.x;
22010#endif
22011
22012 ;
22013 return 0;
22014}
22015_ACEOF
22016if ac_fn_c_try_compile "$LINENO"; then :
22017 ac_cv_c_const=yes
22018else
22019 ac_cv_c_const=no
22020fi
22021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22022fi
22023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22024$as_echo "$ac_cv_c_const" >&6; }
22025if test $ac_cv_c_const = no; then
22026
22027$as_echo "#define const /**/" >>confdefs.h
22028
22029fi
22030
cristy8b350f62009-11-15 23:12:43 +000022031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022032$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022033if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022034 $as_echo_n "(cached) " >&6
22035else
22036 ac_cv_c_inline=no
22037for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022039/* end confdefs.h. */
22040#ifndef __cplusplus
22041typedef int foo_t;
22042static $ac_kw foo_t static_foo () {return 0; }
22043$ac_kw foo_t foo () {return 0; }
22044#endif
22045
22046_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022047if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022048 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022049fi
cristy3ed852e2009-09-05 21:47:34 +000022050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22051 test "$ac_cv_c_inline" != no && break
22052done
22053
22054fi
cristy8b350f62009-11-15 23:12:43 +000022055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022056$as_echo "$ac_cv_c_inline" >&6; }
22057
cristy3ed852e2009-09-05 21:47:34 +000022058case $ac_cv_c_inline in
22059 inline | yes) ;;
22060 *)
22061 case $ac_cv_c_inline in
22062 no) ac_val=;;
22063 *) ac_val=$ac_cv_c_inline;;
22064 esac
22065 cat >>confdefs.h <<_ACEOF
22066#ifndef __cplusplus
22067#define inline $ac_val
22068#endif
22069_ACEOF
22070 ;;
22071esac
22072
cristy8b350f62009-11-15 23:12:43 +000022073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022074$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022075if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022076 $as_echo_n "(cached) " >&6
22077else
22078 ac_cv_c_restrict=no
22079 # The order here caters to the fact that C++ does not require restrict.
22080 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022082/* end confdefs.h. */
22083typedef int * int_ptr;
22084 int foo (int_ptr $ac_kw ip) {
22085 return ip[0];
22086 }
22087int
22088main ()
22089{
22090int s[1];
22091 int * $ac_kw t = s;
22092 t[0] = 0;
22093 return foo(t)
22094 ;
22095 return 0;
22096}
22097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022098if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022099 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022100fi
cristy3ed852e2009-09-05 21:47:34 +000022101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22102 test "$ac_cv_c_restrict" != no && break
22103 done
22104
22105fi
cristy8b350f62009-11-15 23:12:43 +000022106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022107$as_echo "$ac_cv_c_restrict" >&6; }
22108
cristy3ed852e2009-09-05 21:47:34 +000022109 case $ac_cv_c_restrict in
22110 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022111 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022112 ;;
22113 *) cat >>confdefs.h <<_ACEOF
22114#define restrict $ac_cv_c_restrict
22115_ACEOF
22116 ;;
22117 esac
22118
cristye80f9cb2013-01-09 01:09:31 +000022119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22120$as_echo_n "checking for working volatile... " >&6; }
22121if ${ac_cv_c_volatile+:} false; then :
22122 $as_echo_n "(cached) " >&6
22123else
22124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22125/* end confdefs.h. */
22126
22127int
22128main ()
22129{
22130
22131volatile int x;
22132int * volatile y = (int *) 0;
22133return !x && !y;
22134 ;
22135 return 0;
22136}
22137_ACEOF
22138if ac_fn_c_try_compile "$LINENO"; then :
22139 ac_cv_c_volatile=yes
22140else
22141 ac_cv_c_volatile=no
22142fi
22143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144fi
22145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22146$as_echo "$ac_cv_c_volatile" >&6; }
22147if test $ac_cv_c_volatile = no; then
22148
22149$as_echo "#define volatile /**/" >>confdefs.h
22150
22151fi
22152
cristy3ed852e2009-09-05 21:47:34 +000022153
22154# If words are stored with the most significant byte first (like
22155# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022157$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022158if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022159 $as_echo_n "(cached) " >&6
22160else
22161 ac_cv_c_bigendian=unknown
22162 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022164/* end confdefs.h. */
22165#ifndef __APPLE_CC__
22166 not a universal capable compiler
22167 #endif
22168 typedef int dummy;
22169
22170_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022171if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022172
22173 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022174 # there are at least two -arch flags with different values.
22175 ac_arch=
22176 ac_prev=
22177 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22178 if test -n "$ac_prev"; then
22179 case $ac_word in
22180 i?86 | x86_64 | ppc | ppc64)
22181 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22182 ac_arch=$ac_word
22183 else
22184 ac_cv_c_bigendian=universal
22185 break
22186 fi
22187 ;;
22188 esac
22189 ac_prev=
22190 elif test "x$ac_word" = "x-arch"; then
22191 ac_prev=arch
22192 fi
22193 done
cristy3ed852e2009-09-05 21:47:34 +000022194fi
cristy3ed852e2009-09-05 21:47:34 +000022195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22196 if test $ac_cv_c_bigendian = unknown; then
22197 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022199/* end confdefs.h. */
22200#include <sys/types.h>
22201 #include <sys/param.h>
22202
22203int
22204main ()
22205{
22206#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22207 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22208 && LITTLE_ENDIAN)
22209 bogus endian macros
22210 #endif
22211
22212 ;
22213 return 0;
22214}
22215_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022216if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022217 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022219/* end confdefs.h. */
22220#include <sys/types.h>
22221 #include <sys/param.h>
22222
22223int
22224main ()
22225{
22226#if BYTE_ORDER != BIG_ENDIAN
22227 not big endian
22228 #endif
22229
22230 ;
22231 return 0;
22232}
22233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022234if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022235 ac_cv_c_bigendian=yes
22236else
cristy8b350f62009-11-15 23:12:43 +000022237 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022238fi
cristy3ed852e2009-09-05 21:47:34 +000022239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022240fi
cristy3ed852e2009-09-05 21:47:34 +000022241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242 fi
22243 if test $ac_cv_c_bigendian = unknown; then
22244 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022246/* end confdefs.h. */
22247#include <limits.h>
22248
22249int
22250main ()
22251{
22252#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22253 bogus endian macros
22254 #endif
22255
22256 ;
22257 return 0;
22258}
22259_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022260if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022261 # It does; now see whether it defined to _BIG_ENDIAN or not.
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#include <limits.h>
22265
22266int
22267main ()
22268{
22269#ifndef _BIG_ENDIAN
22270 not big endian
22271 #endif
22272
22273 ;
22274 return 0;
22275}
22276_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022277if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022278 ac_cv_c_bigendian=yes
22279else
cristy8b350f62009-11-15 23:12:43 +000022280 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022281fi
cristy3ed852e2009-09-05 21:47:34 +000022282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022283fi
cristy3ed852e2009-09-05 21:47:34 +000022284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22285 fi
22286 if test $ac_cv_c_bigendian = unknown; then
22287 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022288 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022289 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022291/* end confdefs.h. */
22292short int ascii_mm[] =
22293 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22294 short int ascii_ii[] =
22295 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22296 int use_ascii (int i) {
22297 return ascii_mm[i] + ascii_ii[i];
22298 }
22299 short int ebcdic_ii[] =
22300 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22301 short int ebcdic_mm[] =
22302 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22303 int use_ebcdic (int i) {
22304 return ebcdic_mm[i] + ebcdic_ii[i];
22305 }
22306 extern int foo;
22307
22308int
22309main ()
22310{
22311return use_ascii (foo) == use_ebcdic (foo);
22312 ;
22313 return 0;
22314}
22315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022316if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022317 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22318 ac_cv_c_bigendian=yes
22319 fi
22320 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22321 if test "$ac_cv_c_bigendian" = unknown; then
22322 ac_cv_c_bigendian=no
22323 else
22324 # finding both strings is unlikely to happen, but who knows?
22325 ac_cv_c_bigendian=unknown
22326 fi
22327 fi
cristy3ed852e2009-09-05 21:47:34 +000022328fi
cristy3ed852e2009-09-05 21:47:34 +000022329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22330else
cristy8b350f62009-11-15 23:12:43 +000022331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022332/* end confdefs.h. */
22333$ac_includes_default
22334int
22335main ()
22336{
22337
22338 /* Are we little or big endian? From Harbison&Steele. */
22339 union
22340 {
22341 long int l;
22342 char c[sizeof (long int)];
22343 } u;
22344 u.l = 1;
22345 return u.c[sizeof (long int) - 1] == 1;
22346
22347 ;
22348 return 0;
22349}
22350_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022351if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022352 ac_cv_c_bigendian=no
22353else
cristy8b350f62009-11-15 23:12:43 +000022354 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022355fi
cristy8b350f62009-11-15 23:12:43 +000022356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22357 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022358fi
22359
cristy3ed852e2009-09-05 21:47:34 +000022360 fi
22361fi
cristy8b350f62009-11-15 23:12:43 +000022362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022363$as_echo "$ac_cv_c_bigendian" >&6; }
22364 case $ac_cv_c_bigendian in #(
22365 yes)
cristy8b350f62009-11-15 23:12:43 +000022366 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022367;; #(
22368 no)
22369 ;; #(
22370 universal)
22371
cristy8b350f62009-11-15 23:12:43 +000022372$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022373
22374 ;; #(
22375 *)
cristy98dddb52010-11-04 00:30:15 +000022376 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022377 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022378 esac
22379
22380
cristy501c8042011-05-26 17:46:28 +000022381# Define to a suitable type, if standard headers do not define it.
22382ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22383case $ac_cv_c_int8_t in #(
22384 no|yes) ;; #(
22385 *)
cristy3ed852e2009-09-05 21:47:34 +000022386
22387cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022388#define int8_t $ac_cv_c_int8_t
22389_ACEOF
22390;;
22391esac
22392
22393ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22394case $ac_cv_c_int16_t in #(
22395 no|yes) ;; #(
22396 *)
22397
22398cat >>confdefs.h <<_ACEOF
22399#define int16_t $ac_cv_c_int16_t
22400_ACEOF
22401;;
22402esac
22403
22404ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22405case $ac_cv_c_int32_t in #(
22406 no|yes) ;; #(
22407 *)
22408
22409cat >>confdefs.h <<_ACEOF
22410#define int32_t $ac_cv_c_int32_t
22411_ACEOF
22412;;
22413esac
22414
22415ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22416case $ac_cv_c_int64_t in #(
22417 no|yes) ;; #(
22418 *)
22419
22420cat >>confdefs.h <<_ACEOF
22421#define int64_t $ac_cv_c_int64_t
22422_ACEOF
22423;;
22424esac
22425
22426
cristycc22d1d2012-12-10 13:03:25 +000022427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22428$as_echo_n "checking for unsigned long long int... " >&6; }
22429if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022430 $as_echo_n "(cached) " >&6
22431else
cristycc22d1d2012-12-10 13:03:25 +000022432 ac_cv_type_unsigned_long_long_int=yes
22433 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022435/* end confdefs.h. */
22436
22437 /* For now, do not test the preprocessor; as of 2007 there are too many
cristycc22d1d2012-12-10 13:03:25 +000022438 implementations with broken preprocessors. Perhaps this can
22439 be revisited in 2012. In the meantime, code should not expect
22440 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022441 /* Test literals. */
22442 long long int ll = 9223372036854775807ll;
22443 long long int nll = -9223372036854775807LL;
22444 unsigned long long int ull = 18446744073709551615ULL;
22445 /* Test constant expressions. */
22446 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristycc22d1d2012-12-10 13:03:25 +000022447 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022448 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristycc22d1d2012-12-10 13:03:25 +000022449 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022450 int i = 63;
22451int
22452main ()
22453{
22454/* Test availability of runtime routines for shift and division. */
22455 long long int llmax = 9223372036854775807ll;
22456 unsigned long long int ullmax = 18446744073709551615ull;
22457 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristycc22d1d2012-12-10 13:03:25 +000022458 | (llmax / ll) | (llmax % ll)
22459 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22460 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022461 ;
22462 return 0;
22463}
22464
22465_ACEOF
22466if ac_fn_c_try_link "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022467
22468else
22469 ac_cv_type_unsigned_long_long_int=no
22470fi
22471rm -f core conftest.err conftest.$ac_objext \
22472 conftest$ac_exeext conftest.$ac_ext
22473 fi
22474fi
22475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22476$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22477 if test $ac_cv_type_unsigned_long_long_int = yes; then
22478
22479$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22480
22481 fi
22482
22483
22484
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22486$as_echo_n "checking for long long int... " >&6; }
22487if ${ac_cv_type_long_long_int+:} false; then :
22488 $as_echo_n "(cached) " >&6
22489else
cristy501c8042011-05-26 17:46:28 +000022490 ac_cv_type_long_long_int=yes
cristycc22d1d2012-12-10 13:03:25 +000022491 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22492 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22493 if test $ac_cv_type_long_long_int = yes; then
22494 if test "$cross_compiling" = yes; then :
22495 :
cristy501c8042011-05-26 17:46:28 +000022496else
22497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22498/* end confdefs.h. */
22499#include <limits.h>
cristycc22d1d2012-12-10 13:03:25 +000022500 #ifndef LLONG_MAX
22501 # define HALF \
22502 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22503 # define LLONG_MAX (HALF - 1 + HALF)
22504 #endif
cristy501c8042011-05-26 17:46:28 +000022505int
22506main ()
22507{
22508long long int n = 1;
cristycc22d1d2012-12-10 13:03:25 +000022509 int i;
22510 for (i = 0; ; i++)
22511 {
22512 long long int m = n << i;
22513 if (m >> i != n)
22514 return 1;
22515 if (LLONG_MAX / 2 < m)
22516 break;
22517 }
22518 return 0;
cristy501c8042011-05-26 17:46:28 +000022519 ;
22520 return 0;
22521}
22522_ACEOF
22523if ac_fn_c_try_run "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022524
cristy501c8042011-05-26 17:46:28 +000022525else
22526 ac_cv_type_long_long_int=no
22527fi
22528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22529 conftest.$ac_objext conftest.beam conftest.$ac_ext
22530fi
22531
cristycc22d1d2012-12-10 13:03:25 +000022532 fi
22533 fi
cristy501c8042011-05-26 17:46:28 +000022534fi
22535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22536$as_echo "$ac_cv_type_long_long_int" >&6; }
22537 if test $ac_cv_type_long_long_int = yes; then
22538
22539$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22540
22541 fi
22542
22543
22544
22545 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22546if test "x$ac_cv_type_intmax_t" = xyes; then :
22547
22548$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22549
22550else
22551 test $ac_cv_type_long_long_int = yes \
22552 && ac_type='long long int' \
22553 || ac_type='long int'
22554
22555cat >>confdefs.h <<_ACEOF
22556#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022557_ACEOF
22558
22559fi
22560
22561
cristy501c8042011-05-26 17:46:28 +000022562
22563 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22564if test "x$ac_cv_type_intptr_t" = xyes; then :
22565
22566$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022567
cristy3ed852e2009-09-05 21:47:34 +000022568else
cristy501c8042011-05-26 17:46:28 +000022569 for ac_type in 'int' 'long int' 'long long int'; do
22570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22571/* end confdefs.h. */
22572$ac_includes_default
22573int
22574main ()
22575{
22576static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022577test_array [0] = 0;
22578return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022579
22580 ;
22581 return 0;
22582}
22583_ACEOF
22584if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022585
22586cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022587#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022588_ACEOF
22589
cristy501c8042011-05-26 17:46:28 +000022590 ac_type=
22591fi
22592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22593 test -z "$ac_type" && break
22594 done
cristy3ed852e2009-09-05 21:47:34 +000022595fi
22596
22597
cristy3ed852e2009-09-05 21:47:34 +000022598
cristy501c8042011-05-26 17:46:28 +000022599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22600$as_echo_n "checking for long double... " >&6; }
22601if ${ac_cv_type_long_double+:} false; then :
22602 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022603else
cristy501c8042011-05-26 17:46:28 +000022604 if test "$GCC" = yes; then
22605 ac_cv_type_long_double=yes
22606 else
22607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22608/* end confdefs.h. */
22609/* The Stardent Vistra knows sizeof (long double), but does
22610 not support it. */
22611 long double foo = 0.0L;
22612int
22613main ()
22614{
22615static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22616 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022617test_array [0] = 0;
22618return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022619
cristy501c8042011-05-26 17:46:28 +000022620 ;
22621 return 0;
22622}
cristy3ed852e2009-09-05 21:47:34 +000022623_ACEOF
cristy501c8042011-05-26 17:46:28 +000022624if ac_fn_c_try_compile "$LINENO"; then :
22625 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022626else
cristy501c8042011-05-26 17:46:28 +000022627 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022628fi
cristy501c8042011-05-26 17:46:28 +000022629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22630 fi
cristy3ed852e2009-09-05 21:47:34 +000022631fi
cristy501c8042011-05-26 17:46:28 +000022632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22633$as_echo "$ac_cv_type_long_double" >&6; }
22634 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022635
cristy501c8042011-05-26 17:46:28 +000022636$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022637
cristy501c8042011-05-26 17:46:28 +000022638 fi
22639
cristy3ed852e2009-09-05 21:47:34 +000022640
cristy8b350f62009-11-15 23:12:43 +000022641 { $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 +000022642$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022643if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022644 $as_echo_n "(cached) " >&6
22645else
cristy8b350f62009-11-15 23:12:43 +000022646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022647/* end confdefs.h. */
22648#include <float.h>
22649 long double const a[] =
22650 {
22651 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22652 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22653 };
22654 long double
22655 f (long double x)
22656 {
22657 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22658 + (x ? f (x) : 'c'));
22659 }
22660
22661int
22662main ()
22663{
22664static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22665 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22666 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22667 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22668 && (int) LDBL_EPSILON == 0
22669 )];
cristy14fefe52012-05-21 00:59:18 +000022670test_array [0] = 0;
22671return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022672
22673 ;
22674 return 0;
22675}
22676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022677if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022678 ac_cv_type_long_double_wider=yes
22679else
cristy8b350f62009-11-15 23:12:43 +000022680 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022681fi
cristy3ed852e2009-09-05 21:47:34 +000022682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22683fi
cristy8b350f62009-11-15 23:12:43 +000022684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022685$as_echo "$ac_cv_type_long_double_wider" >&6; }
22686 if test $ac_cv_type_long_double_wider = yes; then
22687
cristy8b350f62009-11-15 23:12:43 +000022688$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022689
22690 fi
22691
22692
cristycc22d1d2012-12-10 13:03:25 +000022693
cristy501c8042011-05-26 17:46:28 +000022694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22695$as_echo_n "checking for long long int... " >&6; }
22696if ${ac_cv_type_long_long_int+:} false; then :
22697 $as_echo_n "(cached) " >&6
22698else
cristy501c8042011-05-26 17:46:28 +000022699 ac_cv_type_long_long_int=yes
cristycc22d1d2012-12-10 13:03:25 +000022700 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22701 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22702 if test $ac_cv_type_long_long_int = yes; then
22703 if test "$cross_compiling" = yes; then :
22704 :
cristy501c8042011-05-26 17:46:28 +000022705else
22706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22707/* end confdefs.h. */
22708#include <limits.h>
cristycc22d1d2012-12-10 13:03:25 +000022709 #ifndef LLONG_MAX
22710 # define HALF \
22711 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22712 # define LLONG_MAX (HALF - 1 + HALF)
22713 #endif
cristy501c8042011-05-26 17:46:28 +000022714int
22715main ()
22716{
22717long long int n = 1;
cristycc22d1d2012-12-10 13:03:25 +000022718 int i;
22719 for (i = 0; ; i++)
22720 {
22721 long long int m = n << i;
22722 if (m >> i != n)
22723 return 1;
22724 if (LLONG_MAX / 2 < m)
22725 break;
22726 }
22727 return 0;
cristy501c8042011-05-26 17:46:28 +000022728 ;
22729 return 0;
22730}
22731_ACEOF
22732if ac_fn_c_try_run "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022733
cristy501c8042011-05-26 17:46:28 +000022734else
22735 ac_cv_type_long_long_int=no
22736fi
22737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22738 conftest.$ac_objext conftest.beam conftest.$ac_ext
22739fi
22740
cristycc22d1d2012-12-10 13:03:25 +000022741 fi
22742 fi
cristy501c8042011-05-26 17:46:28 +000022743fi
22744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22745$as_echo "$ac_cv_type_long_long_int" >&6; }
22746 if test $ac_cv_type_long_long_int = yes; then
22747
22748$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22749
22750 fi
22751
22752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22753$as_echo_n "checking for mbstate_t... " >&6; }
22754if ${ac_cv_type_mbstate_t+:} false; then :
22755 $as_echo_n "(cached) " >&6
22756else
22757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22758/* end confdefs.h. */
22759$ac_includes_default
22760# include <wchar.h>
22761int
22762main ()
22763{
22764mbstate_t x; return sizeof x;
22765 ;
22766 return 0;
22767}
22768_ACEOF
22769if ac_fn_c_try_compile "$LINENO"; then :
22770 ac_cv_type_mbstate_t=yes
22771else
22772 ac_cv_type_mbstate_t=no
22773fi
22774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22775fi
22776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22777$as_echo "$ac_cv_type_mbstate_t" >&6; }
22778 if test $ac_cv_type_mbstate_t = yes; then
22779
22780$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22781
22782 else
22783
22784$as_echo "#define mbstate_t int" >>confdefs.h
22785
22786 fi
22787ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22788if test "x$ac_cv_type_mode_t" = xyes; then :
22789
22790else
22791
22792cat >>confdefs.h <<_ACEOF
22793#define mode_t int
22794_ACEOF
22795
22796fi
22797
22798ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22799if test "x$ac_cv_type_off_t" = xyes; then :
22800
22801else
22802
22803cat >>confdefs.h <<_ACEOF
22804#define off_t long int
22805_ACEOF
22806
22807fi
22808
22809ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22810if test "x$ac_cv_type_pid_t" = xyes; then :
22811
22812else
22813
22814cat >>confdefs.h <<_ACEOF
22815#define pid_t int
22816_ACEOF
22817
22818fi
22819
22820ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22821if test "x$ac_cv_type_size_t" = xyes; then :
22822
22823else
22824
22825cat >>confdefs.h <<_ACEOF
22826#define size_t unsigned int
22827_ACEOF
22828
22829fi
22830
22831ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22832if test "x$ac_cv_type_ssize_t" = xyes; then :
22833
22834else
22835
22836cat >>confdefs.h <<_ACEOF
22837#define ssize_t int
22838_ACEOF
22839
22840fi
22841
22842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22843$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22844if ${ac_cv_type_uid_t+:} false; then :
22845 $as_echo_n "(cached) " >&6
22846else
22847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22848/* end confdefs.h. */
22849#include <sys/types.h>
22850
22851_ACEOF
22852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22853 $EGREP "uid_t" >/dev/null 2>&1; then :
22854 ac_cv_type_uid_t=yes
22855else
22856 ac_cv_type_uid_t=no
22857fi
22858rm -f conftest*
22859
22860fi
22861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22862$as_echo "$ac_cv_type_uid_t" >&6; }
22863if test $ac_cv_type_uid_t = no; then
22864
22865$as_echo "#define uid_t int" >>confdefs.h
22866
22867
22868$as_echo "#define gid_t int" >>confdefs.h
22869
22870fi
22871
22872ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22873case $ac_cv_c_uint8_t in #(
22874 no|yes) ;; #(
22875 *)
22876
22877$as_echo "#define _UINT8_T 1" >>confdefs.h
22878
22879
22880cat >>confdefs.h <<_ACEOF
22881#define uint8_t $ac_cv_c_uint8_t
22882_ACEOF
22883;;
22884 esac
22885
22886ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22887case $ac_cv_c_uint16_t in #(
22888 no|yes) ;; #(
22889 *)
22890
22891
22892cat >>confdefs.h <<_ACEOF
22893#define uint16_t $ac_cv_c_uint16_t
22894_ACEOF
22895;;
22896 esac
22897
22898ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22899case $ac_cv_c_uint32_t in #(
22900 no|yes) ;; #(
22901 *)
22902
22903$as_echo "#define _UINT32_T 1" >>confdefs.h
22904
22905
22906cat >>confdefs.h <<_ACEOF
22907#define uint32_t $ac_cv_c_uint32_t
22908_ACEOF
22909;;
22910 esac
22911
22912ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22913case $ac_cv_c_uint64_t in #(
22914 no|yes) ;; #(
22915 *)
22916
22917$as_echo "#define _UINT64_T 1" >>confdefs.h
22918
22919
22920cat >>confdefs.h <<_ACEOF
22921#define uint64_t $ac_cv_c_uint64_t
22922_ACEOF
22923;;
22924 esac
22925
22926
cristy501c8042011-05-26 17:46:28 +000022927
22928 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22929if test "x$ac_cv_type_uintmax_t" = xyes; then :
22930
22931$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22932
22933else
22934 test $ac_cv_type_unsigned_long_long_int = yes \
22935 && ac_type='unsigned long long int' \
22936 || ac_type='unsigned long int'
22937
22938cat >>confdefs.h <<_ACEOF
22939#define uintmax_t $ac_type
22940_ACEOF
22941
22942fi
22943
22944
22945
22946 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22947if test "x$ac_cv_type_uintptr_t" = xyes; then :
22948
22949$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
22950
22951else
22952 for ac_type in 'unsigned int' 'unsigned long int' \
22953 'unsigned long long int'; do
22954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22955/* end confdefs.h. */
22956$ac_includes_default
22957int
22958main ()
22959{
22960static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022961test_array [0] = 0;
22962return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022963
22964 ;
22965 return 0;
22966}
22967_ACEOF
22968if ac_fn_c_try_compile "$LINENO"; then :
22969
22970cat >>confdefs.h <<_ACEOF
22971#define uintptr_t $ac_type
22972_ACEOF
22973
22974 ac_type=
22975fi
22976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22977 test -z "$ac_type" && break
22978 done
22979fi
22980
22981
22982
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22984$as_echo_n "checking for unsigned long long int... " >&6; }
22985if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22986 $as_echo_n "(cached) " >&6
22987else
cristycc22d1d2012-12-10 13:03:25 +000022988 ac_cv_type_unsigned_long_long_int=yes
22989 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022991/* end confdefs.h. */
22992
22993 /* For now, do not test the preprocessor; as of 2007 there are too many
cristycc22d1d2012-12-10 13:03:25 +000022994 implementations with broken preprocessors. Perhaps this can
22995 be revisited in 2012. In the meantime, code should not expect
22996 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022997 /* Test literals. */
22998 long long int ll = 9223372036854775807ll;
22999 long long int nll = -9223372036854775807LL;
23000 unsigned long long int ull = 18446744073709551615ULL;
23001 /* Test constant expressions. */
23002 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristycc22d1d2012-12-10 13:03:25 +000023003 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023004 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristycc22d1d2012-12-10 13:03:25 +000023005 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023006 int i = 63;
23007int
23008main ()
23009{
23010/* Test availability of runtime routines for shift and division. */
23011 long long int llmax = 9223372036854775807ll;
23012 unsigned long long int ullmax = 18446744073709551615ull;
23013 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristycc22d1d2012-12-10 13:03:25 +000023014 | (llmax / ll) | (llmax % ll)
23015 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23016 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023017 ;
23018 return 0;
23019}
23020
23021_ACEOF
23022if ac_fn_c_try_link "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000023023
cristy501c8042011-05-26 17:46:28 +000023024else
23025 ac_cv_type_unsigned_long_long_int=no
23026fi
23027rm -f core conftest.err conftest.$ac_objext \
23028 conftest$ac_exeext conftest.$ac_ext
cristycc22d1d2012-12-10 13:03:25 +000023029 fi
cristy501c8042011-05-26 17:46:28 +000023030fi
23031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23032$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23033 if test $ac_cv_type_unsigned_long_long_int = yes; then
23034
23035$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23036
23037 fi
23038
23039
cristy9b86f202012-11-28 21:55:35 +000023040# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000023041ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23042"
23043if test "x$ac_cv_type_float_t" = xyes; then :
23044
23045cat >>confdefs.h <<_ACEOF
23046#define HAVE_FLOAT_T 1
23047_ACEOF
23048
23049
23050fi
23051
23052ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23053"
23054if test "x$ac_cv_type_double_t" = xyes; then :
23055
23056cat >>confdefs.h <<_ACEOF
23057#define HAVE_DOUBLE_T 1
23058_ACEOF
23059
23060
23061fi
23062
cristy9b86f202012-11-28 21:55:35 +000023063# The cast to long int works around a bug in the HP C Compiler
23064# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23065# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23066# This bug is HP SR number 8606223364.
23067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23068$as_echo_n "checking size of float_t... " >&6; }
23069if ${ac_cv_sizeof_float_t+:} false; then :
23070 $as_echo_n "(cached) " >&6
23071else
23072 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23073"; then :
23074
23075else
23076 if test "$ac_cv_type_float_t" = yes; then
23077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23079as_fn_error 77 "cannot compute sizeof (float_t)
23080See \`config.log' for more details" "$LINENO" 5; }
23081 else
23082 ac_cv_sizeof_float_t=0
23083 fi
23084fi
23085
23086fi
23087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23088$as_echo "$ac_cv_sizeof_float_t" >&6; }
23089
23090
23091
23092cat >>confdefs.h <<_ACEOF
23093#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23094_ACEOF
23095
23096
23097# The cast to long int works around a bug in the HP C Compiler
23098# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23099# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23100# This bug is HP SR number 8606223364.
23101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23102$as_echo_n "checking size of double_t... " >&6; }
23103if ${ac_cv_sizeof_double_t+:} false; then :
23104 $as_echo_n "(cached) " >&6
23105else
23106 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23107"; then :
23108
23109else
23110 if test "$ac_cv_type_double_t" = yes; then
23111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23113as_fn_error 77 "cannot compute sizeof (double_t)
23114See \`config.log' for more details" "$LINENO" 5; }
23115 else
23116 ac_cv_sizeof_double_t=0
23117 fi
23118fi
23119
23120fi
23121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23122$as_echo "$ac_cv_sizeof_double_t" >&6; }
23123
23124
23125
23126cat >>confdefs.h <<_ACEOF
23127#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23128_ACEOF
23129
23130
23131
23132# Get size of float, double and long double for comparaison.
23133# The cast to long int works around a bug in the HP C Compiler
23134# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23135# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23136# This bug is HP SR number 8606223364.
23137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23138$as_echo_n "checking size of float... " >&6; }
23139if ${ac_cv_sizeof_float+:} false; then :
23140 $as_echo_n "(cached) " >&6
23141else
23142 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23143
23144else
23145 if test "$ac_cv_type_float" = yes; then
23146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23148as_fn_error 77 "cannot compute sizeof (float)
23149See \`config.log' for more details" "$LINENO" 5; }
23150 else
23151 ac_cv_sizeof_float=0
23152 fi
23153fi
23154
23155fi
23156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23157$as_echo "$ac_cv_sizeof_float" >&6; }
23158
23159
23160
23161cat >>confdefs.h <<_ACEOF
23162#define SIZEOF_FLOAT $ac_cv_sizeof_float
23163_ACEOF
23164
23165
23166# The cast to long int works around a bug in the HP C Compiler
23167# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23168# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23169# This bug is HP SR number 8606223364.
23170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23171$as_echo_n "checking size of double... " >&6; }
23172if ${ac_cv_sizeof_double+:} false; then :
23173 $as_echo_n "(cached) " >&6
23174else
23175 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23176
23177else
23178 if test "$ac_cv_type_double" = yes; then
23179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23181as_fn_error 77 "cannot compute sizeof (double)
23182See \`config.log' for more details" "$LINENO" 5; }
23183 else
23184 ac_cv_sizeof_double=0
23185 fi
23186fi
23187
23188fi
23189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23190$as_echo "$ac_cv_sizeof_double" >&6; }
23191
23192
23193
23194cat >>confdefs.h <<_ACEOF
23195#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23196_ACEOF
23197
23198
23199# The cast to long int works around a bug in the HP C Compiler
23200# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23201# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23202# This bug is HP SR number 8606223364.
23203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23204$as_echo_n "checking size of long double... " >&6; }
23205if ${ac_cv_sizeof_long_double+:} false; then :
23206 $as_echo_n "(cached) " >&6
23207else
23208 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23209
23210else
23211 if test "$ac_cv_type_long_double" = yes; then
23212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23214as_fn_error 77 "cannot compute sizeof (long double)
23215See \`config.log' for more details" "$LINENO" 5; }
23216 else
23217 ac_cv_sizeof_long_double=0
23218 fi
23219fi
23220
23221fi
23222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23223$as_echo "$ac_cv_sizeof_long_double" >&6; }
23224
23225
23226
23227cat >>confdefs.h <<_ACEOF
23228#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23229_ACEOF
23230
23231
cristyf0cf9a22012-10-24 12:05:01 +000023232
cristy3ed852e2009-09-05 21:47:34 +000023233# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23234# The cast to long int works around a bug in the HP C Compiler
23235# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23236# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23237# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023239$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023240if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023241 $as_echo_n "(cached) " >&6
23242else
cristy8b350f62009-11-15 23:12:43 +000023243 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 +000023244
cristy3ed852e2009-09-05 21:47:34 +000023245else
cristy8b350f62009-11-15 23:12:43 +000023246 if test "$ac_cv_type_signed_short" = yes; then
23247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023249as_fn_error 77 "cannot compute sizeof (signed short)
23250See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023251 else
23252 ac_cv_sizeof_signed_short=0
23253 fi
23254fi
cristy8b350f62009-11-15 23:12:43 +000023255
cristy3ed852e2009-09-05 21:47:34 +000023256fi
cristy8b350f62009-11-15 23:12:43 +000023257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023258$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23259
23260
23261
23262cat >>confdefs.h <<_ACEOF
23263#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23264_ACEOF
23265
23266
23267
23268# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23269# The cast to long int works around a bug in the HP C Compiler
23270# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23271# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23272# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023274$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023275if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023276 $as_echo_n "(cached) " >&6
23277else
cristy8b350f62009-11-15 23:12:43 +000023278 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 +000023279
cristy3ed852e2009-09-05 21:47:34 +000023280else
cristy8b350f62009-11-15 23:12:43 +000023281 if test "$ac_cv_type_unsigned_short" = yes; then
23282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023284as_fn_error 77 "cannot compute sizeof (unsigned short)
23285See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023286 else
23287 ac_cv_sizeof_unsigned_short=0
23288 fi
23289fi
cristy8b350f62009-11-15 23:12:43 +000023290
cristy3ed852e2009-09-05 21:47:34 +000023291fi
cristy8b350f62009-11-15 23:12:43 +000023292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023293$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23294
23295
23296
23297cat >>confdefs.h <<_ACEOF
23298#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23299_ACEOF
23300
23301
23302
23303# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23304# The cast to long int works around a bug in the HP C Compiler
23305# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23306# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23307# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023309$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023310if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023311 $as_echo_n "(cached) " >&6
23312else
cristy8b350f62009-11-15 23:12:43 +000023313 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 +000023314
cristy3ed852e2009-09-05 21:47:34 +000023315else
cristy8b350f62009-11-15 23:12:43 +000023316 if test "$ac_cv_type_signed_int" = yes; then
23317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023319as_fn_error 77 "cannot compute sizeof (signed int)
23320See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023321 else
23322 ac_cv_sizeof_signed_int=0
23323 fi
23324fi
cristy8b350f62009-11-15 23:12:43 +000023325
cristy3ed852e2009-09-05 21:47:34 +000023326fi
cristy8b350f62009-11-15 23:12:43 +000023327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023328$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23329
23330
23331
23332cat >>confdefs.h <<_ACEOF
23333#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23334_ACEOF
23335
23336
23337
23338# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23339# The cast to long int works around a bug in the HP C Compiler
23340# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23341# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23342# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023344$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023345if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023346 $as_echo_n "(cached) " >&6
23347else
cristy8b350f62009-11-15 23:12:43 +000023348 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 +000023349
cristy3ed852e2009-09-05 21:47:34 +000023350else
cristy8b350f62009-11-15 23:12:43 +000023351 if test "$ac_cv_type_unsigned_int" = yes; then
23352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023354as_fn_error 77 "cannot compute sizeof (unsigned int)
23355See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023356 else
23357 ac_cv_sizeof_unsigned_int=0
23358 fi
23359fi
cristy8b350f62009-11-15 23:12:43 +000023360
cristy3ed852e2009-09-05 21:47:34 +000023361fi
cristy8b350f62009-11-15 23:12:43 +000023362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023363$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23364
23365
23366
23367cat >>confdefs.h <<_ACEOF
23368#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23369_ACEOF
23370
23371
23372
23373# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23374# The cast to long int works around a bug in the HP C Compiler
23375# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23376# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23377# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023379$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023380if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023381 $as_echo_n "(cached) " >&6
23382else
cristy8b350f62009-11-15 23:12:43 +000023383 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 +000023384
cristy3ed852e2009-09-05 21:47:34 +000023385else
cristy8b350f62009-11-15 23:12:43 +000023386 if test "$ac_cv_type_signed_long" = yes; then
23387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023389as_fn_error 77 "cannot compute sizeof (signed long)
23390See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023391 else
23392 ac_cv_sizeof_signed_long=0
23393 fi
23394fi
cristy8b350f62009-11-15 23:12:43 +000023395
cristy3ed852e2009-09-05 21:47:34 +000023396fi
cristy8b350f62009-11-15 23:12:43 +000023397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023398$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23399
23400
23401
23402cat >>confdefs.h <<_ACEOF
23403#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23404_ACEOF
23405
23406
23407
23408# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23409# The cast to long int works around a bug in the HP C Compiler
23410# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23411# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23412# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023414$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023415if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023416 $as_echo_n "(cached) " >&6
23417else
cristy8b350f62009-11-15 23:12:43 +000023418 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 +000023419
cristy3ed852e2009-09-05 21:47:34 +000023420else
cristy8b350f62009-11-15 23:12:43 +000023421 if test "$ac_cv_type_unsigned_long" = yes; then
23422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023424as_fn_error 77 "cannot compute sizeof (unsigned long)
23425See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023426 else
23427 ac_cv_sizeof_unsigned_long=0
23428 fi
23429fi
cristy8b350f62009-11-15 23:12:43 +000023430
cristy3ed852e2009-09-05 21:47:34 +000023431fi
cristy8b350f62009-11-15 23:12:43 +000023432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023433$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23434
23435
23436
23437cat >>confdefs.h <<_ACEOF
23438#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23439_ACEOF
23440
23441
23442
23443# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23444# 'signed long long' is not supported then the value defined is zero.
23445# The cast to long int works around a bug in the HP C Compiler
23446# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23447# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23448# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023450$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023451if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023452 $as_echo_n "(cached) " >&6
23453else
cristy8b350f62009-11-15 23:12:43 +000023454 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 +000023455
cristy3ed852e2009-09-05 21:47:34 +000023456else
cristy8b350f62009-11-15 23:12:43 +000023457 if test "$ac_cv_type_signed_long_long" = yes; then
23458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023460as_fn_error 77 "cannot compute sizeof (signed long long)
23461See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023462 else
23463 ac_cv_sizeof_signed_long_long=0
23464 fi
23465fi
cristy8b350f62009-11-15 23:12:43 +000023466
cristy3ed852e2009-09-05 21:47:34 +000023467fi
cristy8b350f62009-11-15 23:12:43 +000023468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023469$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23470
23471
23472
23473cat >>confdefs.h <<_ACEOF
23474#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23475_ACEOF
23476
23477
23478
23479# Obtain size of a 'unsigned long long' and define as
23480# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23481# supported then the value defined is zero.
23482# The cast to long int works around a bug in the HP C Compiler
23483# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23484# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23485# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023487$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023488if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023489 $as_echo_n "(cached) " >&6
23490else
cristy8b350f62009-11-15 23:12:43 +000023491 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 +000023492
cristy3ed852e2009-09-05 21:47:34 +000023493else
cristy8b350f62009-11-15 23:12:43 +000023494 if test "$ac_cv_type_unsigned_long_long" = yes; then
23495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023497as_fn_error 77 "cannot compute sizeof (unsigned long long)
23498See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023499 else
23500 ac_cv_sizeof_unsigned_long_long=0
23501 fi
23502fi
cristy8b350f62009-11-15 23:12:43 +000023503
cristy3ed852e2009-09-05 21:47:34 +000023504fi
cristy8b350f62009-11-15 23:12:43 +000023505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023506$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23507
23508
23509
23510cat >>confdefs.h <<_ACEOF
23511#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23512_ACEOF
23513
23514
23515
23516# Obtain size of off_t and define as SIZEOF_OFF_T
23517# The cast to long int works around a bug in the HP C Compiler
23518# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23519# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23520# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023522$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023523if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023524 $as_echo_n "(cached) " >&6
23525else
cristy8b350f62009-11-15 23:12:43 +000023526 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 +000023527
cristy3ed852e2009-09-05 21:47:34 +000023528else
cristy8b350f62009-11-15 23:12:43 +000023529 if test "$ac_cv_type_off_t" = yes; then
23530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023532as_fn_error 77 "cannot compute sizeof (off_t)
23533See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023534 else
23535 ac_cv_sizeof_off_t=0
23536 fi
23537fi
cristy8b350f62009-11-15 23:12:43 +000023538
cristy3ed852e2009-09-05 21:47:34 +000023539fi
cristy8b350f62009-11-15 23:12:43 +000023540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023541$as_echo "$ac_cv_sizeof_off_t" >&6; }
23542
23543
23544
23545cat >>confdefs.h <<_ACEOF
23546#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23547_ACEOF
23548
23549
23550
23551# Obtain size of size_t and define as SIZEOF_SIZE_T
23552# The cast to long int works around a bug in the HP C Compiler
23553# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23554# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23555# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023557$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023558if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023559 $as_echo_n "(cached) " >&6
23560else
cristy8b350f62009-11-15 23:12:43 +000023561 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 +000023562
cristy3ed852e2009-09-05 21:47:34 +000023563else
cristy8b350f62009-11-15 23:12:43 +000023564 if test "$ac_cv_type_size_t" = yes; then
23565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023567as_fn_error 77 "cannot compute sizeof (size_t)
23568See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023569 else
23570 ac_cv_sizeof_size_t=0
23571 fi
23572fi
cristy8b350f62009-11-15 23:12:43 +000023573
cristy3ed852e2009-09-05 21:47:34 +000023574fi
cristy8b350f62009-11-15 23:12:43 +000023575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023576$as_echo "$ac_cv_sizeof_size_t" >&6; }
23577
23578
23579
23580cat >>confdefs.h <<_ACEOF
23581#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23582_ACEOF
23583
23584
23585
cristy330e9352010-06-01 18:42:49 +000023586# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23587# The cast to long int works around a bug in the HP C Compiler
23588# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23589# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23590# This bug is HP SR number 8606223364.
23591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23592$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023593if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023594 $as_echo_n "(cached) " >&6
23595else
23596 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23597
23598else
23599 if test "$ac_cv_type_ssize_t" = yes; then
23600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023602as_fn_error 77 "cannot compute sizeof (ssize_t)
23603See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023604 else
23605 ac_cv_sizeof_ssize_t=0
23606 fi
23607fi
23608
23609fi
23610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23611$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23612
23613
23614
23615cat >>confdefs.h <<_ACEOF
23616#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23617_ACEOF
23618
23619
23620
cristy3ed852e2009-09-05 21:47:34 +000023621# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23622# The cast to long int works around a bug in the HP C Compiler
23623# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23624# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23625# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023627$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023628if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023629 $as_echo_n "(cached) " >&6
23630else
cristy8b350f62009-11-15 23:12:43 +000023631 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 +000023632
cristy3ed852e2009-09-05 21:47:34 +000023633else
cristy8b350f62009-11-15 23:12:43 +000023634 if test "$ac_cv_type_unsigned_intp" = yes; then
23635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023637as_fn_error 77 "cannot compute sizeof (unsigned int*)
23638See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023639 else
23640 ac_cv_sizeof_unsigned_intp=0
23641 fi
23642fi
cristy8b350f62009-11-15 23:12:43 +000023643
cristy3ed852e2009-09-05 21:47:34 +000023644fi
cristy8b350f62009-11-15 23:12:43 +000023645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023646$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23647
23648
23649
23650cat >>confdefs.h <<_ACEOF
23651#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23652_ACEOF
23653
23654
23655
23656#
23657# Compute sized types for current CPU and compiler options.
23658#
23659
cristy8b350f62009-11-15 23:12:43 +000023660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023661$as_echo_n "checking for signed 8-bit type... " >&6; }
23662INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23664$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023665
23666
cristy8b350f62009-11-15 23:12:43 +000023667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023668$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23669UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23671$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023672
23673
cristy8b350f62009-11-15 23:12:43 +000023674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023675$as_echo_n "checking for signed 16-bit type... " >&6; }
23676INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23678$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023679
23680
cristy8b350f62009-11-15 23:12:43 +000023681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023682$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23683UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23685$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023686
23687
cristy8b350f62009-11-15 23:12:43 +000023688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023689$as_echo_n "checking for signed 32-bit type... " >&6; }
23690INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023691INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023692if test $ac_cv_sizeof_signed_int -eq 4; then
23693 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023694 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023695elif test $ac_cv_sizeof_signed_long -eq 4; then
23696 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023697 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023698fi
cristyad38abe2012-12-23 23:03:21 +000023699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23700$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023701
23702
cristy6d5e20f2011-04-25 13:48:54 +000023703
cristy8b350f62009-11-15 23:12:43 +000023704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023705$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23706UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023707UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023708if test $ac_cv_sizeof_unsigned_int -eq 4; then
23709 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023710 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023711elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23712 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023713 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023714fi
cristyad38abe2012-12-23 23:03:21 +000023715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23716$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023717
23718
cristy6d5e20f2011-04-25 13:48:54 +000023719
cristy8b350f62009-11-15 23:12:43 +000023720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023721$as_echo_n "checking for signed 64-bit type... " >&6; }
23722INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023723INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023724if test $ac_cv_sizeof_signed_long -eq 8; then
23725 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023726 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023727elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23728 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023729 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023730fi
cristy3a99dcf2011-12-17 01:29:40 +000023731case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023732 mingw* )
23733 INT64_F='"I64"'
23734 ;;
23735esac
cristyad38abe2012-12-23 23:03:21 +000023736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23737$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023738
23739
cristy6d5e20f2011-04-25 13:48:54 +000023740
cristy8b350f62009-11-15 23:12:43 +000023741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023742$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23743UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023744UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023745if test $ac_cv_sizeof_unsigned_long -eq 8; then
23746 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023747 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023748elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23749 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023750 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023751fi
cristy3a99dcf2011-12-17 01:29:40 +000023752case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023753 mingw* )
23754 UINT64_F='"I64"'
23755 ;;
23756esac
cristyad38abe2012-12-23 23:03:21 +000023757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23758$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023759
23760
cristy6d5e20f2011-04-25 13:48:54 +000023761
cristy8b350f62009-11-15 23:12:43 +000023762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023763$as_echo_n "checking for unsigned maximum type... " >&6; }
23764UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023765UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023766if test "$UINT64_T" != 'none'; then
23767 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023768 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023769elif test "$UINT32_T" != 'none'; then
23770 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023771 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023772fi
cristyad38abe2012-12-23 23:03:21 +000023773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23774$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023775
23776
cristy6d5e20f2011-04-25 13:48:54 +000023777
cristy8b350f62009-11-15 23:12:43 +000023778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023779$as_echo_n "checking for pointer difference type... " >&6; }
23780UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023781UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023782if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23783 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023784 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023785elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23786 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023787 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023788fi
cristyad38abe2012-12-23 23:03:21 +000023789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23790$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023791
23792
cristy6d5e20f2011-04-25 13:48:54 +000023793
cristy8b350f62009-11-15 23:12:43 +000023794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023795$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023797/* end confdefs.h. */
23798
23799int
23800main ()
23801{
23802{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23803 ;
23804 return 0;
23805}
23806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023807if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23809$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023810else
cristyad38abe2012-12-23 23:03:21 +000023811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23812$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023814$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023816/* end confdefs.h. */
23817
23818int
23819main ()
23820{
23821{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23822 ;
23823 return 0;
23824}
23825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023826if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23828$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023829
cristy8b350f62009-11-15 23:12:43 +000023830$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023831
23832else
cristyad38abe2012-12-23 23:03:21 +000023833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23834$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023835
cristy8b350f62009-11-15 23:12:43 +000023836$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023837
23838fi
cristy3ed852e2009-09-05 21:47:34 +000023839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23840fi
cristy3ed852e2009-09-05 21:47:34 +000023841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23842
23843########
23844#
23845# Check for functions
23846#
23847########
cristy73bd4a52010-10-05 11:24:23 +000023848for ac_header in stdlib.h unistd.h
23849do :
23850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23851ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023852if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023853 cat >>confdefs.h <<_ACEOF
23854#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23855_ACEOF
23856
23857fi
23858
23859done
23860
23861for ac_func in getpagesize
23862do :
23863 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023864if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023865 cat >>confdefs.h <<_ACEOF
23866#define HAVE_GETPAGESIZE 1
23867_ACEOF
23868
23869fi
23870done
23871
23872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23873$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023874if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023875 $as_echo_n "(cached) " >&6
23876else
23877 if test "$cross_compiling" = yes; then :
23878 magick_cv_func_mmap_fileio=no
23879else
23880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23881/* end confdefs.h. */
23882$ac_includes_default
23883/* malloc might have been renamed as rpl_malloc. */
23884#undef malloc
23885
23886/*
23887 This test is derived from GNU Autoconf's similar macro.
23888 The purpose of this test is to verify that files may be memory
23889 mapped, and that memory mapping and file I/O are coherent.
23890
23891 The test creates a test file, memory maps the file, updates
23892 the file using the memory map, and then reads the file using
23893 file I/O to verify that the file contains the updates.
23894*/
23895
23896#include <fcntl.h>
23897#include <sys/mman.h>
23898
23899#if !STDC_HEADERS && !HAVE_STDLIB_H
23900char *malloc ();
23901#endif
23902
23903/* This mess was copied from the GNU getpagesize.h. */
23904#if !HAVE_GETPAGESIZE
23905/* Assume that all systems that can run configure have sys/param.h. */
23906# if !HAVE_SYS_PARAM_H
23907# define HAVE_SYS_PARAM_H 1
23908# endif
23909
23910# ifdef _SC_PAGESIZE
23911# define getpagesize() sysconf(_SC_PAGESIZE)
23912# else /* no _SC_PAGESIZE */
23913# if HAVE_SYS_PARAM_H
23914# include <sys/param.h>
23915# ifdef EXEC_PAGESIZE
23916# define getpagesize() EXEC_PAGESIZE
23917# else /* no EXEC_PAGESIZE */
23918# ifdef NBPG
23919# define getpagesize() NBPG * CLSIZE
23920# ifndef CLSIZE
23921# define CLSIZE 1
23922# endif /* no CLSIZE */
23923# else /* no NBPG */
23924# ifdef NBPC
23925# define getpagesize() NBPC
23926# else /* no NBPC */
23927# ifdef PAGESIZE
23928# define getpagesize() PAGESIZE
23929# endif /* PAGESIZE */
23930# endif /* no NBPC */
23931# endif /* no NBPG */
23932# endif /* no EXEC_PAGESIZE */
23933# else /* no HAVE_SYS_PARAM_H */
23934# define getpagesize() 8192 /* punt totally */
23935# endif /* no HAVE_SYS_PARAM_H */
23936# endif /* no _SC_PAGESIZE */
23937
23938#endif /* no HAVE_GETPAGESIZE */
23939
23940int
23941main ()
23942{
23943 char *data, *data2, *data3;
23944 int i, pagesize;
23945 int fd;
23946
23947 pagesize = getpagesize ();
23948
23949 /* First, make a file with some known garbage in it. */
23950 data = (char *) malloc (pagesize);
23951 if (!data)
23952 exit (1);
23953 for (i = 0; i < pagesize; ++i)
23954 *(data + i) = rand ();
23955 umask (0);
23956 fd = creat ("conftest.mmap", 0600);
23957 if (fd < 0)
23958 exit (1);
23959 if (write (fd, data, pagesize) != pagesize)
23960 exit (1);
23961 close (fd);
23962
23963 /* Mmap the file as read/write/shared and verify that we see the
23964 same garbage. */
23965 fd = open ("conftest.mmap", O_RDWR);
23966 if (fd < 0)
23967 exit (1);
23968 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23969 if (data2 == 0)
23970 exit (1);
23971 for (i = 0; i < pagesize; ++i)
23972 if (*(data + i) != *(data2 + i))
23973 exit (1);
23974
23975 /* Finally, make sure that changes to the mapped area
23976 percolate back to the file as seen by read(). */
23977 for (i = 0; i < pagesize; ++i)
23978 *(data2 + i) = *(data2 + i) + 1;
23979 data3 = (char *) malloc (pagesize);
23980 if (!data3)
23981 exit (1);
23982 if (read (fd, data3, pagesize) != pagesize)
23983 exit (1);
23984 for (i = 0; i < pagesize; ++i)
23985 if (*(data2 + i) != *(data3 + i))
23986 exit (1);
23987 close (fd);
23988 exit (0);
23989}
23990_ACEOF
23991if ac_fn_c_try_run "$LINENO"; then :
23992 magick_cv_func_mmap_fileio=yes
23993else
23994 magick_cv_func_mmap_fileio=no
23995fi
23996rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23997 conftest.$ac_objext conftest.beam conftest.$ac_ext
23998fi
23999
24000fi
24001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24002$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24003if test $magick_cv_func_mmap_fileio = yes; then
24004
24005$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24006
24007fi
24008rm -f conftest.mmap
24009
cristy8b350f62009-11-15 23:12:43 +000024010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024011$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024012if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024013 $as_echo_n "(cached) " >&6
24014else
cristy8b350f62009-11-15 23:12:43 +000024015 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024016 ac_cv_func_closedir_void=yes
24017else
cristy8b350f62009-11-15 23:12:43 +000024018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024019/* end confdefs.h. */
24020$ac_includes_default
24021#include <$ac_header_dirent>
24022#ifndef __cplusplus
24023int closedir ();
24024#endif
24025
24026int
24027main ()
24028{
24029return closedir (opendir (".")) != 0;
24030 ;
24031 return 0;
24032}
24033_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024034if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024035 ac_cv_func_closedir_void=no
24036else
cristy8b350f62009-11-15 23:12:43 +000024037 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024038fi
cristy8b350f62009-11-15 23:12:43 +000024039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24040 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024041fi
24042
cristy3ed852e2009-09-05 21:47:34 +000024043fi
cristy8b350f62009-11-15 23:12:43 +000024044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024045$as_echo "$ac_cv_func_closedir_void" >&6; }
24046if test $ac_cv_func_closedir_void = yes; then
24047
cristy8b350f62009-11-15 23:12:43 +000024048$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024049
24050fi
24051
cristycd4c5312009-11-22 01:19:08 +000024052
24053
24054
24055 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024056do :
24057 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024058ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24059"
cristy98dddb52010-11-04 00:30:15 +000024060if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024061 cat >>confdefs.h <<_ACEOF
24062#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24063_ACEOF
24064
24065fi
24066
24067done
24068
cristycd4c5312009-11-22 01:19:08 +000024069
24070
24071
24072
24073
24074
24075
cristy3ed852e2009-09-05 21:47:34 +000024076for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024077do :
24078 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024079if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024080 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024081#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024082_ACEOF
24083
24084fi
24085done
24086
cristy8b350f62009-11-15 23:12:43 +000024087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024088$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024089if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024090 $as_echo_n "(cached) " >&6
24091else
cristy8b350f62009-11-15 23:12:43 +000024092 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024093 ac_cv_func_mmap_fixed_mapped=no
24094else
cristy8b350f62009-11-15 23:12:43 +000024095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024096/* end confdefs.h. */
24097$ac_includes_default
24098/* malloc might have been renamed as rpl_malloc. */
24099#undef malloc
24100
24101/* Thanks to Mike Haertel and Jim Avera for this test.
24102 Here is a matrix of mmap possibilities:
24103 mmap private not fixed
24104 mmap private fixed at somewhere currently unmapped
24105 mmap private fixed at somewhere already mapped
24106 mmap shared not fixed
24107 mmap shared fixed at somewhere currently unmapped
24108 mmap shared fixed at somewhere already mapped
24109 For private mappings, we should verify that changes cannot be read()
24110 back from the file, nor mmap's back from the file at a different
24111 address. (There have been systems where private was not correctly
24112 implemented like the infamous i386 svr4.0, and systems where the
24113 VM page cache was not coherent with the file system buffer cache
24114 like early versions of FreeBSD and possibly contemporary NetBSD.)
24115 For shared mappings, we should conversely verify that changes get
24116 propagated back to all the places they're supposed to be.
24117
24118 Grep wants private fixed already mapped.
24119 The main things grep needs to know about mmap are:
24120 * does it exist and is it safe to write into the mmap'd area
24121 * how to use it (BSD variants) */
24122
24123#include <fcntl.h>
24124#include <sys/mman.h>
24125
24126#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24127char *malloc ();
24128#endif
24129
24130/* This mess was copied from the GNU getpagesize.h. */
24131#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024132# ifdef _SC_PAGESIZE
24133# define getpagesize() sysconf(_SC_PAGESIZE)
24134# else /* no _SC_PAGESIZE */
24135# ifdef HAVE_SYS_PARAM_H
24136# include <sys/param.h>
24137# ifdef EXEC_PAGESIZE
24138# define getpagesize() EXEC_PAGESIZE
24139# else /* no EXEC_PAGESIZE */
24140# ifdef NBPG
24141# define getpagesize() NBPG * CLSIZE
24142# ifndef CLSIZE
24143# define CLSIZE 1
24144# endif /* no CLSIZE */
24145# else /* no NBPG */
24146# ifdef NBPC
24147# define getpagesize() NBPC
24148# else /* no NBPC */
24149# ifdef PAGESIZE
24150# define getpagesize() PAGESIZE
24151# endif /* PAGESIZE */
24152# endif /* no NBPC */
24153# endif /* no NBPG */
24154# endif /* no EXEC_PAGESIZE */
24155# else /* no HAVE_SYS_PARAM_H */
24156# define getpagesize() 8192 /* punt totally */
24157# endif /* no HAVE_SYS_PARAM_H */
24158# endif /* no _SC_PAGESIZE */
24159
24160#endif /* no HAVE_GETPAGESIZE */
24161
24162int
24163main ()
24164{
24165 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024166 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024167 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024168 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024169
24170 pagesize = getpagesize ();
24171
24172 /* First, make a file with some known garbage in it. */
24173 data = (char *) malloc (pagesize);
24174 if (!data)
24175 return 1;
24176 for (i = 0; i < pagesize; ++i)
24177 *(data + i) = rand ();
24178 umask (0);
24179 fd = creat ("conftest.mmap", 0600);
24180 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024181 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024182 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024183 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024184 close (fd);
24185
cristycd4c5312009-11-22 01:19:08 +000024186 /* Next, check that the tail of a page is zero-filled. File must have
24187 non-zero length, otherwise we risk SIGBUS for entire page. */
24188 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24189 if (fd2 < 0)
24190 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024191 cdata2 = "";
24192 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024193 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024194 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024195 if (data2 == MAP_FAILED)
24196 return 6;
24197 for (i = 0; i < pagesize; ++i)
24198 if (*(data2 + i))
24199 return 7;
24200 close (fd2);
24201 if (munmap (data2, pagesize))
24202 return 8;
24203
cristy3ed852e2009-09-05 21:47:34 +000024204 /* Next, try to mmap the file at a fixed address which already has
24205 something else allocated at it. If we can, also make sure that
24206 we see the same garbage. */
24207 fd = open ("conftest.mmap", O_RDWR);
24208 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024209 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024210 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24211 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024212 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024213 for (i = 0; i < pagesize; ++i)
24214 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024215 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024216
24217 /* Finally, make sure that changes to the mapped area do not
24218 percolate back to the file as seen by read(). (This is a bug on
24219 some variants of i386 svr4.0.) */
24220 for (i = 0; i < pagesize; ++i)
24221 *(data2 + i) = *(data2 + i) + 1;
24222 data3 = (char *) malloc (pagesize);
24223 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024224 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024225 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024226 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024227 for (i = 0; i < pagesize; ++i)
24228 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024229 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024230 close (fd);
24231 return 0;
24232}
24233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024234if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024235 ac_cv_func_mmap_fixed_mapped=yes
24236else
cristy8b350f62009-11-15 23:12:43 +000024237 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024238fi
cristy8b350f62009-11-15 23:12:43 +000024239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24240 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024241fi
24242
cristy3ed852e2009-09-05 21:47:34 +000024243fi
cristy8b350f62009-11-15 23:12:43 +000024244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024245$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24246if test $ac_cv_func_mmap_fixed_mapped = yes; then
24247
cristy8b350f62009-11-15 23:12:43 +000024248$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024249
24250fi
cristycd4c5312009-11-22 01:19:08 +000024251rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024252
cristy3ed852e2009-09-05 21:47:34 +000024253for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024254do :
24255 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024256if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024257 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024258#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024259_ACEOF
24260
24261fi
24262
24263done
24264
cristy3ed852e2009-09-05 21:47:34 +000024265for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024266do :
24267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24268ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024269if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024270 cat >>confdefs.h <<_ACEOF
24271#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24272_ACEOF
24273
24274fi
24275done
24276
24277if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024279$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024280if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024281 $as_echo_n "(cached) " >&6
24282else
cristy8b350f62009-11-15 23:12:43 +000024283 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024284 ac_cv_func_fork_works=cross
24285else
cristy8b350f62009-11-15 23:12:43 +000024286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024287/* end confdefs.h. */
24288$ac_includes_default
24289int
24290main ()
24291{
24292
24293 /* By Ruediger Kuhlmann. */
24294 return fork () < 0;
24295
24296 ;
24297 return 0;
24298}
24299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024300if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024301 ac_cv_func_fork_works=yes
24302else
cristy8b350f62009-11-15 23:12:43 +000024303 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024304fi
cristy8b350f62009-11-15 23:12:43 +000024305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24306 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024307fi
24308
cristy3ed852e2009-09-05 21:47:34 +000024309fi
cristy8b350f62009-11-15 23:12:43 +000024310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024311$as_echo "$ac_cv_func_fork_works" >&6; }
24312
24313else
24314 ac_cv_func_fork_works=$ac_cv_func_fork
24315fi
24316if test "x$ac_cv_func_fork_works" = xcross; then
24317 case $host in
24318 *-*-amigaos* | *-*-msdosdjgpp*)
24319 # Override, as these systems have only a dummy fork() stub
24320 ac_cv_func_fork_works=no
24321 ;;
24322 *)
24323 ac_cv_func_fork_works=yes
24324 ;;
24325 esac
cristy8b350f62009-11-15 23:12:43 +000024326 { $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 +000024327$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24328fi
24329ac_cv_func_vfork_works=$ac_cv_func_vfork
24330if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024332$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024333if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024334 $as_echo_n "(cached) " >&6
24335else
cristy8b350f62009-11-15 23:12:43 +000024336 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024337 ac_cv_func_vfork_works=cross
24338else
cristy8b350f62009-11-15 23:12:43 +000024339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024340/* end confdefs.h. */
24341/* Thanks to Paul Eggert for this test. */
24342$ac_includes_default
24343#include <sys/wait.h>
24344#ifdef HAVE_VFORK_H
24345# include <vfork.h>
24346#endif
24347/* On some sparc systems, changes by the child to local and incoming
24348 argument registers are propagated back to the parent. The compiler
24349 is told about this with #include <vfork.h>, but some compilers
24350 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24351 static variable whose address is put into a register that is
24352 clobbered by the vfork. */
24353static void
24354#ifdef __cplusplus
24355sparc_address_test (int arg)
24356# else
24357sparc_address_test (arg) int arg;
24358#endif
24359{
24360 static pid_t child;
24361 if (!child) {
24362 child = vfork ();
24363 if (child < 0) {
24364 perror ("vfork");
24365 _exit(2);
24366 }
24367 if (!child) {
24368 arg = getpid();
24369 write(-1, "", 0);
24370 _exit (arg);
24371 }
24372 }
24373}
24374
24375int
24376main ()
24377{
24378 pid_t parent = getpid ();
24379 pid_t child;
24380
24381 sparc_address_test (0);
24382
24383 child = vfork ();
24384
24385 if (child == 0) {
24386 /* Here is another test for sparc vfork register problems. This
24387 test uses lots of local variables, at least as many local
24388 variables as main has allocated so far including compiler
24389 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24390 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24391 reuse the register of parent for one of the local variables,
24392 since it will think that parent can't possibly be used any more
24393 in this routine. Assigning to the local variable will thus
24394 munge parent in the parent process. */
24395 pid_t
24396 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24397 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24398 /* Convince the compiler that p..p7 are live; otherwise, it might
24399 use the same hardware register for all 8 local variables. */
24400 if (p != p1 || p != p2 || p != p3 || p != p4
24401 || p != p5 || p != p6 || p != p7)
24402 _exit(1);
24403
24404 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24405 from child file descriptors. If the child closes a descriptor
24406 before it execs or exits, this munges the parent's descriptor
24407 as well. Test for this by closing stdout in the child. */
24408 _exit(close(fileno(stdout)) != 0);
24409 } else {
24410 int status;
24411 struct stat st;
24412
24413 while (wait(&status) != child)
24414 ;
24415 return (
24416 /* Was there some problem with vforking? */
24417 child < 0
24418
24419 /* Did the child fail? (This shouldn't happen.) */
24420 || status
24421
24422 /* Did the vfork/compiler bug occur? */
24423 || parent != getpid()
24424
24425 /* Did the file descriptor bug occur? */
24426 || fstat(fileno(stdout), &st) != 0
24427 );
24428 }
24429}
24430_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024431if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024432 ac_cv_func_vfork_works=yes
24433else
cristy8b350f62009-11-15 23:12:43 +000024434 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024435fi
cristy8b350f62009-11-15 23:12:43 +000024436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24437 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024438fi
24439
cristy3ed852e2009-09-05 21:47:34 +000024440fi
cristy8b350f62009-11-15 23:12:43 +000024441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024442$as_echo "$ac_cv_func_vfork_works" >&6; }
24443
24444fi;
24445if test "x$ac_cv_func_fork_works" = xcross; then
24446 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024447 { $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 +000024448$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24449fi
24450
24451if test "x$ac_cv_func_vfork_works" = xyes; then
24452
cristy8b350f62009-11-15 23:12:43 +000024453$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024454
24455else
24456
cristy8b350f62009-11-15 23:12:43 +000024457$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024458
24459fi
24460if test "x$ac_cv_func_fork_works" = xyes; then
24461
cristy8b350f62009-11-15 23:12:43 +000024462$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024463
24464fi
24465
cristy8b350f62009-11-15 23:12:43 +000024466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024467$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024468if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024469 $as_echo_n "(cached) " >&6
24470else
cristy8b350f62009-11-15 23:12:43 +000024471 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024472 ac_cv_func_memcmp_working=no
24473else
cristy8b350f62009-11-15 23:12:43 +000024474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024475/* end confdefs.h. */
24476$ac_includes_default
24477int
24478main ()
24479{
24480
24481 /* Some versions of memcmp are not 8-bit clean. */
24482 char c0 = '\100', c1 = '\200', c2 = '\201';
24483 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24484 return 1;
24485
24486 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24487 or more and with at least one buffer not starting on a 4-byte boundary.
24488 William Lewis provided this test program. */
24489 {
24490 char foo[21];
24491 char bar[21];
24492 int i;
24493 for (i = 0; i < 4; i++)
24494 {
24495 char *a = foo + i;
24496 char *b = bar + i;
24497 strcpy (a, "--------01111111");
24498 strcpy (b, "--------10000000");
24499 if (memcmp (a, b, 16) >= 0)
24500 return 1;
24501 }
24502 return 0;
24503 }
24504
24505 ;
24506 return 0;
24507}
24508_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024509if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024510 ac_cv_func_memcmp_working=yes
24511else
cristy8b350f62009-11-15 23:12:43 +000024512 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024513fi
cristy8b350f62009-11-15 23:12:43 +000024514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24515 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024516fi
24517
cristy3ed852e2009-09-05 21:47:34 +000024518fi
cristy8b350f62009-11-15 23:12:43 +000024519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024520$as_echo "$ac_cv_func_memcmp_working" >&6; }
24521test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24522 *" memcmp.$ac_objext "* ) ;;
24523 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24524 ;;
24525esac
24526
24527
cristy3ed852e2009-09-05 21:47:34 +000024528for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024529do :
24530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24531ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024532if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024533 cat >>confdefs.h <<_ACEOF
24534#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24535_ACEOF
24536
24537fi
24538
24539done
24540
cristy8b350f62009-11-15 23:12:43 +000024541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024542$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024543if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024544 $as_echo_n "(cached) " >&6
24545else
24546 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24547 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24548 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024550/* end confdefs.h. */
24551$ac_includes_default
24552#ifdef HAVE_SYS_SELECT_H
24553# include <sys/select.h>
24554#endif
24555#ifdef HAVE_SYS_SOCKET_H
24556# include <sys/socket.h>
24557#endif
24558
24559int
24560main ()
24561{
24562extern int select ($ac_arg1,
24563 $ac_arg234, $ac_arg234, $ac_arg234,
24564 $ac_arg5);
24565 ;
24566 return 0;
24567}
24568_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024569if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024570 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024571fi
cristy3ed852e2009-09-05 21:47:34 +000024572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24573 done
24574 done
24575done
24576# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024577: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024578
24579fi
cristy8b350f62009-11-15 23:12:43 +000024580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024581$as_echo "$ac_cv_func_select_args" >&6; }
24582ac_save_IFS=$IFS; IFS=','
24583set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24584IFS=$ac_save_IFS
24585shift
24586
24587cat >>confdefs.h <<_ACEOF
24588#define SELECT_TYPE_ARG1 $1
24589_ACEOF
24590
24591
24592cat >>confdefs.h <<_ACEOF
24593#define SELECT_TYPE_ARG234 ($2)
24594_ACEOF
24595
24596
24597cat >>confdefs.h <<_ACEOF
24598#define SELECT_TYPE_ARG5 ($3)
24599_ACEOF
24600
24601rm -f conftest*
24602
cristyda16f162011-02-19 23:52:17 +000024603if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024604 $as_echo_n "(cached) " >&6
24605else
24606 ac_cv_func_setvbuf_reversed=no
24607fi
24608
24609
cristy8b350f62009-11-15 23:12:43 +000024610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024611$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024612if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024613 $as_echo_n "(cached) " >&6
24614else
cristy8b350f62009-11-15 23:12:43 +000024615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024616/* end confdefs.h. */
24617#include <sys/types.h>
24618#include <signal.h>
24619
24620int
24621main ()
24622{
24623return *(signal (0, 0)) (0) == 1;
24624 ;
24625 return 0;
24626}
24627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024628if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024629 ac_cv_type_signal=int
24630else
cristy8b350f62009-11-15 23:12:43 +000024631 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024632fi
cristy3ed852e2009-09-05 21:47:34 +000024633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24634fi
cristy8b350f62009-11-15 23:12:43 +000024635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024636$as_echo "$ac_cv_type_signal" >&6; }
24637
24638cat >>confdefs.h <<_ACEOF
24639#define RETSIGTYPE $ac_cv_type_signal
24640_ACEOF
24641
24642
cristy8b350f62009-11-15 23:12:43 +000024643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024644$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024645if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024646 $as_echo_n "(cached) " >&6
24647else
cristy8b350f62009-11-15 23:12:43 +000024648 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024649 ac_cv_func_strtod=no
24650else
cristy8b350f62009-11-15 23:12:43 +000024651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024652/* end confdefs.h. */
24653
24654$ac_includes_default
24655#ifndef strtod
24656double strtod ();
24657#endif
24658int
24659main()
24660{
24661 {
24662 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24663 char *string = " +69";
24664 char *term;
24665 double value;
24666 value = strtod (string, &term);
24667 if (value != 69 || term != (string + 4))
24668 return 1;
24669 }
24670
24671 {
24672 /* Under Solaris 2.4, strtod returns the wrong value for the
24673 terminating character under some conditions. */
24674 char *string = "NaN";
24675 char *term;
24676 strtod (string, &term);
24677 if (term != string && *(term - 1) == 0)
24678 return 1;
24679 }
24680 return 0;
24681}
24682
24683_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024684if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024685 ac_cv_func_strtod=yes
24686else
cristy8b350f62009-11-15 23:12:43 +000024687 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024688fi
cristy8b350f62009-11-15 23:12:43 +000024689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24690 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024691fi
24692
cristy3ed852e2009-09-05 21:47:34 +000024693fi
cristy8b350f62009-11-15 23:12:43 +000024694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024695$as_echo "$ac_cv_func_strtod" >&6; }
24696if test $ac_cv_func_strtod = no; then
24697 case " $LIBOBJS " in
24698 *" strtod.$ac_objext "* ) ;;
24699 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24700 ;;
24701esac
24702
cristy8b350f62009-11-15 23:12:43 +000024703ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024704if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024705
cristy3ed852e2009-09-05 21:47:34 +000024706fi
24707
cristy3ed852e2009-09-05 21:47:34 +000024708if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024710$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024711if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024712 $as_echo_n "(cached) " >&6
24713else
24714 ac_check_lib_save_LIBS=$LIBS
24715LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024717/* end confdefs.h. */
24718
24719/* Override any GCC internal prototype to avoid an error.
24720 Use char because int might match the return type of a GCC
24721 builtin and then its argument prototype would still apply. */
24722#ifdef __cplusplus
24723extern "C"
24724#endif
24725char pow ();
24726int
24727main ()
24728{
24729return pow ();
24730 ;
24731 return 0;
24732}
24733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024734if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024735 ac_cv_lib_m_pow=yes
24736else
cristy8b350f62009-11-15 23:12:43 +000024737 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024738fi
cristy8b350f62009-11-15 23:12:43 +000024739rm -f core conftest.err conftest.$ac_objext \
24740 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024741LIBS=$ac_check_lib_save_LIBS
24742fi
cristy8b350f62009-11-15 23:12:43 +000024743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024744$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024745if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024746 POW_LIB=-lm
24747else
cristy8b350f62009-11-15 23:12:43 +000024748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024749$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24750fi
24751
24752fi
24753
24754fi
24755
cristy7d4a1d62011-10-13 15:54:12 +000024756ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24757if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24758 ac_have_decl=1
24759else
24760 ac_have_decl=0
24761fi
24762
24763cat >>confdefs.h <<_ACEOF
24764#define HAVE_DECL_STRERROR_R $ac_have_decl
24765_ACEOF
24766
24767for ac_func in strerror_r
24768do :
24769 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24770if test "x$ac_cv_func_strerror_r" = xyes; then :
24771 cat >>confdefs.h <<_ACEOF
24772#define HAVE_STRERROR_R 1
24773_ACEOF
24774
24775fi
24776done
24777
24778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24779$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24780if ${ac_cv_func_strerror_r_char_p+:} false; then :
24781 $as_echo_n "(cached) " >&6
24782else
24783
24784 ac_cv_func_strerror_r_char_p=no
24785 if test $ac_cv_have_decl_strerror_r = yes; then
24786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24787/* end confdefs.h. */
24788$ac_includes_default
24789int
24790main ()
24791{
24792
24793 char buf[100];
24794 char x = *strerror_r (0, buf, sizeof buf);
24795 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024796 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024797
24798 ;
24799 return 0;
24800}
24801_ACEOF
24802if ac_fn_c_try_compile "$LINENO"; then :
24803 ac_cv_func_strerror_r_char_p=yes
24804fi
24805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24806 else
24807 # strerror_r is not declared. Choose between
24808 # systems that have relatively inaccessible declarations for the
24809 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24810 # former has a strerror_r that returns char*, while the latter
24811 # has a strerror_r that returns `int'.
24812 # This test should segfault on the DEC system.
24813 if test "$cross_compiling" = yes; then :
24814 :
24815else
24816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24817/* end confdefs.h. */
24818$ac_includes_default
24819 extern char *strerror_r ();
24820int
24821main ()
24822{
24823char buf[100];
24824 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024825 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024826 ;
24827 return 0;
24828}
24829_ACEOF
24830if ac_fn_c_try_run "$LINENO"; then :
24831 ac_cv_func_strerror_r_char_p=yes
24832fi
24833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24834 conftest.$ac_objext conftest.beam conftest.$ac_ext
24835fi
24836
24837 fi
24838
24839fi
24840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24841$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24842if test $ac_cv_func_strerror_r_char_p = yes; then
24843
24844$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24845
24846fi
24847
cristy3ed852e2009-09-05 21:47:34 +000024848for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024849do :
24850 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024851if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024852 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024853#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024854_ACEOF
24855
cristy8b350f62009-11-15 23:12:43 +000024856ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024857if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024858
cristy8b350f62009-11-15 23:12:43 +000024859$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024860
24861fi
24862
24863fi
24864done
24865
24866
24867
cristy161b9262010-03-20 19:34:32 +000024868#
24869# Find math library
24870#
24871MATH_LIBS=''
24872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24873$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024874if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024875 $as_echo_n "(cached) " >&6
24876else
24877 ac_check_lib_save_LIBS=$LIBS
24878LIBS="-lm $LIBS"
24879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24880/* end confdefs.h. */
24881
24882/* Override any GCC internal prototype to avoid an error.
24883 Use char because int might match the return type of a GCC
24884 builtin and then its argument prototype would still apply. */
24885#ifdef __cplusplus
24886extern "C"
24887#endif
24888char sqrt ();
24889int
24890main ()
24891{
24892return sqrt ();
24893 ;
24894 return 0;
24895}
24896_ACEOF
24897if ac_fn_c_try_link "$LINENO"; then :
24898 ac_cv_lib_m_sqrt=yes
24899else
24900 ac_cv_lib_m_sqrt=no
24901fi
24902rm -f core conftest.err conftest.$ac_objext \
24903 conftest$ac_exeext conftest.$ac_ext
24904LIBS=$ac_check_lib_save_LIBS
24905fi
24906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24907$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024908if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024909 MATH_LIBS="-lm"
24910fi
24911
24912LIBS="$MATH_LIBS $LIBS"
24913
24914
cristy85572162013-01-04 19:19:32 +000024915#
24916# Find socket library
24917#
cristy8a5d7f42013-01-06 15:24:33 +000024918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
24919$as_echo_n "checking for library containing gethostbyname... " >&6; }
24920if ${ac_cv_search_gethostbyname+:} false; then :
24921 $as_echo_n "(cached) " >&6
24922else
24923 ac_func_search_save_LIBS=$LIBS
24924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24925/* end confdefs.h. */
24926
24927/* Override any GCC internal prototype to avoid an error.
24928 Use char because int might match the return type of a GCC
24929 builtin and then its argument prototype would still apply. */
24930#ifdef __cplusplus
24931extern "C"
24932#endif
24933char gethostbyname ();
24934int
24935main ()
24936{
24937return gethostbyname ();
24938 ;
24939 return 0;
24940}
24941_ACEOF
24942for ac_lib in '' resolv nsl; do
24943 if test -z "$ac_lib"; then
24944 ac_res="none required"
24945 else
24946 ac_res=-l$ac_lib
24947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24948 fi
24949 if ac_fn_c_try_link "$LINENO"; then :
24950 ac_cv_search_gethostbyname=$ac_res
24951fi
24952rm -f core conftest.err conftest.$ac_objext \
24953 conftest$ac_exeext
24954 if ${ac_cv_search_gethostbyname+:} false; then :
24955 break
24956fi
24957done
24958if ${ac_cv_search_gethostbyname+:} false; then :
24959
24960else
24961 ac_cv_search_gethostbyname=no
24962fi
24963rm conftest.$ac_ext
24964LIBS=$ac_func_search_save_LIBS
24965fi
24966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
24967$as_echo "$ac_cv_search_gethostbyname" >&6; }
24968ac_res=$ac_cv_search_gethostbyname
24969if test "$ac_res" != no; then :
24970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24971
24972fi
24973
cristy85572162013-01-04 19:19:32 +000024974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
24975$as_echo_n "checking for library containing socket... " >&6; }
24976if ${ac_cv_search_socket+:} false; then :
24977 $as_echo_n "(cached) " >&6
24978else
24979 ac_func_search_save_LIBS=$LIBS
24980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24981/* end confdefs.h. */
24982
24983/* Override any GCC internal prototype to avoid an error.
24984 Use char because int might match the return type of a GCC
24985 builtin and then its argument prototype would still apply. */
24986#ifdef __cplusplus
24987extern "C"
24988#endif
24989char socket ();
24990int
24991main ()
24992{
24993return socket ();
24994 ;
24995 return 0;
24996}
24997_ACEOF
24998for ac_lib in '' socket; do
24999 if test -z "$ac_lib"; then
25000 ac_res="none required"
25001 else
25002 ac_res=-l$ac_lib
25003 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25004 fi
25005 if ac_fn_c_try_link "$LINENO"; then :
25006 ac_cv_search_socket=$ac_res
25007fi
25008rm -f core conftest.err conftest.$ac_objext \
25009 conftest$ac_exeext
25010 if ${ac_cv_search_socket+:} false; then :
25011 break
25012fi
25013done
25014if ${ac_cv_search_socket+:} false; then :
25015
25016else
25017 ac_cv_search_socket=no
25018fi
25019rm conftest.$ac_ext
25020LIBS=$ac_func_search_save_LIBS
25021fi
25022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25023$as_echo "$ac_cv_search_socket" >&6; }
25024ac_res=$ac_cv_search_socket
25025if test "$ac_res" != no; then :
25026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25027
cristy85572162013-01-04 19:19:32 +000025028
cristy8a5d7f42013-01-06 15:24:33 +000025029$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025030
cristy03f187e2013-01-24 00:22:19 +000025031 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025032
25033fi
25034
25035
25036for 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 +000025037do :
25038 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25039ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025040if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025041 cat >>confdefs.h <<_ACEOF
25042#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25043_ACEOF
25044
25045fi
25046done
25047
25048
cristye43a45e2009-09-28 14:49:00 +000025049#
25050# Check for clock_gettime().
25051#
cristy8b350f62009-11-15 23:12:43 +000025052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025053$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025054if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025055 $as_echo_n "(cached) " >&6
25056else
25057 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025059/* end confdefs.h. */
25060
25061/* Override any GCC internal prototype to avoid an error.
25062 Use char because int might match the return type of a GCC
25063 builtin and then its argument prototype would still apply. */
25064#ifdef __cplusplus
25065extern "C"
25066#endif
25067char clock_gettime ();
25068int
25069main ()
25070{
25071return clock_gettime ();
25072 ;
25073 return 0;
25074}
25075_ACEOF
25076for ac_lib in '' rt; do
25077 if test -z "$ac_lib"; then
25078 ac_res="none required"
25079 else
25080 ac_res=-l$ac_lib
25081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25082 fi
cristy8b350f62009-11-15 23:12:43 +000025083 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025084 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025085fi
cristy8b350f62009-11-15 23:12:43 +000025086rm -f core conftest.err conftest.$ac_objext \
25087 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025088 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025089 break
25090fi
25091done
cristyda16f162011-02-19 23:52:17 +000025092if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025093
cristye43a45e2009-09-28 14:49:00 +000025094else
25095 ac_cv_search_clock_gettime=no
25096fi
25097rm conftest.$ac_ext
25098LIBS=$ac_func_search_save_LIBS
25099fi
cristy8b350f62009-11-15 23:12:43 +000025100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025101$as_echo "$ac_cv_search_clock_gettime" >&6; }
25102ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025103if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25105
25106
cristy8b350f62009-11-15 23:12:43 +000025107$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025108
cristy8b350f62009-11-15 23:12:43 +000025109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025110$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025112/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025113
25114 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025115int
25116main ()
25117{
25118clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025119 ;
25120 return 0;
25121}
25122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025123if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025124
cristyad38abe2012-12-23 23:03:21 +000025125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25126$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025127
cristy8b350f62009-11-15 23:12:43 +000025128$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025129
25130
25131else
cristyad38abe2012-12-23 23:03:21 +000025132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25133$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025134
25135fi
cristye43a45e2009-09-28 14:49:00 +000025136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25137
25138else
25139
cristy8b350f62009-11-15 23:12:43 +000025140 for ac_func in gettimeofday ftime
25141do :
25142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25143ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025144if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025145 cat >>confdefs.h <<_ACEOF
25146#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25147_ACEOF
25148 break
25149fi
25150done
25151
25152
25153
25154fi
25155
25156
cristy3ed852e2009-09-05 21:47:34 +000025157########
25158#
25159# Check for function prototypes
25160#
25161########
25162
cristy8b350f62009-11-15 23:12:43 +000025163ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025164#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025165"
cristyda16f162011-02-19 23:52:17 +000025166if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025167 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025168else
cristy8b350f62009-11-15 23:12:43 +000025169 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025170fi
25171
cristy3ed852e2009-09-05 21:47:34 +000025172cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025173#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025174_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025175ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025176#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025177"
cristyda16f162011-02-19 23:52:17 +000025178if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025179 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025180else
cristy8b350f62009-11-15 23:12:43 +000025181 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025182fi
25183
cristy3ed852e2009-09-05 21:47:34 +000025184cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025185#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025186_ACEOF
25187
25188
cristy8b350f62009-11-15 23:12:43 +000025189ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025190#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025191"
cristyda16f162011-02-19 23:52:17 +000025192if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025193 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025194else
cristy8b350f62009-11-15 23:12:43 +000025195 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025196fi
25197
cristy3ed852e2009-09-05 21:47:34 +000025198cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025199#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025200_ACEOF
25201
25202
cristy8b350f62009-11-15 23:12:43 +000025203ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025204#include <stdio.h>
25205#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025206"
cristyda16f162011-02-19 23:52:17 +000025207if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025208 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025209else
cristy8b350f62009-11-15 23:12:43 +000025210 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025211fi
25212
cristy3ed852e2009-09-05 21:47:34 +000025213cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025214#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025215_ACEOF
25216
25217
cristy3ed852e2009-09-05 21:47:34 +000025218########
25219#
25220# C++ Support Tests (For Magick++)
25221#
25222########
25223have_magick_plus_plus='no'
25224if test "$with_magick_plus_plus" = 'yes'; then
25225 OLIBS="$LIBS"
25226 LIBS=''
25227 ac_ext=cpp
25228ac_cpp='$CXXCPP $CPPFLAGS'
25229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25232
25233
25234 # Full set of headers used...
25235 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25236 # functional iomanip iosfwd iostream iterator list string strstream utility
25237 ac_ext=cpp
25238ac_cpp='$CXXCPP $CPPFLAGS'
25239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25242
25243 ac_ext=cpp
25244ac_cpp='$CXXCPP $CPPFLAGS'
25245ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25246ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25247ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25248if test -z "$CXX"; then
25249 if test -n "$CCC"; then
25250 CXX=$CCC
25251 else
25252 if test -n "$ac_tool_prefix"; then
25253 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25254 do
25255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25256set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025258$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025259if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025260 $as_echo_n "(cached) " >&6
25261else
25262 if test -n "$CXX"; then
25263 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25264else
25265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25266for as_dir in $PATH
25267do
25268 IFS=$as_save_IFS
25269 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025270 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025272 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025274 break 2
25275 fi
25276done
cristy8b350f62009-11-15 23:12:43 +000025277 done
cristy3ed852e2009-09-05 21:47:34 +000025278IFS=$as_save_IFS
25279
25280fi
25281fi
25282CXX=$ac_cv_prog_CXX
25283if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025285$as_echo "$CXX" >&6; }
25286else
cristy8b350f62009-11-15 23:12:43 +000025287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025288$as_echo "no" >&6; }
25289fi
25290
25291
25292 test -n "$CXX" && break
25293 done
25294fi
25295if test -z "$CXX"; then
25296 ac_ct_CXX=$CXX
25297 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25298do
25299 # Extract the first word of "$ac_prog", so it can be a program name with args.
25300set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025302$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025303if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025304 $as_echo_n "(cached) " >&6
25305else
25306 if test -n "$ac_ct_CXX"; then
25307 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25308else
25309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25310for as_dir in $PATH
25311do
25312 IFS=$as_save_IFS
25313 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025316 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025318 break 2
25319 fi
25320done
cristy8b350f62009-11-15 23:12:43 +000025321 done
cristy3ed852e2009-09-05 21:47:34 +000025322IFS=$as_save_IFS
25323
25324fi
25325fi
25326ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25327if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025329$as_echo "$ac_ct_CXX" >&6; }
25330else
cristy8b350f62009-11-15 23:12:43 +000025331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025332$as_echo "no" >&6; }
25333fi
25334
25335
25336 test -n "$ac_ct_CXX" && break
25337done
25338
25339 if test "x$ac_ct_CXX" = x; then
25340 CXX="g++"
25341 else
25342 case $cross_compiling:$ac_tool_warned in
25343yes:)
cristy8b350f62009-11-15 23:12:43 +000025344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25346ac_tool_warned=yes ;;
25347esac
25348 CXX=$ac_ct_CXX
25349 fi
25350fi
25351
25352 fi
25353fi
25354# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025355$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025356set X $ac_compile
25357ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025358for ac_option in --version -v -V -qversion; do
25359 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025360case "(($ac_try" in
25361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25362 *) ac_try_echo=$ac_try;;
25363esac
cristy8b350f62009-11-15 23:12:43 +000025364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25365$as_echo "$ac_try_echo"; } >&5
25366 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025367 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025368 if test -s conftest.err; then
25369 sed '10a\
25370... rest of stderr output deleted ...
25371 10q' conftest.err >conftest.er1
25372 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025373 fi
cristycd4c5312009-11-22 01:19:08 +000025374 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25376 test $ac_status = 0; }
25377done
cristy3ed852e2009-09-05 21:47:34 +000025378
cristy8b350f62009-11-15 23:12:43 +000025379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025380$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025381if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025382 $as_echo_n "(cached) " >&6
25383else
cristy8b350f62009-11-15 23:12:43 +000025384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025385/* end confdefs.h. */
25386
25387int
25388main ()
25389{
25390#ifndef __GNUC__
25391 choke me
25392#endif
25393
25394 ;
25395 return 0;
25396}
25397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025398if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025399 ac_compiler_gnu=yes
25400else
cristy8b350f62009-11-15 23:12:43 +000025401 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025402fi
cristy3ed852e2009-09-05 21:47:34 +000025403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25404ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25405
25406fi
cristy8b350f62009-11-15 23:12:43 +000025407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025408$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25409if test $ac_compiler_gnu = yes; then
25410 GXX=yes
25411else
25412 GXX=
25413fi
25414ac_test_CXXFLAGS=${CXXFLAGS+set}
25415ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025417$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025418if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025419 $as_echo_n "(cached) " >&6
25420else
25421 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25422 ac_cxx_werror_flag=yes
25423 ac_cv_prog_cxx_g=no
25424 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025426/* end confdefs.h. */
25427
25428int
25429main ()
25430{
25431
25432 ;
25433 return 0;
25434}
25435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025436if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025437 ac_cv_prog_cxx_g=yes
25438else
cristy8b350f62009-11-15 23:12:43 +000025439 CXXFLAGS=""
25440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025441/* end confdefs.h. */
25442
25443int
25444main ()
25445{
25446
25447 ;
25448 return 0;
25449}
25450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025451if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025452
cristy8b350f62009-11-15 23:12:43 +000025453else
25454 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025455 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025457/* end confdefs.h. */
25458
25459int
25460main ()
25461{
25462
25463 ;
25464 return 0;
25465}
25466_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025467if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025468 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025469fi
cristy3ed852e2009-09-05 21:47:34 +000025470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25471fi
cristy3ed852e2009-09-05 21:47:34 +000025472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25473fi
cristy3ed852e2009-09-05 21:47:34 +000025474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25475 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25476fi
cristy8b350f62009-11-15 23:12:43 +000025477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025478$as_echo "$ac_cv_prog_cxx_g" >&6; }
25479if test "$ac_test_CXXFLAGS" = set; then
25480 CXXFLAGS=$ac_save_CXXFLAGS
25481elif test $ac_cv_prog_cxx_g = yes; then
25482 if test "$GXX" = yes; then
25483 CXXFLAGS="-g -O2"
25484 else
25485 CXXFLAGS="-g"
25486 fi
25487else
25488 if test "$GXX" = yes; then
25489 CXXFLAGS="-O2"
25490 else
25491 CXXFLAGS=
25492 fi
25493fi
25494ac_ext=cpp
25495ac_cpp='$CXXCPP $CPPFLAGS'
25496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25499
cristy73bd4a52010-10-05 11:24:23 +000025500depcc="$CXX" am_compiler_list=
25501
25502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25503$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025504if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025505 $as_echo_n "(cached) " >&6
25506else
25507 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25508 # We make a subdir and do the tests there. Otherwise we can end up
25509 # making bogus files that we don't know about and never remove. For
25510 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025511 # making a dummy file named 'D' -- because '-MD' means "put the output
25512 # in D".
cristy7247bba2012-02-05 16:37:27 +000025513 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025514 mkdir conftest.dir
25515 # Copy depcomp to subdir because otherwise we won't find it if we're
25516 # using a relative directory.
25517 cp "$am_depcomp" conftest.dir
25518 cd conftest.dir
25519 # We will build objects and dependencies in a subdirectory because
25520 # it helps to detect inapplicable dependency modes. For instance
25521 # both Tru64's cc and ICC support -MD to output dependencies as a
25522 # side effect of compilation, but ICC will put the dependencies in
25523 # the current directory while Tru64 will put them in the object
25524 # directory.
25525 mkdir sub
25526
25527 am_cv_CXX_dependencies_compiler_type=none
25528 if test "$am_compiler_list" = ""; then
25529 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25530 fi
25531 am__universal=false
25532 case " $depcc " in #(
25533 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25534 esac
25535
25536 for depmode in $am_compiler_list; do
25537 # Setup a source with many dependencies, because some compilers
25538 # like to wrap large dependency lists on column 80 (with \), and
25539 # we should not choose a depcomp mode which is confused by this.
25540 #
25541 # We need to recreate these files for each test, as the compiler may
25542 # overwrite some of them when testing with obscure command lines.
25543 # This happens at least with the AIX C compiler.
25544 : > sub/conftest.c
25545 for i in 1 2 3 4 5 6; do
25546 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025547 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25548 # Solaris 10 /bin/sh.
25549 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025550 done
25551 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25552
cristyc0890a62012-07-19 00:18:20 +000025553 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025554 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025555 # handle '-M -o', and we need to detect this. Also, some Intel
25556 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025557 am__obj=sub/conftest.${OBJEXT-o}
25558 am__minus_obj="-o $am__obj"
25559 case $depmode in
25560 gcc)
25561 # This depmode causes a compiler race in universal mode.
25562 test "$am__universal" = false || continue
25563 ;;
25564 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025565 # After this tag, mechanisms are not by side-effect, so they'll
25566 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025567 if test "x$enable_dependency_tracking" = xyes; then
25568 continue
25569 else
25570 break
25571 fi
25572 ;;
cristy7247bba2012-02-05 16:37:27 +000025573 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025574 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025575 # not run yet. These depmodes are late enough in the game, and
25576 # so weak that their functioning should not be impacted.
25577 am__obj=conftest.${OBJEXT-o}
25578 am__minus_obj=
25579 ;;
25580 none) break ;;
25581 esac
25582 if depmode=$depmode \
25583 source=sub/conftest.c object=$am__obj \
25584 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25585 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25586 >/dev/null 2>conftest.err &&
25587 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25588 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25589 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25590 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25591 # icc doesn't choke on unknown options, it will just issue warnings
25592 # or remarks (even with -Werror). So we grep stderr for any message
25593 # that says an option was ignored or not supported.
25594 # When given -MP, icc 7.0 and 7.1 complain thusly:
25595 # icc: Command line warning: ignoring option '-M'; no argument required
25596 # The diagnosis changed in icc 8.0:
25597 # icc: Command line remark: option '-MP' not supported
25598 if (grep 'ignoring option' conftest.err ||
25599 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25600 am_cv_CXX_dependencies_compiler_type=$depmode
25601 break
25602 fi
25603 fi
25604 done
25605
25606 cd ..
25607 rm -rf conftest.dir
25608else
25609 am_cv_CXX_dependencies_compiler_type=none
25610fi
25611
25612fi
25613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25614$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25615CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25616
25617 if
25618 test "x$enable_dependency_tracking" != xno \
25619 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25620 am__fastdepCXX_TRUE=
25621 am__fastdepCXX_FALSE='#'
25622else
25623 am__fastdepCXX_TRUE='#'
25624 am__fastdepCXX_FALSE=
25625fi
25626
25627
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25629$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025630if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025631 $as_echo_n "(cached) " >&6
25632else
25633
25634 ac_ext=cpp
25635ac_cpp='$CXXCPP $CPPFLAGS'
25636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25639
25640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25641/* end confdefs.h. */
25642
25643int f(int x){return 1;}
25644int f(char x){return 1;}
25645int f(bool x){return 1;}
25646
25647int
25648main ()
25649{
25650bool b = true; return f(b);
25651 ;
25652 return 0;
25653}
25654_ACEOF
25655if ac_fn_cxx_try_compile "$LINENO"; then :
25656 ax_cv_cxx_bool=yes
25657else
25658 ax_cv_cxx_bool=no
25659fi
25660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25661 ac_ext=cpp
25662ac_cpp='$CXXCPP $CPPFLAGS'
25663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25666
25667
25668fi
25669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25670$as_echo "$ax_cv_cxx_bool" >&6; }
25671if test "$ax_cv_cxx_bool" = yes; then
25672
25673$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25674
25675fi
25676
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25678$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025679if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025680 $as_echo_n "(cached) " >&6
25681else
25682
25683 ac_ext=cpp
25684ac_cpp='$CXXCPP $CPPFLAGS'
25685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25688
25689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25690/* end confdefs.h. */
25691namespace Outer { namespace Inner { int i = 0; }}
25692int
25693main ()
25694{
25695using namespace Outer::Inner; return i;
25696 ;
25697 return 0;
25698}
25699_ACEOF
25700if ac_fn_cxx_try_compile "$LINENO"; then :
25701 ax_cv_cxx_namespaces=yes
25702else
25703 ax_cv_cxx_namespaces=no
25704fi
25705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25706 ac_ext=cpp
25707ac_cpp='$CXXCPP $CPPFLAGS'
25708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25711
25712
25713fi
25714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25715$as_echo "$ax_cv_cxx_namespaces" >&6; }
25716if test "$ax_cv_cxx_namespaces" = yes; then
25717
25718$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25719
25720fi
25721
25722
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25724$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025725if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025726 $as_echo_n "(cached) " >&6
25727else
25728
25729 ac_ext=cpp
25730ac_cpp='$CXXCPP $CPPFLAGS'
25731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25734
25735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25736/* end confdefs.h. */
25737#include <iostream>
25738 std::istream& is = std::cin;
25739int
25740main ()
25741{
25742
25743 ;
25744 return 0;
25745}
25746_ACEOF
25747if ac_fn_cxx_try_compile "$LINENO"; then :
25748 ax_cv_cxx_have_std_namespace=yes
25749else
25750 ax_cv_cxx_have_std_namespace=no
25751fi
25752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25753 ac_ext=cpp
25754ac_cpp='$CXXCPP $CPPFLAGS'
25755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25758
25759
25760fi
25761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25762$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25763 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25764
25765$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25766
25767 fi
25768
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25770$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025771if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025772 $as_echo_n "(cached) " >&6
25773else
25774
25775
25776 ac_ext=cpp
25777ac_cpp='$CXXCPP $CPPFLAGS'
25778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25781
25782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25783/* end confdefs.h. */
25784#include <iostream>
25785#include <map>
25786#include <iomanip>
25787#include <cmath>
25788#ifdef HAVE_NAMESPACES
25789using namespace std;
25790#endif
25791int
25792main ()
25793{
25794return 0;
25795 ;
25796 return 0;
25797}
25798_ACEOF
25799if ac_fn_cxx_try_compile "$LINENO"; then :
25800 ac_cv_cxx_have_std_libs=yes
25801else
25802 ac_cv_cxx_have_std_libs=no
25803fi
25804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25805 ac_ext=cpp
25806ac_cpp='$CXXCPP $CPPFLAGS'
25807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25810
25811
25812fi
25813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25814$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25815if test "$ac_cv_cxx_have_std_libs" = yes; then
25816
25817$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25818
25819fi
25820
cristy3ed852e2009-09-05 21:47:34 +000025821
25822 OPENMP_CXXFLAGS=
25823 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025824if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025825 enableval=$enable_openmp;
25826fi
25827
25828 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25830$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025831if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025832 $as_echo_n "(cached) " >&6
25833else
cristy8b350f62009-11-15 23:12:43 +000025834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25835/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025836
25837#ifndef _OPENMP
25838 choke me
25839#endif
25840#include <omp.h>
25841int main () { return omp_get_num_threads (); }
25842
25843_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025844if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025845 ac_cv_prog_cxx_openmp='none needed'
25846else
cristy8b350f62009-11-15 23:12:43 +000025847 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025848 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25849 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025850 ac_save_CXXFLAGS=$CXXFLAGS
25851 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25853/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025854
25855#ifndef _OPENMP
25856 choke me
25857#endif
25858#include <omp.h>
25859int main () { return omp_get_num_threads (); }
25860
25861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025862if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025863 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025864fi
cristy8b350f62009-11-15 23:12:43 +000025865rm -f core conftest.err conftest.$ac_objext \
25866 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025867 CXXFLAGS=$ac_save_CXXFLAGS
25868 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25869 break
25870 fi
25871 done
25872fi
cristy8b350f62009-11-15 23:12:43 +000025873rm -f core conftest.err conftest.$ac_objext \
25874 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025875fi
cristy8b350f62009-11-15 23:12:43 +000025876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025877$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25878 case $ac_cv_prog_cxx_openmp in #(
25879 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025880 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025881 *)
cristy8b350f62009-11-15 23:12:43 +000025882 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025883 esac
25884 fi
25885
25886
25887 ac_ext=c
25888ac_cpp='$CPP $CPPFLAGS'
25889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25891ac_compiler_gnu=$ac_cv_c_compiler_gnu
25892
25893
cristy8b350f62009-11-15 23:12:43 +000025894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025895$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25896 if \
cristy964cb7f2010-04-25 23:18:00 +000025897 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025898 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025899 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025900 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025901 have_magick_plus_plus='yes'
25902 else
25903 have_magick_plus_plus='no (failed tests)'
25904 fi
cristyad38abe2012-12-23 23:03:21 +000025905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25906$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025907 LIBS="$OLIBS"
25908fi
cristy73bd4a52010-10-05 11:24:23 +000025909 if test "$have_magick_plus_plus" = 'yes'; then
25910 WITH_MAGICK_PLUS_PLUS_TRUE=
25911 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25912else
25913 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25914 WITH_MAGICK_PLUS_PLUS_FALSE=
25915fi
25916
cristy3ed852e2009-09-05 21:47:34 +000025917
25918# Only check for delegate libraries in subdirectories if requested.
25919if test "$enable_delegate_build" != 'no'; then
25920 # Check for delegate sub-directories and add -I & -L options as required.
25921 # This presumes that delegates are installed as detailed in the ImageMagick
25922 # README. If delegates are installed in a standard location where the
25923 # compiler will automatically find them then these options should not be
25924 # required.
25925
25926 #
25927 # Most delegates have includes in the same directory as the library, but not all...
25928 #
25929 # Includes
cristy2542fc62011-12-06 17:50:25 +000025930 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 +000025931 if test -d "$builddir/$dir"; then
25932 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25933 else
25934 if test -d "$srcdirfull/$dir"; then
25935 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25936 fi
25937 fi
25938 done
25939
25940 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025941 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 +000025942 if test -d "$builddir/$dir/.libs"; then
25943 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25944 else
25945 if test -d "$srcdirfull/$dir/.libs"; then
25946 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25947 fi
25948 fi
25949 if test -d "$builddir/$dir"; then
25950 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25951 else
25952 if test -d "$srcdirfull/$dir"; then
25953 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25954 fi
25955 fi
25956 done
25957fi
25958
25959# Assume that delegate headers reside under same directory as ImageMagick
25960# installation prefix.
25961MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25962
25963#
25964# Find the X11 RGB database
25965#
cristy8b350f62009-11-15 23:12:43 +000025966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025967$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025968if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025969 $as_echo_n "(cached) " >&6
25970else
25971 # Look for the header file in a standard set of common directories.
25972# Check X11 before X11Rn because it is often a symlink to the current release.
25973 for ac_dir in \
25974 /lib/usr/lib/X11 \
25975 /usr/X11/lib \
25976 /usr/X11R4/lib \
25977 /usr/X11R5/lib \
25978 /usr/X11R6/lib \
25979 /usr/X11R7/lib \
25980 /usr/X386/lib \
25981 /usr/XFree86/lib/X11 \
25982 /usr/athena/lib \
25983 /usr/lib \
25984 /usr/lib/X11 \
25985 /usr/lib/X11R4 \
25986 /usr/lib/X11R5 \
25987 /usr/lib/X11R6 \
25988 /usr/lib/X11R7 \
25989 /usr/local/X11/lib \
25990 /usr/local/X11R4/lib \
25991 /usr/local/X11R5/lib \
25992 /usr/local/X11R6/lib \
25993 /usr/local/lib \
25994 /usr/local/lib/X11 \
25995 /usr/local/lib/X11R4 \
25996 /usr/local/lib/X11R5 \
25997 /usr/local/lib/X11R6 \
25998 /usr/local/lib/X11R7 \
25999 /usr/local/x11r5/lib \
26000 /usr/lpp/Xamples/lib \
26001 /usr/openwin/lib \
26002 /usr/openwin/share/lib \
26003 /usr/unsupported/lib \
26004 /usr/x386/lib \
26005 ; do
26006 if test -f "$ac_dir/X11/rgb.txt"; then
26007 im_cv_x_configure="$ac_dir/X11/"
26008 break
26009 elif test -f "$ac_dir/rgb.txt"; then
26010 im_cv_x_configure="$ac_dir/"
26011 break
26012 fi
26013
26014 done
26015fi
cristy8b350f62009-11-15 23:12:43 +000026016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026017$as_echo "$im_cv_x_configure" >&6; }
26018X11_CONFIGURE_PATH="$im_cv_x_configure"
26019case "${build_os}" in
26020 mingw* )
26021 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26022 ;;
26023esac
26024
26025cat >>confdefs.h <<_ACEOF
26026#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26027_ACEOF
26028
26029
26030#
26031# Find OpenMP library
26032#
26033GOMP_LIBS=''
26034if test "$enable_openmp" != 'no'; then
26035 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026036 # Open64 (passes for GCC but uses different OpenMP implementation)
26037 if test "x$GOMP_LIBS" = x ; then
26038 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26040$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26041if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26042 $as_echo_n "(cached) " >&6
26043else
26044 ac_check_lib_save_LIBS=$LIBS
26045LIBS="-lopenmp $LIBS"
26046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26047/* end confdefs.h. */
26048
26049/* Override any GCC internal prototype to avoid an error.
26050 Use char because int might match the return type of a GCC
26051 builtin and then its argument prototype would still apply. */
26052#ifdef __cplusplus
26053extern "C"
26054#endif
26055char omp_get_num_procs ();
26056int
26057main ()
26058{
26059return omp_get_num_procs ();
26060 ;
26061 return 0;
26062}
26063_ACEOF
26064if ac_fn_c_try_link "$LINENO"; then :
26065 ac_cv_lib_openmp_omp_get_num_procs=yes
26066else
26067 ac_cv_lib_openmp_omp_get_num_procs=no
26068fi
26069rm -f core conftest.err conftest.$ac_objext \
26070 conftest$ac_exeext conftest.$ac_ext
26071LIBS=$ac_check_lib_save_LIBS
26072fi
26073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26074$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26075if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26076 GOMP_LIBS="-lopenmp"
26077fi
26078
26079 fi
26080 fi
26081 # GCC
26082 if test "x$GOMP_LIBS" = x ; then
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026084$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026085if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026086 $as_echo_n "(cached) " >&6
26087else
26088 ac_check_lib_save_LIBS=$LIBS
26089LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026091/* end confdefs.h. */
26092
26093/* Override any GCC internal prototype to avoid an error.
26094 Use char because int might match the return type of a GCC
26095 builtin and then its argument prototype would still apply. */
26096#ifdef __cplusplus
26097extern "C"
26098#endif
26099char GOMP_parallel_start ();
26100int
26101main ()
26102{
26103return GOMP_parallel_start ();
26104 ;
26105 return 0;
26106}
26107_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026108if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026109 ac_cv_lib_gomp_GOMP_parallel_start=yes
26110else
cristy8b350f62009-11-15 23:12:43 +000026111 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026112fi
cristy8b350f62009-11-15 23:12:43 +000026113rm -f core conftest.err conftest.$ac_objext \
26114 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026115LIBS=$ac_check_lib_save_LIBS
26116fi
cristy8b350f62009-11-15 23:12:43 +000026117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026118$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026119if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026120 GOMP_LIBS="-lgomp"
26121fi
cristy18307f12011-12-30 01:20:16 +000026122
26123 fi
cristy3ed852e2009-09-05 21:47:34 +000026124 else
cristy18307f12011-12-30 01:20:16 +000026125 # Sun CC
26126 if test "x$GOMP_LIBS" = x ; then
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026128$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026129if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026130 $as_echo_n "(cached) " >&6
26131else
26132 ac_check_lib_save_LIBS=$LIBS
26133LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026135/* end confdefs.h. */
26136
26137/* Override any GCC internal prototype to avoid an error.
26138 Use char because int might match the return type of a GCC
26139 builtin and then its argument prototype would still apply. */
26140#ifdef __cplusplus
26141extern "C"
26142#endif
26143char sunw_mp_register_warn ();
26144int
26145main ()
26146{
26147return sunw_mp_register_warn ();
26148 ;
26149 return 0;
26150}
26151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026152if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026153 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26154else
cristy8b350f62009-11-15 23:12:43 +000026155 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026156fi
cristy8b350f62009-11-15 23:12:43 +000026157rm -f core conftest.err conftest.$ac_objext \
26158 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026159LIBS=$ac_check_lib_save_LIBS
26160fi
cristy8b350f62009-11-15 23:12:43 +000026161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026162$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026163if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026164 GOMP_LIBS="-lmtsk"
26165fi
cristy18307f12011-12-30 01:20:16 +000026166
26167 fi
26168 # AIX xlc
26169 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026171$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026172if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026173 $as_echo_n "(cached) " >&6
26174else
26175 ac_check_lib_save_LIBS=$LIBS
26176LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026178/* end confdefs.h. */
26179
26180/* Override any GCC internal prototype to avoid an error.
26181 Use char because int might match the return type of a GCC
26182 builtin and then its argument prototype would still apply. */
26183#ifdef __cplusplus
26184extern "C"
26185#endif
26186char _xlsmpFlush ();
26187int
26188main ()
26189{
26190return _xlsmpFlush ();
26191 ;
26192 return 0;
26193}
26194_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026195if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026196 ac_cv_lib_xlsmp__xlsmpFlush=yes
26197else
cristy8b350f62009-11-15 23:12:43 +000026198 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026199fi
cristy8b350f62009-11-15 23:12:43 +000026200rm -f core conftest.err conftest.$ac_objext \
26201 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026202LIBS=$ac_check_lib_save_LIBS
26203fi
cristy8b350f62009-11-15 23:12:43 +000026204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026205$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026206if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026207 GOMP_LIBS="-lxlsmp"
26208fi
cristy18307f12011-12-30 01:20:16 +000026209
26210 fi
26211 # SGI IRIX 6.5 MIPSpro C/C++
26212 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026214$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026215if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026216 $as_echo_n "(cached) " >&6
26217else
26218 ac_check_lib_save_LIBS=$LIBS
26219LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026221/* end confdefs.h. */
26222
26223/* Override any GCC internal prototype to avoid an error.
26224 Use char because int might match the return type of a GCC
26225 builtin and then its argument prototype would still apply. */
26226#ifdef __cplusplus
26227extern "C"
26228#endif
26229char mp_destroy ();
26230int
26231main ()
26232{
26233return mp_destroy ();
26234 ;
26235 return 0;
26236}
26237_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026238if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026239 ac_cv_lib_mp_mp_destroy=yes
26240else
cristy8b350f62009-11-15 23:12:43 +000026241 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026242fi
cristy8b350f62009-11-15 23:12:43 +000026243rm -f core conftest.err conftest.$ac_objext \
26244 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026245LIBS=$ac_check_lib_save_LIBS
26246fi
cristy8b350f62009-11-15 23:12:43 +000026247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026248$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026249if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026250 GOMP_LIBS="-lmp"
26251fi
cristy18307f12011-12-30 01:20:16 +000026252
26253 fi
cristy3ed852e2009-09-05 21:47:34 +000026254 fi
26255 LIBS="$GOMP_LIBS $LIBS"
26256fi
26257
26258
26259#
26260# Find Posix threads library
26261#
26262THREAD_LIBS=''
26263if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26264
26265 if test "x$PTHREAD_LIBS" = "x"; then
26266 case "${host_cpu}-${host_os}" in
26267 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026268
26269
26270
26271ac_ext=c
26272ac_cpp='$CPP $CPPFLAGS'
26273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26275ac_compiler_gnu=$ac_cv_c_compiler_gnu
26276
26277magick_pthread_lib_ok=no
26278
26279LIB=-lc_r
26280save_LIBS="$LIBS"
26281LIBS="$LIBS $LIB"
26282
26283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26284$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26286/* end confdefs.h. */
26287#include <pthread.h>
26288int
26289main ()
26290{
26291 pthread_t th;
26292 pthread_join(th, 0);
26293 pthread_attr_init(0);
26294 pthread_cleanup_push(0, 0);
26295 pthread_create(0,0,0,0);
26296 pthread_cleanup_pop(0);
26297 ;
26298 return 0;
26299}
26300_ACEOF
26301if ac_fn_c_try_link "$LINENO"; then :
26302 magick_pthread_lib_ok=yes
26303fi
26304rm -f core conftest.err conftest.$ac_objext \
26305 conftest$ac_exeext conftest.$ac_ext
26306
26307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26308$as_echo "${magick_pthread_lib_ok}" >&6; }
26309if test "$magick_pthread_lib_ok" = yes
26310then
26311 PTHREAD_LIBS=-lc_r
26312 :
26313else
26314
26315 :
26316fi
26317
26318LIBS="$save_LIBS"
26319
26320ac_ext=c
26321ac_cpp='$CPP $CPPFLAGS'
26322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26324ac_compiler_gnu=$ac_cv_c_compiler_gnu
26325
26326 ;;
cristy3ed852e2009-09-05 21:47:34 +000026327 esac
26328 fi
26329
26330 for lib in pthread pthreads; do
26331 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026332
26333
26334
26335ac_ext=c
26336ac_cpp='$CPP $CPPFLAGS'
26337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26339ac_compiler_gnu=$ac_cv_c_compiler_gnu
26340
26341magick_pthread_lib_ok=no
26342
26343LIB=-l$lib
26344save_LIBS="$LIBS"
26345LIBS="$LIBS $LIB"
26346
26347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26348$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26350/* end confdefs.h. */
26351#include <pthread.h>
26352int
26353main ()
26354{
26355 pthread_t th;
26356 pthread_join(th, 0);
26357 pthread_attr_init(0);
26358 pthread_cleanup_push(0, 0);
26359 pthread_create(0,0,0,0);
26360 pthread_cleanup_pop(0);
26361 ;
26362 return 0;
26363}
26364_ACEOF
26365if ac_fn_c_try_link "$LINENO"; then :
26366 magick_pthread_lib_ok=yes
26367fi
26368rm -f core conftest.err conftest.$ac_objext \
26369 conftest$ac_exeext conftest.$ac_ext
26370
26371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26372$as_echo "${magick_pthread_lib_ok}" >&6; }
26373if test "$magick_pthread_lib_ok" = yes
26374then
26375 PTHREAD_LIBS=-l$lib
26376 :
26377else
26378
26379 :
26380fi
26381
26382LIBS="$save_LIBS"
26383
26384ac_ext=c
26385ac_cpp='$CPP $CPPFLAGS'
26386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26388ac_compiler_gnu=$ac_cv_c_compiler_gnu
26389
26390
cristy3ed852e2009-09-05 21:47:34 +000026391 fi
26392 done
26393
26394 THREAD_LIBS="$PTHREAD_LIBS"
26395 LIBS="$LIBS $THREAD_LIBS"
26396fi
26397
26398
26399#
26400# Check for umem.
26401#
26402have_umem='no'
26403UMEM_LIBS=''
26404if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026406$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26408$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026409 failed=0
26410 passed=0
cristy8b350f62009-11-15 23:12:43 +000026411 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026412if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026413 passed=`expr $passed + 1`
26414else
26415 failed=`expr $failed + 1`
26416fi
26417
26418
cristy8b350f62009-11-15 23:12:43 +000026419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026420$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026421if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026422 $as_echo_n "(cached) " >&6
26423else
26424 ac_check_lib_save_LIBS=$LIBS
26425LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026427/* end confdefs.h. */
26428
26429/* Override any GCC internal prototype to avoid an error.
26430 Use char because int might match the return type of a GCC
26431 builtin and then its argument prototype would still apply. */
26432#ifdef __cplusplus
26433extern "C"
26434#endif
26435char umem_alloc ();
26436int
26437main ()
26438{
26439return umem_alloc ();
26440 ;
26441 return 0;
26442}
26443_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026444if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026445 ac_cv_lib_umem_umem_alloc=yes
26446else
cristy8b350f62009-11-15 23:12:43 +000026447 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026448fi
cristy8b350f62009-11-15 23:12:43 +000026449rm -f core conftest.err conftest.$ac_objext \
26450 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026451LIBS=$ac_check_lib_save_LIBS
26452fi
cristy8b350f62009-11-15 23:12:43 +000026453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026454$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026455if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026456 passed=`expr $passed + 1`
26457else
26458 failed=`expr $failed + 1`
26459fi
26460
cristy8b350f62009-11-15 23:12:43 +000026461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026462$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026463if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026464 $as_echo_n "(cached) " >&6
26465else
26466 ac_check_lib_save_LIBS=$LIBS
26467LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026469/* end confdefs.h. */
26470
26471/* Override any GCC internal prototype to avoid an error.
26472 Use char because int might match the return type of a GCC
26473 builtin and then its argument prototype would still apply. */
26474#ifdef __cplusplus
26475extern "C"
26476#endif
26477char umem_free ();
26478int
26479main ()
26480{
26481return umem_free ();
26482 ;
26483 return 0;
26484}
26485_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026486if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026487 ac_cv_lib_umem_umem_free=yes
26488else
cristy8b350f62009-11-15 23:12:43 +000026489 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026490fi
cristy8b350f62009-11-15 23:12:43 +000026491rm -f core conftest.err conftest.$ac_objext \
26492 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026493LIBS=$ac_check_lib_save_LIBS
26494fi
cristy8b350f62009-11-15 23:12:43 +000026495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026496$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026497if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026498 passed=`expr $passed + 1`
26499else
26500 failed=`expr $failed + 1`
26501fi
26502
cristy8b350f62009-11-15 23:12:43 +000026503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026504$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26505 if test $passed -gt 0; then
26506 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26508$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026509 have_umem='no (failed tests)'
26510 else
26511 UMEM_LIBS='-lumem'
26512 LIBS="$UMEM_LIBS $LIBS"
26513
cristy8b350f62009-11-15 23:12:43 +000026514$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026515
cristyad38abe2012-12-23 23:03:21 +000026516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26517$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026518 have_umem='yes'
26519 fi
26520 else
cristyad38abe2012-12-23 23:03:21 +000026521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26522$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026523 fi
26524fi
cristy73bd4a52010-10-05 11:24:23 +000026525 if test "$have_umem" = 'yes'; then
26526 HasUMEM_TRUE=
26527 HasUMEM_FALSE='#'
26528else
26529 HasUMEM_TRUE='#'
26530 HasUMEM_FALSE=
26531fi
26532
cristy3ed852e2009-09-05 21:47:34 +000026533
26534
26535#
26536# Add support for ccmalloc memory debugging library if requested
26537#
26538have_ccmalloc='no'
26539CCMALLOC_LIBS=''
26540if test "$enable_ccmalloc" = 'yes'; then
26541 # Extract the first word of "ccmalloc", so it can be a program name with args.
26542set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026544$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026545if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026546 $as_echo_n "(cached) " >&6
26547else
26548 case $CCMALLOCDelegate in
26549 [\\/]* | ?:[\\/]*)
26550 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26551 ;;
26552 *)
26553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26554for as_dir in $PATH
26555do
26556 IFS=$as_save_IFS
26557 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026558 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026560 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026562 break 2
26563 fi
26564done
cristy8b350f62009-11-15 23:12:43 +000026565 done
cristy3ed852e2009-09-05 21:47:34 +000026566IFS=$as_save_IFS
26567
26568 ;;
26569esac
26570fi
26571CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26572if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026574$as_echo "$CCMALLOCDelegate" >&6; }
26575else
cristy8b350f62009-11-15 23:12:43 +000026576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026577$as_echo "no" >&6; }
26578fi
26579
26580
26581 if test -n "$CCMALLOCDelegate"; then
26582 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26583 OLIBS="$LIBS"
26584 # Assume that gcc is used with ccmalloc.
26585 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026587$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026588if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026589 $as_echo_n "(cached) " >&6
26590else
26591 ac_check_lib_save_LIBS=$LIBS
26592LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026594/* end confdefs.h. */
26595
26596/* Override any GCC internal prototype to avoid an error.
26597 Use char because int might match the return type of a GCC
26598 builtin and then its argument prototype would still apply. */
26599#ifdef __cplusplus
26600extern "C"
26601#endif
26602char ccmalloc_malloc ();
26603int
26604main ()
26605{
26606return ccmalloc_malloc ();
26607 ;
26608 return 0;
26609}
26610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026611if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026612 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26613else
cristy8b350f62009-11-15 23:12:43 +000026614 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026615fi
cristy8b350f62009-11-15 23:12:43 +000026616rm -f core conftest.err conftest.$ac_objext \
26617 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026618LIBS=$ac_check_lib_save_LIBS
26619fi
cristy8b350f62009-11-15 23:12:43 +000026620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026621$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026622if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026623 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26624fi
26625
26626 if test -n "$CCMALLOC_LIBS"; then
26627 LIBS="$OLIBS"
26628 LIBS="$LIBS $CCMALLOC_LIBS"
26629 have_ccmalloc='yes'
26630 else
26631 LIBS="$OLIBS"
26632 fi
26633 fi
26634fi
26635
26636#
26637# Add support for efence memory debugging library if requested
26638#
26639if test "$enable_efence" = 'yes'; then
26640 EFENCE_LIBS='-lefence'
26641 LIBS="$EFENCE_LIBS $LIBS"
26642fi
26643
cristy3ed852e2009-09-05 21:47:34 +000026644
26645#
26646# Check for BZLIB
26647#
26648
26649
26650# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026651if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026652 withval=$with_bzlib; with_bzlib=$withval
26653else
26654 with_bzlib='yes'
26655fi
26656
26657
26658if test "$with_bzlib" != 'yes'; then
26659 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26660fi
26661
26662have_bzlib='no'
26663if test "$with_bzlib" != 'no'; then
26664 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26666$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026668$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26670$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026671 failed=0
26672 passed=0
26673 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026674 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026675if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026676 passed=`expr $passed + 1`
26677else
26678 failed=`expr $failed + 1`
26679fi
26680
26681
cristy8b350f62009-11-15 23:12:43 +000026682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026683$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026684if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026685 $as_echo_n "(cached) " >&6
26686else
26687 ac_check_lib_save_LIBS=$LIBS
26688LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026690/* end confdefs.h. */
26691
26692/* Override any GCC internal prototype to avoid an error.
26693 Use char because int might match the return type of a GCC
26694 builtin and then its argument prototype would still apply. */
26695#ifdef __cplusplus
26696extern "C"
26697#endif
26698char BZ2_bzDecompress ();
26699int
26700main ()
26701{
26702return BZ2_bzDecompress ();
26703 ;
26704 return 0;
26705}
26706_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026707if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026708 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26709else
cristy8b350f62009-11-15 23:12:43 +000026710 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026711fi
cristy8b350f62009-11-15 23:12:43 +000026712rm -f core conftest.err conftest.$ac_objext \
26713 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026714LIBS=$ac_check_lib_save_LIBS
26715fi
cristy8b350f62009-11-15 23:12:43 +000026716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026717$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026718if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026719 found_libbz=`expr $found_libbz + 1`
26720fi
26721
26722 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026724$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026725if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026726 $as_echo_n "(cached) " >&6
26727else
26728 ac_check_lib_save_LIBS=$LIBS
26729LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026731/* end confdefs.h. */
26732
26733/* Override any GCC internal prototype to avoid an error.
26734 Use char because int might match the return type of a GCC
26735 builtin and then its argument prototype would still apply. */
26736#ifdef __cplusplus
26737extern "C"
26738#endif
26739char _imp__BZ2_decompress ();
26740int
26741main ()
26742{
26743return _imp__BZ2_decompress ();
26744 ;
26745 return 0;
26746}
26747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026748if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026749 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26750else
cristy8b350f62009-11-15 23:12:43 +000026751 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026752fi
cristy8b350f62009-11-15 23:12:43 +000026753rm -f core conftest.err conftest.$ac_objext \
26754 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026755LIBS=$ac_check_lib_save_LIBS
26756fi
cristy8b350f62009-11-15 23:12:43 +000026757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026758$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026759if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026760 found_libbz=`expr $found_libbz + 1`
26761fi
26762
26763 fi
26764 if test $found_libbz -gt 0; then
26765 passed=`expr $passed + 1`
26766 else
26767 failed=`expr $failed + 1`
26768 fi
cristy8b350f62009-11-15 23:12:43 +000026769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026770$as_echo_n "checking if BZLIB package is complete... " >&6; }
26771 if test $passed -gt 0; then
26772 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26774$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026775 have_bzlib='no (failed tests)'
26776 else
26777 BZLIB_LIBS='-lbz2'
26778 LIBS="$BZLIB_LIBS $LIBS"
26779
cristy8b350f62009-11-15 23:12:43 +000026780$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026781
cristyad38abe2012-12-23 23:03:21 +000026782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26783$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026784 have_bzlib='yes'
26785 fi
26786 else
cristyad38abe2012-12-23 23:03:21 +000026787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26788$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026789 fi
26790fi
cristy73bd4a52010-10-05 11:24:23 +000026791 if test "$have_bzlib" = 'yes'; then
26792 BZLIB_DELEGATE_TRUE=
26793 BZLIB_DELEGATE_FALSE='#'
26794else
26795 BZLIB_DELEGATE_TRUE='#'
26796 BZLIB_DELEGATE_FALSE=
26797fi
26798
cristy3ed852e2009-09-05 21:47:34 +000026799
26800
26801#
26802# Find the X11 include and library directories.
26803#
26804IPC_LIBS=''
26805X11_LIBS=''
26806XEXT_LIBS=''
26807XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026809$as_echo_n "checking for X... " >&6; }
26810
26811
26812# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026813if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026814 withval=$with_x;
26815fi
26816
26817# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26818if test "x$with_x" = xno; then
26819 # The user explicitly disabled X.
26820 have_x=disabled
26821else
26822 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026823 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026824 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026825 $as_echo_n "(cached) " >&6
26826else
26827 # One or both of the vars are not set, and there is no cached value.
26828ac_x_includes=no ac_x_libraries=no
26829rm -f -r conftest.dir
26830if mkdir conftest.dir; then
26831 cd conftest.dir
26832 cat >Imakefile <<'_ACEOF'
26833incroot:
26834 @echo incroot='${INCROOT}'
26835usrlibdir:
26836 @echo usrlibdir='${USRLIBDIR}'
26837libdir:
26838 @echo libdir='${LIBDIR}'
26839_ACEOF
26840 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026841 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026842 for ac_var in incroot usrlibdir libdir; do
26843 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26844 done
26845 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26846 for ac_extension in a so sl dylib la dll; do
26847 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26848 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26849 ac_im_usrlibdir=$ac_im_libdir; break
26850 fi
26851 done
26852 # Screen out bogus values from the imake configuration. They are
26853 # bogus both because they are the default anyway, and because
26854 # using them would break gcc on systems where it needs fixed includes.
26855 case $ac_im_incroot in
26856 /usr/include) ac_x_includes= ;;
26857 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26858 esac
26859 case $ac_im_usrlibdir in
26860 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26861 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26862 esac
26863 fi
26864 cd ..
26865 rm -f -r conftest.dir
26866fi
26867
26868# Standard set of common directories for X headers.
26869# Check X11 before X11Rn because it is often a symlink to the current release.
26870ac_x_header_dirs='
26871/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026872/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026873/usr/X11R6/include
26874/usr/X11R5/include
26875/usr/X11R4/include
26876
26877/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026878/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026879/usr/include/X11R6
26880/usr/include/X11R5
26881/usr/include/X11R4
26882
26883/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026884/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026885/usr/local/X11R6/include
26886/usr/local/X11R5/include
26887/usr/local/X11R4/include
26888
26889/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026890/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026891/usr/local/include/X11R6
26892/usr/local/include/X11R5
26893/usr/local/include/X11R4
26894
26895/usr/X386/include
26896/usr/x386/include
26897/usr/XFree86/include/X11
26898
26899/usr/include
26900/usr/local/include
26901/usr/unsupported/include
26902/usr/athena/include
26903/usr/local/x11r5/include
26904/usr/lpp/Xamples/include
26905
26906/usr/openwin/include
26907/usr/openwin/share/include'
26908
26909if test "$ac_x_includes" = no; then
26910 # Guess where to find include files, by looking for Xlib.h.
26911 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026913/* end confdefs.h. */
26914#include <X11/Xlib.h>
26915_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026916if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026917 # We can compile using X headers with no special include directory.
26918ac_x_includes=
26919else
cristyc7083c12009-10-14 03:16:55 +000026920 for ac_dir in $ac_x_header_dirs; do
26921 if test -r "$ac_dir/X11/Xlib.h"; then
26922 ac_x_includes=$ac_dir
26923 break
26924 fi
26925done
26926fi
cristyda16f162011-02-19 23:52:17 +000026927rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026928fi # $ac_x_includes = no
26929
26930if test "$ac_x_libraries" = no; then
26931 # Check for the libraries.
26932 # See if we find them without any special options.
26933 # Don't add to $LIBS permanently.
26934 ac_save_LIBS=$LIBS
26935 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026937/* end confdefs.h. */
26938#include <X11/Xlib.h>
26939int
26940main ()
26941{
26942XrmInitialize ()
26943 ;
26944 return 0;
26945}
26946_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026947if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026948 LIBS=$ac_save_LIBS
26949# We can link X programs with no special library path.
26950ac_x_libraries=
26951else
cristy8b350f62009-11-15 23:12:43 +000026952 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026953for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26954do
26955 # Don't even attempt the hair of trying to link an X program!
26956 for ac_extension in a so sl dylib la dll; do
26957 if test -r "$ac_dir/libX11.$ac_extension"; then
26958 ac_x_libraries=$ac_dir
26959 break 2
26960 fi
26961 done
26962done
26963fi
cristy8b350f62009-11-15 23:12:43 +000026964rm -f core conftest.err conftest.$ac_objext \
26965 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026966fi # $ac_x_libraries = no
26967
26968case $ac_x_includes,$ac_x_libraries in #(
26969 no,* | *,no | *\'*)
26970 # Didn't find X, or a directory has "'" in its name.
26971 ac_cv_have_x="have_x=no";; #(
26972 *)
26973 # Record where we found X for the cache.
26974 ac_cv_have_x="have_x=yes\
26975 ac_x_includes='$ac_x_includes'\
26976 ac_x_libraries='$ac_x_libraries'"
26977esac
26978fi
26979;; #(
26980 *) have_x=yes;;
26981 esac
26982 eval "$ac_cv_have_x"
26983fi # $with_x != no
26984
26985if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026987$as_echo "$have_x" >&6; }
26988 no_x=yes
26989else
26990 # If each of the values was on the command line, it overrides each guess.
26991 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26992 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26993 # Update the cache value to reflect the command line values.
26994 ac_cv_have_x="have_x=yes\
26995 ac_x_includes='$x_includes'\
26996 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026998$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26999fi
27000
cristy3ed852e2009-09-05 21:47:34 +000027001if test "$no_x" = yes; then
27002 # Not all programs may use this symbol, but it does not hurt to define it.
27003
cristy8b350f62009-11-15 23:12:43 +000027004$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027005
27006 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27007else
27008 if test -n "$x_includes"; then
27009 X_CFLAGS="$X_CFLAGS -I$x_includes"
27010 fi
27011
27012 # It would also be nice to do this for all -L options, not just this one.
27013 if test -n "$x_libraries"; then
27014 X_LIBS="$X_LIBS -L$x_libraries"
27015 # For Solaris; some versions of Sun CC require a space after -R and
27016 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027018$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27019 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27020 ac_xsave_c_werror_flag=$ac_c_werror_flag
27021 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027023/* end confdefs.h. */
27024
27025int
27026main ()
27027{
27028
27029 ;
27030 return 0;
27031}
27032_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027033if ac_fn_c_try_link "$LINENO"; then :
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027035$as_echo "no" >&6; }
27036 X_LIBS="$X_LIBS -R$x_libraries"
27037else
cristy8b350f62009-11-15 23:12:43 +000027038 LIBS="$ac_xsave_LIBS -R $x_libraries"
27039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027040/* end confdefs.h. */
27041
27042int
27043main ()
27044{
27045
27046 ;
27047 return 0;
27048}
27049_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027050if ac_fn_c_try_link "$LINENO"; then :
27051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027052$as_echo "yes" >&6; }
27053 X_LIBS="$X_LIBS -R $x_libraries"
27054else
cristy8b350f62009-11-15 23:12:43 +000027055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027056$as_echo "neither works" >&6; }
27057fi
cristy8b350f62009-11-15 23:12:43 +000027058rm -f core conftest.err conftest.$ac_objext \
27059 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027060fi
cristy8b350f62009-11-15 23:12:43 +000027061rm -f core conftest.err conftest.$ac_objext \
27062 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027063 ac_c_werror_flag=$ac_xsave_c_werror_flag
27064 LIBS=$ac_xsave_LIBS
27065 fi
27066
27067 # Check for system-dependent libraries X programs must link with.
27068 # Do this before checking for the system-independent R6 libraries
27069 # (-lICE), since we may need -lsocket or whatever for X linking.
27070
27071 if test "$ISC" = yes; then
27072 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27073 else
27074 # Martyn Johnson says this is needed for Ultrix, if the X
27075 # libraries were built with DECnet support. And Karl Berry says
27076 # the Alpha needs dnet_stub (dnet does not exist).
27077 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027079/* end confdefs.h. */
27080
27081/* Override any GCC internal prototype to avoid an error.
27082 Use char because int might match the return type of a GCC
27083 builtin and then its argument prototype would still apply. */
27084#ifdef __cplusplus
27085extern "C"
27086#endif
27087char XOpenDisplay ();
27088int
27089main ()
27090{
27091return XOpenDisplay ();
27092 ;
27093 return 0;
27094}
27095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027096if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027097
cristy8b350f62009-11-15 23:12:43 +000027098else
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027100$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027101if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027102 $as_echo_n "(cached) " >&6
27103else
27104 ac_check_lib_save_LIBS=$LIBS
27105LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027107/* end confdefs.h. */
27108
27109/* Override any GCC internal prototype to avoid an error.
27110 Use char because int might match the return type of a GCC
27111 builtin and then its argument prototype would still apply. */
27112#ifdef __cplusplus
27113extern "C"
27114#endif
27115char dnet_ntoa ();
27116int
27117main ()
27118{
27119return dnet_ntoa ();
27120 ;
27121 return 0;
27122}
27123_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027124if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027125 ac_cv_lib_dnet_dnet_ntoa=yes
27126else
cristy8b350f62009-11-15 23:12:43 +000027127 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027128fi
cristy8b350f62009-11-15 23:12:43 +000027129rm -f core conftest.err conftest.$ac_objext \
27130 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027131LIBS=$ac_check_lib_save_LIBS
27132fi
cristy8b350f62009-11-15 23:12:43 +000027133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027134$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027135if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027136 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27137fi
27138
27139 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027141$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027142if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027143 $as_echo_n "(cached) " >&6
27144else
27145 ac_check_lib_save_LIBS=$LIBS
27146LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027148/* end confdefs.h. */
27149
27150/* Override any GCC internal prototype to avoid an error.
27151 Use char because int might match the return type of a GCC
27152 builtin and then its argument prototype would still apply. */
27153#ifdef __cplusplus
27154extern "C"
27155#endif
27156char dnet_ntoa ();
27157int
27158main ()
27159{
27160return dnet_ntoa ();
27161 ;
27162 return 0;
27163}
27164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027165if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027166 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27167else
cristy8b350f62009-11-15 23:12:43 +000027168 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027169fi
cristy8b350f62009-11-15 23:12:43 +000027170rm -f core conftest.err conftest.$ac_objext \
27171 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027172LIBS=$ac_check_lib_save_LIBS
27173fi
cristy8b350f62009-11-15 23:12:43 +000027174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027175$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027176if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027177 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27178fi
27179
27180 fi
27181fi
cristy8b350f62009-11-15 23:12:43 +000027182rm -f core conftest.err conftest.$ac_objext \
27183 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027184 LIBS="$ac_xsave_LIBS"
27185
27186 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27187 # to get the SysV transport functions.
27188 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27189 # needs -lnsl.
27190 # The nsl library prevents programs from opening the X display
27191 # on Irix 5.2, according to T.E. Dickey.
27192 # The functions gethostbyname, getservbyname, and inet_addr are
27193 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027194 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027195if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027196
cristy3ed852e2009-09-05 21:47:34 +000027197fi
27198
cristy3ed852e2009-09-05 21:47:34 +000027199 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027201$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027202if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027203 $as_echo_n "(cached) " >&6
27204else
27205 ac_check_lib_save_LIBS=$LIBS
27206LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027208/* end confdefs.h. */
27209
27210/* Override any GCC internal prototype to avoid an error.
27211 Use char because int might match the return type of a GCC
27212 builtin and then its argument prototype would still apply. */
27213#ifdef __cplusplus
27214extern "C"
27215#endif
27216char gethostbyname ();
27217int
27218main ()
27219{
27220return gethostbyname ();
27221 ;
27222 return 0;
27223}
27224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027225if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027226 ac_cv_lib_nsl_gethostbyname=yes
27227else
cristy8b350f62009-11-15 23:12:43 +000027228 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027229fi
cristy8b350f62009-11-15 23:12:43 +000027230rm -f core conftest.err conftest.$ac_objext \
27231 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027232LIBS=$ac_check_lib_save_LIBS
27233fi
cristy8b350f62009-11-15 23:12:43 +000027234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027235$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027236if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027237 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27238fi
27239
27240 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027242$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027243if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027244 $as_echo_n "(cached) " >&6
27245else
27246 ac_check_lib_save_LIBS=$LIBS
27247LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027249/* end confdefs.h. */
27250
27251/* Override any GCC internal prototype to avoid an error.
27252 Use char because int might match the return type of a GCC
27253 builtin and then its argument prototype would still apply. */
27254#ifdef __cplusplus
27255extern "C"
27256#endif
27257char gethostbyname ();
27258int
27259main ()
27260{
27261return gethostbyname ();
27262 ;
27263 return 0;
27264}
27265_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027266if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027267 ac_cv_lib_bsd_gethostbyname=yes
27268else
cristy8b350f62009-11-15 23:12:43 +000027269 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027270fi
cristy8b350f62009-11-15 23:12:43 +000027271rm -f core conftest.err conftest.$ac_objext \
27272 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027273LIBS=$ac_check_lib_save_LIBS
27274fi
cristy8b350f62009-11-15 23:12:43 +000027275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027276$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027277if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027278 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27279fi
27280
27281 fi
27282 fi
27283
27284 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27285 # socket/setsockopt and other routines are undefined under SCO ODT
27286 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27287 # on later versions), says Simon Leinen: it contains gethostby*
27288 # variants that don't use the name server (or something). -lsocket
27289 # must be given before -lnsl if both are needed. We assume that
27290 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027291 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027292if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027293
cristy3ed852e2009-09-05 21:47:34 +000027294fi
27295
cristy3ed852e2009-09-05 21:47:34 +000027296 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027298$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027299if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027300 $as_echo_n "(cached) " >&6
27301else
27302 ac_check_lib_save_LIBS=$LIBS
27303LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027305/* end confdefs.h. */
27306
27307/* Override any GCC internal prototype to avoid an error.
27308 Use char because int might match the return type of a GCC
27309 builtin and then its argument prototype would still apply. */
27310#ifdef __cplusplus
27311extern "C"
27312#endif
27313char connect ();
27314int
27315main ()
27316{
27317return connect ();
27318 ;
27319 return 0;
27320}
27321_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027322if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027323 ac_cv_lib_socket_connect=yes
27324else
cristy8b350f62009-11-15 23:12:43 +000027325 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027326fi
cristy8b350f62009-11-15 23:12:43 +000027327rm -f core conftest.err conftest.$ac_objext \
27328 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027329LIBS=$ac_check_lib_save_LIBS
27330fi
cristy8b350f62009-11-15 23:12:43 +000027331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027332$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027333if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027334 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27335fi
27336
27337 fi
27338
27339 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027340 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027341if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027342
cristy3ed852e2009-09-05 21:47:34 +000027343fi
27344
cristy3ed852e2009-09-05 21:47:34 +000027345 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027347$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027348if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027349 $as_echo_n "(cached) " >&6
27350else
27351 ac_check_lib_save_LIBS=$LIBS
27352LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027354/* end confdefs.h. */
27355
27356/* Override any GCC internal prototype to avoid an error.
27357 Use char because int might match the return type of a GCC
27358 builtin and then its argument prototype would still apply. */
27359#ifdef __cplusplus
27360extern "C"
27361#endif
27362char remove ();
27363int
27364main ()
27365{
27366return remove ();
27367 ;
27368 return 0;
27369}
27370_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027371if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027372 ac_cv_lib_posix_remove=yes
27373else
cristy8b350f62009-11-15 23:12:43 +000027374 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027375fi
cristy8b350f62009-11-15 23:12:43 +000027376rm -f core conftest.err conftest.$ac_objext \
27377 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027378LIBS=$ac_check_lib_save_LIBS
27379fi
cristy8b350f62009-11-15 23:12:43 +000027380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027381$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027382if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027383 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27384fi
27385
27386 fi
27387
27388 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027389 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027390if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027391
cristy3ed852e2009-09-05 21:47:34 +000027392fi
27393
cristy3ed852e2009-09-05 21:47:34 +000027394 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027396$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027397if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027398 $as_echo_n "(cached) " >&6
27399else
27400 ac_check_lib_save_LIBS=$LIBS
27401LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027403/* end confdefs.h. */
27404
27405/* Override any GCC internal prototype to avoid an error.
27406 Use char because int might match the return type of a GCC
27407 builtin and then its argument prototype would still apply. */
27408#ifdef __cplusplus
27409extern "C"
27410#endif
27411char shmat ();
27412int
27413main ()
27414{
27415return shmat ();
27416 ;
27417 return 0;
27418}
27419_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027420if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027421 ac_cv_lib_ipc_shmat=yes
27422else
cristy8b350f62009-11-15 23:12:43 +000027423 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027424fi
cristy8b350f62009-11-15 23:12:43 +000027425rm -f core conftest.err conftest.$ac_objext \
27426 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027427LIBS=$ac_check_lib_save_LIBS
27428fi
cristy8b350f62009-11-15 23:12:43 +000027429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027430$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027431if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027432 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27433fi
27434
27435 fi
27436 fi
27437
27438 # Check for libraries that X11R6 Xt/Xaw programs need.
27439 ac_save_LDFLAGS=$LDFLAGS
27440 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27441 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27442 # check for ICE first), but we must link in the order -lSM -lICE or
27443 # we get undefined symbols. So assume we have SM if we have ICE.
27444 # These have to be linked with before -lX11, unlike the other
27445 # libraries we check for below, so use a different variable.
27446 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027448$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027449if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027450 $as_echo_n "(cached) " >&6
27451else
27452 ac_check_lib_save_LIBS=$LIBS
27453LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027455/* end confdefs.h. */
27456
27457/* Override any GCC internal prototype to avoid an error.
27458 Use char because int might match the return type of a GCC
27459 builtin and then its argument prototype would still apply. */
27460#ifdef __cplusplus
27461extern "C"
27462#endif
27463char IceConnectionNumber ();
27464int
27465main ()
27466{
27467return IceConnectionNumber ();
27468 ;
27469 return 0;
27470}
27471_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027472if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027473 ac_cv_lib_ICE_IceConnectionNumber=yes
27474else
cristy8b350f62009-11-15 23:12:43 +000027475 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027476fi
cristy8b350f62009-11-15 23:12:43 +000027477rm -f core conftest.err conftest.$ac_objext \
27478 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027479LIBS=$ac_check_lib_save_LIBS
27480fi
cristy8b350f62009-11-15 23:12:43 +000027481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027482$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027483if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027484 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27485fi
27486
27487 LDFLAGS=$ac_save_LDFLAGS
27488
27489fi
27490
27491if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27493$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027495$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27497$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027498 LDFLAGS="$LDFLAGS $X_LIBS"
27499 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27500 LIBS="$X11_LIBS $LIBS"
27501 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27502
27503
cristy8b350f62009-11-15 23:12:43 +000027504$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027505
27506 #
27507 # Check for X11 shared memory extension
27508 #
27509 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027510 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027511if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027512 have_shmctl='yes'
27513fi
27514
27515 if test "$have_shmctl" != 'yes'; then
27516 PERSIST_LIBS=$LIBS
27517 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027519/* end confdefs.h. */
27520
27521/* Override any GCC internal prototype to avoid an error.
27522 Use char because int might match the return type of a GCC
27523 builtin and then its argument prototype would still apply. */
27524#ifdef __cplusplus
27525extern "C"
27526#endif
27527char shmctl ();
27528int
27529main ()
27530{
27531return shmctl ();
27532 ;
27533 return 0;
27534}
27535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027536if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027537 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027538fi
cristy8b350f62009-11-15 23:12:43 +000027539rm -f core conftest.err conftest.$ac_objext \
27540 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027541 LIBS=$PERSIST_LIBS
27542 fi
27543
27544 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027546$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027547if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027548 $as_echo_n "(cached) " >&6
27549else
27550 ac_check_lib_save_LIBS=$LIBS
27551LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027553/* end confdefs.h. */
27554
27555/* Override any GCC internal prototype to avoid an error.
27556 Use char because int might match the return type of a GCC
27557 builtin and then its argument prototype would still apply. */
27558#ifdef __cplusplus
27559extern "C"
27560#endif
27561char XShmAttach ();
27562int
27563main ()
27564{
27565return XShmAttach ();
27566 ;
27567 return 0;
27568}
27569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027570if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027571 ac_cv_lib_Xext_XShmAttach=yes
27572else
cristy8b350f62009-11-15 23:12:43 +000027573 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027574fi
cristy8b350f62009-11-15 23:12:43 +000027575rm -f core conftest.err conftest.$ac_objext \
27576 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027577LIBS=$ac_check_lib_save_LIBS
27578fi
cristy8b350f62009-11-15 23:12:43 +000027579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027580$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027581if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027582 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027583$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027584
27585fi
27586
27587 fi
27588
27589 #
27590 # Check for X11 shape extension
27591 #
cristy8b350f62009-11-15 23:12:43 +000027592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027593$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027594if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027595 $as_echo_n "(cached) " >&6
27596else
27597 ac_check_lib_save_LIBS=$LIBS
27598LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027600/* end confdefs.h. */
27601
27602/* Override any GCC internal prototype to avoid an error.
27603 Use char because int might match the return type of a GCC
27604 builtin and then its argument prototype would still apply. */
27605#ifdef __cplusplus
27606extern "C"
27607#endif
27608char XShapeCombineMask ();
27609int
27610main ()
27611{
27612return XShapeCombineMask ();
27613 ;
27614 return 0;
27615}
27616_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027617if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027618 ac_cv_lib_Xext_XShapeCombineMask=yes
27619else
cristy8b350f62009-11-15 23:12:43 +000027620 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027621fi
cristy8b350f62009-11-15 23:12:43 +000027622rm -f core conftest.err conftest.$ac_objext \
27623 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027624LIBS=$ac_check_lib_save_LIBS
27625fi
cristy8b350f62009-11-15 23:12:43 +000027626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027627$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027628if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027629 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027630$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027631
27632fi
27633
cristy8b350f62009-11-15 23:12:43 +000027634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027635$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027636if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027637 $as_echo_n "(cached) " >&6
27638else
27639 ac_check_lib_save_LIBS=$LIBS
27640LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027642/* end confdefs.h. */
27643
27644/* Override any GCC internal prototype to avoid an error.
27645 Use char because int might match the return type of a GCC
27646 builtin and then its argument prototype would still apply. */
27647#ifdef __cplusplus
27648extern "C"
27649#endif
27650char XtSetEventDispatcher ();
27651int
27652main ()
27653{
27654return XtSetEventDispatcher ();
27655 ;
27656 return 0;
27657}
27658_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027659if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027660 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27661else
cristy8b350f62009-11-15 23:12:43 +000027662 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027663fi
cristy8b350f62009-11-15 23:12:43 +000027664rm -f core conftest.err conftest.$ac_objext \
27665 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027666LIBS=$ac_check_lib_save_LIBS
27667fi
cristy8b350f62009-11-15 23:12:43 +000027668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027669$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027670if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027671 XT_LIBS='-lXt'
27672fi
27673
27674 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27675fi
27676if test "$no_x" != 'yes'; then
27677 have_x='yes'
27678else
27679 have_x='no'
27680fi
cristy73bd4a52010-10-05 11:24:23 +000027681 if test "$have_x" = 'yes'; then
27682 X11_DELEGATE_TRUE=
27683 X11_DELEGATE_FALSE='#'
27684else
27685 X11_DELEGATE_TRUE='#'
27686 X11_DELEGATE_FALSE=
27687fi
27688
cristy3ed852e2009-09-05 21:47:34 +000027689
27690
27691
27692
27693#
27694# Check for ZLIB
27695#
27696
27697# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027698if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027699 withval=$with_zlib; with_zlib=$withval
27700else
27701 with_zlib='yes'
27702fi
27703
27704
27705if test "$with_zlib" != 'yes'; then
27706 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27707fi
27708
27709have_zlib='no'
27710ZLIB_LIBS=''
27711if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27713$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027715$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27717$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027718 ZLIB_LIBS=''
27719 failed=0
27720 passed=0
cristy8b350f62009-11-15 23:12:43 +000027721 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027722if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027723 passed=`expr $passed + 1`
27724else
27725 failed=`expr $failed + 1`
27726fi
27727
27728
cristy8b350f62009-11-15 23:12:43 +000027729 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027730if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027731 passed=`expr $passed + 1`
27732else
27733 failed=`expr $failed + 1`
27734fi
27735
27736
cristy8b350f62009-11-15 23:12:43 +000027737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027738$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027739if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027740 $as_echo_n "(cached) " >&6
27741else
27742 ac_check_lib_save_LIBS=$LIBS
27743LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027745/* end confdefs.h. */
27746
27747/* Override any GCC internal prototype to avoid an error.
27748 Use char because int might match the return type of a GCC
27749 builtin and then its argument prototype would still apply. */
27750#ifdef __cplusplus
27751extern "C"
27752#endif
27753char compress ();
27754int
27755main ()
27756{
27757return compress ();
27758 ;
27759 return 0;
27760}
27761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027762if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027763 ac_cv_lib_z_compress=yes
27764else
cristy8b350f62009-11-15 23:12:43 +000027765 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027766fi
cristy8b350f62009-11-15 23:12:43 +000027767rm -f core conftest.err conftest.$ac_objext \
27768 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027769LIBS=$ac_check_lib_save_LIBS
27770fi
cristy8b350f62009-11-15 23:12:43 +000027771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027772$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027773if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027774 passed=`expr $passed + 1`
27775else
27776 failed=`expr $failed + 1`
27777fi
27778
cristy8b350f62009-11-15 23:12:43 +000027779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027780$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027781if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027782 $as_echo_n "(cached) " >&6
27783else
27784 ac_check_lib_save_LIBS=$LIBS
27785LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027787/* end confdefs.h. */
27788
27789/* Override any GCC internal prototype to avoid an error.
27790 Use char because int might match the return type of a GCC
27791 builtin and then its argument prototype would still apply. */
27792#ifdef __cplusplus
27793extern "C"
27794#endif
27795char uncompress ();
27796int
27797main ()
27798{
27799return uncompress ();
27800 ;
27801 return 0;
27802}
27803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027804if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027805 ac_cv_lib_z_uncompress=yes
27806else
cristy8b350f62009-11-15 23:12:43 +000027807 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027808fi
cristy8b350f62009-11-15 23:12:43 +000027809rm -f core conftest.err conftest.$ac_objext \
27810 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027811LIBS=$ac_check_lib_save_LIBS
27812fi
cristy8b350f62009-11-15 23:12:43 +000027813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027814$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027815if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027816 passed=`expr $passed + 1`
27817else
27818 failed=`expr $failed + 1`
27819fi
27820
cristy8b350f62009-11-15 23:12:43 +000027821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027822$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027823if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027824 $as_echo_n "(cached) " >&6
27825else
27826 ac_check_lib_save_LIBS=$LIBS
27827LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027829/* end confdefs.h. */
27830
27831/* Override any GCC internal prototype to avoid an error.
27832 Use char because int might match the return type of a GCC
27833 builtin and then its argument prototype would still apply. */
27834#ifdef __cplusplus
27835extern "C"
27836#endif
27837char deflate ();
27838int
27839main ()
27840{
27841return deflate ();
27842 ;
27843 return 0;
27844}
27845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027846if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027847 ac_cv_lib_z_deflate=yes
27848else
cristy8b350f62009-11-15 23:12:43 +000027849 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027850fi
cristy8b350f62009-11-15 23:12:43 +000027851rm -f core conftest.err conftest.$ac_objext \
27852 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027853LIBS=$ac_check_lib_save_LIBS
27854fi
cristy8b350f62009-11-15 23:12:43 +000027855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027856$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027857if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027858 passed=`expr $passed + 1`
27859else
27860 failed=`expr $failed + 1`
27861fi
27862
cristy8b350f62009-11-15 23:12:43 +000027863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027864$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027865if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027866 $as_echo_n "(cached) " >&6
27867else
27868 ac_check_lib_save_LIBS=$LIBS
27869LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027871/* end confdefs.h. */
27872
27873/* Override any GCC internal prototype to avoid an error.
27874 Use char because int might match the return type of a GCC
27875 builtin and then its argument prototype would still apply. */
27876#ifdef __cplusplus
27877extern "C"
27878#endif
27879char inflate ();
27880int
27881main ()
27882{
27883return inflate ();
27884 ;
27885 return 0;
27886}
27887_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027888if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027889 ac_cv_lib_z_inflate=yes
27890else
cristy8b350f62009-11-15 23:12:43 +000027891 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027892fi
cristy8b350f62009-11-15 23:12:43 +000027893rm -f core conftest.err conftest.$ac_objext \
27894 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027895LIBS=$ac_check_lib_save_LIBS
27896fi
cristy8b350f62009-11-15 23:12:43 +000027897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027898$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027899if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027900 passed=`expr $passed + 1`
27901else
27902 failed=`expr $failed + 1`
27903fi
27904
cristy8b350f62009-11-15 23:12:43 +000027905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027906$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027907if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027908 $as_echo_n "(cached) " >&6
27909else
27910 ac_check_lib_save_LIBS=$LIBS
27911LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027913/* end confdefs.h. */
27914
27915/* Override any GCC internal prototype to avoid an error.
27916 Use char because int might match the return type of a GCC
27917 builtin and then its argument prototype would still apply. */
27918#ifdef __cplusplus
27919extern "C"
27920#endif
27921char gzseek ();
27922int
27923main ()
27924{
27925return gzseek ();
27926 ;
27927 return 0;
27928}
27929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027930if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027931 ac_cv_lib_z_gzseek=yes
27932else
cristy8b350f62009-11-15 23:12:43 +000027933 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027934fi
cristy8b350f62009-11-15 23:12:43 +000027935rm -f core conftest.err conftest.$ac_objext \
27936 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027937LIBS=$ac_check_lib_save_LIBS
27938fi
cristy8b350f62009-11-15 23:12:43 +000027939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027940$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027941if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027942 passed=`expr $passed + 1`
27943else
27944 failed=`expr $failed + 1`
27945fi
27946
cristy8b350f62009-11-15 23:12:43 +000027947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027948$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027949if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027950 $as_echo_n "(cached) " >&6
27951else
27952 ac_check_lib_save_LIBS=$LIBS
27953LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027955/* end confdefs.h. */
27956
27957/* Override any GCC internal prototype to avoid an error.
27958 Use char because int might match the return type of a GCC
27959 builtin and then its argument prototype would still apply. */
27960#ifdef __cplusplus
27961extern "C"
27962#endif
27963char gztell ();
27964int
27965main ()
27966{
27967return gztell ();
27968 ;
27969 return 0;
27970}
27971_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027972if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027973 ac_cv_lib_z_gztell=yes
27974else
cristy8b350f62009-11-15 23:12:43 +000027975 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027976fi
cristy8b350f62009-11-15 23:12:43 +000027977rm -f core conftest.err conftest.$ac_objext \
27978 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027979LIBS=$ac_check_lib_save_LIBS
27980fi
cristy8b350f62009-11-15 23:12:43 +000027981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027982$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027983if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027984 passed=`expr $passed + 1`
27985else
27986 failed=`expr $failed + 1`
27987fi
27988
cristy8b350f62009-11-15 23:12:43 +000027989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027990$as_echo_n "checking if ZLIB package is complete... " >&6; }
27991 if test $passed -gt 0; then
27992 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27994$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027995 have_zlib='no (failed tests)'
27996 else
27997 ZLIB_LIBS='-lz'
27998 LIBS="$ZLIB_LIBS $LIBS"
27999
cristy8b350f62009-11-15 23:12:43 +000028000$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028001
cristyad38abe2012-12-23 23:03:21 +000028002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28003$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028004 have_zlib='yes'
28005 fi
28006 else
cristyad38abe2012-12-23 23:03:21 +000028007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28008$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028009 fi
28010fi
cristy73bd4a52010-10-05 11:24:23 +000028011 if test "$have_zlib" = 'yes'; then
28012 ZLIB_DELEGATE_TRUE=
28013 ZLIB_DELEGATE_FALSE='#'
28014else
28015 ZLIB_DELEGATE_TRUE='#'
28016 ZLIB_DELEGATE_FALSE=
28017fi
28018
cristy3ed852e2009-09-05 21:47:34 +000028019
28020
cristy5eef09f2012-10-16 12:08:28 +000028021# whether modules are built or not.
28022with_ltdl='yes'
28023have_ltdl='no'
28024LTDL_LIBS=''
28025if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28027$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28029$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28031$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028032 failed=0
28033 passed=0
28034 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28035if test "x$ac_cv_header_ltdl_h" = xyes; then :
28036 passed=`expr $passed + 1`
28037else
28038 failed=`expr $failed + 1`
28039fi
28040
28041
28042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28043$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28044if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28045 $as_echo_n "(cached) " >&6
28046else
28047 ac_check_lib_save_LIBS=$LIBS
28048LIBS="-lltdl $LIBS"
28049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28050/* end confdefs.h. */
28051
28052/* Override any GCC internal prototype to avoid an error.
28053 Use char because int might match the return type of a GCC
28054 builtin and then its argument prototype would still apply. */
28055#ifdef __cplusplus
28056extern "C"
28057#endif
28058char lt_dlinit ();
28059int
28060main ()
28061{
28062return lt_dlinit ();
28063 ;
28064 return 0;
28065}
28066_ACEOF
28067if ac_fn_c_try_link "$LINENO"; then :
28068 ac_cv_lib_ltdl_lt_dlinit=yes
28069else
28070 ac_cv_lib_ltdl_lt_dlinit=no
28071fi
28072rm -f core conftest.err conftest.$ac_objext \
28073 conftest$ac_exeext conftest.$ac_ext
28074LIBS=$ac_check_lib_save_LIBS
28075fi
28076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28077$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28078if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28079 passed=`expr $passed + 1`
28080else
28081 failed=`expr $failed + 1`
28082fi
28083
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28085$as_echo_n "checking if libltdl package is complete... " >&6; }
28086 if test $passed -gt 0 ; then
28087 if test $failed -gt 0 ; then
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28089$as_echo "no -- some components failed test" >&6; }
28090 have_ltdl='no (failed tests)'
28091 else
28092 LTDL_LIBS='-lltdl'
28093 LIBS="$LTDL_LIBS $LIBS"
28094
28095$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28096
28097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28098$as_echo "yes" >&6; }
28099 have_ltdl='yes'
28100 fi
28101 else
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28103$as_echo "no" >&6; }
28104 fi
cristyaf4cbf32012-10-16 23:47:41 +000028105 if test "$have_ltdl" != 'yes' ; then
28106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28108as_fn_error 1 "libltdl is required for modules build
28109See \`config.log' for more details" "$LINENO" 5; }
28110 fi
cristy5eef09f2012-10-16 12:08:28 +000028111fi
28112 if test "$have_ltdl" != 'no'; then
28113 WITH_LTDL_TRUE=
28114 WITH_LTDL_FALSE='#'
28115else
28116 WITH_LTDL_TRUE='#'
28117 WITH_LTDL_FALSE=
28118fi
28119
28120
cristy3ed852e2009-09-05 21:47:34 +000028121#
28122# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28123#
28124LIB_DL=''
28125if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028127$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028128if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028129 $as_echo_n "(cached) " >&6
28130else
28131 ac_check_lib_save_LIBS=$LIBS
28132LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028134/* end confdefs.h. */
28135
28136/* Override any GCC internal prototype to avoid an error.
28137 Use char because int might match the return type of a GCC
28138 builtin and then its argument prototype would still apply. */
28139#ifdef __cplusplus
28140extern "C"
28141#endif
28142char dlopen ();
28143int
28144main ()
28145{
28146return dlopen ();
28147 ;
28148 return 0;
28149}
28150_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028151if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028152 ac_cv_lib_dl_dlopen=yes
28153else
cristy8b350f62009-11-15 23:12:43 +000028154 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028155fi
cristy8b350f62009-11-15 23:12:43 +000028156rm -f core conftest.err conftest.$ac_objext \
28157 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028158LIBS=$ac_check_lib_save_LIBS
28159fi
cristy8b350f62009-11-15 23:12:43 +000028160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028161$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028162if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028163 LIB_DL='-ldl'
28164fi
28165
28166 LIBS="$LIB_DL $LIBS"
28167fi
28168
28169
28170
28171#
28172# Check for Autotrace delegate library.
28173#
28174
28175# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028176if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028177 withval=$with_autotrace; with_autotrace=$withval
28178else
28179 with_autotrace='no'
28180fi
28181
28182
28183if test "$with_autotrace" != 'yes'; then
28184 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28185fi
28186
28187have_autotrace='no'
28188AUTOTRACE_CFLAGS=""
28189AUTOTRACE_LIBS=""
28190AUTOTRACE_PKG=""
28191if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28193$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028194
28195pkg_failed=no
28196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28197$as_echo_n "checking for AUTOTRACE... " >&6; }
28198
28199if test -n "$AUTOTRACE_CFLAGS"; then
28200 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28201 elif test -n "$PKG_CONFIG"; then
28202 if test -n "$PKG_CONFIG" && \
28203 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28204 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28205 ac_status=$?
28206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28207 test $ac_status = 0; }; then
28208 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28209else
28210 pkg_failed=yes
28211fi
28212 else
28213 pkg_failed=untried
28214fi
28215if test -n "$AUTOTRACE_LIBS"; then
28216 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28217 elif test -n "$PKG_CONFIG"; then
28218 if test -n "$PKG_CONFIG" && \
28219 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28220 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28221 ac_status=$?
28222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28223 test $ac_status = 0; }; then
28224 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28225else
28226 pkg_failed=yes
28227fi
28228 else
28229 pkg_failed=untried
28230fi
28231
28232
28233
28234if test $pkg_failed = yes; then
28235
28236if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28237 _pkg_short_errors_supported=yes
28238else
28239 _pkg_short_errors_supported=no
28240fi
28241 if test $_pkg_short_errors_supported = yes; then
28242 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28243 else
28244 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28245 fi
28246 # Put the nasty error message in config.log where it belongs
28247 echo "$AUTOTRACE_PKG_ERRORS" >&5
28248
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28250$as_echo "no" >&6; }
28251 have_autotrace=no
28252elif test $pkg_failed = untried; then
28253 have_autotrace=no
28254else
28255 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28256 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28258$as_echo "yes" >&6; }
28259 have_autotrace=yes
28260fi
cristyad38abe2012-12-23 23:03:21 +000028261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28262$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028263fi
28264
28265if test "$have_autotrace" = 'yes'; then
28266 failed=0
28267
cristy8b350f62009-11-15 23:12:43 +000028268$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028269
cristyc6722092012-10-14 00:19:31 +000028270 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028271 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028272 fi
28273fi
28274
cristy73bd4a52010-10-05 11:24:23 +000028275 if test "$have_autotrace" = 'yes'; then
28276 AUTOTRACE_DELEGATE_TRUE=
28277 AUTOTRACE_DELEGATE_FALSE='#'
28278else
28279 AUTOTRACE_DELEGATE_TRUE='#'
28280 AUTOTRACE_DELEGATE_FALSE=
28281fi
28282
cristy3ed852e2009-09-05 21:47:34 +000028283
28284
28285
28286
28287#
28288# Check for Display Postscript delegate library.
28289#
28290
28291# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028292if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028293 withval=$with_dps; with_dps=$withval
28294else
28295 with_dps='yes'
28296fi
28297
28298
28299if test "$with_dps" != 'yes'; then
28300 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28301fi
28302
28303have_dps='no'
28304DPS_LIBS=''
28305if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28307$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028309$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28311$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028312 failed=0
28313 passed=0
28314 PERSIST_CPPFLAGS="$CPPFLAGS"
28315 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028316 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 +000028317if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028318 passed=`expr $passed + 1`
28319else
28320 failed=`expr $failed + 1`
28321fi
28322
28323
28324 # DPS issues:
28325 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28326 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28327 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28328 # ImageMagick itself doesn't use -lXt.
28329 have_libdps='no'
28330 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028332$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028333if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028334 $as_echo_n "(cached) " >&6
28335else
28336 ac_check_lib_save_LIBS=$LIBS
28337LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028339/* end confdefs.h. */
28340
28341/* Override any GCC internal prototype to avoid an error.
28342 Use char because int might match the return type of a GCC
28343 builtin and then its argument prototype would still apply. */
28344#ifdef __cplusplus
28345extern "C"
28346#endif
28347char DPSInitialize ();
28348int
28349main ()
28350{
28351return DPSInitialize ();
28352 ;
28353 return 0;
28354}
28355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028356if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028357 ac_cv_lib_dps_DPSInitialize=yes
28358else
cristy8b350f62009-11-15 23:12:43 +000028359 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028360fi
cristy8b350f62009-11-15 23:12:43 +000028361rm -f core conftest.err conftest.$ac_objext \
28362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028363LIBS=$ac_check_lib_save_LIBS
28364fi
cristy8b350f62009-11-15 23:12:43 +000028365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028366$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028367if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028368 have_libdps='yes'
28369else
28370 have_libdps='no'
28371fi
28372
28373 if test "$have_libdps" != 'yes'; then
28374 # Unset cache variable so we can try again.
28375 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028377$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028378if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028379 $as_echo_n "(cached) " >&6
28380else
28381 ac_check_lib_save_LIBS=$LIBS
28382LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028384/* end confdefs.h. */
28385
28386/* Override any GCC internal prototype to avoid an error.
28387 Use char because int might match the return type of a GCC
28388 builtin and then its argument prototype would still apply. */
28389#ifdef __cplusplus
28390extern "C"
28391#endif
28392char DPSInitialize ();
28393int
28394main ()
28395{
28396return DPSInitialize ();
28397 ;
28398 return 0;
28399}
28400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028401if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028402 ac_cv_lib_dps_DPSInitialize=yes
28403else
cristy8b350f62009-11-15 23:12:43 +000028404 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028405fi
cristy8b350f62009-11-15 23:12:43 +000028406rm -f core conftest.err conftest.$ac_objext \
28407 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028408LIBS=$ac_check_lib_save_LIBS
28409fi
cristy8b350f62009-11-15 23:12:43 +000028410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028411$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028412if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028413 have_libdps='yes'
28414else
28415 have_libdps='no'
28416fi
28417
28418 if test "$have_libdps" = 'yes'; then
28419 LIBDPS_XT='-lXt'
28420 fi
28421 fi
28422 if test "$have_libdps" = 'yes'; then
28423 passed=`expr $passed + 1`
28424 else
28425 failed=`expr $failed + 1`
28426 fi
cristy8b350f62009-11-15 23:12:43 +000028427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028428$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028429if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028430 $as_echo_n "(cached) " >&6
28431else
28432 ac_check_lib_save_LIBS=$LIBS
28433LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028435/* end confdefs.h. */
28436
28437/* Override any GCC internal prototype to avoid an error.
28438 Use char because int might match the return type of a GCC
28439 builtin and then its argument prototype would still apply. */
28440#ifdef __cplusplus
28441extern "C"
28442#endif
28443char XDPSPixelsPerPoint ();
28444int
28445main ()
28446{
28447return XDPSPixelsPerPoint ();
28448 ;
28449 return 0;
28450}
28451_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028452if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028453 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28454else
cristy8b350f62009-11-15 23:12:43 +000028455 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028456fi
cristy8b350f62009-11-15 23:12:43 +000028457rm -f core conftest.err conftest.$ac_objext \
28458 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028459LIBS=$ac_check_lib_save_LIBS
28460fi
cristy8b350f62009-11-15 23:12:43 +000028461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028462$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028463if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028464 passed=`expr $passed + 1`
28465else
28466 failed=`expr $failed + 1`
28467fi
28468
cristy8b350f62009-11-15 23:12:43 +000028469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028470$as_echo_n "checking if DPS package is complete... " >&6; }
28471 if test $passed -gt 0; then
28472 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28474$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028475 have_dps='no (failed tests)'
28476 CPPFLAGS="$PERSIST_CPPFLAGS"
28477 else
28478 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28479 LIBS="$DPS_LIBS $LIBS"
28480
cristy8b350f62009-11-15 23:12:43 +000028481$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028482
cristyad38abe2012-12-23 23:03:21 +000028483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28484$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028485 have_dps='yes'
28486 fi
28487 else
cristyad38abe2012-12-23 23:03:21 +000028488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28489$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028490 CPPFLAGS=$PERSIST_CPPFLAGS
28491 fi
28492fi
cristy73bd4a52010-10-05 11:24:23 +000028493 if test "$have_dps" = 'yes'; then
28494 DPS_DELEGATE_TRUE=
28495 DPS_DELEGATE_FALSE='#'
28496else
28497 DPS_DELEGATE_TRUE='#'
28498 DPS_DELEGATE_FALSE=
28499fi
28500
cristy3ed852e2009-09-05 21:47:34 +000028501
28502
28503
28504#
28505# Check for DJVU delegate library.
28506#
28507
28508# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028509if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028510 withval=$with_djvu; with_djvu=$withval
28511else
28512 with_djvu='yes'
28513fi
28514
28515
28516if test "$with_djvu" != 'yes'; then
28517 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28518fi
28519
28520have_djvu='no'
28521DJVU_LIBS=''
28522if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28524$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028526$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28528$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028529 failed=0
28530 passed=0
cristy8b350f62009-11-15 23:12:43 +000028531 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 +000028532if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028533 passed=`expr $passed + 1`
28534else
28535 failed=`expr $failed + 1`
28536fi
28537
28538
cristy8b350f62009-11-15 23:12:43 +000028539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028540$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028541if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028542 $as_echo_n "(cached) " >&6
28543else
28544 ac_check_lib_save_LIBS=$LIBS
28545LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028547/* end confdefs.h. */
28548
28549/* Override any GCC internal prototype to avoid an error.
28550 Use char because int might match the return type of a GCC
28551 builtin and then its argument prototype would still apply. */
28552#ifdef __cplusplus
28553extern "C"
28554#endif
28555char ddjvu_context_create ();
28556int
28557main ()
28558{
28559return ddjvu_context_create ();
28560 ;
28561 return 0;
28562}
28563_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028564if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028565 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28566else
cristy8b350f62009-11-15 23:12:43 +000028567 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028568fi
cristy8b350f62009-11-15 23:12:43 +000028569rm -f core conftest.err conftest.$ac_objext \
28570 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028571LIBS=$ac_check_lib_save_LIBS
28572fi
cristy8b350f62009-11-15 23:12:43 +000028573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028574$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028575if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028576 passed=`expr $passed + 1`
28577else
28578 failed=`expr $failed + 1`
28579fi
28580
cristy8b350f62009-11-15 23:12:43 +000028581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028582$as_echo_n "checking if DJVU package is complete... " >&6; }
28583 if test $passed -gt 0; then
28584 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28586$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028587 have_djvu='no (failed tests)'
28588 else
28589 DJVU_LIBS='-ldjvulibre'
28590 LIBS="$DJVU_LIBS $LIBS"
28591
cristy8b350f62009-11-15 23:12:43 +000028592$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028593
cristyad38abe2012-12-23 23:03:21 +000028594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28595$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028596 have_djvu='yes'
28597 fi
28598 else
cristyad38abe2012-12-23 23:03:21 +000028599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28600$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028601 fi
28602fi
cristy73bd4a52010-10-05 11:24:23 +000028603 if test "$have_djvu" = 'yes'; then
28604 DJVU_DELEGATE_TRUE=
28605 DJVU_DELEGATE_FALSE='#'
28606else
28607 DJVU_DELEGATE_TRUE='#'
28608 DJVU_DELEGATE_FALSE=
28609fi
28610
cristy3ed852e2009-09-05 21:47:34 +000028611
28612
28613
28614#
cristy430a7312010-01-21 20:44:04 +000028615# Set DejaVu font directory.
28616#
28617
28618# Check whether --with-dejavu-font-dir was given.
28619if test "${with_dejavu_font_dir+set}" = set; then :
28620 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28621else
28622 with_dejavu_font_dir='default'
28623fi
28624
28625
28626if test "$with_dejavu_font_dir" != 'default'; then
28627 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28628fi
28629
28630
28631#
cristy3ed852e2009-09-05 21:47:34 +000028632# Check for FFTW delegate library.
28633#
28634
28635# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028636if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028637 withval=$with_fftw; with_fftw=$withval
28638else
28639 with_fftw='yes'
28640fi
28641
28642
28643if test "$with_fftw" != 'yes'; then
28644 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28645fi
28646
cristy81beccd2011-10-03 18:17:24 +000028647have_fftw='no'
28648FFTW_LIBS=''
28649if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28651$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28653$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28655$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028656 failed=0
28657 passed=0
28658 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28659if test "x$ac_cv_header_fftw3_h" = xyes; then :
28660 passed=`expr $passed + 1`
28661else
28662 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028663fi
28664
cristy81beccd2011-10-03 18:17:24 +000028665
28666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28667$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28668if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28669 $as_echo_n "(cached) " >&6
28670else
28671 ac_check_lib_save_LIBS=$LIBS
28672LIBS="-lfftw3 $LIBS"
28673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28674/* end confdefs.h. */
28675
28676/* Override any GCC internal prototype to avoid an error.
28677 Use char because int might match the return type of a GCC
28678 builtin and then its argument prototype would still apply. */
28679#ifdef __cplusplus
28680extern "C"
28681#endif
28682char fftw_execute ();
28683int
28684main ()
28685{
28686return fftw_execute ();
28687 ;
28688 return 0;
28689}
28690_ACEOF
28691if ac_fn_c_try_link "$LINENO"; then :
28692 ac_cv_lib_fftw3_fftw_execute=yes
28693else
28694 ac_cv_lib_fftw3_fftw_execute=no
28695fi
28696rm -f core conftest.err conftest.$ac_objext \
28697 conftest$ac_exeext conftest.$ac_ext
28698LIBS=$ac_check_lib_save_LIBS
28699fi
28700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28701$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28702if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28703 passed=`expr $passed + 1`
28704else
28705 failed=`expr $failed + 1`
28706fi
28707
28708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28709$as_echo_n "checking if FFTW package is complete... " >&6; }
28710 if test $passed -gt 0; then
28711 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28713$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028714 have_fftw='no (failed tests)'
28715 else
28716 FFTW_LIBS='-lfftw3'
28717 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028718
cristy8b350f62009-11-15 23:12:43 +000028719$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028720
cristyad38abe2012-12-23 23:03:21 +000028721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28722$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028723 have_fftw='yes'
28724 fi
28725 else
cristyad38abe2012-12-23 23:03:21 +000028726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28727$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028728 fi
28729fi
cristy73bd4a52010-10-05 11:24:23 +000028730 if test "$have_fftw" = 'yes'; then
28731 FFTW_DELEGATE_TRUE=
28732 FFTW_DELEGATE_FALSE='#'
28733else
28734 FFTW_DELEGATE_TRUE='#'
28735 FFTW_DELEGATE_FALSE=
28736fi
28737
cristy3ed852e2009-09-05 21:47:34 +000028738
28739
28740
28741#
28742# Check for FlashPIX delegate library.
28743#
28744
28745# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028746if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028747 withval=$with_fpx; with_fpx=$withval
28748else
28749 with_fpx='yes'
28750fi
28751
28752
28753if test "$with_fpx" != 'yes'; then
28754 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28755fi
28756
28757have_fpx='no'
28758FPX_LIBS=''
28759if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28761$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028763$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28765$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028766 failed=0
28767 passed=0
28768 ac_ext=cpp
28769ac_cpp='$CXXCPP $CPPFLAGS'
28770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28773
28774
cristy8b350f62009-11-15 23:12:43 +000028775ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028776if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028777 passed=`expr $passed + 1`
28778else
28779 failed=`expr $failed + 1`
28780fi
28781
28782
cristy8b350f62009-11-15 23:12:43 +000028783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028784$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028785if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028786 $as_echo_n "(cached) " >&6
28787else
28788 ac_check_lib_save_LIBS=$LIBS
28789LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028791/* end confdefs.h. */
28792
28793/* Override any GCC internal prototype to avoid an error.
28794 Use char because int might match the return type of a GCC
28795 builtin and then its argument prototype would still apply. */
28796#ifdef __cplusplus
28797extern "C"
28798#endif
28799char FPX_OpenImageByFilename ();
28800int
28801main ()
28802{
28803return FPX_OpenImageByFilename ();
28804 ;
28805 return 0;
28806}
28807_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028808if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028809 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28810else
cristy8b350f62009-11-15 23:12:43 +000028811 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028812fi
cristy8b350f62009-11-15 23:12:43 +000028813rm -f core conftest.err conftest.$ac_objext \
28814 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028815LIBS=$ac_check_lib_save_LIBS
28816fi
cristy8b350f62009-11-15 23:12:43 +000028817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028818$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028819if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028820 passed=`expr $passed + 1`
28821else
28822 failed=`expr $failed + 1`
28823fi
28824
28825 ac_ext=c
28826ac_cpp='$CPP $CPPFLAGS'
28827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28829ac_compiler_gnu=$ac_cv_c_compiler_gnu
28830
cristy8b350f62009-11-15 23:12:43 +000028831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028832$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28833 if test $passed -gt 0; then
28834 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28836$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028837 have_fpx='no (failed tests)'
28838 else
28839 FPX_LIBS='-lfpx'
28840
cristy8b350f62009-11-15 23:12:43 +000028841$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028842
cristyad38abe2012-12-23 23:03:21 +000028843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28844$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028845 have_fpx='yes'
28846 PERLMAINCC="$CXX"
28847 fi
28848 else
cristyad38abe2012-12-23 23:03:21 +000028849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28850$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028851 fi
28852fi
cristy73bd4a52010-10-05 11:24:23 +000028853 if test "$have_fpx" = 'yes'; then
28854 FPX_DELEGATE_TRUE=
28855 FPX_DELEGATE_FALSE='#'
28856else
28857 FPX_DELEGATE_TRUE='#'
28858 FPX_DELEGATE_FALSE=
28859fi
28860
cristy3ed852e2009-09-05 21:47:34 +000028861
28862
28863
28864#
28865# Check for fontconfig delegate library.
28866#
28867
28868# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028869if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028870 withval=$with_fontconfig; with_fontconfig=$withval
28871else
cristyfc3d0222012-02-07 15:05:57 +000028872 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028873fi
28874
28875
28876if test "$with_fontconfig" != 'yes'; then
28877 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28878fi
28879
28880have_fontconfig='no'
28881FONTCONFIG_CFLAGS=""
28882FONTCONFIG_LIBS=""
28883FONTCONFIG_PKG=""
28884if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28886$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028887
28888pkg_failed=no
28889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28890$as_echo_n "checking for FONTCONFIG... " >&6; }
28891
28892if test -n "$FONTCONFIG_CFLAGS"; then
28893 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28894 elif test -n "$PKG_CONFIG"; then
28895 if test -n "$PKG_CONFIG" && \
28896 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28897 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28898 ac_status=$?
28899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28900 test $ac_status = 0; }; then
28901 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28902else
28903 pkg_failed=yes
28904fi
28905 else
28906 pkg_failed=untried
28907fi
28908if test -n "$FONTCONFIG_LIBS"; then
28909 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28910 elif test -n "$PKG_CONFIG"; then
28911 if test -n "$PKG_CONFIG" && \
28912 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28913 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28914 ac_status=$?
28915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28916 test $ac_status = 0; }; then
28917 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28918else
28919 pkg_failed=yes
28920fi
28921 else
28922 pkg_failed=untried
28923fi
28924
28925
28926
28927if test $pkg_failed = yes; then
28928
28929if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28930 _pkg_short_errors_supported=yes
28931else
28932 _pkg_short_errors_supported=no
28933fi
28934 if test $_pkg_short_errors_supported = yes; then
28935 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28936 else
28937 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28938 fi
28939 # Put the nasty error message in config.log where it belongs
28940 echo "$FONTCONFIG_PKG_ERRORS" >&5
28941
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28943$as_echo "no" >&6; }
28944 have_fontconfig=no
28945elif test $pkg_failed = untried; then
28946 have_fontconfig=no
28947else
28948 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28949 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28951$as_echo "yes" >&6; }
28952 have_fontconfig=yes
28953fi
cristyad38abe2012-12-23 23:03:21 +000028954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28955$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028956fi
28957
28958if test "$have_fontconfig" = 'yes'; then
28959
cristy8b350f62009-11-15 23:12:43 +000028960$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028961
cristyc6722092012-10-14 00:19:31 +000028962 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028963 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028964 fi
cristy3ed852e2009-09-05 21:47:34 +000028965fi
28966
cristy73bd4a52010-10-05 11:24:23 +000028967 if test "$have_fontconfig" = 'yes'; then
28968 FONTCONFIG_DELEGATE_TRUE=
28969 FONTCONFIG_DELEGATE_FALSE='#'
28970else
28971 FONTCONFIG_DELEGATE_TRUE='#'
28972 FONTCONFIG_DELEGATE_FALSE=
28973fi
28974
cristy3ed852e2009-09-05 21:47:34 +000028975
28976
28977
28978
28979#
cristy03f187e2013-01-24 00:22:19 +000028980# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028981#
28982
28983# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028984if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028985 withval=$with_freetype; with_freetype=$withval
28986else
28987 with_freetype='yes'
28988fi
28989
28990
cristy3ed852e2009-09-05 21:47:34 +000028991if test "$with_freetype" != 'yes'; then
28992 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28993fi
28994
cristy81beccd2011-10-03 18:17:24 +000028995have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000028996FREETYPE_CFLAGS=""
28997FREETYPE_LIBS=""
28998FREETYPE_PKG=""
28999if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29001$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029002
29003pkg_failed=no
29004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29005$as_echo_n "checking for FREETYPE... " >&6; }
29006
29007if test -n "$FREETYPE_CFLAGS"; then
29008 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29009 elif test -n "$PKG_CONFIG"; then
29010 if test -n "$PKG_CONFIG" && \
29011 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29012 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29013 ac_status=$?
29014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29015 test $ac_status = 0; }; then
29016 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29017else
29018 pkg_failed=yes
29019fi
29020 else
29021 pkg_failed=untried
29022fi
29023if test -n "$FREETYPE_LIBS"; then
29024 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29025 elif test -n "$PKG_CONFIG"; then
29026 if test -n "$PKG_CONFIG" && \
29027 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29028 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29029 ac_status=$?
29030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29031 test $ac_status = 0; }; then
29032 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29033else
29034 pkg_failed=yes
29035fi
29036 else
29037 pkg_failed=untried
29038fi
29039
29040
29041
29042if test $pkg_failed = yes; then
29043
29044if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29045 _pkg_short_errors_supported=yes
29046else
29047 _pkg_short_errors_supported=no
29048fi
29049 if test $_pkg_short_errors_supported = yes; then
29050 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29051 else
29052 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29053 fi
29054 # Put the nasty error message in config.log where it belongs
29055 echo "$FREETYPE_PKG_ERRORS" >&5
29056
29057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29058$as_echo "no" >&6; }
29059 have_freetype=no
29060elif test $pkg_failed = untried; then
29061 have_freetype=no
29062else
29063 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29064 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29066$as_echo "yes" >&6; }
29067 have_freetype=yes
29068fi
cristyad38abe2012-12-23 23:03:21 +000029069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29070$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029071fi
29072
cristy03f187e2013-01-24 00:22:19 +000029073if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029074
cristy8b350f62009-11-15 23:12:43 +000029075$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029076
cristy03f187e2013-01-24 00:22:19 +000029077 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029078fi
cristy03f187e2013-01-24 00:22:19 +000029079
cristy73bd4a52010-10-05 11:24:23 +000029080 if test "$have_freetype" = 'yes'; then
29081 FREETYPE_DELEGATE_TRUE=
29082 FREETYPE_DELEGATE_FALSE='#'
29083else
29084 FREETYPE_DELEGATE_TRUE='#'
29085 FREETYPE_DELEGATE_FALSE=
29086fi
29087
cristy3ed852e2009-09-05 21:47:34 +000029088
29089
29090
cristy03f187e2013-01-24 00:22:19 +000029091
cristy3ed852e2009-09-05 21:47:34 +000029092#
29093# Check for Ghostscript library or framework.
29094#
29095# Test for iapi.h & test for gsapi_new_instance in -lgs
29096# or -framework Ghostscript
29097
29098
29099# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029100if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029101 withval=$with_gslib; with_gslib=$withval
29102else
29103 with_gslib='no'
29104fi
29105
29106
cristyb7931f12009-09-25 10:22:21 +000029107gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029108if test "$with_gslib" != 'yes'; then
29109 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29110fi
29111
29112have_gslib='no'
29113GS_LIBS=''
29114if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29116$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029118$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29120$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029121 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029122 failed=0
29123 passed=0
cristy8b350f62009-11-15 23:12:43 +000029124 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 +000029125if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029126 passed=`expr $passed + 1`
29127else
29128 failed=`expr $failed + 1`
29129fi
29130
29131
cristy8b350f62009-11-15 23:12:43 +000029132 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 +000029133if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029134 passed=`expr $passed + 1`
29135else
29136 failed=`expr $failed + 1`
29137fi
29138
29139
cristy73bd4a52010-10-05 11:24:23 +000029140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29141$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029142if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029143 $as_echo_n "(cached) " >&6
29144else
29145 ac_check_framework_save_LIBS=$LIBS
29146LIBS="-framework Ghostscript $LIBS"
29147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29148/* end confdefs.h. */
29149
29150/* Override any GCC internal prototype to avoid an error.
29151 Use char because int might match the return type of a GCC
29152 builtin and then its argument prototype would still apply. */
29153#ifdef __cplusplus
29154extern "C"
29155#endif
29156char gsapi_new_instance ();
29157int
29158main ()
29159{
29160return gsapi_new_instance ();
29161 ;
29162 return 0;
29163}
29164_ACEOF
29165if ac_fn_c_try_link "$LINENO"; then :
29166 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29167else
29168 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29169fi
29170rm -f core conftest.err conftest.$ac_objext \
29171 conftest$ac_exeext conftest.$ac_ext
29172LIBS=$ac_check_framework_save_LIBS
29173fi
29174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29175$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29176if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29177 framework=`expr $framework + 1`
29178else
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029180$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029181if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029182 $as_echo_n "(cached) " >&6
29183else
29184 ac_check_lib_save_LIBS=$LIBS
29185LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029187/* end confdefs.h. */
29188
29189/* Override any GCC internal prototype to avoid an error.
29190 Use char because int might match the return type of a GCC
29191 builtin and then its argument prototype would still apply. */
29192#ifdef __cplusplus
29193extern "C"
29194#endif
29195char gsapi_new_instance ();
29196int
29197main ()
29198{
29199return gsapi_new_instance ();
29200 ;
29201 return 0;
29202}
29203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029204if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029205 ac_cv_lib_gs_gsapi_new_instance=yes
29206else
cristy8b350f62009-11-15 23:12:43 +000029207 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029208fi
cristy8b350f62009-11-15 23:12:43 +000029209rm -f core conftest.err conftest.$ac_objext \
29210 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029211LIBS=$ac_check_lib_save_LIBS
29212fi
cristy8b350f62009-11-15 23:12:43 +000029213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029214$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029215if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029216 passed=`expr $passed + 1`
29217else
29218 failed=`expr $failed + 1`
29219fi
cristy73bd4a52010-10-05 11:24:23 +000029220
29221fi
cristy8b350f62009-11-15 23:12:43 +000029222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029223$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29224 if test $passed -gt 0; then
29225 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29227$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029228 have_gslib='no (failed tests)'
29229 else
29230 if test $framework -gt 0; then
29231 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029232 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29234$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029235 else
cristyad38abe2012-12-23 23:03:21 +000029236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29237$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029238 GS_LIBS='-lgs'
29239 fi
29240 LIBS="$GS_LIBS $LIBS"
29241
cristy8b350f62009-11-15 23:12:43 +000029242$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029243
29244 have_gslib='yes'
29245 fi
29246 else
cristyad38abe2012-12-23 23:03:21 +000029247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29248$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029249 fi
29250fi
cristy73bd4a52010-10-05 11:24:23 +000029251 if test "$have_gslib" = 'yes'; then
29252 GS_DELEGATE_TRUE=
29253 GS_DELEGATE_FALSE='#'
29254else
29255 GS_DELEGATE_TRUE='#'
29256 GS_DELEGATE_FALSE=
29257fi
29258
cristy3ed852e2009-09-05 21:47:34 +000029259
29260
29261# Set default font search path
29262
29263# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029264if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029265 withval=$with_fontpath; with_fontpath=$withval
29266else
29267 with_fontpath=''
29268fi
29269
29270
29271if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29272 with_fontpath=''
29273else
29274
29275cat >>confdefs.h <<_ACEOF
29276#define MAGICK_FONT_PATH "$with_fontpath"
29277_ACEOF
29278
29279fi
29280if test "$with_fontpath=" != ''; then
29281 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29282fi
29283
29284# Set Ghostscript font directory
29285
29286# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029287if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029288 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29289else
29290 with_gs_font_dir='default'
29291fi
29292
29293
29294if test "$with_gs_font_dir" != 'default'; then
29295 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29296fi
29297
29298
29299#
29300# Check for GVC delegate library.
29301#
29302
29303# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029304if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029305 withval=$with_gvc; with_gvc=$withval
29306else
cristy1b70dc82012-07-01 23:15:05 +000029307 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029308fi
29309
29310
29311if test "$with_gvc" != 'yes'; then
29312 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29313fi
29314
29315GVC_PKG=""
29316if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29318$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029319
29320pkg_failed=no
29321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29322$as_echo_n "checking for GVC... " >&6; }
29323
29324if test -n "$GVC_CFLAGS"; then
29325 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29326 elif test -n "$PKG_CONFIG"; then
29327 if test -n "$PKG_CONFIG" && \
29328 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29329 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29330 ac_status=$?
29331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29332 test $ac_status = 0; }; then
29333 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29334else
29335 pkg_failed=yes
29336fi
29337 else
29338 pkg_failed=untried
29339fi
29340if test -n "$GVC_LIBS"; then
29341 pkg_cv_GVC_LIBS="$GVC_LIBS"
29342 elif test -n "$PKG_CONFIG"; then
29343 if test -n "$PKG_CONFIG" && \
29344 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29345 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29346 ac_status=$?
29347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29348 test $ac_status = 0; }; then
29349 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29350else
29351 pkg_failed=yes
29352fi
29353 else
29354 pkg_failed=untried
29355fi
29356
29357
29358
29359if test $pkg_failed = yes; then
29360
29361if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29362 _pkg_short_errors_supported=yes
29363else
29364 _pkg_short_errors_supported=no
29365fi
29366 if test $_pkg_short_errors_supported = yes; then
29367 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29368 else
29369 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29370 fi
29371 # Put the nasty error message in config.log where it belongs
29372 echo "$GVC_PKG_ERRORS" >&5
29373
29374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29375$as_echo "no" >&6; }
29376 have_gvc=no
29377elif test $pkg_failed = untried; then
29378 have_gvc=no
29379else
29380 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29381 GVC_LIBS=$pkg_cv_GVC_LIBS
29382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29383$as_echo "yes" >&6; }
29384 have_gvc=yes
29385fi
cristyad38abe2012-12-23 23:03:21 +000029386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29387$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029388fi
29389
29390if test "$have_gvc" = 'yes'; then
29391
cristy8b350f62009-11-15 23:12:43 +000029392$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029393
cristyc6722092012-10-14 00:19:31 +000029394 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029395 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29396 fi
29397fi
29398
cristy73bd4a52010-10-05 11:24:23 +000029399 if test "$have_gvc" = 'yes'; then
29400 GVC_DELEGATE_TRUE=
29401 GVC_DELEGATE_FALSE='#'
29402else
29403 GVC_DELEGATE_TRUE='#'
29404 GVC_DELEGATE_FALSE=
29405fi
29406
cristy3ed852e2009-09-05 21:47:34 +000029407
29408
29409
29410
29411#
29412# Check for JBIG delegate library.
29413#
29414
29415
29416# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029417if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029418 withval=$with_jbig; with_jbig=$withval
29419else
29420 with_jbig='yes'
29421fi
29422
29423
29424have_jbig='no'
29425JBIG_LIBS=''
29426if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29428$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029430$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29432$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029433 failed=0
29434 passed=0
cristy8b350f62009-11-15 23:12:43 +000029435 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029436if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029437 passed=`expr $passed + 1`
29438else
29439 failed=`expr $failed + 1`
29440fi
29441
29442
cristy8b350f62009-11-15 23:12:43 +000029443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029444$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029445if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029446 $as_echo_n "(cached) " >&6
29447else
29448 ac_check_lib_save_LIBS=$LIBS
29449LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029451/* end confdefs.h. */
29452
29453/* Override any GCC internal prototype to avoid an error.
29454 Use char because int might match the return type of a GCC
29455 builtin and then its argument prototype would still apply. */
29456#ifdef __cplusplus
29457extern "C"
29458#endif
29459char jbg_dec_init ();
29460int
29461main ()
29462{
29463return jbg_dec_init ();
29464 ;
29465 return 0;
29466}
29467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029468if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029469 ac_cv_lib_jbig_jbg_dec_init=yes
29470else
cristy8b350f62009-11-15 23:12:43 +000029471 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029472fi
cristy8b350f62009-11-15 23:12:43 +000029473rm -f core conftest.err conftest.$ac_objext \
29474 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029475LIBS=$ac_check_lib_save_LIBS
29476fi
cristy8b350f62009-11-15 23:12:43 +000029477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029478$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029479if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029480 passed=`expr $passed + 1`
29481else
29482 failed=`expr $failed + 1`
29483fi
29484
cristy8b350f62009-11-15 23:12:43 +000029485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029486$as_echo_n "checking if JBIG package is complete... " >&6; }
29487 if test $passed -gt 0; then
29488 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29490$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029491 have_jbig='no (failed tests)'
29492 else
29493 JBIG_LIBS='-ljbig'
29494 LIBS="$JBIG_LIBS $LIBS"
29495
cristy8b350f62009-11-15 23:12:43 +000029496$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029497
cristyad38abe2012-12-23 23:03:21 +000029498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29499$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029500 have_jbig='yes'
29501 fi
29502 else
cristyad38abe2012-12-23 23:03:21 +000029503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29504$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029505 fi
29506fi
cristy73bd4a52010-10-05 11:24:23 +000029507 if test "$have_jbig" = 'yes'; then
29508 JBIG_DELEGATE_TRUE=
29509 JBIG_DELEGATE_FALSE='#'
29510else
29511 JBIG_DELEGATE_TRUE='#'
29512 JBIG_DELEGATE_FALSE=
29513fi
29514
cristy3ed852e2009-09-05 21:47:34 +000029515
29516
29517
29518#
29519# Check for JPEG delegate library.
29520#
29521
29522# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029523if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029524 withval=$with_jpeg; with_jpeg=$withval
29525else
29526 with_jpeg='yes'
29527fi
29528
29529
29530if test "$with_jpeg" != 'yes'; then
29531 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29532fi
29533
29534have_jpeg='no'
29535JPEG_LIBS=''
29536if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29538$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029540$as_echo_n "checking for JPEG... " >&6; }
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 +000029543 failed=0
29544 passed=0
cristy8b350f62009-11-15 23:12:43 +000029545 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029546if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029547 passed=`expr $passed + 1`
29548else
29549 failed=`expr $failed + 1`
29550fi
29551
29552
cristy8b350f62009-11-15 23:12:43 +000029553 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029554if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029555 passed=`expr $passed + 1`
29556else
29557 failed=`expr $failed + 1`
29558fi
29559
29560
cristy8b350f62009-11-15 23:12:43 +000029561 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029562if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029563 passed=`expr $passed + 1`
29564else
29565 failed=`expr $failed + 1`
29566fi
29567
29568
cristy8b350f62009-11-15 23:12:43 +000029569 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029570if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029571 passed=`expr $passed + 1`
29572else
29573 failed=`expr $failed + 1`
29574fi
29575
29576
cristy8b350f62009-11-15 23:12:43 +000029577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029578$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029579if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029580 $as_echo_n "(cached) " >&6
29581else
29582 ac_check_lib_save_LIBS=$LIBS
29583LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029585/* end confdefs.h. */
29586
29587/* Override any GCC internal prototype to avoid an error.
29588 Use char because int might match the return type of a GCC
29589 builtin and then its argument prototype would still apply. */
29590#ifdef __cplusplus
29591extern "C"
29592#endif
29593char jpeg_read_header ();
29594int
29595main ()
29596{
29597return jpeg_read_header ();
29598 ;
29599 return 0;
29600}
29601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029602if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029603 ac_cv_lib_jpeg_jpeg_read_header=yes
29604else
cristy8b350f62009-11-15 23:12:43 +000029605 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029606fi
cristy8b350f62009-11-15 23:12:43 +000029607rm -f core conftest.err conftest.$ac_objext \
29608 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029609LIBS=$ac_check_lib_save_LIBS
29610fi
cristy8b350f62009-11-15 23:12:43 +000029611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029612$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029613if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029614 passed=`expr $passed + 1`
29615else
29616 failed=`expr $failed + 1`
29617fi
29618
29619
29620# Test for compatible JPEG library
29621if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029623$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029624if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029625 $as_echo_n "(cached) " >&6
29626else
cristy8b350f62009-11-15 23:12:43 +000029627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029628/* end confdefs.h. */
29629#include <stdio.h>
29630#include <stdlib.h>
29631#include <jpeglib.h>
29632
29633int
29634main ()
29635{
29636
29637#if JPEG_LIB_VERSION < 62
29638#error IJG JPEG library must be version 6b or newer!
29639#endif
29640return 0;
29641
29642 ;
29643 return 0;
29644}
29645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029646if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029647 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29648else
cristy8b350f62009-11-15 23:12:43 +000029649 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029650fi
cristy3ed852e2009-09-05 21:47:34 +000029651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29652fi
cristy8b350f62009-11-15 23:12:43 +000029653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029654$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29655fi
cristy8b350f62009-11-15 23:12:43 +000029656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029657$as_echo_n "checking if JPEG package is complete... " >&6; }
29658 if test $passed -gt 0; then
29659 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29661$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029662 have_jpeg='no (failed tests)'
29663 else
29664 JPEG_LIBS='-ljpeg'
29665 LIBS="$JPEG_LIBS $LIBS"
29666
cristy8b350f62009-11-15 23:12:43 +000029667$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029668
cristyad38abe2012-12-23 23:03:21 +000029669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29670$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029671 have_jpeg='yes'
29672 fi
29673 else
cristyad38abe2012-12-23 23:03:21 +000029674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29675$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029676 fi
29677fi
cristy73bd4a52010-10-05 11:24:23 +000029678 if test "$have_jpeg" = 'yes'; then
29679 JPEG_DELEGATE_TRUE=
29680 JPEG_DELEGATE_FALSE='#'
29681else
29682 JPEG_DELEGATE_TRUE='#'
29683 JPEG_DELEGATE_FALSE=
29684fi
29685
cristy3ed852e2009-09-05 21:47:34 +000029686
29687
29688
29689#
29690# Check for JPEG Version 2 delegate library.
29691#
29692
29693# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029694if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029695 withval=$with_jp2; with_jp2=$withval
29696else
29697 with_jp2='yes'
29698fi
29699
29700
29701if test "$with_jp2" != 'yes'; then
29702 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29703fi
29704
29705have_jp2='no'
29706JP2_LIBS=''
29707if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29709$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029711$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29713$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029714 failed=0
29715 passed=0
cristy8b350f62009-11-15 23:12:43 +000029716 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 +000029717if test "x$ac_cv_header_jasper_jasper_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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029725$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029726if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029727 $as_echo_n "(cached) " >&6
29728else
29729 ac_check_lib_save_LIBS=$LIBS
29730LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029732/* end confdefs.h. */
29733
29734/* Override any GCC internal prototype to avoid an error.
29735 Use char because int might match the return type of a GCC
29736 builtin and then its argument prototype would still apply. */
29737#ifdef __cplusplus
29738extern "C"
29739#endif
29740char jas_stream_fopen ();
29741int
29742main ()
29743{
29744return jas_stream_fopen ();
29745 ;
29746 return 0;
29747}
29748_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029749if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029750 ac_cv_lib_jasper_jas_stream_fopen=yes
29751else
cristy8b350f62009-11-15 23:12:43 +000029752 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029753fi
cristy8b350f62009-11-15 23:12:43 +000029754rm -f core conftest.err conftest.$ac_objext \
29755 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029756LIBS=$ac_check_lib_save_LIBS
29757fi
cristy8b350f62009-11-15 23:12:43 +000029758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029759$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029760if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029761 passed=`expr $passed + 1`
29762else
29763 failed=`expr $failed + 1`
29764fi
29765
cristy8b350f62009-11-15 23:12:43 +000029766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029767$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29768 if test $passed -gt 0; then
29769 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29771$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029772 have_jp2='no (failed tests)'
29773 else
29774 JP2_LIBS='-ljasper'
29775 LIBS="$JP2_LIBS $LIBS"
29776
cristy8b350f62009-11-15 23:12:43 +000029777$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029778
cristyad38abe2012-12-23 23:03:21 +000029779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29780$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029781 have_jp2='yes'
29782 fi
29783 else
cristyad38abe2012-12-23 23:03:21 +000029784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29785$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029786 fi
29787fi
cristy73bd4a52010-10-05 11:24:23 +000029788 if test "$have_jp2" = 'yes'; then
29789 JP2_DELEGATE_TRUE=
29790 JP2_DELEGATE_FALSE='#'
29791else
29792 JP2_DELEGATE_TRUE='#'
29793 JP2_DELEGATE_FALSE=
29794fi
29795
cristy3ed852e2009-09-05 21:47:34 +000029796
29797
29798
29799#
29800# Check for LCMS delegate library.
29801#
cristy71203402010-06-18 13:12:03 +000029802# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029803
29804# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029805if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029806 withval=$with_lcms; with_lcms=$withval
29807else
29808 with_lcms='yes'
29809fi
29810
cristy71203402010-06-18 13:12:03 +000029811if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029812 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29813fi
29814
cristy71203402010-06-18 13:12:03 +000029815# Disable LCMS2.
29816
29817# Check whether --with-lcms2 was given.
29818if test "${with_lcms2+set}" = set; then :
29819 withval=$with_lcms2; with_lcms2=$withval
29820else
29821 with_lcms2='yes'
29822fi
29823
29824if test "$with_lcms2" != 'yes' ; then
29825 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29826fi
29827
29828have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029829LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029830if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29832$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29834$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29836$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029837 failed=0
29838 passed=0
29839 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029840
29841 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029842 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029843if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029844 have_lcms_header='yes'
29845fi
29846
29847
29848 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029849
29850$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29851
cristy71203402010-06-18 13:12:03 +000029852 passed=`expr $passed + 1`
29853 fi
29854
29855 # Check for <lcms2/lcms2.h)
29856 if test "$have_lcms_header" != 'yes'; then
29857 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 +000029858if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029859 have_lcms_header='yes'
29860fi
29861
29862
cristy71203402010-06-18 13:12:03 +000029863 if test "$have_lcms_header" = 'yes'; then
29864 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029865
cristy71203402010-06-18 13:12:03 +000029866$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029867
cristy71203402010-06-18 13:12:03 +000029868 fi
cristyd09bcf92010-03-25 03:04:45 +000029869 fi
cristy71203402010-06-18 13:12:03 +000029870
29871 # Failed to find lcms header?
29872 if test "$have_lcms_header" != 'yes'; then
29873 failed=`expr $failed + 1`
29874 fi
29875
29876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29877$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029878if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029879 $as_echo_n "(cached) " >&6
29880else
29881 ac_check_lib_save_LIBS=$LIBS
29882LIBS="-llcms2 $LIBS"
29883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29884/* end confdefs.h. */
29885
29886/* Override any GCC internal prototype to avoid an error.
29887 Use char because int might match the return type of a GCC
29888 builtin and then its argument prototype would still apply. */
29889#ifdef __cplusplus
29890extern "C"
29891#endif
cristy71203402010-06-18 13:12:03 +000029892char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029893int
29894main ()
29895{
cristy71203402010-06-18 13:12:03 +000029896return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029897 ;
29898 return 0;
29899}
29900_ACEOF
29901if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029902 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029903else
cristy71203402010-06-18 13:12:03 +000029904 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029905fi
29906rm -f core conftest.err conftest.$ac_objext \
29907 conftest$ac_exeext conftest.$ac_ext
29908LIBS=$ac_check_lib_save_LIBS
29909fi
cristy71203402010-06-18 13:12:03 +000029910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29911$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029912if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029913 passed=`expr $passed + 1`
29914else
29915 failed=`expr $failed + 1`
29916fi
29917
cristy71203402010-06-18 13:12:03 +000029918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29919$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029920 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029921 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29923$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029924 have_lcms2='no (failed tests)'
29925 else
29926 LCMS_LIBS='-llcms2'
29927 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29929$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029930 have_lcms2='yes'
29931 fi
cristyd09bcf92010-03-25 03:04:45 +000029932 else
cristyad38abe2012-12-23 23:03:21 +000029933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29934$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029935 fi
29936fi
29937
cristy71203402010-06-18 13:12:03 +000029938#
29939# Check for LCMS v1 (1.11 or later)
29940#
29941if test $have_lcms2 = 'yes'; then
29942 with_lcms='no'
29943fi
29944
29945have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029946if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29948$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29950$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29952$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029953 failed=0
29954 passed=0
29955 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029956
29957 # Check for <lcms.h>
29958 if test "$have_lcms_header" != 'yes'; then
29959 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029960if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029961 have_lcms_header='yes'
29962fi
29963
29964
cristy71203402010-06-18 13:12:03 +000029965 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029966 passed=`expr $passed + 1`
29967
cristy8b350f62009-11-15 23:12:43 +000029968$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029969
cristy71203402010-06-18 13:12:03 +000029970 fi
29971 fi
29972
29973 # Check for <lcms/lcms.h>
29974 if test "$have_lcms_header" != 'yes'; then
29975 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 +000029976if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029977 have_lcms_header='yes'
29978fi
29979
29980
cristy71203402010-06-18 13:12:03 +000029981 if test "$have_lcms_header" = 'yes'; then
29982 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029983
cristy8b350f62009-11-15 23:12:43 +000029984$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029985
cristy71203402010-06-18 13:12:03 +000029986 fi
cristy3ed852e2009-09-05 21:47:34 +000029987 fi
cristy71203402010-06-18 13:12:03 +000029988
29989 # Failed to find lcms header?
29990 if test "$have_lcms_header" != 'yes'; then
29991 failed=`expr $failed + 1`
29992 fi
29993
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29995$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029996if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029997 $as_echo_n "(cached) " >&6
29998else
29999 ac_check_lib_save_LIBS=$LIBS
30000LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030002/* end confdefs.h. */
30003
30004/* Override any GCC internal prototype to avoid an error.
30005 Use char because int might match the return type of a GCC
30006 builtin and then its argument prototype would still apply. */
30007#ifdef __cplusplus
30008extern "C"
30009#endif
cristy71203402010-06-18 13:12:03 +000030010char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030011int
30012main ()
30013{
cristy71203402010-06-18 13:12:03 +000030014return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030015 ;
30016 return 0;
30017}
30018_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030019if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030020 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030021else
cristy71203402010-06-18 13:12:03 +000030022 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030023fi
cristy8b350f62009-11-15 23:12:43 +000030024rm -f core conftest.err conftest.$ac_objext \
30025 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030026LIBS=$ac_check_lib_save_LIBS
30027fi
cristy71203402010-06-18 13:12:03 +000030028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30029$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030030if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030031 passed=`expr $passed + 1`
30032else
30033 failed=`expr $failed + 1`
30034fi
30035
cristy8b350f62009-11-15 23:12:43 +000030036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030037$as_echo_n "checking if LCMS package is complete... " >&6; }
30038 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030039 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30041$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030042 have_lcms='no (failed tests)'
30043 else
30044 LCMS_LIBS='-llcms'
30045 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30047$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030048 have_lcms='yes'
30049 fi
cristy3ed852e2009-09-05 21:47:34 +000030050 else
cristyad38abe2012-12-23 23:03:21 +000030051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30052$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030053 fi
30054fi
cristy71203402010-06-18 13:12:03 +000030055
cristy73bd4a52010-10-05 11:24:23 +000030056 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30057 LCMS_DELEGATE_TRUE=
30058 LCMS_DELEGATE_FALSE='#'
30059else
30060 LCMS_DELEGATE_TRUE='#'
30061 LCMS_DELEGATE_FALSE=
30062fi
30063
cristy71203402010-06-18 13:12:03 +000030064if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30065
30066$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30067
30068fi
30069
cristy3ed852e2009-09-05 21:47:34 +000030070
30071
30072
30073#
30074# Check for the LQR (Liquid Rescale) delegate library.
30075#
30076
30077# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030078if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030079 withval=$with_lqr; with_lqr=$withval
30080else
30081 with_lqr='yes'
30082fi
30083
30084
30085if test "$with_lqr" != 'yes'; then
30086 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30087fi
30088
30089have_lqr='no'
30090LQR_CFLAGS=""
30091LQR_LIBS=""
30092LQR_PKG=""
30093if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30095$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030096
30097pkg_failed=no
30098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30099$as_echo_n "checking for LQR... " >&6; }
30100
30101if test -n "$LQR_CFLAGS"; then
30102 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30103 elif test -n "$PKG_CONFIG"; then
30104 if test -n "$PKG_CONFIG" && \
30105 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30106 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30107 ac_status=$?
30108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30109 test $ac_status = 0; }; then
30110 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30111else
30112 pkg_failed=yes
30113fi
30114 else
30115 pkg_failed=untried
30116fi
30117if test -n "$LQR_LIBS"; then
30118 pkg_cv_LQR_LIBS="$LQR_LIBS"
30119 elif test -n "$PKG_CONFIG"; then
30120 if test -n "$PKG_CONFIG" && \
30121 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30122 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30123 ac_status=$?
30124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30125 test $ac_status = 0; }; then
30126 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30127else
30128 pkg_failed=yes
30129fi
30130 else
30131 pkg_failed=untried
30132fi
30133
30134
30135
30136if test $pkg_failed = yes; then
30137
30138if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30139 _pkg_short_errors_supported=yes
30140else
30141 _pkg_short_errors_supported=no
30142fi
30143 if test $_pkg_short_errors_supported = yes; then
30144 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30145 else
30146 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30147 fi
30148 # Put the nasty error message in config.log where it belongs
30149 echo "$LQR_PKG_ERRORS" >&5
30150
30151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30152$as_echo "no" >&6; }
30153 have_lqr=no
30154elif test $pkg_failed = untried; then
30155 have_lqr=no
30156else
30157 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30158 LQR_LIBS=$pkg_cv_LQR_LIBS
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30160$as_echo "yes" >&6; }
30161 have_lqr=yes
30162fi
cristyad38abe2012-12-23 23:03:21 +000030163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30164$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030165fi
30166
30167if test "$have_lqr" = 'yes'; then
30168
cristy8b350f62009-11-15 23:12:43 +000030169$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030170
30171 CFLAGS="$LQR_CFLAGS $CFLAGS"
30172fi
30173
cristy73bd4a52010-10-05 11:24:23 +000030174 if test "$have_lqr" = 'yes'; then
30175 LQR_DELEGATE_TRUE=
30176 LQR_DELEGATE_FALSE='#'
30177else
30178 LQR_DELEGATE_TRUE='#'
30179 LQR_DELEGATE_FALSE=
30180fi
30181
cristy3ed852e2009-09-05 21:47:34 +000030182
30183
30184
30185
cristy81beccd2011-10-03 18:17:24 +000030186# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030187
30188# Check whether --with-lzma was given.
30189if test "${with_lzma+set}" = set; then :
30190 withval=$with_lzma; with_lzma=$withval
30191else
30192 with_lzma='yes'
30193fi
30194
cristy81beccd2011-10-03 18:17:24 +000030195if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030196 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30197fi
30198
cristyb94e5002011-11-14 13:20:10 +000030199LZMA_PKG=""
30200if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30202$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030203
30204pkg_failed=no
30205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030206$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030207
30208if test -n "$LZMA_CFLAGS"; then
30209 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30210 elif test -n "$PKG_CONFIG"; then
30211 if test -n "$PKG_CONFIG" && \
30212 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30213 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30214 ac_status=$?
30215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30216 test $ac_status = 0; }; then
30217 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30218else
30219 pkg_failed=yes
30220fi
30221 else
30222 pkg_failed=untried
30223fi
30224if test -n "$LZMA_LIBS"; then
30225 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30226 elif test -n "$PKG_CONFIG"; then
30227 if test -n "$PKG_CONFIG" && \
30228 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30229 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30230 ac_status=$?
30231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30232 test $ac_status = 0; }; then
30233 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30234else
30235 pkg_failed=yes
30236fi
30237 else
30238 pkg_failed=untried
30239fi
30240
30241
30242
30243if test $pkg_failed = yes; then
30244
30245if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30246 _pkg_short_errors_supported=yes
30247else
30248 _pkg_short_errors_supported=no
30249fi
30250 if test $_pkg_short_errors_supported = yes; then
30251 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30252 else
30253 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30254 fi
30255 # Put the nasty error message in config.log where it belongs
30256 echo "$LZMA_PKG_ERRORS" >&5
30257
30258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30259$as_echo "no" >&6; }
30260 have_lzma=no
30261elif test $pkg_failed = untried; then
30262 have_lzma=no
30263else
30264 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30265 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30267$as_echo "yes" >&6; }
30268 have_lzma=yes
30269fi
cristyad38abe2012-12-23 23:03:21 +000030270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30271$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030272fi
30273
cristyb94e5002011-11-14 13:20:10 +000030274if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030275
30276$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30277
cristyc6722092012-10-14 00:19:31 +000030278 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030279 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030280 fi
cristyfbb0ef02010-12-19 02:32:11 +000030281fi
cristyb94e5002011-11-14 13:20:10 +000030282
cristyfbb0ef02010-12-19 02:32:11 +000030283 if test "$have_lzma" = 'yes'; then
30284 LZMA_DELEGATE_TRUE=
30285 LZMA_DELEGATE_FALSE='#'
30286else
30287 LZMA_DELEGATE_TRUE='#'
30288 LZMA_DELEGATE_FALSE=
30289fi
30290
30291
30292
30293
cristyb94e5002011-11-14 13:20:10 +000030294
cristy3ed852e2009-09-05 21:47:34 +000030295#
30296# Check for the OpenEXR delegate library.
30297#
30298
30299# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030300if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030301 withval=$with_openexr; with_openexr=$withval
30302else
30303 with_openexr='yes'
30304fi
30305
30306
30307if test "$with_openexr" != 'yes'; then
30308 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30309fi
30310
30311have_openexr='no'
30312OPENEXR_CFLAGS=""
30313OPENEXR_LIBS=""
30314OPENEXR_PKG=""
30315if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30317$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030318
30319pkg_failed=no
30320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30321$as_echo_n "checking for OPENEXR... " >&6; }
30322
30323if test -n "$OPENEXR_CFLAGS"; then
30324 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30325 elif test -n "$PKG_CONFIG"; then
30326 if test -n "$PKG_CONFIG" && \
30327 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30328 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30329 ac_status=$?
30330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30331 test $ac_status = 0; }; then
30332 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30333else
30334 pkg_failed=yes
30335fi
30336 else
30337 pkg_failed=untried
30338fi
30339if test -n "$OPENEXR_LIBS"; then
30340 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30341 elif test -n "$PKG_CONFIG"; then
30342 if test -n "$PKG_CONFIG" && \
30343 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30344 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30345 ac_status=$?
30346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30347 test $ac_status = 0; }; then
30348 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30349else
30350 pkg_failed=yes
30351fi
30352 else
30353 pkg_failed=untried
30354fi
30355
30356
30357
30358if test $pkg_failed = yes; then
30359
30360if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30361 _pkg_short_errors_supported=yes
30362else
30363 _pkg_short_errors_supported=no
30364fi
30365 if test $_pkg_short_errors_supported = yes; then
30366 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30367 else
30368 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30369 fi
30370 # Put the nasty error message in config.log where it belongs
30371 echo "$OPENEXR_PKG_ERRORS" >&5
30372
30373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30374$as_echo "no" >&6; }
30375 have_openexr=no
30376elif test $pkg_failed = untried; then
30377 have_openexr=no
30378else
30379 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30380 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30382$as_echo "yes" >&6; }
30383 have_openexr=yes
30384fi
cristyad38abe2012-12-23 23:03:21 +000030385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30386$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030387fi
30388
30389if test "$have_openexr" = 'yes'; then
30390
cristy8b350f62009-11-15 23:12:43 +000030391$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030392
cristyc6722092012-10-14 00:19:31 +000030393 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030394 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30395 fi
30396fi
30397
cristy73bd4a52010-10-05 11:24:23 +000030398 if test "$have_openexr" = 'yes'; then
30399 OPENEXR_DELEGATE_TRUE=
30400 OPENEXR_DELEGATE_FALSE='#'
30401else
30402 OPENEXR_DELEGATE_TRUE='#'
30403 OPENEXR_DELEGATE_FALSE=
30404fi
30405
cristy3ed852e2009-09-05 21:47:34 +000030406
30407
30408
30409
30410#
cristy41cbe8a2011-10-27 01:35:18 +000030411# Check for PANGO delegate library.
30412#
30413
30414# Check whether --with-pango was given.
30415if test "${with_pango+set}" = set; then :
30416 withval=$with_pango; with_pango=$withval
30417else
cristyfc3d0222012-02-07 15:05:57 +000030418 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030419fi
30420
30421
30422if test "$with_pango" != 'yes'; then
30423 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30424fi
30425
30426have_pango='no'
cristya054b762012-03-26 23:16:00 +000030427have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030428PANGO_CFLAGS=""
30429PANGO_LIBS=""
30430PANGO_PKG=""
30431if test "x$with_pango" = "xyes"; then
30432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30433$as_echo "-------------------------------------------------------------" >&6; }
30434
30435pkg_failed=no
30436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30437$as_echo_n "checking for PANGO... " >&6; }
30438
30439if test -n "$PANGO_CFLAGS"; then
30440 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30441 elif test -n "$PKG_CONFIG"; then
30442 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030443 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30444 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030445 ac_status=$?
30446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30447 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030448 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030449else
30450 pkg_failed=yes
30451fi
30452 else
30453 pkg_failed=untried
30454fi
30455if test -n "$PANGO_LIBS"; then
30456 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30457 elif test -n "$PKG_CONFIG"; then
30458 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030459 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30460 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030461 ac_status=$?
30462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30463 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030464 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030465else
30466 pkg_failed=yes
30467fi
30468 else
30469 pkg_failed=untried
30470fi
30471
30472
30473
30474if test $pkg_failed = yes; then
30475
30476if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30477 _pkg_short_errors_supported=yes
30478else
30479 _pkg_short_errors_supported=no
30480fi
30481 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030482 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030483 else
cristya054b762012-03-26 23:16:00 +000030484 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030485 fi
30486 # Put the nasty error message in config.log where it belongs
30487 echo "$PANGO_PKG_ERRORS" >&5
30488
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30490$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030491 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030492elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030493 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030494else
30495 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30496 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30498$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030499 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030500fi
30501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30502$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030503
30504pkg_failed=no
30505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30506$as_echo_n "checking for PANGO... " >&6; }
30507
30508if test -n "$PANGO_CFLAGS"; then
30509 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30510 elif test -n "$PKG_CONFIG"; then
30511 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030512 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30513 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030514 ac_status=$?
30515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30516 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030517 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030518else
30519 pkg_failed=yes
30520fi
30521 else
30522 pkg_failed=untried
30523fi
30524if test -n "$PANGO_LIBS"; then
30525 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30526 elif test -n "$PKG_CONFIG"; then
30527 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30529 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030530 ac_status=$?
30531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30532 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030533 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030534else
30535 pkg_failed=yes
30536fi
30537 else
30538 pkg_failed=untried
30539fi
30540
30541
30542
30543if test $pkg_failed = yes; then
30544
30545if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30546 _pkg_short_errors_supported=yes
30547else
30548 _pkg_short_errors_supported=no
30549fi
30550 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030551 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030552 else
cristy2542fc62011-12-06 17:50:25 +000030553 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030554 fi
30555 # Put the nasty error message in config.log where it belongs
30556 echo "$PANGO_PKG_ERRORS" >&5
30557
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30559$as_echo "no" >&6; }
30560 have_pango=no
30561elif test $pkg_failed = untried; then
30562 have_pango=no
30563else
30564 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30565 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30567$as_echo "yes" >&6; }
30568 have_pango=yes
30569fi
30570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30571$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030572fi
30573
30574if test "$have_pango" = 'yes'; then
30575
30576$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30577
cristyc6722092012-10-14 00:19:31 +000030578 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030579 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30580 fi
30581fi
30582
cristya054b762012-03-26 23:16:00 +000030583if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030584
cristya054b762012-03-26 23:16:00 +000030585$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030586
cristyc6722092012-10-14 00:19:31 +000030587 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030588 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030589 fi
30590fi
30591
30592 if test "$have_pango" = 'yes'; then
30593 PANGO_DELEGATE_TRUE=
30594 PANGO_DELEGATE_FALSE='#'
30595else
30596 PANGO_DELEGATE_TRUE='#'
30597 PANGO_DELEGATE_FALSE=
30598fi
30599
cristya054b762012-03-26 23:16:00 +000030600 if test "$have_pangocairo" = 'yes'; then
30601 PANGOCAIRO_DELEGATE_TRUE=
30602 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030603else
cristya054b762012-03-26 23:16:00 +000030604 PANGOCAIRO_DELEGATE_TRUE='#'
30605 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030606fi
30607
30608
30609
30610
30611
30612#
cristy3ed852e2009-09-05 21:47:34 +000030613# Check for PNG delegate library.
30614#
30615
30616# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030617if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030618 withval=$with_png; with_png=$withval
30619else
30620 with_png='yes'
30621fi
30622
30623
30624if test "$with_png" != 'yes'; then
30625 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30626fi
30627
cristy81beccd2011-10-03 18:17:24 +000030628have_png='no'
30629PNG_LIBS=''
30630
30631if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30633$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30635$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30637$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030638 failed=0
30639 passed=0
30640 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30641if test "x$ac_cv_header_png_h" = xyes; then :
30642 passed=`expr $passed + 1`
30643else
30644 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030645fi
30646
cristy81beccd2011-10-03 18:17:24 +000030647
30648
30649 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030650 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030651 if test "$have_png" = 'no' ; then
30652 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030653 pnglib='png'
30654 else
30655 pnglib="png1${var}"
30656 fi
30657
30658# Test for compatible LIBPNG library
30659 failed=0
30660 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030661 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030662 if test "${pnglib}" != 'png' ; then
30663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30664$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30666/* end confdefs.h. */
30667#include <stdio.h>
30668#include <stdlib.h>
30669#include <png.h>
30670
30671int
30672main ()
30673{
30674
30675#if PNG_LIBPNG_VER_MINOR != ${var}
30676#error LIBPNG library must be version 1${var}!
30677Kaboom, Kaboom
30678#endif
30679return 0;
30680
30681 ;
30682 return 0;
30683}
30684_ACEOF
30685if ac_fn_c_try_compile "$LINENO"; then :
30686 ac_cv_libpng_ok='yes'
30687else
30688 ac_cv_libpng_ok='no'
30689fi
30690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30691 if test "$ac_cv_libpng_ok" = 'yes' ; then
30692 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30694$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030695 else
30696 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30698$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030699 fi
30700 else
30701 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30703$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030704 fi
30705 fi
30706
30707 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030708 if test "1${var}" = '17' ; then
30709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30710$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30711if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30712 $as_echo_n "(cached) " >&6
30713else
30714 ac_check_lib_save_LIBS=$LIBS
30715LIBS="-lpng17 $LIBS"
30716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30717/* end confdefs.h. */
30718
30719/* Override any GCC internal prototype to avoid an error.
30720 Use char because int might match the return type of a GCC
30721 builtin and then its argument prototype would still apply. */
30722#ifdef __cplusplus
30723extern "C"
30724#endif
30725char png_get_io_ptr ();
30726int
30727main ()
30728{
30729return png_get_io_ptr ();
30730 ;
30731 return 0;
30732}
30733_ACEOF
30734if ac_fn_c_try_link "$LINENO"; then :
30735 ac_cv_lib_png17_png_get_io_ptr=yes
30736else
30737 ac_cv_lib_png17_png_get_io_ptr=no
30738fi
30739rm -f core conftest.err conftest.$ac_objext \
30740 conftest$ac_exeext conftest.$ac_ext
30741LIBS=$ac_check_lib_save_LIBS
30742fi
30743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30744$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30745if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30746 passed=`expr $passed + 1`
30747else
30748 failed=`expr $failed + 1`
30749fi
30750
30751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30752$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30753if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30754 $as_echo_n "(cached) " >&6
30755else
30756 ac_check_lib_save_LIBS=$LIBS
30757LIBS="-lpng17 $LIBS"
30758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30759/* end confdefs.h. */
30760
30761/* Override any GCC internal prototype to avoid an error.
30762 Use char because int might match the return type of a GCC
30763 builtin and then its argument prototype would still apply. */
30764#ifdef __cplusplus
30765extern "C"
30766#endif
30767char png_longjmp ();
30768int
30769main ()
30770{
30771return png_longjmp ();
30772 ;
30773 return 0;
30774}
30775_ACEOF
30776if ac_fn_c_try_link "$LINENO"; then :
30777 ac_cv_lib_png17_png_longjmp=yes
30778else
30779 ac_cv_lib_png17_png_longjmp=no
30780fi
30781rm -f core conftest.err conftest.$ac_objext \
30782 conftest$ac_exeext conftest.$ac_ext
30783LIBS=$ac_check_lib_save_LIBS
30784fi
30785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30786$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30787if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30788 passed=`expr $passed + 1`
30789else
30790 failed=`expr $failed + 1`
30791fi
30792
30793 fi
30794 if test "1${var}" = '16' ; then
30795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30796$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30797if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30798 $as_echo_n "(cached) " >&6
30799else
30800 ac_check_lib_save_LIBS=$LIBS
30801LIBS="-lpng16 $LIBS"
30802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30803/* end confdefs.h. */
30804
30805/* Override any GCC internal prototype to avoid an error.
30806 Use char because int might match the return type of a GCC
30807 builtin and then its argument prototype would still apply. */
30808#ifdef __cplusplus
30809extern "C"
30810#endif
30811char png_get_io_ptr ();
30812int
30813main ()
30814{
30815return png_get_io_ptr ();
30816 ;
30817 return 0;
30818}
30819_ACEOF
30820if ac_fn_c_try_link "$LINENO"; then :
30821 ac_cv_lib_png16_png_get_io_ptr=yes
30822else
30823 ac_cv_lib_png16_png_get_io_ptr=no
30824fi
30825rm -f core conftest.err conftest.$ac_objext \
30826 conftest$ac_exeext conftest.$ac_ext
30827LIBS=$ac_check_lib_save_LIBS
30828fi
30829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30830$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30831if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30832 passed=`expr $passed + 1`
30833else
30834 failed=`expr $failed + 1`
30835fi
30836
30837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30838$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30839if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30840 $as_echo_n "(cached) " >&6
30841else
30842 ac_check_lib_save_LIBS=$LIBS
30843LIBS="-lpng16 $LIBS"
30844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30845/* end confdefs.h. */
30846
30847/* Override any GCC internal prototype to avoid an error.
30848 Use char because int might match the return type of a GCC
30849 builtin and then its argument prototype would still apply. */
30850#ifdef __cplusplus
30851extern "C"
30852#endif
30853char png_longjmp ();
30854int
30855main ()
30856{
30857return png_longjmp ();
30858 ;
30859 return 0;
30860}
30861_ACEOF
30862if ac_fn_c_try_link "$LINENO"; then :
30863 ac_cv_lib_png16_png_longjmp=yes
30864else
30865 ac_cv_lib_png16_png_longjmp=no
30866fi
30867rm -f core conftest.err conftest.$ac_objext \
30868 conftest$ac_exeext conftest.$ac_ext
30869LIBS=$ac_check_lib_save_LIBS
30870fi
30871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
30872$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
30873if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
30874 passed=`expr $passed + 1`
30875else
30876 failed=`expr $failed + 1`
30877fi
30878
30879 fi
cristy81beccd2011-10-03 18:17:24 +000030880 if test "1${var}" = '15' ; then
30881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30882$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30883if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30884 $as_echo_n "(cached) " >&6
30885else
30886 ac_check_lib_save_LIBS=$LIBS
30887LIBS="-lpng15 $LIBS"
30888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30889/* end confdefs.h. */
30890
30891/* Override any GCC internal prototype to avoid an error.
30892 Use char because int might match the return type of a GCC
30893 builtin and then its argument prototype would still apply. */
30894#ifdef __cplusplus
30895extern "C"
30896#endif
30897char png_get_io_ptr ();
30898int
30899main ()
30900{
30901return png_get_io_ptr ();
30902 ;
30903 return 0;
30904}
30905_ACEOF
30906if ac_fn_c_try_link "$LINENO"; then :
30907 ac_cv_lib_png15_png_get_io_ptr=yes
30908else
30909 ac_cv_lib_png15_png_get_io_ptr=no
30910fi
30911rm -f core conftest.err conftest.$ac_objext \
30912 conftest$ac_exeext conftest.$ac_ext
30913LIBS=$ac_check_lib_save_LIBS
30914fi
30915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30916$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30917if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30918 passed=`expr $passed + 1`
30919else
30920 failed=`expr $failed + 1`
30921fi
30922
30923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30924$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30925if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30926 $as_echo_n "(cached) " >&6
30927else
30928 ac_check_lib_save_LIBS=$LIBS
30929LIBS="-lpng15 $LIBS"
30930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30931/* end confdefs.h. */
30932
30933/* Override any GCC internal prototype to avoid an error.
30934 Use char because int might match the return type of a GCC
30935 builtin and then its argument prototype would still apply. */
30936#ifdef __cplusplus
30937extern "C"
30938#endif
30939char png_longjmp ();
30940int
30941main ()
30942{
30943return png_longjmp ();
30944 ;
30945 return 0;
30946}
30947_ACEOF
30948if ac_fn_c_try_link "$LINENO"; then :
30949 ac_cv_lib_png15_png_longjmp=yes
30950else
30951 ac_cv_lib_png15_png_longjmp=no
30952fi
30953rm -f core conftest.err conftest.$ac_objext \
30954 conftest$ac_exeext conftest.$ac_ext
30955LIBS=$ac_check_lib_save_LIBS
30956fi
30957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30958$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30959if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30960 passed=`expr $passed + 1`
30961else
30962 failed=`expr $failed + 1`
30963fi
30964
30965 fi
30966 if test "1${var}" = '14' ; then
30967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30968$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30969if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30970 $as_echo_n "(cached) " >&6
30971else
30972 ac_check_lib_save_LIBS=$LIBS
30973LIBS="-lpng14 $LIBS"
30974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30975/* end confdefs.h. */
30976
30977/* Override any GCC internal prototype to avoid an error.
30978 Use char because int might match the return type of a GCC
30979 builtin and then its argument prototype would still apply. */
30980#ifdef __cplusplus
30981extern "C"
30982#endif
30983char png_get_io_ptr ();
30984int
30985main ()
30986{
30987return png_get_io_ptr ();
30988 ;
30989 return 0;
30990}
30991_ACEOF
30992if ac_fn_c_try_link "$LINENO"; then :
30993 ac_cv_lib_png14_png_get_io_ptr=yes
30994else
30995 ac_cv_lib_png14_png_get_io_ptr=no
30996fi
30997rm -f core conftest.err conftest.$ac_objext \
30998 conftest$ac_exeext conftest.$ac_ext
30999LIBS=$ac_check_lib_save_LIBS
31000fi
31001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31002$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31003if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31004 passed=`expr $passed + 1`
31005else
31006 failed=`expr $failed + 1`
31007fi
31008
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31010$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31011if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31012 $as_echo_n "(cached) " >&6
31013else
31014 ac_check_lib_save_LIBS=$LIBS
31015LIBS="-lpng14 $LIBS"
31016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31017/* end confdefs.h. */
31018
31019/* Override any GCC internal prototype to avoid an error.
31020 Use char because int might match the return type of a GCC
31021 builtin and then its argument prototype would still apply. */
31022#ifdef __cplusplus
31023extern "C"
31024#endif
31025char png_get_io_state ();
31026int
31027main ()
31028{
31029return png_get_io_state ();
31030 ;
31031 return 0;
31032}
31033_ACEOF
31034if ac_fn_c_try_link "$LINENO"; then :
31035 ac_cv_lib_png14_png_get_io_state=yes
31036else
31037 ac_cv_lib_png14_png_get_io_state=no
31038fi
31039rm -f core conftest.err conftest.$ac_objext \
31040 conftest$ac_exeext conftest.$ac_ext
31041LIBS=$ac_check_lib_save_LIBS
31042fi
31043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31044$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31045if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31046 passed=`expr $passed + 1`
31047else
31048 failed=`expr $failed + 1`
31049fi
31050
31051 fi
31052 if test "1${var}" = '12' ; then
31053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31054$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31055if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31056 $as_echo_n "(cached) " >&6
31057else
31058 ac_check_lib_save_LIBS=$LIBS
31059LIBS="-lpng12 $LIBS"
31060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31061/* end confdefs.h. */
31062
31063/* Override any GCC internal prototype to avoid an error.
31064 Use char because int might match the return type of a GCC
31065 builtin and then its argument prototype would still apply. */
31066#ifdef __cplusplus
31067extern "C"
31068#endif
31069char png_get_io_ptr ();
31070int
31071main ()
31072{
31073return png_get_io_ptr ();
31074 ;
31075 return 0;
31076}
31077_ACEOF
31078if ac_fn_c_try_link "$LINENO"; then :
31079 ac_cv_lib_png12_png_get_io_ptr=yes
31080else
31081 ac_cv_lib_png12_png_get_io_ptr=no
31082fi
31083rm -f core conftest.err conftest.$ac_objext \
31084 conftest$ac_exeext conftest.$ac_ext
31085LIBS=$ac_check_lib_save_LIBS
31086fi
31087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31088$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31089if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31090 passed=`expr $passed + 1`
31091else
31092 failed=`expr $failed + 1`
31093fi
31094
31095 fi
31096 if test "1${var}" = '1' ; then
31097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31098$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31099if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31100 $as_echo_n "(cached) " >&6
31101else
31102 ac_check_lib_save_LIBS=$LIBS
31103LIBS="-lpng $LIBS"
31104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31105/* end confdefs.h. */
31106
31107/* Override any GCC internal prototype to avoid an error.
31108 Use char because int might match the return type of a GCC
31109 builtin and then its argument prototype would still apply. */
31110#ifdef __cplusplus
31111extern "C"
31112#endif
31113char png_get_io_ptr ();
31114int
31115main ()
31116{
31117return png_get_io_ptr ();
31118 ;
31119 return 0;
31120}
31121_ACEOF
31122if ac_fn_c_try_link "$LINENO"; then :
31123 ac_cv_lib_png_png_get_io_ptr=yes
31124else
31125 ac_cv_lib_png_png_get_io_ptr=no
31126fi
31127rm -f core conftest.err conftest.$ac_objext \
31128 conftest$ac_exeext conftest.$ac_ext
31129LIBS=$ac_check_lib_save_LIBS
31130fi
31131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31132$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31133if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31134 passed=`expr $passed + 1`
31135else
31136 failed=`expr $failed + 1`
31137fi
31138
31139 fi
31140 if test $passed -gt 0 -a $failed -le 0 ; then
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31142$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31143 if test $passed -gt 0 ; then
31144 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31146$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031147 have_png='no (failed tests)'
31148 else
31149 PNG_LIBS="-l${pnglib}"
31150 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031151
cristy8b350f62009-11-15 23:12:43 +000031152$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031153
cristyad38abe2012-12-23 23:03:21 +000031154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31155$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031156 have_png='yes'
31157 fi
31158 fi
31159 fi
31160 fi
31161 fi
31162 done
31163 fi
cristy3ed852e2009-09-05 21:47:34 +000031164fi
cristy64877302011-08-23 19:10:31 +000031165
cristy73bd4a52010-10-05 11:24:23 +000031166 if test "$have_png" = 'yes'; then
31167 PNG_DELEGATE_TRUE=
31168 PNG_DELEGATE_FALSE='#'
31169else
31170 PNG_DELEGATE_TRUE='#'
31171 PNG_DELEGATE_FALSE=
31172fi
31173
cristy3ed852e2009-09-05 21:47:34 +000031174
cristy50d3f5c2011-09-10 20:09:06 +000031175
cristy3ed852e2009-09-05 21:47:34 +000031176
31177
31178#
31179# Check for RSVG delegate library.
31180#
31181
31182# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031183if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031184 withval=$with_rsvg; with_rsvg=$withval
31185else
cristy1164d5f2012-08-15 00:58:25 +000031186 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031187fi
31188
31189
31190if test "$with_rsvg" != 'yes'; then
31191 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31192fi
31193
31194have_rsvg='no'
31195have_cairo='no'
31196RSVG_CFLAGS=""
31197RSVG_LIBS=""
31198RSVG_PKG=""
31199if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31201$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031202
31203pkg_failed=no
31204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31205$as_echo_n "checking for RSVG... " >&6; }
31206
31207if test -n "$RSVG_CFLAGS"; then
31208 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31209 elif test -n "$PKG_CONFIG"; then
31210 if test -n "$PKG_CONFIG" && \
31211 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31212 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31213 ac_status=$?
31214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31215 test $ac_status = 0; }; then
31216 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31217else
31218 pkg_failed=yes
31219fi
31220 else
31221 pkg_failed=untried
31222fi
31223if test -n "$RSVG_LIBS"; then
31224 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31225 elif test -n "$PKG_CONFIG"; then
31226 if test -n "$PKG_CONFIG" && \
31227 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31228 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31229 ac_status=$?
31230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31231 test $ac_status = 0; }; then
31232 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31233else
31234 pkg_failed=yes
31235fi
31236 else
31237 pkg_failed=untried
31238fi
31239
31240
31241
31242if test $pkg_failed = yes; then
31243
31244if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31245 _pkg_short_errors_supported=yes
31246else
31247 _pkg_short_errors_supported=no
31248fi
31249 if test $_pkg_short_errors_supported = yes; then
31250 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31251 else
31252 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31253 fi
31254 # Put the nasty error message in config.log where it belongs
31255 echo "$RSVG_PKG_ERRORS" >&5
31256
31257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31258$as_echo "no" >&6; }
31259 have_rsvg=no
31260elif test $pkg_failed = untried; then
31261 have_rsvg=no
31262else
31263 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31264 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31266$as_echo "yes" >&6; }
31267 have_rsvg=yes
31268fi
cristyad38abe2012-12-23 23:03:21 +000031269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31270$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031271
31272pkg_failed=no
31273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31274$as_echo_n "checking for CAIRO_SVG... " >&6; }
31275
31276if test -n "$CAIRO_SVG_CFLAGS"; then
31277 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31278 elif test -n "$PKG_CONFIG"; then
31279 if test -n "$PKG_CONFIG" && \
31280 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31281 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31282 ac_status=$?
31283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31284 test $ac_status = 0; }; then
31285 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31286else
31287 pkg_failed=yes
31288fi
31289 else
31290 pkg_failed=untried
31291fi
31292if test -n "$CAIRO_SVG_LIBS"; then
31293 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31294 elif test -n "$PKG_CONFIG"; then
31295 if test -n "$PKG_CONFIG" && \
31296 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31297 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31298 ac_status=$?
31299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31300 test $ac_status = 0; }; then
31301 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31302else
31303 pkg_failed=yes
31304fi
31305 else
31306 pkg_failed=untried
31307fi
31308
31309
31310
31311if test $pkg_failed = yes; then
31312
31313if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31314 _pkg_short_errors_supported=yes
31315else
31316 _pkg_short_errors_supported=no
31317fi
31318 if test $_pkg_short_errors_supported = yes; then
31319 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31320 else
31321 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31322 fi
31323 # Put the nasty error message in config.log where it belongs
31324 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31325
31326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31327$as_echo "no" >&6; }
31328 have_cairo=no
31329elif test $pkg_failed = untried; then
31330 have_cairo=no
31331else
31332 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31333 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31335$as_echo "yes" >&6; }
31336 have_cairo=yes
31337fi
cristyad38abe2012-12-23 23:03:21 +000031338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31339$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031340fi
31341
31342if test "$have_rsvg" = 'yes'; then
31343
cristy8b350f62009-11-15 23:12:43 +000031344$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031345
cristyc6722092012-10-14 00:19:31 +000031346 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031347 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31348 fi
31349fi
31350
31351if test "$have_cairo" = 'yes'; then
31352
cristy8b350f62009-11-15 23:12:43 +000031353$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031354
cristyc6722092012-10-14 00:19:31 +000031355 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031356 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31357 fi
31358fi
31359
cristy73bd4a52010-10-05 11:24:23 +000031360 if test "$have_rsvg" = 'yes'; then
31361 RSVG_DELEGATE_TRUE=
31362 RSVG_DELEGATE_FALSE='#'
31363else
31364 RSVG_DELEGATE_TRUE='#'
31365 RSVG_DELEGATE_FALSE=
31366fi
31367
31368 if test "$have_cairo" = 'yes'; then
31369 CAIRO_DELEGATE_TRUE=
31370 CAIRO_DELEGATE_FALSE='#'
31371else
31372 CAIRO_DELEGATE_TRUE='#'
31373 CAIRO_DELEGATE_FALSE=
31374fi
31375
cristy3ed852e2009-09-05 21:47:34 +000031376
31377
31378
31379
31380#
31381# Check for TIFF delegate library.
31382#
31383
31384# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031385if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031386 withval=$with_tiff; with_tiff=$withval
31387else
31388 with_tiff='yes'
31389fi
31390
31391
31392if test "$with_tiff" != 'yes'; then
31393 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31394fi
31395
31396have_tiff='no'
31397TIFF_LIBS=''
31398if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31400$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031402$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31404$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031405 failed=0
31406 passed=0
cristy8b350f62009-11-15 23:12:43 +000031407 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031408if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031409 passed=`expr $passed + 1`
31410else
31411 failed=`expr $failed + 1`
31412fi
31413
31414
cristy8b350f62009-11-15 23:12:43 +000031415 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031416if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031417 passed=`expr $passed + 1`
31418else
31419 failed=`expr $failed + 1`
31420fi
31421
31422
cristy8b350f62009-11-15 23:12:43 +000031423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031424$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031425if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031426 $as_echo_n "(cached) " >&6
31427else
31428 ac_check_lib_save_LIBS=$LIBS
31429LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031431/* end confdefs.h. */
31432
31433/* Override any GCC internal prototype to avoid an error.
31434 Use char because int might match the return type of a GCC
31435 builtin and then its argument prototype would still apply. */
31436#ifdef __cplusplus
31437extern "C"
31438#endif
31439char TIFFOpen ();
31440int
31441main ()
31442{
31443return TIFFOpen ();
31444 ;
31445 return 0;
31446}
31447_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031448if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031449 ac_cv_lib_tiff_TIFFOpen=yes
31450else
cristy8b350f62009-11-15 23:12:43 +000031451 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031452fi
cristy8b350f62009-11-15 23:12:43 +000031453rm -f core conftest.err conftest.$ac_objext \
31454 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031455LIBS=$ac_check_lib_save_LIBS
31456fi
cristy8b350f62009-11-15 23:12:43 +000031457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031458$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031459if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031460 passed=`expr $passed + 1`
31461else
31462 failed=`expr $failed + 1`
31463fi
31464
cristy8b350f62009-11-15 23:12:43 +000031465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031466$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031467if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031468 $as_echo_n "(cached) " >&6
31469else
31470 ac_check_lib_save_LIBS=$LIBS
31471LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031473/* end confdefs.h. */
31474
31475/* Override any GCC internal prototype to avoid an error.
31476 Use char because int might match the return type of a GCC
31477 builtin and then its argument prototype would still apply. */
31478#ifdef __cplusplus
31479extern "C"
31480#endif
31481char TIFFClientOpen ();
31482int
31483main ()
31484{
31485return TIFFClientOpen ();
31486 ;
31487 return 0;
31488}
31489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031490if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031491 ac_cv_lib_tiff_TIFFClientOpen=yes
31492else
cristy8b350f62009-11-15 23:12:43 +000031493 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031494fi
cristy8b350f62009-11-15 23:12:43 +000031495rm -f core conftest.err conftest.$ac_objext \
31496 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031497LIBS=$ac_check_lib_save_LIBS
31498fi
cristy8b350f62009-11-15 23:12:43 +000031499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031500$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031501if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031502 passed=`expr $passed + 1`
31503else
31504 failed=`expr $failed + 1`
31505fi
31506
cristy8b350f62009-11-15 23:12:43 +000031507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031508$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031509if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031510 $as_echo_n "(cached) " >&6
31511else
31512 ac_check_lib_save_LIBS=$LIBS
31513LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031515/* end confdefs.h. */
31516
31517/* Override any GCC internal prototype to avoid an error.
31518 Use char because int might match the return type of a GCC
31519 builtin and then its argument prototype would still apply. */
31520#ifdef __cplusplus
31521extern "C"
31522#endif
31523char TIFFIsByteSwapped ();
31524int
31525main ()
31526{
31527return TIFFIsByteSwapped ();
31528 ;
31529 return 0;
31530}
31531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031532if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031533 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31534else
cristy8b350f62009-11-15 23:12:43 +000031535 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031536fi
cristy8b350f62009-11-15 23:12:43 +000031537rm -f core conftest.err conftest.$ac_objext \
31538 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031539LIBS=$ac_check_lib_save_LIBS
31540fi
cristy8b350f62009-11-15 23:12:43 +000031541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031542$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031543if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031544 passed=`expr $passed + 1`
31545else
31546 failed=`expr $failed + 1`
31547fi
31548
cristy8b350f62009-11-15 23:12:43 +000031549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031550$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031551if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031552 $as_echo_n "(cached) " >&6
31553else
31554 ac_check_lib_save_LIBS=$LIBS
31555LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031557/* end confdefs.h. */
31558
31559/* Override any GCC internal prototype to avoid an error.
31560 Use char because int might match the return type of a GCC
31561 builtin and then its argument prototype would still apply. */
31562#ifdef __cplusplus
31563extern "C"
31564#endif
31565char TIFFReadRGBATile ();
31566int
31567main ()
31568{
31569return TIFFReadRGBATile ();
31570 ;
31571 return 0;
31572}
31573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031574if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031575 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31576else
cristy8b350f62009-11-15 23:12:43 +000031577 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031578fi
cristy8b350f62009-11-15 23:12:43 +000031579rm -f core conftest.err conftest.$ac_objext \
31580 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031581LIBS=$ac_check_lib_save_LIBS
31582fi
cristy8b350f62009-11-15 23:12:43 +000031583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031584$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031585if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031586 passed=`expr $passed + 1`
31587else
31588 failed=`expr $failed + 1`
31589fi
31590
cristy8b350f62009-11-15 23:12:43 +000031591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031592$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031593if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031594 $as_echo_n "(cached) " >&6
31595else
31596 ac_check_lib_save_LIBS=$LIBS
31597LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031599/* end confdefs.h. */
31600
31601/* Override any GCC internal prototype to avoid an error.
31602 Use char because int might match the return type of a GCC
31603 builtin and then its argument prototype would still apply. */
31604#ifdef __cplusplus
31605extern "C"
31606#endif
31607char TIFFReadRGBAStrip ();
31608int
31609main ()
31610{
31611return TIFFReadRGBAStrip ();
31612 ;
31613 return 0;
31614}
31615_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031616if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031617 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31618else
cristy8b350f62009-11-15 23:12:43 +000031619 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031620fi
cristy8b350f62009-11-15 23:12:43 +000031621rm -f core conftest.err conftest.$ac_objext \
31622 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031623LIBS=$ac_check_lib_save_LIBS
31624fi
cristy8b350f62009-11-15 23:12:43 +000031625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031626$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031627if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031628 passed=`expr $passed + 1`
31629else
31630 failed=`expr $failed + 1`
31631fi
31632
cristy8b350f62009-11-15 23:12:43 +000031633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031634$as_echo_n "checking if TIFF package is complete... " >&6; }
31635 if test $passed -gt 0; then
31636 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31638$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031639 have_tiff='no (failed tests)'
31640 else
31641 TIFF_LIBS='-ltiff'
31642 LIBS="$TIFF_LIBS $LIBS"
31643
cristy8b350f62009-11-15 23:12:43 +000031644$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031645
cristyad38abe2012-12-23 23:03:21 +000031646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31647$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031648 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031649 for ac_header in tiffconf.h
31650do :
31651 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031652if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031653 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031654#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031655_ACEOF
31656
31657fi
31658
31659done
31660
cristy8b350f62009-11-15 23:12:43 +000031661 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031662 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31663 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31664 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031665do :
31666 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31667ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031668if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031669 cat >>confdefs.h <<_ACEOF
31670#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31671_ACEOF
31672
31673fi
31674done
31675
31676 fi
31677 else
cristyad38abe2012-12-23 23:03:21 +000031678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31679$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031680 fi
31681fi
cristy73bd4a52010-10-05 11:24:23 +000031682 if test "$have_tiff" = 'yes'; then
31683 TIFF_DELEGATE_TRUE=
31684 TIFF_DELEGATE_FALSE='#'
31685else
31686 TIFF_DELEGATE_TRUE='#'
31687 TIFF_DELEGATE_FALSE=
31688fi
31689
cristy3ed852e2009-09-05 21:47:34 +000031690
31691
31692
31693#
cristyb1860752011-03-14 00:27:46 +000031694# Check for WEBP delegate library.
31695#
31696
31697# Check whether --with-webp was given.
31698if test "${with_webp+set}" = set; then :
31699 withval=$with_webp; with_webp=$withval
31700else
31701 with_webp='yes'
31702fi
31703
31704
31705if test "$with_webp" != 'yes'; then
31706 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31707fi
31708
31709have_webp='no'
31710WEBP_LIBS=''
31711if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31713$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31715$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31717$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031718 failed=0
31719 passed=0
31720 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31721if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31722 passed=`expr $passed + 1`
31723else
31724 failed=`expr $failed + 1`
31725fi
31726
31727
31728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31729$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31730if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31731 $as_echo_n "(cached) " >&6
31732else
31733 ac_check_lib_save_LIBS=$LIBS
31734LIBS="-lwebp $LIBS"
31735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31736/* end confdefs.h. */
31737
31738/* Override any GCC internal prototype to avoid an error.
31739 Use char because int might match the return type of a GCC
31740 builtin and then its argument prototype would still apply. */
31741#ifdef __cplusplus
31742extern "C"
31743#endif
31744char WebPDecodeRGB ();
31745int
31746main ()
31747{
31748return WebPDecodeRGB ();
31749 ;
31750 return 0;
31751}
31752_ACEOF
31753if ac_fn_c_try_link "$LINENO"; then :
31754 ac_cv_lib_webp_WebPDecodeRGB=yes
31755else
31756 ac_cv_lib_webp_WebPDecodeRGB=no
31757fi
31758rm -f core conftest.err conftest.$ac_objext \
31759 conftest$ac_exeext conftest.$ac_ext
31760LIBS=$ac_check_lib_save_LIBS
31761fi
31762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31763$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31764if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31765 passed=`expr $passed + 1`
31766else
31767 failed=`expr $failed + 1`
31768fi
31769
31770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31771$as_echo_n "checking if WEBP package is complete... " >&6; }
31772 if test $passed -gt 0; then
31773 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31775$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031776 have_webp='no (failed tests)'
31777 else
31778 WEBP_LIBS='-lwebp'
31779 LIBS="$WEBP_LIBS $LIBS"
31780
31781$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31782
cristyad38abe2012-12-23 23:03:21 +000031783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31784$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031785 have_webp='yes'
31786 fi
31787 else
cristyad38abe2012-12-23 23:03:21 +000031788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31789$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031790 fi
31791fi
31792 if test "$have_webp" = 'yes'; then
31793 WEBP_DELEGATE_TRUE=
31794 WEBP_DELEGATE_FALSE='#'
31795else
31796 WEBP_DELEGATE_TRUE='#'
31797 WEBP_DELEGATE_FALSE=
31798fi
31799
31800
31801
31802
31803#
cristy3ed852e2009-09-05 21:47:34 +000031804# Set Windows font directory.
31805#
31806
31807# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031808if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031809 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31810else
31811 with_windows_font_dir=''
31812fi
31813
31814if test "$with_windows_font_dir" != '' ; then
31815 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31816fi
31817
31818
31819#
31820# Check for WMF delegate library.
31821#
31822
31823# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031824if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031825 withval=$with_wmf; with_wmf=$withval
31826else
cristyfc3d0222012-02-07 15:05:57 +000031827 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031828fi
31829
31830
31831if test "$with_wmf" != 'yes'; then
31832 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31833fi
31834
31835have_wmf='no'
31836WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031837WMF_LIBS_DEPS=''
31838OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031839if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31841$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031843$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31845$as_echo "" >&6; }
31846 have_libwmf='no'
31847 have_libwmflite='no'
31848 have_libwmf_ipa_h='no'
31849
31850 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31851"
31852if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31853 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031854fi
31855
31856
cristy03f7cf92011-12-15 01:40:41 +000031857 if test "$have_libwmf_ipa_h" = 'yes'; then
31858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31859$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31860if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031861 $as_echo_n "(cached) " >&6
31862else
31863 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031864LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031866/* end confdefs.h. */
31867
31868/* Override any GCC internal prototype to avoid an error.
31869 Use char because int might match the return type of a GCC
31870 builtin and then its argument prototype would still apply. */
31871#ifdef __cplusplus
31872extern "C"
31873#endif
cristy03f7cf92011-12-15 01:40:41 +000031874char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031875int
31876main ()
31877{
cristy03f7cf92011-12-15 01:40:41 +000031878return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031879 ;
31880 return 0;
31881}
31882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031883if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031884 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031885else
cristy03f7cf92011-12-15 01:40:41 +000031886 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031887fi
cristy8b350f62009-11-15 23:12:43 +000031888rm -f core conftest.err conftest.$ac_objext \
31889 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031890LIBS=$ac_check_lib_save_LIBS
31891fi
cristy03f7cf92011-12-15 01:40:41 +000031892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31893$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31894if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31895 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031896fi
31897
cristy03f7cf92011-12-15 01:40:41 +000031898 if test "$have_libwmflite" = 'yes'; then
31899
31900$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31901
31902 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031903 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031904 have_wmf='yes'
31905 else
31906 WMF_LIBS_DEPS=''
31907 WMF_CONFIG_LIBS=`libwmf-config --libs`
31908 for lib in xml2 expat freetype jpeg png z; do
31909 testlib="-l${lib}"
31910 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31911 done
31912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31913$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31914if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31915 $as_echo_n "(cached) " >&6
31916else
31917 ac_check_lib_save_LIBS=$LIBS
31918LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31920/* end confdefs.h. */
31921
31922/* Override any GCC internal prototype to avoid an error.
31923 Use char because int might match the return type of a GCC
31924 builtin and then its argument prototype would still apply. */
31925#ifdef __cplusplus
31926extern "C"
31927#endif
31928char wmf_api_create ();
31929int
31930main ()
31931{
31932return wmf_api_create ();
31933 ;
31934 return 0;
31935}
31936_ACEOF
31937if ac_fn_c_try_link "$LINENO"; then :
31938 ac_cv_lib_wmf_wmf_api_create=yes
31939else
31940 ac_cv_lib_wmf_wmf_api_create=no
31941fi
31942rm -f core conftest.err conftest.$ac_objext \
31943 conftest$ac_exeext conftest.$ac_ext
31944LIBS=$ac_check_lib_save_LIBS
31945fi
31946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31947$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31948if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31949 have_libwmf='yes'
31950fi
31951
31952 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031953
cristy8b350f62009-11-15 23:12:43 +000031954$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031955
cristy03f7cf92011-12-15 01:40:41 +000031956 WMF_LIBS='-lwmf'
31957 LIBS="$WMF_LIBS $LIBS"
31958 have_wmf='yes'
31959 else
31960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31961$as_echo "no -- some components failed test" >&6; }
31962 have_wmf='no (failed tests)'
31963 have_wmflite='no (failed tests)'
31964 LIBS="$OLIBS"
31965 WMF_LIBS=''
31966 fi
glennrp33e524b2011-08-24 17:41:57 +000031967 fi
cristy03f7cf92011-12-15 01:40:41 +000031968 fi
31969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31970$as_echo_n "checking if WMF package is complete... " >&6; }
31971 if test "$have_wmf" = 'yes'; then
31972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31973$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031974 else
cristy03f7cf92011-12-15 01:40:41 +000031975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31976$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031977 fi
cristy3ed852e2009-09-05 21:47:34 +000031978fi
cristy73bd4a52010-10-05 11:24:23 +000031979 if test "$have_wmf" = 'yes'; then
31980 WMF_DELEGATE_TRUE=
31981 WMF_DELEGATE_FALSE='#'
31982else
31983 WMF_DELEGATE_TRUE='#'
31984 WMF_DELEGATE_FALSE=
31985fi
31986
cristy3ed852e2009-09-05 21:47:34 +000031987
31988
31989
cristy81beccd2011-10-03 18:17:24 +000031990
31991
cristy3ed852e2009-09-05 21:47:34 +000031992#
31993# Check for XML delegate library.
31994#
31995
31996# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031997if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031998 withval=$with_xml; with_xml=$withval
31999else
cristyfc3d0222012-02-07 15:05:57 +000032000 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032001fi
32002
32003
cristy81beccd2011-10-03 18:17:24 +000032004if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032005 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32006fi
32007
cristy81beccd2011-10-03 18:17:24 +000032008have_xml='no'
32009XML_LIBS=''
32010if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32012$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32014$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32016$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032017 PERSIST_LDFLAGS=$LDFLAGS
32018 PERSIST_CPPFLAGS=$CPPFLAGS
32019 xml2_config=''
32020 # Extract the first word of "xml2-config", so it can be a program name with args.
32021set dummy xml2-config; ac_word=$2
32022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32023$as_echo_n "checking for $ac_word... " >&6; }
32024if ${ac_cv_path_xml2_config+:} false; then :
32025 $as_echo_n "(cached) " >&6
32026else
32027 case $xml2_config in
32028 [\\/]* | ?:[\\/]*)
32029 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32030 ;;
32031 *)
32032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32033for as_dir in $PATH
32034do
32035 IFS=$as_save_IFS
32036 test -z "$as_dir" && as_dir=.
32037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032039 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32041 break 2
32042 fi
32043done
32044 done
32045IFS=$as_save_IFS
32046
32047 ;;
32048esac
32049fi
32050xml2_config=$ac_cv_path_xml2_config
32051if test -n "$xml2_config"; then
32052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32053$as_echo "$xml2_config" >&6; }
32054else
32055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32056$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032057fi
32058
cristy81beccd2011-10-03 18:17:24 +000032059 if test -n "$xml2_config"; then
32060 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32061 # the shared library installed under /usr/lib, whereas the package
32062 # installs itself under $prefix/libxml and $prefix/lib.
32063 xml2_prefix=`xml2-config --prefix`
32064 if test -d "${xml2_prefix}/include/libxml2"; then
32065 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32066 fi
32067 if test "${xml2_prefix}" != '/usr'; then
32068 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32069 fi
32070 fi
32071 failed=0
32072 passed=0
32073 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32074if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32075 passed=`expr $passed + 1`
32076else
32077 failed=`expr $failed + 1`
32078fi
32079
32080
32081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32082$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32083if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32084 $as_echo_n "(cached) " >&6
32085else
32086 ac_check_lib_save_LIBS=$LIBS
32087LIBS="-lxml2 $LIBS"
32088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32089/* end confdefs.h. */
32090
32091/* Override any GCC internal prototype to avoid an error.
32092 Use char because int might match the return type of a GCC
32093 builtin and then its argument prototype would still apply. */
32094#ifdef __cplusplus
32095extern "C"
32096#endif
32097char xmlSAXVersion ();
32098int
32099main ()
32100{
32101return xmlSAXVersion ();
32102 ;
32103 return 0;
32104}
32105_ACEOF
32106if ac_fn_c_try_link "$LINENO"; then :
32107 ac_cv_lib_xml2_xmlSAXVersion=yes
32108else
32109 ac_cv_lib_xml2_xmlSAXVersion=no
32110fi
32111rm -f core conftest.err conftest.$ac_objext \
32112 conftest$ac_exeext conftest.$ac_ext
32113LIBS=$ac_check_lib_save_LIBS
32114fi
32115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32116$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32117if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32118 passed=`expr $passed + 1`
32119else
32120 failed=`expr $failed + 1`
32121fi
32122
32123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32124$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32125if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32126 $as_echo_n "(cached) " >&6
32127else
32128 ac_check_lib_save_LIBS=$LIBS
32129LIBS="-lxml2 $LIBS"
32130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32131/* end confdefs.h. */
32132
32133/* Override any GCC internal prototype to avoid an error.
32134 Use char because int might match the return type of a GCC
32135 builtin and then its argument prototype would still apply. */
32136#ifdef __cplusplus
32137extern "C"
32138#endif
32139char xmlParseChunk ();
32140int
32141main ()
32142{
32143return xmlParseChunk ();
32144 ;
32145 return 0;
32146}
32147_ACEOF
32148if ac_fn_c_try_link "$LINENO"; then :
32149 ac_cv_lib_xml2_xmlParseChunk=yes
32150else
32151 ac_cv_lib_xml2_xmlParseChunk=no
32152fi
32153rm -f core conftest.err conftest.$ac_objext \
32154 conftest$ac_exeext conftest.$ac_ext
32155LIBS=$ac_check_lib_save_LIBS
32156fi
32157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32158$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32159if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32160 passed=`expr $passed + 1`
32161else
32162 failed=`expr $failed + 1`
32163fi
32164
32165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32166$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32167if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32168 $as_echo_n "(cached) " >&6
32169else
32170 ac_check_lib_save_LIBS=$LIBS
32171LIBS="-lxml2 $LIBS"
32172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32173/* end confdefs.h. */
32174
32175/* Override any GCC internal prototype to avoid an error.
32176 Use char because int might match the return type of a GCC
32177 builtin and then its argument prototype would still apply. */
32178#ifdef __cplusplus
32179extern "C"
32180#endif
32181char xmlCreatePushParserCtxt ();
32182int
32183main ()
32184{
32185return xmlCreatePushParserCtxt ();
32186 ;
32187 return 0;
32188}
32189_ACEOF
32190if ac_fn_c_try_link "$LINENO"; then :
32191 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32192else
32193 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32194fi
32195rm -f core conftest.err conftest.$ac_objext \
32196 conftest$ac_exeext conftest.$ac_ext
32197LIBS=$ac_check_lib_save_LIBS
32198fi
32199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32200$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32201if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32202 passed=`expr $passed + 1`
32203else
32204 failed=`expr $failed + 1`
32205fi
32206
32207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32208$as_echo_n "checking if XML package is complete... " >&6; }
32209 if test $passed -gt 0; then
32210 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32212$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032213 have_xml='no (failed tests)'
32214 LDFLAGS="$PERSIST_LDFLAGS"
32215 CPPFLAGS="$PERSIST_CPPFLAGS"
32216 else
32217 XML_LIBS='-lxml2'
32218 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032219
cristy8b350f62009-11-15 23:12:43 +000032220$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032221
cristyad38abe2012-12-23 23:03:21 +000032222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32223$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032224 have_xml='yes'
32225 fi
32226 else
cristyad38abe2012-12-23 23:03:21 +000032227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32228$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032229 fi
32230fi
cristy73bd4a52010-10-05 11:24:23 +000032231 if test "$have_xml" = 'yes'; then
32232 XML_DELEGATE_TRUE=
32233 XML_DELEGATE_FALSE='#'
32234else
32235 XML_DELEGATE_TRUE='#'
32236 XML_DELEGATE_FALSE=
32237fi
32238
cristy3ed852e2009-09-05 21:47:34 +000032239
32240
32241
32242# Substitute compiler name to build/link PerlMagick
32243#
32244
32245
32246#
32247# Configure install Paths
32248#
cristy7def36a2011-10-28 19:04:41 +000032249
cristy2a11bef2011-10-28 18:33:11 +000032250# Path to ImageMagick header files
32251INCLUDE_RELATIVE_PATH="ImageMagick"
cristye52f12f2012-12-31 15:32:36 +000032252INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32253DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032254case "${build_os}" in
32255 mingw* )
32256 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32257 ;;
32258esac
32259
32260cat >>confdefs.h <<_ACEOF
32261#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32262_ACEOF
32263
32264
cristy3ed852e2009-09-05 21:47:34 +000032265
cristye52f12f2012-12-31 15:32:36 +000032266# Path to ImageMagick header files (arch part)
32267INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32268DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32269case "${build_os}" in
32270 mingw* )
32271 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32272 ;;
32273esac
32274
32275cat >>confdefs.h <<_ACEOF
32276#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32277_ACEOF
32278
32279
32280
cristy3ed852e2009-09-05 21:47:34 +000032281# Subdirectory under lib to place ImageMagick lib files
32282LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32283
32284cat >>confdefs.h <<_ACEOF
32285#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32286_ACEOF
32287
32288
32289# Path to ImageMagick bin directory
32290EXECUTABLE_PATH="${BIN_DIR}"
32291DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32292case "${build_os}" in
32293 mingw* )
32294 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32295 ;;
32296esac
32297
32298cat >>confdefs.h <<_ACEOF
32299#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32300_ACEOF
32301
32302
32303
32304# Path to ImageMagick lib
32305LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32306DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32307case "${build_os}" in
32308 mingw* )
32309 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32310 ;;
32311esac
32312
32313cat >>confdefs.h <<_ACEOF
32314#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32315_ACEOF
32316
32317
32318
cristy3ed852e2009-09-05 21:47:34 +000032319#
cristy01ff9f32012-12-01 18:15:29 +000032320# path to modules lib
32321if test "x$MODULES_BASEDIRNAME" = "x"; then
32322 MODULES_BASEDIRNAME="modules"
32323fi
cristy3ed852e2009-09-05 21:47:34 +000032324
32325cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032326#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032327_ACEOF
32328
cristy01ff9f32012-12-01 18:15:29 +000032329
32330
32331if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032332 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32333else
cristy3ed852e2009-09-05 21:47:34 +000032334
32335cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032336#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032337_ACEOF
32338
cristycf4a3c22012-12-02 21:47:25 +000032339fi
cristy01ff9f32012-12-01 18:15:29 +000032340
32341
cristy371d4812012-12-01 19:48:10 +000032342MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032343
32344MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32345
32346
32347#
32348# path to coders lib
32349if test "x$CODER_DIRNAME" = "x"; then
32350 CODER_DIRNAME="coders"
32351fi
32352
32353cat >>confdefs.h <<_ACEOF
32354#define CODER_DIRNAME "$CODER_DIRNAME"
32355_ACEOF
32356
32357
32358
cristy371d4812012-12-01 19:48:10 +000032359CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032360CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032361
32362
32363#
32364# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032365#
32366# path to coders lib
32367if test "x$FILTER_DIRNAME" = "x"; then
32368 FILTER_DIRNAME="filters"
32369fi
cristy3ed852e2009-09-05 21:47:34 +000032370
32371cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032372#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032373_ACEOF
32374
cristy3ed852e2009-09-05 21:47:34 +000032375
cristy3ed852e2009-09-05 21:47:34 +000032376
cristy371d4812012-12-01 19:48:10 +000032377FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032378FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032379
32380
32381#
32382# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032383DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032384DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32385DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032386case "${build_os}" in
32387 mingw* )
32388 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32389 ;;
32390esac
32391
32392cat >>confdefs.h <<_ACEOF
32393#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32394_ACEOF
32395
32396
32397
cristy2a11bef2011-10-28 18:33:11 +000032398# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032399CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032400
32401cat >>confdefs.h <<_ACEOF
32402#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32403_ACEOF
32404
cristy7def36a2011-10-28 19:04:41 +000032405CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032406DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32407case "${build_os}" in
32408 mingw* )
32409 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32410 ;;
32411esac
32412
32413cat >>confdefs.h <<_ACEOF
32414#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32415_ACEOF
32416
32417
32418
cristy2a11bef2011-10-28 18:33:11 +000032419# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032420SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032421
32422cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032423#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032424_ACEOF
32425
cristy670aa3c2011-11-03 00:54:00 +000032426SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032427DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032428case "${build_os}" in
32429 mingw* )
cristy4f820712011-04-01 12:35:43 +000032430 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032431 ;;
32432esac
32433
32434cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032435#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032436_ACEOF
32437
32438
32439
cristy54378032012-12-04 15:52:20 +000032440#
32441# Subdirectory to place architecture-dependent configuration files.
32442if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32443 SHAREARCH_BASEDIRNAME="config"
32444fi
cristy670aa3c2011-11-03 00:54:00 +000032445
32446cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032447#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032448_ACEOF
32449
cristy54378032012-12-04 15:52:20 +000032450
32451
32452if test "x$SHAREARCH_DIRNAME" = "x"; then
32453 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32454else
cristy670aa3c2011-11-03 00:54:00 +000032455
32456cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032457#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032458_ACEOF
32459
cristy54378032012-12-04 15:52:20 +000032460fi
32461
32462
32463SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32464
32465SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032466
32467
cristy3ed852e2009-09-05 21:47:34 +000032468#
32469# program_transform_name is formed for use in a Makefile, so create a
32470# modified version for use in a shell script.
32471configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32472
32473# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32475$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032477$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32479$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032480AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032481BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032482BZIPDelegateDefault='bzip2'
32483BrowseDelegateDefault='xdg-open'
32484CGMDecodeDelegateDefault='ralcgm'
32485CatDelegateDefault='cat'
32486DNGDecodeDelegateDefault='ufraw-batch'
32487GVCDecodeDelegateDefault='dot'
32488DVIDecodeDelegateDefault='dvips'
32489EchoDelegateDefault='echo'
32490EditorDelegateDefault='xterm'
32491FIGDecodeDelegateDefault='fig2dev'
32492ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32493DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32494MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32495GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032496HPGLDecodeDelegateDefault='hp2xx'
32497HTMLDecodeDelegateDefault='html2ps'
32498ILBMDecodeDelegateDefault='ilbmtoppm'
32499ILBMEncodeDelegateDefault='ppmtoilbm'
32500LPDelegateDefault='lp'
32501LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032502LaunchDelegateDefault='gimp'
32503MANDelegateDefault='groff'
32504MPEGDecodeDelegateDefault='ffmpeg'
32505MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032506MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032507MVDelegateDefault='mv'
32508PCLDelegateDefault='pcl6'
32509PGPDecodeDelegateDefault='pgpv'
32510POVDelegateDefault='povray'
32511if test "$native_win32_build" = 'yes'; then
32512 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032513elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032514 PSDelegateDefault='gsc'
32515else
32516 PSDelegateDefault='gs'
32517fi
32518RLEEncodeDelegateDefault='rawtorle'
32519RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032520RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032521SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032522SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032523TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032524UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032525WMFDecodeDelegateDefault='wmf2eps'
32526WWWDecodeDelegateDefault='curl'
32527XPSDelegateDefault='gxps'
32528ZipDelegateDefault='gzip'
32529
32530# Search for delegates
32531# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32532set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032534$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032535if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032536 $as_echo_n "(cached) " >&6
32537else
32538 case $AutotraceDecodeDelegate in
32539 [\\/]* | ?:[\\/]*)
32540 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32541 ;;
32542 *)
32543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32544for as_dir in $PATH
32545do
32546 IFS=$as_save_IFS
32547 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032548 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032550 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032552 break 2
32553 fi
32554done
cristy8b350f62009-11-15 23:12:43 +000032555 done
cristy3ed852e2009-09-05 21:47:34 +000032556IFS=$as_save_IFS
32557
32558 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32559 ;;
32560esac
32561fi
32562AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32563if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032565$as_echo "$AutotraceDecodeDelegate" >&6; }
32566else
cristy8b350f62009-11-15 23:12:43 +000032567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032568$as_echo "no" >&6; }
32569fi
32570
32571
cristy3ed852e2009-09-05 21:47:34 +000032572# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32573set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032575$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032576if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032577 $as_echo_n "(cached) " >&6
32578else
32579 case $BlenderDecodeDelegate in
32580 [\\/]* | ?:[\\/]*)
32581 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32582 ;;
32583 *)
32584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32585for as_dir in $PATH
32586do
32587 IFS=$as_save_IFS
32588 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032589 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032591 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032593 break 2
32594 fi
32595done
cristy8b350f62009-11-15 23:12:43 +000032596 done
cristy3ed852e2009-09-05 21:47:34 +000032597IFS=$as_save_IFS
32598
32599 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32600 ;;
32601esac
32602fi
32603BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32604if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032606$as_echo "$BlenderDecodeDelegate" >&6; }
32607else
cristy8b350f62009-11-15 23:12:43 +000032608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032609$as_echo "no" >&6; }
32610fi
32611
32612
32613# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32614set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032616$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032617if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032618 $as_echo_n "(cached) " >&6
32619else
32620 case $BZIPDelegate in
32621 [\\/]* | ?:[\\/]*)
32622 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32623 ;;
32624 *)
32625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32626for as_dir in $PATH
32627do
32628 IFS=$as_save_IFS
32629 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032630 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032632 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032634 break 2
32635 fi
32636done
cristy8b350f62009-11-15 23:12:43 +000032637 done
cristy3ed852e2009-09-05 21:47:34 +000032638IFS=$as_save_IFS
32639
32640 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32641 ;;
32642esac
32643fi
32644BZIPDelegate=$ac_cv_path_BZIPDelegate
32645if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032647$as_echo "$BZIPDelegate" >&6; }
32648else
cristy8b350f62009-11-15 23:12:43 +000032649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032650$as_echo "no" >&6; }
32651fi
32652
32653
cristyc59f0e72012-08-27 12:59:33 +000032654for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32655do
32656 # Extract the first word of "$ac_prog", so it can be a program name with args.
32657set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032659$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032660if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032661 $as_echo_n "(cached) " >&6
32662else
32663 case $BrowseDelegate in
32664 [\\/]* | ?:[\\/]*)
32665 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32666 ;;
32667 *)
32668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32669for as_dir in $PATH
32670do
32671 IFS=$as_save_IFS
32672 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032675 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032677 break 2
32678 fi
32679done
cristy8b350f62009-11-15 23:12:43 +000032680 done
cristy3ed852e2009-09-05 21:47:34 +000032681IFS=$as_save_IFS
32682
cristy3ed852e2009-09-05 21:47:34 +000032683 ;;
32684esac
32685fi
32686BrowseDelegate=$ac_cv_path_BrowseDelegate
32687if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032689$as_echo "$BrowseDelegate" >&6; }
32690else
cristy8b350f62009-11-15 23:12:43 +000032691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032692$as_echo "no" >&6; }
32693fi
32694
32695
cristyc59f0e72012-08-27 12:59:33 +000032696 test -n "$BrowseDelegate" && break
32697done
32698test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32699
cristy3ed852e2009-09-05 21:47:34 +000032700# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32701set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032703$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032704if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032705 $as_echo_n "(cached) " >&6
32706else
32707 case $CGMDecodeDelegate in
32708 [\\/]* | ?:[\\/]*)
32709 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32710 ;;
32711 *)
32712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32713for as_dir in $PATH
32714do
32715 IFS=$as_save_IFS
32716 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032717 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032719 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032721 break 2
32722 fi
32723done
cristy8b350f62009-11-15 23:12:43 +000032724 done
cristy3ed852e2009-09-05 21:47:34 +000032725IFS=$as_save_IFS
32726
32727 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32728 ;;
32729esac
32730fi
32731CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32732if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032734$as_echo "$CGMDecodeDelegate" >&6; }
32735else
cristy8b350f62009-11-15 23:12:43 +000032736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032737$as_echo "no" >&6; }
32738fi
32739
32740
32741# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32742set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032744$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032745if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032746 $as_echo_n "(cached) " >&6
32747else
32748 case $CatDelegate in
32749 [\\/]* | ?:[\\/]*)
32750 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32751 ;;
32752 *)
32753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32754for as_dir in $PATH
32755do
32756 IFS=$as_save_IFS
32757 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032758 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032760 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032762 break 2
32763 fi
32764done
cristy8b350f62009-11-15 23:12:43 +000032765 done
cristy3ed852e2009-09-05 21:47:34 +000032766IFS=$as_save_IFS
32767
32768 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32769 ;;
32770esac
32771fi
32772CatDelegate=$ac_cv_path_CatDelegate
32773if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032775$as_echo "$CatDelegate" >&6; }
32776else
cristy8b350f62009-11-15 23:12:43 +000032777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032778$as_echo "no" >&6; }
32779fi
32780
32781
32782# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32783set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032785$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032786if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032787 $as_echo_n "(cached) " >&6
32788else
32789 case $DNGDecodeDelegate in
32790 [\\/]* | ?:[\\/]*)
32791 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32792 ;;
32793 *)
32794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32795for as_dir in $PATH
32796do
32797 IFS=$as_save_IFS
32798 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032801 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032803 break 2
32804 fi
32805done
cristy8b350f62009-11-15 23:12:43 +000032806 done
cristy3ed852e2009-09-05 21:47:34 +000032807IFS=$as_save_IFS
32808
32809 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32810 ;;
32811esac
32812fi
32813DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32814if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032816$as_echo "$DNGDecodeDelegate" >&6; }
32817else
cristy8b350f62009-11-15 23:12:43 +000032818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032819$as_echo "no" >&6; }
32820fi
32821
32822
32823# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32824set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032826$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032827if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032828 $as_echo_n "(cached) " >&6
32829else
32830 case $GVCDecodeDelegate in
32831 [\\/]* | ?:[\\/]*)
32832 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32833 ;;
32834 *)
32835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32836for as_dir in $PATH
32837do
32838 IFS=$as_save_IFS
32839 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032840 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032842 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032844 break 2
32845 fi
32846done
cristy8b350f62009-11-15 23:12:43 +000032847 done
cristy3ed852e2009-09-05 21:47:34 +000032848IFS=$as_save_IFS
32849
32850 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32851 ;;
32852esac
32853fi
32854GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32855if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032857$as_echo "$GVCDecodeDelegate" >&6; }
32858else
cristy8b350f62009-11-15 23:12:43 +000032859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032860$as_echo "no" >&6; }
32861fi
32862
32863
32864# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32865set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032867$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032868if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032869 $as_echo_n "(cached) " >&6
32870else
32871 case $DVIDecodeDelegate in
32872 [\\/]* | ?:[\\/]*)
32873 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32874 ;;
32875 *)
32876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32877for as_dir in $PATH
32878do
32879 IFS=$as_save_IFS
32880 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032883 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032885 break 2
32886 fi
32887done
cristy8b350f62009-11-15 23:12:43 +000032888 done
cristy3ed852e2009-09-05 21:47:34 +000032889IFS=$as_save_IFS
32890
32891 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32892 ;;
32893esac
32894fi
32895DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32896if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032898$as_echo "$DVIDecodeDelegate" >&6; }
32899else
cristy8b350f62009-11-15 23:12:43 +000032900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032901$as_echo "no" >&6; }
32902fi
32903
32904
32905# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32906set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032908$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032909if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032910 $as_echo_n "(cached) " >&6
32911else
32912 case $EchoDelegate in
32913 [\\/]* | ?:[\\/]*)
32914 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32915 ;;
32916 *)
32917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32918for as_dir in $PATH
32919do
32920 IFS=$as_save_IFS
32921 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032922 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032924 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032926 break 2
32927 fi
32928done
cristy8b350f62009-11-15 23:12:43 +000032929 done
cristy3ed852e2009-09-05 21:47:34 +000032930IFS=$as_save_IFS
32931
32932 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32933 ;;
32934esac
32935fi
32936EchoDelegate=$ac_cv_path_EchoDelegate
32937if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032939$as_echo "$EchoDelegate" >&6; }
32940else
cristy8b350f62009-11-15 23:12:43 +000032941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032942$as_echo "no" >&6; }
32943fi
32944
32945
32946# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32947set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032949$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032950if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032951 $as_echo_n "(cached) " >&6
32952else
32953 case $EditorDelegate in
32954 [\\/]* | ?:[\\/]*)
32955 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32956 ;;
32957 *)
32958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32959for as_dir in $PATH
32960do
32961 IFS=$as_save_IFS
32962 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032963 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032965 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032967 break 2
32968 fi
32969done
cristy8b350f62009-11-15 23:12:43 +000032970 done
cristy3ed852e2009-09-05 21:47:34 +000032971IFS=$as_save_IFS
32972
32973 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32974 ;;
32975esac
32976fi
32977EditorDelegate=$ac_cv_path_EditorDelegate
32978if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032980$as_echo "$EditorDelegate" >&6; }
32981else
cristy8b350f62009-11-15 23:12:43 +000032982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032983$as_echo "no" >&6; }
32984fi
32985
32986
32987# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32988set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032991if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032992 $as_echo_n "(cached) " >&6
32993else
32994 case $FIGDecodeDelegate in
32995 [\\/]* | ?:[\\/]*)
32996 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32997 ;;
32998 *)
32999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33000for as_dir in $PATH
33001do
33002 IFS=$as_save_IFS
33003 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033004 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033006 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033008 break 2
33009 fi
33010done
cristy8b350f62009-11-15 23:12:43 +000033011 done
cristy3ed852e2009-09-05 21:47:34 +000033012IFS=$as_save_IFS
33013
33014 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33015 ;;
33016esac
33017fi
33018FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33019if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033021$as_echo "$FIGDecodeDelegate" >&6; }
33022else
cristy8b350f62009-11-15 23:12:43 +000033023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033024$as_echo "no" >&6; }
33025fi
33026
33027
33028# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33029set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033031$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033032if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033033 $as_echo_n "(cached) " >&6
33034else
33035 case $ConvertDelegate in
33036 [\\/]* | ?:[\\/]*)
33037 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33038 ;;
33039 *)
33040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33041for as_dir in $PATH
33042do
33043 IFS=$as_save_IFS
33044 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033045 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033047 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033049 break 2
33050 fi
33051done
cristy8b350f62009-11-15 23:12:43 +000033052 done
cristy3ed852e2009-09-05 21:47:34 +000033053IFS=$as_save_IFS
33054
33055 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33056 ;;
33057esac
33058fi
33059ConvertDelegate=$ac_cv_path_ConvertDelegate
33060if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033062$as_echo "$ConvertDelegate" >&6; }
33063else
cristy8b350f62009-11-15 23:12:43 +000033064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033065$as_echo "no" >&6; }
33066fi
33067
33068
33069# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33070set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033072$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033073if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033074 $as_echo_n "(cached) " >&6
33075else
33076 case $DisplayDelegate in
33077 [\\/]* | ?:[\\/]*)
33078 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33079 ;;
33080 *)
33081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33082for as_dir in $PATH
33083do
33084 IFS=$as_save_IFS
33085 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033086 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033088 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033090 break 2
33091 fi
33092done
cristy8b350f62009-11-15 23:12:43 +000033093 done
cristy3ed852e2009-09-05 21:47:34 +000033094IFS=$as_save_IFS
33095
33096 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33097 ;;
33098esac
33099fi
33100DisplayDelegate=$ac_cv_path_DisplayDelegate
33101if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033103$as_echo "$DisplayDelegate" >&6; }
33104else
cristy8b350f62009-11-15 23:12:43 +000033105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033106$as_echo "no" >&6; }
33107fi
33108
33109
33110# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33111set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033113$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033114if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033115 $as_echo_n "(cached) " >&6
33116else
33117 case $MogrifyDelegate in
33118 [\\/]* | ?:[\\/]*)
33119 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33120 ;;
33121 *)
33122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33123for as_dir in $PATH
33124do
33125 IFS=$as_save_IFS
33126 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033127 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033129 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033131 break 2
33132 fi
33133done
cristy8b350f62009-11-15 23:12:43 +000033134 done
cristy3ed852e2009-09-05 21:47:34 +000033135IFS=$as_save_IFS
33136
33137 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33138 ;;
33139esac
33140fi
33141MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33142if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033144$as_echo "$MogrifyDelegate" >&6; }
33145else
cristy8b350f62009-11-15 23:12:43 +000033146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033147$as_echo "no" >&6; }
33148fi
33149
33150
33151# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33152set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033154$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033155if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033156 $as_echo_n "(cached) " >&6
33157else
33158 case $GnuplotDecodeDelegate in
33159 [\\/]* | ?:[\\/]*)
33160 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33161 ;;
33162 *)
33163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33164for as_dir in $PATH
33165do
33166 IFS=$as_save_IFS
33167 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033168 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033170 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033172 break 2
33173 fi
33174done
cristy8b350f62009-11-15 23:12:43 +000033175 done
cristy3ed852e2009-09-05 21:47:34 +000033176IFS=$as_save_IFS
33177
33178 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33179 ;;
33180esac
33181fi
33182GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33183if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033185$as_echo "$GnuplotDecodeDelegate" >&6; }
33186else
cristy8b350f62009-11-15 23:12:43 +000033187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033188$as_echo "no" >&6; }
33189fi
33190
33191
cristy3ed852e2009-09-05 21:47:34 +000033192# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33193set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033195$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033196if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033197 $as_echo_n "(cached) " >&6
33198else
33199 case $HPGLDecodeDelegate in
33200 [\\/]* | ?:[\\/]*)
33201 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33202 ;;
33203 *)
33204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33205for as_dir in $PATH
33206do
33207 IFS=$as_save_IFS
33208 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033209 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033211 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033213 break 2
33214 fi
33215done
cristy8b350f62009-11-15 23:12:43 +000033216 done
cristy3ed852e2009-09-05 21:47:34 +000033217IFS=$as_save_IFS
33218
33219 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33220 ;;
33221esac
33222fi
33223HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33224if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033226$as_echo "$HPGLDecodeDelegate" >&6; }
33227else
cristy8b350f62009-11-15 23:12:43 +000033228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033229$as_echo "no" >&6; }
33230fi
33231
33232
33233# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33234set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033236$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033237if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033238 $as_echo_n "(cached) " >&6
33239else
33240 case $HTMLDecodeDelegate in
33241 [\\/]* | ?:[\\/]*)
33242 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33243 ;;
33244 *)
33245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33246for as_dir in $PATH
33247do
33248 IFS=$as_save_IFS
33249 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033250 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033252 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033254 break 2
33255 fi
33256done
cristy8b350f62009-11-15 23:12:43 +000033257 done
cristy3ed852e2009-09-05 21:47:34 +000033258IFS=$as_save_IFS
33259
33260 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33261 ;;
33262esac
33263fi
33264HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33265if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033267$as_echo "$HTMLDecodeDelegate" >&6; }
33268else
cristy8b350f62009-11-15 23:12:43 +000033269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033270$as_echo "no" >&6; }
33271fi
33272
33273
33274# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33275set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033277$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033278if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033279 $as_echo_n "(cached) " >&6
33280else
33281 case $ILBMDecodeDelegate in
33282 [\\/]* | ?:[\\/]*)
33283 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33284 ;;
33285 *)
33286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33287for as_dir in $PATH
33288do
33289 IFS=$as_save_IFS
33290 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033291 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033293 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033295 break 2
33296 fi
33297done
cristy8b350f62009-11-15 23:12:43 +000033298 done
cristy3ed852e2009-09-05 21:47:34 +000033299IFS=$as_save_IFS
33300
33301 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33302 ;;
33303esac
33304fi
33305ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33306if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033308$as_echo "$ILBMDecodeDelegate" >&6; }
33309else
cristy8b350f62009-11-15 23:12:43 +000033310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033311$as_echo "no" >&6; }
33312fi
33313
33314
33315# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33316set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033318$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033319if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033320 $as_echo_n "(cached) " >&6
33321else
33322 case $ILBMEncodeDelegate in
33323 [\\/]* | ?:[\\/]*)
33324 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33325 ;;
33326 *)
33327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33328for as_dir in $PATH
33329do
33330 IFS=$as_save_IFS
33331 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033332 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033334 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033336 break 2
33337 fi
33338done
cristy8b350f62009-11-15 23:12:43 +000033339 done
cristy3ed852e2009-09-05 21:47:34 +000033340IFS=$as_save_IFS
33341
33342 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33343 ;;
33344esac
33345fi
33346ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33347if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033349$as_echo "$ILBMEncodeDelegate" >&6; }
33350else
cristy8b350f62009-11-15 23:12:43 +000033351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033352$as_echo "no" >&6; }
33353fi
33354
33355
33356# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33357set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033359$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033360if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033361 $as_echo_n "(cached) " >&6
33362else
33363 case $LPDelegate in
33364 [\\/]* | ?:[\\/]*)
33365 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33366 ;;
33367 *)
33368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33369for as_dir in $PATH
33370do
33371 IFS=$as_save_IFS
33372 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033373 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033375 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033377 break 2
33378 fi
33379done
cristy8b350f62009-11-15 23:12:43 +000033380 done
cristy3ed852e2009-09-05 21:47:34 +000033381IFS=$as_save_IFS
33382
33383 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33384 ;;
33385esac
33386fi
33387LPDelegate=$ac_cv_path_LPDelegate
33388if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033390$as_echo "$LPDelegate" >&6; }
33391else
cristy8b350f62009-11-15 23:12:43 +000033392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033393$as_echo "no" >&6; }
33394fi
33395
33396
33397# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33398set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033400$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033401if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033402 $as_echo_n "(cached) " >&6
33403else
33404 case $LPRDelegate in
33405 [\\/]* | ?:[\\/]*)
33406 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33407 ;;
33408 *)
33409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33410for as_dir in $PATH
33411do
33412 IFS=$as_save_IFS
33413 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033414 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033416 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033418 break 2
33419 fi
33420done
cristy8b350f62009-11-15 23:12:43 +000033421 done
cristy3ed852e2009-09-05 21:47:34 +000033422IFS=$as_save_IFS
33423
33424 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33425 ;;
33426esac
33427fi
33428LPRDelegate=$ac_cv_path_LPRDelegate
33429if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033431$as_echo "$LPRDelegate" >&6; }
33432else
cristy8b350f62009-11-15 23:12:43 +000033433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033434$as_echo "no" >&6; }
33435fi
33436
33437
cristy3ed852e2009-09-05 21:47:34 +000033438# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33439set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033441$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033442if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033443 $as_echo_n "(cached) " >&6
33444else
33445 case $LaunchDelegate in
33446 [\\/]* | ?:[\\/]*)
33447 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33448 ;;
33449 *)
33450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33451for as_dir in $PATH
33452do
33453 IFS=$as_save_IFS
33454 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033457 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033459 break 2
33460 fi
33461done
cristy8b350f62009-11-15 23:12:43 +000033462 done
cristy3ed852e2009-09-05 21:47:34 +000033463IFS=$as_save_IFS
33464
33465 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33466 ;;
33467esac
33468fi
33469LaunchDelegate=$ac_cv_path_LaunchDelegate
33470if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033472$as_echo "$LaunchDelegate" >&6; }
33473else
cristy8b350f62009-11-15 23:12:43 +000033474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033475$as_echo "no" >&6; }
33476fi
33477
33478
33479# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33480set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033482$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033483if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033484 $as_echo_n "(cached) " >&6
33485else
33486 case $MANDelegate in
33487 [\\/]* | ?:[\\/]*)
33488 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33489 ;;
33490 *)
33491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33492for as_dir in $PATH
33493do
33494 IFS=$as_save_IFS
33495 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033496 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033498 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033500 break 2
33501 fi
33502done
cristy8b350f62009-11-15 23:12:43 +000033503 done
cristy3ed852e2009-09-05 21:47:34 +000033504IFS=$as_save_IFS
33505
33506 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33507 ;;
33508esac
33509fi
33510MANDelegate=$ac_cv_path_MANDelegate
33511if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033513$as_echo "$MANDelegate" >&6; }
33514else
cristy8b350f62009-11-15 23:12:43 +000033515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033516$as_echo "no" >&6; }
33517fi
33518
33519
33520# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33521set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033523$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033524if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033525 $as_echo_n "(cached) " >&6
33526else
33527 case $MPEGDecodeDelegate in
33528 [\\/]* | ?:[\\/]*)
33529 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33530 ;;
33531 *)
33532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33533for as_dir in $PATH
33534do
33535 IFS=$as_save_IFS
33536 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033537 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033539 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033541 break 2
33542 fi
33543done
cristy8b350f62009-11-15 23:12:43 +000033544 done
cristy3ed852e2009-09-05 21:47:34 +000033545IFS=$as_save_IFS
33546
33547 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33548 ;;
33549esac
33550fi
33551MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33552if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033554$as_echo "$MPEGDecodeDelegate" >&6; }
33555else
cristy8b350f62009-11-15 23:12:43 +000033556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033557$as_echo "no" >&6; }
33558fi
33559
33560
33561# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33562set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033564$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033565if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033566 $as_echo_n "(cached) " >&6
33567else
33568 case $MPEGEncodeDelegate in
33569 [\\/]* | ?:[\\/]*)
33570 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33571 ;;
33572 *)
33573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33574for as_dir in $PATH
33575do
33576 IFS=$as_save_IFS
33577 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033578 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033580 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033582 break 2
33583 fi
33584done
cristy8b350f62009-11-15 23:12:43 +000033585 done
cristy3ed852e2009-09-05 21:47:34 +000033586IFS=$as_save_IFS
33587
33588 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33589 ;;
33590esac
33591fi
33592MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33593if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033595$as_echo "$MPEGEncodeDelegate" >&6; }
33596else
cristy8b350f62009-11-15 23:12:43 +000033597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033598$as_echo "no" >&6; }
33599fi
33600
33601
cristy935c86e2010-06-05 23:50:07 +000033602# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33603set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33605$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033606if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033607 $as_echo_n "(cached) " >&6
33608else
33609 case $MrSIDDecodeDelegate in
33610 [\\/]* | ?:[\\/]*)
33611 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33612 ;;
33613 *)
33614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33615for as_dir in $PATH
33616do
33617 IFS=$as_save_IFS
33618 test -z "$as_dir" && as_dir=.
33619 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033621 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33623 break 2
33624 fi
33625done
33626 done
33627IFS=$as_save_IFS
33628
33629 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33630 ;;
33631esac
33632fi
33633MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33634if test -n "$MrSIDDecodeDelegate"; then
33635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33636$as_echo "$MrSIDDecodeDelegate" >&6; }
33637else
33638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33639$as_echo "no" >&6; }
33640fi
33641
33642
cristy3ed852e2009-09-05 21:47:34 +000033643# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33644set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033646$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033647if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033648 $as_echo_n "(cached) " >&6
33649else
33650 case $MVDelegate in
33651 [\\/]* | ?:[\\/]*)
33652 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33653 ;;
33654 *)
33655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33656for as_dir in $PATH
33657do
33658 IFS=$as_save_IFS
33659 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033660 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033662 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033664 break 2
33665 fi
33666done
cristy8b350f62009-11-15 23:12:43 +000033667 done
cristy3ed852e2009-09-05 21:47:34 +000033668IFS=$as_save_IFS
33669
33670 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33671 ;;
33672esac
33673fi
33674MVDelegate=$ac_cv_path_MVDelegate
33675if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033677$as_echo "$MVDelegate" >&6; }
33678else
cristy8b350f62009-11-15 23:12:43 +000033679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033680$as_echo "no" >&6; }
33681fi
33682
33683
33684# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33685set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033688if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033689 $as_echo_n "(cached) " >&6
33690else
33691 case $PCLDelegate in
33692 [\\/]* | ?:[\\/]*)
33693 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33694 ;;
33695 *)
33696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33697for as_dir in $PATH
33698do
33699 IFS=$as_save_IFS
33700 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033703 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033705 break 2
33706 fi
33707done
cristy8b350f62009-11-15 23:12:43 +000033708 done
cristy3ed852e2009-09-05 21:47:34 +000033709IFS=$as_save_IFS
33710
33711 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33712 ;;
33713esac
33714fi
33715PCLDelegate=$ac_cv_path_PCLDelegate
33716if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033718$as_echo "$PCLDelegate" >&6; }
33719else
cristy8b350f62009-11-15 23:12:43 +000033720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033721$as_echo "no" >&6; }
33722fi
33723
33724
33725# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33726set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033728$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033729if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033730 $as_echo_n "(cached) " >&6
33731else
33732 case $PGPDecodeDelegate in
33733 [\\/]* | ?:[\\/]*)
33734 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33735 ;;
33736 *)
33737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33738for as_dir in $PATH
33739do
33740 IFS=$as_save_IFS
33741 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033742 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033744 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033746 break 2
33747 fi
33748done
cristy8b350f62009-11-15 23:12:43 +000033749 done
cristy3ed852e2009-09-05 21:47:34 +000033750IFS=$as_save_IFS
33751
33752 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33753 ;;
33754esac
33755fi
33756PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33757if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033759$as_echo "$PGPDecodeDelegate" >&6; }
33760else
cristy8b350f62009-11-15 23:12:43 +000033761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033762$as_echo "no" >&6; }
33763fi
33764
33765
33766# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33767set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033769$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033770if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033771 $as_echo_n "(cached) " >&6
33772else
33773 case $POVDelegate in
33774 [\\/]* | ?:[\\/]*)
33775 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33776 ;;
33777 *)
33778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33779for as_dir in $PATH
33780do
33781 IFS=$as_save_IFS
33782 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033785 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033787 break 2
33788 fi
33789done
cristy8b350f62009-11-15 23:12:43 +000033790 done
cristy3ed852e2009-09-05 21:47:34 +000033791IFS=$as_save_IFS
33792
33793 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33794 ;;
33795esac
33796fi
33797POVDelegate=$ac_cv_path_POVDelegate
33798if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033800$as_echo "$POVDelegate" >&6; }
33801else
cristy8b350f62009-11-15 23:12:43 +000033802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033803$as_echo "no" >&6; }
33804fi
33805
33806
33807for ac_prog in gsx gsc "$PSDelegateDefault"
33808do
33809 # Extract the first word of "$ac_prog", so it can be a program name with args.
33810set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033812$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033813if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033814 $as_echo_n "(cached) " >&6
33815else
33816 case $PSDelegate in
33817 [\\/]* | ?:[\\/]*)
33818 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33819 ;;
33820 *)
33821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33822for as_dir in $PATH
33823do
33824 IFS=$as_save_IFS
33825 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033828 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033830 break 2
33831 fi
33832done
cristy8b350f62009-11-15 23:12:43 +000033833 done
cristy3ed852e2009-09-05 21:47:34 +000033834IFS=$as_save_IFS
33835
33836 ;;
33837esac
33838fi
33839PSDelegate=$ac_cv_path_PSDelegate
33840if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033842$as_echo "$PSDelegate" >&6; }
33843else
cristy8b350f62009-11-15 23:12:43 +000033844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033845$as_echo "no" >&6; }
33846fi
33847
33848
33849 test -n "$PSDelegate" && break
33850done
33851test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33852
33853# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33854set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033856$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033857if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033858 $as_echo_n "(cached) " >&6
33859else
33860 case $RLEEncodeDelegate in
33861 [\\/]* | ?:[\\/]*)
33862 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33863 ;;
33864 *)
33865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33866for as_dir in $PATH
33867do
33868 IFS=$as_save_IFS
33869 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033872 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033874 break 2
33875 fi
33876done
cristy8b350f62009-11-15 23:12:43 +000033877 done
cristy3ed852e2009-09-05 21:47:34 +000033878IFS=$as_save_IFS
33879
33880 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33881 ;;
33882esac
33883fi
33884RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33885if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033887$as_echo "$RLEEncodeDelegate" >&6; }
33888else
cristy8b350f62009-11-15 23:12:43 +000033889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033890$as_echo "no" >&6; }
33891fi
33892
33893
33894# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33895set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033897$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033898if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033899 $as_echo_n "(cached) " >&6
33900else
33901 case $RMDelegate in
33902 [\\/]* | ?:[\\/]*)
33903 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33904 ;;
33905 *)
33906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33907for as_dir in $PATH
33908do
33909 IFS=$as_save_IFS
33910 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033911 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033913 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033915 break 2
33916 fi
33917done
cristy8b350f62009-11-15 23:12:43 +000033918 done
cristy3ed852e2009-09-05 21:47:34 +000033919IFS=$as_save_IFS
33920
33921 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33922 ;;
33923esac
33924fi
33925RMDelegate=$ac_cv_path_RMDelegate
33926if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033928$as_echo "$RMDelegate" >&6; }
33929else
cristy8b350f62009-11-15 23:12:43 +000033930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033931$as_echo "no" >&6; }
33932fi
33933
33934
cristy4689cf02010-02-17 21:15:45 +000033935# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33936set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33938$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033939if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033940 $as_echo_n "(cached) " >&6
33941else
33942 case $RSVGDecodeDelegate in
33943 [\\/]* | ?:[\\/]*)
33944 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33945 ;;
33946 *)
33947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33948for as_dir in $PATH
33949do
33950 IFS=$as_save_IFS
33951 test -z "$as_dir" && as_dir=.
33952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033954 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33956 break 2
33957 fi
33958done
33959 done
33960IFS=$as_save_IFS
33961
33962 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33963 ;;
33964esac
33965fi
33966RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33967if test -n "$RSVGDecodeDelegate"; then
33968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33969$as_echo "$RSVGDecodeDelegate" >&6; }
33970else
33971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33972$as_echo "no" >&6; }
33973fi
33974
33975
cristy3ed852e2009-09-05 21:47:34 +000033976# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33977set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033979$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033980if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033981 $as_echo_n "(cached) " >&6
33982else
33983 case $SCANDecodeDelegate in
33984 [\\/]* | ?:[\\/]*)
33985 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33986 ;;
33987 *)
33988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33989for as_dir in $PATH
33990do
33991 IFS=$as_save_IFS
33992 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033995 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033997 break 2
33998 fi
33999done
cristy8b350f62009-11-15 23:12:43 +000034000 done
cristy3ed852e2009-09-05 21:47:34 +000034001IFS=$as_save_IFS
34002
34003 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34004 ;;
34005esac
34006fi
34007SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34008if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034010$as_echo "$SCANDecodeDelegate" >&6; }
34011else
cristy8b350f62009-11-15 23:12:43 +000034012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034013$as_echo "no" >&6; }
34014fi
34015
34016
cristyec6934f2012-08-14 18:38:40 +000034017# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34018set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34020$as_echo_n "checking for $ac_word... " >&6; }
34021if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34022 $as_echo_n "(cached) " >&6
34023else
34024 case $SVGDecodeDelegate in
34025 [\\/]* | ?:[\\/]*)
34026 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34027 ;;
34028 *)
34029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34030for as_dir in $PATH
34031do
34032 IFS=$as_save_IFS
34033 test -z "$as_dir" && as_dir=.
34034 for ac_exec_ext in '' $ac_executable_extensions; do
34035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34036 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34038 break 2
34039 fi
34040done
34041 done
34042IFS=$as_save_IFS
34043
34044 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34045 ;;
34046esac
34047fi
34048SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34049if test -n "$SVGDecodeDelegate"; then
34050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34051$as_echo "$SVGDecodeDelegate" >&6; }
34052else
34053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34054$as_echo "no" >&6; }
34055fi
34056
34057
cristy3ed852e2009-09-05 21:47:34 +000034058# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34059set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034061$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034062if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034063 $as_echo_n "(cached) " >&6
34064else
34065 case $TXTDelegate in
34066 [\\/]* | ?:[\\/]*)
34067 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34068 ;;
34069 *)
34070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34071for as_dir in $PATH
34072do
34073 IFS=$as_save_IFS
34074 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034075 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034077 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034079 break 2
34080 fi
34081done
cristy8b350f62009-11-15 23:12:43 +000034082 done
cristy3ed852e2009-09-05 21:47:34 +000034083IFS=$as_save_IFS
34084
34085 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34086 ;;
34087esac
34088fi
34089TXTDelegate=$ac_cv_path_TXTDelegate
34090if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034092$as_echo "$TXTDelegate" >&6; }
34093else
cristy8b350f62009-11-15 23:12:43 +000034094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034095$as_echo "no" >&6; }
34096fi
34097
34098
cristy5ac9ac82010-07-29 13:24:24 +000034099# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34100set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34102$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034103if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034104 $as_echo_n "(cached) " >&6
34105else
34106 case $UniconvertorDelegate in
34107 [\\/]* | ?:[\\/]*)
34108 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34109 ;;
34110 *)
34111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34112for as_dir in $PATH
34113do
34114 IFS=$as_save_IFS
34115 test -z "$as_dir" && as_dir=.
34116 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034118 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34120 break 2
34121 fi
34122done
34123 done
34124IFS=$as_save_IFS
34125
34126 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34127 ;;
34128esac
34129fi
34130UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34131if test -n "$UniconvertorDelegate"; then
34132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34133$as_echo "$UniconvertorDelegate" >&6; }
34134else
34135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34136$as_echo "no" >&6; }
34137fi
34138
34139
cristy3ed852e2009-09-05 21:47:34 +000034140# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34141set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034143$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034144if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034145 $as_echo_n "(cached) " >&6
34146else
34147 case $WMFDecodeDelegate in
34148 [\\/]* | ?:[\\/]*)
34149 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34150 ;;
34151 *)
34152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34153for as_dir in $PATH
34154do
34155 IFS=$as_save_IFS
34156 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034157 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034159 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034161 break 2
34162 fi
34163done
cristy8b350f62009-11-15 23:12:43 +000034164 done
cristy3ed852e2009-09-05 21:47:34 +000034165IFS=$as_save_IFS
34166
34167 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34168 ;;
34169esac
34170fi
34171WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34172if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034174$as_echo "$WMFDecodeDelegate" >&6; }
34175else
cristy8b350f62009-11-15 23:12:43 +000034176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034177$as_echo "no" >&6; }
34178fi
34179
34180
34181# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34182set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034184$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034185if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034186 $as_echo_n "(cached) " >&6
34187else
34188 case $WWWDecodeDelegate in
34189 [\\/]* | ?:[\\/]*)
34190 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34191 ;;
34192 *)
34193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34194for as_dir in $PATH
34195do
34196 IFS=$as_save_IFS
34197 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034200 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034202 break 2
34203 fi
34204done
cristy8b350f62009-11-15 23:12:43 +000034205 done
cristy3ed852e2009-09-05 21:47:34 +000034206IFS=$as_save_IFS
34207
34208 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34209 ;;
34210esac
34211fi
34212WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34213if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034215$as_echo "$WWWDecodeDelegate" >&6; }
34216else
cristy8b350f62009-11-15 23:12:43 +000034217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034218$as_echo "no" >&6; }
34219fi
34220
34221
34222# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34223set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034225$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034226if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034227 $as_echo_n "(cached) " >&6
34228else
34229 case $XPSDelegate in
34230 [\\/]* | ?:[\\/]*)
34231 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34232 ;;
34233 *)
34234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34235for as_dir in $PATH
34236do
34237 IFS=$as_save_IFS
34238 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034239 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034241 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034243 break 2
34244 fi
34245done
cristy8b350f62009-11-15 23:12:43 +000034246 done
cristy3ed852e2009-09-05 21:47:34 +000034247IFS=$as_save_IFS
34248
34249 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34250 ;;
34251esac
34252fi
34253XPSDelegate=$ac_cv_path_XPSDelegate
34254if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034256$as_echo "$XPSDelegate" >&6; }
34257else
cristy8b350f62009-11-15 23:12:43 +000034258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034259$as_echo "no" >&6; }
34260fi
34261
34262
34263# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34264set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034266$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034267if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034268 $as_echo_n "(cached) " >&6
34269else
34270 case $ZipDelegate in
34271 [\\/]* | ?:[\\/]*)
34272 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34273 ;;
34274 *)
34275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34276for as_dir in $PATH
34277do
34278 IFS=$as_save_IFS
34279 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034280 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034282 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034284 break 2
34285 fi
34286done
cristy8b350f62009-11-15 23:12:43 +000034287 done
cristy3ed852e2009-09-05 21:47:34 +000034288IFS=$as_save_IFS
34289
34290 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34291 ;;
34292esac
34293fi
34294ZipDelegate=$ac_cv_path_ZipDelegate
34295if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034297$as_echo "$ZipDelegate" >&6; }
34298else
cristy8b350f62009-11-15 23:12:43 +000034299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034300$as_echo "no" >&6; }
34301fi
34302
34303
34304
34305# Prefer lpr to lp; lp needs options tacked on.
34306if test "$LPRDelegate" != no; then
34307 PrintDelegate="$LPRDelegate"
34308else
34309 PrintDelegate="$LPDelegate -c -s"
34310fi
34311
34312
34313# Installed ImageMagick utiltity paths
34314ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34315DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34316MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34317
34318# Set delegate booleans
34319have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34320have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34321have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34322have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34323have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034324have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034325have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34326have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034327have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34328have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34329
34330#
34331# Test for font directories
34332#
34333type_include_files=''
34334
cristy430a7312010-01-21 20:44:04 +000034335# Dejavu fonts.
34336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34337$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34338dejavu_font_dir=''
34339if test "${with_dejavu_font_dir}" != 'default'; then
34340 dejavu_font_dir="${with_dejavu_font_dir}/"
34341else
34342 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34343 if test -f "${font_dir}DejaVuSerif.ttf"; then
34344 dejavu_font_dir="${font_dir}"
34345 break 1
34346 fi
34347 done
34348fi
34349if test "${dejavu_font_dir}x" != 'x'; then
34350 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34352$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034353else
cristyad38abe2012-12-23 23:03:21 +000034354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34355$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034356fi
34357
34358
cristy3ed852e2009-09-05 21:47:34 +000034359# Windows
34360windows_font_dir=''
34361if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34362 windows_font_dir="${with_windows_font_dir}/"
34363fi
cristy430a7312010-01-21 20:44:04 +000034364if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034365 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34366 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34367 fi
34368 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34369 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34370 fi
34371 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34372 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34373 fi
34374fi
cristy430a7312010-01-21 20:44:04 +000034375if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034376 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34377fi
34378
34379
34380# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034382$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34383ghostscript_font_dir=''
34384if test "${with_gs_font_dir}" != 'default'; then
34385 ghostscript_font_dir="${with_gs_font_dir}/"
34386else
34387 if test "${native_win32_build}" = 'yes'; then
34388 # Native Windows Build
34389 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34390 if test -f "${font_dir}a010013l.pfb"; then
34391 ghostscript_font_dir="$font_dir"
34392 break 1
34393 fi
34394 done
34395 if test "${PSDelegate}" != 'gswin32c'; then
34396 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34397 fi
34398 else
34399 # Linux / Mac OS X / Unix Build
34400 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
34401 if test -f "${font_dir}a010013l.pfb"; then
34402 ghostscript_font_dir="${font_dir}"
34403 break 1
34404 fi
34405 done
34406 if test "${ghostscript_font_dir}x" = 'x'; then
34407 if test "$PSDelegate" != 'gs'; then
34408 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34409 fi
34410 fi
34411 fi
34412fi
34413if test "${ghostscript_font_dir}x" != 'x'; then
34414 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34416$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034417else
cristyad38abe2012-12-23 23:03:21 +000034418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34419$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034420fi
34421
34422case "${build_os}" in
34423 mingw* )
34424 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34425 ;;
34426esac
34427
34428
34429
34430#
34431# Handle case where user doesn't want frozen paths
34432#
34433if test "$with_frozenpaths" != 'yes'; then
34434 # Re-set delegate definitions to default (no paths)
34435 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034436 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34437 BZIPDelegate="$BZIPDelegateDefault"
34438 BrowseDelegate="$BrowseDelegateDefault"
34439 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34440 CatDelegate="$CatDelegateDefault"
34441 ConvertDelegate="$ConvertDelegateDefault"
34442 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34443 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34444 EchoDelegate="$EchoDelegateDefault"
34445 EditorDelegate="$EditorDelegateDefault"
34446 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34447 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34448 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34449 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34450 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34451 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34452 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034453 LaunchDelegate="$LaunchDelegateDefault"
34454 MANDelegate="$MANDelegateDefault"
34455 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34456 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034457 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034458 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34459 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034460 PCLDelegate="$PCLDelegateDefault"
34461 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34462 POVDelegate="$POVDelegateDefault"
34463 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034464 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34465 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034466 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034467 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034468 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034469 ShowImageDelegate="$ShowImageDelegateDefault"
34470 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034471 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034472 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34473 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34474 XPSDelegate="$XPSDelegateDefault"
34475 ZipDelegate="$ZipDelegateDefault"
34476fi
34477
34478# Delegate substitutions
34479
34480
34481
34482
34483
34484
34485
34486
34487
34488
34489
34490
34491
34492
34493
34494
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504
34505
34506
34507
34508
34509
34510
34511
34512
34513
34514
34515
34516
34517
34518
cristy3ed852e2009-09-05 21:47:34 +000034519#
34520# RPM support.
34521#
34522RPM=''
34523for ac_prog in gnutar gtar tar
34524do
34525 # Extract the first word of "$ac_prog", so it can be a program name with args.
34526set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034528$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034529if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034530 $as_echo_n "(cached) " >&6
34531else
34532 if test -n "$TAR"; then
34533 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34534else
34535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34536for as_dir in $PATH
34537do
34538 IFS=$as_save_IFS
34539 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034540 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034542 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034544 break 2
34545 fi
34546done
cristy8b350f62009-11-15 23:12:43 +000034547 done
cristy3ed852e2009-09-05 21:47:34 +000034548IFS=$as_save_IFS
34549
34550fi
34551fi
34552TAR=$ac_cv_prog_TAR
34553if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034555$as_echo "$TAR" >&6; }
34556else
cristy8b350f62009-11-15 23:12:43 +000034557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034558$as_echo "no" >&6; }
34559fi
34560
34561
34562 test -n "$TAR" && break
34563done
34564
34565for ac_prog in perl
34566do
34567 # Extract the first word of "$ac_prog", so it can be a program name with args.
34568set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034570$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034571if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034572 $as_echo_n "(cached) " >&6
34573else
34574 if test -n "$PERL"; then
34575 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34576else
34577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34578for as_dir in $PATH
34579do
34580 IFS=$as_save_IFS
34581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034584 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034586 break 2
34587 fi
34588done
cristy8b350f62009-11-15 23:12:43 +000034589 done
cristy3ed852e2009-09-05 21:47:34 +000034590IFS=$as_save_IFS
34591
34592fi
34593fi
34594PERL=$ac_cv_prog_PERL
34595if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034597$as_echo "$PERL" >&6; }
34598else
cristy8b350f62009-11-15 23:12:43 +000034599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034600$as_echo "no" >&6; }
34601fi
34602
34603
34604 test -n "$PERL" && break
34605done
34606
34607for ac_prog in rpmbuild rpm
34608do
34609 # Extract the first word of "$ac_prog", so it can be a program name with args.
34610set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034612$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034613if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034614 $as_echo_n "(cached) " >&6
34615else
34616 if test -n "$RPM"; then
34617 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34618else
34619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34620for as_dir in $PATH
34621do
34622 IFS=$as_save_IFS
34623 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034626 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034628 break 2
34629 fi
34630done
cristy8b350f62009-11-15 23:12:43 +000034631 done
cristy3ed852e2009-09-05 21:47:34 +000034632IFS=$as_save_IFS
34633
34634fi
34635fi
34636RPM=$ac_cv_prog_RPM
34637if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034639$as_echo "$RPM" >&6; }
34640else
cristy8b350f62009-11-15 23:12:43 +000034641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034642$as_echo "no" >&6; }
34643fi
34644
34645
34646 test -n "$RPM" && break
34647done
34648
34649
cristy73bd4a52010-10-05 11:24:23 +000034650ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34651
34652
34653AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34654
34655
34656AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34657
34658
34659AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34660
34661
34662 if test "x$RPM" != "x" ; then
34663 RPM_DELEGATE_TRUE=
34664 RPM_DELEGATE_FALSE='#'
34665else
34666 RPM_DELEGATE_TRUE='#'
34667 RPM_DELEGATE_FALSE=
34668fi
34669
cristy3ed852e2009-09-05 21:47:34 +000034670
34671#
34672# 7ZIP support (http://p7zip.sourceforge.net/)
34673#
34674P7ZIP=''
34675for ac_prog in 7za
34676do
34677 # Extract the first word of "$ac_prog", so it can be a program name with args.
34678set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034680$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034681if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034682 $as_echo_n "(cached) " >&6
34683else
34684 if test -n "$P7ZIP"; then
34685 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34686else
34687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34688for as_dir in $PATH
34689do
34690 IFS=$as_save_IFS
34691 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034692 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034694 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034696 break 2
34697 fi
34698done
cristy8b350f62009-11-15 23:12:43 +000034699 done
cristy3ed852e2009-09-05 21:47:34 +000034700IFS=$as_save_IFS
34701
34702fi
34703fi
34704P7ZIP=$ac_cv_prog_P7ZIP
34705if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034707$as_echo "$P7ZIP" >&6; }
34708else
cristy8b350f62009-11-15 23:12:43 +000034709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034710$as_echo "no" >&6; }
34711fi
34712
34713
34714 test -n "$P7ZIP" && break
34715done
34716
34717
cristy73bd4a52010-10-05 11:24:23 +000034718 if test "x$P7ZIP" != "x" ; then
34719 P7ZIP_DELEGATE_TRUE=
34720 P7ZIP_DELEGATE_FALSE='#'
34721else
34722 P7ZIP_DELEGATE_TRUE='#'
34723 P7ZIP_DELEGATE_FALSE=
34724fi
34725
cristy3ed852e2009-09-05 21:47:34 +000034726
34727#
34728# ZIP support (http://www.info-zip.org/Zip.html)
34729#
34730ZIP=''
34731for ac_prog in zip
34732do
34733 # Extract the first word of "$ac_prog", so it can be a program name with args.
34734set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034737if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034738 $as_echo_n "(cached) " >&6
34739else
34740 if test -n "$ZIP"; then
34741 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34742else
34743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34744for as_dir in $PATH
34745do
34746 IFS=$as_save_IFS
34747 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034748 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034750 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034752 break 2
34753 fi
34754done
cristy8b350f62009-11-15 23:12:43 +000034755 done
cristy3ed852e2009-09-05 21:47:34 +000034756IFS=$as_save_IFS
34757
34758fi
34759fi
34760ZIP=$ac_cv_prog_ZIP
34761if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034763$as_echo "$ZIP" >&6; }
34764else
cristy8b350f62009-11-15 23:12:43 +000034765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034766$as_echo "no" >&6; }
34767fi
34768
34769
34770 test -n "$ZIP" && break
34771done
34772
34773
cristy73bd4a52010-10-05 11:24:23 +000034774 if test "x$ZIP" != "x" ; then
34775 ZIP_DELEGATE_TRUE=
34776 ZIP_DELEGATE_FALSE='#'
34777else
34778 ZIP_DELEGATE_TRUE='#'
34779 ZIP_DELEGATE_FALSE=
34780fi
34781
cristy3ed852e2009-09-05 21:47:34 +000034782
34783#
34784# GhostPCL related configuration.
34785#
34786PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034787PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034788PCLMonoDevice=pbmraw
34789if test -z "$PCLVersion"; then
34790 PCLVersion='unknown'
34791fi
34792if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34794$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034796$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34798$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034799 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034801$as_echo_n "checking for pcl color device... " >&6; }
34802 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34803 :
34804 else
34805 PCLColorDevice=ppmraw
34806 fi
cristyad38abe2012-12-23 23:03:21 +000034807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34808$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034809
34810 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034812$as_echo_n "checking for pcl CMYK device... " >&6; }
34813 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34814 :
34815 else
34816 PCLCMYKDevice=$PCLColorDevice
34817 fi
cristyad38abe2012-12-23 23:03:21 +000034818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34819$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034820
34821 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034823$as_echo_n "checking for pcl mono device... " >&6; }
34824 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34825 :
34826 else
34827 PCLMonoDevice=$PCLColorDevice
34828 fi
cristyad38abe2012-12-23 23:03:21 +000034829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34830$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034831fi
34832
34833
34834
34835
34836
34837
34838#
34839# GhostXPS related configuration.
34840#
34841XPSColorDevice=ppmraw
34842XPSCMYKDevice=bmpsep8
34843XPSMonoDevice=pbmraw
34844if test -z "$XPSVersion"; then
34845 XPSVersion='unknown'
34846fi
34847if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34849$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034851$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34853$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034854 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034856$as_echo_n "checking for xps color device... " >&6; }
34857 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34858 :
34859 else
34860 XPSColorDevice=ppmraw
34861 fi
cristyad38abe2012-12-23 23:03:21 +000034862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
34863$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034864
34865 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034867$as_echo_n "checking for xps CMYK device... " >&6; }
34868 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34869 :
34870 else
34871 XPSCMYKDevice=$XPSColorDevice
34872 fi
cristyad38abe2012-12-23 23:03:21 +000034873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
34874$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034875
34876 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034878$as_echo_n "checking for xps mono device... " >&6; }
34879 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34880 :
34881 else
34882 XPSMonoDevice=$XPSColorDevice
34883 fi
cristyad38abe2012-12-23 23:03:21 +000034884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
34885$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034886fi
34887
34888
34889
34890
34891
34892
34893#
34894# Ghostscript related configuration.
34895#
cristya97426c2011-02-04 01:41:27 +000034896GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034897GSColorDevice=pnmraw
34898GSCMYKDevice=pam
34899GSMonoDevice=pbmraw
34900GSPDFDevice=pdfwrite
34901GSPSDevice=pswrite
34902GSEPSDevice=epswrite
34903GSVersion='unknown'
34904if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34906$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034908$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34910$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034912$as_echo_n "checking for Ghostscript version... " >&6; }
34913 if GSVersion=`$PSDelegate --version`; then
34914 :
34915 else
34916 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34917 fi
cristyad38abe2012-12-23 23:03:21 +000034918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
34919$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034920
34921 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034923$as_echo_n "checking for gs alpha device... " >&6; }
34924 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34925 :
34926 else
34927 GSAlphaDevice=pnmraw
34928 fi
cristyad38abe2012-12-23 23:03:21 +000034929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
34930$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034931
34932 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034934$as_echo_n "checking for gs color device... " >&6; }
34935 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34936 :
34937 else
34938 GSColorDevice=pnmraw
34939 fi
cristyad38abe2012-12-23 23:03:21 +000034940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
34941$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034942
34943 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034945$as_echo_n "checking for gs CMYK device... " >&6; }
34946 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34947 :
34948 else
34949 GSCMYKDevice=bmpsep8
34950 fi
cristyad38abe2012-12-23 23:03:21 +000034951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
34952$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034953
34954 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034956$as_echo_n "checking for gs mono device... " >&6; }
34957 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34958 :
34959 else
34960 GSMonoDevice=$GSColorDevice
34961 fi
cristyad38abe2012-12-23 23:03:21 +000034962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
34963$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034964
34965 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034967$as_echo_n "checking for gs PDF writing device... " >&6; }
34968 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34969 :
34970 else
34971 GSPDFDevice=nodevice
34972 fi
cristyad38abe2012-12-23 23:03:21 +000034973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
34974$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034975
34976 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034978$as_echo_n "checking for gs PS writing device... " >&6; }
34979 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34980 :
34981 else
34982 GSPSDevice=nodevice
34983 fi
cristyad38abe2012-12-23 23:03:21 +000034984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
34985$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034986
34987 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034989$as_echo_n "checking for gs EPS writing device... " >&6; }
34990 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34991 :
34992 else
34993 GSEPSDevice=nodevice
34994 fi
cristyad38abe2012-12-23 23:03:21 +000034995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
34996$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034997fi
34998
34999
35000
35001
35002
35003
35004
35005
35006
35007
35008#
35009# PerlMagick-related configuration
35010#
35011
35012# Look for PERL if PerlMagick requested
35013# If name/path of desired PERL interpreter is specified, look for that one first
35014have_perl='no'
35015if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35017$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035019$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35021$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035022 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035024$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035025if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035026 $as_echo_n "(cached) " >&6
35027else
35028 ac_cv_path_PERL="$with_perl"
35029fi
cristy8b350f62009-11-15 23:12:43 +000035030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035031$as_echo "$ac_cv_path_PERL" >&6; };
35032 PERL=$ac_cv_path_PERL
35033 have_perl="$ac_cv_path_PERL"
35034 else
35035 for ac_prog in perl perl5
35036do
35037 # Extract the first word of "$ac_prog", so it can be a program name with args.
35038set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035041if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035042 $as_echo_n "(cached) " >&6
35043else
35044 case $PERL in
35045 [\\/]* | ?:[\\/]*)
35046 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35047 ;;
35048 *)
35049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35050for as_dir in $PATH
35051do
35052 IFS=$as_save_IFS
35053 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035056 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035058 break 2
35059 fi
35060done
cristy8b350f62009-11-15 23:12:43 +000035061 done
cristy3ed852e2009-09-05 21:47:34 +000035062IFS=$as_save_IFS
35063
35064 ;;
35065esac
35066fi
35067PERL=$ac_cv_path_PERL
35068if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035070$as_echo "$PERL" >&6; }
35071else
cristy8b350f62009-11-15 23:12:43 +000035072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035073$as_echo "no" >&6; }
35074fi
35075
35076
35077 test -n "$PERL" && break
35078done
35079 if test "$ac_cv_path_PERL"; then
35080 have_perl="$ac_cv_path_PERL"
35081 fi
35082 fi
35083fi
35084
cristy949301e2010-01-06 01:38:40 +000035085if test "$with_perl" != 'yes' ; then
35086 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35087fi
35088
35089PERL_SUPPORTS_DESTDIR='no'
35090
cristy3ed852e2009-09-05 21:47:34 +000035091with_perl_static='no'
35092with_perl_dynamic='no'
35093if test "$have_perl" != 'no'; then
35094 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35095 with_perl_static='yes'
35096 fi
35097 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35098 with_perl_dynamic='yes'
35099 fi
35100 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035101
35102
35103
35104
35105 if test -n "$PERL"; then :
35106
35107 ax_perl_version="5.8.1"
35108
35109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35110$as_echo_n "checking for perl version... " >&6; }
35111
35112 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35113
35114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35115$as_echo "$perl_version" >&6; }
35116
35117 PERL_VERSION=$perl_version
35118
35119
35120
35121
35122
35123 # Used to indicate true or false condition
35124 ax_compare_version=false
35125
35126 # Convert the two version strings to be compared into a format that
35127 # allows a simple string comparison. The end result is that a version
35128 # string of the form 1.12.5-r617 will be converted to the form
35129 # 0001001200050617. In other words, each number is zero padded to four
35130 # digits, and non digits are removed.
35131
35132 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35133 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35134 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35135 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35136 -e 's/[^0-9]//g'`
35137
35138
35139 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35140 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35141 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35142 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35143 -e 's/[^0-9]//g'`
35144
35145
35146 ax_compare_version=`echo "x$ax_compare_version_A
35147x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35148
35149
35150
35151 if test "$ax_compare_version" = "true" ; then
35152
35153 :
35154 PERL_SUPPORTS_DESTDIR='yes'
35155
35156 else
35157 :
35158 PERL_SUPPORTS_DESTDIR='no'
35159
35160 fi
35161
35162
35163else
35164
35165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35166$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35167 PERL_SUPPORTS_DESTDIR='no'
35168
cristy3ed852e2009-09-05 21:47:34 +000035169fi
cristy73bd4a52010-10-05 11:24:23 +000035170
35171fi
35172 if test "$have_perl" != 'no'; then
35173 WITH_PERL_TRUE=
35174 WITH_PERL_FALSE='#'
35175else
35176 WITH_PERL_TRUE='#'
35177 WITH_PERL_FALSE=
35178fi
35179
35180 if test $with_perl_static = 'yes'; then
35181 WITH_PERL_STATIC_TRUE=
35182 WITH_PERL_STATIC_FALSE='#'
35183else
35184 WITH_PERL_STATIC_TRUE='#'
35185 WITH_PERL_STATIC_FALSE=
35186fi
35187
35188 if test $with_perl_dynamic = 'yes'; then
35189 WITH_PERL_DYNAMIC_TRUE=
35190 WITH_PERL_DYNAMIC_FALSE='#'
35191else
35192 WITH_PERL_DYNAMIC_TRUE='#'
35193 WITH_PERL_DYNAMIC_FALSE=
35194fi
35195
cristy3ed852e2009-09-05 21:47:34 +000035196
35197
35198# Determine path to pick up MagickCore library from for use with building PerlMagick
35199MAGICKCORE_PATH="${LIB_DIR}"
35200if test $with_perl_static = 'yes'; then
35201 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35202 libtool_objdir=$objdir
35203
35204 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035205 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035206fi
35207
35208
cristy2a3eb392012-12-17 13:39:20 +000035209# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035210MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035211if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035212 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035213fi
cristy2a3eb392012-12-17 13:39:20 +000035214if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035215 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035216fi
35217if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035218 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035219fi
35220if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035221 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035222fi
35223if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035224 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035225fi
35226if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035227 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035228fi
35229if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035230 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035231fi
35232if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035233 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035234fi
35235if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035236 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035237fi
35238if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035239 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035240fi
35241if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035242 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035243fi
35244if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035245 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035246fi
35247if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035248 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035249fi
35250if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035251 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035252fi
35253if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035254 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035255fi
35256if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035257 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035258fi
35259if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035260 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035261fi
35262if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035263 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035264fi
35265if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035266 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035267fi
35268if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035269 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035270fi
35271if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035272 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035273fi
35274have_ps='no'
35275if test "$have_dps" = 'yes' || \
35276 test "$have_gs" = 'yes' || \
35277 test "${native_win32_build}" = 'yes' ; then
35278 have_ps='yes'
35279fi
35280if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035281 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035282fi
35283if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035284 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035285fi
35286if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035287 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035288fi
35289if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035290 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035291fi
35292if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035293 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035294fi
35295if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035296 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035297fi
35298if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035299 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035300fi
35301if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035302 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035303fi
35304if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035305 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035306fi
35307if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035308 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035309fi
cristy2a3eb392012-12-17 13:39:20 +000035310# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035311MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035312MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035313
35314
cristyfa161182012-12-19 15:45:28 +000035315
cristy3ed852e2009-09-05 21:47:34 +000035316#
35317# Handle special compiler flags
35318#
35319
35320# Add '-p' if prof source profiling support enabled
35321if test "$enable_prof" = 'yes'; then
35322 CFLAGS="-p $CFLAGS"
35323 CXXFLAGS="-p $CXXFLAGS"
35324 LDFLAGS="-p $LDFLAGS"
35325fi
35326
35327# Add '-pg' if gprof source profiling support enabled
35328if test "$enable_gprof" = 'yes'; then
35329 CFLAGS="-pg $CFLAGS"
35330 CXXFLAGS="-pg $CXXFLAGS"
35331 LDFLAGS="-pg $LDFLAGS"
35332fi
35333
35334# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35335# This is a gcc-specific feature
35336if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035338$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035339if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035340 $as_echo_n "(cached) " >&6
35341else
35342 ac_check_lib_save_LIBS=$LIBS
35343LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035345/* end confdefs.h. */
35346
35347/* Override any GCC internal prototype to avoid an error.
35348 Use char because int might match the return type of a GCC
35349 builtin and then its argument prototype would still apply. */
35350#ifdef __cplusplus
35351extern "C"
35352#endif
35353char _gcov_init ();
35354int
35355main ()
35356{
35357return _gcov_init ();
35358 ;
35359 return 0;
35360}
35361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035362if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035363 ac_cv_lib_gcov__gcov_init=yes
35364else
cristy8b350f62009-11-15 23:12:43 +000035365 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035366fi
cristy8b350f62009-11-15 23:12:43 +000035367rm -f core conftest.err conftest.$ac_objext \
35368 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035369LIBS=$ac_check_lib_save_LIBS
35370fi
cristy8b350f62009-11-15 23:12:43 +000035371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035372$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035373if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035374 cat >>confdefs.h <<_ACEOF
35375#define HAVE_LIBGCOV 1
35376_ACEOF
35377
35378 LIBS="-lgcov $LIBS"
35379
35380fi
35381
cristy8b350f62009-11-15 23:12:43 +000035382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035383$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035384if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035385 $as_echo_n "(cached) " >&6
35386else
35387 ac_check_lib_save_LIBS=$LIBS
35388LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035390/* end confdefs.h. */
35391
35392/* Override any GCC internal prototype to avoid an error.
35393 Use char because int might match the return type of a GCC
35394 builtin and then its argument prototype would still apply. */
35395#ifdef __cplusplus
35396extern "C"
35397#endif
35398char __gcov_init ();
35399int
35400main ()
35401{
35402return __gcov_init ();
35403 ;
35404 return 0;
35405}
35406_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035407if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035408 ac_cv_lib_gcov___gcov_init=yes
35409else
cristy8b350f62009-11-15 23:12:43 +000035410 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035411fi
cristy8b350f62009-11-15 23:12:43 +000035412rm -f core conftest.err conftest.$ac_objext \
35413 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035414LIBS=$ac_check_lib_save_LIBS
35415fi
cristy8b350f62009-11-15 23:12:43 +000035416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035417$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035418if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035419 cat >>confdefs.h <<_ACEOF
35420#define HAVE_LIBGCOV 1
35421_ACEOF
35422
35423 LIBS="-lgcov $LIBS"
35424
35425fi
35426
35427 case "$target_os" in
35428 darwin*)
35429 OSX_GCOV_LDFLAG="-Wl,-single_module"
35430 ;;
35431 *)
35432 OSX_GCOV_LDFLAG=""
35433 ;;
35434 esac
35435
35436 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35437 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35438 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35439fi
35440
35441#
35442# Build library dependency list for libMagickCore
35443#
35444
cristyc6722092012-10-14 00:19:31 +000035445if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035446 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 +000035447else
cristy3a75f062012-09-08 23:29:40 +000035448 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 +000035449fi
35450
35451
35452#
35453# Remove extraneous spaces from output variables (asthetic)
35454#
35455X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35456X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35457X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35458X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35459
35460CC=`echo $CC | sed -e 's/ */ /g'`
35461CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35462CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35463CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035464DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35465LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35466TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35467MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35468#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35469
35470# Pass only user-provided LIBS as "global" libraries
35471LIBS=$USER_LIBS
35472
35473#AC_SUBST(CPPFLAGS)
35474
35475#AC_SUBST(LDFLAGS)
35476#AC_SUBST(X_PRE_LIBS)
35477#AC_SUBST(X_LIBS)
35478#AC_SUBST(X_EXTRA_LIBS)
35479
35480MAGICK_CFLAGS=$CFLAGS
35481MAGICK_CXXFLAGS="$CXXFLAGS"
35482MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35483MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35484MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035485MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035486
35487
35488
35489
35490
35491
35492
35493
35494# Set configured scripts to executable.
35495ac_config_commands="$ac_config_commands default"
35496
cristy2bd4b6e2012-07-22 15:29:11 +000035497ac_config_commands="$ac_config_commands magick.sh.in"
35498
cristy3ed852e2009-09-05 21:47:34 +000035499ac_config_commands="$ac_config_commands MagickCore-config.in"
35500
cristy3ed852e2009-09-05 21:47:34 +000035501ac_config_commands="$ac_config_commands MagickWand-config.in"
35502
cristy3ed852e2009-09-05 21:47:34 +000035503ac_config_commands="$ac_config_commands Magick++-config.in"
35504
35505ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35506
35507
cristyad38abe2012-12-23 23:03:21 +000035508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35509$as_echo "-------------------------------------------------------------" >&6; }
35510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35511$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035512cat >confcache <<\_ACEOF
35513# This file is a shell script that caches the results of configure
35514# tests run on this system so they can be shared between configure
35515# scripts and configure runs, see configure's option --config-cache.
35516# It is not useful on other systems. If it contains results you don't
35517# want to keep, you may remove or edit it.
35518#
35519# config.status only pays attention to the cache file if you give it
35520# the --recheck option to rerun configure.
35521#
35522# `ac_cv_env_foo' variables (set or unset) will be overridden when
35523# loading this file, other *unset* `ac_cv_foo' will be assigned the
35524# following values.
35525
35526_ACEOF
35527
35528# The following way of writing the cache mishandles newlines in values,
35529# but we know of no workaround that is simple, portable, and efficient.
35530# So, we kill variables containing newlines.
35531# Ultrix sh set writes to stderr and can't be redirected directly,
35532# and sets the high bit in the cache file unless we assign to the vars.
35533(
35534 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35535 eval ac_val=\$$ac_var
35536 case $ac_val in #(
35537 *${as_nl}*)
35538 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035539 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035540$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35541 esac
35542 case $ac_var in #(
35543 _ | IFS | as_nl) ;; #(
35544 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035545 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035546 esac ;;
35547 esac
35548 done
35549
35550 (set) 2>&1 |
35551 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35552 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035553 # `set' does not quote correctly, so add quotes: double-quote
35554 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035555 sed -n \
35556 "s/'/'\\\\''/g;
35557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35558 ;; #(
35559 *)
35560 # `set' quotes correctly as required by POSIX, so do not add quotes.
35561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35562 ;;
35563 esac |
35564 sort
35565) |
35566 sed '
35567 /^ac_cv_env_/b end
35568 t clear
35569 :clear
35570 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35571 t end
35572 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35573 :end' >>confcache
35574if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35575 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035576 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035577 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035578$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035579 if test ! -f "$cache_file" || test -h "$cache_file"; then
35580 cat confcache >"$cache_file"
35581 else
35582 case $cache_file in #(
35583 */* | ?:*)
35584 mv -f confcache "$cache_file"$$ &&
35585 mv -f "$cache_file"$$ "$cache_file" ;; #(
35586 *)
35587 mv -f confcache "$cache_file" ;;
35588 esac
35589 fi
35590 fi
cristy3ed852e2009-09-05 21:47:34 +000035591 else
cristy8b350f62009-11-15 23:12:43 +000035592 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035593$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35594 fi
35595fi
35596rm -f confcache
35597
35598test "x$prefix" = xNONE && prefix=$ac_default_prefix
35599# Let make expand exec_prefix.
35600test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35601
35602DEFS=-DHAVE_CONFIG_H
35603
35604ac_libobjs=
35605ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035606U=
cristy3ed852e2009-09-05 21:47:34 +000035607for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35608 # 1. Remove the extension, and $U if already installed.
35609 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35610 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35611 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35612 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035613 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35614 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035615done
35616LIBOBJS=$ac_libobjs
35617
35618LTLIBOBJS=$ac_ltlibobjs
35619
35620
cristyc0890a62012-07-19 00:18:20 +000035621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35622$as_echo_n "checking that generated files are newer than configure... " >&6; }
35623 if test -n "$am_sleep_pid"; then
35624 # Hide warnings about reused PIDs.
35625 wait $am_sleep_pid 2>/dev/null
35626 fi
35627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35628$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035629 if test -n "$EXEEXT"; then
35630 am__EXEEXT_TRUE=
35631 am__EXEEXT_FALSE='#'
35632else
35633 am__EXEEXT_TRUE='#'
35634 am__EXEEXT_FALSE=
35635fi
cristy3ed852e2009-09-05 21:47:34 +000035636
cristy73bd4a52010-10-05 11:24:23 +000035637if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035638 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035639Usually this means the macro was only invoked conditionally." "$LINENO" 5
35640fi
35641if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035642 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035643Usually this means the macro was only invoked conditionally." "$LINENO" 5
35644fi
35645if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035646 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035647Usually this means the macro was only invoked conditionally." "$LINENO" 5
35648fi
35649if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035650 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035651Usually this means the macro was only invoked conditionally." "$LINENO" 5
35652fi
cristy9b86f202012-11-28 21:55:35 +000035653if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35654 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35655Usually this means the macro was only invoked conditionally." "$LINENO" 5
35656fi
cristy73bd4a52010-10-05 11:24:23 +000035657if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035658 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035659Usually this means the macro was only invoked conditionally." "$LINENO" 5
35660fi
35661if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035662 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035663Usually this means the macro was only invoked conditionally." "$LINENO" 5
35664fi
35665if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035666 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035667Usually this means the macro was only invoked conditionally." "$LINENO" 5
35668fi
35669if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035670 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035671Usually this means the macro was only invoked conditionally." "$LINENO" 5
35672fi
cristy73bd4a52010-10-05 11:24:23 +000035673if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035674 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035675Usually this means the macro was only invoked conditionally." "$LINENO" 5
35676fi
35677if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035678 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035679Usually this means the macro was only invoked conditionally." "$LINENO" 5
35680fi
cristy73bd4a52010-10-05 11:24:23 +000035681if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035682 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035683Usually this means the macro was only invoked conditionally." "$LINENO" 5
35684fi
cristy71d8c202012-03-20 17:05:01 +000035685if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35686 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35687Usually this means the macro was only invoked conditionally." "$LINENO" 5
35688fi
cristy73bd4a52010-10-05 11:24:23 +000035689
35690if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035691 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035692Usually this means the macro was only invoked conditionally." "$LINENO" 5
35693fi
35694if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035695 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035696Usually this means the macro was only invoked conditionally." "$LINENO" 5
35697fi
35698if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035699 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035700Usually this means the macro was only invoked conditionally." "$LINENO" 5
35701fi
35702if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035703 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035704Usually this means the macro was only invoked conditionally." "$LINENO" 5
35705fi
35706if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035707 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035708Usually this means the macro was only invoked conditionally." "$LINENO" 5
35709fi
35710if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035711 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035712Usually this means the macro was only invoked conditionally." "$LINENO" 5
35713fi
cristy5eef09f2012-10-16 12:08:28 +000035714if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35715 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35716Usually this means the macro was only invoked conditionally." "$LINENO" 5
35717fi
cristy73bd4a52010-10-05 11:24:23 +000035718if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035719 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035720Usually this means the macro was only invoked conditionally." "$LINENO" 5
35721fi
35722if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035723 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035724Usually this means the macro was only invoked conditionally." "$LINENO" 5
35725fi
35726if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035727 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035728Usually this means the macro was only invoked conditionally." "$LINENO" 5
35729fi
35730if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035731 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035732Usually this means the macro was only invoked conditionally." "$LINENO" 5
35733fi
35734if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035735 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035736Usually this means the macro was only invoked conditionally." "$LINENO" 5
35737fi
35738if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035739 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035740Usually this means the macro was only invoked conditionally." "$LINENO" 5
35741fi
35742if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035743 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035744Usually this means the macro was only invoked conditionally." "$LINENO" 5
35745fi
35746if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035747 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035748Usually this means the macro was only invoked conditionally." "$LINENO" 5
35749fi
35750if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035751 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035752Usually this means the macro was only invoked conditionally." "$LINENO" 5
35753fi
35754if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035755 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035756Usually this means the macro was only invoked conditionally." "$LINENO" 5
35757fi
35758if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035759 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035760Usually this means the macro was only invoked conditionally." "$LINENO" 5
35761fi
35762if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035763 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035764Usually this means the macro was only invoked conditionally." "$LINENO" 5
35765fi
35766if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035767 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035768Usually this means the macro was only invoked conditionally." "$LINENO" 5
35769fi
35770if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035771 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035772Usually this means the macro was only invoked conditionally." "$LINENO" 5
35773fi
cristyfbb0ef02010-12-19 02:32:11 +000035774if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35775 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35776Usually this means the macro was only invoked conditionally." "$LINENO" 5
35777fi
cristy73bd4a52010-10-05 11:24:23 +000035778if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035779 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035780Usually this means the macro was only invoked conditionally." "$LINENO" 5
35781fi
cristy41cbe8a2011-10-27 01:35:18 +000035782if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35783 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35784Usually this means the macro was only invoked conditionally." "$LINENO" 5
35785fi
cristya054b762012-03-26 23:16:00 +000035786if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35787 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035788Usually this means the macro was only invoked conditionally." "$LINENO" 5
35789fi
cristy73bd4a52010-10-05 11:24:23 +000035790if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035791 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035792Usually this means the macro was only invoked conditionally." "$LINENO" 5
35793fi
35794if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035795 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035796Usually this means the macro was only invoked conditionally." "$LINENO" 5
35797fi
35798if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035799 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035800Usually this means the macro was only invoked conditionally." "$LINENO" 5
35801fi
35802if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035803 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035804Usually this means the macro was only invoked conditionally." "$LINENO" 5
35805fi
cristyb1860752011-03-14 00:27:46 +000035806if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35807 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35808Usually this means the macro was only invoked conditionally." "$LINENO" 5
35809fi
cristy73bd4a52010-10-05 11:24:23 +000035810if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035811 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035812Usually this means the macro was only invoked conditionally." "$LINENO" 5
35813fi
35814if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035815 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035816Usually this means the macro was only invoked conditionally." "$LINENO" 5
35817fi
35818if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035819 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035820Usually this means the macro was only invoked conditionally." "$LINENO" 5
35821fi
35822if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035823 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035824Usually this means the macro was only invoked conditionally." "$LINENO" 5
35825fi
35826if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035827 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035828Usually this means the macro was only invoked conditionally." "$LINENO" 5
35829fi
35830if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035831 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035832Usually this means the macro was only invoked conditionally." "$LINENO" 5
35833fi
35834if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035835 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035836Usually this means the macro was only invoked conditionally." "$LINENO" 5
35837fi
35838if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035839 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035840Usually this means the macro was only invoked conditionally." "$LINENO" 5
35841fi
cristy3ed852e2009-09-05 21:47:34 +000035842
cristyda16f162011-02-19 23:52:17 +000035843: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035844ac_write_fail=0
35845ac_clean_files_save=$ac_clean_files
35846ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035847{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035848$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035849as_write_fail=0
35850cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035851#! $SHELL
35852# Generated by $as_me.
35853# Run this file to recreate the current configuration.
35854# Compiler output produced by configure, useful for debugging
35855# configure, is in config.log if it exists.
35856
35857debug=false
35858ac_cs_recheck=false
35859ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035860
cristy8b350f62009-11-15 23:12:43 +000035861SHELL=\${CONFIG_SHELL-$SHELL}
35862export SHELL
35863_ASEOF
35864cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35865## -------------------- ##
35866## M4sh Initialization. ##
35867## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035868
35869# Be more Bourne compatible
35870DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035871if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035872 emulate sh
35873 NULLCMD=:
35874 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35875 # is contrary to our usage. Disable this feature.
35876 alias -g '${1+"$@"}'='"$@"'
35877 setopt NO_GLOB_SUBST
35878else
cristy8b350f62009-11-15 23:12:43 +000035879 case `(set -o) 2>/dev/null` in #(
35880 *posix*) :
35881 set -o posix ;; #(
35882 *) :
35883 ;;
cristy3ed852e2009-09-05 21:47:34 +000035884esac
cristy3ed852e2009-09-05 21:47:34 +000035885fi
35886
35887
cristy3ed852e2009-09-05 21:47:34 +000035888as_nl='
35889'
35890export as_nl
35891# Printing a long string crashes Solaris 7 /usr/bin/printf.
35892as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35893as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35894as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035895# Prefer a ksh shell builtin over an external printf program on Solaris,
35896# but without wasting forks for bash or zsh.
35897if test -z "$BASH_VERSION$ZSH_VERSION" \
35898 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35899 as_echo='print -r --'
35900 as_echo_n='print -rn --'
35901elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035902 as_echo='printf %s\n'
35903 as_echo_n='printf %s'
35904else
35905 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35906 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35907 as_echo_n='/usr/ucb/echo -n'
35908 else
35909 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35910 as_echo_n_body='eval
35911 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035912 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035913 *"$as_nl"*)
35914 expr "X$arg" : "X\\(.*\\)$as_nl";
35915 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35916 esac;
35917 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35918 '
35919 export as_echo_n_body
35920 as_echo_n='sh -c $as_echo_n_body as_echo'
35921 fi
35922 export as_echo_body
35923 as_echo='sh -c $as_echo_body as_echo'
35924fi
35925
35926# The user is always right.
35927if test "${PATH_SEPARATOR+set}" != set; then
35928 PATH_SEPARATOR=:
35929 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35930 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35931 PATH_SEPARATOR=';'
35932 }
35933fi
35934
cristy3ed852e2009-09-05 21:47:34 +000035935
35936# IFS
35937# We need space, tab and new line, in precisely that order. Quoting is
35938# there to prevent editors from complaining about space-tab.
35939# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35940# splitting by setting IFS to empty value.)
35941IFS=" "" $as_nl"
35942
35943# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035944as_myself=
cristy8b350f62009-11-15 23:12:43 +000035945case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035946 *[\\/]* ) as_myself=$0 ;;
35947 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35948for as_dir in $PATH
35949do
35950 IFS=$as_save_IFS
35951 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035952 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35953 done
cristy3ed852e2009-09-05 21:47:34 +000035954IFS=$as_save_IFS
35955
35956 ;;
35957esac
35958# We did not find ourselves, most probably we were run as `sh COMMAND'
35959# in which case we are not to be found in the path.
35960if test "x$as_myself" = x; then
35961 as_myself=$0
35962fi
35963if test ! -f "$as_myself"; then
35964 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035965 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035966fi
35967
cristy8b350f62009-11-15 23:12:43 +000035968# Unset variables that we do not need and which cause bugs (e.g. in
35969# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35970# suppresses any "Segmentation fault" message there. '((' could
35971# trigger a bug in pdksh 5.2.14.
35972for as_var in BASH_ENV ENV MAIL MAILPATH
35973do eval test x\${$as_var+set} = xset \
35974 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035975done
35976PS1='$ '
35977PS2='> '
35978PS4='+ '
35979
35980# NLS nuisances.
35981LC_ALL=C
35982export LC_ALL
35983LANGUAGE=C
35984export LANGUAGE
35985
cristy8b350f62009-11-15 23:12:43 +000035986# CDPATH.
35987(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35988
35989
cristy98dddb52010-11-04 00:30:15 +000035990# as_fn_error STATUS ERROR [LINENO LOG_FD]
35991# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035992# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35993# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035994# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035995as_fn_error ()
35996{
cristy98dddb52010-11-04 00:30:15 +000035997 as_status=$1; test $as_status -eq 0 && as_status=1
35998 if test "$4"; then
35999 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36000 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036001 fi
cristy98dddb52010-11-04 00:30:15 +000036002 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036003 as_fn_exit $as_status
36004} # as_fn_error
36005
36006
36007# as_fn_set_status STATUS
36008# -----------------------
36009# Set $? to STATUS, without forking.
36010as_fn_set_status ()
36011{
36012 return $1
36013} # as_fn_set_status
36014
36015# as_fn_exit STATUS
36016# -----------------
36017# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36018as_fn_exit ()
36019{
36020 set +e
36021 as_fn_set_status $1
36022 exit $1
36023} # as_fn_exit
36024
36025# as_fn_unset VAR
36026# ---------------
36027# Portably unset VAR.
36028as_fn_unset ()
36029{
36030 { eval $1=; unset $1;}
36031}
36032as_unset=as_fn_unset
36033# as_fn_append VAR VALUE
36034# ----------------------
36035# Append the text in VALUE to the end of the definition contained in VAR. Take
36036# advantage of any shell optimizations that allow amortized linear growth over
36037# repeated appends, instead of the typical quadratic growth present in naive
36038# implementations.
36039if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36040 eval 'as_fn_append ()
36041 {
36042 eval $1+=\$2
36043 }'
36044else
36045 as_fn_append ()
36046 {
36047 eval $1=\$$1\$2
36048 }
36049fi # as_fn_append
36050
36051# as_fn_arith ARG...
36052# ------------------
36053# Perform arithmetic evaluation on the ARGs, and store the result in the
36054# global $as_val. Take advantage of shells that can avoid forks. The arguments
36055# must be portable across $(()) and expr.
36056if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36057 eval 'as_fn_arith ()
36058 {
36059 as_val=$(( $* ))
36060 }'
36061else
36062 as_fn_arith ()
36063 {
36064 as_val=`expr "$@" || test $? -eq 1`
36065 }
36066fi # as_fn_arith
36067
36068
cristy3ed852e2009-09-05 21:47:34 +000036069if expr a : '\(a\)' >/dev/null 2>&1 &&
36070 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36071 as_expr=expr
36072else
36073 as_expr=false
36074fi
36075
36076if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36077 as_basename=basename
36078else
36079 as_basename=false
36080fi
36081
cristy8b350f62009-11-15 23:12:43 +000036082if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36083 as_dirname=dirname
36084else
36085 as_dirname=false
36086fi
cristy3ed852e2009-09-05 21:47:34 +000036087
cristy3ed852e2009-09-05 21:47:34 +000036088as_me=`$as_basename -- "$0" ||
36089$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36090 X"$0" : 'X\(//\)$' \| \
36091 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36092$as_echo X/"$0" |
36093 sed '/^.*\/\([^/][^/]*\)\/*$/{
36094 s//\1/
36095 q
36096 }
36097 /^X\/\(\/\/\)$/{
36098 s//\1/
36099 q
36100 }
36101 /^X\/\(\/\).*/{
36102 s//\1/
36103 q
36104 }
36105 s/.*/./; q'`
36106
cristy8b350f62009-11-15 23:12:43 +000036107# Avoid depending upon Character Ranges.
36108as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36109as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36110as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36111as_cr_digits='0123456789'
36112as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036113
36114ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036115case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036116-n*)
cristy8b350f62009-11-15 23:12:43 +000036117 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036118 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036119 xy) ECHO_C='\c';;
36120 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36121 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036122 esac;;
36123*)
36124 ECHO_N='-n';;
36125esac
cristy3ed852e2009-09-05 21:47:34 +000036126
36127rm -f conf$$ conf$$.exe conf$$.file
36128if test -d conf$$.dir; then
36129 rm -f conf$$.dir/conf$$.file
36130else
36131 rm -f conf$$.dir
36132 mkdir conf$$.dir 2>/dev/null
36133fi
36134if (echo >conf$$.file) 2>/dev/null; then
36135 if ln -s conf$$.file conf$$ 2>/dev/null; then
36136 as_ln_s='ln -s'
36137 # ... but there are two gotchas:
36138 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36139 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036140 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036141 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036142 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036143 elif ln conf$$.file conf$$ 2>/dev/null; then
36144 as_ln_s=ln
36145 else
cristy14fefe52012-05-21 00:59:18 +000036146 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036147 fi
36148else
cristy14fefe52012-05-21 00:59:18 +000036149 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036150fi
36151rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36152rmdir conf$$.dir 2>/dev/null
36153
cristy8b350f62009-11-15 23:12:43 +000036154
36155# as_fn_mkdir_p
36156# -------------
36157# Create "$as_dir" as a directory, including parents if necessary.
36158as_fn_mkdir_p ()
36159{
36160
36161 case $as_dir in #(
36162 -*) as_dir=./$as_dir;;
36163 esac
36164 test -d "$as_dir" || eval $as_mkdir_p || {
36165 as_dirs=
36166 while :; do
36167 case $as_dir in #(
36168 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36169 *) as_qdir=$as_dir;;
36170 esac
36171 as_dirs="'$as_qdir' $as_dirs"
36172 as_dir=`$as_dirname -- "$as_dir" ||
36173$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36174 X"$as_dir" : 'X\(//\)[^/]' \| \
36175 X"$as_dir" : 'X\(//\)$' \| \
36176 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36177$as_echo X"$as_dir" |
36178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36179 s//\1/
36180 q
36181 }
36182 /^X\(\/\/\)[^/].*/{
36183 s//\1/
36184 q
36185 }
36186 /^X\(\/\/\)$/{
36187 s//\1/
36188 q
36189 }
36190 /^X\(\/\).*/{
36191 s//\1/
36192 q
36193 }
36194 s/.*/./; q'`
36195 test -d "$as_dir" && break
36196 done
36197 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036198 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036199
36200
36201} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036202if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036203 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036204else
36205 test -d ./-p && rmdir ./-p
36206 as_mkdir_p=false
36207fi
36208
cristy14fefe52012-05-21 00:59:18 +000036209
36210# as_fn_executable_p FILE
36211# -----------------------
36212# Test if FILE is an executable regular file.
36213as_fn_executable_p ()
36214{
36215 test -f "$1" && test -x "$1"
36216} # as_fn_executable_p
36217as_test_x='test -x'
36218as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036219
36220# Sed expression to map a string onto a valid CPP name.
36221as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36222
36223# Sed expression to map a string onto a valid variable name.
36224as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36225
36226
36227exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036228## ----------------------------------- ##
36229## Main body of $CONFIG_STATUS script. ##
36230## ----------------------------------- ##
36231_ASEOF
36232test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036233
cristy8b350f62009-11-15 23:12:43 +000036234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36235# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036236# report actual input values of CONFIG_FILES etc. instead of their
36237# values after options handling.
36238ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036239This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036240generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036241
36242 CONFIG_FILES = $CONFIG_FILES
36243 CONFIG_HEADERS = $CONFIG_HEADERS
36244 CONFIG_LINKS = $CONFIG_LINKS
36245 CONFIG_COMMANDS = $CONFIG_COMMANDS
36246 $ $0 $@
36247
36248on `(hostname || uname -n) 2>/dev/null | sed 1q`
36249"
36250
36251_ACEOF
36252
36253case $ac_config_files in *"
36254"*) set x $ac_config_files; shift; ac_config_files=$*;;
36255esac
36256
36257case $ac_config_headers in *"
36258"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36259esac
36260
36261
36262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36263# Files that config.status was made for.
36264config_files="$ac_config_files"
36265config_headers="$ac_config_headers"
36266config_commands="$ac_config_commands"
36267
36268_ACEOF
36269
36270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36271ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036272\`$as_me' instantiates files and other configuration actions
36273from templates according to the current configuration. Unless the files
36274and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036275
cristy8b350f62009-11-15 23:12:43 +000036276Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036277
36278 -h, --help print this help, then exit
36279 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036280 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036281 -q, --quiet, --silent
36282 do not print progress messages
36283 -d, --debug don't remove temporary files
36284 --recheck update $as_me by reconfiguring in the same conditions
36285 --file=FILE[:TEMPLATE]
36286 instantiate the configuration file FILE
36287 --header=FILE[:TEMPLATE]
36288 instantiate the configuration header FILE
36289
36290Configuration files:
36291$config_files
36292
36293Configuration headers:
36294$config_headers
36295
36296Configuration commands:
36297$config_commands
36298
cristy8b350f62009-11-15 23:12:43 +000036299Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036300
36301_ACEOF
36302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036303ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036304ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036305ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036306configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036307 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036308
cristy14fefe52012-05-21 00:59:18 +000036309Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036310This config.status script is free software; the Free Software Foundation
36311gives unlimited permission to copy, distribute and modify it."
36312
36313ac_pwd='$ac_pwd'
36314srcdir='$srcdir'
36315INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036316MKDIR_P='$MKDIR_P'
36317AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036318test -n "\$AWK" || AWK=awk
36319_ACEOF
36320
36321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36322# The default lists apply if the user does not specify any file.
36323ac_need_defaults=:
36324while test $# != 0
36325do
36326 case $1 in
cristyda16f162011-02-19 23:52:17 +000036327 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36329 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36330 ac_shift=:
36331 ;;
cristyda16f162011-02-19 23:52:17 +000036332 --*=)
36333 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36334 ac_optarg=
36335 ac_shift=:
36336 ;;
cristy3ed852e2009-09-05 21:47:34 +000036337 *)
36338 ac_option=$1
36339 ac_optarg=$2
36340 ac_shift=shift
36341 ;;
36342 esac
36343
36344 case $ac_option in
36345 # Handling of the options.
36346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36347 ac_cs_recheck=: ;;
36348 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36349 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036350 --config | --confi | --conf | --con | --co | --c )
36351 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036352 --debug | --debu | --deb | --de | --d | -d )
36353 debug=: ;;
36354 --file | --fil | --fi | --f )
36355 $ac_shift
36356 case $ac_optarg in
36357 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036358 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036359 esac
cristy8b350f62009-11-15 23:12:43 +000036360 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036361 ac_need_defaults=false;;
36362 --header | --heade | --head | --hea )
36363 $ac_shift
36364 case $ac_optarg in
36365 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36366 esac
cristy8b350f62009-11-15 23:12:43 +000036367 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036368 ac_need_defaults=false;;
36369 --he | --h)
36370 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036371 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036372Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036373 --help | --hel | -h )
36374 $as_echo "$ac_cs_usage"; exit ;;
36375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36376 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36377 ac_cs_silent=: ;;
36378
36379 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036380 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036381Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036382
cristy8b350f62009-11-15 23:12:43 +000036383 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036384 ac_need_defaults=false ;;
36385
36386 esac
36387 shift
36388done
36389
36390ac_configure_extra_args=
36391
36392if $ac_cs_silent; then
36393 exec 6>/dev/null
36394 ac_configure_extra_args="$ac_configure_extra_args --silent"
36395fi
36396
36397_ACEOF
36398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36399if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036400 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036401 shift
36402 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36403 CONFIG_SHELL='$SHELL'
36404 export CONFIG_SHELL
36405 exec "\$@"
36406fi
36407
36408_ACEOF
36409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36410exec 5>>config.log
36411{
36412 echo
36413 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36414## Running $as_me. ##
36415_ASBOX
36416 $as_echo "$ac_log"
36417} >&5
36418
36419_ACEOF
36420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036421#
36422# INIT-COMMANDS
36423#
36424PACKAGE="$PACKAGE"
36425AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36426
36427
36428# The HP-UX ksh and POSIX shell print the target directory to stdout
36429# if CDPATH is set.
36430(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36431
36432sed_quote_subst='$sed_quote_subst'
36433double_quote_subst='$double_quote_subst'
36434delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036435SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36436Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36437GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36438EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36439FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36440SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36441ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36442LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36443macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36444macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36445AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36446DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36447OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36448enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36449enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36450pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36451enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036452PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036453host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36454host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36455host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36456build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36457build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36458build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36459NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36460LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36461max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36462ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36463exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36464lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36465lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36466lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036467lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36468lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036469reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36470reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36471deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36472file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036473file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36474want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36475sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036476AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36477AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036478archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036479STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36480RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36481old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36482old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36483old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36484lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36485CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36486CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36487compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36488GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36489lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36490lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36491lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36492lt_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 +000036493nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36494lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036495objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36496MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36497lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036498lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036499lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036500lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36501lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36502need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036503MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036504DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36505NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36506LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36507OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36508OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36509libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36510shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36511extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36512archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36513enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36514export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36515whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36516compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36517old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36518old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36519archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36520archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36521module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36522module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36523with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36524allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36525no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36526hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036527hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36528hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36529hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36530hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36531hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36532hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36533inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36534link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036535always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36536export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36537exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36538include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36539prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036540postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036541file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36542variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36543need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36544need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36545version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36546runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36547shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36548shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36549libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36550library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36551soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36552install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36553postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36554postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36555finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36556finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36557hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36558sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36559sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36560hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36561enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36562enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36563enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36564old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36565striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36566compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36567predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36568postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36569predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36570postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36571compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36572LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36573reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36574reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36575old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36576compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36577GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36578lt_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 +000036579lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036580lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036581lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36582lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36583archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36584enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36585export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36586whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36587compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36588old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36589old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36590archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36591archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36592module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36593module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36594with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36595allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36596no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36597hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036598hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36599hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36600hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36601hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36602hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36603hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36604inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36605link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036606always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36607export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36608exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36609include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36610prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036611postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036612file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36613hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36614compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36615predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36616postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36617predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36618postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36619compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036620
36621LTCC='$LTCC'
36622LTCFLAGS='$LTCFLAGS'
36623compiler='$compiler_DEFAULT'
36624
cristy0c60a692010-11-04 01:09:47 +000036625# A function that is used when there is no print builtin or printf.
36626func_fallback_echo ()
36627{
36628 eval 'cat <<_LTECHO_EOF
36629\$1
36630_LTECHO_EOF'
36631}
36632
cristy73bd4a52010-10-05 11:24:23 +000036633# Quote evaled strings.
36634for var in SED \
36635GREP \
36636EGREP \
36637FGREP \
cristy0c60a692010-11-04 01:09:47 +000036638SHELL \
36639ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036640LD \
cristy0c60a692010-11-04 01:09:47 +000036641AS \
36642DLLTOOL \
36643OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036644PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036645NM \
36646LN_S \
36647lt_SP2NL \
36648lt_NL2SP \
36649reload_flag \
36650deplibs_check_method \
36651file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036652file_magic_glob \
36653want_nocaseglob \
36654sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036655AR \
36656AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036657archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036658STRIP \
36659RANLIB \
36660CC \
36661CFLAGS \
36662compiler \
36663lt_cv_sys_global_symbol_pipe \
36664lt_cv_sys_global_symbol_to_cdecl \
36665lt_cv_sys_global_symbol_to_c_name_address \
36666lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036667nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036668lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036669lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036670lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036671lt_prog_compiler_static \
36672lt_cv_prog_compiler_c_o \
36673need_locks \
cristyda16f162011-02-19 23:52:17 +000036674MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036675DSYMUTIL \
36676NMEDIT \
36677LIPO \
36678OTOOL \
36679OTOOL64 \
36680shrext_cmds \
36681export_dynamic_flag_spec \
36682whole_archive_flag_spec \
36683compiler_needs_object \
36684with_gnu_ld \
36685allow_undefined_flag \
36686no_undefined_flag \
36687hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036688hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036689exclude_expsyms \
36690include_expsyms \
36691file_list_spec \
36692variables_saved_for_relink \
36693libname_spec \
36694library_names_spec \
36695soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036696install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036697finish_eval \
36698old_striplib \
36699striplib \
36700compiler_lib_search_dirs \
36701predep_objects \
36702postdep_objects \
36703predeps \
36704postdeps \
36705compiler_lib_search_path \
36706LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036707reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036708compiler_CXX \
36709lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036710lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036711lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036712lt_prog_compiler_static_CXX \
36713lt_cv_prog_compiler_c_o_CXX \
36714export_dynamic_flag_spec_CXX \
36715whole_archive_flag_spec_CXX \
36716compiler_needs_object_CXX \
36717with_gnu_ld_CXX \
36718allow_undefined_flag_CXX \
36719no_undefined_flag_CXX \
36720hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036721hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036722exclude_expsyms_CXX \
36723include_expsyms_CXX \
36724file_list_spec_CXX \
36725compiler_lib_search_dirs_CXX \
36726predep_objects_CXX \
36727postdep_objects_CXX \
36728predeps_CXX \
36729postdeps_CXX \
36730compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036731 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036732 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036733 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036734 ;;
36735 *)
36736 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36737 ;;
36738 esac
36739done
36740
36741# Double-quote double-evaled strings.
36742for var in reload_cmds \
36743old_postinstall_cmds \
36744old_postuninstall_cmds \
36745old_archive_cmds \
36746extract_expsyms_cmds \
36747old_archive_from_new_cmds \
36748old_archive_from_expsyms_cmds \
36749archive_cmds \
36750archive_expsym_cmds \
36751module_cmds \
36752module_expsym_cmds \
36753export_symbols_cmds \
36754prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036755postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036756postinstall_cmds \
36757postuninstall_cmds \
36758finish_cmds \
36759sys_lib_search_path_spec \
36760sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036761reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036762old_archive_cmds_CXX \
36763old_archive_from_new_cmds_CXX \
36764old_archive_from_expsyms_cmds_CXX \
36765archive_cmds_CXX \
36766archive_expsym_cmds_CXX \
36767module_cmds_CXX \
36768module_expsym_cmds_CXX \
36769export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036770prelink_cmds_CXX \
36771postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036772 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036773 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036774 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036775 ;;
36776 *)
36777 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36778 ;;
36779 esac
36780done
36781
cristy73bd4a52010-10-05 11:24:23 +000036782ac_aux_dir='$ac_aux_dir'
36783xsi_shell='$xsi_shell'
36784lt_shell_append='$lt_shell_append'
36785
36786# See if we are running on zsh, and set the options which allow our
36787# commands through without removal of \ escapes INIT.
36788if test -n "\${ZSH_VERSION+set}" ; then
36789 setopt NO_GLOB_SUBST
36790fi
36791
36792
36793 PACKAGE='$PACKAGE'
36794 VERSION='$VERSION'
36795 TIMESTAMP='$TIMESTAMP'
36796 RM='$RM'
36797 ofile='$ofile'
36798
36799
36800
36801
36802
36803
cristy3ed852e2009-09-05 21:47:34 +000036804_ACEOF
36805
36806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36807
36808# Handling of arguments.
36809for ac_config_target in $ac_config_targets
36810do
36811 case $ac_config_target in
36812 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036813 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036814 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036815 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36816 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36817 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36818 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36819 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036820 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036821 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036822 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36823 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36824 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36825 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36826 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036827 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036828 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036829 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36830 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36831 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036832 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36833 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000036834 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy3e049f82013-02-13 13:26:53 +000036835 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000036836 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
36837 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
36838 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
36839 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
36840 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
cristy3ed852e2009-09-05 21:47:34 +000036841 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36842 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36843 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36844 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36845 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36846 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36847 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36848 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36849 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36850 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36851 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36852 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036853 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36854 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036855 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36856 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036857 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036858 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036859 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036860 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036861 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36862 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36863
cristy98dddb52010-11-04 00:30:15 +000036864 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036865 esac
36866done
36867
36868
36869# If the user did not use the arguments to specify the items to instantiate,
36870# then the envvar interface is used. Set only those that are not.
36871# We use the long form for the default assignment because of an extremely
36872# bizarre bug on SunOS 4.1.3.
36873if $ac_need_defaults; then
36874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36876 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36877fi
36878
36879# Have a temporary directory for convenience. Make it in the build tree
36880# simply because there is no reason against having it here, and in addition,
36881# creating and moving files from /tmp can sometimes cause problems.
36882# Hook for its removal unless debugging.
36883# Note that there is a small window in which the directory will not be cleaned:
36884# after its creation but before its name has been assigned to `$tmp'.
36885$debug ||
36886{
cristyda16f162011-02-19 23:52:17 +000036887 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036888 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036889 : "${ac_tmp:=$tmp}"
36890 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036891' 0
cristy8b350f62009-11-15 23:12:43 +000036892 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036893}
36894# Create a (secure) tmp directory for tmp files.
36895
36896{
36897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036898 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036899} ||
36900{
36901 tmp=./conf$$-$RANDOM
36902 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036903} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036904ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036905
36906# Set up the scripts for CONFIG_FILES section.
36907# No need to generate them if there are no CONFIG_FILES.
36908# This happens for instance with `./config.status config.h'.
36909if test -n "$CONFIG_FILES"; then
36910
36911
cristy8b350f62009-11-15 23:12:43 +000036912ac_cr=`echo X | tr X '\015'`
36913# On cygwin, bash can eat \r inside `` if the user requested igncr.
36914# But we know of no other shell where ac_cr would be empty at this
36915# point, so we can use a bashism as a fallback.
36916if test "x$ac_cr" = x; then
36917 eval ac_cr=\$\'\\r\'
36918fi
cristy3ed852e2009-09-05 21:47:34 +000036919ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36920if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036921 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036922else
36923 ac_cs_awk_cr=$ac_cr
36924fi
36925
cristyda16f162011-02-19 23:52:17 +000036926echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036927_ACEOF
36928
36929
36930{
36931 echo "cat >conf$$subs.awk <<_ACEOF" &&
36932 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36933 echo "_ACEOF"
36934} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36936ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036937ac_delim='%!_!# '
36938for ac_last_try in false false false false false :; do
36939 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036940 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036941
36942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36943 if test $ac_delim_n = $ac_delim_num; then
36944 break
36945 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036947 else
36948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36949 fi
36950done
36951rm -f conf$$subs.sh
36952
36953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036954cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036955_ACEOF
36956sed -n '
36957h
36958s/^/S["/; s/!.*/"]=/
36959p
36960g
36961s/^[^!]*!//
36962:repl
36963t repl
36964s/'"$ac_delim"'$//
36965t delim
36966:nl
36967h
cristycd4c5312009-11-22 01:19:08 +000036968s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036969t more1
36970s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36971p
36972n
36973b repl
36974:more1
36975s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36976p
36977g
36978s/.\{148\}//
36979t nl
36980:delim
36981h
cristycd4c5312009-11-22 01:19:08 +000036982s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036983t more2
36984s/["\\]/\\&/g; s/^/"/; s/$/"/
36985p
36986b
36987:more2
36988s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36989p
36990g
36991s/.\{148\}//
36992t delim
36993' <conf$$subs.awk | sed '
36994/^[^""]/{
36995 N
36996 s/\n//
36997}
36998' >>$CONFIG_STATUS || ac_write_fail=1
36999rm -f conf$$subs.awk
37000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37001_ACAWK
cristyda16f162011-02-19 23:52:17 +000037002cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037003 for (key in S) S_is_set[key] = 1
37004 FS = ""
37005
37006}
37007{
37008 line = $ 0
37009 nfields = split(line, field, "@")
37010 substed = 0
37011 len = length(field[1])
37012 for (i = 2; i < nfields; i++) {
37013 key = field[i]
37014 keylen = length(key)
37015 if (S_is_set[key]) {
37016 value = S[key]
37017 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37018 len += length(value) + length(field[++i])
37019 substed = 1
37020 } else
37021 len += 1 + keylen
37022 }
37023
37024 print line
37025}
37026
37027_ACAWK
37028_ACEOF
37029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37030if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37031 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37032else
37033 cat
cristyda16f162011-02-19 23:52:17 +000037034fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037035 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037036_ACEOF
37037
cristy98dddb52010-11-04 00:30:15 +000037038# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37039# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037040# trailing colons and then remove the whole line if VPATH becomes empty
37041# (actually we leave an empty line to preserve line numbers).
37042if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037043 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37044h
37045s///
37046s/^/:/
37047s/[ ]*$/:/
37048s/:\$(srcdir):/:/g
37049s/:\${srcdir}:/:/g
37050s/:@srcdir@:/:/g
37051s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037052s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037053x
37054s/\(=[ ]*\).*/\1/
37055G
37056s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037057s/^[^=]*=[ ]*$//
37058}'
37059fi
37060
37061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37062fi # test -n "$CONFIG_FILES"
37063
37064# Set up the scripts for CONFIG_HEADERS section.
37065# No need to generate them if there are no CONFIG_HEADERS.
37066# This happens for instance with `./config.status Makefile'.
37067if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037068cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037069BEGIN {
37070_ACEOF
37071
37072# Transform confdefs.h into an awk script `defines.awk', embedded as
37073# here-document in config.status, that substitutes the proper values into
37074# config.h.in to produce config.h.
37075
37076# Create a delimiter string that does not exist in confdefs.h, to ease
37077# handling of long lines.
37078ac_delim='%!_!# '
37079for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037080 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37081 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037082 break
37083 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037084 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037085 else
37086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37087 fi
37088done
37089
37090# For the awk script, D is an array of macro values keyed by name,
37091# likewise P contains macro parameters if any. Preserve backslash
37092# newline sequences.
37093
37094ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37095sed -n '
37096s/.\{148\}/&'"$ac_delim"'/g
37097t rset
37098:rset
37099s/^[ ]*#[ ]*define[ ][ ]*/ /
37100t def
37101d
37102:def
37103s/\\$//
37104t bsnl
37105s/["\\]/\\&/g
37106s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37107D["\1"]=" \3"/p
37108s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37109d
37110:bsnl
37111s/["\\]/\\&/g
37112s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37113D["\1"]=" \3\\\\\\n"\\/p
37114t cont
37115s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37116t cont
37117d
37118:cont
37119n
37120s/.\{148\}/&'"$ac_delim"'/g
37121t clear
37122:clear
37123s/\\$//
37124t bsnlc
37125s/["\\]/\\&/g; s/^/"/; s/$/"/p
37126d
37127:bsnlc
37128s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37129b cont
37130' <confdefs.h | sed '
37131s/'"$ac_delim"'/"\\\
37132"/g' >>$CONFIG_STATUS || ac_write_fail=1
37133
37134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37135 for (key in D) D_is_set[key] = 1
37136 FS = ""
37137}
37138/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37139 line = \$ 0
37140 split(line, arg, " ")
37141 if (arg[1] == "#") {
37142 defundef = arg[2]
37143 mac1 = arg[3]
37144 } else {
37145 defundef = substr(arg[1], 2)
37146 mac1 = arg[2]
37147 }
37148 split(mac1, mac2, "(") #)
37149 macro = mac2[1]
37150 prefix = substr(line, 1, index(line, defundef) - 1)
37151 if (D_is_set[macro]) {
37152 # Preserve the white space surrounding the "#".
37153 print prefix "define", macro P[macro] D[macro]
37154 next
37155 } else {
37156 # Replace #undef with comments. This is necessary, for example,
37157 # in the case of _POSIX_SOURCE, which is predefined and required
37158 # on some systems where configure will not decide to define it.
37159 if (defundef == "undef") {
37160 print "/*", prefix defundef, macro, "*/"
37161 next
37162 }
37163 }
37164}
37165{ print }
37166_ACAWK
37167_ACEOF
37168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037169 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037170fi # test -n "$CONFIG_HEADERS"
37171
37172
37173eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37174shift
37175for ac_tag
37176do
37177 case $ac_tag in
37178 :[FHLC]) ac_mode=$ac_tag; continue;;
37179 esac
37180 case $ac_mode$ac_tag in
37181 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037182 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037183 :[FH]-) ac_tag=-:-;;
37184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37185 esac
37186 ac_save_IFS=$IFS
37187 IFS=:
37188 set x $ac_tag
37189 IFS=$ac_save_IFS
37190 shift
37191 ac_file=$1
37192 shift
37193
37194 case $ac_mode in
37195 :L) ac_source=$1;;
37196 :[FH])
37197 ac_file_inputs=
37198 for ac_f
37199 do
37200 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037201 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037202 *) # Look for the file first in the build tree, then in the source tree
37203 # (if the path is not absolute). The absolute path cannot be DOS-style,
37204 # because $ac_f cannot contain `:'.
37205 test -f "$ac_f" ||
37206 case $ac_f in
37207 [\\/$]*) false;;
37208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37209 esac ||
cristy98dddb52010-11-04 00:30:15 +000037210 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037211 esac
37212 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037213 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037214 done
37215
37216 # Let's still pretend it is `configure' which instantiates (i.e., don't
37217 # use $as_me), people would be surprised to read:
37218 # /* config.h. Generated by config.status. */
37219 configure_input='Generated from '`
37220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37221 `' by configure.'
37222 if test x"$ac_file" != x-; then
37223 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037225$as_echo "$as_me: creating $ac_file" >&6;}
37226 fi
37227 # Neutralize special characters interpreted by sed in replacement strings.
37228 case $configure_input in #(
37229 *\&* | *\|* | *\\* )
37230 ac_sed_conf_input=`$as_echo "$configure_input" |
37231 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37232 *) ac_sed_conf_input=$configure_input;;
37233 esac
37234
37235 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037236 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037238 esac
37239 ;;
37240 esac
37241
37242 ac_dir=`$as_dirname -- "$ac_file" ||
37243$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37244 X"$ac_file" : 'X\(//\)[^/]' \| \
37245 X"$ac_file" : 'X\(//\)$' \| \
37246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37247$as_echo X"$ac_file" |
37248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37249 s//\1/
37250 q
37251 }
37252 /^X\(\/\/\)[^/].*/{
37253 s//\1/
37254 q
37255 }
37256 /^X\(\/\/\)$/{
37257 s//\1/
37258 q
37259 }
37260 /^X\(\/\).*/{
37261 s//\1/
37262 q
37263 }
37264 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037265 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037266 ac_builddir=.
37267
37268case "$ac_dir" in
37269.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37270*)
37271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37272 # A ".." for each directory in $ac_dir_suffix.
37273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37274 case $ac_top_builddir_sub in
37275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37277 esac ;;
37278esac
37279ac_abs_top_builddir=$ac_pwd
37280ac_abs_builddir=$ac_pwd$ac_dir_suffix
37281# for backward compatibility:
37282ac_top_builddir=$ac_top_build_prefix
37283
37284case $srcdir in
37285 .) # We are building in place.
37286 ac_srcdir=.
37287 ac_top_srcdir=$ac_top_builddir_sub
37288 ac_abs_top_srcdir=$ac_pwd ;;
37289 [\\/]* | ?:[\\/]* ) # Absolute name.
37290 ac_srcdir=$srcdir$ac_dir_suffix;
37291 ac_top_srcdir=$srcdir
37292 ac_abs_top_srcdir=$srcdir ;;
37293 *) # Relative name.
37294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37295 ac_top_srcdir=$ac_top_build_prefix$srcdir
37296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37297esac
37298ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37299
37300
37301 case $ac_mode in
37302 :F)
37303 #
37304 # CONFIG_FILE
37305 #
37306
37307 case $INSTALL in
37308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37310 esac
cristy73bd4a52010-10-05 11:24:23 +000037311 ac_MKDIR_P=$MKDIR_P
37312 case $MKDIR_P in
37313 [\\/$]* | ?:[\\/]* ) ;;
37314 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37315 esac
cristy3ed852e2009-09-05 21:47:34 +000037316_ACEOF
37317
37318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37319# If the template does not know about datarootdir, expand it.
37320# FIXME: This hack should be removed a few years after 2.60.
37321ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037322ac_sed_dataroot='
37323/datarootdir/ {
37324 p
37325 q
37326}
37327/@datadir@/p
37328/@docdir@/p
37329/@infodir@/p
37330/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037331/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037332case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37333*datarootdir*) ac_datarootdir_seen=yes;;
37334*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037336$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37337_ACEOF
37338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37339 ac_datarootdir_hack='
37340 s&@datadir@&$datadir&g
37341 s&@docdir@&$docdir&g
37342 s&@infodir@&$infodir&g
37343 s&@localedir@&$localedir&g
37344 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037345 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037346esac
37347_ACEOF
37348
37349# Neutralize VPATH when `$srcdir' = `.'.
37350# Shell code in configure.ac might set extrasub.
37351# FIXME: do we really want to maintain this feature?
37352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37353ac_sed_extra="$ac_vpsub
37354$extrasub
37355_ACEOF
37356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37357:t
37358/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37359s|@configure_input@|$ac_sed_conf_input|;t t
37360s&@top_builddir@&$ac_top_builddir_sub&;t t
37361s&@top_build_prefix@&$ac_top_build_prefix&;t t
37362s&@srcdir@&$ac_srcdir&;t t
37363s&@abs_srcdir@&$ac_abs_srcdir&;t t
37364s&@top_srcdir@&$ac_top_srcdir&;t t
37365s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37366s&@builddir@&$ac_builddir&;t t
37367s&@abs_builddir@&$ac_abs_builddir&;t t
37368s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37369s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037370s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037371$ac_datarootdir_hack
37372"
cristyda16f162011-02-19 23:52:17 +000037373eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37374 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037375
37376test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037377 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37378 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37379 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037381which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037382$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037383which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037384
cristyda16f162011-02-19 23:52:17 +000037385 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037386 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037387 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37388 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037389 esac \
cristy98dddb52010-11-04 00:30:15 +000037390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037391 ;;
37392 :H)
37393 #
37394 # CONFIG_HEADER
37395 #
37396 if test x"$ac_file" != x-; then
37397 {
37398 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037399 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37400 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037402 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037403 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037404$as_echo "$as_me: $ac_file is unchanged" >&6;}
37405 else
37406 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037407 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037408 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037409 fi
37410 else
37411 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037413 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037414 fi
cristy73bd4a52010-10-05 11:24:23 +000037415# Compute "$ac_file"'s index in $config_headers.
37416_am_arg="$ac_file"
37417_am_stamp_count=1
37418for _am_header in $config_headers :; do
37419 case $_am_header in
37420 $_am_arg | $_am_arg:* )
37421 break ;;
37422 * )
37423 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37424 esac
37425done
37426echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37427$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37428 X"$_am_arg" : 'X\(//\)[^/]' \| \
37429 X"$_am_arg" : 'X\(//\)$' \| \
37430 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37431$as_echo X"$_am_arg" |
37432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37433 s//\1/
37434 q
37435 }
37436 /^X\(\/\/\)[^/].*/{
37437 s//\1/
37438 q
37439 }
37440 /^X\(\/\/\)$/{
37441 s//\1/
37442 q
37443 }
37444 /^X\(\/\).*/{
37445 s//\1/
37446 q
37447 }
37448 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037449 ;;
37450
cristy8b350f62009-11-15 23:12:43 +000037451 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037452$as_echo "$as_me: executing $ac_file commands" >&6;}
37453 ;;
37454 esac
37455
37456
37457 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037458 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037459ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37460ac_prefix_conf_PKG=`echo MagickCore`
37461ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37462ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37463ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37464if test ".$ac_prefix_conf_INP" = "."; then
37465 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37466 case "$ac_file" in
37467 *.h) ac_prefix_conf_INP=$ac_file ;;
37468 *)
37469 esac
37470 test ".$ac_prefix_conf_INP" != "." && break
37471 done
37472fi
37473if test ".$ac_prefix_conf_INP" = "."; then
37474 case "$ac_prefix_conf_OUT" in
37475 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37476 ;;
37477 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37478 ;;
37479 *) ac_prefix_conf_INP=config.h
37480 ;;
37481 esac
37482fi
37483if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037484 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037485else
37486 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37487 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37488 fi fi
37489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37490$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37491 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037492 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37493 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37494 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37495 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37496 $as_echo "#endif/" >> conftest.prefix
37497 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37498 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37499 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037500 # now executing _script on _DEF input to create _OUT output file
37501 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37502 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37503 echo ' ' >>$tmp/pconfig.h
37504 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37505
37506 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37507 echo ' ' >>$tmp/pconfig.h
37508 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37509 echo "#endif" >>$tmp/pconfig.h
37510 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37511 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37512$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37513 else
37514 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37515$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37516 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37517 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37518 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37519$as_echo X"$ac_prefix_conf_OUT" |
37520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37521 s//\1/
37522 q
37523 }
37524 /^X\(\/\/\)[^/].*/{
37525 s//\1/
37526 q
37527 }
37528 /^X\(\/\/\)$/{
37529 s//\1/
37530 q
37531 }
37532 /^X\(\/\).*/{
37533 s//\1/
37534 q
37535 }
37536 s/.*/./; q'`
37537 as_dir="$ac_dir"; as_fn_mkdir_p
37538 rm -f "$ac_prefix_conf_OUT"
37539 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37540 fi
37541 cp conftest.prefix _configs.sed
37542 else
cristy98dddb52010-11-04 00:30:15 +000037543 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 +000037544 fi
37545 rm -f conftest.*
37546fi
37547 ;;
37548 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037549 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037550 # are listed without --file. Let's play safe and only enable the eval
37551 # if we detect the quoting.
37552 case $CONFIG_FILES in
37553 *\'*) eval set x "$CONFIG_FILES" ;;
37554 *) set x $CONFIG_FILES ;;
37555 esac
37556 shift
37557 for mf
37558 do
37559 # Strip MF so we end up with the name of the file.
37560 mf=`echo "$mf" | sed -e 's/:.*$//'`
37561 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037562 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037563 # some people rename them; so instead we look at the file content.
37564 # Grep'ing the first line is not enough: some people post-process
37565 # each Makefile.in and add a new line on top of each file to say so.
37566 # Grep'ing the whole file is not good either: AIX grep has a line
37567 # limit of 2048, but all sed's we know have understand at least 4000.
37568 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37569 dirpart=`$as_dirname -- "$mf" ||
37570$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37571 X"$mf" : 'X\(//\)[^/]' \| \
37572 X"$mf" : 'X\(//\)$' \| \
37573 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37574$as_echo X"$mf" |
37575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37576 s//\1/
37577 q
37578 }
37579 /^X\(\/\/\)[^/].*/{
37580 s//\1/
37581 q
37582 }
37583 /^X\(\/\/\)$/{
37584 s//\1/
37585 q
37586 }
37587 /^X\(\/\).*/{
37588 s//\1/
37589 q
37590 }
37591 s/.*/./; q'`
37592 else
37593 continue
37594 fi
37595 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037596 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037597 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37598 test -z "$DEPDIR" && continue
37599 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37600 test -z "am__include" && continue
37601 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037602 # Find all dependency output files, they are included files with
37603 # $(DEPDIR) in their names. We invoke sed twice because it is the
37604 # simplest approach to changing $(DEPDIR) to its actual value in the
37605 # expansion.
37606 for file in `sed -n "
37607 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037608 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037609 # Make sure the directory exists.
37610 test -f "$dirpart/$file" && continue
37611 fdir=`$as_dirname -- "$file" ||
37612$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37613 X"$file" : 'X\(//\)[^/]' \| \
37614 X"$file" : 'X\(//\)$' \| \
37615 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37616$as_echo X"$file" |
37617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37618 s//\1/
37619 q
37620 }
37621 /^X\(\/\/\)[^/].*/{
37622 s//\1/
37623 q
37624 }
37625 /^X\(\/\/\)$/{
37626 s//\1/
37627 q
37628 }
37629 /^X\(\/\).*/{
37630 s//\1/
37631 q
37632 }
37633 s/.*/./; q'`
37634 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37635 # echo "creating $dirpart/$file"
37636 echo '# dummy' > "$dirpart/$file"
37637 done
37638 done
37639}
37640 ;;
37641 "libtool":C)
37642
37643 # See if we are running on zsh, and set the options which allow our
37644 # commands through without removal of \ escapes.
37645 if test -n "${ZSH_VERSION+set}" ; then
37646 setopt NO_GLOB_SUBST
37647 fi
37648
37649 cfgfile="${ofile}T"
37650 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37651 $RM "$cfgfile"
37652
37653 cat <<_LT_EOF >> "$cfgfile"
37654#! $SHELL
37655
37656# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37657# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37658# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37659# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37660#
37661# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037662# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37663# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037664# Written by Gordon Matzigkeit, 1996
37665#
37666# This file is part of GNU Libtool.
37667#
37668# GNU Libtool is free software; you can redistribute it and/or
37669# modify it under the terms of the GNU General Public License as
37670# published by the Free Software Foundation; either version 2 of
37671# the License, or (at your option) any later version.
37672#
37673# As a special exception to the GNU General Public License,
37674# if you distribute this file as part of a program or library that
37675# is built using GNU Libtool, you may include this file under the
37676# same distribution terms that you use for the rest of that program.
37677#
37678# GNU Libtool is distributed in the hope that it will be useful,
37679# but WITHOUT ANY WARRANTY; without even the implied warranty of
37680# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37681# GNU General Public License for more details.
37682#
37683# You should have received a copy of the GNU General Public License
37684# along with GNU Libtool; see the file COPYING. If not, a copy
37685# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37686# obtained by writing to the Free Software Foundation, Inc.,
37687# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37688
37689
37690# The names of the tagged configurations supported by this script.
37691available_tags="CXX "
37692
37693# ### BEGIN LIBTOOL CONFIG
37694
37695# A sed program that does not truncate output.
37696SED=$lt_SED
37697
37698# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37699Xsed="\$SED -e 1s/^X//"
37700
37701# A grep program that handles long lines.
37702GREP=$lt_GREP
37703
37704# An ERE matcher.
37705EGREP=$lt_EGREP
37706
37707# A literal string matcher.
37708FGREP=$lt_FGREP
37709
cristy0c60a692010-11-04 01:09:47 +000037710# Shell to use when invoking shell scripts.
37711SHELL=$lt_SHELL
37712
37713# An echo program that protects backslashes.
37714ECHO=$lt_ECHO
37715
cristy73bd4a52010-10-05 11:24:23 +000037716# Which release of libtool.m4 was used?
37717macro_version=$macro_version
37718macro_revision=$macro_revision
37719
37720# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037721AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037722
37723# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037724DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037725
37726# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037727OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037728
37729# Whether or not to build shared libraries.
37730build_libtool_libs=$enable_shared
37731
37732# Whether or not to build static libraries.
37733build_old_libs=$enable_static
37734
37735# What type of objects to build.
37736pic_mode=$pic_mode
37737
37738# Whether or not to optimize for fast installation.
37739fast_install=$enable_fast_install
37740
cristy99bd5232011-12-07 14:38:20 +000037741# The PATH separator for the build system.
37742PATH_SEPARATOR=$lt_PATH_SEPARATOR
37743
cristy73bd4a52010-10-05 11:24:23 +000037744# The host system.
37745host_alias=$host_alias
37746host=$host
37747host_os=$host_os
37748
37749# The build system.
37750build_alias=$build_alias
37751build=$build
37752build_os=$build_os
37753
37754# A BSD- or MS-compatible name lister.
37755NM=$lt_NM
37756
37757# Whether we need soft or hard links.
37758LN_S=$lt_LN_S
37759
37760# What is the maximum length of a command?
37761max_cmd_len=$max_cmd_len
37762
37763# Object file suffix (normally "o").
37764objext=$ac_objext
37765
37766# Executable file suffix (normally "").
37767exeext=$exeext
37768
37769# whether the shell understands "unset".
37770lt_unset=$lt_unset
37771
37772# turn spaces into newlines.
37773SP2NL=$lt_lt_SP2NL
37774
37775# turn newlines into spaces.
37776NL2SP=$lt_lt_NL2SP
37777
cristyda16f162011-02-19 23:52:17 +000037778# convert \$build file names to \$host format.
37779to_host_file_cmd=$lt_cv_to_host_file_cmd
37780
37781# convert \$build files to toolchain format.
37782to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37783
cristy73bd4a52010-10-05 11:24:23 +000037784# Method to check whether dependent libraries are shared objects.
37785deplibs_check_method=$lt_deplibs_check_method
37786
cristyda16f162011-02-19 23:52:17 +000037787# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037788file_magic_cmd=$lt_file_magic_cmd
37789
cristyda16f162011-02-19 23:52:17 +000037790# How to find potential files when deplibs_check_method = "file_magic".
37791file_magic_glob=$lt_file_magic_glob
37792
37793# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37794want_nocaseglob=$lt_want_nocaseglob
37795
37796# Command to associate shared and link libraries.
37797sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37798
cristy73bd4a52010-10-05 11:24:23 +000037799# The archiver.
37800AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037801
37802# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037803AR_FLAGS=$lt_AR_FLAGS
37804
cristyda16f162011-02-19 23:52:17 +000037805# How to feed a file listing to the archiver.
37806archiver_list_spec=$lt_archiver_list_spec
37807
cristy73bd4a52010-10-05 11:24:23 +000037808# A symbol stripping program.
37809STRIP=$lt_STRIP
37810
37811# Commands used to install an old-style archive.
37812RANLIB=$lt_RANLIB
37813old_postinstall_cmds=$lt_old_postinstall_cmds
37814old_postuninstall_cmds=$lt_old_postuninstall_cmds
37815
cristy0c60a692010-11-04 01:09:47 +000037816# Whether to use a lock for old archive extraction.
37817lock_old_archive_extraction=$lock_old_archive_extraction
37818
cristy73bd4a52010-10-05 11:24:23 +000037819# A C compiler.
37820LTCC=$lt_CC
37821
37822# LTCC compiler flags.
37823LTCFLAGS=$lt_CFLAGS
37824
37825# Take the output of nm and produce a listing of raw symbols and C names.
37826global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37827
37828# Transform the output of nm in a proper C declaration.
37829global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37830
37831# Transform the output of nm in a C name address pair.
37832global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37833
37834# Transform the output of nm in a C name address pair when lib prefix is needed.
37835global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37836
cristyda16f162011-02-19 23:52:17 +000037837# Specify filename containing input files for \$NM.
37838nm_file_list_spec=$lt_nm_file_list_spec
37839
37840# The root where to search for dependent libraries,and in which our libraries should be installed.
37841lt_sysroot=$lt_sysroot
37842
cristy73bd4a52010-10-05 11:24:23 +000037843# The name of the directory that contains temporary libtool files.
37844objdir=$objdir
37845
cristy73bd4a52010-10-05 11:24:23 +000037846# Used to examine libraries when file_magic_cmd begins with "file".
37847MAGIC_CMD=$MAGIC_CMD
37848
37849# Must we lock files when doing compilation?
37850need_locks=$lt_need_locks
37851
cristyda16f162011-02-19 23:52:17 +000037852# Manifest tool.
37853MANIFEST_TOOL=$lt_MANIFEST_TOOL
37854
cristy73bd4a52010-10-05 11:24:23 +000037855# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37856DSYMUTIL=$lt_DSYMUTIL
37857
37858# Tool to change global to local symbols on Mac OS X.
37859NMEDIT=$lt_NMEDIT
37860
37861# Tool to manipulate fat objects and archives on Mac OS X.
37862LIPO=$lt_LIPO
37863
37864# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37865OTOOL=$lt_OTOOL
37866
37867# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37868OTOOL64=$lt_OTOOL64
37869
37870# Old archive suffix (normally "a").
37871libext=$libext
37872
37873# Shared library suffix (normally ".so").
37874shrext_cmds=$lt_shrext_cmds
37875
37876# The commands to extract the exported symbol list from a shared archive.
37877extract_expsyms_cmds=$lt_extract_expsyms_cmds
37878
37879# Variables whose values should be saved in libtool wrapper scripts and
37880# restored at link time.
37881variables_saved_for_relink=$lt_variables_saved_for_relink
37882
37883# Do we need the "lib" prefix for modules?
37884need_lib_prefix=$need_lib_prefix
37885
37886# Do we need a version for libraries?
37887need_version=$need_version
37888
37889# Library versioning type.
37890version_type=$version_type
37891
37892# Shared library runtime path variable.
37893runpath_var=$runpath_var
37894
37895# Shared library path variable.
37896shlibpath_var=$shlibpath_var
37897
37898# Is shlibpath searched before the hard-coded library search path?
37899shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37900
37901# Format of library name prefix.
37902libname_spec=$lt_libname_spec
37903
37904# List of archive names. First name is the real one, the rest are links.
37905# The last name is the one that the linker finds with -lNAME
37906library_names_spec=$lt_library_names_spec
37907
37908# The coded name of the library, if different from the real name.
37909soname_spec=$lt_soname_spec
37910
cristy0c60a692010-11-04 01:09:47 +000037911# Permission mode override for installation of shared libraries.
37912install_override_mode=$lt_install_override_mode
37913
cristy73bd4a52010-10-05 11:24:23 +000037914# Command to use after installation of a shared archive.
37915postinstall_cmds=$lt_postinstall_cmds
37916
37917# Command to use after uninstallation of a shared archive.
37918postuninstall_cmds=$lt_postuninstall_cmds
37919
37920# Commands used to finish a libtool library installation in a directory.
37921finish_cmds=$lt_finish_cmds
37922
37923# As "finish_cmds", except a single script fragment to be evaled but
37924# not shown.
37925finish_eval=$lt_finish_eval
37926
37927# Whether we should hardcode library paths into libraries.
37928hardcode_into_libs=$hardcode_into_libs
37929
37930# Compile-time system search path for libraries.
37931sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37932
37933# Run-time system search path for libraries.
37934sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37935
37936# Whether dlopen is supported.
37937dlopen_support=$enable_dlopen
37938
37939# Whether dlopen of programs is supported.
37940dlopen_self=$enable_dlopen_self
37941
37942# Whether dlopen of statically linked programs is supported.
37943dlopen_self_static=$enable_dlopen_self_static
37944
37945# Commands to strip libraries.
37946old_striplib=$lt_old_striplib
37947striplib=$lt_striplib
37948
37949
37950# The linker used to build libraries.
37951LD=$lt_LD
37952
cristy0c60a692010-11-04 01:09:47 +000037953# How to create reloadable object files.
37954reload_flag=$lt_reload_flag
37955reload_cmds=$lt_reload_cmds
37956
cristy73bd4a52010-10-05 11:24:23 +000037957# Commands used to build an old-style archive.
37958old_archive_cmds=$lt_old_archive_cmds
37959
37960# A language specific compiler.
37961CC=$lt_compiler
37962
37963# Is the compiler the GNU compiler?
37964with_gcc=$GCC
37965
37966# Compiler flag to turn off builtin functions.
37967no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37968
cristy73bd4a52010-10-05 11:24:23 +000037969# Additional compiler flags for building library objects.
37970pic_flag=$lt_lt_prog_compiler_pic
37971
cristyda16f162011-02-19 23:52:17 +000037972# How to pass a linker flag through the compiler.
37973wl=$lt_lt_prog_compiler_wl
37974
cristy73bd4a52010-10-05 11:24:23 +000037975# Compiler flag to prevent dynamic linking.
37976link_static_flag=$lt_lt_prog_compiler_static
37977
37978# Does compiler simultaneously support -c and -o options?
37979compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37980
37981# Whether or not to add -lc for building shared libraries.
37982build_libtool_need_lc=$archive_cmds_need_lc
37983
37984# Whether or not to disallow shared libs when runtime libs are static.
37985allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37986
37987# Compiler flag to allow reflexive dlopens.
37988export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37989
37990# Compiler flag to generate shared objects directly from archives.
37991whole_archive_flag_spec=$lt_whole_archive_flag_spec
37992
37993# Whether the compiler copes with passing no objects directly.
37994compiler_needs_object=$lt_compiler_needs_object
37995
37996# Create an old-style archive from a shared archive.
37997old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37998
37999# Create a temporary old-style archive to link instead of a shared archive.
38000old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38001
38002# Commands used to build a shared archive.
38003archive_cmds=$lt_archive_cmds
38004archive_expsym_cmds=$lt_archive_expsym_cmds
38005
38006# Commands used to build a loadable module if different from building
38007# a shared archive.
38008module_cmds=$lt_module_cmds
38009module_expsym_cmds=$lt_module_expsym_cmds
38010
38011# Whether we are building with GNU ld or not.
38012with_gnu_ld=$lt_with_gnu_ld
38013
38014# Flag that allows shared libraries with undefined symbols to be built.
38015allow_undefined_flag=$lt_allow_undefined_flag
38016
38017# Flag that enforces no undefined symbols.
38018no_undefined_flag=$lt_no_undefined_flag
38019
38020# Flag to hardcode \$libdir into a binary during linking.
38021# This must work even if \$libdir does not exist
38022hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38023
cristy73bd4a52010-10-05 11:24:23 +000038024# Whether we need a single "-rpath" flag with a separated argument.
38025hardcode_libdir_separator=$lt_hardcode_libdir_separator
38026
38027# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38028# DIR into the resulting binary.
38029hardcode_direct=$hardcode_direct
38030
38031# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38032# DIR into the resulting binary and the resulting library dependency is
38033# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38034# library is relocated.
38035hardcode_direct_absolute=$hardcode_direct_absolute
38036
38037# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38038# into the resulting binary.
38039hardcode_minus_L=$hardcode_minus_L
38040
38041# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38042# into the resulting binary.
38043hardcode_shlibpath_var=$hardcode_shlibpath_var
38044
38045# Set to "yes" if building a shared library automatically hardcodes DIR
38046# into the library and all subsequent libraries and executables linked
38047# against it.
38048hardcode_automatic=$hardcode_automatic
38049
38050# Set to yes if linker adds runtime paths of dependent libraries
38051# to runtime path list.
38052inherit_rpath=$inherit_rpath
38053
38054# Whether libtool must link a program against all its dependency libraries.
38055link_all_deplibs=$link_all_deplibs
38056
cristy73bd4a52010-10-05 11:24:23 +000038057# Set to "yes" if exported symbols are required.
38058always_export_symbols=$always_export_symbols
38059
38060# The commands to list exported symbols.
38061export_symbols_cmds=$lt_export_symbols_cmds
38062
38063# Symbols that should not be listed in the preloaded symbols.
38064exclude_expsyms=$lt_exclude_expsyms
38065
38066# Symbols that must always be exported.
38067include_expsyms=$lt_include_expsyms
38068
38069# Commands necessary for linking programs (against libraries) with templates.
38070prelink_cmds=$lt_prelink_cmds
38071
cristyda16f162011-02-19 23:52:17 +000038072# Commands necessary for finishing linking programs.
38073postlink_cmds=$lt_postlink_cmds
38074
cristy73bd4a52010-10-05 11:24:23 +000038075# Specify filename containing input files.
38076file_list_spec=$lt_file_list_spec
38077
38078# How to hardcode a shared library path into an executable.
38079hardcode_action=$hardcode_action
38080
38081# The directories searched by this compiler when creating a shared library.
38082compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38083
38084# Dependencies to place before and after the objects being linked to
38085# create a shared library.
38086predep_objects=$lt_predep_objects
38087postdep_objects=$lt_postdep_objects
38088predeps=$lt_predeps
38089postdeps=$lt_postdeps
38090
38091# The library search path used internally by the compiler when linking
38092# a shared library.
38093compiler_lib_search_path=$lt_compiler_lib_search_path
38094
38095# ### END LIBTOOL CONFIG
38096
38097_LT_EOF
38098
38099 case $host_os in
38100 aix3*)
38101 cat <<\_LT_EOF >> "$cfgfile"
38102# AIX sometimes has problems with the GCC collect2 program. For some
38103# reason, if we set the COLLECT_NAMES environment variable, the problems
38104# vanish in a puff of smoke.
38105if test "X${COLLECT_NAMES+set}" != Xset; then
38106 COLLECT_NAMES=
38107 export COLLECT_NAMES
38108fi
38109_LT_EOF
38110 ;;
38111 esac
38112
38113
38114ltmain="$ac_aux_dir/ltmain.sh"
38115
38116
38117 # We use sed instead of cat because bash on DJGPP gets confused if
38118 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38119 # text mode, it properly converts lines to CR/LF. This bash problem
38120 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038121 sed '$q' "$ltmain" >> "$cfgfile" \
38122 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038123
cristyda16f162011-02-19 23:52:17 +000038124 if test x"$xsi_shell" = xyes; then
38125 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38126func_dirname ()\
38127{\
38128\ case ${1} in\
38129\ */*) func_dirname_result="${1%/*}${2}" ;;\
38130\ * ) func_dirname_result="${3}" ;;\
38131\ esac\
38132} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38133 && mv -f "$cfgfile.tmp" "$cfgfile" \
38134 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38135test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038136
38137
cristyda16f162011-02-19 23:52:17 +000038138 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38139func_basename ()\
38140{\
38141\ func_basename_result="${1##*/}"\
38142} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38143 && mv -f "$cfgfile.tmp" "$cfgfile" \
38144 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38145test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038146
38147
cristyda16f162011-02-19 23:52:17 +000038148 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38149func_dirname_and_basename ()\
38150{\
38151\ case ${1} in\
38152\ */*) func_dirname_result="${1%/*}${2}" ;;\
38153\ * ) func_dirname_result="${3}" ;;\
38154\ esac\
38155\ func_basename_result="${1##*/}"\
38156} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38157 && mv -f "$cfgfile.tmp" "$cfgfile" \
38158 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38159test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038160
cristyda16f162011-02-19 23:52:17 +000038161
38162 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38163func_stripname ()\
38164{\
38165\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38166\ # positional parameters, so assign one to ordinary parameter first.\
38167\ func_stripname_result=${3}\
38168\ func_stripname_result=${func_stripname_result#"${1}"}\
38169\ func_stripname_result=${func_stripname_result%"${2}"}\
38170} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38171 && mv -f "$cfgfile.tmp" "$cfgfile" \
38172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38173test 0 -eq $? || _lt_function_replace_fail=:
38174
38175
38176 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38177func_split_long_opt ()\
38178{\
38179\ func_split_long_opt_name=${1%%=*}\
38180\ func_split_long_opt_arg=${1#*=}\
38181} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38182 && mv -f "$cfgfile.tmp" "$cfgfile" \
38183 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38184test 0 -eq $? || _lt_function_replace_fail=:
38185
38186
38187 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38188func_split_short_opt ()\
38189{\
38190\ func_split_short_opt_arg=${1#??}\
38191\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38192} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38193 && mv -f "$cfgfile.tmp" "$cfgfile" \
38194 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38195test 0 -eq $? || _lt_function_replace_fail=:
38196
38197
38198 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38199func_lo2o ()\
38200{\
38201\ case ${1} in\
38202\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38203\ *) func_lo2o_result=${1} ;;\
38204\ esac\
38205} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38206 && mv -f "$cfgfile.tmp" "$cfgfile" \
38207 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38208test 0 -eq $? || _lt_function_replace_fail=:
38209
38210
38211 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38212func_xform ()\
38213{\
38214 func_xform_result=${1%.*}.lo\
38215} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38216 && mv -f "$cfgfile.tmp" "$cfgfile" \
38217 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38218test 0 -eq $? || _lt_function_replace_fail=:
38219
38220
38221 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38222func_arith ()\
38223{\
38224 func_arith_result=$(( $* ))\
38225} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38226 && mv -f "$cfgfile.tmp" "$cfgfile" \
38227 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38228test 0 -eq $? || _lt_function_replace_fail=:
38229
38230
38231 sed -e '/^func_len ()$/,/^} # func_len /c\
38232func_len ()\
38233{\
38234 func_len_result=${#1}\
38235} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38236 && mv -f "$cfgfile.tmp" "$cfgfile" \
38237 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38238test 0 -eq $? || _lt_function_replace_fail=:
38239
38240fi
38241
38242if test x"$lt_shell_append" = xyes; then
38243 sed -e '/^func_append ()$/,/^} # func_append /c\
38244func_append ()\
38245{\
38246 eval "${1}+=\\${2}"\
38247} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38248 && mv -f "$cfgfile.tmp" "$cfgfile" \
38249 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38250test 0 -eq $? || _lt_function_replace_fail=:
38251
38252
38253 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38254func_append_quoted ()\
38255{\
38256\ func_quote_for_eval "${2}"\
38257\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38258} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38259 && mv -f "$cfgfile.tmp" "$cfgfile" \
38260 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38261test 0 -eq $? || _lt_function_replace_fail=:
38262
38263
38264 # Save a `func_append' function call where possible by direct use of '+='
38265 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38266 && mv -f "$cfgfile.tmp" "$cfgfile" \
38267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38268 test 0 -eq $? || _lt_function_replace_fail=:
38269else
38270 # Save a `func_append' function call even when '+=' is not available
38271 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38272 && mv -f "$cfgfile.tmp" "$cfgfile" \
38273 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38274 test 0 -eq $? || _lt_function_replace_fail=:
38275fi
38276
38277if test x"$_lt_function_replace_fail" = x":"; then
38278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38279$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38280fi
38281
38282
38283 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038284 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38285 chmod +x "$ofile"
38286
38287
38288 cat <<_LT_EOF >> "$ofile"
38289
38290# ### BEGIN LIBTOOL TAG CONFIG: CXX
38291
38292# The linker used to build libraries.
38293LD=$lt_LD_CXX
38294
cristy0c60a692010-11-04 01:09:47 +000038295# How to create reloadable object files.
38296reload_flag=$lt_reload_flag_CXX
38297reload_cmds=$lt_reload_cmds_CXX
38298
cristy73bd4a52010-10-05 11:24:23 +000038299# Commands used to build an old-style archive.
38300old_archive_cmds=$lt_old_archive_cmds_CXX
38301
38302# A language specific compiler.
38303CC=$lt_compiler_CXX
38304
38305# Is the compiler the GNU compiler?
38306with_gcc=$GCC_CXX
38307
38308# Compiler flag to turn off builtin functions.
38309no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38310
cristy73bd4a52010-10-05 11:24:23 +000038311# Additional compiler flags for building library objects.
38312pic_flag=$lt_lt_prog_compiler_pic_CXX
38313
cristyda16f162011-02-19 23:52:17 +000038314# How to pass a linker flag through the compiler.
38315wl=$lt_lt_prog_compiler_wl_CXX
38316
cristy73bd4a52010-10-05 11:24:23 +000038317# Compiler flag to prevent dynamic linking.
38318link_static_flag=$lt_lt_prog_compiler_static_CXX
38319
38320# Does compiler simultaneously support -c and -o options?
38321compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38322
38323# Whether or not to add -lc for building shared libraries.
38324build_libtool_need_lc=$archive_cmds_need_lc_CXX
38325
38326# Whether or not to disallow shared libs when runtime libs are static.
38327allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38328
38329# Compiler flag to allow reflexive dlopens.
38330export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38331
38332# Compiler flag to generate shared objects directly from archives.
38333whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38334
38335# Whether the compiler copes with passing no objects directly.
38336compiler_needs_object=$lt_compiler_needs_object_CXX
38337
38338# Create an old-style archive from a shared archive.
38339old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38340
38341# Create a temporary old-style archive to link instead of a shared archive.
38342old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38343
38344# Commands used to build a shared archive.
38345archive_cmds=$lt_archive_cmds_CXX
38346archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38347
38348# Commands used to build a loadable module if different from building
38349# a shared archive.
38350module_cmds=$lt_module_cmds_CXX
38351module_expsym_cmds=$lt_module_expsym_cmds_CXX
38352
38353# Whether we are building with GNU ld or not.
38354with_gnu_ld=$lt_with_gnu_ld_CXX
38355
38356# Flag that allows shared libraries with undefined symbols to be built.
38357allow_undefined_flag=$lt_allow_undefined_flag_CXX
38358
38359# Flag that enforces no undefined symbols.
38360no_undefined_flag=$lt_no_undefined_flag_CXX
38361
38362# Flag to hardcode \$libdir into a binary during linking.
38363# This must work even if \$libdir does not exist
38364hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38365
cristy73bd4a52010-10-05 11:24:23 +000038366# Whether we need a single "-rpath" flag with a separated argument.
38367hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38368
38369# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38370# DIR into the resulting binary.
38371hardcode_direct=$hardcode_direct_CXX
38372
38373# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38374# DIR into the resulting binary and the resulting library dependency is
38375# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38376# library is relocated.
38377hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38378
38379# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38380# into the resulting binary.
38381hardcode_minus_L=$hardcode_minus_L_CXX
38382
38383# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38384# into the resulting binary.
38385hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38386
38387# Set to "yes" if building a shared library automatically hardcodes DIR
38388# into the library and all subsequent libraries and executables linked
38389# against it.
38390hardcode_automatic=$hardcode_automatic_CXX
38391
38392# Set to yes if linker adds runtime paths of dependent libraries
38393# to runtime path list.
38394inherit_rpath=$inherit_rpath_CXX
38395
38396# Whether libtool must link a program against all its dependency libraries.
38397link_all_deplibs=$link_all_deplibs_CXX
38398
cristy73bd4a52010-10-05 11:24:23 +000038399# Set to "yes" if exported symbols are required.
38400always_export_symbols=$always_export_symbols_CXX
38401
38402# The commands to list exported symbols.
38403export_symbols_cmds=$lt_export_symbols_cmds_CXX
38404
38405# Symbols that should not be listed in the preloaded symbols.
38406exclude_expsyms=$lt_exclude_expsyms_CXX
38407
38408# Symbols that must always be exported.
38409include_expsyms=$lt_include_expsyms_CXX
38410
38411# Commands necessary for linking programs (against libraries) with templates.
38412prelink_cmds=$lt_prelink_cmds_CXX
38413
cristyda16f162011-02-19 23:52:17 +000038414# Commands necessary for finishing linking programs.
38415postlink_cmds=$lt_postlink_cmds_CXX
38416
cristy73bd4a52010-10-05 11:24:23 +000038417# Specify filename containing input files.
38418file_list_spec=$lt_file_list_spec_CXX
38419
38420# How to hardcode a shared library path into an executable.
38421hardcode_action=$hardcode_action_CXX
38422
38423# The directories searched by this compiler when creating a shared library.
38424compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38425
38426# Dependencies to place before and after the objects being linked to
38427# create a shared library.
38428predep_objects=$lt_predep_objects_CXX
38429postdep_objects=$lt_postdep_objects_CXX
38430predeps=$lt_predeps_CXX
38431postdeps=$lt_postdeps_CXX
38432
38433# The library search path used internally by the compiler when linking
38434# a shared library.
38435compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38436
38437# ### END LIBTOOL TAG CONFIG: CXX
38438_LT_EOF
38439
38440 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038441 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038442 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038443 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038444 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38445 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38446
38447 esac
38448done # for ac_tag
38449
38450
cristy8b350f62009-11-15 23:12:43 +000038451as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038452_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038453ac_clean_files=$ac_clean_files_save
38454
38455test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038456 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038457
38458
38459# configure is writing to config.log, and then calls config.status.
38460# config.status does its own redirection, appending to config.log.
38461# Unfortunately, on DOS this fails, as config.log is still kept open
38462# by configure, so config.status won't be able to write to it; its
38463# output is simply discarded. So we exec the FD to /dev/null,
38464# effectively closing config.log, so it can be properly (re)opened and
38465# appended to by config.status. When coming back to configure, we
38466# need to make the FD available again.
38467if test "$no_create" != yes; then
38468 ac_cs_success=:
38469 ac_config_status_args=
38470 test "$silent" = yes &&
38471 ac_config_status_args="$ac_config_status_args --quiet"
38472 exec 5>/dev/null
38473 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38474 exec 5>>config.log
38475 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38476 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038477 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038478fi
38479if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038481$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38482fi
38483
38484
38485rm -f magick-version
38486
cristy430a7312010-01-21 20:44:04 +000038487result_dejavu_font_dir='none'
38488if test "${dejavu_font_dir}x" != 'x'; then
38489 result_dejavu_font_dir=$dejavu_font_dir
38490fi
38491
cristy3ed852e2009-09-05 21:47:34 +000038492result_ghostscript_font_dir='none'
38493if test "${ghostscript_font_dir}x" != 'x'; then
38494 result_ghostscript_font_dir=$ghostscript_font_dir
38495fi
38496
38497result_windows_font_dir='none'
38498if test "${windows_font_dir}x" != 'x'; then
38499 result_windows_font_dir=${windows_font_dir}
38500fi
38501
cristyad38abe2012-12-23 23:03:21 +000038502{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038503ImageMagick is configured as follows. Please verify that this configuration
38504matches your expectations.
38505
38506Host system type: $host
38507Build system type: $build
38508
38509 Option Value
38510-------------------------------------------------------------------------------
38511Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38512Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038513Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038514GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38515Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38516High Dynamic Range Imagery
38517 --enable-hdri=$enable_hdri $enable_hdri
38518
38519Delegate Configuration:
38520BZLIB --with-bzlib=$with_bzlib $have_bzlib
38521Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038522Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038523DJVU --with-djvu=$with_djvu $have_djvu
38524DPS --with-dps=$with_dps $have_dps
38525FFTW --with-fftw=$with_fftw $have_fftw
38526FlashPIX --with-fpx=$with_fpx $have_fpx
38527FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38528FreeType --with-freetype=$with_freetype $have_freetype
38529GhostPCL None $PCLDelegate ($PCLVersion)
38530GhostXPS None $XPSDelegate ($XPSVersion)
38531Ghostscript None $PSDelegate ($GSVersion)
38532Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38533Ghostscript lib --with-gslib=$with_gslib $have_gslib
38534Graphviz --with-gvc=$with_gvc $have_gvc
38535JBIG --with-jbig=$with_jbig $have_jbig
38536JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38537JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038538LCMS v1 --with-lcms=$with_lcms $have_lcms
38539LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038540LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038541LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038542LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038543Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38544OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038545PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038546PERL --with-perl=$with_perl $have_perl
38547PNG --with-png=$with_png $have_png
38548RSVG --with-rsvg=$with_rsvg $have_rsvg
38549TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038550WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038551Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038552WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038553X11 --with-x=$with_x $have_x
38554XML --with-xml=$with_xml $have_xml
38555ZLIB --with-zlib=$with_zlib $have_zlib
38556
38557X11 Configuration:
38558 X_CFLAGS = $X_CFLAGS
38559 X_PRE_LIBS = $X_PRE_LIBS
38560 X_LIBS = $X_LIBS
38561 X_EXTRA_LIBS = $X_EXTRA_LIBS
38562
38563Options used to compile and link:
38564 PREFIX = $PREFIX_DIR
38565 EXEC-PREFIX = $EXEC_PREFIX_DIR
38566 VERSION = $PACKAGE_VERSION
38567 CC = $CC
38568 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038569 CPPFLAGS = $MAGICK_CPPFLAGS
38570 PCFLAGS = $MAGICK_PCFLAGS
38571 DEFS = $DEFS
38572 LDFLAGS = $LDFLAGS
38573 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38574 LIBS = $MAGICK_LIBS
38575 CXX = $CXX
38576 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038577 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038578 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038579" >&5
cristyad38abe2012-12-23 23:03:21 +000038580$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038581ImageMagick is configured as follows. Please verify that this configuration
38582matches your expectations.
38583
38584Host system type: $host
38585Build system type: $build
38586
38587 Option Value
38588-------------------------------------------------------------------------------
38589Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38590Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038591Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038592GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38593Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38594High Dynamic Range Imagery
38595 --enable-hdri=$enable_hdri $enable_hdri
38596
38597Delegate Configuration:
38598BZLIB --with-bzlib=$with_bzlib $have_bzlib
38599Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038600Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038601DJVU --with-djvu=$with_djvu $have_djvu
38602DPS --with-dps=$with_dps $have_dps
38603FFTW --with-fftw=$with_fftw $have_fftw
38604FlashPIX --with-fpx=$with_fpx $have_fpx
38605FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38606FreeType --with-freetype=$with_freetype $have_freetype
38607GhostPCL None $PCLDelegate ($PCLVersion)
38608GhostXPS None $XPSDelegate ($XPSVersion)
38609Ghostscript None $PSDelegate ($GSVersion)
38610Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38611Ghostscript lib --with-gslib=$with_gslib $have_gslib
38612Graphviz --with-gvc=$with_gvc $have_gvc
38613JBIG --with-jbig=$with_jbig $have_jbig
38614JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38615JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038616LCMS v1 --with-lcms=$with_lcms $have_lcms
38617LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038618LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038619LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038620LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038621Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38622OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038623PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038624PERL --with-perl=$with_perl $have_perl
38625PNG --with-png=$with_png $have_png
38626RSVG --with-rsvg=$with_rsvg $have_rsvg
38627TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038628WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038629Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038630WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038631X11 --with-x=$with_x $have_x
38632XML --with-xml=$with_xml $have_xml
38633ZLIB --with-zlib=$with_zlib $have_zlib
38634
38635X11 Configuration:
38636 X_CFLAGS = $X_CFLAGS
38637 X_PRE_LIBS = $X_PRE_LIBS
38638 X_LIBS = $X_LIBS
38639 X_EXTRA_LIBS = $X_EXTRA_LIBS
38640
38641Options used to compile and link:
38642 PREFIX = $PREFIX_DIR
38643 EXEC-PREFIX = $EXEC_PREFIX_DIR
38644 VERSION = $PACKAGE_VERSION
38645 CC = $CC
38646 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038647 CPPFLAGS = $MAGICK_CPPFLAGS
38648 PCFLAGS = $MAGICK_PCFLAGS
38649 DEFS = $DEFS
38650 LDFLAGS = $LDFLAGS
38651 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38652 LIBS = $MAGICK_LIBS
38653 CXX = $CXX
38654 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038655 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038656 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038657" >&6; }