blob: a482eaf22b866aeb37e558acfa974dcddbe054ee [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
cristy86e86092013-08-04 17:43:57 +0000695WebPEncodeDelegate
696WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000697UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000699SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000701RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000702RMDelegate
703RLEEncodeDelegate
704PSDelegate
705POVDelegate
706PGPDecodeDelegate
707PCLDelegate
708MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000709MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000710MPEGEncodeDelegate
711MPEGDecodeDelegate
712MANDelegate
713LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714LPRDelegate
715LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000716JXREncodeDelegate
717JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718ILBMEncodeDelegate
719ILBMDecodeDelegate
720HTMLDecodeDelegate
721HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000722GnuplotDecodeDelegate
723MogrifyDelegate
724DisplayDelegate
725ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000726EditorDelegate
727EchoDelegate
728DVIDecodeDelegate
729GVCDecodeDelegate
730DNGDecodeDelegate
731CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000732BrowseDelegate
733BZIPDelegate
734BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000735AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000736SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000737SHAREARCH_RELATIVE_PATH
738SHAREARCH_DIRNAME
739SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000740SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000741CONFIGURE_PATH
cristydd17feb2014-03-05 02:06:32 +0000742INSTALL_DOC_FALSE
743INSTALL_DOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000744DOCUMENTATION_PATH
745FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000746FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000747CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000748CODER_DIRNAME
749MODULES_PATH
750MODULES_RELATIVE_PATH
751MODULES_DIRNAME
752MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000753LIB_BIN_DIR_PATH
754LIB_BIN_DIR_RELATIVE_PATH
755LIB_BIN_DIR
756LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000757LIBRARY_PATH
758EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000759INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000760INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000761PERLMAINCC
762XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000763XML_DELEGATE_FALSE
764XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000765xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000766WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000767WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000768WMF_DELEGATE_FALSE
769WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000770WEBP_LIBS
771WEBP_DELEGATE_FALSE
772WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774TIFF_DELEGATE_FALSE
775TIFF_DELEGATE_TRUE
776CAIRO_DELEGATE_FALSE
777CAIRO_DELEGATE_TRUE
778RSVG_DELEGATE_FALSE
779RSVG_DELEGATE_TRUE
780CAIRO_SVG_LIBS
781CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000782RSVG_LIBS
783RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000784PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000785PNG_DELEGATE_FALSE
786PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000787PANGOCAIRO_DELEGATE_FALSE
788PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000789PANGO_DELEGATE_FALSE
790PANGO_DELEGATE_TRUE
791PANGO_LIBS
792PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000793OPENEXR_DELEGATE_FALSE
794OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795OPENEXR_LIBS
796OPENEXR_CFLAGS
cristy854c9cf2013-08-10 21:03:06 +0000797MUPDF_LIBS
798MUPDF_DELEGATE_FALSE
799MUPDF_DELEGATE_TRUE
cristyfbb0ef02010-12-19 02:32:11 +0000800LZMA_DELEGATE_FALSE
801LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000802LZMA_LIBS
803LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000804LQR_DELEGATE_FALSE
805LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806LQR_LIBS
807LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000808LIBOPENJP2_DELEGATE_FALSE
809LIBOPENJP2_DELEGATE_TRUE
810LIBOPENJP2_LIBS
811LIBOPENJP2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000812LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813LCMS_DELEGATE_FALSE
814LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816JPEG_DELEGATE_FALSE
817JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000819JBIG_DELEGATE_FALSE
820JBIG_DELEGATE_TRUE
821GVC_DELEGATE_FALSE
822GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823GVC_LIBS
824GVC_CFLAGS
825GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000826GS_DELEGATE_FALSE
827GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000828FREETYPE_DELEGATE_FALSE
829FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000830FREETYPE_LIBS
831FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000832FONTCONFIG_DELEGATE_FALSE
833FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834FONTCONFIG_LIBS
835FONTCONFIG_CFLAGS
836FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000837FPX_DELEGATE_FALSE
838FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000840FFTW_DELEGATE_FALSE
841FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000842DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000843DJVU_DELEGATE_FALSE
844DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000845DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000846DPS_DELEGATE_FALSE
847DPS_DELEGATE_TRUE
848AUTOTRACE_DELEGATE_FALSE
849AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000850AUTOTRACE_LIBS
851AUTOTRACE_CFLAGS
852LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000853WITH_LTDL_FALSE
854WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000855ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000856ZLIB_DELEGATE_FALSE
857ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000858XEXT_LIBS
859X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000860X11_DELEGATE_FALSE
861X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862X_EXTRA_LIBS
863X_LIBS
864X_PRE_LIBS
865X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000866XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000867BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000868BZLIB_DELEGATE_FALSE
869BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000870CCMALLOCDelegate
871UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000872HasUMEM_FALSE
873HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000875WITH_MAGICK_PLUS_PLUS_FALSE
876WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000877OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000878MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000879POW_LIB
880LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000881UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000882UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000883UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000884UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000885UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000886UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000887INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000888INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000889UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000890UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000891INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000892INT32_T
893UINT16_T
894INT16_T
895UINT8_T
896INT8_T
897LIBRARY_EXTRA_CPPFLAGS
898MODULE_EXTRA_CPPFLAGS
899LIBSTDCLDFLAGS
900PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000901MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000902MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000903QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000904LEGACY_SUPPORT_FALSE
905LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000906MAINT
907MAINTAINER_MODE_FALSE
908MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000909MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000910WITH_MODULES_FALSE
911WITH_MODULES_TRUE
912WITH_SHARED_LIBS_FALSE
913WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000914LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000915CXXCPP
916OTOOL64
917OTOOL
918LIPO
919NMEDIT
920DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000921MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000922RANLIB
cristyda16f162011-02-19 23:52:17 +0000923ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000924AR
925NM
926ac_ct_DUMPBIN
927DUMPBIN
928LIBTOOL
929OBJDUMP
930DLLTOOL
931AS
cristy3ed852e2009-09-05 21:47:34 +0000932LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000933CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000934CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000935OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000936THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000937PTHREAD_CFLAGS
938PTHREAD_LIBS
939PTHREAD_CC
940ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000941pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000942SHAREARCH_DIR
943INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000944WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000945USING_CL_FALSE
946USING_CL_TRUE
947CYGWIN_BUILD_FALSE
948CYGWIN_BUILD_TRUE
949WIN32_NATIVE_BUILD_FALSE
950WIN32_NATIVE_BUILD_TRUE
951WINGDI32_DELEGATE_FALSE
952WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000953GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000954HAVE_LD_VERSION_SCRIPT_FALSE
955HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000956PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000957PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000958LN_S
cristy3ed852e2009-09-05 21:47:34 +0000959LD
cristy73bd4a52010-10-05 11:24:23 +0000960FGREP
961SED
962am__fastdepCXX_FALSE
963am__fastdepCXX_TRUE
964CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000965ac_ct_CXX
966CXXFLAGS
967CXX
cristya0b81c32010-01-22 02:54:33 +0000968EGREP
969GREP
970CPP
cristy73bd4a52010-10-05 11:24:23 +0000971am__fastdepCC_FALSE
972am__fastdepCC_TRUE
973CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000974am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000975AMDEPBACKSLASH
976AMDEP_FALSE
977AMDEP_TRUE
978am__quote
979am__include
980DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000981OBJEXT
982EXEEXT
983ac_ct_CC
984CPPFLAGS
985LDFLAGS
986CFLAGS
987CC
988DIRSEP
989MAGICK_FILTER_MODULE_PATH
990MAGICK_CONFIGURE_BUILD_PATH
991MAGICK_CONFIGURE_SRC_PATH
992MAGICK_CODER_MODULE_PATH
993MAN_DIR
994INFO_DIR
995PERSISTINCLUDE_DIR
996INCLUDE_DIR
997LIB_DIR
998LOCALSTATE_DIR
999SHAREDSTATE_DIR
1000SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001001DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001002DATA_DIR
1003LIBEXEC_DIR
1004SBIN_DIR
1005BIN_DIR
1006EXEC_PREFIX_DIR
1007PREFIX_DIR
1008CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001009MAGICKPP_LIB_VERSION_TEXT
1010MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001011MAGICK_LIB_VERSION_NUMBER
1012MAGICK_LIB_VERSION_TEXT
1013MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001014AM_BACKSLASH
1015AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001016AM_DEFAULT_V
1017AM_V
cristy73bd4a52010-10-05 11:24:23 +00001018am__untar
1019am__tar
1020AMTAR
1021am__leading_dot
1022SET_MAKE
1023AWK
1024mkdir_p
1025MKDIR_P
1026INSTALL_STRIP_PROGRAM
1027STRIP
1028install_sh
1029MAKEINFO
1030AUTOHEADER
1031AUTOMAKE
1032AUTOCONF
1033ACLOCAL
1034VERSION
1035PACKAGE
1036CYGPATH_W
1037am__isrc
1038INSTALL_DATA
1039INSTALL_SCRIPT
1040INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001041PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001042PACKAGE_RELEASE_DATE
1043PACKAGE_LIB_VERSION_NUMBER
1044PACKAGE_LIB_VERSION
1045PACKAGE_CHANGE_DATE
1046PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001047PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001048MAGICKPP_LIBRARY_VERSION_INFO
1049MAGICKPP_LIBRARY_CURRENT_MIN
1050MAGICKPP_LIBRARY_AGE
1051MAGICKPP_LIBRARY_REVISION
1052MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001053MAGICK_LIBRARY_VERSION_INFO
1054MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001055MAGICK_LIBRARY_AGE
1056MAGICK_LIBRARY_REVISION
1057MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001058MAGICK_SVN_REVISION
1059MAGICK_VERSION
1060MAGICK_PATCHLEVEL_VERSION
1061MAGICK_MICRO_VERSION
1062MAGICK_MINOR_VERSION
1063MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001064MAGICK_TARGET_OS
1065MAGICK_TARGET_VENDOR
1066MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001067target_os
1068target_vendor
1069target_cpu
1070target
1071host_os
1072host_vendor
1073host_cpu
1074host
1075build_os
1076build_vendor
1077build_cpu
1078build
1079CONFIGURE_ARGS
1080DISTCHECK_CONFIG_FLAGS
1081target_alias
1082host_alias
1083build_alias
1084LIBS
1085ECHO_T
1086ECHO_N
1087ECHO_C
1088DEFS
1089mandir
1090localedir
1091libdir
1092psdir
1093pdfdir
1094dvidir
1095htmldir
1096infodir
1097docdir
1098oldincludedir
1099includedir
1100localstatedir
1101sharedstatedir
1102sysconfdir
1103datadir
1104datarootdir
1105libexecdir
1106sbindir
1107bindir
1108program_transform_name
1109prefix
1110exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001111PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001112PACKAGE_BUGREPORT
1113PACKAGE_STRING
1114PACKAGE_VERSION
1115PACKAGE_TARNAME
1116PACKAGE_NAME
1117PATH_SEPARATOR
1118SHELL'
1119ac_subst_files=''
1120ac_user_opts='
1121enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001122enable_silent_rules
1123enable_dependency_tracking
1124with_gnu_ld
1125with_dmalloc
cristya0459972013-11-03 18:09:35 +00001126with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001127enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001128enable_bounds_checking
1129enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001130with_includearch_dir
1131with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001132with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001133with_threads
1134enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001135enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001136enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001137enable_shared
1138enable_static
1139with_pic
1140enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001141with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001142enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001143with_modules
1144enable_delegate_build
1145enable_deprecated
1146enable_installed
1147enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001148enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001149enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001150enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001151enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001152enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001153enable_ccmalloc
1154enable_efence
1155enable_prof
1156enable_gprof
1157enable_gcov
1158with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001159enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001160with_quantum_depth
1161with_cache
1162with_frozenpaths
1163with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001164with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001165with_perl
1166with_perl_options
1167with_umem
1168with_libstdc
1169with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001170with_x
cristy3ed852e2009-09-05 21:47:34 +00001171with_zlib
1172with_autotrace
1173with_dps
1174with_djvu
cristy430a7312010-01-21 20:44:04 +00001175with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001176with_fftw
1177with_fpx
1178with_fontconfig
1179with_freetype
1180with_gslib
1181with_fontpath
1182with_gs_font_dir
1183with_gvc
1184with_jbig
1185with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001186with_lcms
cristy71203402010-06-18 13:12:03 +00001187with_lcms2
cristy99db3872014-01-01 15:11:34 +00001188with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001189with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001190with_lzma
cristy854c9cf2013-08-10 21:03:06 +00001191with_mupdf
cristy3ed852e2009-09-05 21:47:34 +00001192with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001193with_pango
cristy3ed852e2009-09-05 21:47:34 +00001194with_png
1195with_rsvg
1196with_tiff
cristyb1860752011-03-14 00:27:46 +00001197with_webp
cristy3ed852e2009-09-05 21:47:34 +00001198with_windows_font_dir
1199with_wmf
1200with_xml
cristydd17feb2014-03-05 02:06:32 +00001201enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001202'
1203 ac_precious_vars='build_alias
1204host_alias
1205target_alias
1206CC
1207CFLAGS
1208LDFLAGS
1209LIBS
1210CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001211CPP
cristy3ed852e2009-09-05 21:47:34 +00001212CXX
1213CXXFLAGS
1214CCC
cristy73bd4a52010-10-05 11:24:23 +00001215PKG_CONFIG
1216CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001217XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001218AUTOTRACE_CFLAGS
1219AUTOTRACE_LIBS
1220FONTCONFIG_CFLAGS
1221FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001222FREETYPE_CFLAGS
1223FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001224GVC_CFLAGS
1225GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001226LIBOPENJP2_CFLAGS
1227LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001228LQR_CFLAGS
1229LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001230LZMA_CFLAGS
1231LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001232OPENEXR_CFLAGS
1233OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001234PANGO_CFLAGS
1235PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001236RSVG_CFLAGS
1237RSVG_LIBS
1238CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001239CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001240
1241
1242# Initialize some variables set by options.
1243ac_init_help=
1244ac_init_version=false
1245ac_unrecognized_opts=
1246ac_unrecognized_sep=
1247# The variables have the same names as the options, with
1248# dashes changed to underlines.
1249cache_file=/dev/null
1250exec_prefix=NONE
1251no_create=
1252no_recursion=
1253prefix=NONE
1254program_prefix=NONE
1255program_suffix=NONE
1256program_transform_name=s,x,x,
1257silent=
1258site=
1259srcdir=
1260verbose=
1261x_includes=NONE
1262x_libraries=NONE
1263
1264# Installation directory options.
1265# These are left unexpanded so users can "make install exec_prefix=/foo"
1266# and all the variables that are supposed to be based on exec_prefix
1267# by default will actually change.
1268# Use braces instead of parens because sh, perl, etc. also accept them.
1269# (The list follows the same order as the GNU Coding Standards.)
1270bindir='${exec_prefix}/bin'
1271sbindir='${exec_prefix}/sbin'
1272libexecdir='${exec_prefix}/libexec'
1273datarootdir='${prefix}/share'
1274datadir='${datarootdir}'
1275sysconfdir='${prefix}/etc'
1276sharedstatedir='${prefix}/com'
1277localstatedir='${prefix}/var'
1278includedir='${prefix}/include'
1279oldincludedir='/usr/include'
1280docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1281infodir='${datarootdir}/info'
1282htmldir='${docdir}'
1283dvidir='${docdir}'
1284pdfdir='${docdir}'
1285psdir='${docdir}'
1286libdir='${exec_prefix}/lib'
1287localedir='${datarootdir}/locale'
1288mandir='${datarootdir}/man'
1289
1290ac_prev=
1291ac_dashdash=
1292for ac_option
1293do
1294 # If the previous option needs an argument, assign it.
1295 if test -n "$ac_prev"; then
1296 eval $ac_prev=\$ac_option
1297 ac_prev=
1298 continue
1299 fi
1300
1301 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001302 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1303 *=) ac_optarg= ;;
1304 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001305 esac
1306
1307 # Accept the important Cygnus configure options, so we can diagnose typos.
1308
1309 case $ac_dashdash$ac_option in
1310 --)
1311 ac_dashdash=yes ;;
1312
1313 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1314 ac_prev=bindir ;;
1315 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1316 bindir=$ac_optarg ;;
1317
1318 -build | --build | --buil | --bui | --bu)
1319 ac_prev=build_alias ;;
1320 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1321 build_alias=$ac_optarg ;;
1322
1323 -cache-file | --cache-file | --cache-fil | --cache-fi \
1324 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1325 ac_prev=cache_file ;;
1326 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1327 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1328 cache_file=$ac_optarg ;;
1329
1330 --config-cache | -C)
1331 cache_file=config.cache ;;
1332
1333 -datadir | --datadir | --datadi | --datad)
1334 ac_prev=datadir ;;
1335 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1336 datadir=$ac_optarg ;;
1337
1338 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1339 | --dataroo | --dataro | --datar)
1340 ac_prev=datarootdir ;;
1341 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1342 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1343 datarootdir=$ac_optarg ;;
1344
1345 -disable-* | --disable-*)
1346 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1358 esac
1359 eval enable_$ac_useropt=no ;;
1360
1361 -docdir | --docdir | --docdi | --doc | --do)
1362 ac_prev=docdir ;;
1363 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1364 docdir=$ac_optarg ;;
1365
1366 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1367 ac_prev=dvidir ;;
1368 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1369 dvidir=$ac_optarg ;;
1370
1371 -enable-* | --enable-*)
1372 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001375 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001376 ac_useropt_orig=$ac_useropt
1377 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378 case $ac_user_opts in
1379 *"
1380"enable_$ac_useropt"
1381"*) ;;
1382 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1383 ac_unrecognized_sep=', ';;
1384 esac
1385 eval enable_$ac_useropt=\$ac_optarg ;;
1386
1387 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1388 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1389 | --exec | --exe | --ex)
1390 ac_prev=exec_prefix ;;
1391 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1392 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1393 | --exec=* | --exe=* | --ex=*)
1394 exec_prefix=$ac_optarg ;;
1395
1396 -gas | --gas | --ga | --g)
1397 # Obsolete; use --with-gas.
1398 with_gas=yes ;;
1399
1400 -help | --help | --hel | --he | -h)
1401 ac_init_help=long ;;
1402 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1403 ac_init_help=recursive ;;
1404 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1405 ac_init_help=short ;;
1406
1407 -host | --host | --hos | --ho)
1408 ac_prev=host_alias ;;
1409 -host=* | --host=* | --hos=* | --ho=*)
1410 host_alias=$ac_optarg ;;
1411
1412 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1413 ac_prev=htmldir ;;
1414 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1415 | --ht=*)
1416 htmldir=$ac_optarg ;;
1417
1418 -includedir | --includedir | --includedi | --included | --include \
1419 | --includ | --inclu | --incl | --inc)
1420 ac_prev=includedir ;;
1421 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1422 | --includ=* | --inclu=* | --incl=* | --inc=*)
1423 includedir=$ac_optarg ;;
1424
1425 -infodir | --infodir | --infodi | --infod | --info | --inf)
1426 ac_prev=infodir ;;
1427 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1428 infodir=$ac_optarg ;;
1429
1430 -libdir | --libdir | --libdi | --libd)
1431 ac_prev=libdir ;;
1432 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1433 libdir=$ac_optarg ;;
1434
1435 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1436 | --libexe | --libex | --libe)
1437 ac_prev=libexecdir ;;
1438 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1439 | --libexe=* | --libex=* | --libe=*)
1440 libexecdir=$ac_optarg ;;
1441
1442 -localedir | --localedir | --localedi | --localed | --locale)
1443 ac_prev=localedir ;;
1444 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1445 localedir=$ac_optarg ;;
1446
1447 -localstatedir | --localstatedir | --localstatedi | --localstated \
1448 | --localstate | --localstat | --localsta | --localst | --locals)
1449 ac_prev=localstatedir ;;
1450 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1451 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1452 localstatedir=$ac_optarg ;;
1453
1454 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1455 ac_prev=mandir ;;
1456 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1457 mandir=$ac_optarg ;;
1458
1459 -nfp | --nfp | --nf)
1460 # Obsolete; use --without-fp.
1461 with_fp=no ;;
1462
1463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1464 | --no-cr | --no-c | -n)
1465 no_create=yes ;;
1466
1467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1469 no_recursion=yes ;;
1470
1471 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1472 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1473 | --oldin | --oldi | --old | --ol | --o)
1474 ac_prev=oldincludedir ;;
1475 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1476 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1477 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1478 oldincludedir=$ac_optarg ;;
1479
1480 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1481 ac_prev=prefix ;;
1482 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1483 prefix=$ac_optarg ;;
1484
1485 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1486 | --program-pre | --program-pr | --program-p)
1487 ac_prev=program_prefix ;;
1488 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1489 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1490 program_prefix=$ac_optarg ;;
1491
1492 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1493 | --program-suf | --program-su | --program-s)
1494 ac_prev=program_suffix ;;
1495 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1496 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1497 program_suffix=$ac_optarg ;;
1498
1499 -program-transform-name | --program-transform-name \
1500 | --program-transform-nam | --program-transform-na \
1501 | --program-transform-n | --program-transform- \
1502 | --program-transform | --program-transfor \
1503 | --program-transfo | --program-transf \
1504 | --program-trans | --program-tran \
1505 | --progr-tra | --program-tr | --program-t)
1506 ac_prev=program_transform_name ;;
1507 -program-transform-name=* | --program-transform-name=* \
1508 | --program-transform-nam=* | --program-transform-na=* \
1509 | --program-transform-n=* | --program-transform-=* \
1510 | --program-transform=* | --program-transfor=* \
1511 | --program-transfo=* | --program-transf=* \
1512 | --program-trans=* | --program-tran=* \
1513 | --progr-tra=* | --program-tr=* | --program-t=*)
1514 program_transform_name=$ac_optarg ;;
1515
1516 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1517 ac_prev=pdfdir ;;
1518 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1519 pdfdir=$ac_optarg ;;
1520
1521 -psdir | --psdir | --psdi | --psd | --ps)
1522 ac_prev=psdir ;;
1523 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1524 psdir=$ac_optarg ;;
1525
1526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527 | -silent | --silent | --silen | --sile | --sil)
1528 silent=yes ;;
1529
1530 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1531 ac_prev=sbindir ;;
1532 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1533 | --sbi=* | --sb=*)
1534 sbindir=$ac_optarg ;;
1535
1536 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1537 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1538 | --sharedst | --shareds | --shared | --share | --shar \
1539 | --sha | --sh)
1540 ac_prev=sharedstatedir ;;
1541 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1542 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1543 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1544 | --sha=* | --sh=*)
1545 sharedstatedir=$ac_optarg ;;
1546
1547 -site | --site | --sit)
1548 ac_prev=site ;;
1549 -site=* | --site=* | --sit=*)
1550 site=$ac_optarg ;;
1551
1552 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1553 ac_prev=srcdir ;;
1554 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1555 srcdir=$ac_optarg ;;
1556
1557 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1558 | --syscon | --sysco | --sysc | --sys | --sy)
1559 ac_prev=sysconfdir ;;
1560 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1561 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1562 sysconfdir=$ac_optarg ;;
1563
1564 -target | --target | --targe | --targ | --tar | --ta | --t)
1565 ac_prev=target_alias ;;
1566 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1567 target_alias=$ac_optarg ;;
1568
1569 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1570 verbose=yes ;;
1571
1572 -version | --version | --versio | --versi | --vers | -V)
1573 ac_init_version=: ;;
1574
1575 -with-* | --with-*)
1576 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1577 # Reject names that are not valid shell variable names.
1578 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001579 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001580 ac_useropt_orig=$ac_useropt
1581 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1582 case $ac_user_opts in
1583 *"
1584"with_$ac_useropt"
1585"*) ;;
1586 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1587 ac_unrecognized_sep=', ';;
1588 esac
1589 eval with_$ac_useropt=\$ac_optarg ;;
1590
1591 -without-* | --without-*)
1592 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1593 # Reject names that are not valid shell variable names.
1594 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001595 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001596 ac_useropt_orig=$ac_useropt
1597 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1599 *"
1600"with_$ac_useropt"
1601"*) ;;
1602 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1603 ac_unrecognized_sep=', ';;
1604 esac
1605 eval with_$ac_useropt=no ;;
1606
1607 --x)
1608 # Obsolete; use --with-x.
1609 with_x=yes ;;
1610
1611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1612 | --x-incl | --x-inc | --x-in | --x-i)
1613 ac_prev=x_includes ;;
1614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1616 x_includes=$ac_optarg ;;
1617
1618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1620 ac_prev=x_libraries ;;
1621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1623 x_libraries=$ac_optarg ;;
1624
cristy98dddb52010-11-04 00:30:15 +00001625 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1626Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001627 ;;
1628
1629 *=*)
1630 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1631 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001632 case $ac_envvar in #(
1633 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001634 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001635 esac
cristy3ed852e2009-09-05 21:47:34 +00001636 eval $ac_envvar=\$ac_optarg
1637 export $ac_envvar ;;
1638
1639 *)
1640 # FIXME: should be removed in autoconf 3.0.
1641 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1642 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1643 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001644 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001645 ;;
1646
1647 esac
1648done
1649
1650if test -n "$ac_prev"; then
1651 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001652 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001653fi
1654
1655if test -n "$ac_unrecognized_opts"; then
1656 case $enable_option_checking in
1657 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001658 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001659 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1660 esac
1661fi
1662
1663# Check all directory arguments for consistency.
1664for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1665 datadir sysconfdir sharedstatedir localstatedir includedir \
1666 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1667 libdir localedir mandir
1668do
1669 eval ac_val=\$$ac_var
1670 # Remove trailing slashes.
1671 case $ac_val in
1672 */ )
1673 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1674 eval $ac_var=\$ac_val;;
1675 esac
1676 # Be sure to have absolute directory names.
1677 case $ac_val in
1678 [\\/$]* | ?:[\\/]* ) continue;;
1679 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1680 esac
cristy98dddb52010-11-04 00:30:15 +00001681 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001682done
1683
1684# There might be people who depend on the old broken behavior: `$host'
1685# used to hold the argument of --host etc.
1686# FIXME: To remove some day.
1687build=$build_alias
1688host=$host_alias
1689target=$target_alias
1690
1691# FIXME: To remove some day.
1692if test "x$host_alias" != x; then
1693 if test "x$build_alias" = x; then
1694 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001695 elif test "x$build_alias" != "x$host_alias"; then
1696 cross_compiling=yes
1697 fi
1698fi
1699
1700ac_tool_prefix=
1701test -n "$host_alias" && ac_tool_prefix=$host_alias-
1702
1703test "$silent" = yes && exec 6>/dev/null
1704
1705
1706ac_pwd=`pwd` && test -n "$ac_pwd" &&
1707ac_ls_di=`ls -di .` &&
1708ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001709 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001710test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001711 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001712
1713
1714# Find the source files, if location was not specified.
1715if test -z "$srcdir"; then
1716 ac_srcdir_defaulted=yes
1717 # Try the directory containing this script, then the parent directory.
1718 ac_confdir=`$as_dirname -- "$as_myself" ||
1719$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1720 X"$as_myself" : 'X\(//\)[^/]' \| \
1721 X"$as_myself" : 'X\(//\)$' \| \
1722 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1723$as_echo X"$as_myself" |
1724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1725 s//\1/
1726 q
1727 }
1728 /^X\(\/\/\)[^/].*/{
1729 s//\1/
1730 q
1731 }
1732 /^X\(\/\/\)$/{
1733 s//\1/
1734 q
1735 }
1736 /^X\(\/\).*/{
1737 s//\1/
1738 q
1739 }
1740 s/.*/./; q'`
1741 srcdir=$ac_confdir
1742 if test ! -r "$srcdir/$ac_unique_file"; then
1743 srcdir=..
1744 fi
1745else
1746 ac_srcdir_defaulted=no
1747fi
1748if test ! -r "$srcdir/$ac_unique_file"; then
1749 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001750 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001751fi
1752ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1753ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001754 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001755 pwd)`
1756# When building in place, set srcdir=.
1757if test "$ac_abs_confdir" = "$ac_pwd"; then
1758 srcdir=.
1759fi
1760# Remove unnecessary trailing slashes from srcdir.
1761# Double slashes in file names in object file debugging info
1762# mess up M-x gdb in Emacs.
1763case $srcdir in
1764*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1765esac
1766for ac_var in $ac_precious_vars; do
1767 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1768 eval ac_env_${ac_var}_value=\$${ac_var}
1769 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1770 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1771done
1772
1773#
1774# Report the --help message.
1775#
1776if test "$ac_init_help" = "long"; then
1777 # Omit some internal or obsolete options to make the list less imposing.
1778 # This message is too long to be a string in the A/UX 3.1 sh.
1779 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001780\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001781
1782Usage: $0 [OPTION]... [VAR=VALUE]...
1783
1784To assign environment variables (e.g., CC, CFLAGS...), specify them as
1785VAR=VALUE. See below for descriptions of some of the useful variables.
1786
1787Defaults for the options are specified in brackets.
1788
1789Configuration:
1790 -h, --help display this help and exit
1791 --help=short display options specific to this package
1792 --help=recursive display the short help of all the included packages
1793 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001794 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001795 --cache-file=FILE cache test results in FILE [disabled]
1796 -C, --config-cache alias for \`--cache-file=config.cache'
1797 -n, --no-create do not create output files
1798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1799
1800Installation directories:
1801 --prefix=PREFIX install architecture-independent files in PREFIX
1802 [$ac_default_prefix]
1803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1804 [PREFIX]
1805
1806By default, \`make install' will install all the files in
1807\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1808an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1809for instance \`--prefix=\$HOME'.
1810
1811For better control, use the options below.
1812
1813Fine tuning of the installation directories:
1814 --bindir=DIR user executables [EPREFIX/bin]
1815 --sbindir=DIR system admin executables [EPREFIX/sbin]
1816 --libexecdir=DIR program executables [EPREFIX/libexec]
1817 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1818 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1819 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1820 --libdir=DIR object code libraries [EPREFIX/lib]
1821 --includedir=DIR C header files [PREFIX/include]
1822 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1823 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1824 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1825 --infodir=DIR info documentation [DATAROOTDIR/info]
1826 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1827 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001828 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001829 --htmldir=DIR html documentation [DOCDIR]
1830 --dvidir=DIR dvi documentation [DOCDIR]
1831 --pdfdir=DIR pdf documentation [DOCDIR]
1832 --psdir=DIR ps documentation [DOCDIR]
1833_ACEOF
1834
1835 cat <<\_ACEOF
1836
cristy73bd4a52010-10-05 11:24:23 +00001837Program names:
1838 --program-prefix=PREFIX prepend PREFIX to installed program names
1839 --program-suffix=SUFFIX append SUFFIX to installed program names
1840 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1841
cristy3ed852e2009-09-05 21:47:34 +00001842X features:
1843 --x-includes=DIR X include files are in DIR
1844 --x-libraries=DIR X library files are in DIR
1845
1846System types:
1847 --build=BUILD configure for building on BUILD [guessed]
1848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1849 --target=TARGET configure for building compilers for TARGET [HOST]
1850_ACEOF
1851fi
1852
1853if test -n "$ac_init_help"; then
1854 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001855 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001856 esac
1857 cat <<\_ACEOF
1858
1859Optional Features:
1860 --disable-option-checking ignore unrecognized --enable/--with options
1861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001863 --enable-silent-rules less verbose build output (undo: "make V=1")
1864 --disable-silent-rules verbose build output (undo: "make V=0")
1865 --enable-dependency-tracking
1866 do not reject slow dependency extractors
1867 --disable-dependency-tracking
1868 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001869 --enable-ld-version-script
1870 enable linker version script (default is enabled
1871 when possible)
cristya3824692012-03-30 17:22:07 +00001872 --enable-bounds-checking
1873 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001874 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001875 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001876 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001877 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001878 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001879 --enable-shared[=PKGS] build shared libraries [default=yes]
1880 --enable-static[=PKGS] build static libraries [default=yes]
1881 --enable-fast-install[=PKGS]
1882 optimize for fast installation [default=yes]
1883 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001884 --enable-delegate-build look for delegate libraries in build directory
1885 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001886 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001887 --disable-installed Formally install ImageMagick under PREFIX
1888 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001889 --enable-zero-configuration
1890 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001891 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001892 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001893 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001894 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001895 --enable-maintainer-mode
1896 enable make rules and dependencies not useful (and
1897 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001898 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001899 --enable-ccmalloc enable 'ccmalloc' memory debug support
1900 --enable-efence enable 'efence' memory debug support
1901 --enable-prof enable 'prof' profiling support
1902 --enable-gprof enable 'gprof' profiling support
1903 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001904 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001905 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001906 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001907
1908Optional Packages:
1909 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1910 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001911 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001912 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001913 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1914 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001915 --includearch-dir=DIR ARCH specific include directory
1916 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001917 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001918 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001919 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001920 both]
cristyda16f162011-02-19 23:52:17 +00001921 --with-sysroot=DIR Search for dependent libraries within DIR
1922 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001923 --with-modules enable building dynamically loadable modules
1924 --with-method-prefix=PREFIX
1925 prefix MagickCore API methods
1926 --with-quantum-depth=DEPTH
1927 number of bits in a pixel quantum (default 16)
1928 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1929 memory)
1930 --with-frozenpaths freeze delegate paths
1931 --without-magick-plus-plus
1932 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001933 --with-package-release-name=NAME
1934 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001935 --with-perl enable build/install of PerlMagick
1936 --with-perl-options=OPTIONS
1937 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001938 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001939 --with-umem enable umem memory allocation library support
1940 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1941 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001942 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001943 --without-zlib disable ZLIB support
1944 --with-autotrace enable autotrace support
1945 --without-dps disable Display Postscript support
1946 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001947 --with-dejavu-font-dir=DIR
1948 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001949 --without-fftw disable FFTW support
1950 --without-fpx disable FlashPIX support
1951 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001952 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001953 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001954 --with-fontpath=DIR prepend to default font search path
1955 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001956 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001957 --without-jbig disable JBIG support
1958 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001959 --without-lcms disable lcms (v1.1X) support
1960 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001961 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001962 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001963 --without-lzma disable LZMA support
cristy854c9cf2013-08-10 21:03:06 +00001964 --with-mupdf enable MUPDF support
cristy3ed852e2009-09-05 21:47:34 +00001965 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001966 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001967 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001968 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001969 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001970 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001971 --with-windows-font-dir=DIR
1972 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001973 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001974 --without-xml disable XML support
1975
1976Some influential environment variables:
1977 CC C compiler command
1978 CFLAGS C compiler flags
1979 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1980 nonstandard directory <lib dir>
1981 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001982 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001983 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001984 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001985 CXX C++ compiler command
1986 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001987 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001988 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001989 XMKMF Path to xmkmf, Makefile generator for X Window System
1990 AUTOTRACE_CFLAGS
1991 C compiler flags for AUTOTRACE, overriding pkg-config
1992 AUTOTRACE_LIBS
1993 linker flags for AUTOTRACE, overriding pkg-config
1994 FONTCONFIG_CFLAGS
1995 C compiler flags for FONTCONFIG, overriding pkg-config
1996 FONTCONFIG_LIBS
1997 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001998 FREETYPE_CFLAGS
1999 C compiler flags for FREETYPE, overriding pkg-config
2000 FREETYPE_LIBS
2001 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002002 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2003 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002004 LIBOPENJP2_CFLAGS
2005 C compiler flags for LIBOPENJP2, overriding pkg-config
2006 LIBOPENJP2_LIBS
2007 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002008 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2009 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002010 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2011 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002012 OPENEXR_CFLAGS
2013 C compiler flags for OPENEXR, overriding pkg-config
2014 OPENEXR_LIBS
2015 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002016 PANGO_CFLAGS
2017 C compiler flags for PANGO, overriding pkg-config
2018 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002019 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2020 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2021 CAIRO_SVG_CFLAGS
2022 C compiler flags for CAIRO_SVG, overriding pkg-config
2023 CAIRO_SVG_LIBS
2024 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002025
2026Use these variables to override the choices made by `configure' or to help
2027it to find libraries and programs with nonstandard names/locations.
2028
2029Report bugs to <http://www.imagemagick.org>.
2030_ACEOF
2031ac_status=$?
2032fi
2033
2034if test "$ac_init_help" = "recursive"; then
2035 # If there are subdirs, report their specific --help.
2036 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2037 test -d "$ac_dir" ||
2038 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2039 continue
2040 ac_builddir=.
2041
2042case "$ac_dir" in
2043.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2044*)
2045 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2046 # A ".." for each directory in $ac_dir_suffix.
2047 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2048 case $ac_top_builddir_sub in
2049 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2050 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2051 esac ;;
2052esac
2053ac_abs_top_builddir=$ac_pwd
2054ac_abs_builddir=$ac_pwd$ac_dir_suffix
2055# for backward compatibility:
2056ac_top_builddir=$ac_top_build_prefix
2057
2058case $srcdir in
2059 .) # We are building in place.
2060 ac_srcdir=.
2061 ac_top_srcdir=$ac_top_builddir_sub
2062 ac_abs_top_srcdir=$ac_pwd ;;
2063 [\\/]* | ?:[\\/]* ) # Absolute name.
2064 ac_srcdir=$srcdir$ac_dir_suffix;
2065 ac_top_srcdir=$srcdir
2066 ac_abs_top_srcdir=$srcdir ;;
2067 *) # Relative name.
2068 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2069 ac_top_srcdir=$ac_top_build_prefix$srcdir
2070 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2071esac
2072ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2073
2074 cd "$ac_dir" || { ac_status=$?; continue; }
2075 # Check for guested configure.
2076 if test -f "$ac_srcdir/configure.gnu"; then
2077 echo &&
2078 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2079 elif test -f "$ac_srcdir/configure"; then
2080 echo &&
2081 $SHELL "$ac_srcdir/configure" --help=recursive
2082 else
2083 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2084 fi || ac_status=$?
2085 cd "$ac_pwd" || { ac_status=$?; break; }
2086 done
2087fi
2088
2089test -n "$ac_init_help" && exit $ac_status
2090if $ac_init_version; then
2091 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002092ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002093generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002094
cristy14fefe52012-05-21 00:59:18 +00002095Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002096This configure script is free software; the Free Software Foundation
2097gives unlimited permission to copy, distribute and modify it.
2098_ACEOF
2099 exit
2100fi
cristy8b350f62009-11-15 23:12:43 +00002101
2102## ------------------------ ##
2103## Autoconf initialization. ##
2104## ------------------------ ##
2105
2106# ac_fn_c_try_compile LINENO
2107# --------------------------
2108# Try to compile conftest.$ac_ext, and return whether this succeeded.
2109ac_fn_c_try_compile ()
2110{
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 rm -f conftest.$ac_objext
2113 if { { ac_try="$ac_compile"
2114case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2117esac
2118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2119$as_echo "$ac_try_echo"; } >&5
2120 (eval "$ac_compile") 2>conftest.err
2121 ac_status=$?
2122 if test -s conftest.err; then
2123 grep -v '^ *+' conftest.err >conftest.er1
2124 cat conftest.er1 >&5
2125 mv -f conftest.er1 conftest.err
2126 fi
2127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2128 test $ac_status = 0; } && {
2129 test -z "$ac_c_werror_flag" ||
2130 test ! -s conftest.err
2131 } && test -s conftest.$ac_objext; then :
2132 ac_retval=0
2133else
2134 $as_echo "$as_me: failed program was:" >&5
2135sed 's/^/| /' conftest.$ac_ext >&5
2136
2137 ac_retval=1
2138fi
cristyda16f162011-02-19 23:52:17 +00002139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002140 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002141
2142} # ac_fn_c_try_compile
2143
cristy95646052009-11-28 23:05:30 +00002144# ac_fn_c_try_cpp LINENO
2145# ----------------------
2146# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2147ac_fn_c_try_cpp ()
2148{
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if { { ac_try="$ac_cpp conftest.$ac_ext"
2151case "(($ac_try" in
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2154esac
2155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156$as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2158 ac_status=$?
2159 if test -s conftest.err; then
2160 grep -v '^ *+' conftest.err >conftest.er1
2161 cat conftest.er1 >&5
2162 mv -f conftest.er1 conftest.err
2163 fi
2164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002165 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2167 test ! -s conftest.err
2168 }; then :
2169 ac_retval=0
2170else
2171 $as_echo "$as_me: failed program was:" >&5
2172sed 's/^/| /' conftest.$ac_ext >&5
2173
2174 ac_retval=1
2175fi
cristyda16f162011-02-19 23:52:17 +00002176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002177 as_fn_set_status $ac_retval
2178
2179} # ac_fn_c_try_cpp
2180
cristy8b350f62009-11-15 23:12:43 +00002181# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2182# -------------------------------------------------------
2183# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2184# the include files in INCLUDES and setting the cache variable VAR
2185# accordingly.
2186ac_fn_c_check_header_mongrel ()
2187{
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002189 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002192if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002193 $as_echo_n "(cached) " >&6
2194fi
2195eval ac_res=\$$3
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197$as_echo "$ac_res" >&6; }
2198else
2199 # Is the header compilable?
2200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2201$as_echo_n "checking $2 usability... " >&6; }
2202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203/* end confdefs.h. */
2204$4
2205#include <$2>
2206_ACEOF
2207if ac_fn_c_try_compile "$LINENO"; then :
2208 ac_header_compiler=yes
2209else
2210 ac_header_compiler=no
2211fi
2212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2214$as_echo "$ac_header_compiler" >&6; }
2215
2216# Is the header present?
2217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2218$as_echo_n "checking $2 presence... " >&6; }
2219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220/* end confdefs.h. */
2221#include <$2>
2222_ACEOF
2223if ac_fn_c_try_cpp "$LINENO"; then :
2224 ac_header_preproc=yes
2225else
2226 ac_header_preproc=no
2227fi
cristyda16f162011-02-19 23:52:17 +00002228rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2230$as_echo "$ac_header_preproc" >&6; }
2231
2232# So? What about this header?
2233case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2234 yes:no: )
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2236$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2238$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2239 ;;
2240 no:yes:* )
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2242$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2244$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2246$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2248$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2250$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002251( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002252## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002253## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002254 ) | sed "s/^/$as_me: WARNING: /" >&2
2255 ;;
2256esac
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002259if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002260 $as_echo_n "(cached) " >&6
2261else
2262 eval "$3=\$ac_header_compiler"
2263fi
2264eval ac_res=\$$3
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266$as_echo "$ac_res" >&6; }
2267fi
cristyda16f162011-02-19 23:52:17 +00002268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002269
2270} # ac_fn_c_check_header_mongrel
2271
2272# ac_fn_c_try_run LINENO
2273# ----------------------
2274# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2275# that executables *can* be run.
2276ac_fn_c_try_run ()
2277{
2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279 if { { ac_try="$ac_link"
2280case "(($ac_try" in
2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282 *) ac_try_echo=$ac_try;;
2283esac
2284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2285$as_echo "$ac_try_echo"; } >&5
2286 (eval "$ac_link") 2>&5
2287 ac_status=$?
2288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2289 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2290 { { case "(($ac_try" in
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2293esac
2294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2295$as_echo "$ac_try_echo"; } >&5
2296 (eval "$ac_try") 2>&5
2297 ac_status=$?
2298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299 test $ac_status = 0; }; }; then :
2300 ac_retval=0
2301else
2302 $as_echo "$as_me: program exited with status $ac_status" >&5
2303 $as_echo "$as_me: failed program was:" >&5
2304sed 's/^/| /' conftest.$ac_ext >&5
2305
2306 ac_retval=$ac_status
2307fi
2308 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002309 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002310 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002311
2312} # ac_fn_c_try_run
2313
2314# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2315# -------------------------------------------------------
2316# Tests whether HEADER exists and can be compiled using the include files in
2317# INCLUDES, setting the cache variable VAR accordingly.
2318ac_fn_c_check_header_compile ()
2319{
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2322$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002323if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002324 $as_echo_n "(cached) " >&6
2325else
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327/* end confdefs.h. */
2328$4
2329#include <$2>
2330_ACEOF
2331if ac_fn_c_try_compile "$LINENO"; then :
2332 eval "$3=yes"
2333else
2334 eval "$3=no"
2335fi
2336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337fi
2338eval ac_res=\$$3
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002342
2343} # ac_fn_c_check_header_compile
2344
cristya0b81c32010-01-22 02:54:33 +00002345# ac_fn_cxx_try_compile LINENO
2346# ----------------------------
2347# Try to compile conftest.$ac_ext, and return whether this succeeded.
2348ac_fn_cxx_try_compile ()
2349{
2350 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2351 rm -f conftest.$ac_objext
2352 if { { ac_try="$ac_compile"
2353case "(($ac_try" in
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2356esac
2357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2358$as_echo "$ac_try_echo"; } >&5
2359 (eval "$ac_compile") 2>conftest.err
2360 ac_status=$?
2361 if test -s conftest.err; then
2362 grep -v '^ *+' conftest.err >conftest.er1
2363 cat conftest.er1 >&5
2364 mv -f conftest.er1 conftest.err
2365 fi
2366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2367 test $ac_status = 0; } && {
2368 test -z "$ac_cxx_werror_flag" ||
2369 test ! -s conftest.err
2370 } && test -s conftest.$ac_objext; then :
2371 ac_retval=0
2372else
2373 $as_echo "$as_me: failed program was:" >&5
2374sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 ac_retval=1
2377fi
cristyda16f162011-02-19 23:52:17 +00002378 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002379 as_fn_set_status $ac_retval
2380
2381} # ac_fn_cxx_try_compile
2382
cristyd95b7a52013-10-23 13:12:53 +00002383# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2384# --------------------------------------------
2385# Tries to find the compile-time value of EXPR in a program that includes
2386# INCLUDES, setting VAR accordingly. Returns whether the value could be
2387# computed
2388ac_fn_c_compute_int ()
2389{
2390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391 if test "$cross_compiling" = yes; then
2392 # Depending upon the size, compute the lo and hi bounds.
2393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394/* end confdefs.h. */
2395$4
2396int
2397main ()
2398{
2399static int test_array [1 - 2 * !(($2) >= 0)];
2400test_array [0] = 0;
2401return test_array [0];
2402
2403 ;
2404 return 0;
2405}
2406_ACEOF
2407if ac_fn_c_try_compile "$LINENO"; then :
2408 ac_lo=0 ac_mid=0
2409 while :; do
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411/* end confdefs.h. */
2412$4
2413int
2414main ()
2415{
2416static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2417test_array [0] = 0;
2418return test_array [0];
2419
2420 ;
2421 return 0;
2422}
2423_ACEOF
2424if ac_fn_c_try_compile "$LINENO"; then :
2425 ac_hi=$ac_mid; break
2426else
2427 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2428 if test $ac_lo -le $ac_mid; then
2429 ac_lo= ac_hi=
2430 break
2431 fi
2432 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2433fi
2434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 done
2436else
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438/* end confdefs.h. */
2439$4
2440int
2441main ()
2442{
2443static int test_array [1 - 2 * !(($2) < 0)];
2444test_array [0] = 0;
2445return test_array [0];
2446
2447 ;
2448 return 0;
2449}
2450_ACEOF
2451if ac_fn_c_try_compile "$LINENO"; then :
2452 ac_hi=-1 ac_mid=-1
2453 while :; do
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455/* end confdefs.h. */
2456$4
2457int
2458main ()
2459{
2460static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2461test_array [0] = 0;
2462return test_array [0];
2463
2464 ;
2465 return 0;
2466}
2467_ACEOF
2468if ac_fn_c_try_compile "$LINENO"; then :
2469 ac_lo=$ac_mid; break
2470else
2471 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2472 if test $ac_mid -le $ac_hi; then
2473 ac_lo= ac_hi=
2474 break
2475 fi
2476 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2477fi
2478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 done
2480else
2481 ac_lo= ac_hi=
2482fi
2483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484fi
2485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486# Binary search between lo and hi bounds.
2487while test "x$ac_lo" != "x$ac_hi"; do
2488 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490/* end confdefs.h. */
2491$4
2492int
2493main ()
2494{
2495static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2496test_array [0] = 0;
2497return test_array [0];
2498
2499 ;
2500 return 0;
2501}
2502_ACEOF
2503if ac_fn_c_try_compile "$LINENO"; then :
2504 ac_hi=$ac_mid
2505else
2506 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2507fi
2508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509done
2510case $ac_lo in #((
2511?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2512'') ac_retval=1 ;;
2513esac
2514 else
2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516/* end confdefs.h. */
2517$4
2518static long int longval () { return $2; }
2519static unsigned long int ulongval () { return $2; }
2520#include <stdio.h>
2521#include <stdlib.h>
2522int
2523main ()
2524{
2525
2526 FILE *f = fopen ("conftest.val", "w");
2527 if (! f)
2528 return 1;
2529 if (($2) < 0)
2530 {
2531 long int i = longval ();
2532 if (i != ($2))
2533 return 1;
2534 fprintf (f, "%ld", i);
2535 }
2536 else
2537 {
2538 unsigned long int i = ulongval ();
2539 if (i != ($2))
2540 return 1;
2541 fprintf (f, "%lu", i);
2542 }
2543 /* Do not output a trailing newline, as this causes \r\n confusion
2544 on some platforms. */
2545 return ferror (f) || fclose (f) != 0;
2546
2547 ;
2548 return 0;
2549}
2550_ACEOF
2551if ac_fn_c_try_run "$LINENO"; then :
2552 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2553else
2554 ac_retval=1
2555fi
2556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2557 conftest.$ac_objext conftest.beam conftest.$ac_ext
2558rm -f conftest.val
2559
2560 fi
2561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2562 as_fn_set_status $ac_retval
2563
2564} # ac_fn_c_compute_int
2565
cristy8b350f62009-11-15 23:12:43 +00002566# ac_fn_c_try_link LINENO
2567# -----------------------
2568# Try to link conftest.$ac_ext, and return whether this succeeded.
2569ac_fn_c_try_link ()
2570{
2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572 rm -f conftest.$ac_objext conftest$ac_exeext
2573 if { { ac_try="$ac_link"
2574case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577esac
2578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2579$as_echo "$ac_try_echo"; } >&5
2580 (eval "$ac_link") 2>conftest.err
2581 ac_status=$?
2582 if test -s conftest.err; then
2583 grep -v '^ *+' conftest.err >conftest.er1
2584 cat conftest.er1 >&5
2585 mv -f conftest.er1 conftest.err
2586 fi
2587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2588 test $ac_status = 0; } && {
2589 test -z "$ac_c_werror_flag" ||
2590 test ! -s conftest.err
2591 } && test -s conftest$ac_exeext && {
2592 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002593 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002594 }; then :
2595 ac_retval=0
2596else
2597 $as_echo "$as_me: failed program was:" >&5
2598sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 ac_retval=1
2601fi
2602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2604 # interfere with the next link command; also delete a directory that is
2605 # left behind by Apple's compiler. We do this before executing the actions.
2606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002608 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002609
2610} # ac_fn_c_try_link
2611
cristy73bd4a52010-10-05 11:24:23 +00002612# ac_fn_c_check_func LINENO FUNC VAR
2613# ----------------------------------
2614# Tests whether FUNC exists, setting the cache variable VAR accordingly
2615ac_fn_c_check_func ()
2616{
2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2619$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002620if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002621 $as_echo_n "(cached) " >&6
2622else
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624/* end confdefs.h. */
2625/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2627#define $2 innocuous_$2
2628
2629/* System header to define __stub macros and hopefully few prototypes,
2630 which can conflict with char $2 (); below.
2631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2632 <limits.h> exists even on freestanding compilers. */
2633
2634#ifdef __STDC__
2635# include <limits.h>
2636#else
2637# include <assert.h>
2638#endif
2639
2640#undef $2
2641
2642/* Override any GCC internal prototype to avoid an error.
2643 Use char because int might match the return type of a GCC
2644 builtin and then its argument prototype would still apply. */
2645#ifdef __cplusplus
2646extern "C"
2647#endif
2648char $2 ();
2649/* The GNU C library defines this for functions which it implements
2650 to always fail with ENOSYS. Some functions are actually named
2651 something starting with __ and the normal name is an alias. */
2652#if defined __stub_$2 || defined __stub___$2
2653choke me
2654#endif
2655
2656int
2657main ()
2658{
2659return $2 ();
2660 ;
2661 return 0;
2662}
2663_ACEOF
2664if ac_fn_c_try_link "$LINENO"; then :
2665 eval "$3=yes"
2666else
2667 eval "$3=no"
2668fi
2669rm -f core conftest.err conftest.$ac_objext \
2670 conftest$ac_exeext conftest.$ac_ext
2671fi
2672eval ac_res=\$$3
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002676
2677} # ac_fn_c_check_func
2678
2679# ac_fn_cxx_try_cpp LINENO
2680# ------------------------
2681# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2682ac_fn_cxx_try_cpp ()
2683{
2684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2685 if { { ac_try="$ac_cpp conftest.$ac_ext"
2686case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689esac
2690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2691$as_echo "$ac_try_echo"; } >&5
2692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2693 ac_status=$?
2694 if test -s conftest.err; then
2695 grep -v '^ *+' conftest.err >conftest.er1
2696 cat conftest.er1 >&5
2697 mv -f conftest.er1 conftest.err
2698 fi
2699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002700 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002701 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2702 test ! -s conftest.err
2703 }; then :
2704 ac_retval=0
2705else
2706 $as_echo "$as_me: failed program was:" >&5
2707sed 's/^/| /' conftest.$ac_ext >&5
2708
2709 ac_retval=1
2710fi
cristyda16f162011-02-19 23:52:17 +00002711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002712 as_fn_set_status $ac_retval
2713
2714} # ac_fn_cxx_try_cpp
2715
2716# ac_fn_cxx_try_link LINENO
2717# -------------------------
2718# Try to link conftest.$ac_ext, and return whether this succeeded.
2719ac_fn_cxx_try_link ()
2720{
2721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2722 rm -f conftest.$ac_objext conftest$ac_exeext
2723 if { { ac_try="$ac_link"
2724case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727esac
2728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2729$as_echo "$ac_try_echo"; } >&5
2730 (eval "$ac_link") 2>conftest.err
2731 ac_status=$?
2732 if test -s conftest.err; then
2733 grep -v '^ *+' conftest.err >conftest.er1
2734 cat conftest.er1 >&5
2735 mv -f conftest.er1 conftest.err
2736 fi
2737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2738 test $ac_status = 0; } && {
2739 test -z "$ac_cxx_werror_flag" ||
2740 test ! -s conftest.err
2741 } && test -s conftest$ac_exeext && {
2742 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002743 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002744 }; then :
2745 ac_retval=0
2746else
2747 $as_echo "$as_me: failed program was:" >&5
2748sed 's/^/| /' conftest.$ac_ext >&5
2749
2750 ac_retval=1
2751fi
2752 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2753 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2754 # interfere with the next link command; also delete a directory that is
2755 # left behind by Apple's compiler. We do this before executing the actions.
2756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002758 as_fn_set_status $ac_retval
2759
2760} # ac_fn_cxx_try_link
2761
cristy8b350f62009-11-15 23:12:43 +00002762# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2763# -------------------------------------------
2764# Tests whether TYPE exists after having included INCLUDES, setting cache
2765# variable VAR accordingly.
2766ac_fn_c_check_type ()
2767{
2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2770$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002771if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002772 $as_echo_n "(cached) " >&6
2773else
2774 eval "$3=no"
2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776/* end confdefs.h. */
2777$4
2778int
2779main ()
2780{
2781if (sizeof ($2))
2782 return 0;
2783 ;
2784 return 0;
2785}
2786_ACEOF
2787if ac_fn_c_try_compile "$LINENO"; then :
2788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2789/* end confdefs.h. */
2790$4
2791int
2792main ()
2793{
2794if (sizeof (($2)))
2795 return 0;
2796 ;
2797 return 0;
2798}
2799_ACEOF
2800if ac_fn_c_try_compile "$LINENO"; then :
2801
2802else
2803 eval "$3=yes"
2804fi
2805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806fi
2807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808fi
2809eval ac_res=\$$3
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2811$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002813
2814} # ac_fn_c_check_type
2815
cristy92703d82010-04-26 00:18:18 +00002816# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2817# ----------------------------------------------------
2818# Tries to find if the field MEMBER exists in type AGGR, after including
2819# INCLUDES, setting cache variable VAR accordingly.
2820ac_fn_c_check_member ()
2821{
2822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2824$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002825if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002826 $as_echo_n "(cached) " >&6
2827else
2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829/* end confdefs.h. */
2830$5
2831int
2832main ()
2833{
2834static $2 ac_aggr;
2835if (ac_aggr.$3)
2836return 0;
2837 ;
2838 return 0;
2839}
2840_ACEOF
2841if ac_fn_c_try_compile "$LINENO"; then :
2842 eval "$4=yes"
2843else
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845/* end confdefs.h. */
2846$5
2847int
2848main ()
2849{
2850static $2 ac_aggr;
2851if (sizeof ac_aggr.$3)
2852return 0;
2853 ;
2854 return 0;
2855}
2856_ACEOF
2857if ac_fn_c_try_compile "$LINENO"; then :
2858 eval "$4=yes"
2859else
2860 eval "$4=no"
2861fi
2862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863fi
2864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865fi
2866eval ac_res=\$$4
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2868$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002870
2871} # ac_fn_c_check_member
2872
cristy5eef09f2012-10-16 12:08:28 +00002873# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2874# ---------------------------------------------
2875# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2876# accordingly.
2877ac_fn_c_check_decl ()
2878{
2879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2880 as_decl_name=`echo $2|sed 's/ *(.*//'`
2881 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2883$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2884if eval \${$3+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886else
2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888/* end confdefs.h. */
2889$4
2890int
2891main ()
2892{
2893#ifndef $as_decl_name
2894#ifdef __cplusplus
2895 (void) $as_decl_use;
2896#else
2897 (void) $as_decl_name;
2898#endif
2899#endif
2900
2901 ;
2902 return 0;
2903}
2904_ACEOF
2905if ac_fn_c_try_compile "$LINENO"; then :
2906 eval "$3=yes"
2907else
2908 eval "$3=no"
2909fi
2910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911fi
2912eval ac_res=\$$3
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2914$as_echo "$ac_res" >&6; }
2915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2916
2917} # ac_fn_c_check_decl
2918
cristy501c8042011-05-26 17:46:28 +00002919# ac_fn_c_find_intX_t LINENO BITS VAR
2920# -----------------------------------
2921# Finds a signed integer type with width BITS, setting cache variable VAR
2922# accordingly.
2923ac_fn_c_find_intX_t ()
2924{
2925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2927$as_echo_n "checking for int$2_t... " >&6; }
2928if eval \${$3+:} false; then :
2929 $as_echo_n "(cached) " >&6
2930else
2931 eval "$3=no"
2932 # Order is important - never check a type that is potentially smaller
2933 # than half of the expected target width.
2934 for ac_type in int$2_t 'int' 'long int' \
2935 'long long int' 'short int' 'signed char'; do
2936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2937/* end confdefs.h. */
2938$ac_includes_default
2939 enum { N = $2 / 2 - 1 };
2940int
2941main ()
2942{
2943static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002944test_array [0] = 0;
2945return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002946
2947 ;
2948 return 0;
2949}
2950_ACEOF
2951if ac_fn_c_try_compile "$LINENO"; then :
2952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2953/* end confdefs.h. */
2954$ac_includes_default
2955 enum { N = $2 / 2 - 1 };
2956int
2957main ()
2958{
2959static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2960 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002961test_array [0] = 0;
2962return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002963
2964 ;
2965 return 0;
2966}
2967_ACEOF
2968if ac_fn_c_try_compile "$LINENO"; then :
2969
2970else
2971 case $ac_type in #(
2972 int$2_t) :
2973 eval "$3=yes" ;; #(
2974 *) :
2975 eval "$3=\$ac_type" ;;
2976esac
2977fi
2978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979fi
2980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981 if eval test \"x\$"$3"\" = x"no"; then :
2982
2983else
2984 break
2985fi
2986 done
2987fi
2988eval ac_res=\$$3
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2990$as_echo "$ac_res" >&6; }
2991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2992
2993} # ac_fn_c_find_intX_t
2994
2995# ac_fn_c_find_uintX_t LINENO BITS VAR
2996# ------------------------------------
2997# Finds an unsigned integer type with width BITS, setting cache variable VAR
2998# accordingly.
2999ac_fn_c_find_uintX_t ()
3000{
3001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3003$as_echo_n "checking for uint$2_t... " >&6; }
3004if eval \${$3+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006else
3007 eval "$3=no"
3008 # Order is important - never check a type that is potentially smaller
3009 # than half of the expected target width.
3010 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3011 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013/* end confdefs.h. */
3014$ac_includes_default
3015int
3016main ()
3017{
3018static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003019test_array [0] = 0;
3020return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003021
3022 ;
3023 return 0;
3024}
3025_ACEOF
3026if ac_fn_c_try_compile "$LINENO"; then :
3027 case $ac_type in #(
3028 uint$2_t) :
3029 eval "$3=yes" ;; #(
3030 *) :
3031 eval "$3=\$ac_type" ;;
3032esac
3033fi
3034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 if eval test \"x\$"$3"\" = x"no"; then :
3036
3037else
3038 break
3039fi
3040 done
3041fi
3042eval ac_res=\$$3
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3044$as_echo "$ac_res" >&6; }
3045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3046
3047} # ac_fn_c_find_uintX_t
3048
cristy8b350f62009-11-15 23:12:43 +00003049# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3050# ---------------------------------------------------------
3051# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3052# the include files in INCLUDES and setting the cache variable VAR
3053# accordingly.
3054ac_fn_cxx_check_header_mongrel ()
3055{
3056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003057 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3059$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003060if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003061 $as_echo_n "(cached) " >&6
3062fi
3063eval ac_res=\$$3
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3065$as_echo "$ac_res" >&6; }
3066else
3067 # Is the header compilable?
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3069$as_echo_n "checking $2 usability... " >&6; }
3070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071/* end confdefs.h. */
3072$4
3073#include <$2>
3074_ACEOF
3075if ac_fn_cxx_try_compile "$LINENO"; then :
3076 ac_header_compiler=yes
3077else
3078 ac_header_compiler=no
3079fi
3080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3082$as_echo "$ac_header_compiler" >&6; }
3083
3084# Is the header present?
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3086$as_echo_n "checking $2 presence... " >&6; }
3087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088/* end confdefs.h. */
3089#include <$2>
3090_ACEOF
3091if ac_fn_cxx_try_cpp "$LINENO"; then :
3092 ac_header_preproc=yes
3093else
3094 ac_header_preproc=no
3095fi
cristyda16f162011-02-19 23:52:17 +00003096rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3098$as_echo "$ac_header_preproc" >&6; }
3099
3100# So? What about this header?
3101case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3102 yes:no: )
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3104$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3106$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3107 ;;
3108 no:yes:* )
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3110$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3112$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3114$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3116$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3118$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003119( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003120## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003121## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003122 ) | sed "s/^/$as_me: WARNING: /" >&2
3123 ;;
3124esac
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3126$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003127if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003128 $as_echo_n "(cached) " >&6
3129else
3130 eval "$3=\$ac_header_compiler"
3131fi
3132eval ac_res=\$$3
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3134$as_echo "$ac_res" >&6; }
3135fi
cristyda16f162011-02-19 23:52:17 +00003136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003137
3138} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003139cat >config.log <<_ACEOF
3140This file contains any messages produced by compilers while
3141running configure, to aid debugging if configure makes a mistake.
3142
cristy29eb34e2011-10-16 00:46:08 +00003143It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003144generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003145
3146 $ $0 $@
3147
3148_ACEOF
3149exec 5>>config.log
3150{
3151cat <<_ASUNAME
3152## --------- ##
3153## Platform. ##
3154## --------- ##
3155
3156hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3157uname -m = `(uname -m) 2>/dev/null || echo unknown`
3158uname -r = `(uname -r) 2>/dev/null || echo unknown`
3159uname -s = `(uname -s) 2>/dev/null || echo unknown`
3160uname -v = `(uname -v) 2>/dev/null || echo unknown`
3161
3162/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3163/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3164
3165/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3166/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3167/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3168/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3169/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3170/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3171/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3172
3173_ASUNAME
3174
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH
3177do
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003180 $as_echo "PATH: $as_dir"
3181 done
cristy3ed852e2009-09-05 21:47:34 +00003182IFS=$as_save_IFS
3183
3184} >&5
3185
3186cat >&5 <<_ACEOF
3187
3188
3189## ----------- ##
3190## Core tests. ##
3191## ----------- ##
3192
3193_ACEOF
3194
3195
3196# Keep a trace of the command line.
3197# Strip out --no-create and --no-recursion so they do not pile up.
3198# Strip out --silent because we don't want to record it for future runs.
3199# Also quote any args containing shell meta-characters.
3200# Make two passes to allow for proper duplicate-argument suppression.
3201ac_configure_args=
3202ac_configure_args0=
3203ac_configure_args1=
3204ac_must_keep_next=false
3205for ac_pass in 1 2
3206do
3207 for ac_arg
3208 do
3209 case $ac_arg in
3210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3212 | -silent | --silent | --silen | --sile | --sil)
3213 continue ;;
3214 *\'*)
3215 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3216 esac
3217 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003218 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003219 2)
cristy8b350f62009-11-15 23:12:43 +00003220 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003221 if test $ac_must_keep_next = true; then
3222 ac_must_keep_next=false # Got value, back to normal.
3223 else
3224 case $ac_arg in
3225 *=* | --config-cache | -C | -disable-* | --disable-* \
3226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3228 | -with-* | --with-* | -without-* | --without-* | --x)
3229 case "$ac_configure_args0 " in
3230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3231 esac
3232 ;;
3233 -* ) ac_must_keep_next=true ;;
3234 esac
3235 fi
cristy8b350f62009-11-15 23:12:43 +00003236 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003237 ;;
3238 esac
3239 done
3240done
cristy8b350f62009-11-15 23:12:43 +00003241{ ac_configure_args0=; unset ac_configure_args0;}
3242{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003243
3244# When interrupted or exit'd, cleanup temporary files, and complete
3245# config.log. We remove comments because anyway the quotes in there
3246# would cause problems or look ugly.
3247# WARNING: Use '\'' to represent an apostrophe within the trap.
3248# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3249trap 'exit_status=$?
3250 # Save into config.log some information that might help in debugging.
3251 {
3252 echo
3253
cristy98dddb52010-11-04 00:30:15 +00003254 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003255## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003256## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003257 echo
3258 # The following way of writing the cache mishandles newlines in values,
3259(
3260 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3261 eval ac_val=\$$ac_var
3262 case $ac_val in #(
3263 *${as_nl}*)
3264 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003265 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003266$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3267 esac
3268 case $ac_var in #(
3269 _ | IFS | as_nl) ;; #(
3270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003271 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003272 esac ;;
3273 esac
3274 done
3275 (set) 2>&1 |
3276 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3277 *${as_nl}ac_space=\ *)
3278 sed -n \
3279 "s/'\''/'\''\\\\'\'''\''/g;
3280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3281 ;; #(
3282 *)
3283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3284 ;;
3285 esac |
3286 sort
3287)
3288 echo
3289
cristy98dddb52010-11-04 00:30:15 +00003290 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003291## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003292## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003293 echo
3294 for ac_var in $ac_subst_vars
3295 do
3296 eval ac_val=\$$ac_var
3297 case $ac_val in
3298 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3299 esac
3300 $as_echo "$ac_var='\''$ac_val'\''"
3301 done | sort
3302 echo
3303
3304 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003305 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003306## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003307## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003308 echo
3309 for ac_var in $ac_subst_files
3310 do
3311 eval ac_val=\$$ac_var
3312 case $ac_val in
3313 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3314 esac
3315 $as_echo "$ac_var='\''$ac_val'\''"
3316 done | sort
3317 echo
3318 fi
3319
3320 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003321 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003322## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003323## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003324 echo
3325 cat confdefs.h
3326 echo
3327 fi
3328 test "$ac_signal" != 0 &&
3329 $as_echo "$as_me: caught signal $ac_signal"
3330 $as_echo "$as_me: exit $exit_status"
3331 } >&5
3332 rm -f core *.core core.conftest.* &&
3333 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3334 exit $exit_status
3335' 0
3336for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003337 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003338done
3339ac_signal=0
3340
3341# confdefs.h avoids OS command line length limits that DEFS can exceed.
3342rm -f -r conftest* confdefs.h
3343
cristy8b350f62009-11-15 23:12:43 +00003344$as_echo "/* confdefs.h */" > confdefs.h
3345
cristy3ed852e2009-09-05 21:47:34 +00003346# Predefined preprocessor variables.
3347
3348cat >>confdefs.h <<_ACEOF
3349#define PACKAGE_NAME "$PACKAGE_NAME"
3350_ACEOF
3351
cristy3ed852e2009-09-05 21:47:34 +00003352cat >>confdefs.h <<_ACEOF
3353#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3354_ACEOF
3355
cristy3ed852e2009-09-05 21:47:34 +00003356cat >>confdefs.h <<_ACEOF
3357#define PACKAGE_VERSION "$PACKAGE_VERSION"
3358_ACEOF
3359
cristy3ed852e2009-09-05 21:47:34 +00003360cat >>confdefs.h <<_ACEOF
3361#define PACKAGE_STRING "$PACKAGE_STRING"
3362_ACEOF
3363
cristy3ed852e2009-09-05 21:47:34 +00003364cat >>confdefs.h <<_ACEOF
3365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3366_ACEOF
3367
cristy8b350f62009-11-15 23:12:43 +00003368cat >>confdefs.h <<_ACEOF
3369#define PACKAGE_URL "$PACKAGE_URL"
3370_ACEOF
3371
cristy3ed852e2009-09-05 21:47:34 +00003372
3373# Let the site file select an alternate cache file if it wants to.
3374# Prefer an explicitly selected file to automatically selected ones.
3375ac_site_file1=NONE
3376ac_site_file2=NONE
3377if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003378 # We do not want a PATH search for config.site.
3379 case $CONFIG_SITE in #((
3380 -*) ac_site_file1=./$CONFIG_SITE;;
3381 */*) ac_site_file1=$CONFIG_SITE;;
3382 *) ac_site_file1=./$CONFIG_SITE;;
3383 esac
cristy3ed852e2009-09-05 21:47:34 +00003384elif test "x$prefix" != xNONE; then
3385 ac_site_file1=$prefix/share/config.site
3386 ac_site_file2=$prefix/etc/config.site
3387else
3388 ac_site_file1=$ac_default_prefix/share/config.site
3389 ac_site_file2=$ac_default_prefix/etc/config.site
3390fi
3391for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3392do
3393 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003394 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003395 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003396$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3397 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003398 . "$ac_site_file" \
3399 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401as_fn_error $? "failed to load site script $ac_site_file
3402See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003403 fi
3404done
3405
3406if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003407 # Some versions of bash will fail to source /dev/null (special files
3408 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3409 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003410 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003411$as_echo "$as_me: loading cache $cache_file" >&6;}
3412 case $cache_file in
3413 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3414 *) . "./$cache_file";;
3415 esac
3416 fi
3417else
cristy8b350f62009-11-15 23:12:43 +00003418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003419$as_echo "$as_me: creating cache $cache_file" >&6;}
3420 >$cache_file
3421fi
3422
cristycd4c5312009-11-22 01:19:08 +00003423as_fn_append ac_header_list " stdlib.h"
3424as_fn_append ac_header_list " unistd.h"
3425as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003426# Check that the precious variables saved in the cache have kept the same
3427# value.
3428ac_cache_corrupted=false
3429for ac_var in $ac_precious_vars; do
3430 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3431 eval ac_new_set=\$ac_env_${ac_var}_set
3432 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3433 eval ac_new_val=\$ac_env_${ac_var}_value
3434 case $ac_old_set,$ac_new_set in
3435 set,)
cristy8b350f62009-11-15 23:12:43 +00003436 { $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 +00003437$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3438 ac_cache_corrupted=: ;;
3439 ,set)
cristy8b350f62009-11-15 23:12:43 +00003440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003441$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3442 ac_cache_corrupted=: ;;
3443 ,);;
3444 *)
3445 if test "x$ac_old_val" != "x$ac_new_val"; then
3446 # differences in whitespace do not lead to failure.
3447 ac_old_val_w=`echo x $ac_old_val`
3448 ac_new_val_w=`echo x $ac_new_val`
3449 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003451$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3452 ac_cache_corrupted=:
3453 else
cristy8b350f62009-11-15 23:12:43 +00003454 { $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 +00003455$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3456 eval $ac_var=\$ac_old_val
3457 fi
cristy8b350f62009-11-15 23:12:43 +00003458 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003459$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003460 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003461$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3462 fi;;
3463 esac
3464 # Pass precious variables to config.status.
3465 if test "$ac_new_set" = set; then
3466 case $ac_new_val in
3467 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3468 *) ac_arg=$ac_var=$ac_new_val ;;
3469 esac
3470 case " $ac_configure_args " in
3471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003472 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003473 esac
3474 fi
3475done
3476if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003480$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003481 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003482fi
cristy8b350f62009-11-15 23:12:43 +00003483## -------------------- ##
3484## Main body of script. ##
3485## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003486
3487ac_ext=c
3488ac_cpp='$CPP $CPPFLAGS'
3489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492
3493
3494
3495ac_aux_dir=
3496for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003497 if test -f "$ac_dir/install-sh"; then
3498 ac_aux_dir=$ac_dir
3499 ac_install_sh="$ac_aux_dir/install-sh -c"
3500 break
3501 elif test -f "$ac_dir/install.sh"; then
3502 ac_aux_dir=$ac_dir
3503 ac_install_sh="$ac_aux_dir/install.sh -c"
3504 break
3505 elif test -f "$ac_dir/shtool"; then
3506 ac_aux_dir=$ac_dir
3507 ac_install_sh="$ac_aux_dir/shtool install -c"
3508 break
3509 fi
cristy3ed852e2009-09-05 21:47:34 +00003510done
3511if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003512 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003513fi
3514
3515# These three variables are undocumented and unsupported,
3516# and are intended to be withdrawn in a future Autoconf release.
3517# They can cause serious problems if a builder's source tree is in a directory
3518# whose full name contains unusual characters.
3519ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3520ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3521ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3522
3523
3524
3525
3526ac_config_headers="$ac_config_headers config/config.h"
3527
cristy24fc1fe2010-10-23 21:13:01 +00003528
cristy01ff9f32012-12-01 18:15:29 +00003529ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003530
cristy8d0ff762013-03-10 20:33:28 +00003531ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003532
3533
3534#
3535# Save initial user-tunable values
3536#
3537USER_LIBS=$LIBS
3538for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3539 eval isset=\${$var+set}
3540 if test "$isset" = 'set'; then
3541 eval val=$`echo $var`
3542 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3543 fi
3544done
3545
3546
3547CONFIGURE_ARGS="$0 ${ac_configure_args}"
3548
3549
3550# Source file containing package/library versioning information.
3551. ${srcdir}/version.sh
3552
cristy15a88782010-01-31 23:24:49 +00003553echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003554# Make sure we can run config.sub.
3555$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003556 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003557
cristy8b350f62009-11-15 23:12:43 +00003558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003559$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003560if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003561 $as_echo_n "(cached) " >&6
3562else
3563 ac_build_alias=$build_alias
3564test "x$ac_build_alias" = x &&
3565 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3566test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003567 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003568ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003569 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003570
3571fi
cristy8b350f62009-11-15 23:12:43 +00003572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003573$as_echo "$ac_cv_build" >&6; }
3574case $ac_cv_build in
3575*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003576*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003577esac
3578build=$ac_cv_build
3579ac_save_IFS=$IFS; IFS='-'
3580set x $ac_cv_build
3581shift
3582build_cpu=$1
3583build_vendor=$2
3584shift; shift
3585# Remember, the first character of IFS is used to create $*,
3586# except with old shells:
3587build_os=$*
3588IFS=$ac_save_IFS
3589case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3590
3591
cristy8b350f62009-11-15 23:12:43 +00003592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003593$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003594if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003595 $as_echo_n "(cached) " >&6
3596else
3597 if test "x$host_alias" = x; then
3598 ac_cv_host=$ac_cv_build
3599else
3600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003601 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003602fi
3603
3604fi
cristy8b350f62009-11-15 23:12:43 +00003605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003606$as_echo "$ac_cv_host" >&6; }
3607case $ac_cv_host in
3608*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003609*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003610esac
3611host=$ac_cv_host
3612ac_save_IFS=$IFS; IFS='-'
3613set x $ac_cv_host
3614shift
3615host_cpu=$1
3616host_vendor=$2
3617shift; shift
3618# Remember, the first character of IFS is used to create $*,
3619# except with old shells:
3620host_os=$*
3621IFS=$ac_save_IFS
3622case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3623
3624
cristy8b350f62009-11-15 23:12:43 +00003625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003626$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003627if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003628 $as_echo_n "(cached) " >&6
3629else
3630 if test "x$target_alias" = x; then
3631 ac_cv_target=$ac_cv_host
3632else
3633 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003634 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003635fi
3636
3637fi
cristy8b350f62009-11-15 23:12:43 +00003638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003639$as_echo "$ac_cv_target" >&6; }
3640case $ac_cv_target in
3641*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003642*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003643esac
3644target=$ac_cv_target
3645ac_save_IFS=$IFS; IFS='-'
3646set x $ac_cv_target
3647shift
3648target_cpu=$1
3649target_vendor=$2
3650shift; shift
3651# Remember, the first character of IFS is used to create $*,
3652# except with old shells:
3653target_os=$*
3654IFS=$ac_save_IFS
3655case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3656
3657
3658# The aliases save the names the user supplied, while $host etc.
3659# will get canonicalized.
3660test -n "$target_alias" &&
3661 test "$program_prefix$program_suffix$program_transform_name" = \
3662 NONENONEs,x,x, &&
3663 program_prefix=${target_alias}-
3664
cristy837d6dc2010-02-27 01:16:57 +00003665
3666
3667
cristy8be34142012-06-17 14:07:18 +00003668
cristy19615b82011-04-13 20:02:01 +00003669MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003670
3671
cristy27d53d62012-07-29 23:30:07 +00003672cat >>confdefs.h <<_ACEOF
3673#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3674_ACEOF
3675
3676
cristy19615b82011-04-13 20:02:01 +00003677MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003678
3679
cristy27d53d62012-07-29 23:30:07 +00003680cat >>confdefs.h <<_ACEOF
3681#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3682_ACEOF
3683
3684
cristy19615b82011-04-13 20:02:01 +00003685MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003686
3687
cristy27d53d62012-07-29 23:30:07 +00003688cat >>confdefs.h <<_ACEOF
3689#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3690_ACEOF
3691
3692
cristy37442762013-02-10 21:07:23 +00003693
3694# Substitute versioning
3695MAGICK_MAJOR_VERSION=7
3696
3697MAGICK_MINOR_VERSION=0
3698
3699MAGICK_MICRO_VERSION=0
3700
3701MAGICK_PATCHLEVEL_VERSION=0
3702
3703MAGICK_VERSION=7.0.0-0
3704
cristy0c832c62014-03-07 22:21:04 +00003705MAGICK_SVN_REVISION=15038M
cristy37442762013-02-10 21:07:23 +00003706
3707
cristy3ed852e2009-09-05 21:47:34 +00003708# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003709MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3710
3711MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3712
cristy37442762013-02-10 21:07:23 +00003713
cristy5ed9c6e2013-07-14 21:20:31 +00003714MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3715
3716MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3717
3718
cristyd694ca32011-03-27 21:42:54 +00003719
cristy3ed852e2009-09-05 21:47:34 +00003720# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3722$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003723# Reject unsafe characters in $srcdir or the absolute working directory
3724# name. Accept space and tab only in the latter.
3725am_lf='
3726'
3727case `pwd` in
3728 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003729 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003730esac
3731case $srcdir in
3732 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003733 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003734esac
cristy3ed852e2009-09-05 21:47:34 +00003735
cristyc0890a62012-07-19 00:18:20 +00003736# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003737# arguments. Must try -L first in case configure is actually a
3738# symlink; some systems play weird games with the mod time of symlinks
3739# (eg FreeBSD returns the mod time of the symlink's containing
3740# directory).
3741if (
cristyc0890a62012-07-19 00:18:20 +00003742 am_has_slept=no
3743 for am_try in 1 2; do
3744 echo "timestamp, slept: $am_has_slept" > conftest.file
3745 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3746 if test "$*" = "X"; then
3747 # -L didn't work.
3748 set X `ls -t "$srcdir/configure" conftest.file`
3749 fi
3750 if test "$*" != "X $srcdir/configure conftest.file" \
3751 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003752
cristyc0890a62012-07-19 00:18:20 +00003753 # If neither matched, then we have a broken ls. This can happen
3754 # if, for instance, CONFIG_SHELL is bash and it inherits a
3755 # broken ls alias from the environment. This has actually
3756 # happened. Such a system could not be considered "sane".
3757 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3758 alias in your environment" "$LINENO" 5
3759 fi
3760 if test "$2" = conftest.file || test $am_try -eq 2; then
3761 break
3762 fi
3763 # Just in case.
3764 sleep 1
3765 am_has_slept=yes
3766 done
cristy73bd4a52010-10-05 11:24:23 +00003767 test "$2" = conftest.file
3768 )
3769then
3770 # Ok.
3771 :
3772else
cristy98dddb52010-11-04 00:30:15 +00003773 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003774Check your system clock" "$LINENO" 5
3775fi
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3777$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003778# If we didn't sleep, we still need to ensure time stamps of config.status and
3779# generated files are strictly newer.
3780am_sleep_pid=
3781if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3782 ( sleep 1 ) &
3783 am_sleep_pid=$!
3784fi
cristy73bd4a52010-10-05 11:24:23 +00003785
cristyc0890a62012-07-19 00:18:20 +00003786rm -f conftest.file
3787
3788
cristya5bda012013-11-03 18:05:38 +00003789am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003790
3791# Find a good install program. We prefer a C program (faster),
3792# so one script is as good as another. But avoid the broken or
3793# incompatible versions:
3794# SysV /etc/install, /usr/sbin/install
3795# SunOS /usr/etc/install
3796# IRIX /sbin/install
3797# AIX /bin/install
3798# AmigaOS /C/install, which installs bootblocks on floppy discs
3799# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3800# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3801# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3802# OS/2's system install, which has a completely different semantic
3803# ./install, which can be erroneously created by make from ./install.sh.
3804# Reject install programs that cannot install multiple files.
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3806$as_echo_n "checking for a BSD-compatible install... " >&6; }
3807if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003808if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003809 $as_echo_n "(cached) " >&6
3810else
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812for as_dir in $PATH
3813do
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
3816 # Account for people who put trailing slashes in PATH elements.
3817case $as_dir/ in #((
3818 ./ | .// | /[cC]/* | \
3819 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3820 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3821 /usr/ucb/* ) ;;
3822 *)
3823 # OSF1 and SCO ODT 3.0 have their own names for install.
3824 # Don't use installbsd from OSF since it installs stuff as root
3825 # by default.
3826 for ac_prog in ginstall scoinst install; do
3827 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003828 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003829 if test $ac_prog = install &&
3830 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3831 # AIX install. It has an incompatible calling convention.
3832 :
3833 elif test $ac_prog = install &&
3834 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3835 # program-specific install script used by HP pwplus--don't use.
3836 :
3837 else
3838 rm -rf conftest.one conftest.two conftest.dir
3839 echo one > conftest.one
3840 echo two > conftest.two
3841 mkdir conftest.dir
3842 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3843 test -s conftest.one && test -s conftest.two &&
3844 test -s conftest.dir/conftest.one &&
3845 test -s conftest.dir/conftest.two
3846 then
3847 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3848 break 3
3849 fi
3850 fi
3851 fi
3852 done
3853 done
3854 ;;
3855esac
3856
3857 done
3858IFS=$as_save_IFS
3859
3860rm -rf conftest.one conftest.two conftest.dir
3861
3862fi
3863 if test "${ac_cv_path_install+set}" = set; then
3864 INSTALL=$ac_cv_path_install
3865 else
3866 # As a last resort, use the slow shell script. Don't cache a
3867 # value for INSTALL within a source directory, because that will
3868 # break other packages using the cache if that directory is
3869 # removed, or if the value is a relative name.
3870 INSTALL=$ac_install_sh
3871 fi
3872fi
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3874$as_echo "$INSTALL" >&6; }
3875
3876# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3877# It thinks the first close brace ends the variable substitution.
3878test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3879
3880test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3881
3882test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3883
3884test "$program_prefix" != NONE &&
3885 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3886# Use a double $ so make ignores it.
3887test "$program_suffix" != NONE &&
3888 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3889# Double any \ or $.
3890# By default was `s,x,x', remove it if useless.
3891ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3892program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3893
3894# expand $ac_aux_dir to an absolute path
3895am_aux_dir=`cd $ac_aux_dir && pwd`
3896
3897if test x"${MISSING+set}" != xset; then
3898 case $am_aux_dir in
3899 *\ * | *\ *)
3900 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3901 *)
3902 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3903 esac
3904fi
3905# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003906if eval "$MISSING --is-lightweight"; then
3907 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003908else
3909 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3911$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003912fi
3913
3914if test x"${install_sh}" != xset; then
3915 case $am_aux_dir in
3916 *\ * | *\ *)
3917 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3918 *)
3919 install_sh="\${SHELL} $am_aux_dir/install-sh"
3920 esac
3921fi
3922
cristyc0890a62012-07-19 00:18:20 +00003923# Installed binaries are usually stripped using 'strip' when the user
3924# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003925# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003926# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003927if test "$cross_compiling" != no; then
3928 if test -n "$ac_tool_prefix"; then
3929 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3930set dummy ${ac_tool_prefix}strip; ac_word=$2
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003933if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003934 $as_echo_n "(cached) " >&6
3935else
3936 if test -n "$STRIP"; then
3937 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003946 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3949 fi
3950done
3951 done
3952IFS=$as_save_IFS
3953
3954fi
3955fi
3956STRIP=$ac_cv_prog_STRIP
3957if test -n "$STRIP"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3959$as_echo "$STRIP" >&6; }
3960else
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963fi
3964
3965
3966fi
3967if test -z "$ac_cv_prog_STRIP"; then
3968 ac_ct_STRIP=$STRIP
3969 # Extract the first word of "strip", so it can be a program name with args.
3970set dummy strip; ac_word=$2
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003973if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003974 $as_echo_n "(cached) " >&6
3975else
3976 if test -n "$ac_ct_STRIP"; then
3977 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3978else
3979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980for as_dir in $PATH
3981do
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003986 ac_cv_prog_ac_ct_STRIP="strip"
3987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 break 2
3989 fi
3990done
3991 done
3992IFS=$as_save_IFS
3993
3994fi
3995fi
3996ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3997if test -n "$ac_ct_STRIP"; then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3999$as_echo "$ac_ct_STRIP" >&6; }
4000else
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002$as_echo "no" >&6; }
4003fi
4004
4005 if test "x$ac_ct_STRIP" = x; then
4006 STRIP=":"
4007 else
4008 case $cross_compiling:$ac_tool_warned in
4009yes:)
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4012ac_tool_warned=yes ;;
4013esac
4014 STRIP=$ac_ct_STRIP
4015 fi
4016else
4017 STRIP="$ac_cv_prog_STRIP"
4018fi
4019
4020fi
4021INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4022
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4024$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4025if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004026 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004027 $as_echo_n "(cached) " >&6
4028else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4031do
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_prog in mkdir gmkdir; do
4035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004036 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004037 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4038 'mkdir (GNU coreutils) '* | \
4039 'mkdir (coreutils) '* | \
4040 'mkdir (fileutils) '4.1*)
4041 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4042 break 3;;
4043 esac
4044 done
4045 done
4046 done
4047IFS=$as_save_IFS
4048
4049fi
4050
4051 test -d ./--version && rmdir ./--version
4052 if test "${ac_cv_path_mkdir+set}" = set; then
4053 MKDIR_P="$ac_cv_path_mkdir -p"
4054 else
4055 # As a last resort, use the slow shell script. Don't cache a
4056 # value for MKDIR_P within a source directory, because that will
4057 # break other packages using the cache if that directory is
4058 # removed, or if the value is a relative name.
4059 MKDIR_P="$ac_install_sh -d"
4060 fi
4061fi
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4063$as_echo "$MKDIR_P" >&6; }
4064
cristy73bd4a52010-10-05 11:24:23 +00004065for ac_prog in gawk mawk nawk awk
4066do
4067 # Extract the first word of "$ac_prog", so it can be a program name with args.
4068set dummy $ac_prog; ac_word=$2
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004071if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004072 $as_echo_n "(cached) " >&6
4073else
4074 if test -n "$AWK"; then
4075 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4076else
4077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078for as_dir in $PATH
4079do
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004084 ac_cv_prog_AWK="$ac_prog"
4085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4087 fi
4088done
4089 done
4090IFS=$as_save_IFS
4091
4092fi
4093fi
4094AWK=$ac_cv_prog_AWK
4095if test -n "$AWK"; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4097$as_echo "$AWK" >&6; }
4098else
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100$as_echo "no" >&6; }
4101fi
4102
4103
4104 test -n "$AWK" && break
4105done
4106
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4108$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4109set x ${MAKE-make}
4110ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004111if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004112 $as_echo_n "(cached) " >&6
4113else
4114 cat >conftest.make <<\_ACEOF
4115SHELL = /bin/sh
4116all:
4117 @echo '@@@%%%=$(MAKE)=@@@%%%'
4118_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004119# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004120case `${MAKE-make} -f conftest.make 2>/dev/null` in
4121 *@@@%%%=?*=@@@%%%*)
4122 eval ac_cv_prog_make_${ac_make}_set=yes;;
4123 *)
4124 eval ac_cv_prog_make_${ac_make}_set=no;;
4125esac
4126rm -f conftest.make
4127fi
4128if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4130$as_echo "yes" >&6; }
4131 SET_MAKE=
4132else
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134$as_echo "no" >&6; }
4135 SET_MAKE="MAKE=${MAKE-make}"
4136fi
4137
4138rm -rf .tst 2>/dev/null
4139mkdir .tst 2>/dev/null
4140if test -d .tst; then
4141 am__leading_dot=.
4142else
4143 am__leading_dot=_
4144fi
4145rmdir .tst 2>/dev/null
4146
cristya448bd22011-10-14 12:38:13 +00004147# Check whether --enable-silent-rules was given.
4148if test "${enable_silent_rules+set}" = set; then :
4149 enableval=$enable_silent_rules;
4150fi
4151
cristyc0890a62012-07-19 00:18:20 +00004152case $enable_silent_rules in # (((
4153 yes) AM_DEFAULT_VERBOSITY=0;;
4154 no) AM_DEFAULT_VERBOSITY=1;;
4155 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004156esac
cristyc3fb77b2012-02-06 01:49:41 +00004157am_make=${MAKE-make}
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4159$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4160if ${am_cv_make_support_nested_variables+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162else
4163 if $as_echo 'TRUE=$(BAR$(V))
4164BAR0=false
4165BAR1=true
4166V=1
4167am__doit:
4168 @$(TRUE)
4169.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4170 am_cv_make_support_nested_variables=yes
4171else
4172 am_cv_make_support_nested_variables=no
4173fi
4174fi
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4176$as_echo "$am_cv_make_support_nested_variables" >&6; }
4177if test $am_cv_make_support_nested_variables = yes; then
4178 AM_V='$(V)'
4179 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4180else
4181 AM_V=$AM_DEFAULT_VERBOSITY
4182 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4183fi
cristya448bd22011-10-14 12:38:13 +00004184AM_BACKSLASH='\'
4185
cristy73bd4a52010-10-05 11:24:23 +00004186if test "`cd $srcdir && pwd`" != "`pwd`"; then
4187 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4188 # is not polluted with repeated "-I."
4189 am__isrc=' -I$(srcdir)'
4190 # test to see if srcdir already configured
4191 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004192 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004193 fi
4194fi
4195
4196# test whether we have cygpath
4197if test -z "$CYGPATH_W"; then
4198 if (cygpath --version) >/dev/null 2>/dev/null; then
4199 CYGPATH_W='cygpath -w'
4200 else
4201 CYGPATH_W=echo
4202 fi
4203fi
4204
4205
4206# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004207 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004208 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004209
4210
cristya448bd22011-10-14 12:38:13 +00004211cat >>confdefs.h <<_ACEOF
4212#define PACKAGE "$PACKAGE"
4213_ACEOF
4214
4215
4216cat >>confdefs.h <<_ACEOF
4217#define VERSION "$VERSION"
4218_ACEOF
4219
cristy73bd4a52010-10-05 11:24:23 +00004220# Some tools Automake needs.
4221
4222ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4223
4224
4225AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4226
4227
4228AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4229
4230
4231AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4232
4233
4234MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4235
cristyc0890a62012-07-19 00:18:20 +00004236# For better backward compatibility. To be removed once Automake 1.9.x
4237# dies out for good. For more background, see:
4238# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4239# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4240mkdir_p='$(MKDIR_P)'
4241
cristy73bd4a52010-10-05 11:24:23 +00004242# We need awk for the "check" target. The system "awk" is bad on
4243# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004244# Always define AMTAR for backward compatibility. Yes, it's still used
4245# in the wild :-( We should find a proper way to deprecate it ...
4246AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004247
cristye69bdbe2013-05-03 21:40:44 +00004248
4249# We'll loop over all known methods to create a tar archive until one works.
4250_am_tools='gnutar pax cpio none'
4251
cristyc3fb77b2012-02-06 01:49:41 +00004252am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004253
4254
4255
4256
4257
cristy3ed852e2009-09-05 21:47:34 +00004258
cristya5bda012013-11-03 18:05:38 +00004259# POSIX will say in a future version that running "rm -f" with no argument
4260# is OK; and we want to be able to make that assumption in our Makefile
4261# recipes. So use an aggressive probe to check that the usage we want is
4262# actually supported "in the wild" to an acceptable degree.
4263# See automake bug#10828.
4264# To make any issue more visible, cause the running configure to be aborted
4265# by default if the 'rm' program in use doesn't match our expectations; the
4266# user can still override this though.
4267if rm -f && rm -fr && rm -rf; then : OK; else
4268 cat >&2 <<'END'
4269Oops!
4270
4271Your 'rm' program seems unable to run without file operands specified
4272on the command line, even when the '-f' option is present. This is contrary
4273to the behaviour of most rm programs out there, and not conforming with
4274the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4275
4276Please tell bug-automake@gnu.org about your system, including the value
4277of your $PATH and any error possibly output before this message. This
4278can help us improve future automake versions.
4279
4280END
4281 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4282 echo 'Configuration will proceed anyway, since you have set the' >&2
4283 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4284 echo >&2
4285 else
4286 cat >&2 <<'END'
4287Aborting the configuration process, to ensure you take notice of the issue.
4288
4289You can download and install GNU coreutils to get an 'rm' implementation
4290that behaves properly: <http://www.gnu.org/software/coreutils/>.
4291
4292If you want to complete the configuration process using your problematic
4293'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4294to "yes", and re-run configure.
4295
4296END
4297 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4298 fi
4299fi
cristye69bdbe2013-05-03 21:40:44 +00004300
cristy3ed852e2009-09-05 21:47:34 +00004301# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004302# Check whether --enable-silent-rules was given.
4303if test "${enable_silent_rules+set}" = set; then :
4304 enableval=$enable_silent_rules;
4305fi
4306
cristyc0890a62012-07-19 00:18:20 +00004307case $enable_silent_rules in # (((
4308 yes) AM_DEFAULT_VERBOSITY=0;;
4309 no) AM_DEFAULT_VERBOSITY=1;;
4310 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004311esac
cristyc3fb77b2012-02-06 01:49:41 +00004312am_make=${MAKE-make}
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4314$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4315if ${am_cv_make_support_nested_variables+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317else
4318 if $as_echo 'TRUE=$(BAR$(V))
4319BAR0=false
4320BAR1=true
4321V=1
4322am__doit:
4323 @$(TRUE)
4324.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4325 am_cv_make_support_nested_variables=yes
4326else
4327 am_cv_make_support_nested_variables=no
4328fi
4329fi
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4331$as_echo "$am_cv_make_support_nested_variables" >&6; }
4332if test $am_cv_make_support_nested_variables = yes; then
4333 AM_V='$(V)'
4334 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4335else
4336 AM_V=$AM_DEFAULT_VERBOSITY
4337 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4338fi
cristy73bd4a52010-10-05 11:24:23 +00004339AM_BACKSLASH='\'
4340
cristy3ed852e2009-09-05 21:47:34 +00004341
cristy5ed9c6e2013-07-14 21:20:31 +00004342# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004343MAGICK_LIB_VERSION="0x"
4344if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4345 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4346fi
4347MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4348if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4349 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4350fi
4351MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4352if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4353 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4354fi
4355MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4356
4357
4358# Definition used to define MagickLibVersionText in version.h
4359MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4360
4361
4362# Definition used to define MagickLibVersionNumber in version.h
4363MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4364
4365
cristy5ed9c6e2013-07-14 21:20:31 +00004366MAGICKPP_LIB_VERSION="0x"
4367if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4368 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4369fi
4370MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4371if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4372 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4373fi
4374MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4375if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4376 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4377fi
4378MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4379
4380
4381# Definition used to define MagickLibVersionText in version.h
4382MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4383
4384
4385# Definition used to define MagickLibVersionNumber in version.h
4386MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4387
4388
4389
4390
cristy3ed852e2009-09-05 21:47:34 +00004391# Regenerate config.status if ChangeLog or version.sh is updated.
4392CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4393
4394
4395PERLMAINCC=$CC
4396
4397MAGICK_CFLAGS=''
4398MAGICK_CPPFLAGS=$CPPFLAGS_USER
4399MAGICK_PCFLAGS=$CPPFLAGS_USER
4400MAGICK_LDFLAGS=''
4401MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004402MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004403
4404#
4405# Evaluate shell variable equivalents to Makefile directory variables
4406#
4407if test "x$prefix" = xNONE; then
4408 prefix=$ac_default_prefix
4409fi
4410# Let make expand exec_prefix.
4411if test "x$exec_prefix" = xNONE; then
4412 exec_prefix='${prefix}'
4413fi
4414
4415#
4416eval "eval PREFIX_DIR=${prefix}"
4417
4418eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4419
4420eval "eval BIN_DIR=$bindir"
4421
4422eval "eval SBIN_DIR=$sbindir"
4423
4424eval "eval LIBEXEC_DIR=$libexecdir"
4425
4426eval "eval DATA_DIR=$datadir"
4427
cristy4e65ec22012-04-08 01:33:27 +00004428eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004429
cristy3ed852e2009-09-05 21:47:34 +00004430eval "eval SYSCONF_DIR=$sysconfdir"
4431
4432eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4433
4434eval "eval LOCALSTATE_DIR=$localstatedir"
4435
4436eval "eval LIB_DIR=$libdir"
4437
4438eval "eval INCLUDE_DIR=$includedir"
4439
4440eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4441
4442eval "eval INFO_DIR=$infodir"
4443
4444eval "eval MAN_DIR=$mandir"
4445
4446
4447# Get full paths to source and build directories
4448srcdirfull="`cd $srcdir && pwd`"
4449builddir="`pwd`"
4450
4451#
4452# Compute variables useful for running uninstalled software.
4453#
4454MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4455MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4456MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4457MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4458DIRSEP=':'
4459case "${build_os}" in
4460 mingw* )
4461 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4462 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4463 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4464 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4465 DIRSEP=';'
4466 ;;
4467esac
4468case "${host_os}" in
4469 mingw* )
4470 DIRSEP=';'
4471 ;;
4472esac
4473
4474
4475
4476
4477
4478
cristya0b81c32010-01-22 02:54:33 +00004479
4480#
4481# Enable OS features.
4482#
cristy73bd4a52010-10-05 11:24:23 +00004483DEPDIR="${am__leading_dot}deps"
4484
4485ac_config_commands="$ac_config_commands depfiles"
4486
4487
4488am_make=${MAKE-make}
4489cat > confinc << 'END'
4490am__doit:
4491 @echo this is the am__doit target
4492.PHONY: am__doit
4493END
4494# If we don't find an include directive, just comment out the code.
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4496$as_echo_n "checking for style of include used by $am_make... " >&6; }
4497am__include="#"
4498am__quote=
4499_am_result=none
4500# First try GNU make style include.
4501echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004502# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004503case `$am_make -s -f confmf 2> /dev/null` in #(
4504*the\ am__doit\ target*)
4505 am__include=include
4506 am__quote=
4507 _am_result=GNU
4508 ;;
4509esac
4510# Now try BSD make style include.
4511if test "$am__include" = "#"; then
4512 echo '.include "confinc"' > confmf
4513 case `$am_make -s -f confmf 2> /dev/null` in #(
4514 *the\ am__doit\ target*)
4515 am__include=.include
4516 am__quote="\""
4517 _am_result=BSD
4518 ;;
4519 esac
4520fi
4521
4522
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4524$as_echo "$_am_result" >&6; }
4525rm -f confinc confmf
4526
4527# Check whether --enable-dependency-tracking was given.
4528if test "${enable_dependency_tracking+set}" = set; then :
4529 enableval=$enable_dependency_tracking;
4530fi
4531
4532if test "x$enable_dependency_tracking" != xno; then
4533 am_depcomp="$ac_aux_dir/depcomp"
4534 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004535 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004536fi
4537 if test "x$enable_dependency_tracking" != xno; then
4538 AMDEP_TRUE=
4539 AMDEP_FALSE='#'
4540else
4541 AMDEP_TRUE='#'
4542 AMDEP_FALSE=
4543fi
4544
4545
cristy3ed852e2009-09-05 21:47:34 +00004546ac_ext=c
4547ac_cpp='$CPP $CPPFLAGS'
4548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4553set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004555$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004556if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004557 $as_echo_n "(cached) " >&6
4558else
4559 if test -n "$CC"; then
4560 ac_cv_prog_CC="$CC" # Let the user override the test.
4561else
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004567 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004569 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004571 break 2
4572 fi
4573done
cristy8b350f62009-11-15 23:12:43 +00004574 done
cristy3ed852e2009-09-05 21:47:34 +00004575IFS=$as_save_IFS
4576
4577fi
4578fi
4579CC=$ac_cv_prog_CC
4580if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004582$as_echo "$CC" >&6; }
4583else
cristy8b350f62009-11-15 23:12:43 +00004584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004585$as_echo "no" >&6; }
4586fi
4587
4588
4589fi
4590if test -z "$ac_cv_prog_CC"; then
4591 ac_ct_CC=$CC
4592 # Extract the first word of "gcc", so it can be a program name with args.
4593set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004596if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004597 $as_echo_n "(cached) " >&6
4598else
4599 if test -n "$ac_ct_CC"; then
4600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4601else
4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004607 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004609 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004611 break 2
4612 fi
4613done
cristy8b350f62009-11-15 23:12:43 +00004614 done
cristy3ed852e2009-09-05 21:47:34 +00004615IFS=$as_save_IFS
4616
4617fi
4618fi
4619ac_ct_CC=$ac_cv_prog_ac_ct_CC
4620if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004622$as_echo "$ac_ct_CC" >&6; }
4623else
cristy8b350f62009-11-15 23:12:43 +00004624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004625$as_echo "no" >&6; }
4626fi
4627
4628 if test "x$ac_ct_CC" = x; then
4629 CC=""
4630 else
4631 case $cross_compiling:$ac_tool_warned in
4632yes:)
cristy8b350f62009-11-15 23:12:43 +00004633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4635ac_tool_warned=yes ;;
4636esac
4637 CC=$ac_ct_CC
4638 fi
4639else
4640 CC="$ac_cv_prog_CC"
4641fi
4642
4643if test -z "$CC"; then
4644 if test -n "$ac_tool_prefix"; then
4645 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4646set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004648$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004649if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004650 $as_echo_n "(cached) " >&6
4651else
4652 if test -n "$CC"; then
4653 ac_cv_prog_CC="$CC" # Let the user override the test.
4654else
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004660 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004662 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004664 break 2
4665 fi
4666done
cristy8b350f62009-11-15 23:12:43 +00004667 done
cristy3ed852e2009-09-05 21:47:34 +00004668IFS=$as_save_IFS
4669
4670fi
4671fi
4672CC=$ac_cv_prog_CC
4673if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004675$as_echo "$CC" >&6; }
4676else
cristy8b350f62009-11-15 23:12:43 +00004677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004678$as_echo "no" >&6; }
4679fi
4680
4681
4682 fi
4683fi
4684if test -z "$CC"; then
4685 # Extract the first word of "cc", so it can be a program name with args.
4686set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004688$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004689if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004690 $as_echo_n "(cached) " >&6
4691else
4692 if test -n "$CC"; then
4693 ac_cv_prog_CC="$CC" # Let the user override the test.
4694else
4695 ac_prog_rejected=no
4696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4704 ac_prog_rejected=yes
4705 continue
4706 fi
4707 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004709 break 2
4710 fi
4711done
cristy8b350f62009-11-15 23:12:43 +00004712 done
cristy3ed852e2009-09-05 21:47:34 +00004713IFS=$as_save_IFS
4714
4715if test $ac_prog_rejected = yes; then
4716 # We found a bogon in the path, so make sure we never use it.
4717 set dummy $ac_cv_prog_CC
4718 shift
4719 if test $# != 0; then
4720 # We chose a different compiler from the bogus one.
4721 # However, it has the same basename, so the bogon will be chosen
4722 # first if we set CC to just the basename; use the full file name.
4723 shift
4724 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4725 fi
4726fi
4727fi
4728fi
4729CC=$ac_cv_prog_CC
4730if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004732$as_echo "$CC" >&6; }
4733else
cristy8b350f62009-11-15 23:12:43 +00004734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004735$as_echo "no" >&6; }
4736fi
4737
4738
4739fi
4740if test -z "$CC"; then
4741 if test -n "$ac_tool_prefix"; then
4742 for ac_prog in cl.exe
4743 do
4744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4745set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004747$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004748if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004749 $as_echo_n "(cached) " >&6
4750else
4751 if test -n "$CC"; then
4752 ac_cv_prog_CC="$CC" # Let the user override the test.
4753else
4754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755for as_dir in $PATH
4756do
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004759 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004761 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004763 break 2
4764 fi
4765done
cristy8b350f62009-11-15 23:12:43 +00004766 done
cristy3ed852e2009-09-05 21:47:34 +00004767IFS=$as_save_IFS
4768
4769fi
4770fi
4771CC=$ac_cv_prog_CC
4772if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004774$as_echo "$CC" >&6; }
4775else
cristy8b350f62009-11-15 23:12:43 +00004776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004777$as_echo "no" >&6; }
4778fi
4779
4780
4781 test -n "$CC" && break
4782 done
4783fi
4784if test -z "$CC"; then
4785 ac_ct_CC=$CC
4786 for ac_prog in cl.exe
4787do
4788 # Extract the first word of "$ac_prog", so it can be a program name with args.
4789set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004791$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004792if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004793 $as_echo_n "(cached) " >&6
4794else
4795 if test -n "$ac_ct_CC"; then
4796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4797else
4798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004803 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004805 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004807 break 2
4808 fi
4809done
cristy8b350f62009-11-15 23:12:43 +00004810 done
cristy3ed852e2009-09-05 21:47:34 +00004811IFS=$as_save_IFS
4812
4813fi
4814fi
4815ac_ct_CC=$ac_cv_prog_ac_ct_CC
4816if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004818$as_echo "$ac_ct_CC" >&6; }
4819else
cristy8b350f62009-11-15 23:12:43 +00004820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004821$as_echo "no" >&6; }
4822fi
4823
4824
4825 test -n "$ac_ct_CC" && break
4826done
4827
4828 if test "x$ac_ct_CC" = x; then
4829 CC=""
4830 else
4831 case $cross_compiling:$ac_tool_warned in
4832yes:)
cristy8b350f62009-11-15 23:12:43 +00004833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4835ac_tool_warned=yes ;;
4836esac
4837 CC=$ac_ct_CC
4838 fi
4839fi
4840
4841fi
4842
4843
cristy8b350f62009-11-15 23:12:43 +00004844test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004846as_fn_error $? "no acceptable C compiler found in \$PATH
4847See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004848
4849# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004850$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004851set X $ac_compile
4852ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004853for ac_option in --version -v -V -qversion; do
4854 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004855case "(($ac_try" in
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4858esac
cristy8b350f62009-11-15 23:12:43 +00004859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4860$as_echo "$ac_try_echo"; } >&5
4861 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004862 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004863 if test -s conftest.err; then
4864 sed '10a\
4865... rest of stderr output deleted ...
4866 10q' conftest.err >conftest.er1
4867 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004868 fi
cristycd4c5312009-11-22 01:19:08 +00004869 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4871 test $ac_status = 0; }
4872done
cristy3ed852e2009-09-05 21:47:34 +00004873
cristy8b350f62009-11-15 23:12:43 +00004874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004875/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004876
cristy3ed852e2009-09-05 21:47:34 +00004877int
4878main ()
4879{
4880
4881 ;
4882 return 0;
4883}
4884_ACEOF
4885ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004886ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004887# Try to create an executable without -o first, disregard a.out.
4888# It will help us diagnose broken compilers, and finding out an intuition
4889# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4891$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004892ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4893
4894# The possible output files:
4895ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4896
4897ac_rmfiles=
4898for ac_file in $ac_files
4899do
4900 case $ac_file in
4901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4902 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4903 esac
4904done
4905rm -f $ac_rmfiles
4906
cristy8b350f62009-11-15 23:12:43 +00004907if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004908case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911esac
cristy8b350f62009-11-15 23:12:43 +00004912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4913$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004914 (eval "$ac_link_default") 2>&5
4915 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4917 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004918 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4919# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4920# in a Makefile. We should not override ac_cv_exeext if it was cached,
4921# so that the user can short-circuit this test for compilers unknown to
4922# Autoconf.
4923for ac_file in $ac_files ''
4924do
4925 test -f "$ac_file" || continue
4926 case $ac_file in
4927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4928 ;;
4929 [ab].out )
4930 # We found the default executable, but exeext='' is most
4931 # certainly right.
4932 break;;
4933 *.* )
cristy8b350f62009-11-15 23:12:43 +00004934 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004935 then :; else
4936 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4937 fi
4938 # We set ac_cv_exeext here because the later test for it is not
4939 # safe: cross compilers may not add the suffix if given an `-o'
4940 # argument, so we may need to know it at that point already.
4941 # Even if this section looks crufty: it has the advantage of
4942 # actually working.
4943 break;;
4944 * )
4945 break;;
4946 esac
4947done
4948test "$ac_cv_exeext" = no && ac_cv_exeext=
4949
4950else
4951 ac_file=''
4952fi
cristy8b350f62009-11-15 23:12:43 +00004953if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955$as_echo "no" >&6; }
4956$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004957sed 's/^/| /' conftest.$ac_ext >&5
4958
cristy8b350f62009-11-15 23:12:43 +00004959{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004961as_fn_error 77 "C compiler cannot create executables
4962See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004963else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4965$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004966fi
cristycd4c5312009-11-22 01:19:08 +00004967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4968$as_echo_n "checking for C compiler default output file name... " >&6; }
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4970$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004971ac_exeext=$ac_cv_exeext
4972
cristycd4c5312009-11-22 01:19:08 +00004973rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004974ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004976$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004977if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004978case "(($ac_try" in
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4981esac
cristy8b350f62009-11-15 23:12:43 +00004982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4983$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004984 (eval "$ac_link") 2>&5
4985 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4987 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004988 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4989# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4990# work properly (i.e., refer to `conftest.exe'), while it won't with
4991# `rm'.
4992for ac_file in conftest.exe conftest 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 | *.o | *.obj ) ;;
4996 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4997 break;;
4998 * ) break;;
4999 esac
5000done
5001else
cristy8b350f62009-11-15 23:12:43 +00005002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005004as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5005See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005006fi
cristycd4c5312009-11-22 01:19:08 +00005007rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005009$as_echo "$ac_cv_exeext" >&6; }
5010
5011rm -f conftest.$ac_ext
5012EXEEXT=$ac_cv_exeext
5013ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015/* end confdefs.h. */
5016#include <stdio.h>
5017int
5018main ()
5019{
5020FILE *f = fopen ("conftest.out", "w");
5021 return ferror (f) || fclose (f) != 0;
5022
5023 ;
5024 return 0;
5025}
5026_ACEOF
5027ac_clean_files="$ac_clean_files conftest.out"
5028# Check that the compiler produces executables we can run. If not, either
5029# the compiler is broken, or we cross compile.
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5031$as_echo_n "checking whether we are cross compiling... " >&6; }
5032if test "$cross_compiling" != yes; then
5033 { { ac_try="$ac_link"
5034case "(($ac_try" in
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5037esac
5038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5039$as_echo "$ac_try_echo"; } >&5
5040 (eval "$ac_link") 2>&5
5041 ac_status=$?
5042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5043 test $ac_status = 0; }
5044 if { ac_try='./conftest$ac_cv_exeext'
5045 { { case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048esac
5049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5050$as_echo "$ac_try_echo"; } >&5
5051 (eval "$ac_try") 2>&5
5052 ac_status=$?
5053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5054 test $ac_status = 0; }; }; then
5055 cross_compiling=no
5056 else
5057 if test "$cross_compiling" = maybe; then
5058 cross_compiling=yes
5059 else
5060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005062as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005063If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005064See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005065 fi
5066 fi
5067fi
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5069$as_echo "$cross_compiling" >&6; }
5070
5071rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5072ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005074$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005075if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005076 $as_echo_n "(cached) " >&6
5077else
cristy8b350f62009-11-15 23:12:43 +00005078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005079/* end confdefs.h. */
5080
5081int
5082main ()
5083{
5084
5085 ;
5086 return 0;
5087}
5088_ACEOF
5089rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005090if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005091case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094esac
cristy8b350f62009-11-15 23:12:43 +00005095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5096$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005097 (eval "$ac_compile") 2>&5
5098 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5100 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005101 for ac_file in conftest.o conftest.obj conftest.*; do
5102 test -f "$ac_file" || continue;
5103 case $ac_file in
5104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5105 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5106 break;;
5107 esac
5108done
5109else
5110 $as_echo "$as_me: failed program was:" >&5
5111sed 's/^/| /' conftest.$ac_ext >&5
5112
cristy8b350f62009-11-15 23:12:43 +00005113{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005115as_fn_error $? "cannot compute suffix of object files: cannot compile
5116See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005117fi
cristy3ed852e2009-09-05 21:47:34 +00005118rm -f conftest.$ac_cv_objext conftest.$ac_ext
5119fi
cristy8b350f62009-11-15 23:12:43 +00005120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005121$as_echo "$ac_cv_objext" >&6; }
5122OBJEXT=$ac_cv_objext
5123ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005125$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005126if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005127 $as_echo_n "(cached) " >&6
5128else
cristy8b350f62009-11-15 23:12:43 +00005129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005130/* end confdefs.h. */
5131
5132int
5133main ()
5134{
5135#ifndef __GNUC__
5136 choke me
5137#endif
5138
5139 ;
5140 return 0;
5141}
5142_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005143if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005144 ac_compiler_gnu=yes
5145else
cristy8b350f62009-11-15 23:12:43 +00005146 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005147fi
cristy3ed852e2009-09-05 21:47:34 +00005148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149ac_cv_c_compiler_gnu=$ac_compiler_gnu
5150
5151fi
cristy8b350f62009-11-15 23:12:43 +00005152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005153$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5154if test $ac_compiler_gnu = yes; then
5155 GCC=yes
5156else
5157 GCC=
5158fi
5159ac_test_CFLAGS=${CFLAGS+set}
5160ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005162$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005163if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005164 $as_echo_n "(cached) " >&6
5165else
5166 ac_save_c_werror_flag=$ac_c_werror_flag
5167 ac_c_werror_flag=yes
5168 ac_cv_prog_cc_g=no
5169 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005171/* end confdefs.h. */
5172
5173int
5174main ()
5175{
5176
5177 ;
5178 return 0;
5179}
5180_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005181if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005182 ac_cv_prog_cc_g=yes
5183else
cristy8b350f62009-11-15 23:12:43 +00005184 CFLAGS=""
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005186/* end confdefs.h. */
5187
5188int
5189main ()
5190{
5191
5192 ;
5193 return 0;
5194}
5195_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005196if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005197
cristy8b350f62009-11-15 23:12:43 +00005198else
5199 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005200 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005202/* end confdefs.h. */
5203
5204int
5205main ()
5206{
5207
5208 ;
5209 return 0;
5210}
5211_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005212if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005213 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005214fi
cristy3ed852e2009-09-05 21:47:34 +00005215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216fi
cristy3ed852e2009-09-05 21:47:34 +00005217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218fi
cristy3ed852e2009-09-05 21:47:34 +00005219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 ac_c_werror_flag=$ac_save_c_werror_flag
5221fi
cristy8b350f62009-11-15 23:12:43 +00005222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005223$as_echo "$ac_cv_prog_cc_g" >&6; }
5224if test "$ac_test_CFLAGS" = set; then
5225 CFLAGS=$ac_save_CFLAGS
5226elif test $ac_cv_prog_cc_g = yes; then
5227 if test "$GCC" = yes; then
5228 CFLAGS="-g -O2"
5229 else
5230 CFLAGS="-g"
5231 fi
5232else
5233 if test "$GCC" = yes; then
5234 CFLAGS="-O2"
5235 else
5236 CFLAGS=
5237 fi
5238fi
cristy8b350f62009-11-15 23:12:43 +00005239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005240$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005241if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005242 $as_echo_n "(cached) " >&6
5243else
5244 ac_cv_prog_cc_c89=no
5245ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005247/* end confdefs.h. */
5248#include <stdarg.h>
5249#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005250struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005251/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5252struct buf { int x; };
5253FILE * (*rcsopen) (struct buf *, struct stat *, int);
5254static char *e (p, i)
5255 char **p;
5256 int i;
5257{
5258 return p[i];
5259}
5260static char *f (char * (*g) (char **, int), char **p, ...)
5261{
5262 char *s;
5263 va_list v;
5264 va_start (v,p);
5265 s = g (p, va_arg (v,int));
5266 va_end (v);
5267 return s;
5268}
5269
5270/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5271 function prototypes and stuff, but not '\xHH' hex character constants.
5272 These don't provoke an error unfortunately, instead are silently treated
5273 as 'x'. The following induces an error, until -std is added to get
5274 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5275 array size at least. It's necessary to write '\x00'==0 to get something
5276 that's true only with -std. */
5277int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5278
5279/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5280 inside strings and character constants. */
5281#define FOO(x) 'x'
5282int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5283
5284int test (int i, double x);
5285struct s1 {int (*f) (int a);};
5286struct s2 {int (*f) (double a);};
5287int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5288int argc;
5289char **argv;
5290int
5291main ()
5292{
5293return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5294 ;
5295 return 0;
5296}
5297_ACEOF
5298for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5299 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5300do
5301 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005302 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005303 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005304fi
cristy3ed852e2009-09-05 21:47:34 +00005305rm -f core conftest.err conftest.$ac_objext
5306 test "x$ac_cv_prog_cc_c89" != "xno" && break
5307done
5308rm -f conftest.$ac_ext
5309CC=$ac_save_CC
5310
5311fi
5312# AC_CACHE_VAL
5313case "x$ac_cv_prog_cc_c89" in
5314 x)
cristy8b350f62009-11-15 23:12:43 +00005315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005316$as_echo "none needed" >&6; } ;;
5317 xno)
cristy8b350f62009-11-15 23:12:43 +00005318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005319$as_echo "unsupported" >&6; } ;;
5320 *)
5321 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005323$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5324esac
cristy8b350f62009-11-15 23:12:43 +00005325if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005326
cristy8b350f62009-11-15 23:12:43 +00005327fi
cristy3ed852e2009-09-05 21:47:34 +00005328
5329ac_ext=c
5330ac_cpp='$CPP $CPPFLAGS'
5331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005334
cristya5bda012013-11-03 18:05:38 +00005335ac_ext=c
5336ac_cpp='$CPP $CPPFLAGS'
5337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339ac_compiler_gnu=$ac_cv_c_compiler_gnu
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5341$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5342if ${am_cv_prog_cc_c_o+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344else
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346/* end confdefs.h. */
5347
5348int
5349main ()
5350{
5351
5352 ;
5353 return 0;
5354}
5355_ACEOF
5356 # Make sure it works both with $CC and with simple cc.
5357 # Following AC_PROG_CC_C_O, we do the test twice because some
5358 # compilers refuse to overwrite an existing .o file with -o,
5359 # though they will create one.
5360 am_cv_prog_cc_c_o=yes
5361 for am_i in 1 2; do
5362 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5363 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } \
5367 && test -f conftest2.$ac_objext; then
5368 : OK
5369 else
5370 am_cv_prog_cc_c_o=no
5371 break
5372 fi
5373 done
5374 rm -f core conftest*
5375 unset am_i
5376fi
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5378$as_echo "$am_cv_prog_cc_c_o" >&6; }
5379if test "$am_cv_prog_cc_c_o" != yes; then
5380 # Losing compiler, so override with the script.
5381 # FIXME: It is wrong to rewrite CC.
5382 # But if we don't then we get into trouble of one sort or another.
5383 # A longer-term fix would be to have automake use am__CC in this case,
5384 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5385 CC="$am_aux_dir/compile $CC"
5386fi
5387ac_ext=c
5388ac_cpp='$CPP $CPPFLAGS'
5389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391ac_compiler_gnu=$ac_cv_c_compiler_gnu
5392
5393
cristy73bd4a52010-10-05 11:24:23 +00005394depcc="$CC" am_compiler_list=
5395
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5397$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005398if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005399 $as_echo_n "(cached) " >&6
5400else
5401 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5402 # We make a subdir and do the tests there. Otherwise we can end up
5403 # making bogus files that we don't know about and never remove. For
5404 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005405 # making a dummy file named 'D' -- because '-MD' means "put the output
5406 # in D".
cristy7247bba2012-02-05 16:37:27 +00005407 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005408 mkdir conftest.dir
5409 # Copy depcomp to subdir because otherwise we won't find it if we're
5410 # using a relative directory.
5411 cp "$am_depcomp" conftest.dir
5412 cd conftest.dir
5413 # We will build objects and dependencies in a subdirectory because
5414 # it helps to detect inapplicable dependency modes. For instance
5415 # both Tru64's cc and ICC support -MD to output dependencies as a
5416 # side effect of compilation, but ICC will put the dependencies in
5417 # the current directory while Tru64 will put them in the object
5418 # directory.
5419 mkdir sub
5420
5421 am_cv_CC_dependencies_compiler_type=none
5422 if test "$am_compiler_list" = ""; then
5423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5424 fi
5425 am__universal=false
5426 case " $depcc " in #(
5427 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5428 esac
5429
5430 for depmode in $am_compiler_list; do
5431 # Setup a source with many dependencies, because some compilers
5432 # like to wrap large dependency lists on column 80 (with \), and
5433 # we should not choose a depcomp mode which is confused by this.
5434 #
5435 # We need to recreate these files for each test, as the compiler may
5436 # overwrite some of them when testing with obscure command lines.
5437 # This happens at least with the AIX C compiler.
5438 : > sub/conftest.c
5439 for i in 1 2 3 4 5 6; do
5440 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005441 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5442 # Solaris 10 /bin/sh.
5443 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005444 done
5445 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5446
cristyc0890a62012-07-19 00:18:20 +00005447 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005448 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005449 # handle '-M -o', and we need to detect this. Also, some Intel
5450 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005451 am__obj=sub/conftest.${OBJEXT-o}
5452 am__minus_obj="-o $am__obj"
5453 case $depmode in
5454 gcc)
5455 # This depmode causes a compiler race in universal mode.
5456 test "$am__universal" = false || continue
5457 ;;
5458 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005459 # After this tag, mechanisms are not by side-effect, so they'll
5460 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005461 if test "x$enable_dependency_tracking" = xyes; then
5462 continue
5463 else
5464 break
5465 fi
5466 ;;
cristy7247bba2012-02-05 16:37:27 +00005467 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005468 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005469 # not run yet. These depmodes are late enough in the game, and
5470 # so weak that their functioning should not be impacted.
5471 am__obj=conftest.${OBJEXT-o}
5472 am__minus_obj=
5473 ;;
5474 none) break ;;
5475 esac
5476 if depmode=$depmode \
5477 source=sub/conftest.c object=$am__obj \
5478 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5479 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5480 >/dev/null 2>conftest.err &&
5481 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5482 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5483 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5484 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5485 # icc doesn't choke on unknown options, it will just issue warnings
5486 # or remarks (even with -Werror). So we grep stderr for any message
5487 # that says an option was ignored or not supported.
5488 # When given -MP, icc 7.0 and 7.1 complain thusly:
5489 # icc: Command line warning: ignoring option '-M'; no argument required
5490 # The diagnosis changed in icc 8.0:
5491 # icc: Command line remark: option '-MP' not supported
5492 if (grep 'ignoring option' conftest.err ||
5493 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5494 am_cv_CC_dependencies_compiler_type=$depmode
5495 break
5496 fi
5497 fi
5498 done
5499
5500 cd ..
5501 rm -rf conftest.dir
5502else
5503 am_cv_CC_dependencies_compiler_type=none
5504fi
5505
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5508$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5509CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5510
5511 if
5512 test "x$enable_dependency_tracking" != xno \
5513 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5514 am__fastdepCC_TRUE=
5515 am__fastdepCC_FALSE='#'
5516else
5517 am__fastdepCC_TRUE='#'
5518 am__fastdepCC_FALSE=
5519fi
5520
5521
cristy3ed852e2009-09-05 21:47:34 +00005522
cristya0b81c32010-01-22 02:54:33 +00005523ac_ext=c
5524ac_cpp='$CPP $CPPFLAGS'
5525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5527ac_compiler_gnu=$ac_cv_c_compiler_gnu
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5529$as_echo_n "checking how to run the C preprocessor... " >&6; }
5530# On Suns, sometimes $CPP names a directory.
5531if test -n "$CPP" && test -d "$CPP"; then
5532 CPP=
5533fi
5534if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005535 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005536 $as_echo_n "(cached) " >&6
5537else
5538 # Double quotes because CPP needs to be expanded
5539 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5540 do
5541 ac_preproc_ok=false
5542for ac_c_preproc_warn_flag in '' yes
5543do
5544 # Use a header file that comes with gcc, so configuring glibc
5545 # with a fresh cross-compiler works.
5546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5547 # <limits.h> exists even on freestanding compilers.
5548 # On the NeXT, cc -E runs the code through the compiler's parser,
5549 # not just through cpp. "Syntax error" is here to catch this case.
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551/* end confdefs.h. */
5552#ifdef __STDC__
5553# include <limits.h>
5554#else
5555# include <assert.h>
5556#endif
5557 Syntax error
5558_ACEOF
5559if ac_fn_c_try_cpp "$LINENO"; then :
5560
5561else
5562 # Broken: fails on valid input.
5563continue
5564fi
cristyda16f162011-02-19 23:52:17 +00005565rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005566
5567 # OK, works on sane cases. Now check whether nonexistent headers
5568 # can be detected and how.
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570/* end confdefs.h. */
5571#include <ac_nonexistent.h>
5572_ACEOF
5573if ac_fn_c_try_cpp "$LINENO"; then :
5574 # Broken: success on invalid input.
5575continue
5576else
5577 # Passes both tests.
5578ac_preproc_ok=:
5579break
5580fi
cristyda16f162011-02-19 23:52:17 +00005581rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005582
5583done
5584# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005585rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005586if $ac_preproc_ok; then :
5587 break
5588fi
5589
5590 done
5591 ac_cv_prog_CPP=$CPP
5592
5593fi
5594 CPP=$ac_cv_prog_CPP
5595else
5596 ac_cv_prog_CPP=$CPP
5597fi
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5599$as_echo "$CPP" >&6; }
5600ac_preproc_ok=false
5601for ac_c_preproc_warn_flag in '' yes
5602do
5603 # Use a header file that comes with gcc, so configuring glibc
5604 # with a fresh cross-compiler works.
5605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5606 # <limits.h> exists even on freestanding compilers.
5607 # On the NeXT, cc -E runs the code through the compiler's parser,
5608 # not just through cpp. "Syntax error" is here to catch this case.
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610/* end confdefs.h. */
5611#ifdef __STDC__
5612# include <limits.h>
5613#else
5614# include <assert.h>
5615#endif
5616 Syntax error
5617_ACEOF
5618if ac_fn_c_try_cpp "$LINENO"; then :
5619
5620else
5621 # Broken: fails on valid input.
5622continue
5623fi
cristyda16f162011-02-19 23:52:17 +00005624rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005625
5626 # OK, works on sane cases. Now check whether nonexistent headers
5627 # can be detected and how.
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629/* end confdefs.h. */
5630#include <ac_nonexistent.h>
5631_ACEOF
5632if ac_fn_c_try_cpp "$LINENO"; then :
5633 # Broken: success on invalid input.
5634continue
5635else
5636 # Passes both tests.
5637ac_preproc_ok=:
5638break
5639fi
cristyda16f162011-02-19 23:52:17 +00005640rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005641
5642done
5643# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005644rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005645if $ac_preproc_ok; then :
5646
5647else
5648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005650as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5651See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005652fi
5653
5654ac_ext=c
5655ac_cpp='$CPP $CPPFLAGS'
5656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5658ac_compiler_gnu=$ac_cv_c_compiler_gnu
5659
5660
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5662$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005663if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005664 $as_echo_n "(cached) " >&6
5665else
5666 if test -z "$GREP"; then
5667 ac_path_GREP_found=false
5668 # Loop through the user's path and test for each of PROGNAME-LIST
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5671do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_prog in grep ggrep; do
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005677 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005678# Check for GNU ac_path_GREP and select it if it is found.
5679 # Check for GNU $ac_path_GREP
5680case `"$ac_path_GREP" --version 2>&1` in
5681*GNU*)
5682 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5683*)
5684 ac_count=0
5685 $as_echo_n 0123456789 >"conftest.in"
5686 while :
5687 do
5688 cat "conftest.in" "conftest.in" >"conftest.tmp"
5689 mv "conftest.tmp" "conftest.in"
5690 cp "conftest.in" "conftest.nl"
5691 $as_echo 'GREP' >> "conftest.nl"
5692 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5694 as_fn_arith $ac_count + 1 && ac_count=$as_val
5695 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5696 # Best one so far, save it but keep looking for a better one
5697 ac_cv_path_GREP="$ac_path_GREP"
5698 ac_path_GREP_max=$ac_count
5699 fi
5700 # 10*(2^10) chars as input seems more than enough
5701 test $ac_count -gt 10 && break
5702 done
5703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5704esac
5705
5706 $ac_path_GREP_found && break 3
5707 done
5708 done
5709 done
5710IFS=$as_save_IFS
5711 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005712 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005713 fi
5714else
5715 ac_cv_path_GREP=$GREP
5716fi
5717
5718fi
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5720$as_echo "$ac_cv_path_GREP" >&6; }
5721 GREP="$ac_cv_path_GREP"
5722
5723
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5725$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005726if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005727 $as_echo_n "(cached) " >&6
5728else
5729 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5730 then ac_cv_path_EGREP="$GREP -E"
5731 else
5732 if test -z "$EGREP"; then
5733 ac_path_EGREP_found=false
5734 # Loop through the user's path and test for each of PROGNAME-LIST
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5737do
5738 IFS=$as_save_IFS
5739 test -z "$as_dir" && as_dir=.
5740 for ac_prog in egrep; do
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005743 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005744# Check for GNU ac_path_EGREP and select it if it is found.
5745 # Check for GNU $ac_path_EGREP
5746case `"$ac_path_EGREP" --version 2>&1` in
5747*GNU*)
5748 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5749*)
5750 ac_count=0
5751 $as_echo_n 0123456789 >"conftest.in"
5752 while :
5753 do
5754 cat "conftest.in" "conftest.in" >"conftest.tmp"
5755 mv "conftest.tmp" "conftest.in"
5756 cp "conftest.in" "conftest.nl"
5757 $as_echo 'EGREP' >> "conftest.nl"
5758 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5760 as_fn_arith $ac_count + 1 && ac_count=$as_val
5761 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5762 # Best one so far, save it but keep looking for a better one
5763 ac_cv_path_EGREP="$ac_path_EGREP"
5764 ac_path_EGREP_max=$ac_count
5765 fi
5766 # 10*(2^10) chars as input seems more than enough
5767 test $ac_count -gt 10 && break
5768 done
5769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5770esac
5771
5772 $ac_path_EGREP_found && break 3
5773 done
5774 done
5775 done
5776IFS=$as_save_IFS
5777 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005778 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005779 fi
5780else
5781 ac_cv_path_EGREP=$EGREP
5782fi
5783
5784 fi
5785fi
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5787$as_echo "$ac_cv_path_EGREP" >&6; }
5788 EGREP="$ac_cv_path_EGREP"
5789
5790
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5792$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005793if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005794 $as_echo_n "(cached) " >&6
5795else
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797/* end confdefs.h. */
5798#include <stdlib.h>
5799#include <stdarg.h>
5800#include <string.h>
5801#include <float.h>
5802
5803int
5804main ()
5805{
5806
5807 ;
5808 return 0;
5809}
5810_ACEOF
5811if ac_fn_c_try_compile "$LINENO"; then :
5812 ac_cv_header_stdc=yes
5813else
5814 ac_cv_header_stdc=no
5815fi
5816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817
5818if test $ac_cv_header_stdc = yes; then
5819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821/* end confdefs.h. */
5822#include <string.h>
5823
5824_ACEOF
5825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5826 $EGREP "memchr" >/dev/null 2>&1; then :
5827
5828else
5829 ac_cv_header_stdc=no
5830fi
5831rm -f conftest*
5832
5833fi
5834
5835if test $ac_cv_header_stdc = yes; then
5836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h. */
5839#include <stdlib.h>
5840
5841_ACEOF
5842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5843 $EGREP "free" >/dev/null 2>&1; then :
5844
5845else
5846 ac_cv_header_stdc=no
5847fi
5848rm -f conftest*
5849
5850fi
5851
5852if test $ac_cv_header_stdc = yes; then
5853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5854 if test "$cross_compiling" = yes; then :
5855 :
5856else
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858/* end confdefs.h. */
5859#include <ctype.h>
5860#include <stdlib.h>
5861#if ((' ' & 0x0FF) == 0x020)
5862# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5863# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5864#else
5865# define ISLOWER(c) \
5866 (('a' <= (c) && (c) <= 'i') \
5867 || ('j' <= (c) && (c) <= 'r') \
5868 || ('s' <= (c) && (c) <= 'z'))
5869# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5870#endif
5871
5872#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5873int
5874main ()
5875{
5876 int i;
5877 for (i = 0; i < 256; i++)
5878 if (XOR (islower (i), ISLOWER (i))
5879 || toupper (i) != TOUPPER (i))
5880 return 2;
5881 return 0;
5882}
5883_ACEOF
5884if ac_fn_c_try_run "$LINENO"; then :
5885
5886else
5887 ac_cv_header_stdc=no
5888fi
5889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5890 conftest.$ac_objext conftest.beam conftest.$ac_ext
5891fi
5892
5893fi
5894fi
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5896$as_echo "$ac_cv_header_stdc" >&6; }
5897if test $ac_cv_header_stdc = yes; then
5898
5899$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5900
5901fi
5902
5903# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5904for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5905 inttypes.h stdint.h unistd.h
5906do :
5907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5908ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5909"
cristy98dddb52010-11-04 00:30:15 +00005910if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005911 cat >>confdefs.h <<_ACEOF
5912#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5913_ACEOF
5914
5915fi
5916
5917done
5918
5919
5920
5921 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 +00005922if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005923 MINIX=yes
5924else
5925 MINIX=
5926fi
5927
5928
5929 if test "$MINIX" = yes; then
5930
5931$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5932
5933
5934$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5935
5936
5937$as_echo "#define _MINIX 1" >>confdefs.h
5938
5939 fi
5940
5941
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5943$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005944if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005945 $as_echo_n "(cached) " >&6
5946else
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948/* end confdefs.h. */
5949
cristy14fefe52012-05-21 00:59:18 +00005950# define __EXTENSIONS__ 1
5951 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005952int
5953main ()
5954{
5955
5956 ;
5957 return 0;
5958}
5959_ACEOF
5960if ac_fn_c_try_compile "$LINENO"; then :
5961 ac_cv_safe_to_define___extensions__=yes
5962else
5963 ac_cv_safe_to_define___extensions__=no
5964fi
5965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966fi
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5968$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5969 test $ac_cv_safe_to_define___extensions__ = yes &&
5970 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5971
5972 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5973
5974 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5975
5976 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5977
5978 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5979
5980
5981
5982# Check for programs
5983ac_ext=c
5984ac_cpp='$CPP $CPPFLAGS'
5985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5987ac_compiler_gnu=$ac_cv_c_compiler_gnu
5988if test -n "$ac_tool_prefix"; then
5989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5990set dummy ${ac_tool_prefix}gcc; ac_word=$2
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005993if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005994 $as_echo_n "(cached) " >&6
5995else
5996 if test -n "$CC"; then
5997 ac_cv_prog_CC="$CC" # Let the user override the test.
5998else
5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000for as_dir in $PATH
6001do
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006006 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6009 fi
6010done
6011 done
6012IFS=$as_save_IFS
6013
6014fi
6015fi
6016CC=$ac_cv_prog_CC
6017if test -n "$CC"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6019$as_echo "$CC" >&6; }
6020else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022$as_echo "no" >&6; }
6023fi
6024
6025
6026fi
6027if test -z "$ac_cv_prog_CC"; then
6028 ac_ct_CC=$CC
6029 # Extract the first word of "gcc", so it can be a program name with args.
6030set dummy gcc; ac_word=$2
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006033if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006034 $as_echo_n "(cached) " >&6
6035else
6036 if test -n "$ac_ct_CC"; then
6037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6038else
6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH
6041do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006046 ac_cv_prog_ac_ct_CC="gcc"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050done
6051 done
6052IFS=$as_save_IFS
6053
6054fi
6055fi
6056ac_ct_CC=$ac_cv_prog_ac_ct_CC
6057if test -n "$ac_ct_CC"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6059$as_echo "$ac_ct_CC" >&6; }
6060else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062$as_echo "no" >&6; }
6063fi
6064
6065 if test "x$ac_ct_CC" = x; then
6066 CC=""
6067 else
6068 case $cross_compiling:$ac_tool_warned in
6069yes:)
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6072ac_tool_warned=yes ;;
6073esac
6074 CC=$ac_ct_CC
6075 fi
6076else
6077 CC="$ac_cv_prog_CC"
6078fi
6079
6080if test -z "$CC"; then
6081 if test -n "$ac_tool_prefix"; then
6082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6083set dummy ${ac_tool_prefix}cc; ac_word=$2
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006086if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006087 $as_echo_n "(cached) " >&6
6088else
6089 if test -n "$CC"; then
6090 ac_cv_prog_CC="$CC" # Let the user override the test.
6091else
6092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH
6094do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006099 ac_cv_prog_CC="${ac_tool_prefix}cc"
6100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6102 fi
6103done
6104 done
6105IFS=$as_save_IFS
6106
6107fi
6108fi
6109CC=$ac_cv_prog_CC
6110if test -n "$CC"; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6112$as_echo "$CC" >&6; }
6113else
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115$as_echo "no" >&6; }
6116fi
6117
6118
6119 fi
6120fi
6121if test -z "$CC"; then
6122 # Extract the first word of "cc", so it can be a program name with args.
6123set dummy cc; ac_word=$2
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006126if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006127 $as_echo_n "(cached) " >&6
6128else
6129 if test -n "$CC"; then
6130 ac_cv_prog_CC="$CC" # Let the user override the test.
6131else
6132 ac_prog_rejected=no
6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134for as_dir in $PATH
6135do
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6141 ac_prog_rejected=yes
6142 continue
6143 fi
6144 ac_cv_prog_CC="cc"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148done
6149 done
6150IFS=$as_save_IFS
6151
6152if test $ac_prog_rejected = yes; then
6153 # We found a bogon in the path, so make sure we never use it.
6154 set dummy $ac_cv_prog_CC
6155 shift
6156 if test $# != 0; then
6157 # We chose a different compiler from the bogus one.
6158 # However, it has the same basename, so the bogon will be chosen
6159 # first if we set CC to just the basename; use the full file name.
6160 shift
6161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6162 fi
6163fi
6164fi
6165fi
6166CC=$ac_cv_prog_CC
6167if test -n "$CC"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6169$as_echo "$CC" >&6; }
6170else
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172$as_echo "no" >&6; }
6173fi
6174
6175
6176fi
6177if test -z "$CC"; then
6178 if test -n "$ac_tool_prefix"; then
6179 for ac_prog in cl.exe
6180 do
6181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006185if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006186 $as_echo_n "(cached) " >&6
6187else
6188 if test -n "$CC"; then
6189 ac_cv_prog_CC="$CC" # Let the user override the test.
6190else
6191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192for as_dir in $PATH
6193do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202done
6203 done
6204IFS=$as_save_IFS
6205
6206fi
6207fi
6208CC=$ac_cv_prog_CC
6209if test -n "$CC"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6211$as_echo "$CC" >&6; }
6212else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214$as_echo "no" >&6; }
6215fi
6216
6217
6218 test -n "$CC" && break
6219 done
6220fi
6221if test -z "$CC"; then
6222 ac_ct_CC=$CC
6223 for ac_prog in cl.exe
6224do
6225 # Extract the first word of "$ac_prog", so it can be a program name with args.
6226set dummy $ac_prog; ac_word=$2
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006229if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006230 $as_echo_n "(cached) " >&6
6231else
6232 if test -n "$ac_ct_CC"; then
6233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6234else
6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236for as_dir in $PATH
6237do
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006242 ac_cv_prog_ac_ct_CC="$ac_prog"
6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 break 2
6245 fi
6246done
6247 done
6248IFS=$as_save_IFS
6249
6250fi
6251fi
6252ac_ct_CC=$ac_cv_prog_ac_ct_CC
6253if test -n "$ac_ct_CC"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6255$as_echo "$ac_ct_CC" >&6; }
6256else
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258$as_echo "no" >&6; }
6259fi
6260
6261
6262 test -n "$ac_ct_CC" && break
6263done
6264
6265 if test "x$ac_ct_CC" = x; then
6266 CC=""
6267 else
6268 case $cross_compiling:$ac_tool_warned in
6269yes:)
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6272ac_tool_warned=yes ;;
6273esac
6274 CC=$ac_ct_CC
6275 fi
6276fi
6277
6278fi
6279
6280
6281test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006283as_fn_error $? "no acceptable C compiler found in \$PATH
6284See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006285
6286# Provide some information about the compiler.
6287$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6288set X $ac_compile
6289ac_compiler=$2
6290for ac_option in --version -v -V -qversion; do
6291 { { ac_try="$ac_compiler $ac_option >&5"
6292case "(($ac_try" in
6293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294 *) ac_try_echo=$ac_try;;
6295esac
6296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6297$as_echo "$ac_try_echo"; } >&5
6298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6299 ac_status=$?
6300 if test -s conftest.err; then
6301 sed '10a\
6302... rest of stderr output deleted ...
6303 10q' conftest.err >conftest.er1
6304 cat conftest.er1 >&5
6305 fi
6306 rm -f conftest.er1 conftest.err
6307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308 test $ac_status = 0; }
6309done
6310
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6312$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006313if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006314 $as_echo_n "(cached) " >&6
6315else
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317/* end confdefs.h. */
6318
6319int
6320main ()
6321{
6322#ifndef __GNUC__
6323 choke me
6324#endif
6325
6326 ;
6327 return 0;
6328}
6329_ACEOF
6330if ac_fn_c_try_compile "$LINENO"; then :
6331 ac_compiler_gnu=yes
6332else
6333 ac_compiler_gnu=no
6334fi
6335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336ac_cv_c_compiler_gnu=$ac_compiler_gnu
6337
6338fi
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6340$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6341if test $ac_compiler_gnu = yes; then
6342 GCC=yes
6343else
6344 GCC=
6345fi
6346ac_test_CFLAGS=${CFLAGS+set}
6347ac_save_CFLAGS=$CFLAGS
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6349$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006350if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006351 $as_echo_n "(cached) " >&6
6352else
6353 ac_save_c_werror_flag=$ac_c_werror_flag
6354 ac_c_werror_flag=yes
6355 ac_cv_prog_cc_g=no
6356 CFLAGS="-g"
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358/* end confdefs.h. */
6359
6360int
6361main ()
6362{
6363
6364 ;
6365 return 0;
6366}
6367_ACEOF
6368if ac_fn_c_try_compile "$LINENO"; then :
6369 ac_cv_prog_cc_g=yes
6370else
6371 CFLAGS=""
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373/* end confdefs.h. */
6374
6375int
6376main ()
6377{
6378
6379 ;
6380 return 0;
6381}
6382_ACEOF
6383if ac_fn_c_try_compile "$LINENO"; then :
6384
6385else
6386 ac_c_werror_flag=$ac_save_c_werror_flag
6387 CFLAGS="-g"
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389/* end confdefs.h. */
6390
6391int
6392main ()
6393{
6394
6395 ;
6396 return 0;
6397}
6398_ACEOF
6399if ac_fn_c_try_compile "$LINENO"; then :
6400 ac_cv_prog_cc_g=yes
6401fi
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403fi
6404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405fi
6406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407 ac_c_werror_flag=$ac_save_c_werror_flag
6408fi
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6410$as_echo "$ac_cv_prog_cc_g" >&6; }
6411if test "$ac_test_CFLAGS" = set; then
6412 CFLAGS=$ac_save_CFLAGS
6413elif test $ac_cv_prog_cc_g = yes; then
6414 if test "$GCC" = yes; then
6415 CFLAGS="-g -O2"
6416 else
6417 CFLAGS="-g"
6418 fi
6419else
6420 if test "$GCC" = yes; then
6421 CFLAGS="-O2"
6422 else
6423 CFLAGS=
6424 fi
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6427$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006428if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006429 $as_echo_n "(cached) " >&6
6430else
6431 ac_cv_prog_cc_c89=no
6432ac_save_CC=$CC
6433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434/* end confdefs.h. */
6435#include <stdarg.h>
6436#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006437struct stat;
cristya0b81c32010-01-22 02:54:33 +00006438/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6439struct buf { int x; };
6440FILE * (*rcsopen) (struct buf *, struct stat *, int);
6441static char *e (p, i)
6442 char **p;
6443 int i;
6444{
6445 return p[i];
6446}
6447static char *f (char * (*g) (char **, int), char **p, ...)
6448{
6449 char *s;
6450 va_list v;
6451 va_start (v,p);
6452 s = g (p, va_arg (v,int));
6453 va_end (v);
6454 return s;
6455}
6456
6457/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6458 function prototypes and stuff, but not '\xHH' hex character constants.
6459 These don't provoke an error unfortunately, instead are silently treated
6460 as 'x'. The following induces an error, until -std is added to get
6461 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6462 array size at least. It's necessary to write '\x00'==0 to get something
6463 that's true only with -std. */
6464int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6465
6466/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6467 inside strings and character constants. */
6468#define FOO(x) 'x'
6469int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6470
6471int test (int i, double x);
6472struct s1 {int (*f) (int a);};
6473struct s2 {int (*f) (double a);};
6474int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6475int argc;
6476char **argv;
6477int
6478main ()
6479{
6480return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6481 ;
6482 return 0;
6483}
6484_ACEOF
6485for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6486 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6487do
6488 CC="$ac_save_CC $ac_arg"
6489 if ac_fn_c_try_compile "$LINENO"; then :
6490 ac_cv_prog_cc_c89=$ac_arg
6491fi
6492rm -f core conftest.err conftest.$ac_objext
6493 test "x$ac_cv_prog_cc_c89" != "xno" && break
6494done
6495rm -f conftest.$ac_ext
6496CC=$ac_save_CC
6497
6498fi
6499# AC_CACHE_VAL
6500case "x$ac_cv_prog_cc_c89" in
6501 x)
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6503$as_echo "none needed" >&6; } ;;
6504 xno)
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6506$as_echo "unsupported" >&6; } ;;
6507 *)
6508 CC="$CC $ac_cv_prog_cc_c89"
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6510$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6511esac
6512if test "x$ac_cv_prog_cc_c89" != xno; then :
6513
6514fi
6515
6516ac_ext=c
6517ac_cpp='$CPP $CPPFLAGS'
6518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520ac_compiler_gnu=$ac_cv_c_compiler_gnu
6521
cristya5bda012013-11-03 18:05:38 +00006522ac_ext=c
6523ac_cpp='$CPP $CPPFLAGS'
6524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6526ac_compiler_gnu=$ac_cv_c_compiler_gnu
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6528$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6529if ${am_cv_prog_cc_c_o+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531else
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533/* end confdefs.h. */
6534
6535int
6536main ()
6537{
6538
6539 ;
6540 return 0;
6541}
6542_ACEOF
6543 # Make sure it works both with $CC and with simple cc.
6544 # Following AC_PROG_CC_C_O, we do the test twice because some
6545 # compilers refuse to overwrite an existing .o file with -o,
6546 # though they will create one.
6547 am_cv_prog_cc_c_o=yes
6548 for am_i in 1 2; do
6549 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6550 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6551 ac_status=$?
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } \
6554 && test -f conftest2.$ac_objext; then
6555 : OK
6556 else
6557 am_cv_prog_cc_c_o=no
6558 break
6559 fi
6560 done
6561 rm -f core conftest*
6562 unset am_i
6563fi
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6565$as_echo "$am_cv_prog_cc_c_o" >&6; }
6566if test "$am_cv_prog_cc_c_o" != yes; then
6567 # Losing compiler, so override with the script.
6568 # FIXME: It is wrong to rewrite CC.
6569 # But if we don't then we get into trouble of one sort or another.
6570 # A longer-term fix would be to have automake use am__CC in this case,
6571 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6572 CC="$am_aux_dir/compile $CC"
6573fi
6574ac_ext=c
6575ac_cpp='$CPP $CPPFLAGS'
6576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578ac_compiler_gnu=$ac_cv_c_compiler_gnu
6579
6580
cristy73bd4a52010-10-05 11:24:23 +00006581depcc="$CC" am_compiler_list=
6582
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6584$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006585if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006586 $as_echo_n "(cached) " >&6
6587else
6588 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6589 # We make a subdir and do the tests there. Otherwise we can end up
6590 # making bogus files that we don't know about and never remove. For
6591 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006592 # making a dummy file named 'D' -- because '-MD' means "put the output
6593 # in D".
cristy7247bba2012-02-05 16:37:27 +00006594 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006595 mkdir conftest.dir
6596 # Copy depcomp to subdir because otherwise we won't find it if we're
6597 # using a relative directory.
6598 cp "$am_depcomp" conftest.dir
6599 cd conftest.dir
6600 # We will build objects and dependencies in a subdirectory because
6601 # it helps to detect inapplicable dependency modes. For instance
6602 # both Tru64's cc and ICC support -MD to output dependencies as a
6603 # side effect of compilation, but ICC will put the dependencies in
6604 # the current directory while Tru64 will put them in the object
6605 # directory.
6606 mkdir sub
6607
6608 am_cv_CC_dependencies_compiler_type=none
6609 if test "$am_compiler_list" = ""; then
6610 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6611 fi
6612 am__universal=false
6613 case " $depcc " in #(
6614 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6615 esac
6616
6617 for depmode in $am_compiler_list; do
6618 # Setup a source with many dependencies, because some compilers
6619 # like to wrap large dependency lists on column 80 (with \), and
6620 # we should not choose a depcomp mode which is confused by this.
6621 #
6622 # We need to recreate these files for each test, as the compiler may
6623 # overwrite some of them when testing with obscure command lines.
6624 # This happens at least with the AIX C compiler.
6625 : > sub/conftest.c
6626 for i in 1 2 3 4 5 6; do
6627 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006628 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6629 # Solaris 10 /bin/sh.
6630 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006631 done
6632 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6633
cristyc0890a62012-07-19 00:18:20 +00006634 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006635 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006636 # handle '-M -o', and we need to detect this. Also, some Intel
6637 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006638 am__obj=sub/conftest.${OBJEXT-o}
6639 am__minus_obj="-o $am__obj"
6640 case $depmode in
6641 gcc)
6642 # This depmode causes a compiler race in universal mode.
6643 test "$am__universal" = false || continue
6644 ;;
6645 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006646 # After this tag, mechanisms are not by side-effect, so they'll
6647 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006648 if test "x$enable_dependency_tracking" = xyes; then
6649 continue
6650 else
6651 break
6652 fi
6653 ;;
cristy7247bba2012-02-05 16:37:27 +00006654 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006655 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006656 # not run yet. These depmodes are late enough in the game, and
6657 # so weak that their functioning should not be impacted.
6658 am__obj=conftest.${OBJEXT-o}
6659 am__minus_obj=
6660 ;;
6661 none) break ;;
6662 esac
6663 if depmode=$depmode \
6664 source=sub/conftest.c object=$am__obj \
6665 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6666 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6667 >/dev/null 2>conftest.err &&
6668 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6669 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6670 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6671 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6672 # icc doesn't choke on unknown options, it will just issue warnings
6673 # or remarks (even with -Werror). So we grep stderr for any message
6674 # that says an option was ignored or not supported.
6675 # When given -MP, icc 7.0 and 7.1 complain thusly:
6676 # icc: Command line warning: ignoring option '-M'; no argument required
6677 # The diagnosis changed in icc 8.0:
6678 # icc: Command line remark: option '-MP' not supported
6679 if (grep 'ignoring option' conftest.err ||
6680 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6681 am_cv_CC_dependencies_compiler_type=$depmode
6682 break
6683 fi
6684 fi
6685 done
6686
6687 cd ..
6688 rm -rf conftest.dir
6689else
6690 am_cv_CC_dependencies_compiler_type=none
6691fi
6692
6693fi
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6695$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6696CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6697
6698 if
6699 test "x$enable_dependency_tracking" != xno \
6700 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6701 am__fastdepCC_TRUE=
6702 am__fastdepCC_FALSE='#'
6703else
6704 am__fastdepCC_TRUE='#'
6705 am__fastdepCC_FALSE=
6706fi
6707
6708
cristy95646052009-11-28 23:05:30 +00006709ac_ext=cpp
6710ac_cpp='$CXXCPP $CPPFLAGS'
6711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6714if test -z "$CXX"; then
6715 if test -n "$CCC"; then
6716 CXX=$CCC
6717 else
6718 if test -n "$ac_tool_prefix"; then
6719 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6720 do
6721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6722set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006725if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006726 $as_echo_n "(cached) " >&6
6727else
6728 if test -n "$CXX"; then
6729 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6730else
6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006738 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742done
6743 done
6744IFS=$as_save_IFS
6745
6746fi
6747fi
6748CXX=$ac_cv_prog_CXX
6749if test -n "$CXX"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6751$as_echo "$CXX" >&6; }
6752else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754$as_echo "no" >&6; }
6755fi
6756
6757
6758 test -n "$CXX" && break
6759 done
6760fi
6761if test -z "$CXX"; then
6762 ac_ct_CXX=$CXX
6763 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6764do
6765 # Extract the first word of "$ac_prog", so it can be a program name with args.
6766set dummy $ac_prog; ac_word=$2
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006769if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006770 $as_echo_n "(cached) " >&6
6771else
6772 if test -n "$ac_ct_CXX"; then
6773 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006782 ac_cv_prog_ac_ct_CXX="$ac_prog"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786done
6787 done
6788IFS=$as_save_IFS
6789
6790fi
6791fi
6792ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6793if test -n "$ac_ct_CXX"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6795$as_echo "$ac_ct_CXX" >&6; }
6796else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798$as_echo "no" >&6; }
6799fi
6800
6801
6802 test -n "$ac_ct_CXX" && break
6803done
6804
6805 if test "x$ac_ct_CXX" = x; then
6806 CXX="g++"
6807 else
6808 case $cross_compiling:$ac_tool_warned in
6809yes:)
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6812ac_tool_warned=yes ;;
6813esac
6814 CXX=$ac_ct_CXX
6815 fi
6816fi
6817
6818 fi
6819fi
6820# Provide some information about the compiler.
6821$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6822set X $ac_compile
6823ac_compiler=$2
6824for ac_option in --version -v -V -qversion; do
6825 { { ac_try="$ac_compiler $ac_option >&5"
6826case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829esac
6830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6831$as_echo "$ac_try_echo"; } >&5
6832 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6833 ac_status=$?
6834 if test -s conftest.err; then
6835 sed '10a\
6836... rest of stderr output deleted ...
6837 10q' conftest.err >conftest.er1
6838 cat conftest.er1 >&5
6839 fi
6840 rm -f conftest.er1 conftest.err
6841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6842 test $ac_status = 0; }
6843done
6844
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6846$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006847if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006848 $as_echo_n "(cached) " >&6
6849else
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h. */
6852
6853int
6854main ()
6855{
6856#ifndef __GNUC__
6857 choke me
6858#endif
6859
6860 ;
6861 return 0;
6862}
6863_ACEOF
6864if ac_fn_cxx_try_compile "$LINENO"; then :
6865 ac_compiler_gnu=yes
6866else
6867 ac_compiler_gnu=no
6868fi
6869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6871
6872fi
6873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6874$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6875if test $ac_compiler_gnu = yes; then
6876 GXX=yes
6877else
6878 GXX=
6879fi
6880ac_test_CXXFLAGS=${CXXFLAGS+set}
6881ac_save_CXXFLAGS=$CXXFLAGS
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6883$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006884if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006885 $as_echo_n "(cached) " >&6
6886else
6887 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6888 ac_cxx_werror_flag=yes
6889 ac_cv_prog_cxx_g=no
6890 CXXFLAGS="-g"
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892/* end confdefs.h. */
6893
6894int
6895main ()
6896{
6897
6898 ;
6899 return 0;
6900}
6901_ACEOF
6902if ac_fn_cxx_try_compile "$LINENO"; then :
6903 ac_cv_prog_cxx_g=yes
6904else
6905 CXXFLAGS=""
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907/* end confdefs.h. */
6908
6909int
6910main ()
6911{
6912
6913 ;
6914 return 0;
6915}
6916_ACEOF
6917if ac_fn_cxx_try_compile "$LINENO"; then :
6918
6919else
6920 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6921 CXXFLAGS="-g"
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923/* end confdefs.h. */
6924
6925int
6926main ()
6927{
6928
6929 ;
6930 return 0;
6931}
6932_ACEOF
6933if ac_fn_cxx_try_compile "$LINENO"; then :
6934 ac_cv_prog_cxx_g=yes
6935fi
6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937fi
6938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939fi
6940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6942fi
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6944$as_echo "$ac_cv_prog_cxx_g" >&6; }
6945if test "$ac_test_CXXFLAGS" = set; then
6946 CXXFLAGS=$ac_save_CXXFLAGS
6947elif test $ac_cv_prog_cxx_g = yes; then
6948 if test "$GXX" = yes; then
6949 CXXFLAGS="-g -O2"
6950 else
6951 CXXFLAGS="-g"
6952 fi
6953else
6954 if test "$GXX" = yes; then
6955 CXXFLAGS="-O2"
6956 else
6957 CXXFLAGS=
6958 fi
6959fi
6960ac_ext=c
6961ac_cpp='$CPP $CPPFLAGS'
6962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6964ac_compiler_gnu=$ac_cv_c_compiler_gnu
6965
cristy73bd4a52010-10-05 11:24:23 +00006966depcc="$CXX" am_compiler_list=
6967
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6969$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006970if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006971 $as_echo_n "(cached) " >&6
6972else
6973 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6974 # We make a subdir and do the tests there. Otherwise we can end up
6975 # making bogus files that we don't know about and never remove. For
6976 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006977 # making a dummy file named 'D' -- because '-MD' means "put the output
6978 # in D".
cristy7247bba2012-02-05 16:37:27 +00006979 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006980 mkdir conftest.dir
6981 # Copy depcomp to subdir because otherwise we won't find it if we're
6982 # using a relative directory.
6983 cp "$am_depcomp" conftest.dir
6984 cd conftest.dir
6985 # We will build objects and dependencies in a subdirectory because
6986 # it helps to detect inapplicable dependency modes. For instance
6987 # both Tru64's cc and ICC support -MD to output dependencies as a
6988 # side effect of compilation, but ICC will put the dependencies in
6989 # the current directory while Tru64 will put them in the object
6990 # directory.
6991 mkdir sub
6992
6993 am_cv_CXX_dependencies_compiler_type=none
6994 if test "$am_compiler_list" = ""; then
6995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6996 fi
6997 am__universal=false
6998 case " $depcc " in #(
6999 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7000 esac
7001
7002 for depmode in $am_compiler_list; do
7003 # Setup a source with many dependencies, because some compilers
7004 # like to wrap large dependency lists on column 80 (with \), and
7005 # we should not choose a depcomp mode which is confused by this.
7006 #
7007 # We need to recreate these files for each test, as the compiler may
7008 # overwrite some of them when testing with obscure command lines.
7009 # This happens at least with the AIX C compiler.
7010 : > sub/conftest.c
7011 for i in 1 2 3 4 5 6; do
7012 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007013 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7014 # Solaris 10 /bin/sh.
7015 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007016 done
7017 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7018
cristyc0890a62012-07-19 00:18:20 +00007019 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007020 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007021 # handle '-M -o', and we need to detect this. Also, some Intel
7022 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007023 am__obj=sub/conftest.${OBJEXT-o}
7024 am__minus_obj="-o $am__obj"
7025 case $depmode in
7026 gcc)
7027 # This depmode causes a compiler race in universal mode.
7028 test "$am__universal" = false || continue
7029 ;;
7030 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007031 # After this tag, mechanisms are not by side-effect, so they'll
7032 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007033 if test "x$enable_dependency_tracking" = xyes; then
7034 continue
7035 else
7036 break
7037 fi
7038 ;;
cristy7247bba2012-02-05 16:37:27 +00007039 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007040 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007041 # not run yet. These depmodes are late enough in the game, and
7042 # so weak that their functioning should not be impacted.
7043 am__obj=conftest.${OBJEXT-o}
7044 am__minus_obj=
7045 ;;
7046 none) break ;;
7047 esac
7048 if depmode=$depmode \
7049 source=sub/conftest.c object=$am__obj \
7050 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7051 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7052 >/dev/null 2>conftest.err &&
7053 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7054 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7055 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7056 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7057 # icc doesn't choke on unknown options, it will just issue warnings
7058 # or remarks (even with -Werror). So we grep stderr for any message
7059 # that says an option was ignored or not supported.
7060 # When given -MP, icc 7.0 and 7.1 complain thusly:
7061 # icc: Command line warning: ignoring option '-M'; no argument required
7062 # The diagnosis changed in icc 8.0:
7063 # icc: Command line remark: option '-MP' not supported
7064 if (grep 'ignoring option' conftest.err ||
7065 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7066 am_cv_CXX_dependencies_compiler_type=$depmode
7067 break
7068 fi
7069 fi
7070 done
7071
7072 cd ..
7073 rm -rf conftest.dir
7074else
7075 am_cv_CXX_dependencies_compiler_type=none
7076fi
7077
7078fi
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7080$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7081CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7082
7083 if
7084 test "x$enable_dependency_tracking" != xno \
7085 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7086 am__fastdepCXX_TRUE=
7087 am__fastdepCXX_FALSE='#'
7088else
7089 am__fastdepCXX_TRUE='#'
7090 am__fastdepCXX_FALSE=
7091fi
7092
7093
cristy8b350f62009-11-15 23:12:43 +00007094 case $ac_cv_prog_cc_stdc in #(
7095 no) :
7096 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7097 *) :
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007099$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007100if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007101 $as_echo_n "(cached) " >&6
7102else
7103 ac_cv_prog_cc_c99=no
7104ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007106/* end confdefs.h. */
7107#include <stdarg.h>
7108#include <stdbool.h>
7109#include <stdlib.h>
7110#include <wchar.h>
7111#include <stdio.h>
7112
7113// Check varargs macros. These examples are taken from C99 6.10.3.5.
7114#define debug(...) fprintf (stderr, __VA_ARGS__)
7115#define showlist(...) puts (#__VA_ARGS__)
7116#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7117static void
7118test_varargs_macros (void)
7119{
7120 int x = 1234;
7121 int y = 5678;
7122 debug ("Flag");
7123 debug ("X = %d\n", x);
7124 showlist (The first, second, and third items.);
7125 report (x>y, "x is %d but y is %d", x, y);
7126}
7127
7128// Check long long types.
7129#define BIG64 18446744073709551615ull
7130#define BIG32 4294967295ul
7131#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7132#if !BIG_OK
7133 your preprocessor is broken;
7134#endif
7135#if BIG_OK
7136#else
7137 your preprocessor is broken;
7138#endif
7139static long long int bignum = -9223372036854775807LL;
7140static unsigned long long int ubignum = BIG64;
7141
7142struct incomplete_array
7143{
7144 int datasize;
7145 double data[];
7146};
7147
7148struct named_init {
7149 int number;
7150 const wchar_t *name;
7151 double average;
7152};
7153
7154typedef const char *ccp;
7155
7156static inline int
7157test_restrict (ccp restrict text)
7158{
7159 // See if C++-style comments work.
7160 // Iterate through items via the restricted pointer.
7161 // Also check for declarations in for loops.
7162 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7163 continue;
7164 return 0;
7165}
7166
7167// Check varargs and va_copy.
7168static void
7169test_varargs (const char *format, ...)
7170{
7171 va_list args;
7172 va_start (args, format);
7173 va_list args_copy;
7174 va_copy (args_copy, args);
7175
7176 const char *str;
7177 int number;
7178 float fnumber;
7179
7180 while (*format)
7181 {
7182 switch (*format++)
7183 {
7184 case 's': // string
7185 str = va_arg (args_copy, const char *);
7186 break;
7187 case 'd': // int
7188 number = va_arg (args_copy, int);
7189 break;
7190 case 'f': // float
7191 fnumber = va_arg (args_copy, double);
7192 break;
7193 default:
7194 break;
7195 }
7196 }
7197 va_end (args_copy);
7198 va_end (args);
7199}
7200
7201int
7202main ()
7203{
7204
7205 // Check bool.
7206 _Bool success = false;
7207
7208 // Check restrict.
7209 if (test_restrict ("String literal") == 0)
7210 success = true;
7211 char *restrict newvar = "Another string";
7212
7213 // Check varargs.
7214 test_varargs ("s, d' f .", "string", 65, 34.234);
7215 test_varargs_macros ();
7216
7217 // Check flexible array members.
7218 struct incomplete_array *ia =
7219 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7220 ia->datasize = 10;
7221 for (int i = 0; i < ia->datasize; ++i)
7222 ia->data[i] = i * 1.234;
7223
7224 // Check named initializers.
7225 struct named_init ni = {
7226 .number = 34,
7227 .name = L"Test wide string",
7228 .average = 543.34343,
7229 };
7230
7231 ni.number = 58;
7232
7233 int dynamic_array[ni.number];
7234 dynamic_array[ni.number - 1] = 543;
7235
7236 // work around unused variable warnings
7237 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7238 || dynamic_array[ni.number - 1] != 543);
7239
7240 ;
7241 return 0;
7242}
7243_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007244for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007245do
7246 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007247 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007248 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007249fi
cristy3ed852e2009-09-05 21:47:34 +00007250rm -f core conftest.err conftest.$ac_objext
7251 test "x$ac_cv_prog_cc_c99" != "xno" && break
7252done
7253rm -f conftest.$ac_ext
7254CC=$ac_save_CC
7255
7256fi
7257# AC_CACHE_VAL
7258case "x$ac_cv_prog_cc_c99" in
7259 x)
cristy8b350f62009-11-15 23:12:43 +00007260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007261$as_echo "none needed" >&6; } ;;
7262 xno)
cristy8b350f62009-11-15 23:12:43 +00007263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007264$as_echo "unsupported" >&6; } ;;
7265 *)
7266 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007268$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7269esac
cristy8b350f62009-11-15 23:12:43 +00007270if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007271 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7272else
cristy8b350f62009-11-15 23:12:43 +00007273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007274$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007275if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007276 $as_echo_n "(cached) " >&6
7277else
7278 ac_cv_prog_cc_c89=no
7279ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007281/* end confdefs.h. */
7282#include <stdarg.h>
7283#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007284struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007285/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7286struct buf { int x; };
7287FILE * (*rcsopen) (struct buf *, struct stat *, int);
7288static char *e (p, i)
7289 char **p;
7290 int i;
7291{
7292 return p[i];
7293}
7294static char *f (char * (*g) (char **, int), char **p, ...)
7295{
7296 char *s;
7297 va_list v;
7298 va_start (v,p);
7299 s = g (p, va_arg (v,int));
7300 va_end (v);
7301 return s;
7302}
7303
7304/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7305 function prototypes and stuff, but not '\xHH' hex character constants.
7306 These don't provoke an error unfortunately, instead are silently treated
7307 as 'x'. The following induces an error, until -std is added to get
7308 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7309 array size at least. It's necessary to write '\x00'==0 to get something
7310 that's true only with -std. */
7311int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7312
7313/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7314 inside strings and character constants. */
7315#define FOO(x) 'x'
7316int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7317
7318int test (int i, double x);
7319struct s1 {int (*f) (int a);};
7320struct s2 {int (*f) (double a);};
7321int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7322int argc;
7323char **argv;
7324int
7325main ()
7326{
7327return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7328 ;
7329 return 0;
7330}
7331_ACEOF
7332for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7333 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7334do
7335 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007336 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007337 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007338fi
cristy3ed852e2009-09-05 21:47:34 +00007339rm -f core conftest.err conftest.$ac_objext
7340 test "x$ac_cv_prog_cc_c89" != "xno" && break
7341done
7342rm -f conftest.$ac_ext
7343CC=$ac_save_CC
7344
7345fi
7346# AC_CACHE_VAL
7347case "x$ac_cv_prog_cc_c89" in
7348 x)
cristy8b350f62009-11-15 23:12:43 +00007349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007350$as_echo "none needed" >&6; } ;;
7351 xno)
cristy8b350f62009-11-15 23:12:43 +00007352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007353$as_echo "unsupported" >&6; } ;;
7354 *)
7355 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007357$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7358esac
cristy8b350f62009-11-15 23:12:43 +00007359if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007360 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7361else
7362 ac_cv_prog_cc_stdc=no
7363fi
7364
cristy3ed852e2009-09-05 21:47:34 +00007365fi
cristy3ed852e2009-09-05 21:47:34 +00007366 ;;
7367esac
cristy8b350f62009-11-15 23:12:43 +00007368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007369$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007370 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007371 $as_echo_n "(cached) " >&6
7372fi
7373
cristy8b350f62009-11-15 23:12:43 +00007374 case $ac_cv_prog_cc_stdc in #(
7375 no) :
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7377$as_echo "unsupported" >&6; } ;; #(
7378 '') :
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7380$as_echo "none needed" >&6; } ;; #(
7381 *) :
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007383$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7384esac
7385
cristy3ed852e2009-09-05 21:47:34 +00007386ac_ext=c
7387ac_cpp='$CPP $CPPFLAGS'
7388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7390ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007392$as_echo_n "checking how to run the C preprocessor... " >&6; }
7393# On Suns, sometimes $CPP names a directory.
7394if test -n "$CPP" && test -d "$CPP"; then
7395 CPP=
7396fi
7397if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007398 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007399 $as_echo_n "(cached) " >&6
7400else
7401 # Double quotes because CPP needs to be expanded
7402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7403 do
7404 ac_preproc_ok=false
7405for ac_c_preproc_warn_flag in '' yes
7406do
7407 # Use a header file that comes with gcc, so configuring glibc
7408 # with a fresh cross-compiler works.
7409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7410 # <limits.h> exists even on freestanding compilers.
7411 # On the NeXT, cc -E runs the code through the compiler's parser,
7412 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007414/* end confdefs.h. */
7415#ifdef __STDC__
7416# include <limits.h>
7417#else
7418# include <assert.h>
7419#endif
7420 Syntax error
7421_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007422if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007423
cristy8b350f62009-11-15 23:12:43 +00007424else
cristy3ed852e2009-09-05 21:47:34 +00007425 # Broken: fails on valid input.
7426continue
7427fi
cristyda16f162011-02-19 23:52:17 +00007428rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007429
7430 # OK, works on sane cases. Now check whether nonexistent headers
7431 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007433/* end confdefs.h. */
7434#include <ac_nonexistent.h>
7435_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007436if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007437 # Broken: success on invalid input.
7438continue
7439else
cristy3ed852e2009-09-05 21:47:34 +00007440 # Passes both tests.
7441ac_preproc_ok=:
7442break
7443fi
cristyda16f162011-02-19 23:52:17 +00007444rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007445
7446done
7447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007448rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007449if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007450 break
7451fi
7452
7453 done
7454 ac_cv_prog_CPP=$CPP
7455
7456fi
7457 CPP=$ac_cv_prog_CPP
7458else
7459 ac_cv_prog_CPP=$CPP
7460fi
cristy8b350f62009-11-15 23:12:43 +00007461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007462$as_echo "$CPP" >&6; }
7463ac_preproc_ok=false
7464for ac_c_preproc_warn_flag in '' yes
7465do
7466 # Use a header file that comes with gcc, so configuring glibc
7467 # with a fresh cross-compiler works.
7468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7469 # <limits.h> exists even on freestanding compilers.
7470 # On the NeXT, cc -E runs the code through the compiler's parser,
7471 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007473/* end confdefs.h. */
7474#ifdef __STDC__
7475# include <limits.h>
7476#else
7477# include <assert.h>
7478#endif
7479 Syntax error
7480_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007481if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007482
cristy8b350f62009-11-15 23:12:43 +00007483else
cristy3ed852e2009-09-05 21:47:34 +00007484 # Broken: fails on valid input.
7485continue
7486fi
cristyda16f162011-02-19 23:52:17 +00007487rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007488
7489 # OK, works on sane cases. Now check whether nonexistent headers
7490 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007492/* end confdefs.h. */
7493#include <ac_nonexistent.h>
7494_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007495if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007496 # Broken: success on invalid input.
7497continue
7498else
cristy3ed852e2009-09-05 21:47:34 +00007499 # Passes both tests.
7500ac_preproc_ok=:
7501break
7502fi
cristyda16f162011-02-19 23:52:17 +00007503rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007504
7505done
7506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007507rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007508if $ac_preproc_ok; then :
7509
cristy3ed852e2009-09-05 21:47:34 +00007510else
cristy8b350f62009-11-15 23:12:43 +00007511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007513as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7514See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007515fi
7516
7517ac_ext=c
7518ac_cpp='$CPP $CPPFLAGS'
7519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7521ac_compiler_gnu=$ac_cv_c_compiler_gnu
7522
cristy73bd4a52010-10-05 11:24:23 +00007523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7524$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007525if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007526 $as_echo_n "(cached) " >&6
7527else
7528 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7529 for ac_i in 1 2 3 4 5 6 7; do
7530 ac_script="$ac_script$as_nl$ac_script"
7531 done
7532 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7533 { ac_script=; unset ac_script;}
7534 if test -z "$SED"; then
7535 ac_path_SED_found=false
7536 # Loop through the user's path and test for each of PROGNAME-LIST
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
7542 for ac_prog in sed gsed; do
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007545 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007546# Check for GNU ac_path_SED and select it if it is found.
7547 # Check for GNU $ac_path_SED
7548case `"$ac_path_SED" --version 2>&1` in
7549*GNU*)
7550 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7551*)
7552 ac_count=0
7553 $as_echo_n 0123456789 >"conftest.in"
7554 while :
7555 do
7556 cat "conftest.in" "conftest.in" >"conftest.tmp"
7557 mv "conftest.tmp" "conftest.in"
7558 cp "conftest.in" "conftest.nl"
7559 $as_echo '' >> "conftest.nl"
7560 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7562 as_fn_arith $ac_count + 1 && ac_count=$as_val
7563 if test $ac_count -gt ${ac_path_SED_max-0}; then
7564 # Best one so far, save it but keep looking for a better one
7565 ac_cv_path_SED="$ac_path_SED"
7566 ac_path_SED_max=$ac_count
7567 fi
7568 # 10*(2^10) chars as input seems more than enough
7569 test $ac_count -gt 10 && break
7570 done
7571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7572esac
7573
7574 $ac_path_SED_found && break 3
7575 done
7576 done
7577 done
7578IFS=$as_save_IFS
7579 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007580 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007581 fi
7582else
7583 ac_cv_path_SED=$SED
7584fi
7585
7586fi
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7588$as_echo "$ac_cv_path_SED" >&6; }
7589 SED="$ac_cv_path_SED"
7590 rm -f conftest.sed
7591
7592test -z "$SED" && SED=sed
7593Xsed="$SED -e 1s/^X//"
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7606$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007607if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007608 $as_echo_n "(cached) " >&6
7609else
7610 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7611 then ac_cv_path_FGREP="$GREP -F"
7612 else
7613 if test -z "$FGREP"; then
7614 ac_path_FGREP_found=false
7615 # Loop through the user's path and test for each of PROGNAME-LIST
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7618do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_prog in fgrep; do
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007624 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007625# Check for GNU ac_path_FGREP and select it if it is found.
7626 # Check for GNU $ac_path_FGREP
7627case `"$ac_path_FGREP" --version 2>&1` in
7628*GNU*)
7629 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7630*)
7631 ac_count=0
7632 $as_echo_n 0123456789 >"conftest.in"
7633 while :
7634 do
7635 cat "conftest.in" "conftest.in" >"conftest.tmp"
7636 mv "conftest.tmp" "conftest.in"
7637 cp "conftest.in" "conftest.nl"
7638 $as_echo 'FGREP' >> "conftest.nl"
7639 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7641 as_fn_arith $ac_count + 1 && ac_count=$as_val
7642 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7643 # Best one so far, save it but keep looking for a better one
7644 ac_cv_path_FGREP="$ac_path_FGREP"
7645 ac_path_FGREP_max=$ac_count
7646 fi
7647 # 10*(2^10) chars as input seems more than enough
7648 test $ac_count -gt 10 && break
7649 done
7650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7651esac
7652
7653 $ac_path_FGREP_found && break 3
7654 done
7655 done
7656 done
7657IFS=$as_save_IFS
7658 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007659 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007660 fi
7661else
7662 ac_cv_path_FGREP=$FGREP
7663fi
7664
7665 fi
7666fi
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7668$as_echo "$ac_cv_path_FGREP" >&6; }
7669 FGREP="$ac_cv_path_FGREP"
7670
7671
7672test -z "$GREP" && GREP=grep
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
cristy0c60a692010-11-04 01:09:47 +00007690ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7691ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7692ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7693
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7695$as_echo_n "checking how to print strings... " >&6; }
7696# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007697if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007698 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7699 ECHO='print -r --'
7700elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7701 ECHO='printf %s\n'
7702else
7703 # Use this function as a fallback that always works.
7704 func_fallback_echo ()
7705 {
7706 eval 'cat <<_LTECHO_EOF
7707$1
7708_LTECHO_EOF'
7709 }
7710 ECHO='func_fallback_echo'
7711fi
7712
7713# func_echo_all arg...
7714# Invoke $ECHO with all args, space-separated.
7715func_echo_all ()
7716{
7717 $ECHO ""
7718}
7719
7720case "$ECHO" in
7721 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7722$as_echo "printf" >&6; } ;;
7723 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7724$as_echo "print -r" >&6; } ;;
7725 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7726$as_echo "cat" >&6; } ;;
7727esac
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
cristy73bd4a52010-10-05 11:24:23 +00007742
7743
7744# Check whether --with-gnu-ld was given.
7745if test "${with_gnu_ld+set}" = set; then :
7746 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7747else
7748 with_gnu_ld=no
7749fi
7750
7751ac_prog=ld
7752if test "$GCC" = yes; then
7753 # Check if gcc -print-prog-name=ld gives a path.
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7755$as_echo_n "checking for ld used by $CC... " >&6; }
7756 case $host in
7757 *-*-mingw*)
7758 # gcc leaves a trailing carriage return which upsets mingw
7759 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7760 *)
7761 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7762 esac
7763 case $ac_prog in
7764 # Accept absolute paths.
7765 [\\/]* | ?:[\\/]*)
7766 re_direlt='/[^/][^/]*/\.\./'
7767 # Canonicalize the pathname of ld
7768 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7769 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7770 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7771 done
7772 test -z "$LD" && LD="$ac_prog"
7773 ;;
7774 "")
7775 # If it fails, then pretend we aren't using GCC.
7776 ac_prog=ld
7777 ;;
7778 *)
7779 # If it is relative, then search for the first ld in PATH.
7780 with_gnu_ld=unknown
7781 ;;
7782 esac
7783elif test "$with_gnu_ld" = yes; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7785$as_echo_n "checking for GNU ld... " >&6; }
7786else
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7788$as_echo_n "checking for non-GNU ld... " >&6; }
7789fi
cristyda16f162011-02-19 23:52:17 +00007790if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007791 $as_echo_n "(cached) " >&6
7792else
7793 if test -z "$LD"; then
7794 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7795 for ac_dir in $PATH; do
7796 IFS="$lt_save_ifs"
7797 test -z "$ac_dir" && ac_dir=.
7798 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7799 lt_cv_path_LD="$ac_dir/$ac_prog"
7800 # Check to see if the program is GNU ld. I'd rather use --version,
7801 # but apparently some variants of GNU ld only accept -v.
7802 # Break only if it was the GNU/non-GNU ld that we prefer.
7803 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7804 *GNU* | *'with BFD'*)
7805 test "$with_gnu_ld" != no && break
7806 ;;
7807 *)
7808 test "$with_gnu_ld" != yes && break
7809 ;;
7810 esac
7811 fi
7812 done
7813 IFS="$lt_save_ifs"
7814else
7815 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7816fi
7817fi
7818
7819LD="$lt_cv_path_LD"
7820if test -n "$LD"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7822$as_echo "$LD" >&6; }
7823else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825$as_echo "no" >&6; }
7826fi
cristy98dddb52010-11-04 00:30:15 +00007827test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7829$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007830if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007831 $as_echo_n "(cached) " >&6
7832else
7833 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7834case `$LD -v 2>&1 </dev/null` in
7835*GNU* | *'with BFD'*)
7836 lt_cv_prog_gnu_ld=yes
7837 ;;
7838*)
7839 lt_cv_prog_gnu_ld=no
7840 ;;
7841esac
7842fi
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7844$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7845with_gnu_ld=$lt_cv_prog_gnu_ld
7846
7847
7848
7849
7850
7851
7852
7853
7854
cristy3ed852e2009-09-05 21:47:34 +00007855
cristy837d6dc2010-02-27 01:16:57 +00007856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7857$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007858if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007859 $as_echo_n "(cached) " >&6
7860else
7861 ac_cv_prog_cc_c99=no
7862ac_save_CC=$CC
7863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864/* end confdefs.h. */
7865#include <stdarg.h>
7866#include <stdbool.h>
7867#include <stdlib.h>
7868#include <wchar.h>
7869#include <stdio.h>
7870
7871// Check varargs macros. These examples are taken from C99 6.10.3.5.
7872#define debug(...) fprintf (stderr, __VA_ARGS__)
7873#define showlist(...) puts (#__VA_ARGS__)
7874#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7875static void
7876test_varargs_macros (void)
7877{
7878 int x = 1234;
7879 int y = 5678;
7880 debug ("Flag");
7881 debug ("X = %d\n", x);
7882 showlist (The first, second, and third items.);
7883 report (x>y, "x is %d but y is %d", x, y);
7884}
7885
7886// Check long long types.
7887#define BIG64 18446744073709551615ull
7888#define BIG32 4294967295ul
7889#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7890#if !BIG_OK
7891 your preprocessor is broken;
7892#endif
7893#if BIG_OK
7894#else
7895 your preprocessor is broken;
7896#endif
7897static long long int bignum = -9223372036854775807LL;
7898static unsigned long long int ubignum = BIG64;
7899
7900struct incomplete_array
7901{
7902 int datasize;
7903 double data[];
7904};
7905
7906struct named_init {
7907 int number;
7908 const wchar_t *name;
7909 double average;
7910};
7911
7912typedef const char *ccp;
7913
7914static inline int
7915test_restrict (ccp restrict text)
7916{
7917 // See if C++-style comments work.
7918 // Iterate through items via the restricted pointer.
7919 // Also check for declarations in for loops.
7920 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7921 continue;
7922 return 0;
7923}
7924
7925// Check varargs and va_copy.
7926static void
7927test_varargs (const char *format, ...)
7928{
7929 va_list args;
7930 va_start (args, format);
7931 va_list args_copy;
7932 va_copy (args_copy, args);
7933
7934 const char *str;
7935 int number;
7936 float fnumber;
7937
7938 while (*format)
7939 {
7940 switch (*format++)
7941 {
7942 case 's': // string
7943 str = va_arg (args_copy, const char *);
7944 break;
7945 case 'd': // int
7946 number = va_arg (args_copy, int);
7947 break;
7948 case 'f': // float
7949 fnumber = va_arg (args_copy, double);
7950 break;
7951 default:
7952 break;
7953 }
7954 }
7955 va_end (args_copy);
7956 va_end (args);
7957}
7958
7959int
7960main ()
7961{
7962
7963 // Check bool.
7964 _Bool success = false;
7965
7966 // Check restrict.
7967 if (test_restrict ("String literal") == 0)
7968 success = true;
7969 char *restrict newvar = "Another string";
7970
7971 // Check varargs.
7972 test_varargs ("s, d' f .", "string", 65, 34.234);
7973 test_varargs_macros ();
7974
7975 // Check flexible array members.
7976 struct incomplete_array *ia =
7977 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7978 ia->datasize = 10;
7979 for (int i = 0; i < ia->datasize; ++i)
7980 ia->data[i] = i * 1.234;
7981
7982 // Check named initializers.
7983 struct named_init ni = {
7984 .number = 34,
7985 .name = L"Test wide string",
7986 .average = 543.34343,
7987 };
7988
7989 ni.number = 58;
7990
7991 int dynamic_array[ni.number];
7992 dynamic_array[ni.number - 1] = 543;
7993
7994 // work around unused variable warnings
7995 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7996 || dynamic_array[ni.number - 1] != 543);
7997
7998 ;
7999 return 0;
8000}
8001_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008002for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008003do
8004 CC="$ac_save_CC $ac_arg"
8005 if ac_fn_c_try_compile "$LINENO"; then :
8006 ac_cv_prog_cc_c99=$ac_arg
8007fi
8008rm -f core conftest.err conftest.$ac_objext
8009 test "x$ac_cv_prog_cc_c99" != "xno" && break
8010done
8011rm -f conftest.$ac_ext
8012CC=$ac_save_CC
8013
8014fi
8015# AC_CACHE_VAL
8016case "x$ac_cv_prog_cc_c99" in
8017 x)
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8019$as_echo "none needed" >&6; } ;;
8020 xno)
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8022$as_echo "unsupported" >&6; } ;;
8023 *)
8024 CC="$CC $ac_cv_prog_cc_c99"
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8026$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8027esac
8028if test "x$ac_cv_prog_cc_c99" != xno; then :
8029
8030fi
8031
8032
cristy73bd4a52010-10-05 11:24:23 +00008033
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8035$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008036if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008037 $as_echo_n "(cached) " >&6
8038else
8039 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00008040 ac_ext=c
8041ac_cpp='$CPP $CPPFLAGS'
8042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8044ac_compiler_gnu=$ac_cv_c_compiler_gnu
8045
8046 ac_save_CFLAGS="$CFLAGS"
8047for 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" #
8048do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050/* end confdefs.h. */
8051
8052int
8053main ()
8054{
cristy24fc1fe2010-10-23 21:13:01 +00008055
cristy73bd4a52010-10-05 11:24:23 +00008056 ;
8057 return 0;
8058}
8059_ACEOF
8060if ac_fn_c_try_compile "$LINENO"; then :
8061 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8062fi
8063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064done
8065 CFLAGS="$ac_save_CFLAGS"
8066 ac_ext=c
8067ac_cpp='$CPP $CPPFLAGS'
8068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070ac_compiler_gnu=$ac_cv_c_compiler_gnu
8071
8072
8073fi
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8075$as_echo "$ac_cv_cflags_warn_all" >&6; }
8076case ".$ac_cv_cflags_warn_all" in
8077 .ok|.ok,*) ;;
8078 .|.no|.no,*)
8079 ;;
8080 *)
8081 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8082 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8083 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8084 ac_status=$?
8085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8086 test $ac_status = 0; }
8087 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8088 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8089 ac_status=$?
8090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8091 test $ac_status = 0; }
8092 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8093 fi
8094 ;;
nicolas6237c462010-10-05 06:11:49 +00008095esac
cristy3ed852e2009-09-05 21:47:34 +00008096
cristya0b81c32010-01-22 02:54:33 +00008097
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8099$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8100set x ${MAKE-make}
8101ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008102if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008103 $as_echo_n "(cached) " >&6
8104else
8105 cat >conftest.make <<\_ACEOF
8106SHELL = /bin/sh
8107all:
8108 @echo '@@@%%%=$(MAKE)=@@@%%%'
8109_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008110# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008111case `${MAKE-make} -f conftest.make 2>/dev/null` in
8112 *@@@%%%=?*=@@@%%%*)
8113 eval ac_cv_prog_make_${ac_make}_set=yes;;
8114 *)
8115 eval ac_cv_prog_make_${ac_make}_set=no;;
8116esac
8117rm -f conftest.make
8118fi
8119if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8121$as_echo "yes" >&6; }
8122 SET_MAKE=
8123else
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125$as_echo "no" >&6; }
8126 SET_MAKE="MAKE=${MAKE-make}"
8127fi
8128
cristy8b350f62009-11-15 23:12:43 +00008129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008130$as_echo_n "checking whether ln -s works... " >&6; }
8131LN_S=$as_ln_s
8132if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008134$as_echo "yes" >&6; }
8135else
cristy8b350f62009-11-15 23:12:43 +00008136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008137$as_echo "no, using $LN_S" >&6; }
8138fi
8139
cristy8d0ff762013-03-10 20:33:28 +00008140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8141$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8142if ${ac_cv_path_SED+:} false; then :
8143 $as_echo_n "(cached) " >&6
8144else
8145 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8146 for ac_i in 1 2 3 4 5 6 7; do
8147 ac_script="$ac_script$as_nl$ac_script"
8148 done
8149 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8150 { ac_script=; unset ac_script;}
8151 if test -z "$SED"; then
8152 ac_path_SED_found=false
8153 # Loop through the user's path and test for each of PROGNAME-LIST
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155for as_dir in $PATH
8156do
8157 IFS=$as_save_IFS
8158 test -z "$as_dir" && as_dir=.
8159 for ac_prog in sed gsed; do
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8162 as_fn_executable_p "$ac_path_SED" || continue
8163# Check for GNU ac_path_SED and select it if it is found.
8164 # Check for GNU $ac_path_SED
8165case `"$ac_path_SED" --version 2>&1` in
8166*GNU*)
8167 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8168*)
8169 ac_count=0
8170 $as_echo_n 0123456789 >"conftest.in"
8171 while :
8172 do
8173 cat "conftest.in" "conftest.in" >"conftest.tmp"
8174 mv "conftest.tmp" "conftest.in"
8175 cp "conftest.in" "conftest.nl"
8176 $as_echo '' >> "conftest.nl"
8177 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8179 as_fn_arith $ac_count + 1 && ac_count=$as_val
8180 if test $ac_count -gt ${ac_path_SED_max-0}; then
8181 # Best one so far, save it but keep looking for a better one
8182 ac_cv_path_SED="$ac_path_SED"
8183 ac_path_SED_max=$ac_count
8184 fi
8185 # 10*(2^10) chars as input seems more than enough
8186 test $ac_count -gt 10 && break
8187 done
8188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8189esac
8190
8191 $ac_path_SED_found && break 3
8192 done
8193 done
8194 done
8195IFS=$as_save_IFS
8196 if test -z "$ac_cv_path_SED"; then
8197 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8198 fi
8199else
8200 ac_cv_path_SED=$SED
8201fi
8202
8203fi
8204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8205$as_echo "$ac_cv_path_SED" >&6; }
8206 SED="$ac_cv_path_SED"
8207 rm -f conftest.sed
8208
cristybc556452012-08-17 19:44:03 +00008209for ac_prog in gawk mawk nawk awk
8210do
8211 # Extract the first word of "$ac_prog", so it can be a program name with args.
8212set dummy $ac_prog; ac_word=$2
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214$as_echo_n "checking for $ac_word... " >&6; }
8215if ${ac_cv_prog_AWK+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217else
8218 if test -n "$AWK"; then
8219 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8220else
8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222for as_dir in $PATH
8223do
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8228 ac_cv_prog_AWK="$ac_prog"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 break 2
8231 fi
8232done
8233 done
8234IFS=$as_save_IFS
8235
8236fi
8237fi
8238AWK=$ac_cv_prog_AWK
8239if test -n "$AWK"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8241$as_echo "$AWK" >&6; }
8242else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244$as_echo "no" >&6; }
8245fi
8246
8247
8248 test -n "$AWK" && break
8249done
8250
cristy73bd4a52010-10-05 11:24:23 +00008251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8252$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8253
8254# Check whether --with-dmalloc was given.
8255if test "${with_dmalloc+set}" = set; then :
8256 withval=$with_dmalloc; if test "$withval" = yes; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8258$as_echo "yes" >&6; }
8259
8260$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8261
8262 LIBS="$LIBS -ldmalloc"
8263 LDFLAGS="$LDFLAGS -g"
8264else
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266$as_echo "no" >&6; }
8267fi
8268else
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270$as_echo "no" >&6; }
8271fi
8272
8273
8274
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8276$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008277if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008278 $as_echo_n "(cached) " >&6
8279else
8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281/* end confdefs.h. */
8282#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008283 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008284 static void
8285 foo(void) {
8286 exit(1);
8287 }
8288
8289int
8290main ()
8291{
8292
8293 ;
8294 return 0;
8295}
8296_ACEOF
8297if ac_fn_c_try_compile "$LINENO"; then :
8298 ax_cv___attribute__=yes
8299else
8300 ax_cv___attribute__=no
8301
8302fi
8303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304
8305fi
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8307$as_echo "$ax_cv___attribute__" >&6; }
8308 if test "$ax_cv___attribute__" = "yes"; then
8309
8310$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8311
8312 fi
8313
8314
8315
cristya0459972013-11-03 18:09:35 +00008316
8317
8318# Check whether --with-gcc-arch was given.
8319if test "${with_gcc_arch+set}" = set; then :
8320 withval=$with_gcc_arch; ax_gcc_arch=$withval
8321else
8322 ax_gcc_arch=no
8323fi
8324
8325
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8327$as_echo_n "checking for gcc architecture flag... " >&6; }
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8329$as_echo "" >&6; }
8330if ${ax_cv_gcc_archflag+:} false; then :
8331 $as_echo_n "(cached) " >&6
8332else
8333
8334ax_cv_gcc_archflag="unknown"
8335
8336if test "$GCC" = yes; then
8337
8338if test "x$ax_gcc_arch" = xyes; then
8339ax_gcc_arch=""
8340if test "$cross_compiling" = no; then
8341case $host_cpu in
8342 i[3456]86*|x86_64*) # use cpuid codes
8343
8344ac_ext=c
8345ac_cpp='$CPP $CPPFLAGS'
8346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8348ac_compiler_gnu=$ac_cv_c_compiler_gnu
8349
8350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8351$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8352if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354else
8355 if test "$cross_compiling" = yes; then :
8356 ax_cv_gcc_x86_cpuid_0=unknown
8357else
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359/* end confdefs.h. */
8360#include <stdio.h>
8361int
8362main ()
8363{
8364
8365 int op = 0, eax, ebx, ecx, edx;
8366 FILE *f;
8367 __asm__("cpuid"
8368 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8369 : "a" (op));
8370 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8371 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8372 fclose(f);
8373 return 0;
8374
8375 ;
8376 return 0;
8377}
8378_ACEOF
8379if ac_fn_c_try_run "$LINENO"; then :
8380 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8381else
8382 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8383fi
8384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8385 conftest.$ac_objext conftest.beam conftest.$ac_ext
8386fi
8387
8388fi
8389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8390$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8391ac_ext=c
8392ac_cpp='$CPP $CPPFLAGS'
8393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8395ac_compiler_gnu=$ac_cv_c_compiler_gnu
8396
8397
8398
8399ac_ext=c
8400ac_cpp='$CPP $CPPFLAGS'
8401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8403ac_compiler_gnu=$ac_cv_c_compiler_gnu
8404
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8406$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8407if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8408 $as_echo_n "(cached) " >&6
8409else
8410 if test "$cross_compiling" = yes; then :
8411 ax_cv_gcc_x86_cpuid_1=unknown
8412else
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414/* end confdefs.h. */
8415#include <stdio.h>
8416int
8417main ()
8418{
8419
8420 int op = 1, eax, ebx, ecx, edx;
8421 FILE *f;
8422 __asm__("cpuid"
8423 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8424 : "a" (op));
8425 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8426 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8427 fclose(f);
8428 return 0;
8429
8430 ;
8431 return 0;
8432}
8433_ACEOF
8434if ac_fn_c_try_run "$LINENO"; then :
8435 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8436else
8437 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8438fi
8439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8440 conftest.$ac_objext conftest.beam conftest.$ac_ext
8441fi
8442
8443fi
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8445$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8446ac_ext=c
8447ac_cpp='$CPP $CPPFLAGS'
8448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8450ac_compiler_gnu=$ac_cv_c_compiler_gnu
8451
8452
8453 case $ax_cv_gcc_x86_cpuid_0 in
8454 *:756e6547:*:*) # Intel
8455 case $ax_cv_gcc_x86_cpuid_1 in
8456 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8457 *5??:*:*:*) ax_gcc_arch=pentium ;;
8458 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8459 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8460 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8461 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8462 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8463 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8464 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8465 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8466 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8467 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8468 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8469 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8470 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8471 case $host_cpu in
8472 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8473 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8474 esac ;;
8475 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8476 esac ;;
8477 *:68747541:*:*) # AMD
8478 case $ax_cv_gcc_x86_cpuid_1 in
8479 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8480 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8481 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8482 *60?:*:*:*) ax_gcc_arch=k7 ;;
8483 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8484 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8485 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8486 *6[68a]?:*:*:*)
8487
8488ac_ext=c
8489ac_cpp='$CPP $CPPFLAGS'
8490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8492ac_compiler_gnu=$ac_cv_c_compiler_gnu
8493
8494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8495$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8496if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8497 $as_echo_n "(cached) " >&6
8498else
8499 if test "$cross_compiling" = yes; then :
8500 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8501else
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503/* end confdefs.h. */
8504#include <stdio.h>
8505int
8506main ()
8507{
8508
8509 int op = 0x80000006, eax, ebx, ecx, edx;
8510 FILE *f;
8511 __asm__("cpuid"
8512 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8513 : "a" (op));
8514 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8515 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8516 fclose(f);
8517 return 0;
8518
8519 ;
8520 return 0;
8521}
8522_ACEOF
8523if ac_fn_c_try_run "$LINENO"; then :
8524 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8525else
8526 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8527fi
8528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8529 conftest.$ac_objext conftest.beam conftest.$ac_ext
8530fi
8531
8532fi
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8534$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8535ac_ext=c
8536ac_cpp='$CPP $CPPFLAGS'
8537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8539ac_compiler_gnu=$ac_cv_c_compiler_gnu
8540
8541 # L2 cache size
8542 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8543 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8544 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8545 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8546 esac ;;
8547 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8548 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8549 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8550 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8551 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8552 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8553 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8554 esac ;;
8555 *:746e6543:*:*) # IDT
8556 case $ax_cv_gcc_x86_cpuid_1 in
8557 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8558 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8559 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8560 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8561 esac ;;
8562 esac
8563 if test x"$ax_gcc_arch" = x; then # fallback
8564 case $host_cpu in
8565 i586*) ax_gcc_arch=pentium ;;
8566 i686*) ax_gcc_arch=pentiumpro ;;
8567 esac
8568 fi
8569 ;;
8570
8571 sparc*)
8572 # Extract the first word of "prtdiag", so it can be a program name with args.
8573set dummy prtdiag; ac_word=$2
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8575$as_echo_n "checking for $ac_word... " >&6; }
8576if ${ac_cv_path_PRTDIAG+:} false; then :
8577 $as_echo_n "(cached) " >&6
8578else
8579 case $PRTDIAG in
8580 [\\/]* | ?:[\\/]*)
8581 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8582 ;;
8583 *)
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8586for as_dir in $as_dummy
8587do
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8595 fi
8596done
8597 done
8598IFS=$as_save_IFS
8599
8600 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8601 ;;
8602esac
8603fi
8604PRTDIAG=$ac_cv_path_PRTDIAG
8605if test -n "$PRTDIAG"; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8607$as_echo "$PRTDIAG" >&6; }
8608else
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610$as_echo "no" >&6; }
8611fi
8612
8613
8614 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`
8615 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8616 case $cputype in
8617 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8618 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8619 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8620 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8621 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8622 *cypress*) ax_gcc_arch=cypress ;;
8623 esac ;;
8624
8625 alphaev5) ax_gcc_arch=ev5 ;;
8626 alphaev56) ax_gcc_arch=ev56 ;;
8627 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8628 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8629 alphaev6) ax_gcc_arch=ev6 ;;
8630 alphaev67) ax_gcc_arch=ev67 ;;
8631 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8632 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8633 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8634 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8635
8636 powerpc*)
8637 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`
8638 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8639 case $cputype in
8640 *750*) ax_gcc_arch="750 G3" ;;
8641 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8642 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8643 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8644 *970*) ax_gcc_arch="970 G5 power4";;
8645 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8646 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8647 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8648 *) ax_gcc_arch=$cputype ;;
8649 esac
8650 ax_gcc_arch="$ax_gcc_arch powerpc"
8651 ;;
8652esac
8653fi # not cross-compiling
8654fi # guess arch
8655
8656if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8657for arch in $ax_gcc_arch; do
8658 if test "xno" = xyes; then # if we require portable code
8659 flags="-mtune=$arch"
8660 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8661 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8662 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8663 else
8664 flags="-march=$arch -mcpu=$arch -m$arch"
8665 fi
8666 for flag in $flags; do
8667 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8669$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8670if eval \${$as_CACHEVAR+:} false; then :
8671 $as_echo_n "(cached) " >&6
8672else
8673
8674 ax_check_save_flags=$CFLAGS
8675 CFLAGS="$CFLAGS $flag"
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677/* end confdefs.h. */
8678
8679int
8680main ()
8681{
8682
8683 ;
8684 return 0;
8685}
8686_ACEOF
8687if ac_fn_c_try_compile "$LINENO"; then :
8688 eval "$as_CACHEVAR=yes"
8689else
8690 eval "$as_CACHEVAR=no"
8691fi
8692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693 CFLAGS=$ax_check_save_flags
8694fi
8695eval ac_res=\$$as_CACHEVAR
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8697$as_echo "$ac_res" >&6; }
8698if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8699 ax_cv_gcc_archflag=$flag; break
8700else
8701 :
8702fi
8703
8704 done
8705 test "x$ax_cv_gcc_archflag" = xunknown || break
8706done
8707fi
8708
8709fi # $GCC=yes
8710
8711fi
8712
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8714$as_echo_n "checking for gcc architecture flag... " >&6; }
8715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8716$as_echo "$ax_cv_gcc_archflag" >&6; }
8717if test "x$ax_cv_gcc_archflag" = xunknown; then
8718 :
8719else
8720 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8721fi
8722
8723
8724
cristy73bd4a52010-10-05 11:24:23 +00008725if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8726 if test -n "$ac_tool_prefix"; then
8727 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8728set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008731if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008732 $as_echo_n "(cached) " >&6
8733else
8734 case $PKG_CONFIG in
8735 [\\/]* | ?:[\\/]*)
8736 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8737 ;;
8738 *)
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740for as_dir in $PATH
8741do
8742 IFS=$as_save_IFS
8743 test -z "$as_dir" && as_dir=.
8744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008746 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8748 break 2
8749 fi
8750done
8751 done
8752IFS=$as_save_IFS
8753
8754 ;;
8755esac
8756fi
8757PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8758if test -n "$PKG_CONFIG"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8760$as_echo "$PKG_CONFIG" >&6; }
8761else
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763$as_echo "no" >&6; }
8764fi
8765
8766
8767fi
8768if test -z "$ac_cv_path_PKG_CONFIG"; then
8769 ac_pt_PKG_CONFIG=$PKG_CONFIG
8770 # Extract the first word of "pkg-config", so it can be a program name with args.
8771set dummy pkg-config; ac_word=$2
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008774if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008775 $as_echo_n "(cached) " >&6
8776else
8777 case $ac_pt_PKG_CONFIG in
8778 [\\/]* | ?:[\\/]*)
8779 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8780 ;;
8781 *)
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783for as_dir in $PATH
8784do
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008789 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791 break 2
8792 fi
8793done
8794 done
8795IFS=$as_save_IFS
8796
8797 ;;
8798esac
8799fi
8800ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8801if test -n "$ac_pt_PKG_CONFIG"; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8803$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8804else
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806$as_echo "no" >&6; }
8807fi
8808
8809 if test "x$ac_pt_PKG_CONFIG" = x; then
8810 PKG_CONFIG=""
8811 else
8812 case $cross_compiling:$ac_tool_warned in
8813yes:)
8814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8816ac_tool_warned=yes ;;
8817esac
8818 PKG_CONFIG=$ac_pt_PKG_CONFIG
8819 fi
8820else
8821 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8822fi
8823
8824fi
8825if test -n "$PKG_CONFIG"; then
8826 _pkg_min_version=0.9.0
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8828$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8829 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8831$as_echo "yes" >&6; }
8832 else
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834$as_echo "no" >&6; }
8835 PKG_CONFIG=""
8836 fi
8837
8838fi
cristy3ed852e2009-09-05 21:47:34 +00008839
cristyd95b7a52013-10-23 13:12:53 +00008840# Test for 64-bit build.
8841# The cast to long int works around a bug in the HP C Compiler
8842# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8843# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8844# This bug is HP SR number 8606223364.
8845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8846$as_echo_n "checking size of size_t... " >&6; }
8847if ${ac_cv_sizeof_size_t+:} false; then :
8848 $as_echo_n "(cached) " >&6
8849else
8850 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8851
8852else
8853 if test "$ac_cv_type_size_t" = yes; then
8854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8856as_fn_error 77 "cannot compute sizeof (size_t)
8857See \`config.log' for more details" "$LINENO" 5; }
8858 else
8859 ac_cv_sizeof_size_t=0
8860 fi
8861fi
8862
8863fi
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8865$as_echo "$ac_cv_sizeof_size_t" >&6; }
8866
8867
8868
8869cat >>confdefs.h <<_ACEOF
8870#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8871_ACEOF
8872
8873
8874
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8876$as_echo_n "checking for C compiler vendor... " >&6; }
8877if ${ax_cv_c_compiler_vendor+:} false; then :
8878 $as_echo_n "(cached) " >&6
8879else
8880 # note: don't check for gcc first since some other compilers define __GNUC__
8881 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8882 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8883 pathscale: __PATHCC__,__PATHSCALE__
8884 clang: __clang__
8885 gnu: __GNUC__
8886 sun: __SUNPRO_C,__SUNPRO_CC
8887 hp: __HP_cc,__HP_aCC
8888 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8889 borland: __BORLANDC__,__TURBOC__
8890 comeau: __COMO__
8891 cray: _CRAYC
8892 kai: __KCC
8893 lcc: __LCC__
8894 sgi: __sgi,sgi
8895 microsoft: _MSC_VER
8896 metrowerks: __MWERKS__
8897 watcom: __WATCOMC__
8898 portland: __PGI
8899 unknown: UNKNOWN"
8900 for ventest in $vendors; do
8901 case $ventest in
8902 *:) vendor=$ventest; continue ;;
8903 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8904 esac
8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906/* end confdefs.h. */
8907
8908int
8909main ()
8910{
8911
8912 #if !($vencpp)
8913 thisisanerror;
8914 #endif
8915
8916 ;
8917 return 0;
8918}
8919_ACEOF
8920if ac_fn_c_try_compile "$LINENO"; then :
8921 break
8922fi
8923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924 done
8925 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8926
8927fi
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8929$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8930
cristyd95b7a52013-10-23 13:12:53 +00008931# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8932# compiler.
8933if test "$ax_cv_c_compiler_vendor" != "sun"; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8935$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8936if ${ac_cv_cflags_warn_all+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938else
8939 ac_cv_cflags_warn_all="no, unknown"
8940 ac_ext=c
8941ac_cpp='$CPP $CPPFLAGS'
8942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8944ac_compiler_gnu=$ac_cv_c_compiler_gnu
8945
8946 ac_save_CFLAGS="$CFLAGS"
8947for 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" #
8948do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950/* end confdefs.h. */
8951
8952int
8953main ()
8954{
8955
8956 ;
8957 return 0;
8958}
8959_ACEOF
8960if ac_fn_c_try_compile "$LINENO"; then :
8961 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8962fi
8963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8964done
8965 CFLAGS="$ac_save_CFLAGS"
8966 ac_ext=c
8967ac_cpp='$CPP $CPPFLAGS'
8968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8970ac_compiler_gnu=$ac_cv_c_compiler_gnu
8971
8972
8973fi
8974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8975$as_echo "$ac_cv_cflags_warn_all" >&6; }
8976case ".$ac_cv_cflags_warn_all" in
8977 .ok|.ok,*) ;;
8978 .|.no|.no,*)
8979 ;;
8980 *)
8981 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8982 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8983 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8984 ac_status=$?
8985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8986 test $ac_status = 0; }
8987 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8988 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8989 ac_status=$?
8990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8991 test $ac_status = 0; }
8992 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8993 fi
8994 ;;
8995esac
8996
8997fi
8998
8999if test "x$GCC" = "xyes"; then
9000 CFLAGS="$CFLAGS -fexceptions"
9001 touch local.exp
9002else
9003 cat > local.exp <<EOF
9004set CC_FOR_TARGET "$CC"
9005EOF
9006fi
9007
cristy9b86f202012-11-28 21:55:35 +00009008# Check for linker script support
9009
9010 # Check whether --enable-ld-version-script was given.
9011if test "${enable_ld_version_script+set}" = set; then :
9012 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9013fi
9014
9015 if test -z "$have_ld_version_script"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9017$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9018 save_LDFLAGS="$LDFLAGS"
9019 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9020 cat > conftest.map <<EOF
9021foo
9022EOF
9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024/* end confdefs.h. */
9025
9026int
9027main ()
9028{
9029
9030 ;
9031 return 0;
9032}
9033_ACEOF
9034if ac_fn_c_try_link "$LINENO"; then :
9035 accepts_syntax_errors=yes
9036else
9037 accepts_syntax_errors=no
9038fi
9039rm -f core conftest.err conftest.$ac_objext \
9040 conftest$ac_exeext conftest.$ac_ext
9041 if test "$accepts_syntax_errors" = no; then
9042 cat > conftest.map <<EOF
9043VERS_1 {
9044 global: sym;
9045};
9046
9047VERS_2 {
9048 global: sym;
9049} VERS_1;
9050EOF
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052/* end confdefs.h. */
9053
9054int
9055main ()
9056{
9057
9058 ;
9059 return 0;
9060}
9061_ACEOF
9062if ac_fn_c_try_link "$LINENO"; then :
9063 have_ld_version_script=yes
9064else
9065 have_ld_version_script=no
9066fi
9067rm -f core conftest.err conftest.$ac_objext \
9068 conftest$ac_exeext conftest.$ac_ext
9069 else
9070 have_ld_version_script=no
9071 fi
9072 rm -f conftest.map
9073 LDFLAGS="$save_LDFLAGS"
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9075$as_echo "$have_ld_version_script" >&6; }
9076 fi
9077 if test "$have_ld_version_script" = "yes"; then
9078 HAVE_LD_VERSION_SCRIPT_TRUE=
9079 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9080else
9081 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9082 HAVE_LD_VERSION_SCRIPT_FALSE=
9083fi
9084
9085
9086
cristy3ed852e2009-09-05 21:47:34 +00009087#
cristy3ed852e2009-09-05 21:47:34 +00009088# Enable run-time checking.
9089#
9090# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009091if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009092 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9093else
9094 enable_bounds_checking='no'
9095fi
9096
9097
9098if test "$enable_bounds_checking" = yes; then
9099
cristy8b350f62009-11-15 23:12:43 +00009100$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009101
9102fi
9103
9104#
9105# Tests for Windows
9106#
9107
9108
9109
9110GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009111native_win32_build='no'
9112cygwin_build='no'
9113case "${host_os}" in
9114 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009115 cygwin_build='yes'
9116 GDI32_LIBS='-lgdi32'
9117 ;;
9118 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009119 native_win32_build='yes'
9120 GDI32_LIBS='-lgdi32'
9121 ;;
9122esac
9123if test "${GDI32_LIBS}x" != 'x'; then
9124
cristy8b350f62009-11-15 23:12:43 +00009125$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009126
9127fi
9128
cristy73bd4a52010-10-05 11:24:23 +00009129 if test "${GDI32_LIBS}x" != 'x' ; then
9130 WINGDI32_DELEGATE_TRUE=
9131 WINGDI32_DELEGATE_FALSE='#'
9132else
9133 WINGDI32_DELEGATE_TRUE='#'
9134 WINGDI32_DELEGATE_FALSE=
9135fi
9136
9137 if test "${native_win32_build}" = 'yes' ; then
9138 WIN32_NATIVE_BUILD_TRUE=
9139 WIN32_NATIVE_BUILD_FALSE='#'
9140else
9141 WIN32_NATIVE_BUILD_TRUE='#'
9142 WIN32_NATIVE_BUILD_FALSE=
9143fi
9144
9145 if test "${cygwin_build}" = 'yes' ; then
9146 CYGWIN_BUILD_TRUE=
9147 CYGWIN_BUILD_FALSE='#'
9148else
9149 CYGWIN_BUILD_TRUE='#'
9150 CYGWIN_BUILD_FALSE=
9151fi
9152
9153 if test "x${CC}" = 'xcl.exe' ; then
9154 USING_CL_TRUE=
9155 USING_CL_FALSE='#'
9156else
9157 USING_CL_TRUE='#'
9158 USING_CL_FALSE=
9159fi
9160
cristy3ed852e2009-09-05 21:47:34 +00009161
9162WinPathScript="${srcdirfull}/winpath.sh"
9163
9164
9165#
9166# Compiler flags tweaks
9167#
9168if test "${GCC}" != "yes"; then
9169 case "${host}" in
9170 *-*-hpux* )
9171 # aCC: HP ANSI C++ B3910B A.03.34
9172 CFLAGS="${CFLAGS} -Wp,-H30000"
9173 if test -n "${CXXFLAGS}"; then
9174 CXXFLAGS='-AA'
9175 else
9176 CXXFLAGS="${CXXFLAGS} -AA"
9177 fi
9178 ;;
9179 *-dec-osf5.* )
9180 # Compaq alphaev68-dec-osf5.1 compiler
9181 if test -n "${CXXFLAGS}"; then
9182 CXXFLAGS='-std strict_ansi -noimplicit_include'
9183 else
9184 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9185 fi
9186 esac
9187fi
9188
9189# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009191$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009192if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009193 $as_echo_n "(cached) " >&6
9194else
9195
9196im_cv_ld_lazyload='none'
9197case "${host}" in
9198 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9199 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9200 im_cv_ld_lazyload='-Wl,-zlazyload'
9201 fi
9202 ;;
9203esac
9204
9205fi
cristy8b350f62009-11-15 23:12:43 +00009206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009207$as_echo "$im_cv_ld_lazyload" >&6; }
9208if test "${im_cv_ld_lazyload}" != 'none' ; then
9209 if test -z "${LDFLAGS}" ; then
9210 LDFLAGS="${im_cv_ld_lazyload}"
9211 else
9212 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9213 fi
9214fi
9215
9216case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009217 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009218 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009219 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009220if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009221 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9222else
9223 build_osxuniversal=no
9224fi
9225
9226
cristyc37574e2013-02-16 01:04:55 +00009227 if test "${build_osxuniversal}" != no ; then
9228 if test "$enable_dependency_tracking" != no ; then
9229 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009230Please re-run configure with these options:
9231 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009232 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009233 fi
9234 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9235 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9236 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009237 fi
9238 ;;
9239esac
9240
cristy0151ae12011-10-28 16:32:29 +00009241#
9242# ARCH specific include directory
9243#
9244
cristy670aa3c2011-11-03 00:54:00 +00009245# Check whether --with-includearch-dir was given.
9246if test "${with_includearch_dir+set}" = set; then :
9247 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009248else
cristy670aa3c2011-11-03 00:54:00 +00009249 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009250fi
9251
9252
cristyd286fd72013-02-24 19:25:33 +00009253eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009254
cristy0151ae12011-10-28 16:32:29 +00009255
9256#
9257# ARCH specific configuration directory
9258#
9259
cristy670aa3c2011-11-03 00:54:00 +00009260# Check whether --with-sharearch-dir was given.
9261if test "${with_sharearch_dir+set}" = set; then :
9262 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009263else
cristy408ebcd2011-11-14 01:36:57 +00009264 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009265fi
9266
9267
cristy670aa3c2011-11-03 00:54:00 +00009268eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009269
cristy0151ae12011-10-28 16:32:29 +00009270
cristy2ec87cc2013-02-18 17:46:50 +00009271# Path to the pkgconfig folder
9272
9273# Check whether --with-pkgconfigdir was given.
9274if test "${with_pkgconfigdir+set}" = set; then :
9275 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9276else
9277 pkgconfigdir='${libdir}/pkgconfig'
9278fi
9279
9280
9281
cristy0151ae12011-10-28 16:32:29 +00009282#
cristy3ed852e2009-09-05 21:47:34 +00009283# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009284#
9285# Find Posix threads library
9286#
cristy3ed852e2009-09-05 21:47:34 +00009287
9288# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009289if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009290 withval=$with_threads; with_threads=$withval
9291else
9292 with_threads='yes'
9293fi
9294
9295
cristy1ae5c992013-07-30 14:55:07 +00009296THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009297have_threads=no
9298if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009299
9300
cristy73bd4a52010-10-05 11:24:23 +00009301ac_ext=c
9302ac_cpp='$CPP $CPPFLAGS'
9303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9305ac_compiler_gnu=$ac_cv_c_compiler_gnu
9306
9307ax_pthread_ok=no
9308
9309# We used to check for pthread.h first, but this fails if pthread.h
9310# requires special compiler flags (e.g. on True64 or Sequent).
9311# It gets checked for in the link test anyway.
9312
9313# First of all, check if the user has set any of the PTHREAD_LIBS,
9314# etcetera environment variables, and if threads linking works using
9315# them:
9316if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9317 save_CFLAGS="$CFLAGS"
9318 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9319 save_LIBS="$LIBS"
9320 LIBS="$PTHREAD_LIBS $LIBS"
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9322$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324/* end confdefs.h. */
9325
9326/* Override any GCC internal prototype to avoid an error.
9327 Use char because int might match the return type of a GCC
9328 builtin and then its argument prototype would still apply. */
9329#ifdef __cplusplus
9330extern "C"
9331#endif
9332char pthread_join ();
9333int
9334main ()
9335{
9336return pthread_join ();
9337 ;
9338 return 0;
9339}
9340_ACEOF
9341if ac_fn_c_try_link "$LINENO"; then :
9342 ax_pthread_ok=yes
9343fi
9344rm -f core conftest.err conftest.$ac_objext \
9345 conftest$ac_exeext conftest.$ac_ext
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9347$as_echo "$ax_pthread_ok" >&6; }
9348 if test x"$ax_pthread_ok" = xno; then
9349 PTHREAD_LIBS=""
9350 PTHREAD_CFLAGS=""
9351 fi
9352 LIBS="$save_LIBS"
9353 CFLAGS="$save_CFLAGS"
9354fi
9355
9356# We must check for the threads library under a number of different
9357# names; the ordering is very important because some systems
9358# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9359# libraries is broken (non-POSIX).
9360
9361# Create a list of thread flags to try. Items starting with a "-" are
9362# C compiler flags, and other items are library names, except for "none"
9363# which indicates that we try without any flags at all, and "pthread-config"
9364# which is a program returning the flags for the Pth emulation library.
9365
cristy2ec87cc2013-02-18 17:46:50 +00009366ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009367
9368# The ordering *is* (sometimes) important. Some notes on the
9369# individual items follow:
9370
9371# pthreads: AIX (must check this before -lpthread)
9372# none: in case threads are in libc; should be tried before -Kthread and
9373# other compiler flags to prevent continual compiler warnings
9374# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9375# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9376# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9377# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9378# -pthreads: Solaris/gcc
9379# -mthreads: Mingw32/gcc, Lynx/gcc
9380# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9381# doesn't hurt to check since this sometimes defines pthreads too;
9382# also defines -D_REENTRANT)
9383# ... -mt is also the pthreads flag for HP/aCC
9384# pthread: Linux, etcetera
9385# --thread-safe: KAI C++
9386# pthread-config: use pthread-config program (for GNU Pth library)
9387
cristy2ec87cc2013-02-18 17:46:50 +00009388case ${host_os} in
9389 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009390
9391 # On Solaris (at least, for some versions), libc contains stubbed
9392 # (non-functional) versions of the pthreads routines, so link-based
9393 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9394 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9395 # a function called by this macro, so we could check for that, but
9396 # who knows whether they'll stub that too in a future libc.) So,
9397 # we'll just look for -pthreads and -lpthread first:
9398
9399 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9400 ;;
9401
cristy2ec87cc2013-02-18 17:46:50 +00009402 darwin*)
cristya316db12011-10-24 00:49:45 +00009403 ax_pthread_flags="-pthread $ax_pthread_flags"
9404 ;;
cristy73bd4a52010-10-05 11:24:23 +00009405esac
9406
9407if test x"$ax_pthread_ok" = xno; then
9408for flag in $ax_pthread_flags; do
9409
9410 case $flag in
9411 none)
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9413$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9414 ;;
9415
9416 -*)
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9418$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9419 PTHREAD_CFLAGS="$flag"
9420 ;;
9421
cristya316db12011-10-24 00:49:45 +00009422 pthread-config)
9423 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009424set dummy pthread-config; ac_word=$2
9425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9426$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009427if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009428 $as_echo_n "(cached) " >&6
9429else
9430 if test -n "$ax_pthread_config"; then
9431 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9432else
9433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434for as_dir in $PATH
9435do
9436 IFS=$as_save_IFS
9437 test -z "$as_dir" && as_dir=.
9438 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009440 ac_cv_prog_ax_pthread_config="yes"
9441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9442 break 2
9443 fi
9444done
9445 done
9446IFS=$as_save_IFS
9447
9448 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9449fi
9450fi
9451ax_pthread_config=$ac_cv_prog_ax_pthread_config
9452if test -n "$ax_pthread_config"; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9454$as_echo "$ax_pthread_config" >&6; }
9455else
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457$as_echo "no" >&6; }
9458fi
9459
9460
cristya316db12011-10-24 00:49:45 +00009461 if test x"$ax_pthread_config" = xno; then continue; fi
9462 PTHREAD_CFLAGS="`pthread-config --cflags`"
9463 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9464 ;;
cristy73bd4a52010-10-05 11:24:23 +00009465
9466 *)
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9468$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9469 PTHREAD_LIBS="-l$flag"
9470 ;;
9471 esac
9472
9473 save_LIBS="$LIBS"
9474 save_CFLAGS="$CFLAGS"
9475 LIBS="$PTHREAD_LIBS $LIBS"
9476 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9477
9478 # Check for various functions. We must include pthread.h,
9479 # since some functions may be macros. (On the Sequent, we
9480 # need a special flag -Kthread to make this header compile.)
9481 # We check for pthread_join because it is in -lpthread on IRIX
9482 # while pthread_create is in libc. We check for pthread_attr_init
9483 # due to DEC craziness with -lpthreads. We check for
9484 # pthread_cleanup_push because it is one of the few pthread
9485 # functions on Solaris that doesn't have a non-functional libc stub.
9486 # We try pthread_create on general principles.
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488/* end confdefs.h. */
9489#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009490 static void routine(void *a) { a = 0; }
9491 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009492int
9493main ()
9494{
9495pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009496 pthread_create(&th, 0, start_routine, 0);
9497 pthread_join(th, 0);
9498 pthread_attr_init(&attr);
9499 pthread_cleanup_push(routine, 0);
9500 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009501 ;
9502 return 0;
9503}
9504_ACEOF
9505if ac_fn_c_try_link "$LINENO"; then :
9506 ax_pthread_ok=yes
9507fi
9508rm -f core conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext conftest.$ac_ext
9510
9511 LIBS="$save_LIBS"
9512 CFLAGS="$save_CFLAGS"
9513
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9515$as_echo "$ax_pthread_ok" >&6; }
9516 if test "x$ax_pthread_ok" = xyes; then
9517 break;
9518 fi
9519
9520 PTHREAD_LIBS=""
9521 PTHREAD_CFLAGS=""
9522done
9523fi
9524
9525# Various other checks:
9526if test "x$ax_pthread_ok" = xyes; then
9527 save_LIBS="$LIBS"
9528 LIBS="$PTHREAD_LIBS $LIBS"
9529 save_CFLAGS="$CFLAGS"
9530 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9531
9532 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009534$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009535 attr_name=unknown
9536 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009538/* end confdefs.h. */
9539#include <pthread.h>
9540int
9541main ()
9542{
cristya316db12011-10-24 00:49:45 +00009543int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009544 ;
9545 return 0;
9546}
9547_ACEOF
9548if ac_fn_c_try_link "$LINENO"; then :
9549 attr_name=$attr; break
9550fi
9551rm -f core conftest.err conftest.$ac_objext \
9552 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009553 done
cristy73bd4a52010-10-05 11:24:23 +00009554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9555$as_echo "$attr_name" >&6; }
9556 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9557
9558cat >>confdefs.h <<_ACEOF
9559#define PTHREAD_CREATE_JOINABLE $attr_name
9560_ACEOF
9561
9562 fi
9563
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9565$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9566 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009567 case ${host_os} in
9568 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9569 osf* | hpux*) flag="-D_REENTRANT";;
9570 solaris*)
9571 if test "$GCC" = "yes"; then
9572 flag="-D_REENTRANT"
9573 else
9574 flag="-mt -D_REENTRANT"
9575 fi
9576 ;;
cristy73bd4a52010-10-05 11:24:23 +00009577 esac
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9579$as_echo "${flag}" >&6; }
9580 if test "x$flag" != xno; then
9581 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9582 fi
9583
cristya316db12011-10-24 00:49:45 +00009584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9585$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9586if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9587 $as_echo_n "(cached) " >&6
9588else
9589
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591/* end confdefs.h. */
9592
9593 #include <pthread.h>
9594int
9595main ()
9596{
9597int i = PTHREAD_PRIO_INHERIT;
9598 ;
9599 return 0;
9600}
9601_ACEOF
9602if ac_fn_c_try_link "$LINENO"; then :
9603 ax_cv_PTHREAD_PRIO_INHERIT=yes
9604else
9605 ax_cv_PTHREAD_PRIO_INHERIT=no
9606fi
9607rm -f core conftest.err conftest.$ac_objext \
9608 conftest$ac_exeext conftest.$ac_ext
9609
9610fi
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9612$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9613 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9614
9615$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9616
9617fi
9618
cristy73bd4a52010-10-05 11:24:23 +00009619 LIBS="$save_LIBS"
9620 CFLAGS="$save_CFLAGS"
9621
cristy23493c42013-04-11 16:04:59 +00009622 # More AIX lossage: compile with *_r variant
9623 if test "x$GCC" != xyes; then
9624 case $host_os in
9625 aix*)
9626 case "x/$CC" in #(
9627 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9628 #handle absolute path differently from PATH based program lookup
9629 case "x$CC" in #(
9630 x/*) :
9631 if as_fn_executable_p ${CC}_r; then :
9632 PTHREAD_CC="${CC}_r"
9633fi ;; #(
9634 *) :
9635 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009636do
9637 # Extract the first word of "$ac_prog", so it can be a program name with args.
9638set dummy $ac_prog; ac_word=$2
9639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009641if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009642 $as_echo_n "(cached) " >&6
9643else
9644 if test -n "$PTHREAD_CC"; then
9645 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9646else
9647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648for as_dir in $PATH
9649do
9650 IFS=$as_save_IFS
9651 test -z "$as_dir" && as_dir=.
9652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009654 ac_cv_prog_PTHREAD_CC="$ac_prog"
9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9656 break 2
9657 fi
9658done
9659 done
9660IFS=$as_save_IFS
9661
9662fi
9663fi
9664PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9665if test -n "$PTHREAD_CC"; then
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9667$as_echo "$PTHREAD_CC" >&6; }
9668else
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670$as_echo "no" >&6; }
9671fi
9672
9673
9674 test -n "$PTHREAD_CC" && break
9675done
cristy23493c42013-04-11 16:04:59 +00009676test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9677 ;;
9678esac ;; #(
9679 *) :
9680 ;;
9681esac
9682 ;;
9683 esac
cristya316db12011-10-24 00:49:45 +00009684 fi
cristy73bd4a52010-10-05 11:24:23 +00009685fi
9686
cristy23493c42013-04-11 16:04:59 +00009687test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9688
cristy73bd4a52010-10-05 11:24:23 +00009689
9690
9691
9692
9693# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9694if test x"$ax_pthread_ok" = xyes; then
9695
9696$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9697
9698 :
9699else
9700 ax_pthread_ok=no
9701
9702fi
9703ac_ext=c
9704ac_cpp='$CPP $CPPFLAGS'
9705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9707ac_compiler_gnu=$ac_cv_c_compiler_gnu
9708
9709
cristy7acf8fb2010-09-23 19:58:53 +00009710 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009711 have_threads=yes
9712 DEF_THREAD="$PTHREAD_CFLAGS"
9713 CFLAGS="$CFLAGS $DEF_THREAD"
9714 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009715 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009716 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009717 { $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 +00009718$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9719 CC="$PTHREAD_CC"
9720 fi
cristy55bf91c2010-09-24 00:29:41 +00009721
9722$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9723
cristy3ed852e2009-09-05 21:47:34 +00009724 fi
9725fi
cristy1ae5c992013-07-30 14:55:07 +00009726LIBS="$LIBS $THREAD_LIBS"
9727
cristy3ed852e2009-09-05 21:47:34 +00009728
9729# Enable support for OpenMP
9730if test "$have_threads" != 'yes'; then
9731 ac_cv_prog_c_openmp=unsupported
9732fi
9733
9734 OPENMP_CFLAGS=
9735 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009736if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009737 enableval=$enable_openmp;
9738fi
9739
9740 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009742$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009743if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009744 $as_echo_n "(cached) " >&6
9745else
cristy8b350f62009-11-15 23:12:43 +00009746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009748
9749#ifndef _OPENMP
9750 choke me
9751#endif
9752#include <omp.h>
9753int main () { return omp_get_num_threads (); }
9754
9755_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009756if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009757 ac_cv_prog_c_openmp='none needed'
9758else
cristy8b350f62009-11-15 23:12:43 +00009759 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009760 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9761 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009762 ac_save_CFLAGS=$CFLAGS
9763 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009766
9767#ifndef _OPENMP
9768 choke me
9769#endif
9770#include <omp.h>
9771int main () { return omp_get_num_threads (); }
9772
9773_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009774if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009775 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009776fi
cristy8b350f62009-11-15 23:12:43 +00009777rm -f core conftest.err conftest.$ac_objext \
9778 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009779 CFLAGS=$ac_save_CFLAGS
9780 if test "$ac_cv_prog_c_openmp" != unsupported; then
9781 break
9782 fi
9783 done
9784fi
cristy8b350f62009-11-15 23:12:43 +00009785rm -f core conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009787fi
cristy8b350f62009-11-15 23:12:43 +00009788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009789$as_echo "$ac_cv_prog_c_openmp" >&6; }
9790 case $ac_cv_prog_c_openmp in #(
9791 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009792 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009793 *)
cristy8b350f62009-11-15 23:12:43 +00009794 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009795 esac
9796 fi
9797
9798
9799CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9800MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9801
cristy391f1ce2010-09-09 17:23:28 +00009802if test "$enable_openmp" != no; then
9803 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9804 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9805 fi
9806fi
cristy3ed852e2009-09-05 21:47:34 +00009807
cristy736173a2009-09-20 21:18:22 +00009808# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009809
9810
cristy73bd4a52010-10-05 11:24:23 +00009811ac_ext=c
9812ac_cpp='$CPP $CPPFLAGS'
9813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9815ac_compiler_gnu=$ac_cv_c_compiler_gnu
9816
9817ax_pthread_ok=no
9818
9819# We used to check for pthread.h first, but this fails if pthread.h
9820# requires special compiler flags (e.g. on True64 or Sequent).
9821# It gets checked for in the link test anyway.
9822
9823# First of all, check if the user has set any of the PTHREAD_LIBS,
9824# etcetera environment variables, and if threads linking works using
9825# them:
9826if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9827 save_CFLAGS="$CFLAGS"
9828 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9829 save_LIBS="$LIBS"
9830 LIBS="$PTHREAD_LIBS $LIBS"
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9832$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834/* end confdefs.h. */
9835
9836/* Override any GCC internal prototype to avoid an error.
9837 Use char because int might match the return type of a GCC
9838 builtin and then its argument prototype would still apply. */
9839#ifdef __cplusplus
9840extern "C"
9841#endif
9842char pthread_join ();
9843int
9844main ()
9845{
9846return pthread_join ();
9847 ;
9848 return 0;
9849}
9850_ACEOF
9851if ac_fn_c_try_link "$LINENO"; then :
9852 ax_pthread_ok=yes
9853fi
9854rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9857$as_echo "$ax_pthread_ok" >&6; }
9858 if test x"$ax_pthread_ok" = xno; then
9859 PTHREAD_LIBS=""
9860 PTHREAD_CFLAGS=""
9861 fi
9862 LIBS="$save_LIBS"
9863 CFLAGS="$save_CFLAGS"
9864fi
9865
9866# We must check for the threads library under a number of different
9867# names; the ordering is very important because some systems
9868# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9869# libraries is broken (non-POSIX).
9870
9871# Create a list of thread flags to try. Items starting with a "-" are
9872# C compiler flags, and other items are library names, except for "none"
9873# which indicates that we try without any flags at all, and "pthread-config"
9874# which is a program returning the flags for the Pth emulation library.
9875
cristy2ec87cc2013-02-18 17:46:50 +00009876ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009877
9878# The ordering *is* (sometimes) important. Some notes on the
9879# individual items follow:
9880
9881# pthreads: AIX (must check this before -lpthread)
9882# none: in case threads are in libc; should be tried before -Kthread and
9883# other compiler flags to prevent continual compiler warnings
9884# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9885# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9886# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9887# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9888# -pthreads: Solaris/gcc
9889# -mthreads: Mingw32/gcc, Lynx/gcc
9890# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9891# doesn't hurt to check since this sometimes defines pthreads too;
9892# also defines -D_REENTRANT)
9893# ... -mt is also the pthreads flag for HP/aCC
9894# pthread: Linux, etcetera
9895# --thread-safe: KAI C++
9896# pthread-config: use pthread-config program (for GNU Pth library)
9897
cristy2ec87cc2013-02-18 17:46:50 +00009898case ${host_os} in
9899 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009900
9901 # On Solaris (at least, for some versions), libc contains stubbed
9902 # (non-functional) versions of the pthreads routines, so link-based
9903 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9904 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9905 # a function called by this macro, so we could check for that, but
9906 # who knows whether they'll stub that too in a future libc.) So,
9907 # we'll just look for -pthreads and -lpthread first:
9908
9909 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9910 ;;
9911
cristy2ec87cc2013-02-18 17:46:50 +00009912 darwin*)
cristya316db12011-10-24 00:49:45 +00009913 ax_pthread_flags="-pthread $ax_pthread_flags"
9914 ;;
cristy73bd4a52010-10-05 11:24:23 +00009915esac
9916
9917if test x"$ax_pthread_ok" = xno; then
9918for flag in $ax_pthread_flags; do
9919
9920 case $flag in
9921 none)
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9923$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9924 ;;
9925
9926 -*)
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9928$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9929 PTHREAD_CFLAGS="$flag"
9930 ;;
9931
cristya316db12011-10-24 00:49:45 +00009932 pthread-config)
9933 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009934set dummy pthread-config; ac_word=$2
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9936$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009937if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009938 $as_echo_n "(cached) " >&6
9939else
9940 if test -n "$ax_pthread_config"; then
9941 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9942else
9943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944for as_dir in $PATH
9945do
9946 IFS=$as_save_IFS
9947 test -z "$as_dir" && as_dir=.
9948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009950 ac_cv_prog_ax_pthread_config="yes"
9951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9952 break 2
9953 fi
9954done
9955 done
9956IFS=$as_save_IFS
9957
9958 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9959fi
9960fi
9961ax_pthread_config=$ac_cv_prog_ax_pthread_config
9962if test -n "$ax_pthread_config"; then
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9964$as_echo "$ax_pthread_config" >&6; }
9965else
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9967$as_echo "no" >&6; }
9968fi
9969
9970
cristya316db12011-10-24 00:49:45 +00009971 if test x"$ax_pthread_config" = xno; then continue; fi
9972 PTHREAD_CFLAGS="`pthread-config --cflags`"
9973 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9974 ;;
cristy73bd4a52010-10-05 11:24:23 +00009975
9976 *)
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9978$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9979 PTHREAD_LIBS="-l$flag"
9980 ;;
9981 esac
9982
9983 save_LIBS="$LIBS"
9984 save_CFLAGS="$CFLAGS"
9985 LIBS="$PTHREAD_LIBS $LIBS"
9986 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9987
9988 # Check for various functions. We must include pthread.h,
9989 # since some functions may be macros. (On the Sequent, we
9990 # need a special flag -Kthread to make this header compile.)
9991 # We check for pthread_join because it is in -lpthread on IRIX
9992 # while pthread_create is in libc. We check for pthread_attr_init
9993 # due to DEC craziness with -lpthreads. We check for
9994 # pthread_cleanup_push because it is one of the few pthread
9995 # functions on Solaris that doesn't have a non-functional libc stub.
9996 # We try pthread_create on general principles.
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998/* end confdefs.h. */
9999#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010000 static void routine(void *a) { a = 0; }
10001 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010002int
10003main ()
10004{
10005pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010006 pthread_create(&th, 0, start_routine, 0);
10007 pthread_join(th, 0);
10008 pthread_attr_init(&attr);
10009 pthread_cleanup_push(routine, 0);
10010 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010011 ;
10012 return 0;
10013}
10014_ACEOF
10015if ac_fn_c_try_link "$LINENO"; then :
10016 ax_pthread_ok=yes
10017fi
10018rm -f core conftest.err conftest.$ac_objext \
10019 conftest$ac_exeext conftest.$ac_ext
10020
10021 LIBS="$save_LIBS"
10022 CFLAGS="$save_CFLAGS"
10023
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10025$as_echo "$ax_pthread_ok" >&6; }
10026 if test "x$ax_pthread_ok" = xyes; then
10027 break;
10028 fi
10029
10030 PTHREAD_LIBS=""
10031 PTHREAD_CFLAGS=""
10032done
10033fi
10034
10035# Various other checks:
10036if test "x$ax_pthread_ok" = xyes; then
10037 save_LIBS="$LIBS"
10038 LIBS="$PTHREAD_LIBS $LIBS"
10039 save_CFLAGS="$CFLAGS"
10040 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10041
10042 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010044$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010045 attr_name=unknown
10046 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010048/* end confdefs.h. */
10049#include <pthread.h>
10050int
10051main ()
10052{
cristya316db12011-10-24 00:49:45 +000010053int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010054 ;
10055 return 0;
10056}
10057_ACEOF
10058if ac_fn_c_try_link "$LINENO"; then :
10059 attr_name=$attr; break
10060fi
10061rm -f core conftest.err conftest.$ac_objext \
10062 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010063 done
cristy73bd4a52010-10-05 11:24:23 +000010064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10065$as_echo "$attr_name" >&6; }
10066 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10067
10068cat >>confdefs.h <<_ACEOF
10069#define PTHREAD_CREATE_JOINABLE $attr_name
10070_ACEOF
10071
10072 fi
10073
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10075$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10076 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010077 case ${host_os} in
10078 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10079 osf* | hpux*) flag="-D_REENTRANT";;
10080 solaris*)
10081 if test "$GCC" = "yes"; then
10082 flag="-D_REENTRANT"
10083 else
10084 flag="-mt -D_REENTRANT"
10085 fi
10086 ;;
cristy73bd4a52010-10-05 11:24:23 +000010087 esac
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
10089$as_echo "${flag}" >&6; }
10090 if test "x$flag" != xno; then
10091 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10092 fi
10093
cristya316db12011-10-24 00:49:45 +000010094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10095$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10096if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10097 $as_echo_n "(cached) " >&6
10098else
10099
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101/* end confdefs.h. */
10102
10103 #include <pthread.h>
10104int
10105main ()
10106{
10107int i = PTHREAD_PRIO_INHERIT;
10108 ;
10109 return 0;
10110}
10111_ACEOF
10112if ac_fn_c_try_link "$LINENO"; then :
10113 ax_cv_PTHREAD_PRIO_INHERIT=yes
10114else
10115 ax_cv_PTHREAD_PRIO_INHERIT=no
10116fi
10117rm -f core conftest.err conftest.$ac_objext \
10118 conftest$ac_exeext conftest.$ac_ext
10119
10120fi
10121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10122$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10123 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10124
10125$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10126
10127fi
10128
cristy73bd4a52010-10-05 11:24:23 +000010129 LIBS="$save_LIBS"
10130 CFLAGS="$save_CFLAGS"
10131
cristy23493c42013-04-11 16:04:59 +000010132 # More AIX lossage: compile with *_r variant
10133 if test "x$GCC" != xyes; then
10134 case $host_os in
10135 aix*)
10136 case "x/$CC" in #(
10137 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10138 #handle absolute path differently from PATH based program lookup
10139 case "x$CC" in #(
10140 x/*) :
10141 if as_fn_executable_p ${CC}_r; then :
10142 PTHREAD_CC="${CC}_r"
10143fi ;; #(
10144 *) :
10145 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010146do
10147 # Extract the first word of "$ac_prog", so it can be a program name with args.
10148set dummy $ac_prog; ac_word=$2
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10150$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010151if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010152 $as_echo_n "(cached) " >&6
10153else
10154 if test -n "$PTHREAD_CC"; then
10155 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10156else
10157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10158for as_dir in $PATH
10159do
10160 IFS=$as_save_IFS
10161 test -z "$as_dir" && as_dir=.
10162 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010164 ac_cv_prog_PTHREAD_CC="$ac_prog"
10165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10166 break 2
10167 fi
10168done
10169 done
10170IFS=$as_save_IFS
10171
10172fi
10173fi
10174PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10175if test -n "$PTHREAD_CC"; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10177$as_echo "$PTHREAD_CC" >&6; }
10178else
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180$as_echo "no" >&6; }
10181fi
10182
10183
10184 test -n "$PTHREAD_CC" && break
10185done
cristy23493c42013-04-11 16:04:59 +000010186test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10187 ;;
10188esac ;; #(
10189 *) :
10190 ;;
10191esac
10192 ;;
10193 esac
cristya316db12011-10-24 00:49:45 +000010194 fi
cristy73bd4a52010-10-05 11:24:23 +000010195fi
10196
cristy23493c42013-04-11 16:04:59 +000010197test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10198
cristy73bd4a52010-10-05 11:24:23 +000010199
10200
10201
10202
10203# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10204if test x"$ax_pthread_ok" = xyes; then
10205
10206$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10207
10208 :
10209else
10210 ax_pthread_ok=no
10211
10212fi
10213ac_ext=c
10214ac_cpp='$CPP $CPPFLAGS'
10215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10217ac_compiler_gnu=$ac_cv_c_compiler_gnu
10218
10219
10220
10221# Check whether --enable-opencl was given.
10222if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010223 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010224else
cristy48794642012-09-02 15:19:08 +000010225 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010226fi
10227
10228
cristy48794642012-09-02 15:19:08 +000010229if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010230 ac_ext=c
10231ac_cpp='$CPP $CPPFLAGS'
10232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10234ac_compiler_gnu=$ac_cv_c_compiler_gnu
10235
cristy75314cc2012-09-15 23:08:29 +000010236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10237$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10238if ${ax_cv_c_compiler_ms+:} false; then :
10239 $as_echo_n "(cached) " >&6
10240else
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242/* end confdefs.h. */
10243
10244int
10245main ()
10246{
10247#ifndef _MSC_VER
10248 choke me
10249#endif
10250
10251 ;
10252 return 0;
10253}
10254_ACEOF
10255if ac_fn_c_try_compile "$LINENO"; then :
10256 ax_compiler_ms=yes
10257else
10258 ax_compiler_ms=no
10259fi
10260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10261ax_cv_c_compiler_ms=$ax_compiler_ms
10262
10263fi
10264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10265$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010266 if test X$ax_compiler_ms = Xno; then :
10267 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10268fi
10269
10270 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010271 ax_save_CL_CFLAGS=$CL_CFLAGS
10272
10273 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010274 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10275 for ac_header in CL/cl.h OpenCL/cl.h
10276do :
10277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10278ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010279if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010280 cat >>confdefs.h <<_ACEOF
10281#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10282_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010283 found_opencl_header='yes'
10284 break;
10285else
10286 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010287fi
10288
10289done
10290
cristyfdc7d122013-08-17 20:46:45 +000010291
10292 if test X$found_opencl_header = Xno; then :
10293 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10294 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10295 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10296 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10297 for ac_header in CL/cl.h OpenCL/cl.h
10298do :
10299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10300ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10301if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10302 cat >>confdefs.h <<_ACEOF
10303#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10304_ACEOF
10305 found_opencl_header='yes'
10306 break;
10307else
10308 found_opencl_header='no'
10309fi
10310
10311done
10312
10313
10314fi
10315
10316 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010317
10318 for ac_header in windows.h
10319do :
10320 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010321if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010322 cat >>confdefs.h <<_ACEOF
10323#define HAVE_WINDOWS_H 1
10324_ACEOF
10325
10326fi
10327
10328done
10329
10330
10331
10332
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10334$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010335if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010336 $as_echo_n "(cached) " >&6
10337else
10338 ax_cv_check_cl_libcl=no
10339 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010340 x86_64) ax_check_cl_libdir=lib64
10341 ax_check_cl_amd_libdir=x86_64
10342 ;;
10343 *) ax_check_cl_libdir=lib
10344 ax_check_cl_amd_libdir=x86
10345 ;;
cristy73bd4a52010-10-05 11:24:23 +000010346 esac
10347 ax_save_CPPFLAGS=$CPPFLAGS
10348 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10349 ax_save_LIBS=$LIBS
10350 LIBS=""
10351 ax_check_libs="-lOpenCL -lCL -lclparser"
10352 for ax_lib in $ax_check_libs; do
10353 if test X$ax_compiler_ms = Xyes; then :
10354 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10355else
10356 ax_try_lib=$ax_lib
10357fi
10358 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360/* end confdefs.h. */
10361
10362 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10363 # include <windows.h>
10364 # endif
10365 # ifdef HAVE_CL_CL_H
10366 # include <CL/cl.h>
10367 # elif defined(HAVE_OPENCL_CL_H)
10368 # include <OpenCL/cl.h>
10369 # else
10370 # error no CL.h
10371 # endif
10372int
10373main ()
10374{
10375clCreateContextFromType(0,0,0,0,0)
10376 ;
10377 return 0;
10378}
10379_ACEOF
10380if ac_fn_c_try_link "$LINENO"; then :
10381 ax_cv_check_cl_libcl=$ax_try_lib; break
10382else
10383 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"
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385/* end confdefs.h. */
10386
10387 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10388 # include <windows.h>
10389 # endif
10390 # ifdef HAVE_CL_CL_H
10391 # include <CL/cl.h>
10392 # elif defined(HAVE_OPENCL_CL_H)
10393 # include <OpenCL/cl.h>
10394 # else
10395 # error no CL.h
10396 # endif
10397int
10398main ()
10399{
10400clCreateContextFromType(0,0,0,0,0)
10401 ;
10402 return 0;
10403}
10404_ACEOF
10405if ac_fn_c_try_link "$LINENO"; then :
10406 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10407else
cristy78c5a0c2010-12-04 20:00:59 +000010408 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 +000010409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410/* end confdefs.h. */
10411
10412 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10413 # include <windows.h>
10414 # endif
10415 # ifdef HAVE_CL_CL_H
10416 # include <CL/cl.h>
10417 # elif defined(HAVE_OPENCL_CL_H)
10418 # include <OpenCL/cl.h>
10419 # else
10420 # error no CL.h
10421 # endif
10422int
10423main ()
10424{
10425clCreateContextFromType(0,0,0,0,0)
10426 ;
10427 return 0;
10428}
10429_ACEOF
10430if ac_fn_c_try_link "$LINENO"; then :
10431 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010432else
10433 ax_check_cl_amd_flags="-L$AMDAPPSDKROOT/lib/$ax_check_cl_amd_libdir" LIBS="$ax_try_lib $ax_check_cl_amd_flags $CL_LIBS $ax_save_LIBS"
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435/* end confdefs.h. */
10436
10437 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10438 # include <windows.h>
10439 # endif
10440 # ifdef HAVE_CL_CL_H
10441 # include <CL/cl.h>
10442 # elif defined(HAVE_OPENCL_CL_H)
10443 # include <OpenCL/cl.h>
10444 # else
10445 # error no CL.h
10446 # endif
10447int
10448main ()
10449{
10450clCreateContextFromType(0,0,0,0,0)
10451 ;
10452 return 0;
10453}
10454_ACEOF
10455if ac_fn_c_try_link "$LINENO"; then :
10456 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10457
10458fi
10459rm -f core conftest.err conftest.$ac_objext \
10460 conftest$ac_exeext conftest.$ac_ext
10461
10462
cristy73bd4a52010-10-05 11:24:23 +000010463fi
10464rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466fi
10467rm -f core conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469fi
10470rm -f core conftest.err conftest.$ac_objext \
10471 conftest$ac_exeext conftest.$ac_ext
10472 done
10473
cristyc3f8b8e2011-12-22 14:55:16 +000010474 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010475 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477/* end confdefs.h. */
10478
10479 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10480 # include <windows.h>
10481 # endif
10482 # ifdef HAVE_CL_CL_H
10483 # include <CL/cl.h>
10484 # elif defined(HAVE_OPENCL_CL_H)
10485 # include <OpenCL/cl.h>
10486 # else
10487 # error no CL.h
10488 # endif
10489int
10490main ()
10491{
10492clCreateContextFromType(0,0,0,0,0)
10493 ;
10494 return 0;
10495}
10496_ACEOF
10497if ac_fn_c_try_link "$LINENO"; then :
10498 ax_cv_check_cl_libcl=$LIBS
10499fi
10500rm -f core conftest.err conftest.$ac_objext \
10501 conftest$ac_exeext conftest.$ac_ext
10502fi
10503
10504 LIBS=$ax_save_LIBS
10505 CPPFLAGS=$ax_save_CPPFLAGS
10506fi
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10508$as_echo "$ax_cv_check_cl_libcl" >&6; }
10509
10510 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10511 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10512else
10513 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10514$as_echo "#define _OPENCL 1" >>confdefs.h
10515
10516fi
10517 ac_ext=c
10518ac_cpp='$CPP $CPPFLAGS'
10519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10521ac_compiler_gnu=$ac_cv_c_compiler_gnu
10522
10523fi
10524
10525
10526
cristy0c832c62014-03-07 22:21:04 +000010527#remove static link on Linux
10528CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10529
cristy73bd4a52010-10-05 11:24:23 +000010530
cristyc7083c12009-10-14 03:16:55 +000010531CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010532CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010533LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010534
cristy391f1ce2010-09-09 17:23:28 +000010535if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010536 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010537 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10538 fi
cristyfd9dcd42010-08-08 18:07:02 +000010539fi
cristy2e8b51d2009-10-17 18:26:15 +000010540
cristy3ed852e2009-09-05 21:47:34 +000010541########
10542#
10543# Check for large file support
10544#
10545########
10546# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010547if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010548 enableval=$enable_largefile;
10549fi
10550
10551if test "$enable_largefile" != no; then
10552
cristy8b350f62009-11-15 23:12:43 +000010553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010554$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010555if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010556 $as_echo_n "(cached) " >&6
10557else
10558 ac_cv_sys_largefile_CC=no
10559 if test "$GCC" != yes; then
10560 ac_save_CC=$CC
10561 while :; do
10562 # IRIX 6.2 and later do not support large files by default,
10563 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010565/* end confdefs.h. */
10566#include <sys/types.h>
10567 /* Check that off_t can represent 2**63 - 1 correctly.
10568 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10569 since some C++ compilers masquerading as C compilers
10570 incorrectly reject 9223372036854775807. */
10571#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10572 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10573 && LARGE_OFF_T % 2147483647 == 1)
10574 ? 1 : -1];
10575int
10576main ()
10577{
10578
10579 ;
10580 return 0;
10581}
10582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010583 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010584 break
cristy3ed852e2009-09-05 21:47:34 +000010585fi
cristy3ed852e2009-09-05 21:47:34 +000010586rm -f core conftest.err conftest.$ac_objext
10587 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010588 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010589 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010590fi
cristy3ed852e2009-09-05 21:47:34 +000010591rm -f core conftest.err conftest.$ac_objext
10592 break
10593 done
10594 CC=$ac_save_CC
10595 rm -f conftest.$ac_ext
10596 fi
10597fi
cristy8b350f62009-11-15 23:12:43 +000010598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010599$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10600 if test "$ac_cv_sys_largefile_CC" != no; then
10601 CC=$CC$ac_cv_sys_largefile_CC
10602 fi
10603
cristy8b350f62009-11-15 23:12:43 +000010604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010605$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010606if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010607 $as_echo_n "(cached) " >&6
10608else
10609 while :; do
cristy8b350f62009-11-15 23:12:43 +000010610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010611/* end confdefs.h. */
10612#include <sys/types.h>
10613 /* Check that off_t can represent 2**63 - 1 correctly.
10614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10615 since some C++ compilers masquerading as C compilers
10616 incorrectly reject 9223372036854775807. */
10617#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10619 && LARGE_OFF_T % 2147483647 == 1)
10620 ? 1 : -1];
10621int
10622main ()
10623{
10624
10625 ;
10626 return 0;
10627}
10628_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010629if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010630 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010631fi
cristy3ed852e2009-09-05 21:47:34 +000010632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010634/* end confdefs.h. */
10635#define _FILE_OFFSET_BITS 64
10636#include <sys/types.h>
10637 /* Check that off_t can represent 2**63 - 1 correctly.
10638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10639 since some C++ compilers masquerading as C compilers
10640 incorrectly reject 9223372036854775807. */
10641#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10643 && LARGE_OFF_T % 2147483647 == 1)
10644 ? 1 : -1];
10645int
10646main ()
10647{
10648
10649 ;
10650 return 0;
10651}
10652_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010653if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010654 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010655fi
cristy3ed852e2009-09-05 21:47:34 +000010656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10657 ac_cv_sys_file_offset_bits=unknown
10658 break
10659done
10660fi
cristy8b350f62009-11-15 23:12:43 +000010661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010662$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10663case $ac_cv_sys_file_offset_bits in #(
10664 no | unknown) ;;
10665 *)
10666cat >>confdefs.h <<_ACEOF
10667#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10668_ACEOF
10669;;
10670esac
10671rm -rf conftest*
10672 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010674$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010675if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010676 $as_echo_n "(cached) " >&6
10677else
10678 while :; do
cristy8b350f62009-11-15 23:12:43 +000010679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010680/* end confdefs.h. */
10681#include <sys/types.h>
10682 /* Check that off_t can represent 2**63 - 1 correctly.
10683 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10684 since some C++ compilers masquerading as C compilers
10685 incorrectly reject 9223372036854775807. */
10686#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10688 && LARGE_OFF_T % 2147483647 == 1)
10689 ? 1 : -1];
10690int
10691main ()
10692{
10693
10694 ;
10695 return 0;
10696}
10697_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010698if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010699 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010700fi
cristy3ed852e2009-09-05 21:47:34 +000010701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010703/* end confdefs.h. */
10704#define _LARGE_FILES 1
10705#include <sys/types.h>
10706 /* Check that off_t can represent 2**63 - 1 correctly.
10707 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10708 since some C++ compilers masquerading as C compilers
10709 incorrectly reject 9223372036854775807. */
10710#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10711 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10712 && LARGE_OFF_T % 2147483647 == 1)
10713 ? 1 : -1];
10714int
10715main ()
10716{
10717
10718 ;
10719 return 0;
10720}
10721_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010722if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010723 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010724fi
cristy3ed852e2009-09-05 21:47:34 +000010725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726 ac_cv_sys_large_files=unknown
10727 break
10728done
10729fi
cristy8b350f62009-11-15 23:12:43 +000010730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010731$as_echo "$ac_cv_sys_large_files" >&6; }
10732case $ac_cv_sys_large_files in #(
10733 no | unknown) ;;
10734 *)
10735cat >>confdefs.h <<_ACEOF
10736#define _LARGE_FILES $ac_cv_sys_large_files
10737_ACEOF
10738;;
10739esac
10740rm -rf conftest*
10741 fi
cristy14fefe52012-05-21 00:59:18 +000010742
10743
cristy3ed852e2009-09-05 21:47:34 +000010744fi
10745
cristy8b350f62009-11-15 23:12:43 +000010746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010747$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010748if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010749 $as_echo_n "(cached) " >&6
10750else
10751 while :; do
cristy8b350f62009-11-15 23:12:43 +000010752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010753/* end confdefs.h. */
10754#include <sys/types.h> /* for off_t */
10755 #include <stdio.h>
10756int
10757main ()
10758{
10759int (*fp) (FILE *, off_t, int) = fseeko;
10760 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10761 ;
10762 return 0;
10763}
10764_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010765if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010766 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010767fi
cristy8b350f62009-11-15 23:12:43 +000010768rm -f core conftest.err conftest.$ac_objext \
10769 conftest$ac_exeext conftest.$ac_ext
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010771/* end confdefs.h. */
10772#define _LARGEFILE_SOURCE 1
10773#include <sys/types.h> /* for off_t */
10774 #include <stdio.h>
10775int
10776main ()
10777{
10778int (*fp) (FILE *, off_t, int) = fseeko;
10779 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10780 ;
10781 return 0;
10782}
10783_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010784if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010785 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010786fi
cristy8b350f62009-11-15 23:12:43 +000010787rm -f core conftest.err conftest.$ac_objext \
10788 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010789 ac_cv_sys_largefile_source=unknown
10790 break
10791done
10792fi
cristy8b350f62009-11-15 23:12:43 +000010793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010794$as_echo "$ac_cv_sys_largefile_source" >&6; }
10795case $ac_cv_sys_largefile_source in #(
10796 no | unknown) ;;
10797 *)
10798cat >>confdefs.h <<_ACEOF
10799#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10800_ACEOF
10801;;
10802esac
10803rm -rf conftest*
10804
10805# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10806# in glibc 2.1.3, but that breaks too many other things.
10807# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10808if test $ac_cv_sys_largefile_source != unknown; then
10809
cristy8b350f62009-11-15 23:12:43 +000010810$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010811
10812fi
10813
10814LFS_CPPFLAGS=''
10815if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010816 case $ac_cv_sys_file_offset_bits in
10817 no)
10818 # nothing to do here as the host supports LFS fine
10819 ;;
10820 unknown)
cristy8b350f62009-11-15 23:12:43 +000010821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010822$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010823 if test "$cross_compiling" = yes; then :
10824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010826as_fn_error $? "cannot run test program while cross compiling
10827See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010828else
cristy8b350f62009-11-15 23:12:43 +000010829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010831#include <unistd.h>
10832 main () {
10833 exit(!(sizeof(off_t) == 8));
10834 }
cristyda16f162011-02-19 23:52:17 +000010835int
10836main ()
10837{
10838
10839 ;
10840 return 0;
10841}
cristy3ed852e2009-09-05 21:47:34 +000010842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010843if ac_fn_c_try_run "$LINENO"; then :
10844 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010845
cristyad38abe2012-12-23 23:03:21 +000010846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10847$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010848else
cristyad38abe2012-12-23 23:03:21 +000010849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010851fi
cristy8b350f62009-11-15 23:12:43 +000010852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10853 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010854fi
10855
cristyc1e0cc12011-09-21 16:41:16 +000010856 ;;
10857 *)
10858 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10859 ;;
10860 esac
cristy3ed852e2009-09-05 21:47:34 +000010861 if test "$ac_cv_sys_large_files" != 'no'; then
10862 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10863 fi
10864 if test "$ac_cv_sys_largefile_source" != 'no'; then
10865 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10866 fi
10867fi
10868
10869
cristy3ed852e2009-09-05 21:47:34 +000010870# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010871enable_dlopen=yes
10872
10873
10874
10875case `pwd` in
10876 *\ * | *\ *)
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10878$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10879esac
10880
10881
10882
cristy99bd5232011-12-07 14:38:20 +000010883macro_version='2.4.2'
10884macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898ltmain="$ac_aux_dir/ltmain.sh"
10899
cristy0c60a692010-11-04 01:09:47 +000010900# Backslashify metacharacters that are still active within
10901# double-quoted strings.
10902sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10903
10904# Same as above, but do not quote variable references.
10905double_quote_subst='s/\(["`\\]\)/\\\1/g'
10906
10907# Sed substitution to delay expansion of an escaped shell variable in a
10908# double_quote_subst'ed string.
10909delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10910
10911# Sed substitution to delay expansion of an escaped single quote.
10912delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10913
10914# Sed substitution to avoid accidental globbing in evaled expressions
10915no_glob_subst='s/\*/\\\*/g'
10916
cristy73bd4a52010-10-05 11:24:23 +000010917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10918$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010919if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010920 $as_echo_n "(cached) " >&6
10921else
10922 if test -n "$NM"; then
10923 # Let the user override the test.
10924 lt_cv_path_NM="$NM"
10925else
10926 lt_nm_to_check="${ac_tool_prefix}nm"
10927 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10928 lt_nm_to_check="$lt_nm_to_check nm"
10929 fi
10930 for lt_tmp_nm in $lt_nm_to_check; do
10931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10932 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10933 IFS="$lt_save_ifs"
10934 test -z "$ac_dir" && ac_dir=.
10935 tmp_nm="$ac_dir/$lt_tmp_nm"
10936 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10937 # Check to see if the nm accepts a BSD-compat flag.
10938 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10939 # nm: unknown option "B" ignored
10940 # Tru64's nm complains that /dev/null is an invalid object file
10941 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10942 */dev/null* | *'Invalid file or object type'*)
10943 lt_cv_path_NM="$tmp_nm -B"
10944 break
10945 ;;
10946 *)
10947 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10948 */dev/null*)
10949 lt_cv_path_NM="$tmp_nm -p"
10950 break
10951 ;;
10952 *)
10953 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10954 continue # so that we can try to find one that supports BSD flags
10955 ;;
10956 esac
10957 ;;
10958 esac
10959 fi
10960 done
10961 IFS="$lt_save_ifs"
10962 done
10963 : ${lt_cv_path_NM=no}
10964fi
10965fi
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10967$as_echo "$lt_cv_path_NM" >&6; }
10968if test "$lt_cv_path_NM" != "no"; then
10969 NM="$lt_cv_path_NM"
10970else
10971 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010972 if test -n "$DUMPBIN"; then :
10973 # Let the user override the test.
10974 else
10975 if test -n "$ac_tool_prefix"; then
10976 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010977 do
10978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010982if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010983 $as_echo_n "(cached) " >&6
10984else
10985 if test -n "$DUMPBIN"; then
10986 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10987else
10988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989for as_dir in $PATH
10990do
10991 IFS=$as_save_IFS
10992 test -z "$as_dir" && as_dir=.
10993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010995 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10997 break 2
10998 fi
10999done
11000 done
11001IFS=$as_save_IFS
11002
11003fi
11004fi
11005DUMPBIN=$ac_cv_prog_DUMPBIN
11006if test -n "$DUMPBIN"; then
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11008$as_echo "$DUMPBIN" >&6; }
11009else
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011$as_echo "no" >&6; }
11012fi
11013
11014
11015 test -n "$DUMPBIN" && break
11016 done
11017fi
11018if test -z "$DUMPBIN"; then
11019 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011020 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011021do
11022 # Extract the first word of "$ac_prog", so it can be a program name with args.
11023set dummy $ac_prog; ac_word=$2
11024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11025$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011026if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011027 $as_echo_n "(cached) " >&6
11028else
11029 if test -n "$ac_ct_DUMPBIN"; then
11030 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11031else
11032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033for as_dir in $PATH
11034do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011039 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11042 fi
11043done
11044 done
11045IFS=$as_save_IFS
11046
11047fi
11048fi
11049ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11050if test -n "$ac_ct_DUMPBIN"; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11052$as_echo "$ac_ct_DUMPBIN" >&6; }
11053else
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11055$as_echo "no" >&6; }
11056fi
11057
11058
11059 test -n "$ac_ct_DUMPBIN" && break
11060done
11061
11062 if test "x$ac_ct_DUMPBIN" = x; then
11063 DUMPBIN=":"
11064 else
11065 case $cross_compiling:$ac_tool_warned in
11066yes:)
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11069ac_tool_warned=yes ;;
11070esac
11071 DUMPBIN=$ac_ct_DUMPBIN
11072 fi
11073fi
11074
cristy0c60a692010-11-04 01:09:47 +000011075 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11076 *COFF*)
11077 DUMPBIN="$DUMPBIN -symbols"
11078 ;;
11079 *)
11080 DUMPBIN=:
11081 ;;
11082 esac
11083 fi
cristy73bd4a52010-10-05 11:24:23 +000011084
11085 if test "$DUMPBIN" != ":"; then
11086 NM="$DUMPBIN"
11087 fi
11088fi
11089test -z "$NM" && NM=nm
11090
11091
11092
11093
11094
11095
11096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11097$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011098if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011099 $as_echo_n "(cached) " >&6
11100else
11101 lt_cv_nm_interface="BSD nm"
11102 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011103 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011104 (eval "$ac_compile" 2>conftest.err)
11105 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011106 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011107 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11108 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011109 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011110 cat conftest.out >&5
11111 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11112 lt_cv_nm_interface="MS dumpbin"
11113 fi
11114 rm -f conftest*
11115fi
11116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11117$as_echo "$lt_cv_nm_interface" >&6; }
11118
11119# find the maximum length of command line arguments
11120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11121$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011122if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011123 $as_echo_n "(cached) " >&6
11124else
11125 i=0
11126 teststring="ABCD"
11127
11128 case $build_os in
11129 msdosdjgpp*)
11130 # On DJGPP, this test can blow up pretty badly due to problems in libc
11131 # (any single argument exceeding 2000 bytes causes a buffer overrun
11132 # during glob expansion). Even if it were fixed, the result of this
11133 # check would be larger than it should be.
11134 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11135 ;;
11136
11137 gnu*)
11138 # Under GNU Hurd, this test is not required because there is
11139 # no limit to the length of command line arguments.
11140 # Libtool will interpret -1 as no limit whatsoever
11141 lt_cv_sys_max_cmd_len=-1;
11142 ;;
11143
11144 cygwin* | mingw* | cegcc*)
11145 # On Win9x/ME, this test blows up -- it succeeds, but takes
11146 # about 5 minutes as the teststring grows exponentially.
11147 # Worse, since 9x/ME are not pre-emptively multitasking,
11148 # you end up with a "frozen" computer, even though with patience
11149 # the test eventually succeeds (with a max line length of 256k).
11150 # Instead, let's just punt: use the minimum linelength reported by
11151 # all of the supported platforms: 8192 (on NT/2K/XP).
11152 lt_cv_sys_max_cmd_len=8192;
11153 ;;
11154
cristy0c60a692010-11-04 01:09:47 +000011155 mint*)
11156 # On MiNT this can take a long time and run out of memory.
11157 lt_cv_sys_max_cmd_len=8192;
11158 ;;
11159
cristy73bd4a52010-10-05 11:24:23 +000011160 amigaos*)
11161 # On AmigaOS with pdksh, this test takes hours, literally.
11162 # So we just punt and use a minimum line length of 8192.
11163 lt_cv_sys_max_cmd_len=8192;
11164 ;;
11165
11166 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11167 # This has been around since 386BSD, at least. Likely further.
11168 if test -x /sbin/sysctl; then
11169 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11170 elif test -x /usr/sbin/sysctl; then
11171 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11172 else
11173 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11174 fi
11175 # And add a safety zone
11176 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11178 ;;
11179
11180 interix*)
11181 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11182 lt_cv_sys_max_cmd_len=196608
11183 ;;
11184
cristy99bd5232011-12-07 14:38:20 +000011185 os2*)
11186 # The test takes a long time on OS/2.
11187 lt_cv_sys_max_cmd_len=8192
11188 ;;
11189
cristy73bd4a52010-10-05 11:24:23 +000011190 osf*)
11191 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11192 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11193 # nice to cause kernel panics so lets avoid the loop below.
11194 # First set a reasonable default.
11195 lt_cv_sys_max_cmd_len=16384
11196 #
11197 if test -x /sbin/sysconfig; then
11198 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11199 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11200 esac
11201 fi
11202 ;;
11203 sco3.2v5*)
11204 lt_cv_sys_max_cmd_len=102400
11205 ;;
11206 sysv5* | sco5v6* | sysv4.2uw2*)
11207 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11208 if test -n "$kargmax"; then
11209 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11210 else
11211 lt_cv_sys_max_cmd_len=32768
11212 fi
11213 ;;
11214 *)
11215 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11216 if test -n "$lt_cv_sys_max_cmd_len"; then
11217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11218 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11219 else
11220 # Make teststring a little bigger before we do anything with it.
11221 # a 1K string should be a reasonable start.
11222 for i in 1 2 3 4 5 6 7 8 ; do
11223 teststring=$teststring$teststring
11224 done
11225 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11226 # If test is not a shell built-in, we'll probably end up computing a
11227 # maximum length that is only half of the actual maximum length, but
11228 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011229 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011230 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011231 test $i != 17 # 1/2 MB should be enough
11232 do
11233 i=`expr $i + 1`
11234 teststring=$teststring$teststring
11235 done
11236 # Only check the string length outside the loop.
11237 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11238 teststring=
11239 # Add a significant safety factor because C++ compilers can tack on
11240 # massive amounts of additional arguments before passing them to the
11241 # linker. It appears as though 1/2 is a usable value.
11242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11243 fi
11244 ;;
11245 esac
11246
11247fi
11248
11249if test -n $lt_cv_sys_max_cmd_len ; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11251$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11252else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11254$as_echo "none" >&6; }
11255fi
11256max_cmd_len=$lt_cv_sys_max_cmd_len
11257
11258
11259
11260
11261
11262
11263: ${CP="cp -f"}
11264: ${MV="mv -f"}
11265: ${RM="rm -f"}
11266
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11268$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11269# Try some XSI features
11270xsi_shell=no
11271( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011272 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11273 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011274 && eval 'test $(( 1 + 1 )) -eq 2 \
11275 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11276 && xsi_shell=yes
11277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11278$as_echo "$xsi_shell" >&6; }
11279
11280
11281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11282$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11283lt_shell_append=no
11284( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11285 >/dev/null 2>&1 \
11286 && lt_shell_append=yes
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11288$as_echo "$lt_shell_append" >&6; }
11289
11290
11291if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11292 lt_unset=unset
11293else
11294 lt_unset=false
11295fi
11296
11297
11298
11299
11300
11301# test EBCDIC or ASCII
11302case `echo X|tr X '\101'` in
11303 A) # ASCII based system
11304 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11305 lt_SP2NL='tr \040 \012'
11306 lt_NL2SP='tr \015\012 \040\040'
11307 ;;
11308 *) # EBCDIC based system
11309 lt_SP2NL='tr \100 \n'
11310 lt_NL2SP='tr \r\n \100\100'
11311 ;;
11312esac
11313
11314
11315
11316
11317
11318
11319
11320
11321
cristyda16f162011-02-19 23:52:17 +000011322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11323$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11324if ${lt_cv_to_host_file_cmd+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326else
11327 case $host in
11328 *-*-mingw* )
11329 case $build in
11330 *-*-mingw* ) # actually msys
11331 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11332 ;;
11333 *-*-cygwin* )
11334 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11335 ;;
11336 * ) # otherwise, assume *nix
11337 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11338 ;;
11339 esac
11340 ;;
11341 *-*-cygwin* )
11342 case $build in
11343 *-*-mingw* ) # actually msys
11344 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11345 ;;
11346 *-*-cygwin* )
11347 lt_cv_to_host_file_cmd=func_convert_file_noop
11348 ;;
11349 * ) # otherwise, assume *nix
11350 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11351 ;;
11352 esac
11353 ;;
11354 * ) # unhandled hosts (and "normal" native builds)
11355 lt_cv_to_host_file_cmd=func_convert_file_noop
11356 ;;
11357esac
11358
11359fi
11360
11361to_host_file_cmd=$lt_cv_to_host_file_cmd
11362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11363$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11364
11365
11366
11367
11368
11369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11370$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11371if ${lt_cv_to_tool_file_cmd+:} false; then :
11372 $as_echo_n "(cached) " >&6
11373else
11374 #assume ordinary cross tools, or native build.
11375lt_cv_to_tool_file_cmd=func_convert_file_noop
11376case $host in
11377 *-*-mingw* )
11378 case $build in
11379 *-*-mingw* ) # actually msys
11380 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11381 ;;
11382 esac
11383 ;;
11384esac
11385
11386fi
11387
11388to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11390$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11391
11392
11393
11394
11395
cristy73bd4a52010-10-05 11:24:23 +000011396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11397$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011398if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011399 $as_echo_n "(cached) " >&6
11400else
11401 lt_cv_ld_reload_flag='-r'
11402fi
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11404$as_echo "$lt_cv_ld_reload_flag" >&6; }
11405reload_flag=$lt_cv_ld_reload_flag
11406case $reload_flag in
11407"" | " "*) ;;
11408*) reload_flag=" $reload_flag" ;;
11409esac
11410reload_cmds='$LD$reload_flag -o $output$reload_objs'
11411case $host_os in
cristyda16f162011-02-19 23:52:17 +000011412 cygwin* | mingw* | pw32* | cegcc*)
11413 if test "$GCC" != yes; then
11414 reload_cmds=false
11415 fi
11416 ;;
cristy73bd4a52010-10-05 11:24:23 +000011417 darwin*)
11418 if test "$GCC" = yes; then
11419 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11420 else
11421 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11422 fi
11423 ;;
11424esac
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434if test -n "$ac_tool_prefix"; then
11435 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11436set dummy ${ac_tool_prefix}objdump; ac_word=$2
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11438$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011439if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011440 $as_echo_n "(cached) " >&6
11441else
11442 if test -n "$OBJDUMP"; then
11443 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11444else
11445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446for as_dir in $PATH
11447do
11448 IFS=$as_save_IFS
11449 test -z "$as_dir" && as_dir=.
11450 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011452 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11454 break 2
11455 fi
11456done
11457 done
11458IFS=$as_save_IFS
11459
11460fi
11461fi
11462OBJDUMP=$ac_cv_prog_OBJDUMP
11463if test -n "$OBJDUMP"; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11465$as_echo "$OBJDUMP" >&6; }
11466else
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468$as_echo "no" >&6; }
11469fi
11470
11471
11472fi
11473if test -z "$ac_cv_prog_OBJDUMP"; then
11474 ac_ct_OBJDUMP=$OBJDUMP
11475 # Extract the first word of "objdump", so it can be a program name with args.
11476set dummy objdump; ac_word=$2
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011479if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011480 $as_echo_n "(cached) " >&6
11481else
11482 if test -n "$ac_ct_OBJDUMP"; then
11483 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11484else
11485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486for as_dir in $PATH
11487do
11488 IFS=$as_save_IFS
11489 test -z "$as_dir" && as_dir=.
11490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011492 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 break 2
11495 fi
11496done
11497 done
11498IFS=$as_save_IFS
11499
11500fi
11501fi
11502ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11503if test -n "$ac_ct_OBJDUMP"; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11505$as_echo "$ac_ct_OBJDUMP" >&6; }
11506else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508$as_echo "no" >&6; }
11509fi
11510
11511 if test "x$ac_ct_OBJDUMP" = x; then
11512 OBJDUMP="false"
11513 else
11514 case $cross_compiling:$ac_tool_warned in
11515yes:)
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11518ac_tool_warned=yes ;;
11519esac
11520 OBJDUMP=$ac_ct_OBJDUMP
11521 fi
11522else
11523 OBJDUMP="$ac_cv_prog_OBJDUMP"
11524fi
11525
11526test -z "$OBJDUMP" && OBJDUMP=objdump
11527
11528
11529
11530
11531
11532
11533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11534$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011535if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011536 $as_echo_n "(cached) " >&6
11537else
11538 lt_cv_file_magic_cmd='$MAGIC_CMD'
11539lt_cv_file_magic_test_file=
11540lt_cv_deplibs_check_method='unknown'
11541# Need to set the preceding variable on all platforms that support
11542# interlibrary dependencies.
11543# 'none' -- dependencies not supported.
11544# `unknown' -- same as none, but documents that we really don't know.
11545# 'pass_all' -- all dependencies passed with no checks.
11546# 'test_compile' -- check by making test program.
11547# 'file_magic [[regex]]' -- check by looking for files in library path
11548# which responds to the $file_magic_cmd with a given extended regex.
11549# If you have `file' or equivalent on your system and you're not sure
11550# whether `pass_all' will *always* work, you probably want this one.
11551
11552case $host_os in
11553aix[4-9]*)
11554 lt_cv_deplibs_check_method=pass_all
11555 ;;
11556
11557beos*)
11558 lt_cv_deplibs_check_method=pass_all
11559 ;;
11560
11561bsdi[45]*)
11562 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11563 lt_cv_file_magic_cmd='/usr/bin/file -L'
11564 lt_cv_file_magic_test_file=/shlib/libc.so
11565 ;;
11566
11567cygwin*)
11568 # func_win32_libid is a shell function defined in ltmain.sh
11569 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11570 lt_cv_file_magic_cmd='func_win32_libid'
11571 ;;
11572
11573mingw* | pw32*)
11574 # Base MSYS/MinGW do not provide the 'file' command needed by
11575 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11576 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011577 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11578 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011579 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11580 lt_cv_file_magic_cmd='func_win32_libid'
11581 else
cristy0c60a692010-11-04 01:09:47 +000011582 # Keep this pattern in sync with the one in func_win32_libid.
11583 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 +000011584 lt_cv_file_magic_cmd='$OBJDUMP -f'
11585 fi
11586 ;;
11587
cristy0c60a692010-11-04 01:09:47 +000011588cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011589 # use the weaker test based on 'objdump'. See mingw*.
11590 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11591 lt_cv_file_magic_cmd='$OBJDUMP -f'
11592 ;;
11593
11594darwin* | rhapsody*)
11595 lt_cv_deplibs_check_method=pass_all
11596 ;;
11597
11598freebsd* | dragonfly*)
11599 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11600 case $host_cpu in
11601 i*86 )
11602 # Not sure whether the presence of OpenBSD here was a mistake.
11603 # Let's accept both of them until this is cleared up.
11604 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11605 lt_cv_file_magic_cmd=/usr/bin/file
11606 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11607 ;;
11608 esac
11609 else
11610 lt_cv_deplibs_check_method=pass_all
11611 fi
11612 ;;
11613
11614gnu*)
11615 lt_cv_deplibs_check_method=pass_all
11616 ;;
11617
cristy0c60a692010-11-04 01:09:47 +000011618haiku*)
11619 lt_cv_deplibs_check_method=pass_all
11620 ;;
11621
cristy73bd4a52010-10-05 11:24:23 +000011622hpux10.20* | hpux11*)
11623 lt_cv_file_magic_cmd=/usr/bin/file
11624 case $host_cpu in
11625 ia64*)
11626 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11627 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11628 ;;
11629 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011630 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 +000011631 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11632 ;;
11633 *)
cristy0c60a692010-11-04 01:09:47 +000011634 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 +000011635 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11636 ;;
11637 esac
11638 ;;
11639
11640interix[3-9]*)
11641 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11643 ;;
11644
11645irix5* | irix6* | nonstopux*)
11646 case $LD in
11647 *-32|*"-32 ") libmagic=32-bit;;
11648 *-n32|*"-n32 ") libmagic=N32;;
11649 *-64|*"-64 ") libmagic=64-bit;;
11650 *) libmagic=never-match;;
11651 esac
11652 lt_cv_deplibs_check_method=pass_all
11653 ;;
11654
cristy99bd5232011-12-07 14:38:20 +000011655# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011656linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011657 lt_cv_deplibs_check_method=pass_all
11658 ;;
11659
11660netbsd*)
11661 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11663 else
11664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11665 fi
11666 ;;
11667
11668newos6*)
11669 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11670 lt_cv_file_magic_cmd=/usr/bin/file
11671 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11672 ;;
11673
11674*nto* | *qnx*)
11675 lt_cv_deplibs_check_method=pass_all
11676 ;;
11677
11678openbsd*)
11679 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11681 else
11682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11683 fi
11684 ;;
11685
11686osf3* | osf4* | osf5*)
11687 lt_cv_deplibs_check_method=pass_all
11688 ;;
11689
11690rdos*)
11691 lt_cv_deplibs_check_method=pass_all
11692 ;;
11693
11694solaris*)
11695 lt_cv_deplibs_check_method=pass_all
11696 ;;
11697
11698sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11699 lt_cv_deplibs_check_method=pass_all
11700 ;;
11701
11702sysv4 | sysv4.3*)
11703 case $host_vendor in
11704 motorola)
11705 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]'
11706 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11707 ;;
11708 ncr)
11709 lt_cv_deplibs_check_method=pass_all
11710 ;;
11711 sequent)
11712 lt_cv_file_magic_cmd='/bin/file'
11713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11714 ;;
11715 sni)
11716 lt_cv_file_magic_cmd='/bin/file'
11717 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11718 lt_cv_file_magic_test_file=/lib/libc.so
11719 ;;
11720 siemens)
11721 lt_cv_deplibs_check_method=pass_all
11722 ;;
11723 pc)
11724 lt_cv_deplibs_check_method=pass_all
11725 ;;
11726 esac
11727 ;;
11728
11729tpf*)
11730 lt_cv_deplibs_check_method=pass_all
11731 ;;
11732esac
11733
11734fi
11735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11736$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011737
11738file_magic_glob=
11739want_nocaseglob=no
11740if test "$build" = "$host"; then
11741 case $host_os in
11742 mingw* | pw32*)
11743 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11744 want_nocaseglob=yes
11745 else
11746 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11747 fi
11748 ;;
11749 esac
11750fi
11751
cristy73bd4a52010-10-05 11:24:23 +000011752file_magic_cmd=$lt_cv_file_magic_cmd
11753deplibs_check_method=$lt_cv_deplibs_check_method
11754test -z "$deplibs_check_method" && deplibs_check_method=unknown
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
cristyda16f162011-02-19 23:52:17 +000011767
11768
11769
11770
11771
11772
11773
11774
11775
11776
cristy73bd4a52010-10-05 11:24:23 +000011777if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011778 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11779set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011782if ${ac_cv_prog_DLLTOOL+:} false; then :
11783 $as_echo_n "(cached) " >&6
11784else
11785 if test -n "$DLLTOOL"; then
11786 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11787else
11788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789for as_dir in $PATH
11790do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011795 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797 break 2
11798 fi
11799done
11800 done
11801IFS=$as_save_IFS
11802
11803fi
11804fi
11805DLLTOOL=$ac_cv_prog_DLLTOOL
11806if test -n "$DLLTOOL"; then
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11808$as_echo "$DLLTOOL" >&6; }
11809else
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811$as_echo "no" >&6; }
11812fi
11813
11814
11815fi
11816if test -z "$ac_cv_prog_DLLTOOL"; then
11817 ac_ct_DLLTOOL=$DLLTOOL
11818 # Extract the first word of "dlltool", so it can be a program name with args.
11819set dummy dlltool; ac_word=$2
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821$as_echo_n "checking for $ac_word... " >&6; }
11822if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11823 $as_echo_n "(cached) " >&6
11824else
11825 if test -n "$ac_ct_DLLTOOL"; then
11826 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11827else
11828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829for as_dir in $PATH
11830do
11831 IFS=$as_save_IFS
11832 test -z "$as_dir" && as_dir=.
11833 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011835 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837 break 2
11838 fi
11839done
11840 done
11841IFS=$as_save_IFS
11842
11843fi
11844fi
11845ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11846if test -n "$ac_ct_DLLTOOL"; then
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11848$as_echo "$ac_ct_DLLTOOL" >&6; }
11849else
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851$as_echo "no" >&6; }
11852fi
11853
11854 if test "x$ac_ct_DLLTOOL" = x; then
11855 DLLTOOL="false"
11856 else
11857 case $cross_compiling:$ac_tool_warned in
11858yes:)
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11861ac_tool_warned=yes ;;
11862esac
11863 DLLTOOL=$ac_ct_DLLTOOL
11864 fi
11865else
11866 DLLTOOL="$ac_cv_prog_DLLTOOL"
11867fi
11868
11869test -z "$DLLTOOL" && DLLTOOL=dlltool
11870
11871
11872
11873
11874
11875
11876
11877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11878$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11879if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11880 $as_echo_n "(cached) " >&6
11881else
11882 lt_cv_sharedlib_from_linklib_cmd='unknown'
11883
11884case $host_os in
11885cygwin* | mingw* | pw32* | cegcc*)
11886 # two different shell functions defined in ltmain.sh
11887 # decide which to use based on capabilities of $DLLTOOL
11888 case `$DLLTOOL --help 2>&1` in
11889 *--identify-strict*)
11890 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11891 ;;
11892 *)
11893 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11894 ;;
11895 esac
11896 ;;
11897*)
11898 # fallback: assume linklib IS sharedlib
11899 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11900 ;;
11901esac
11902
11903fi
11904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11905$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11906sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11907test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11908
11909
11910
11911
11912
11913
11914
11915if test -n "$ac_tool_prefix"; then
11916 for ac_prog in ar
11917 do
11918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11919set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11921$as_echo_n "checking for $ac_word... " >&6; }
11922if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011923 $as_echo_n "(cached) " >&6
11924else
11925 if test -n "$AR"; then
11926 ac_cv_prog_AR="$AR" # Let the user override the test.
11927else
11928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929for as_dir in $PATH
11930do
11931 IFS=$as_save_IFS
11932 test -z "$as_dir" && as_dir=.
11933 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011935 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11937 break 2
11938 fi
11939done
11940 done
11941IFS=$as_save_IFS
11942
11943fi
11944fi
11945AR=$ac_cv_prog_AR
11946if test -n "$AR"; then
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11948$as_echo "$AR" >&6; }
11949else
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951$as_echo "no" >&6; }
11952fi
11953
11954
cristyda16f162011-02-19 23:52:17 +000011955 test -n "$AR" && break
11956 done
cristy73bd4a52010-10-05 11:24:23 +000011957fi
cristyda16f162011-02-19 23:52:17 +000011958if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011959 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011960 for ac_prog in ar
11961do
11962 # Extract the first word of "$ac_prog", so it can be a program name with args.
11963set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11965$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011966if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011967 $as_echo_n "(cached) " >&6
11968else
11969 if test -n "$ac_ct_AR"; then
11970 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11971else
11972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973for as_dir in $PATH
11974do
11975 IFS=$as_save_IFS
11976 test -z "$as_dir" && as_dir=.
11977 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011979 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11981 break 2
11982 fi
11983done
11984 done
11985IFS=$as_save_IFS
11986
11987fi
11988fi
11989ac_ct_AR=$ac_cv_prog_ac_ct_AR
11990if test -n "$ac_ct_AR"; then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11992$as_echo "$ac_ct_AR" >&6; }
11993else
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995$as_echo "no" >&6; }
11996fi
11997
cristyda16f162011-02-19 23:52:17 +000011998
11999 test -n "$ac_ct_AR" && break
12000done
12001
cristy73bd4a52010-10-05 11:24:23 +000012002 if test "x$ac_ct_AR" = x; then
12003 AR="false"
12004 else
12005 case $cross_compiling:$ac_tool_warned in
12006yes:)
12007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12009ac_tool_warned=yes ;;
12010esac
12011 AR=$ac_ct_AR
12012 fi
cristy73bd4a52010-10-05 11:24:23 +000012013fi
12014
cristyda16f162011-02-19 23:52:17 +000012015: ${AR=ar}
12016: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
cristyda16f162011-02-19 23:52:17 +000012028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12029$as_echo_n "checking for archiver @FILE support... " >&6; }
12030if ${lt_cv_ar_at_file+:} false; then :
12031 $as_echo_n "(cached) " >&6
12032else
12033 lt_cv_ar_at_file=no
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035/* end confdefs.h. */
12036
12037int
12038main ()
12039{
12040
12041 ;
12042 return 0;
12043}
12044_ACEOF
12045if ac_fn_c_try_compile "$LINENO"; then :
12046 echo conftest.$ac_objext > conftest.lst
12047 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12049 (eval $lt_ar_try) 2>&5
12050 ac_status=$?
12051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12052 test $ac_status = 0; }
12053 if test "$ac_status" -eq 0; then
12054 # Ensure the archiver fails upon bogus file names.
12055 rm -f conftest.$ac_objext libconftest.a
12056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12057 (eval $lt_ar_try) 2>&5
12058 ac_status=$?
12059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12060 test $ac_status = 0; }
12061 if test "$ac_status" -ne 0; then
12062 lt_cv_ar_at_file=@
12063 fi
12064 fi
12065 rm -f conftest.* libconftest.a
12066
12067fi
12068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069
12070fi
12071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12072$as_echo "$lt_cv_ar_at_file" >&6; }
12073
12074if test "x$lt_cv_ar_at_file" = xno; then
12075 archiver_list_spec=
12076else
12077 archiver_list_spec=$lt_cv_ar_at_file
12078fi
12079
12080
12081
12082
12083
12084
12085
cristy73bd4a52010-10-05 11:24:23 +000012086if test -n "$ac_tool_prefix"; then
12087 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12088set dummy ${ac_tool_prefix}strip; ac_word=$2
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012091if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012092 $as_echo_n "(cached) " >&6
12093else
12094 if test -n "$STRIP"; then
12095 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12096else
12097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $PATH
12099do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012104 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12106 break 2
12107 fi
12108done
12109 done
12110IFS=$as_save_IFS
12111
12112fi
12113fi
12114STRIP=$ac_cv_prog_STRIP
12115if test -n "$STRIP"; then
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12117$as_echo "$STRIP" >&6; }
12118else
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120$as_echo "no" >&6; }
12121fi
12122
12123
12124fi
12125if test -z "$ac_cv_prog_STRIP"; then
12126 ac_ct_STRIP=$STRIP
12127 # Extract the first word of "strip", so it can be a program name with args.
12128set dummy strip; ac_word=$2
12129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012131if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012132 $as_echo_n "(cached) " >&6
12133else
12134 if test -n "$ac_ct_STRIP"; then
12135 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12136else
12137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138for as_dir in $PATH
12139do
12140 IFS=$as_save_IFS
12141 test -z "$as_dir" && as_dir=.
12142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012144 ac_cv_prog_ac_ct_STRIP="strip"
12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12146 break 2
12147 fi
12148done
12149 done
12150IFS=$as_save_IFS
12151
12152fi
12153fi
12154ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12155if test -n "$ac_ct_STRIP"; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12157$as_echo "$ac_ct_STRIP" >&6; }
12158else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160$as_echo "no" >&6; }
12161fi
12162
12163 if test "x$ac_ct_STRIP" = x; then
12164 STRIP=":"
12165 else
12166 case $cross_compiling:$ac_tool_warned in
12167yes:)
12168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12170ac_tool_warned=yes ;;
12171esac
12172 STRIP=$ac_ct_STRIP
12173 fi
12174else
12175 STRIP="$ac_cv_prog_STRIP"
12176fi
12177
12178test -z "$STRIP" && STRIP=:
12179
12180
12181
12182
12183
12184
12185if test -n "$ac_tool_prefix"; then
12186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12187set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12189$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012190if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012191 $as_echo_n "(cached) " >&6
12192else
12193 if test -n "$RANLIB"; then
12194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12195else
12196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197for as_dir in $PATH
12198do
12199 IFS=$as_save_IFS
12200 test -z "$as_dir" && as_dir=.
12201 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12205 break 2
12206 fi
12207done
12208 done
12209IFS=$as_save_IFS
12210
12211fi
12212fi
12213RANLIB=$ac_cv_prog_RANLIB
12214if test -n "$RANLIB"; then
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12216$as_echo "$RANLIB" >&6; }
12217else
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219$as_echo "no" >&6; }
12220fi
12221
12222
12223fi
12224if test -z "$ac_cv_prog_RANLIB"; then
12225 ac_ct_RANLIB=$RANLIB
12226 # Extract the first word of "ranlib", so it can be a program name with args.
12227set dummy ranlib; ac_word=$2
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012230if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012231 $as_echo_n "(cached) " >&6
12232else
12233 if test -n "$ac_ct_RANLIB"; then
12234 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12235else
12236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237for as_dir in $PATH
12238do
12239 IFS=$as_save_IFS
12240 test -z "$as_dir" && as_dir=.
12241 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012243 ac_cv_prog_ac_ct_RANLIB="ranlib"
12244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12245 break 2
12246 fi
12247done
12248 done
12249IFS=$as_save_IFS
12250
12251fi
12252fi
12253ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12254if test -n "$ac_ct_RANLIB"; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12256$as_echo "$ac_ct_RANLIB" >&6; }
12257else
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259$as_echo "no" >&6; }
12260fi
12261
12262 if test "x$ac_ct_RANLIB" = x; then
12263 RANLIB=":"
12264 else
12265 case $cross_compiling:$ac_tool_warned in
12266yes:)
12267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12269ac_tool_warned=yes ;;
12270esac
12271 RANLIB=$ac_ct_RANLIB
12272 fi
12273else
12274 RANLIB="$ac_cv_prog_RANLIB"
12275fi
12276
12277test -z "$RANLIB" && RANLIB=:
12278
12279
12280
12281
12282
12283
12284# Determine commands to create old-style static archives.
12285old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12286old_postinstall_cmds='chmod 644 $oldlib'
12287old_postuninstall_cmds=
12288
12289if test -n "$RANLIB"; then
12290 case $host_os in
12291 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012292 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012293 ;;
12294 *)
cristy99bd5232011-12-07 14:38:20 +000012295 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012296 ;;
12297 esac
cristy99bd5232011-12-07 14:38:20 +000012298 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012299fi
12300
cristy0c60a692010-11-04 01:09:47 +000012301case $host_os in
12302 darwin*)
12303 lock_old_archive_extraction=yes ;;
12304 *)
12305 lock_old_archive_extraction=no ;;
12306esac
12307
12308
12309
12310
12311
12312
cristy73bd4a52010-10-05 11:24:23 +000012313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346# If no C compiler was specified, use CC.
12347LTCC=${LTCC-"$CC"}
12348
12349# If no C compiler flags were specified, use CFLAGS.
12350LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12351
12352# Allow CC to be a program name with arguments.
12353compiler=$CC
12354
12355
12356# Check for command to grab the raw symbol name followed by C symbol from nm.
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12358$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012359if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012360 $as_echo_n "(cached) " >&6
12361else
12362
12363# These are sane defaults that work on at least a few old systems.
12364# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12365
12366# Character class describing NM global symbol codes.
12367symcode='[BCDEGRST]'
12368
12369# Regexp to match symbols that can be accessed directly from C.
12370sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12371
12372# Define system-specific variables.
12373case $host_os in
12374aix*)
12375 symcode='[BCDT]'
12376 ;;
12377cygwin* | mingw* | pw32* | cegcc*)
12378 symcode='[ABCDGISTW]'
12379 ;;
12380hpux*)
12381 if test "$host_cpu" = ia64; then
12382 symcode='[ABCDEGRST]'
12383 fi
12384 ;;
12385irix* | nonstopux*)
12386 symcode='[BCDEGRST]'
12387 ;;
12388osf*)
12389 symcode='[BCDEGQRST]'
12390 ;;
12391solaris*)
12392 symcode='[BDRT]'
12393 ;;
12394sco3.2v5*)
12395 symcode='[DT]'
12396 ;;
12397sysv4.2uw2*)
12398 symcode='[DT]'
12399 ;;
12400sysv5* | sco5v6* | unixware* | OpenUNIX*)
12401 symcode='[ABDT]'
12402 ;;
12403sysv4)
12404 symcode='[DFNSTU]'
12405 ;;
12406esac
12407
12408# If we're using GNU nm, then use its standard symbol codes.
12409case `$NM -V 2>&1` in
12410*GNU* | *'with BFD'*)
12411 symcode='[ABCDGIRSTW]' ;;
12412esac
12413
12414# Transform an extracted symbol line into a proper C declaration.
12415# Some systems (esp. on ia64) link data and code symbols differently,
12416# so use this general approach.
12417lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12418
12419# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012420lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12421lt_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 +000012422
12423# Handle CRLF in mingw tool chain
12424opt_cr=
12425case $build_os in
12426mingw*)
12427 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12428 ;;
12429esac
12430
12431# Try without a prefix underscore, then with it.
12432for ac_symprfx in "" "_"; do
12433
12434 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12435 symxfrm="\\1 $ac_symprfx\\2 \\2"
12436
12437 # Write the raw and C identifiers.
12438 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12439 # Fake it for dumpbin and say T for any non-static function
12440 # and D for any global variable.
12441 # Also find C++ and __fastcall symbols from MSVC++,
12442 # which start with @ or ?.
12443 lt_cv_sys_global_symbol_pipe="$AWK '"\
12444" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012445" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012446" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12447" \$ 0!~/External *\|/{next};"\
12448" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12449" {if(hide[section]) next};"\
12450" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12451" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12452" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12453" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12454" ' prfx=^$ac_symprfx"
12455 else
12456 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12457 fi
cristyda16f162011-02-19 23:52:17 +000012458 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012459
12460 # Check to see that the pipe works correctly.
12461 pipe_works=no
12462
12463 rm -f conftest*
12464 cat > conftest.$ac_ext <<_LT_EOF
12465#ifdef __cplusplus
12466extern "C" {
12467#endif
12468char nm_test_var;
12469void nm_test_func(void);
12470void nm_test_func(void){}
12471#ifdef __cplusplus
12472}
12473#endif
12474int main(){nm_test_var='a';nm_test_func();return(0);}
12475_LT_EOF
12476
12477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12478 (eval $ac_compile) 2>&5
12479 ac_status=$?
12480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12481 test $ac_status = 0; }; then
12482 # Now try to grab the symbols.
12483 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12485 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012486 ac_status=$?
12487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12488 test $ac_status = 0; } && test -s "$nlist"; then
12489 # Try sorting and uniquifying the output.
12490 if sort "$nlist" | uniq > "$nlist"T; then
12491 mv -f "$nlist"T "$nlist"
12492 else
12493 rm -f "$nlist"T
12494 fi
12495
12496 # Make sure that we snagged all the symbols we need.
12497 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12498 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12499 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012500/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12501#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12502/* DATA imports from DLLs on WIN32 con't be const, because runtime
12503 relocations are performed -- see ld's documentation on pseudo-relocs. */
12504# define LT_DLSYM_CONST
12505#elif defined(__osf__)
12506/* This system does not cope well with relocations in const data. */
12507# define LT_DLSYM_CONST
12508#else
12509# define LT_DLSYM_CONST const
12510#endif
12511
cristy73bd4a52010-10-05 11:24:23 +000012512#ifdef __cplusplus
12513extern "C" {
12514#endif
12515
12516_LT_EOF
12517 # Now generate the symbol file.
12518 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12519
12520 cat <<_LT_EOF >> conftest.$ac_ext
12521
12522/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012523LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012524 const char *name;
12525 void *address;
12526}
12527lt__PROGRAM__LTX_preloaded_symbols[] =
12528{
12529 { "@PROGRAM@", (void *) 0 },
12530_LT_EOF
12531 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12532 cat <<\_LT_EOF >> conftest.$ac_ext
12533 {0, (void *) 0}
12534};
12535
12536/* This works around a problem in FreeBSD linker */
12537#ifdef FREEBSD_WORKAROUND
12538static const void *lt_preloaded_setup() {
12539 return lt__PROGRAM__LTX_preloaded_symbols;
12540}
12541#endif
12542
12543#ifdef __cplusplus
12544}
12545#endif
12546_LT_EOF
12547 # Now try linking the two files.
12548 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012549 lt_globsym_save_LIBS=$LIBS
12550 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012551 LIBS="conftstm.$ac_objext"
12552 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12554 (eval $ac_link) 2>&5
12555 ac_status=$?
12556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12557 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12558 pipe_works=yes
12559 fi
cristyda16f162011-02-19 23:52:17 +000012560 LIBS=$lt_globsym_save_LIBS
12561 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012562 else
12563 echo "cannot find nm_test_func in $nlist" >&5
12564 fi
12565 else
12566 echo "cannot find nm_test_var in $nlist" >&5
12567 fi
12568 else
12569 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12570 fi
12571 else
12572 echo "$progname: failed program was:" >&5
12573 cat conftest.$ac_ext >&5
12574 fi
12575 rm -rf conftest* conftst*
12576
12577 # Do not use the global_symbol_pipe unless it works.
12578 if test "$pipe_works" = yes; then
12579 break
12580 else
12581 lt_cv_sys_global_symbol_pipe=
12582 fi
12583done
12584
12585fi
12586
12587if test -z "$lt_cv_sys_global_symbol_pipe"; then
12588 lt_cv_sys_global_symbol_to_cdecl=
12589fi
12590if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12592$as_echo "failed" >&6; }
12593else
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12595$as_echo "ok" >&6; }
12596fi
12597
cristyda16f162011-02-19 23:52:17 +000012598# Response file support.
12599if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12600 nm_file_list_spec='@'
12601elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12602 nm_file_list_spec='@'
12603fi
cristy73bd4a52010-10-05 11:24:23 +000012604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
cristyda16f162011-02-19 23:52:17 +000012625
12626
12627
12628
12629
12630
12631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12632$as_echo_n "checking for sysroot... " >&6; }
12633
12634# Check whether --with-sysroot was given.
12635if test "${with_sysroot+set}" = set; then :
12636 withval=$with_sysroot;
12637else
12638 with_sysroot=no
12639fi
12640
12641
12642lt_sysroot=
12643case ${with_sysroot} in #(
12644 yes)
12645 if test "$GCC" = yes; then
12646 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12647 fi
12648 ;; #(
12649 /*)
12650 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12651 ;; #(
12652 no|'')
12653 ;; #(
12654 *)
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12656$as_echo "${with_sysroot}" >&6; }
12657 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12658 ;;
12659esac
12660
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12662$as_echo "${lt_sysroot:-no}" >&6; }
12663
12664
12665
12666
12667
cristy73bd4a52010-10-05 11:24:23 +000012668# Check whether --enable-libtool-lock was given.
12669if test "${enable_libtool_lock+set}" = set; then :
12670 enableval=$enable_libtool_lock;
12671fi
12672
12673test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12674
12675# Some flags need to be propagated to the compiler or linker for good
12676# libtool support.
12677case $host in
12678ia64-*-hpux*)
12679 # Find out which ABI we are using.
12680 echo 'int i;' > conftest.$ac_ext
12681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12682 (eval $ac_compile) 2>&5
12683 ac_status=$?
12684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12685 test $ac_status = 0; }; then
12686 case `/usr/bin/file conftest.$ac_objext` in
12687 *ELF-32*)
12688 HPUX_IA64_MODE="32"
12689 ;;
12690 *ELF-64*)
12691 HPUX_IA64_MODE="64"
12692 ;;
12693 esac
12694 fi
12695 rm -rf conftest*
12696 ;;
12697*-*-irix6*)
12698 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012699 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12701 (eval $ac_compile) 2>&5
12702 ac_status=$?
12703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12704 test $ac_status = 0; }; then
12705 if test "$lt_cv_prog_gnu_ld" = yes; then
12706 case `/usr/bin/file conftest.$ac_objext` in
12707 *32-bit*)
12708 LD="${LD-ld} -melf32bsmip"
12709 ;;
12710 *N32*)
12711 LD="${LD-ld} -melf32bmipn32"
12712 ;;
12713 *64-bit*)
12714 LD="${LD-ld} -melf64bmip"
12715 ;;
12716 esac
12717 else
12718 case `/usr/bin/file conftest.$ac_objext` in
12719 *32-bit*)
12720 LD="${LD-ld} -32"
12721 ;;
12722 *N32*)
12723 LD="${LD-ld} -n32"
12724 ;;
12725 *64-bit*)
12726 LD="${LD-ld} -64"
12727 ;;
12728 esac
12729 fi
12730 fi
12731 rm -rf conftest*
12732 ;;
12733
cristyd95b7a52013-10-23 13:12:53 +000012734x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000012735s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12736 # Find out which ABI we are using.
12737 echo 'int i;' > conftest.$ac_ext
12738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12739 (eval $ac_compile) 2>&5
12740 ac_status=$?
12741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12742 test $ac_status = 0; }; then
12743 case `/usr/bin/file conftest.o` in
12744 *32-bit*)
12745 case $host in
12746 x86_64-*kfreebsd*-gnu)
12747 LD="${LD-ld} -m elf_i386_fbsd"
12748 ;;
12749 x86_64-*linux*)
12750 LD="${LD-ld} -m elf_i386"
12751 ;;
cristya5bda012013-11-03 18:05:38 +000012752 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000012753 LD="${LD-ld} -m elf32lppclinux"
12754 ;;
cristya5bda012013-11-03 18:05:38 +000012755 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012756 LD="${LD-ld} -m elf32ppclinux"
12757 ;;
12758 s390x-*linux*)
12759 LD="${LD-ld} -m elf_s390"
12760 ;;
12761 sparc64-*linux*)
12762 LD="${LD-ld} -m elf32_sparc"
12763 ;;
12764 esac
12765 ;;
12766 *64-bit*)
12767 case $host in
12768 x86_64-*kfreebsd*-gnu)
12769 LD="${LD-ld} -m elf_x86_64_fbsd"
12770 ;;
12771 x86_64-*linux*)
12772 LD="${LD-ld} -m elf_x86_64"
12773 ;;
cristyd95b7a52013-10-23 13:12:53 +000012774 powerpcle-*linux*)
12775 LD="${LD-ld} -m elf64lppc"
12776 ;;
12777 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012778 LD="${LD-ld} -m elf64ppc"
12779 ;;
12780 s390*-*linux*|s390*-*tpf*)
12781 LD="${LD-ld} -m elf64_s390"
12782 ;;
12783 sparc*-*linux*)
12784 LD="${LD-ld} -m elf64_sparc"
12785 ;;
12786 esac
12787 ;;
12788 esac
12789 fi
12790 rm -rf conftest*
12791 ;;
12792
12793*-*-sco3.2v5*)
12794 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12795 SAVE_CFLAGS="$CFLAGS"
12796 CFLAGS="$CFLAGS -belf"
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12798$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012799if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012800 $as_echo_n "(cached) " >&6
12801else
12802 ac_ext=c
12803ac_cpp='$CPP $CPPFLAGS'
12804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12806ac_compiler_gnu=$ac_cv_c_compiler_gnu
12807
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809/* end confdefs.h. */
12810
12811int
12812main ()
12813{
12814
12815 ;
12816 return 0;
12817}
12818_ACEOF
12819if ac_fn_c_try_link "$LINENO"; then :
12820 lt_cv_cc_needs_belf=yes
12821else
12822 lt_cv_cc_needs_belf=no
12823fi
12824rm -f core conftest.err conftest.$ac_objext \
12825 conftest$ac_exeext conftest.$ac_ext
12826 ac_ext=c
12827ac_cpp='$CPP $CPPFLAGS'
12828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12830ac_compiler_gnu=$ac_cv_c_compiler_gnu
12831
12832fi
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12834$as_echo "$lt_cv_cc_needs_belf" >&6; }
12835 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12836 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12837 CFLAGS="$SAVE_CFLAGS"
12838 fi
12839 ;;
cristy99bd5232011-12-07 14:38:20 +000012840*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012841 # Find out which ABI we are using.
12842 echo 'int i;' > conftest.$ac_ext
12843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12844 (eval $ac_compile) 2>&5
12845 ac_status=$?
12846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12847 test $ac_status = 0; }; then
12848 case `/usr/bin/file conftest.o` in
12849 *64-bit*)
12850 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012851 yes*)
12852 case $host in
12853 i?86-*-solaris*)
12854 LD="${LD-ld} -m elf_x86_64"
12855 ;;
12856 sparc*-*-solaris*)
12857 LD="${LD-ld} -m elf64_sparc"
12858 ;;
12859 esac
12860 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12861 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12862 LD="${LD-ld}_sol2"
12863 fi
12864 ;;
cristy73bd4a52010-10-05 11:24:23 +000012865 *)
12866 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12867 LD="${LD-ld} -64"
12868 fi
12869 ;;
12870 esac
12871 ;;
12872 esac
12873 fi
12874 rm -rf conftest*
12875 ;;
12876esac
12877
12878need_locks="$enable_libtool_lock"
12879
cristyda16f162011-02-19 23:52:17 +000012880if test -n "$ac_tool_prefix"; then
12881 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12882set dummy ${ac_tool_prefix}mt; ac_word=$2
12883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12884$as_echo_n "checking for $ac_word... " >&6; }
12885if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12886 $as_echo_n "(cached) " >&6
12887else
12888 if test -n "$MANIFEST_TOOL"; then
12889 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12890else
12891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892for as_dir in $PATH
12893do
12894 IFS=$as_save_IFS
12895 test -z "$as_dir" && as_dir=.
12896 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012898 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12900 break 2
12901 fi
12902done
12903 done
12904IFS=$as_save_IFS
12905
12906fi
12907fi
12908MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12909if test -n "$MANIFEST_TOOL"; then
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12911$as_echo "$MANIFEST_TOOL" >&6; }
12912else
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914$as_echo "no" >&6; }
12915fi
12916
12917
12918fi
12919if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12920 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12921 # Extract the first word of "mt", so it can be a program name with args.
12922set dummy mt; ac_word=$2
12923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12924$as_echo_n "checking for $ac_word... " >&6; }
12925if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12926 $as_echo_n "(cached) " >&6
12927else
12928 if test -n "$ac_ct_MANIFEST_TOOL"; then
12929 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12930else
12931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12932for as_dir in $PATH
12933do
12934 IFS=$as_save_IFS
12935 test -z "$as_dir" && as_dir=.
12936 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012938 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12940 break 2
12941 fi
12942done
12943 done
12944IFS=$as_save_IFS
12945
12946fi
12947fi
12948ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12949if test -n "$ac_ct_MANIFEST_TOOL"; then
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12951$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12952else
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954$as_echo "no" >&6; }
12955fi
12956
12957 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12958 MANIFEST_TOOL=":"
12959 else
12960 case $cross_compiling:$ac_tool_warned in
12961yes:)
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12964ac_tool_warned=yes ;;
12965esac
12966 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12967 fi
12968else
12969 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12970fi
12971
12972test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12974$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12975if ${lt_cv_path_mainfest_tool+:} false; then :
12976 $as_echo_n "(cached) " >&6
12977else
12978 lt_cv_path_mainfest_tool=no
12979 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12980 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12981 cat conftest.err >&5
12982 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12983 lt_cv_path_mainfest_tool=yes
12984 fi
12985 rm -f conftest*
12986fi
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12988$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12989if test "x$lt_cv_path_mainfest_tool" != xyes; then
12990 MANIFEST_TOOL=:
12991fi
12992
12993
12994
12995
12996
cristy73bd4a52010-10-05 11:24:23 +000012997
12998 case $host_os in
12999 rhapsody* | darwin*)
13000 if test -n "$ac_tool_prefix"; then
13001 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13002set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13004$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013005if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013006 $as_echo_n "(cached) " >&6
13007else
13008 if test -n "$DSYMUTIL"; then
13009 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13010else
13011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012for as_dir in $PATH
13013do
13014 IFS=$as_save_IFS
13015 test -z "$as_dir" && as_dir=.
13016 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013018 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13020 break 2
13021 fi
13022done
13023 done
13024IFS=$as_save_IFS
13025
13026fi
13027fi
13028DSYMUTIL=$ac_cv_prog_DSYMUTIL
13029if test -n "$DSYMUTIL"; then
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13031$as_echo "$DSYMUTIL" >&6; }
13032else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034$as_echo "no" >&6; }
13035fi
13036
13037
13038fi
13039if test -z "$ac_cv_prog_DSYMUTIL"; then
13040 ac_ct_DSYMUTIL=$DSYMUTIL
13041 # Extract the first word of "dsymutil", so it can be a program name with args.
13042set dummy dsymutil; ac_word=$2
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013045if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013046 $as_echo_n "(cached) " >&6
13047else
13048 if test -n "$ac_ct_DSYMUTIL"; then
13049 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13050else
13051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052for as_dir in $PATH
13053do
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
13056 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013058 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13060 break 2
13061 fi
13062done
13063 done
13064IFS=$as_save_IFS
13065
13066fi
13067fi
13068ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13069if test -n "$ac_ct_DSYMUTIL"; then
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13071$as_echo "$ac_ct_DSYMUTIL" >&6; }
13072else
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074$as_echo "no" >&6; }
13075fi
13076
13077 if test "x$ac_ct_DSYMUTIL" = x; then
13078 DSYMUTIL=":"
13079 else
13080 case $cross_compiling:$ac_tool_warned in
13081yes:)
13082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13084ac_tool_warned=yes ;;
13085esac
13086 DSYMUTIL=$ac_ct_DSYMUTIL
13087 fi
13088else
13089 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13090fi
13091
13092 if test -n "$ac_tool_prefix"; then
13093 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13094set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013097if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013098 $as_echo_n "(cached) " >&6
13099else
13100 if test -n "$NMEDIT"; then
13101 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13102else
13103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104for as_dir in $PATH
13105do
13106 IFS=$as_save_IFS
13107 test -z "$as_dir" && as_dir=.
13108 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013110 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13112 break 2
13113 fi
13114done
13115 done
13116IFS=$as_save_IFS
13117
13118fi
13119fi
13120NMEDIT=$ac_cv_prog_NMEDIT
13121if test -n "$NMEDIT"; then
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13123$as_echo "$NMEDIT" >&6; }
13124else
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126$as_echo "no" >&6; }
13127fi
13128
13129
13130fi
13131if test -z "$ac_cv_prog_NMEDIT"; then
13132 ac_ct_NMEDIT=$NMEDIT
13133 # Extract the first word of "nmedit", so it can be a program name with args.
13134set dummy nmedit; ac_word=$2
13135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13136$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013137if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013138 $as_echo_n "(cached) " >&6
13139else
13140 if test -n "$ac_ct_NMEDIT"; then
13141 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13142else
13143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144for as_dir in $PATH
13145do
13146 IFS=$as_save_IFS
13147 test -z "$as_dir" && as_dir=.
13148 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013150 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13152 break 2
13153 fi
13154done
13155 done
13156IFS=$as_save_IFS
13157
13158fi
13159fi
13160ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13161if test -n "$ac_ct_NMEDIT"; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13163$as_echo "$ac_ct_NMEDIT" >&6; }
13164else
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166$as_echo "no" >&6; }
13167fi
13168
13169 if test "x$ac_ct_NMEDIT" = x; then
13170 NMEDIT=":"
13171 else
13172 case $cross_compiling:$ac_tool_warned in
13173yes:)
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13176ac_tool_warned=yes ;;
13177esac
13178 NMEDIT=$ac_ct_NMEDIT
13179 fi
13180else
13181 NMEDIT="$ac_cv_prog_NMEDIT"
13182fi
13183
13184 if test -n "$ac_tool_prefix"; then
13185 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13186set dummy ${ac_tool_prefix}lipo; ac_word=$2
13187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13188$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013189if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013190 $as_echo_n "(cached) " >&6
13191else
13192 if test -n "$LIPO"; then
13193 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13194else
13195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196for as_dir in $PATH
13197do
13198 IFS=$as_save_IFS
13199 test -z "$as_dir" && as_dir=.
13200 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013202 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13204 break 2
13205 fi
13206done
13207 done
13208IFS=$as_save_IFS
13209
13210fi
13211fi
13212LIPO=$ac_cv_prog_LIPO
13213if test -n "$LIPO"; then
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13215$as_echo "$LIPO" >&6; }
13216else
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218$as_echo "no" >&6; }
13219fi
13220
13221
13222fi
13223if test -z "$ac_cv_prog_LIPO"; then
13224 ac_ct_LIPO=$LIPO
13225 # Extract the first word of "lipo", so it can be a program name with args.
13226set dummy lipo; ac_word=$2
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13228$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013229if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013230 $as_echo_n "(cached) " >&6
13231else
13232 if test -n "$ac_ct_LIPO"; then
13233 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13234else
13235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13236for as_dir in $PATH
13237do
13238 IFS=$as_save_IFS
13239 test -z "$as_dir" && as_dir=.
13240 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013242 ac_cv_prog_ac_ct_LIPO="lipo"
13243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13244 break 2
13245 fi
13246done
13247 done
13248IFS=$as_save_IFS
13249
13250fi
13251fi
13252ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13253if test -n "$ac_ct_LIPO"; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13255$as_echo "$ac_ct_LIPO" >&6; }
13256else
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258$as_echo "no" >&6; }
13259fi
13260
13261 if test "x$ac_ct_LIPO" = x; then
13262 LIPO=":"
13263 else
13264 case $cross_compiling:$ac_tool_warned in
13265yes:)
13266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13268ac_tool_warned=yes ;;
13269esac
13270 LIPO=$ac_ct_LIPO
13271 fi
13272else
13273 LIPO="$ac_cv_prog_LIPO"
13274fi
13275
13276 if test -n "$ac_tool_prefix"; then
13277 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13278set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013282 $as_echo_n "(cached) " >&6
13283else
13284 if test -n "$OTOOL"; then
13285 ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
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
13304OTOOL=$ac_cv_prog_OTOOL
13305if test -n "$OTOOL"; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13307$as_echo "$OTOOL" >&6; }
13308else
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310$as_echo "no" >&6; }
13311fi
13312
13313
13314fi
13315if test -z "$ac_cv_prog_OTOOL"; then
13316 ac_ct_OTOOL=$OTOOL
13317 # Extract the first word of "otool", so it can be a program name with args.
13318set dummy otool; ac_word=$2
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013321if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013322 $as_echo_n "(cached) " >&6
13323else
13324 if test -n "$ac_ct_OTOOL"; then
13325 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13326else
13327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13328for as_dir in $PATH
13329do
13330 IFS=$as_save_IFS
13331 test -z "$as_dir" && as_dir=.
13332 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013334 ac_cv_prog_ac_ct_OTOOL="otool"
13335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13336 break 2
13337 fi
13338done
13339 done
13340IFS=$as_save_IFS
13341
13342fi
13343fi
13344ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13345if test -n "$ac_ct_OTOOL"; then
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13347$as_echo "$ac_ct_OTOOL" >&6; }
13348else
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350$as_echo "no" >&6; }
13351fi
13352
13353 if test "x$ac_ct_OTOOL" = x; then
13354 OTOOL=":"
13355 else
13356 case $cross_compiling:$ac_tool_warned in
13357yes:)
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13360ac_tool_warned=yes ;;
13361esac
13362 OTOOL=$ac_ct_OTOOL
13363 fi
13364else
13365 OTOOL="$ac_cv_prog_OTOOL"
13366fi
13367
13368 if test -n "$ac_tool_prefix"; then
13369 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13370set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013374 $as_echo_n "(cached) " >&6
13375else
13376 if test -n "$OTOOL64"; then
13377 ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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
13396OTOOL64=$ac_cv_prog_OTOOL64
13397if test -n "$OTOOL64"; then
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13399$as_echo "$OTOOL64" >&6; }
13400else
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402$as_echo "no" >&6; }
13403fi
13404
13405
13406fi
13407if test -z "$ac_cv_prog_OTOOL64"; then
13408 ac_ct_OTOOL64=$OTOOL64
13409 # Extract the first word of "otool64", so it can be a program name with args.
13410set dummy otool64; ac_word=$2
13411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13412$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013413if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013414 $as_echo_n "(cached) " >&6
13415else
13416 if test -n "$ac_ct_OTOOL64"; then
13417 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13418else
13419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13420for as_dir in $PATH
13421do
13422 IFS=$as_save_IFS
13423 test -z "$as_dir" && as_dir=.
13424 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013426 ac_cv_prog_ac_ct_OTOOL64="otool64"
13427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13428 break 2
13429 fi
13430done
13431 done
13432IFS=$as_save_IFS
13433
13434fi
13435fi
13436ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13437if test -n "$ac_ct_OTOOL64"; then
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13439$as_echo "$ac_ct_OTOOL64" >&6; }
13440else
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442$as_echo "no" >&6; }
13443fi
13444
13445 if test "x$ac_ct_OTOOL64" = x; then
13446 OTOOL64=":"
13447 else
13448 case $cross_compiling:$ac_tool_warned in
13449yes:)
13450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13452ac_tool_warned=yes ;;
13453esac
13454 OTOOL64=$ac_ct_OTOOL64
13455 fi
13456else
13457 OTOOL64="$ac_cv_prog_OTOOL64"
13458fi
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13487$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013488if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013489 $as_echo_n "(cached) " >&6
13490else
13491 lt_cv_apple_cc_single_mod=no
13492 if test -z "${LT_MULTI_MODULE}"; then
13493 # By default we will add the -single_module flag. You can override
13494 # by either setting the environment variable LT_MULTI_MODULE
13495 # non-empty at configure time, or by adding -multi_module to the
13496 # link flags.
13497 rm -rf libconftest.dylib*
13498 echo "int foo(void){return 1;}" > conftest.c
13499 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13500-dynamiclib -Wl,-single_module conftest.c" >&5
13501 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13502 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13503 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013504 # If there is a non-empty error log, and "single_module"
13505 # appears in it, assume the flag caused a linker warning
13506 if test -s conftest.err && $GREP single_module conftest.err; then
13507 cat conftest.err >&5
13508 # Otherwise, if the output was created with a 0 exit code from
13509 # the compiler, it worked.
13510 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013511 lt_cv_apple_cc_single_mod=yes
13512 else
13513 cat conftest.err >&5
13514 fi
13515 rm -rf libconftest.dylib*
13516 rm -f conftest.*
13517 fi
13518fi
13519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13520$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013521
cristy73bd4a52010-10-05 11:24:23 +000013522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13523$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013524if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013525 $as_echo_n "(cached) " >&6
13526else
13527 lt_cv_ld_exported_symbols_list=no
13528 save_LDFLAGS=$LDFLAGS
13529 echo "_main" > conftest.sym
13530 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532/* end confdefs.h. */
13533
13534int
13535main ()
13536{
13537
13538 ;
13539 return 0;
13540}
13541_ACEOF
13542if ac_fn_c_try_link "$LINENO"; then :
13543 lt_cv_ld_exported_symbols_list=yes
13544else
13545 lt_cv_ld_exported_symbols_list=no
13546fi
13547rm -f core conftest.err conftest.$ac_objext \
13548 conftest$ac_exeext conftest.$ac_ext
13549 LDFLAGS="$save_LDFLAGS"
13550
13551fi
13552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13553$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013554
cristy0c60a692010-11-04 01:09:47 +000013555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13556$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013557if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013558 $as_echo_n "(cached) " >&6
13559else
13560 lt_cv_ld_force_load=no
13561 cat > conftest.c << _LT_EOF
13562int forced_loaded() { return 2;}
13563_LT_EOF
13564 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13565 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13566 echo "$AR cru libconftest.a conftest.o" >&5
13567 $AR cru libconftest.a conftest.o 2>&5
13568 echo "$RANLIB libconftest.a" >&5
13569 $RANLIB libconftest.a 2>&5
13570 cat > conftest.c << _LT_EOF
13571int main() { return 0;}
13572_LT_EOF
13573 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13574 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13575 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013576 if test -s conftest.err && $GREP force_load conftest.err; then
13577 cat conftest.err >&5
13578 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013579 lt_cv_ld_force_load=yes
13580 else
13581 cat conftest.err >&5
13582 fi
13583 rm -f conftest.err libconftest.a conftest conftest.c
13584 rm -rf conftest.dSYM
13585
13586fi
13587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13588$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013589 case $host_os in
13590 rhapsody* | darwin1.[012])
13591 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13592 darwin1.*)
13593 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13594 darwin*) # darwin 5.x on
13595 # if running on 10.5 or later, the deployment target defaults
13596 # to the OS version, if on x86, and 10.4, the deployment
13597 # target defaults to 10.4. Don't you love it?
13598 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13599 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13600 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13601 10.[012]*)
13602 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13603 10.*)
13604 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13605 esac
13606 ;;
13607 esac
13608 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13609 _lt_dar_single_mod='$single_module'
13610 fi
13611 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13612 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13613 else
13614 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13615 fi
cristy0c60a692010-11-04 01:09:47 +000013616 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013617 _lt_dsymutil='~$DSYMUTIL $lib || :'
13618 else
13619 _lt_dsymutil=
13620 fi
13621 ;;
13622 esac
13623
13624for ac_header in dlfcn.h
13625do :
13626 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13627"
cristyda16f162011-02-19 23:52:17 +000013628if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013629 cat >>confdefs.h <<_ACEOF
13630#define HAVE_DLFCN_H 1
13631_ACEOF
13632
13633fi
13634
13635done
13636
13637
13638
cristy73bd4a52010-10-05 11:24:23 +000013639
cristyda16f162011-02-19 23:52:17 +000013640func_stripname_cnf ()
13641{
13642 case ${2} in
13643 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13644 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13645 esac
13646} # func_stripname_cnf
13647
13648
13649
cristy73bd4a52010-10-05 11:24:23 +000013650
13651
13652# Set options
13653enable_win32_dll=yes
13654
13655case $host in
cristy0c60a692010-11-04 01:09:47 +000013656*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013657 if test -n "$ac_tool_prefix"; then
13658 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13659set dummy ${ac_tool_prefix}as; ac_word=$2
13660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13661$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013662if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013663 $as_echo_n "(cached) " >&6
13664else
13665 if test -n "$AS"; then
13666 ac_cv_prog_AS="$AS" # Let the user override the test.
13667else
13668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669for as_dir in $PATH
13670do
13671 IFS=$as_save_IFS
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013675 ac_cv_prog_AS="${ac_tool_prefix}as"
13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13677 break 2
13678 fi
13679done
13680 done
13681IFS=$as_save_IFS
13682
13683fi
13684fi
13685AS=$ac_cv_prog_AS
13686if test -n "$AS"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13688$as_echo "$AS" >&6; }
13689else
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691$as_echo "no" >&6; }
13692fi
13693
13694
13695fi
13696if test -z "$ac_cv_prog_AS"; then
13697 ac_ct_AS=$AS
13698 # Extract the first word of "as", so it can be a program name with args.
13699set dummy as; ac_word=$2
13700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13701$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013702if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013703 $as_echo_n "(cached) " >&6
13704else
13705 if test -n "$ac_ct_AS"; then
13706 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13707else
13708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13709for as_dir in $PATH
13710do
13711 IFS=$as_save_IFS
13712 test -z "$as_dir" && as_dir=.
13713 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013715 ac_cv_prog_ac_ct_AS="as"
13716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13717 break 2
13718 fi
13719done
13720 done
13721IFS=$as_save_IFS
13722
13723fi
13724fi
13725ac_ct_AS=$ac_cv_prog_ac_ct_AS
13726if test -n "$ac_ct_AS"; then
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13728$as_echo "$ac_ct_AS" >&6; }
13729else
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731$as_echo "no" >&6; }
13732fi
13733
13734 if test "x$ac_ct_AS" = x; then
13735 AS="false"
13736 else
13737 case $cross_compiling:$ac_tool_warned in
13738yes:)
13739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13741ac_tool_warned=yes ;;
13742esac
13743 AS=$ac_ct_AS
13744 fi
13745else
13746 AS="$ac_cv_prog_AS"
13747fi
13748
13749 if test -n "$ac_tool_prefix"; then
13750 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13751set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13753$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013754if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013755 $as_echo_n "(cached) " >&6
13756else
13757 if test -n "$DLLTOOL"; then
13758 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13759else
13760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761for as_dir in $PATH
13762do
13763 IFS=$as_save_IFS
13764 test -z "$as_dir" && as_dir=.
13765 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013767 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 break 2
13770 fi
13771done
13772 done
13773IFS=$as_save_IFS
13774
13775fi
13776fi
13777DLLTOOL=$ac_cv_prog_DLLTOOL
13778if test -n "$DLLTOOL"; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13780$as_echo "$DLLTOOL" >&6; }
13781else
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783$as_echo "no" >&6; }
13784fi
13785
13786
13787fi
13788if test -z "$ac_cv_prog_DLLTOOL"; then
13789 ac_ct_DLLTOOL=$DLLTOOL
13790 # Extract the first word of "dlltool", so it can be a program name with args.
13791set dummy dlltool; ac_word=$2
13792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013794if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013795 $as_echo_n "(cached) " >&6
13796else
13797 if test -n "$ac_ct_DLLTOOL"; then
13798 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13799else
13800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801for as_dir in $PATH
13802do
13803 IFS=$as_save_IFS
13804 test -z "$as_dir" && as_dir=.
13805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013807 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13809 break 2
13810 fi
13811done
13812 done
13813IFS=$as_save_IFS
13814
13815fi
13816fi
13817ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13818if test -n "$ac_ct_DLLTOOL"; then
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13820$as_echo "$ac_ct_DLLTOOL" >&6; }
13821else
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13823$as_echo "no" >&6; }
13824fi
13825
13826 if test "x$ac_ct_DLLTOOL" = x; then
13827 DLLTOOL="false"
13828 else
13829 case $cross_compiling:$ac_tool_warned in
13830yes:)
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13833ac_tool_warned=yes ;;
13834esac
13835 DLLTOOL=$ac_ct_DLLTOOL
13836 fi
13837else
13838 DLLTOOL="$ac_cv_prog_DLLTOOL"
13839fi
13840
13841 if test -n "$ac_tool_prefix"; then
13842 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13843set dummy ${ac_tool_prefix}objdump; ac_word=$2
13844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13845$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013846if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013847 $as_echo_n "(cached) " >&6
13848else
13849 if test -n "$OBJDUMP"; then
13850 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13851else
13852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13853for as_dir in $PATH
13854do
13855 IFS=$as_save_IFS
13856 test -z "$as_dir" && as_dir=.
13857 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013859 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13861 break 2
13862 fi
13863done
13864 done
13865IFS=$as_save_IFS
13866
13867fi
13868fi
13869OBJDUMP=$ac_cv_prog_OBJDUMP
13870if test -n "$OBJDUMP"; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13872$as_echo "$OBJDUMP" >&6; }
13873else
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875$as_echo "no" >&6; }
13876fi
13877
13878
13879fi
13880if test -z "$ac_cv_prog_OBJDUMP"; then
13881 ac_ct_OBJDUMP=$OBJDUMP
13882 # Extract the first word of "objdump", so it can be a program name with args.
13883set dummy objdump; ac_word=$2
13884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13885$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013886if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013887 $as_echo_n "(cached) " >&6
13888else
13889 if test -n "$ac_ct_OBJDUMP"; then
13890 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13891else
13892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13893for as_dir in $PATH
13894do
13895 IFS=$as_save_IFS
13896 test -z "$as_dir" && as_dir=.
13897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013899 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13901 break 2
13902 fi
13903done
13904 done
13905IFS=$as_save_IFS
13906
13907fi
13908fi
13909ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13910if test -n "$ac_ct_OBJDUMP"; then
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13912$as_echo "$ac_ct_OBJDUMP" >&6; }
13913else
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13915$as_echo "no" >&6; }
13916fi
13917
13918 if test "x$ac_ct_OBJDUMP" = x; then
13919 OBJDUMP="false"
13920 else
13921 case $cross_compiling:$ac_tool_warned in
13922yes:)
13923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13925ac_tool_warned=yes ;;
13926esac
13927 OBJDUMP=$ac_ct_OBJDUMP
13928 fi
13929else
13930 OBJDUMP="$ac_cv_prog_OBJDUMP"
13931fi
13932
13933 ;;
13934esac
13935
13936test -z "$AS" && AS=as
13937
13938
13939
13940
13941
13942test -z "$DLLTOOL" && DLLTOOL=dlltool
13943
13944
13945
13946
13947
13948test -z "$OBJDUMP" && OBJDUMP=objdump
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958 # Check whether --enable-shared was given.
13959if test "${enable_shared+set}" = set; then :
13960 enableval=$enable_shared; p=${PACKAGE-default}
13961 case $enableval in
13962 yes) enable_shared=yes ;;
13963 no) enable_shared=no ;;
13964 *)
13965 enable_shared=no
13966 # Look at the argument we got. We use all the common list separators.
13967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13968 for pkg in $enableval; do
13969 IFS="$lt_save_ifs"
13970 if test "X$pkg" = "X$p"; then
13971 enable_shared=yes
13972 fi
13973 done
13974 IFS="$lt_save_ifs"
13975 ;;
13976 esac
13977else
13978 enable_shared=yes
13979fi
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989 # Check whether --enable-static was given.
13990if test "${enable_static+set}" = set; then :
13991 enableval=$enable_static; p=${PACKAGE-default}
13992 case $enableval in
13993 yes) enable_static=yes ;;
13994 no) enable_static=no ;;
13995 *)
13996 enable_static=no
13997 # Look at the argument we got. We use all the common list separators.
13998 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13999 for pkg in $enableval; do
14000 IFS="$lt_save_ifs"
14001 if test "X$pkg" = "X$p"; then
14002 enable_static=yes
14003 fi
14004 done
14005 IFS="$lt_save_ifs"
14006 ;;
14007 esac
14008else
14009 enable_static=yes
14010fi
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021# Check whether --with-pic was given.
14022if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014023 withval=$with_pic; lt_p=${PACKAGE-default}
14024 case $withval in
14025 yes|no) pic_mode=$withval ;;
14026 *)
14027 pic_mode=default
14028 # Look at the argument we got. We use all the common list separators.
14029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14030 for lt_pkg in $withval; do
14031 IFS="$lt_save_ifs"
14032 if test "X$lt_pkg" = "X$lt_p"; then
14033 pic_mode=yes
14034 fi
14035 done
14036 IFS="$lt_save_ifs"
14037 ;;
14038 esac
cristy73bd4a52010-10-05 11:24:23 +000014039else
14040 pic_mode=default
14041fi
14042
14043
14044test -z "$pic_mode" && pic_mode=default
14045
14046
14047
14048
14049
14050
14051
14052 # Check whether --enable-fast-install was given.
14053if test "${enable_fast_install+set}" = set; then :
14054 enableval=$enable_fast_install; p=${PACKAGE-default}
14055 case $enableval in
14056 yes) enable_fast_install=yes ;;
14057 no) enable_fast_install=no ;;
14058 *)
14059 enable_fast_install=no
14060 # Look at the argument we got. We use all the common list separators.
14061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14062 for pkg in $enableval; do
14063 IFS="$lt_save_ifs"
14064 if test "X$pkg" = "X$p"; then
14065 enable_fast_install=yes
14066 fi
14067 done
14068 IFS="$lt_save_ifs"
14069 ;;
14070 esac
14071else
14072 enable_fast_install=yes
14073fi
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085# This can be used to rebuild libtool when needed
14086LIBTOOL_DEPS="$ltmain"
14087
14088# Always use our own libtool.
14089LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
cristy0c60a692010-11-04 01:09:47 +000014115
cristy99bd5232011-12-07 14:38:20 +000014116
14117
14118
14119
cristy73bd4a52010-10-05 11:24:23 +000014120test -z "$LN_S" && LN_S="ln -s"
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135if test -n "${ZSH_VERSION+set}" ; then
14136 setopt NO_GLOB_SUBST
14137fi
14138
14139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14140$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014141if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014142 $as_echo_n "(cached) " >&6
14143else
14144 rm -f .libs 2>/dev/null
14145mkdir .libs 2>/dev/null
14146if test -d .libs; then
14147 lt_cv_objdir=.libs
14148else
14149 # MS-DOS does not allow filenames that begin with a dot.
14150 lt_cv_objdir=_libs
14151fi
14152rmdir .libs 2>/dev/null
14153fi
14154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14155$as_echo "$lt_cv_objdir" >&6; }
14156objdir=$lt_cv_objdir
14157
14158
14159
14160
14161
14162cat >>confdefs.h <<_ACEOF
14163#define LT_OBJDIR "$lt_cv_objdir/"
14164_ACEOF
14165
14166
14167
14168
cristy73bd4a52010-10-05 11:24:23 +000014169case $host_os in
14170aix3*)
14171 # AIX sometimes has problems with the GCC collect2 program. For some
14172 # reason, if we set the COLLECT_NAMES environment variable, the problems
14173 # vanish in a puff of smoke.
14174 if test "X${COLLECT_NAMES+set}" != Xset; then
14175 COLLECT_NAMES=
14176 export COLLECT_NAMES
14177 fi
14178 ;;
14179esac
14180
cristy73bd4a52010-10-05 11:24:23 +000014181# Global variables:
14182ofile=libtool
14183can_build_shared=yes
14184
14185# All known linkers require a `.a' archive for static linking (except MSVC,
14186# which needs '.lib').
14187libext=a
14188
14189with_gnu_ld="$lt_cv_prog_gnu_ld"
14190
14191old_CC="$CC"
14192old_CFLAGS="$CFLAGS"
14193
14194# Set sane defaults for various variables
14195test -z "$CC" && CC=cc
14196test -z "$LTCC" && LTCC=$CC
14197test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14198test -z "$LD" && LD=ld
14199test -z "$ac_objext" && ac_objext=o
14200
14201for cc_temp in $compiler""; do
14202 case $cc_temp in
14203 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14204 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14205 \-*) ;;
14206 *) break;;
14207 esac
14208done
cristy0c60a692010-11-04 01:09:47 +000014209cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014210
14211
14212# Only perform the check for file, if the check method requires it
14213test -z "$MAGIC_CMD" && MAGIC_CMD=file
14214case $deplibs_check_method in
14215file_magic*)
14216 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14218$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014219if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014220 $as_echo_n "(cached) " >&6
14221else
14222 case $MAGIC_CMD in
14223[\\/*] | ?:[\\/]*)
14224 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14225 ;;
14226*)
14227 lt_save_MAGIC_CMD="$MAGIC_CMD"
14228 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14229 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14230 for ac_dir in $ac_dummy; do
14231 IFS="$lt_save_ifs"
14232 test -z "$ac_dir" && ac_dir=.
14233 if test -f $ac_dir/${ac_tool_prefix}file; then
14234 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14235 if test -n "$file_magic_test_file"; then
14236 case $deplibs_check_method in
14237 "file_magic "*)
14238 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14239 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14240 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14241 $EGREP "$file_magic_regex" > /dev/null; then
14242 :
14243 else
14244 cat <<_LT_EOF 1>&2
14245
14246*** Warning: the command libtool uses to detect shared libraries,
14247*** $file_magic_cmd, produces output that libtool cannot recognize.
14248*** The result is that libtool may fail to recognize shared libraries
14249*** as such. This will affect the creation of libtool libraries that
14250*** depend on shared libraries, but programs linked with such libtool
14251*** libraries will work regardless of this problem. Nevertheless, you
14252*** may want to report the problem to your system manager and/or to
14253*** bug-libtool@gnu.org
14254
14255_LT_EOF
14256 fi ;;
14257 esac
14258 fi
14259 break
14260 fi
14261 done
14262 IFS="$lt_save_ifs"
14263 MAGIC_CMD="$lt_save_MAGIC_CMD"
14264 ;;
14265esac
14266fi
14267
14268MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14269if test -n "$MAGIC_CMD"; then
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14271$as_echo "$MAGIC_CMD" >&6; }
14272else
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14274$as_echo "no" >&6; }
14275fi
14276
14277
14278
14279
14280
14281if test -z "$lt_cv_path_MAGIC_CMD"; then
14282 if test -n "$ac_tool_prefix"; then
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14284$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014285if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014286 $as_echo_n "(cached) " >&6
14287else
14288 case $MAGIC_CMD in
14289[\\/*] | ?:[\\/]*)
14290 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14291 ;;
14292*)
14293 lt_save_MAGIC_CMD="$MAGIC_CMD"
14294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14295 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14296 for ac_dir in $ac_dummy; do
14297 IFS="$lt_save_ifs"
14298 test -z "$ac_dir" && ac_dir=.
14299 if test -f $ac_dir/file; then
14300 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14301 if test -n "$file_magic_test_file"; then
14302 case $deplibs_check_method in
14303 "file_magic "*)
14304 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14305 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14306 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14307 $EGREP "$file_magic_regex" > /dev/null; then
14308 :
14309 else
14310 cat <<_LT_EOF 1>&2
14311
14312*** Warning: the command libtool uses to detect shared libraries,
14313*** $file_magic_cmd, produces output that libtool cannot recognize.
14314*** The result is that libtool may fail to recognize shared libraries
14315*** as such. This will affect the creation of libtool libraries that
14316*** depend on shared libraries, but programs linked with such libtool
14317*** libraries will work regardless of this problem. Nevertheless, you
14318*** may want to report the problem to your system manager and/or to
14319*** bug-libtool@gnu.org
14320
14321_LT_EOF
14322 fi ;;
14323 esac
14324 fi
14325 break
14326 fi
14327 done
14328 IFS="$lt_save_ifs"
14329 MAGIC_CMD="$lt_save_MAGIC_CMD"
14330 ;;
14331esac
14332fi
14333
14334MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14335if test -n "$MAGIC_CMD"; then
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14337$as_echo "$MAGIC_CMD" >&6; }
14338else
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340$as_echo "no" >&6; }
14341fi
14342
14343
14344 else
14345 MAGIC_CMD=:
14346 fi
14347fi
14348
14349 fi
14350 ;;
14351esac
14352
14353# Use C for the default configuration in the libtool script
14354
14355lt_save_CC="$CC"
14356ac_ext=c
14357ac_cpp='$CPP $CPPFLAGS'
14358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14360ac_compiler_gnu=$ac_cv_c_compiler_gnu
14361
14362
14363# Source file extension for C test sources.
14364ac_ext=c
14365
14366# Object file extension for compiled C test sources.
14367objext=o
14368objext=$objext
14369
14370# Code to be used in simple compile tests
14371lt_simple_compile_test_code="int some_variable = 0;"
14372
14373# Code to be used in simple link tests
14374lt_simple_link_test_code='int main(){return(0);}'
14375
14376
14377
14378
14379
14380
14381
14382# If no C compiler was specified, use CC.
14383LTCC=${LTCC-"$CC"}
14384
14385# If no C compiler flags were specified, use CFLAGS.
14386LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14387
14388# Allow CC to be a program name with arguments.
14389compiler=$CC
14390
14391# Save the default compiler, since it gets overwritten when the other
14392# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14393compiler_DEFAULT=$CC
14394
14395# save warnings/boilerplate of simple test code
14396ac_outfile=conftest.$ac_objext
14397echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14398eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14399_lt_compiler_boilerplate=`cat conftest.err`
14400$RM conftest*
14401
14402ac_outfile=conftest.$ac_objext
14403echo "$lt_simple_link_test_code" >conftest.$ac_ext
14404eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14405_lt_linker_boilerplate=`cat conftest.err`
14406$RM -r conftest*
14407
14408
14409## CAVEAT EMPTOR:
14410## There is no encapsulation within the following macros, do not change
14411## the running order or otherwise move them around unless you know exactly
14412## what you are doing...
14413if test -n "$compiler"; then
14414
14415lt_prog_compiler_no_builtin_flag=
14416
14417if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014418 case $cc_basename in
14419 nvcc*)
14420 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14421 *)
14422 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14423 esac
cristy73bd4a52010-10-05 11:24:23 +000014424
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14426$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014427if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014428 $as_echo_n "(cached) " >&6
14429else
14430 lt_cv_prog_compiler_rtti_exceptions=no
14431 ac_outfile=conftest.$ac_objext
14432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14433 lt_compiler_flag="-fno-rtti -fno-exceptions"
14434 # Insert the option either (1) after the last *FLAGS variable, or
14435 # (2) before a word containing "conftest.", or (3) at the end.
14436 # Note that $ac_compile itself does not contain backslashes and begins
14437 # with a dollar sign (not a hyphen), so the echo should work correctly.
14438 # The option is referenced via a variable to avoid confusing sed.
14439 lt_compile=`echo "$ac_compile" | $SED \
14440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14442 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014443 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014444 (eval "$lt_compile" 2>conftest.err)
14445 ac_status=$?
14446 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014448 if (exit $ac_status) && test -s "$ac_outfile"; then
14449 # The compiler can only warn and ignore the option if not recognized
14450 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014451 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14453 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14454 lt_cv_prog_compiler_rtti_exceptions=yes
14455 fi
14456 fi
14457 $RM conftest*
14458
14459fi
14460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14461$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14462
14463if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14464 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14465else
14466 :
14467fi
14468
14469fi
14470
14471
14472
14473
14474
14475
14476 lt_prog_compiler_wl=
14477lt_prog_compiler_pic=
14478lt_prog_compiler_static=
14479
cristy73bd4a52010-10-05 11:24:23 +000014480
14481 if test "$GCC" = yes; then
14482 lt_prog_compiler_wl='-Wl,'
14483 lt_prog_compiler_static='-static'
14484
14485 case $host_os in
14486 aix*)
14487 # All AIX code is PIC.
14488 if test "$host_cpu" = ia64; then
14489 # AIX 5 now supports IA64 processor
14490 lt_prog_compiler_static='-Bstatic'
14491 fi
14492 ;;
14493
14494 amigaos*)
14495 case $host_cpu in
14496 powerpc)
14497 # see comment about AmigaOS4 .so support
14498 lt_prog_compiler_pic='-fPIC'
14499 ;;
14500 m68k)
14501 # FIXME: we need at least 68020 code to build shared libraries, but
14502 # adding the `-m68020' flag to GCC prevents building anything better,
14503 # like `-m68040'.
14504 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14505 ;;
14506 esac
14507 ;;
14508
14509 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14510 # PIC is the default for these OSes.
14511 ;;
14512
14513 mingw* | cygwin* | pw32* | os2* | cegcc*)
14514 # This hack is so that the source file can tell whether it is being
14515 # built for inclusion in a dll (and should export symbols for example).
14516 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14517 # (--disable-auto-import) libraries
14518 lt_prog_compiler_pic='-DDLL_EXPORT'
14519 ;;
14520
14521 darwin* | rhapsody*)
14522 # PIC is the default on this platform
14523 # Common symbols not allowed in MH_DYLIB files
14524 lt_prog_compiler_pic='-fno-common'
14525 ;;
14526
cristy0c60a692010-11-04 01:09:47 +000014527 haiku*)
14528 # PIC is the default for Haiku.
14529 # The "-static" flag exists, but is broken.
14530 lt_prog_compiler_static=
14531 ;;
14532
cristy73bd4a52010-10-05 11:24:23 +000014533 hpux*)
14534 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14535 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14536 # sets the default TLS model and affects inlining.
14537 case $host_cpu in
14538 hppa*64*)
14539 # +Z the default
14540 ;;
14541 *)
14542 lt_prog_compiler_pic='-fPIC'
14543 ;;
14544 esac
14545 ;;
14546
14547 interix[3-9]*)
14548 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14549 # Instead, we relocate shared libraries at runtime.
14550 ;;
14551
14552 msdosdjgpp*)
14553 # Just because we use GCC doesn't mean we suddenly get shared libraries
14554 # on systems that don't support them.
14555 lt_prog_compiler_can_build_shared=no
14556 enable_shared=no
14557 ;;
14558
14559 *nto* | *qnx*)
14560 # QNX uses GNU C++, but need to define -shared option too, otherwise
14561 # it will coredump.
14562 lt_prog_compiler_pic='-fPIC -shared'
14563 ;;
14564
14565 sysv4*MP*)
14566 if test -d /usr/nec; then
14567 lt_prog_compiler_pic=-Kconform_pic
14568 fi
14569 ;;
14570
14571 *)
14572 lt_prog_compiler_pic='-fPIC'
14573 ;;
14574 esac
cristy0c60a692010-11-04 01:09:47 +000014575
14576 case $cc_basename in
14577 nvcc*) # Cuda Compiler Driver 2.2
14578 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014579 if test -n "$lt_prog_compiler_pic"; then
14580 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14581 fi
cristy0c60a692010-11-04 01:09:47 +000014582 ;;
14583 esac
cristy73bd4a52010-10-05 11:24:23 +000014584 else
14585 # PORTME Check for flag to pass linker flags through the system compiler.
14586 case $host_os in
14587 aix*)
14588 lt_prog_compiler_wl='-Wl,'
14589 if test "$host_cpu" = ia64; then
14590 # AIX 5 now supports IA64 processor
14591 lt_prog_compiler_static='-Bstatic'
14592 else
14593 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14594 fi
14595 ;;
14596
14597 mingw* | cygwin* | pw32* | os2* | cegcc*)
14598 # This hack is so that the source file can tell whether it is being
14599 # built for inclusion in a dll (and should export symbols for example).
14600 lt_prog_compiler_pic='-DDLL_EXPORT'
14601 ;;
14602
14603 hpux9* | hpux10* | hpux11*)
14604 lt_prog_compiler_wl='-Wl,'
14605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14606 # not for PA HP-UX.
14607 case $host_cpu in
14608 hppa*64*|ia64*)
14609 # +Z the default
14610 ;;
14611 *)
14612 lt_prog_compiler_pic='+Z'
14613 ;;
14614 esac
14615 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14616 lt_prog_compiler_static='${wl}-a ${wl}archive'
14617 ;;
14618
14619 irix5* | irix6* | nonstopux*)
14620 lt_prog_compiler_wl='-Wl,'
14621 # PIC (with -KPIC) is the default.
14622 lt_prog_compiler_static='-non_shared'
14623 ;;
14624
cristy0c60a692010-11-04 01:09:47 +000014625 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014626 case $cc_basename in
14627 # old Intel for x86_64 which still supported -KPIC.
14628 ecc*)
14629 lt_prog_compiler_wl='-Wl,'
14630 lt_prog_compiler_pic='-KPIC'
14631 lt_prog_compiler_static='-static'
14632 ;;
14633 # icc used to be incompatible with GCC.
14634 # ICC 10 doesn't accept -KPIC any more.
14635 icc* | ifort*)
14636 lt_prog_compiler_wl='-Wl,'
14637 lt_prog_compiler_pic='-fPIC'
14638 lt_prog_compiler_static='-static'
14639 ;;
14640 # Lahey Fortran 8.1.
14641 lf95*)
14642 lt_prog_compiler_wl='-Wl,'
14643 lt_prog_compiler_pic='--shared'
14644 lt_prog_compiler_static='--static'
14645 ;;
cristyda16f162011-02-19 23:52:17 +000014646 nagfor*)
14647 # NAG Fortran compiler
14648 lt_prog_compiler_wl='-Wl,-Wl,,'
14649 lt_prog_compiler_pic='-PIC'
14650 lt_prog_compiler_static='-Bstatic'
14651 ;;
cristy0c60a692010-11-04 01:09:47 +000014652 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014653 # Portland Group compilers (*not* the Pentium gcc compiler,
14654 # which looks to be a dead project)
14655 lt_prog_compiler_wl='-Wl,'
14656 lt_prog_compiler_pic='-fpic'
14657 lt_prog_compiler_static='-Bstatic'
14658 ;;
14659 ccc*)
14660 lt_prog_compiler_wl='-Wl,'
14661 # All Alpha code is PIC.
14662 lt_prog_compiler_static='-non_shared'
14663 ;;
cristy0c60a692010-11-04 01:09:47 +000014664 xl* | bgxl* | bgf* | mpixl*)
14665 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014666 lt_prog_compiler_wl='-Wl,'
14667 lt_prog_compiler_pic='-qpic'
14668 lt_prog_compiler_static='-qstaticlink'
14669 ;;
14670 *)
14671 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014672 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014673 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14674 lt_prog_compiler_pic='-KPIC'
14675 lt_prog_compiler_static='-Bstatic'
14676 lt_prog_compiler_wl=''
14677 ;;
cristy99bd5232011-12-07 14:38:20 +000014678 *Sun\ F* | *Sun*Fortran*)
14679 lt_prog_compiler_pic='-KPIC'
14680 lt_prog_compiler_static='-Bstatic'
14681 lt_prog_compiler_wl='-Qoption ld '
14682 ;;
cristy73bd4a52010-10-05 11:24:23 +000014683 *Sun\ C*)
14684 # Sun C 5.9
14685 lt_prog_compiler_pic='-KPIC'
14686 lt_prog_compiler_static='-Bstatic'
14687 lt_prog_compiler_wl='-Wl,'
14688 ;;
cristy99bd5232011-12-07 14:38:20 +000014689 *Intel*\ [CF]*Compiler*)
14690 lt_prog_compiler_wl='-Wl,'
14691 lt_prog_compiler_pic='-fPIC'
14692 lt_prog_compiler_static='-static'
14693 ;;
14694 *Portland\ Group*)
14695 lt_prog_compiler_wl='-Wl,'
14696 lt_prog_compiler_pic='-fpic'
14697 lt_prog_compiler_static='-Bstatic'
14698 ;;
cristy73bd4a52010-10-05 11:24:23 +000014699 esac
14700 ;;
14701 esac
14702 ;;
14703
14704 newsos6)
14705 lt_prog_compiler_pic='-KPIC'
14706 lt_prog_compiler_static='-Bstatic'
14707 ;;
14708
14709 *nto* | *qnx*)
14710 # QNX uses GNU C++, but need to define -shared option too, otherwise
14711 # it will coredump.
14712 lt_prog_compiler_pic='-fPIC -shared'
14713 ;;
14714
14715 osf3* | osf4* | osf5*)
14716 lt_prog_compiler_wl='-Wl,'
14717 # All OSF/1 code is PIC.
14718 lt_prog_compiler_static='-non_shared'
14719 ;;
14720
14721 rdos*)
14722 lt_prog_compiler_static='-non_shared'
14723 ;;
14724
14725 solaris*)
14726 lt_prog_compiler_pic='-KPIC'
14727 lt_prog_compiler_static='-Bstatic'
14728 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014729 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014730 lt_prog_compiler_wl='-Qoption ld ';;
14731 *)
14732 lt_prog_compiler_wl='-Wl,';;
14733 esac
14734 ;;
14735
14736 sunos4*)
14737 lt_prog_compiler_wl='-Qoption ld '
14738 lt_prog_compiler_pic='-PIC'
14739 lt_prog_compiler_static='-Bstatic'
14740 ;;
14741
14742 sysv4 | sysv4.2uw2* | sysv4.3*)
14743 lt_prog_compiler_wl='-Wl,'
14744 lt_prog_compiler_pic='-KPIC'
14745 lt_prog_compiler_static='-Bstatic'
14746 ;;
14747
14748 sysv4*MP*)
14749 if test -d /usr/nec ;then
14750 lt_prog_compiler_pic='-Kconform_pic'
14751 lt_prog_compiler_static='-Bstatic'
14752 fi
14753 ;;
14754
14755 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14756 lt_prog_compiler_wl='-Wl,'
14757 lt_prog_compiler_pic='-KPIC'
14758 lt_prog_compiler_static='-Bstatic'
14759 ;;
14760
14761 unicos*)
14762 lt_prog_compiler_wl='-Wl,'
14763 lt_prog_compiler_can_build_shared=no
14764 ;;
14765
14766 uts4*)
14767 lt_prog_compiler_pic='-pic'
14768 lt_prog_compiler_static='-Bstatic'
14769 ;;
14770
14771 *)
14772 lt_prog_compiler_can_build_shared=no
14773 ;;
14774 esac
14775 fi
14776
14777case $host_os in
14778 # For platforms which do not support PIC, -DPIC is meaningless:
14779 *djgpp*)
14780 lt_prog_compiler_pic=
14781 ;;
14782 *)
14783 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14784 ;;
14785esac
cristy73bd4a52010-10-05 11:24:23 +000014786
cristyda16f162011-02-19 23:52:17 +000014787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14788$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14789if ${lt_cv_prog_compiler_pic+:} false; then :
14790 $as_echo_n "(cached) " >&6
14791else
14792 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14793fi
14794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14795$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14796lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014797
14798#
14799# Check to make sure the PIC flag actually works.
14800#
14801if test -n "$lt_prog_compiler_pic"; then
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14803$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014804if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014805 $as_echo_n "(cached) " >&6
14806else
14807 lt_cv_prog_compiler_pic_works=no
14808 ac_outfile=conftest.$ac_objext
14809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14810 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14811 # Insert the option either (1) after the last *FLAGS variable, or
14812 # (2) before a word containing "conftest.", or (3) at the end.
14813 # Note that $ac_compile itself does not contain backslashes and begins
14814 # with a dollar sign (not a hyphen), so the echo should work correctly.
14815 # The option is referenced via a variable to avoid confusing sed.
14816 lt_compile=`echo "$ac_compile" | $SED \
14817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14819 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014821 (eval "$lt_compile" 2>conftest.err)
14822 ac_status=$?
14823 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014825 if (exit $ac_status) && test -s "$ac_outfile"; then
14826 # The compiler can only warn and ignore the option if not recognized
14827 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14831 lt_cv_prog_compiler_pic_works=yes
14832 fi
14833 fi
14834 $RM conftest*
14835
14836fi
14837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14838$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14839
14840if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14841 case $lt_prog_compiler_pic in
14842 "" | " "*) ;;
14843 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14844 esac
14845else
14846 lt_prog_compiler_pic=
14847 lt_prog_compiler_can_build_shared=no
14848fi
14849
14850fi
14851
14852
14853
14854
14855
14856
cristyda16f162011-02-19 23:52:17 +000014857
14858
14859
14860
14861
cristy73bd4a52010-10-05 11:24:23 +000014862#
14863# Check to make sure the static flag actually works.
14864#
14865wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14867$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014868if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014869 $as_echo_n "(cached) " >&6
14870else
14871 lt_cv_prog_compiler_static_works=no
14872 save_LDFLAGS="$LDFLAGS"
14873 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14874 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14875 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14876 # The linker can only warn and ignore the option if not recognized
14877 # So say no if there are warnings
14878 if test -s conftest.err; then
14879 # Append any errors to the config.log.
14880 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014881 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14883 if diff conftest.exp conftest.er2 >/dev/null; then
14884 lt_cv_prog_compiler_static_works=yes
14885 fi
14886 else
14887 lt_cv_prog_compiler_static_works=yes
14888 fi
14889 fi
14890 $RM -r conftest*
14891 LDFLAGS="$save_LDFLAGS"
14892
14893fi
14894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14895$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14896
14897if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14898 :
14899else
14900 lt_prog_compiler_static=
14901fi
14902
14903
14904
14905
14906
14907
14908
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14910$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014911if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014912 $as_echo_n "(cached) " >&6
14913else
14914 lt_cv_prog_compiler_c_o=no
14915 $RM -r conftest 2>/dev/null
14916 mkdir conftest
14917 cd conftest
14918 mkdir out
14919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14920
14921 lt_compiler_flag="-o out/conftest2.$ac_objext"
14922 # Insert the option either (1) after the last *FLAGS variable, or
14923 # (2) before a word containing "conftest.", or (3) at the end.
14924 # Note that $ac_compile itself does not contain backslashes and begins
14925 # with a dollar sign (not a hyphen), so the echo should work correctly.
14926 lt_compile=`echo "$ac_compile" | $SED \
14927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14929 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014931 (eval "$lt_compile" 2>out/conftest.err)
14932 ac_status=$?
14933 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14936 then
14937 # The compiler can only warn and ignore the option if not recognized
14938 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14942 lt_cv_prog_compiler_c_o=yes
14943 fi
14944 fi
14945 chmod u+w . 2>&5
14946 $RM conftest*
14947 # SGI C++ compiler will create directory out/ii_files/ for
14948 # template instantiation
14949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14950 $RM out/* && rmdir out
14951 cd ..
14952 $RM -r conftest
14953 $RM conftest*
14954
14955fi
14956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14957$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14958
14959
14960
14961
14962
14963
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14965$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014966if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014967 $as_echo_n "(cached) " >&6
14968else
14969 lt_cv_prog_compiler_c_o=no
14970 $RM -r conftest 2>/dev/null
14971 mkdir conftest
14972 cd conftest
14973 mkdir out
14974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14975
14976 lt_compiler_flag="-o out/conftest2.$ac_objext"
14977 # Insert the option either (1) after the last *FLAGS variable, or
14978 # (2) before a word containing "conftest.", or (3) at the end.
14979 # Note that $ac_compile itself does not contain backslashes and begins
14980 # with a dollar sign (not a hyphen), so the echo should work correctly.
14981 lt_compile=`echo "$ac_compile" | $SED \
14982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14984 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014985 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014986 (eval "$lt_compile" 2>out/conftest.err)
14987 ac_status=$?
14988 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014990 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14991 then
14992 # The compiler can only warn and ignore the option if not recognized
14993 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014994 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014995 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14996 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14997 lt_cv_prog_compiler_c_o=yes
14998 fi
14999 fi
15000 chmod u+w . 2>&5
15001 $RM conftest*
15002 # SGI C++ compiler will create directory out/ii_files/ for
15003 # template instantiation
15004 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15005 $RM out/* && rmdir out
15006 cd ..
15007 $RM -r conftest
15008 $RM conftest*
15009
15010fi
15011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15012$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15013
15014
15015
15016
15017hard_links="nottested"
15018if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15019 # do not overwrite the value of need_locks provided by the user
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15021$as_echo_n "checking if we can lock with hard links... " >&6; }
15022 hard_links=yes
15023 $RM conftest*
15024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15025 touch conftest.a
15026 ln conftest.a conftest.b 2>&5 || hard_links=no
15027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15029$as_echo "$hard_links" >&6; }
15030 if test "$hard_links" = no; then
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15032$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15033 need_locks=warn
15034 fi
15035else
15036 need_locks=no
15037fi
15038
15039
15040
15041
15042
15043
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15045$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15046
15047 runpath_var=
15048 allow_undefined_flag=
15049 always_export_symbols=no
15050 archive_cmds=
15051 archive_expsym_cmds=
15052 compiler_needs_object=no
15053 enable_shared_with_static_runtimes=no
15054 export_dynamic_flag_spec=
15055 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15056 hardcode_automatic=no
15057 hardcode_direct=no
15058 hardcode_direct_absolute=no
15059 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015060 hardcode_libdir_separator=
15061 hardcode_minus_L=no
15062 hardcode_shlibpath_var=unsupported
15063 inherit_rpath=no
15064 link_all_deplibs=unknown
15065 module_cmds=
15066 module_expsym_cmds=
15067 old_archive_from_new_cmds=
15068 old_archive_from_expsyms_cmds=
15069 thread_safe_flag_spec=
15070 whole_archive_flag_spec=
15071 # include_expsyms should be a list of space-separated symbols to be *always*
15072 # included in the symbol list
15073 include_expsyms=
15074 # exclude_expsyms can be an extended regexp of symbols to exclude
15075 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15076 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15077 # as well as any symbol that contains `d'.
15078 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15079 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15080 # platforms (ab)use it in PIC code, but their linkers get confused if
15081 # the symbol is explicitly referenced. Since portable code cannot
15082 # rely on this symbol name, it's probably fine to never include it in
15083 # preloaded symbol tables.
15084 # Exclude shared library initialization/finalization symbols.
15085 extract_expsyms_cmds=
15086
15087 case $host_os in
15088 cygwin* | mingw* | pw32* | cegcc*)
15089 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15090 # When not using gcc, we currently assume that we are using
15091 # Microsoft Visual C++.
15092 if test "$GCC" != yes; then
15093 with_gnu_ld=no
15094 fi
15095 ;;
15096 interix*)
15097 # we just hope/assume this is gcc and not c89 (= MSVC++)
15098 with_gnu_ld=yes
15099 ;;
15100 openbsd*)
15101 with_gnu_ld=no
15102 ;;
15103 esac
15104
15105 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015106
15107 # On some targets, GNU ld is compatible enough with the native linker
15108 # that we're better off using the native interface for both.
15109 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015110 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015111 case $host_os in
15112 aix*)
15113 # The AIX port of GNU ld has always aspired to compatibility
15114 # with the native linker. However, as the warning in the GNU ld
15115 # block says, versions before 2.19.5* couldn't really create working
15116 # shared libraries, regardless of the interface used.
15117 case `$LD -v 2>&1` in
15118 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15119 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15120 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15121 *)
15122 lt_use_gnu_ld_interface=yes
15123 ;;
15124 esac
15125 ;;
15126 *)
15127 lt_use_gnu_ld_interface=yes
15128 ;;
15129 esac
15130 fi
15131
15132 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015133 # If archive_cmds runs LD, not CC, wlarc should be empty
15134 wlarc='${wl}'
15135
15136 # Set some defaults for GNU ld with shared library support. These
15137 # are reset later if shared libraries are not supported. Putting them
15138 # here allows them to be overridden if necessary.
15139 runpath_var=LD_RUN_PATH
15140 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15141 export_dynamic_flag_spec='${wl}--export-dynamic'
15142 # ancient GNU ld didn't support --whole-archive et. al.
15143 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15144 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15145 else
15146 whole_archive_flag_spec=
15147 fi
15148 supports_anon_versioning=no
15149 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015150 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015151 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15152 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15153 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15154 *\ 2.11.*) ;; # other 2.11 versions
15155 *) supports_anon_versioning=yes ;;
15156 esac
15157
15158 # See if GNU ld supports shared libraries.
15159 case $host_os in
15160 aix[3-9]*)
15161 # On AIX/PPC, the GNU linker is very broken
15162 if test "$host_cpu" != ia64; then
15163 ld_shlibs=no
15164 cat <<_LT_EOF 1>&2
15165
cristy0c60a692010-11-04 01:09:47 +000015166*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015167*** to be unable to reliably create shared libraries on AIX.
15168*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015169*** really care for shared libraries, you may want to install binutils
15170*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15171*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015172
15173_LT_EOF
15174 fi
15175 ;;
15176
15177 amigaos*)
15178 case $host_cpu in
15179 powerpc)
15180 # see comment about AmigaOS4 .so support
15181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15182 archive_expsym_cmds=''
15183 ;;
15184 m68k)
15185 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)'
15186 hardcode_libdir_flag_spec='-L$libdir'
15187 hardcode_minus_L=yes
15188 ;;
15189 esac
15190 ;;
15191
15192 beos*)
15193 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15194 allow_undefined_flag=unsupported
15195 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15196 # support --undefined. This deserves some investigation. FIXME
15197 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15198 else
15199 ld_shlibs=no
15200 fi
15201 ;;
15202
15203 cygwin* | mingw* | pw32* | cegcc*)
15204 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15205 # as there is no search path for DLLs.
15206 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015207 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015208 allow_undefined_flag=unsupported
15209 always_export_symbols=no
15210 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015211 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'
15212 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 +000015213
15214 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15216 # If the export-symbols file already is a .def file (1st line
15217 # is EXPORTS), use it as is; otherwise, prepend...
15218 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15219 cp $export_symbols $output_objdir/$soname.def;
15220 else
15221 echo EXPORTS > $output_objdir/$soname.def;
15222 cat $export_symbols >> $output_objdir/$soname.def;
15223 fi~
15224 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15225 else
15226 ld_shlibs=no
15227 fi
15228 ;;
15229
cristy0c60a692010-11-04 01:09:47 +000015230 haiku*)
15231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15232 link_all_deplibs=yes
15233 ;;
15234
cristy73bd4a52010-10-05 11:24:23 +000015235 interix[3-9]*)
15236 hardcode_direct=no
15237 hardcode_shlibpath_var=no
15238 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15239 export_dynamic_flag_spec='${wl}-E'
15240 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15241 # Instead, shared libraries are loaded at an image base (0x10000000 by
15242 # default) and relocated if they conflict, which is a slow very memory
15243 # consuming and fragmenting process. To avoid this, we pick a random,
15244 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15245 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15246 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15247 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'
15248 ;;
15249
cristy0c60a692010-11-04 01:09:47 +000015250 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015251 tmp_diet=no
15252 if test "$host_os" = linux-dietlibc; then
15253 case $cc_basename in
15254 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15255 esac
15256 fi
15257 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15258 && test "$tmp_diet" = no
15259 then
cristyda16f162011-02-19 23:52:17 +000015260 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015261 tmp_sharedflag='-shared'
15262 case $cc_basename,$host_cpu in
15263 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015264 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 +000015265 tmp_addflag=' $pic_flag'
15266 ;;
cristy0c60a692010-11-04 01:09:47 +000015267 pgf77* | pgf90* | pgf95* | pgfortran*)
15268 # Portland Group f77 and f90 compilers
15269 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 +000015270 tmp_addflag=' $pic_flag -Mnomain' ;;
15271 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15272 tmp_addflag=' -i_dynamic' ;;
15273 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15274 tmp_addflag=' -i_dynamic -nofor_main' ;;
15275 ifc* | ifort*) # Intel Fortran compiler
15276 tmp_addflag=' -nofor_main' ;;
15277 lf95*) # Lahey Fortran 8.1
15278 whole_archive_flag_spec=
15279 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015280 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015281 tmp_sharedflag='-qmkshrobj'
15282 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015283 nvcc*) # Cuda Compiler Driver 2.2
15284 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'
15285 compiler_needs_object=yes
15286 ;;
cristy73bd4a52010-10-05 11:24:23 +000015287 esac
15288 case `$CC -V 2>&1 | sed 5q` in
15289 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015290 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 +000015291 compiler_needs_object=yes
15292 tmp_sharedflag='-G' ;;
15293 *Sun\ F*) # Sun Fortran 8.3
15294 tmp_sharedflag='-G' ;;
15295 esac
15296 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15297
15298 if test "x$supports_anon_versioning" = xyes; then
15299 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15301 echo "local: *; };" >> $output_objdir/$libname.ver~
15302 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15303 fi
15304
15305 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015306 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015307 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15308 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015310 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015311 if test "x$supports_anon_versioning" = xyes; then
15312 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15313 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15314 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015315 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015316 fi
15317 ;;
15318 esac
15319 else
15320 ld_shlibs=no
15321 fi
15322 ;;
15323
15324 netbsd*)
15325 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15326 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15327 wlarc=
15328 else
cristyda16f162011-02-19 23:52:17 +000015329 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15330 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 +000015331 fi
15332 ;;
15333
15334 solaris*)
15335 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15336 ld_shlibs=no
15337 cat <<_LT_EOF 1>&2
15338
15339*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15340*** create shared libraries on Solaris systems. Therefore, libtool
15341*** is disabling shared libraries support. We urge you to upgrade GNU
15342*** binutils to release 2.9.1 or newer. Another option is to modify
15343*** your PATH or compiler configuration so that the native linker is
15344*** used, and then restart.
15345
15346_LT_EOF
15347 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015348 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15349 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 +000015350 else
15351 ld_shlibs=no
15352 fi
15353 ;;
15354
15355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15356 case `$LD -v 2>&1` in
15357 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15358 ld_shlibs=no
15359 cat <<_LT_EOF 1>&2
15360
15361*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15362*** reliably create shared libraries on SCO systems. Therefore, libtool
15363*** is disabling shared libraries support. We urge you to upgrade GNU
15364*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15365*** your PATH or compiler configuration so that the native linker is
15366*** used, and then restart.
15367
15368_LT_EOF
15369 ;;
15370 *)
15371 # For security reasons, it is highly recommended that you always
15372 # use absolute paths for naming shared libraries, and exclude the
15373 # DT_RUNPATH tag from executables and libraries. But doing so
15374 # requires that you compile everything twice, which is a pain.
15375 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15379 else
15380 ld_shlibs=no
15381 fi
15382 ;;
15383 esac
15384 ;;
15385
15386 sunos4*)
15387 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15388 wlarc=
15389 hardcode_direct=yes
15390 hardcode_shlibpath_var=no
15391 ;;
15392
15393 *)
15394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015395 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15396 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 +000015397 else
15398 ld_shlibs=no
15399 fi
15400 ;;
15401 esac
15402
15403 if test "$ld_shlibs" = no; then
15404 runpath_var=
15405 hardcode_libdir_flag_spec=
15406 export_dynamic_flag_spec=
15407 whole_archive_flag_spec=
15408 fi
15409 else
15410 # PORTME fill in a description of your system's linker (not GNU ld)
15411 case $host_os in
15412 aix3*)
15413 allow_undefined_flag=unsupported
15414 always_export_symbols=yes
15415 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'
15416 # Note: this linker hardcodes the directories in LIBPATH if there
15417 # are no directories specified by -L.
15418 hardcode_minus_L=yes
15419 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15420 # Neither direct hardcoding nor static linking is supported with a
15421 # broken collect2.
15422 hardcode_direct=unsupported
15423 fi
15424 ;;
15425
15426 aix[4-9]*)
15427 if test "$host_cpu" = ia64; then
15428 # On IA64, the linker does run time linking by default, so we don't
15429 # have to do anything special.
15430 aix_use_runtimelinking=no
15431 exp_sym_flag='-Bexport'
15432 no_entry_flag=""
15433 else
15434 # If we're using GNU nm, then we don't want the "-C" option.
15435 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015436 # Also, AIX nm treats weak defined symbols like other global
15437 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015438 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015439 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 +000015440 else
15441 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'
15442 fi
15443 aix_use_runtimelinking=no
15444
15445 # Test if we are trying to use run time linking or normal
15446 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15447 # need to do runtime linking.
15448 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15449 for ld_flag in $LDFLAGS; do
15450 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15451 aix_use_runtimelinking=yes
15452 break
15453 fi
15454 done
15455 ;;
15456 esac
15457
15458 exp_sym_flag='-bexport'
15459 no_entry_flag='-bnoentry'
15460 fi
15461
15462 # When large executables or shared objects are built, AIX ld can
15463 # have problems creating the table of contents. If linking a library
15464 # or program results in "error TOC overflow" add -mminimal-toc to
15465 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15466 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15467
15468 archive_cmds=''
15469 hardcode_direct=yes
15470 hardcode_direct_absolute=yes
15471 hardcode_libdir_separator=':'
15472 link_all_deplibs=yes
15473 file_list_spec='${wl}-f,'
15474
15475 if test "$GCC" = yes; then
15476 case $host_os in aix4.[012]|aix4.[012].*)
15477 # We only want to do this on AIX 4.2 and lower, the check
15478 # below for broken collect2 doesn't work under 4.3+
15479 collect2name=`${CC} -print-prog-name=collect2`
15480 if test -f "$collect2name" &&
15481 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15482 then
15483 # We have reworked collect2
15484 :
15485 else
15486 # We have old collect2
15487 hardcode_direct=unsupported
15488 # It fails to find uninstalled libraries when the uninstalled
15489 # path is not listed in the libpath. Setting hardcode_minus_L
15490 # to unsupported forces relinking
15491 hardcode_minus_L=yes
15492 hardcode_libdir_flag_spec='-L$libdir'
15493 hardcode_libdir_separator=
15494 fi
15495 ;;
15496 esac
15497 shared_flag='-shared'
15498 if test "$aix_use_runtimelinking" = yes; then
15499 shared_flag="$shared_flag "'${wl}-G'
15500 fi
15501 else
15502 # not using gcc
15503 if test "$host_cpu" = ia64; then
15504 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15505 # chokes on -Wl,-G. The following line is correct:
15506 shared_flag='-G'
15507 else
15508 if test "$aix_use_runtimelinking" = yes; then
15509 shared_flag='${wl}-G'
15510 else
15511 shared_flag='${wl}-bM:SRE'
15512 fi
15513 fi
15514 fi
15515
15516 export_dynamic_flag_spec='${wl}-bexpall'
15517 # It seems that -bexpall does not export symbols beginning with
15518 # underscore (_), so it is better to generate a list of symbols to export.
15519 always_export_symbols=yes
15520 if test "$aix_use_runtimelinking" = yes; then
15521 # Warning - without using the other runtime loading flags (-brtl),
15522 # -berok will link without error, but may produce a broken library.
15523 allow_undefined_flag='-berok'
15524 # Determine the default libpath from the value encoded in an
15525 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015526 if test "${lt_cv_aix_libpath+set}" = set; then
15527 aix_libpath=$lt_cv_aix_libpath
15528else
15529 if ${lt_cv_aix_libpath_+:} false; then :
15530 $as_echo_n "(cached) " >&6
15531else
15532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015533/* end confdefs.h. */
15534
15535int
15536main ()
15537{
15538
15539 ;
15540 return 0;
15541}
15542_ACEOF
15543if ac_fn_c_try_link "$LINENO"; then :
15544
cristyda16f162011-02-19 23:52:17 +000015545 lt_aix_libpath_sed='
15546 /Import File Strings/,/^$/ {
15547 /^0/ {
15548 s/^0 *\([^ ]*\) *$/\1/
15549 p
15550 }
15551 }'
15552 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15553 # Check for a 64-bit object if we didn't find anything.
15554 if test -z "$lt_cv_aix_libpath_"; then
15555 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15556 fi
cristy73bd4a52010-10-05 11:24:23 +000015557fi
15558rm -f core conftest.err conftest.$ac_objext \
15559 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015560 if test -z "$lt_cv_aix_libpath_"; then
15561 lt_cv_aix_libpath_="/usr/lib:/lib"
15562 fi
15563
15564fi
15565
15566 aix_libpath=$lt_cv_aix_libpath_
15567fi
cristy73bd4a52010-10-05 11:24:23 +000015568
15569 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015570 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 +000015571 else
15572 if test "$host_cpu" = ia64; then
15573 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15574 allow_undefined_flag="-z nodefs"
15575 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"
15576 else
15577 # Determine the default libpath from the value encoded in an
15578 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015579 if test "${lt_cv_aix_libpath+set}" = set; then
15580 aix_libpath=$lt_cv_aix_libpath
15581else
15582 if ${lt_cv_aix_libpath_+:} false; then :
15583 $as_echo_n "(cached) " >&6
15584else
15585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015586/* end confdefs.h. */
15587
15588int
15589main ()
15590{
15591
15592 ;
15593 return 0;
15594}
15595_ACEOF
15596if ac_fn_c_try_link "$LINENO"; then :
15597
cristyda16f162011-02-19 23:52:17 +000015598 lt_aix_libpath_sed='
15599 /Import File Strings/,/^$/ {
15600 /^0/ {
15601 s/^0 *\([^ ]*\) *$/\1/
15602 p
15603 }
15604 }'
15605 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15606 # Check for a 64-bit object if we didn't find anything.
15607 if test -z "$lt_cv_aix_libpath_"; then
15608 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15609 fi
cristy73bd4a52010-10-05 11:24:23 +000015610fi
15611rm -f core conftest.err conftest.$ac_objext \
15612 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015613 if test -z "$lt_cv_aix_libpath_"; then
15614 lt_cv_aix_libpath_="/usr/lib:/lib"
15615 fi
15616
15617fi
15618
15619 aix_libpath=$lt_cv_aix_libpath_
15620fi
cristy73bd4a52010-10-05 11:24:23 +000015621
15622 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15623 # Warning - without using the other run time loading flags,
15624 # -berok will link without error, but may produce a broken library.
15625 no_undefined_flag=' ${wl}-bernotok'
15626 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015627 if test "$with_gnu_ld" = yes; then
15628 # We only use this code for GNU lds that support --whole-archive.
15629 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15630 else
15631 # Exported symbols can be pulled into shared objects from archives
15632 whole_archive_flag_spec='$convenience'
15633 fi
cristy73bd4a52010-10-05 11:24:23 +000015634 archive_cmds_need_lc=yes
15635 # This is similar to how AIX traditionally builds its shared libraries.
15636 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'
15637 fi
15638 fi
15639 ;;
15640
15641 amigaos*)
15642 case $host_cpu in
15643 powerpc)
15644 # see comment about AmigaOS4 .so support
15645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15646 archive_expsym_cmds=''
15647 ;;
15648 m68k)
15649 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)'
15650 hardcode_libdir_flag_spec='-L$libdir'
15651 hardcode_minus_L=yes
15652 ;;
15653 esac
15654 ;;
15655
15656 bsdi[45]*)
15657 export_dynamic_flag_spec=-rdynamic
15658 ;;
15659
15660 cygwin* | mingw* | pw32* | cegcc*)
15661 # When not using gcc, we currently assume that we are using
15662 # Microsoft Visual C++.
15663 # hardcode_libdir_flag_spec is actually meaningless, as there is
15664 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015665 case $cc_basename in
15666 cl*)
15667 # Native MSVC
15668 hardcode_libdir_flag_spec=' '
15669 allow_undefined_flag=unsupported
15670 always_export_symbols=yes
15671 file_list_spec='@'
15672 # Tell ltmain to make .lib files, not .a files.
15673 libext=lib
15674 # Tell ltmain to make .dll files, not .so files.
15675 shrext_cmds=".dll"
15676 # FIXME: Setting linknames here is a bad hack.
15677 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15678 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15679 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15680 else
15681 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15682 fi~
15683 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15684 linknames='
15685 # The linker will not automatically build a static lib if we build a DLL.
15686 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15687 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015688 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015689 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15690 # Don't use ranlib
15691 old_postinstall_cmds='chmod 644 $oldlib'
15692 postlink_cmds='lt_outputfile="@OUTPUT@"~
15693 lt_tool_outputfile="@TOOL_OUTPUT@"~
15694 case $lt_outputfile in
15695 *.exe|*.EXE) ;;
15696 *)
15697 lt_outputfile="$lt_outputfile.exe"
15698 lt_tool_outputfile="$lt_tool_outputfile.exe"
15699 ;;
15700 esac~
15701 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15702 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15703 $RM "$lt_outputfile.manifest";
15704 fi'
15705 ;;
15706 *)
15707 # Assume MSVC wrapper
15708 hardcode_libdir_flag_spec=' '
15709 allow_undefined_flag=unsupported
15710 # Tell ltmain to make .lib files, not .a files.
15711 libext=lib
15712 # Tell ltmain to make .dll files, not .so files.
15713 shrext_cmds=".dll"
15714 # FIXME: Setting linknames here is a bad hack.
15715 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15716 # The linker will automatically build a .lib file if we build a DLL.
15717 old_archive_from_new_cmds='true'
15718 # FIXME: Should let the user specify the lib program.
15719 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15720 enable_shared_with_static_runtimes=yes
15721 ;;
15722 esac
cristy73bd4a52010-10-05 11:24:23 +000015723 ;;
15724
15725 darwin* | rhapsody*)
15726
15727
15728 archive_cmds_need_lc=no
15729 hardcode_direct=no
15730 hardcode_automatic=yes
15731 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015732 if test "$lt_cv_ld_force_load" = "yes"; then
15733 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 +000015734
cristy0c60a692010-11-04 01:09:47 +000015735 else
15736 whole_archive_flag_spec=''
15737 fi
cristy73bd4a52010-10-05 11:24:23 +000015738 link_all_deplibs=yes
15739 allow_undefined_flag="$_lt_dar_allow_undefined"
15740 case $cc_basename in
15741 ifort*) _lt_dar_can_shared=yes ;;
15742 *) _lt_dar_can_shared=$GCC ;;
15743 esac
15744 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015745 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015746 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15747 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15748 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}"
15749 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}"
15750
15751 else
15752 ld_shlibs=no
15753 fi
15754
15755 ;;
15756
15757 dgux*)
15758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15759 hardcode_libdir_flag_spec='-L$libdir'
15760 hardcode_shlibpath_var=no
15761 ;;
15762
cristy73bd4a52010-10-05 11:24:23 +000015763 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15764 # support. Future versions do this automatically, but an explicit c++rt0.o
15765 # does not break anything, and helps significantly (at the cost of a little
15766 # extra space).
15767 freebsd2.2*)
15768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15769 hardcode_libdir_flag_spec='-R$libdir'
15770 hardcode_direct=yes
15771 hardcode_shlibpath_var=no
15772 ;;
15773
15774 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015775 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15777 hardcode_direct=yes
15778 hardcode_minus_L=yes
15779 hardcode_shlibpath_var=no
15780 ;;
15781
15782 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15783 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015785 hardcode_libdir_flag_spec='-R$libdir'
15786 hardcode_direct=yes
15787 hardcode_shlibpath_var=no
15788 ;;
15789
15790 hpux9*)
15791 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015792 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 +000015793 else
15794 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'
15795 fi
15796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15797 hardcode_libdir_separator=:
15798 hardcode_direct=yes
15799
15800 # hardcode_minus_L: Not really in the search PATH,
15801 # but as the default location of the library.
15802 hardcode_minus_L=yes
15803 export_dynamic_flag_spec='${wl}-E'
15804 ;;
15805
15806 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015807 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015808 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 +000015809 else
15810 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15811 fi
15812 if test "$with_gnu_ld" = no; then
15813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015814 hardcode_libdir_separator=:
15815 hardcode_direct=yes
15816 hardcode_direct_absolute=yes
15817 export_dynamic_flag_spec='${wl}-E'
15818 # hardcode_minus_L: Not really in the search PATH,
15819 # but as the default location of the library.
15820 hardcode_minus_L=yes
15821 fi
15822 ;;
15823
15824 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015825 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015826 case $host_cpu in
15827 hppa*64*)
15828 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15829 ;;
15830 ia64*)
cristyda16f162011-02-19 23:52:17 +000015831 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015832 ;;
15833 *)
cristyda16f162011-02-19 23:52:17 +000015834 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 +000015835 ;;
15836 esac
15837 else
15838 case $host_cpu in
15839 hppa*64*)
15840 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15841 ;;
15842 ia64*)
15843 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15844 ;;
15845 *)
cristy0c60a692010-11-04 01:09:47 +000015846
15847 # Older versions of the 11.00 compiler do not understand -b yet
15848 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15850$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015851if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015852 $as_echo_n "(cached) " >&6
15853else
15854 lt_cv_prog_compiler__b=no
15855 save_LDFLAGS="$LDFLAGS"
15856 LDFLAGS="$LDFLAGS -b"
15857 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15859 # The linker can only warn and ignore the option if not recognized
15860 # So say no if there are warnings
15861 if test -s conftest.err; then
15862 # Append any errors to the config.log.
15863 cat conftest.err 1>&5
15864 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15866 if diff conftest.exp conftest.er2 >/dev/null; then
15867 lt_cv_prog_compiler__b=yes
15868 fi
15869 else
15870 lt_cv_prog_compiler__b=yes
15871 fi
15872 fi
15873 $RM -r conftest*
15874 LDFLAGS="$save_LDFLAGS"
15875
15876fi
15877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15878$as_echo "$lt_cv_prog_compiler__b" >&6; }
15879
15880if test x"$lt_cv_prog_compiler__b" = xyes; then
15881 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15882else
15883 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15884fi
15885
cristy73bd4a52010-10-05 11:24:23 +000015886 ;;
15887 esac
15888 fi
15889 if test "$with_gnu_ld" = no; then
15890 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15891 hardcode_libdir_separator=:
15892
15893 case $host_cpu in
15894 hppa*64*|ia64*)
15895 hardcode_direct=no
15896 hardcode_shlibpath_var=no
15897 ;;
15898 *)
15899 hardcode_direct=yes
15900 hardcode_direct_absolute=yes
15901 export_dynamic_flag_spec='${wl}-E'
15902
15903 # hardcode_minus_L: Not really in the search PATH,
15904 # but as the default location of the library.
15905 hardcode_minus_L=yes
15906 ;;
15907 esac
15908 fi
15909 ;;
15910
15911 irix5* | irix6* | nonstopux*)
15912 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015913 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 +000015914 # Try to use the -exported_symbol ld option, if it does not
15915 # work, assume that -exports_file does not work either and
15916 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015917 # This should be the same for all languages, so no per-tag cache variable.
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15919$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15920if ${lt_cv_irix_exported_symbol+:} false; then :
15921 $as_echo_n "(cached) " >&6
15922else
15923 save_LDFLAGS="$LDFLAGS"
15924 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015926/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015927int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015928_ACEOF
15929if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015930 lt_cv_irix_exported_symbol=yes
15931else
15932 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015933fi
15934rm -f core conftest.err conftest.$ac_objext \
15935 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015936 LDFLAGS="$save_LDFLAGS"
15937fi
15938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15939$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15940 if test "$lt_cv_irix_exported_symbol" = yes; then
15941 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'
15942 fi
cristy73bd4a52010-10-05 11:24:23 +000015943 else
cristy0c60a692010-11-04 01:09:47 +000015944 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'
15945 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 +000015946 fi
15947 archive_cmds_need_lc='no'
15948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15949 hardcode_libdir_separator=:
15950 inherit_rpath=yes
15951 link_all_deplibs=yes
15952 ;;
15953
15954 netbsd*)
15955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15956 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15957 else
15958 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15959 fi
15960 hardcode_libdir_flag_spec='-R$libdir'
15961 hardcode_direct=yes
15962 hardcode_shlibpath_var=no
15963 ;;
15964
15965 newsos6)
15966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15967 hardcode_direct=yes
15968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15969 hardcode_libdir_separator=:
15970 hardcode_shlibpath_var=no
15971 ;;
15972
15973 *nto* | *qnx*)
15974 ;;
15975
15976 openbsd*)
15977 if test -f /usr/libexec/ld.so; then
15978 hardcode_direct=yes
15979 hardcode_shlibpath_var=no
15980 hardcode_direct_absolute=yes
15981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15983 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15984 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15985 export_dynamic_flag_spec='${wl}-E'
15986 else
15987 case $host_os in
15988 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15990 hardcode_libdir_flag_spec='-R$libdir'
15991 ;;
15992 *)
15993 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15994 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15995 ;;
15996 esac
15997 fi
15998 else
15999 ld_shlibs=no
16000 fi
16001 ;;
16002
16003 os2*)
16004 hardcode_libdir_flag_spec='-L$libdir'
16005 hardcode_minus_L=yes
16006 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016007 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 +000016008 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16009 ;;
16010
16011 osf3*)
16012 if test "$GCC" = yes; then
16013 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016014 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 +000016015 else
16016 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016017 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 +000016018 fi
16019 archive_cmds_need_lc='no'
16020 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16021 hardcode_libdir_separator=:
16022 ;;
16023
16024 osf4* | osf5*) # as osf3* with the addition of -msym flag
16025 if test "$GCC" = yes; then
16026 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016027 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 +000016028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16029 else
16030 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016031 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 +000016032 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 +000016033 $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 +000016034
16035 # Both c and cxx compiler support -rpath directly
16036 hardcode_libdir_flag_spec='-rpath $libdir'
16037 fi
16038 archive_cmds_need_lc='no'
16039 hardcode_libdir_separator=:
16040 ;;
16041
16042 solaris*)
16043 no_undefined_flag=' -z defs'
16044 if test "$GCC" = yes; then
16045 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016046 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 +000016047 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 +000016048 $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 +000016049 else
16050 case `$CC -V 2>&1` in
16051 *"Compilers 5.0"*)
16052 wlarc=''
16053 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16054 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16055 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16056 ;;
16057 *)
16058 wlarc='${wl}'
16059 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16060 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16061 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16062 ;;
16063 esac
16064 fi
16065 hardcode_libdir_flag_spec='-R$libdir'
16066 hardcode_shlibpath_var=no
16067 case $host_os in
16068 solaris2.[0-5] | solaris2.[0-5].*) ;;
16069 *)
16070 # The compiler driver will combine and reorder linker options,
16071 # but understands `-z linker_flag'. GCC discards it without `$wl',
16072 # but is careful enough not to reorder.
16073 # Supported since Solaris 2.6 (maybe 2.5.1?)
16074 if test "$GCC" = yes; then
16075 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16076 else
16077 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16078 fi
16079 ;;
16080 esac
16081 link_all_deplibs=yes
16082 ;;
16083
16084 sunos4*)
16085 if test "x$host_vendor" = xsequent; then
16086 # Use $CC to link under sequent, because it throws in some extra .o
16087 # files that make .init and .fini sections work.
16088 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16089 else
16090 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16091 fi
16092 hardcode_libdir_flag_spec='-L$libdir'
16093 hardcode_direct=yes
16094 hardcode_minus_L=yes
16095 hardcode_shlibpath_var=no
16096 ;;
16097
16098 sysv4)
16099 case $host_vendor in
16100 sni)
16101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16102 hardcode_direct=yes # is this really true???
16103 ;;
16104 siemens)
16105 ## LD is ld it makes a PLAMLIB
16106 ## CC just makes a GrossModule.
16107 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16108 reload_cmds='$CC -r -o $output$reload_objs'
16109 hardcode_direct=no
16110 ;;
16111 motorola)
16112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16113 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16114 ;;
16115 esac
16116 runpath_var='LD_RUN_PATH'
16117 hardcode_shlibpath_var=no
16118 ;;
16119
16120 sysv4.3*)
16121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16122 hardcode_shlibpath_var=no
16123 export_dynamic_flag_spec='-Bexport'
16124 ;;
16125
16126 sysv4*MP*)
16127 if test -d /usr/nec; then
16128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16129 hardcode_shlibpath_var=no
16130 runpath_var=LD_RUN_PATH
16131 hardcode_runpath_var=yes
16132 ld_shlibs=yes
16133 fi
16134 ;;
16135
16136 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16137 no_undefined_flag='${wl}-z,text'
16138 archive_cmds_need_lc=no
16139 hardcode_shlibpath_var=no
16140 runpath_var='LD_RUN_PATH'
16141
16142 if test "$GCC" = yes; then
16143 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16144 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16145 else
16146 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16147 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16148 fi
16149 ;;
16150
16151 sysv5* | sco3.2v5* | sco5v6*)
16152 # Note: We can NOT use -z defs as we might desire, because we do not
16153 # link with -lc, and that would cause any symbols used from libc to
16154 # always be unresolved, which means just about no library would
16155 # ever link correctly. If we're not using GNU ld we use -z text
16156 # though, which does catch some bad symbols but isn't as heavy-handed
16157 # as -z defs.
16158 no_undefined_flag='${wl}-z,text'
16159 allow_undefined_flag='${wl}-z,nodefs'
16160 archive_cmds_need_lc=no
16161 hardcode_shlibpath_var=no
16162 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16163 hardcode_libdir_separator=':'
16164 link_all_deplibs=yes
16165 export_dynamic_flag_spec='${wl}-Bexport'
16166 runpath_var='LD_RUN_PATH'
16167
16168 if test "$GCC" = yes; then
16169 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16170 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16171 else
16172 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16173 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16174 fi
16175 ;;
16176
16177 uts4*)
16178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16179 hardcode_libdir_flag_spec='-L$libdir'
16180 hardcode_shlibpath_var=no
16181 ;;
16182
16183 *)
16184 ld_shlibs=no
16185 ;;
16186 esac
16187
16188 if test x$host_vendor = xsni; then
16189 case $host in
16190 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16191 export_dynamic_flag_spec='${wl}-Blargedynsym'
16192 ;;
16193 esac
16194 fi
16195 fi
16196
16197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16198$as_echo "$ld_shlibs" >&6; }
16199test "$ld_shlibs" = no && can_build_shared=no
16200
16201with_gnu_ld=$with_gnu_ld
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217#
16218# Do we need to explicitly link libc?
16219#
16220case "x$archive_cmds_need_lc" in
16221x|xyes)
16222 # Assume -lc should be added
16223 archive_cmds_need_lc=yes
16224
16225 if test "$enable_shared" = yes && test "$GCC" = yes; then
16226 case $archive_cmds in
16227 *'~'*)
16228 # FIXME: we may have to deal with multi-command sequences.
16229 ;;
16230 '$CC '*)
16231 # Test whether the compiler implicitly links with -lc since on some
16232 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16233 # to ld, don't add -lc before -lgcc.
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16235$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016236if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016237 $as_echo_n "(cached) " >&6
16238else
16239 $RM conftest*
16240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016241
cristy0c60a692010-11-04 01:09:47 +000016242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016243 (eval $ac_compile) 2>&5
16244 ac_status=$?
16245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16246 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016247 soname=conftest
16248 lib=conftest
16249 libobjs=conftest.$ac_objext
16250 deplibs=
16251 wl=$lt_prog_compiler_wl
16252 pic_flag=$lt_prog_compiler_pic
16253 compiler_flags=-v
16254 linker_flags=-v
16255 verstring=
16256 output_objdir=.
16257 libname=conftest
16258 lt_save_allow_undefined_flag=$allow_undefined_flag
16259 allow_undefined_flag=
16260 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 +000016261 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16262 ac_status=$?
16263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16264 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016265 then
16266 lt_cv_archive_cmds_need_lc=no
16267 else
16268 lt_cv_archive_cmds_need_lc=yes
16269 fi
16270 allow_undefined_flag=$lt_save_allow_undefined_flag
16271 else
16272 cat conftest.err 1>&5
16273 fi
16274 $RM conftest*
16275
16276fi
16277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16278$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16279 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016280 ;;
16281 esac
16282 fi
16283 ;;
16284esac
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
cristy73bd4a52010-10-05 11:24:23 +000016437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16438$as_echo_n "checking dynamic linker characteristics... " >&6; }
16439
16440if test "$GCC" = yes; then
16441 case $host_os in
16442 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16443 *) lt_awk_arg="/^libraries:/" ;;
16444 esac
cristy0c60a692010-11-04 01:09:47 +000016445 case $host_os in
16446 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16447 *) lt_sed_strip_eq="s,=/,/,g" ;;
16448 esac
16449 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16450 case $lt_search_path_spec in
16451 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016452 # if the path contains ";" then we assume it to be the separator
16453 # otherwise default to the standard path separator (i.e. ":") - it is
16454 # assumed that no part of a normal pathname contains ";" but that should
16455 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016456 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16457 ;;
16458 *)
16459 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16460 ;;
16461 esac
cristy73bd4a52010-10-05 11:24:23 +000016462 # Ok, now we have the path, separated by spaces, we can step through it
16463 # and add multilib dir if necessary.
16464 lt_tmp_lt_search_path_spec=
16465 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16466 for lt_sys_path in $lt_search_path_spec; do
16467 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16468 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16469 else
16470 test -d "$lt_sys_path" && \
16471 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16472 fi
16473 done
cristy0c60a692010-11-04 01:09:47 +000016474 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016475BEGIN {RS=" "; FS="/|\n";} {
16476 lt_foo="";
16477 lt_count=0;
16478 for (lt_i = NF; lt_i > 0; lt_i--) {
16479 if ($lt_i != "" && $lt_i != ".") {
16480 if ($lt_i == "..") {
16481 lt_count++;
16482 } else {
16483 if (lt_count == 0) {
16484 lt_foo="/" $lt_i lt_foo;
16485 } else {
16486 lt_count--;
16487 }
16488 }
16489 }
16490 }
16491 if (lt_foo != "") { lt_freq[lt_foo]++; }
16492 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16493}'`
cristy0c60a692010-11-04 01:09:47 +000016494 # AWK program above erroneously prepends '/' to C:/dos/paths
16495 # for these hosts.
16496 case $host_os in
16497 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16498 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16499 esac
16500 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016501else
16502 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16503fi
16504library_names_spec=
16505libname_spec='lib$name'
16506soname_spec=
16507shrext_cmds=".so"
16508postinstall_cmds=
16509postuninstall_cmds=
16510finish_cmds=
16511finish_eval=
16512shlibpath_var=
16513shlibpath_overrides_runpath=unknown
16514version_type=none
16515dynamic_linker="$host_os ld.so"
16516sys_lib_dlsearch_path_spec="/lib /usr/lib"
16517need_lib_prefix=unknown
16518hardcode_into_libs=no
16519
16520# when you set need_version to no, make sure it does not cause -set_version
16521# flags to be left without arguments
16522need_version=unknown
16523
16524case $host_os in
16525aix3*)
cristy99bd5232011-12-07 14:38:20 +000016526 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16528 shlibpath_var=LIBPATH
16529
16530 # AIX 3 has no versioning support, so we append a major version to the name.
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 ;;
16533
16534aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016535 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016536 need_lib_prefix=no
16537 need_version=no
16538 hardcode_into_libs=yes
16539 if test "$host_cpu" = ia64; then
16540 # AIX 5 supports IA64
16541 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16542 shlibpath_var=LD_LIBRARY_PATH
16543 else
16544 # With GCC up to 2.95.x, collect2 would create an import file
16545 # for dependence libraries. The import file would start with
16546 # the line `#! .'. This would cause the generated library to
16547 # depend on `.', always an invalid library. This was fixed in
16548 # development snapshots of GCC prior to 3.0.
16549 case $host_os in
16550 aix4 | aix4.[01] | aix4.[01].*)
16551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16552 echo ' yes '
16553 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16554 :
16555 else
16556 can_build_shared=no
16557 fi
16558 ;;
16559 esac
16560 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16561 # soname into executable. Probably we can add versioning support to
16562 # collect2, so additional links can be useful in future.
16563 if test "$aix_use_runtimelinking" = yes; then
16564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16565 # instead of lib<name>.a to let people know that these are not
16566 # typical AIX shared libraries.
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568 else
16569 # We preserve .a as extension for shared libraries through AIX4.2
16570 # and later when we are not doing run time linking.
16571 library_names_spec='${libname}${release}.a $libname.a'
16572 soname_spec='${libname}${release}${shared_ext}$major'
16573 fi
16574 shlibpath_var=LIBPATH
16575 fi
16576 ;;
16577
16578amigaos*)
16579 case $host_cpu in
16580 powerpc)
16581 # Since July 2007 AmigaOS4 officially supports .so libraries.
16582 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16584 ;;
16585 m68k)
16586 library_names_spec='$libname.ixlibrary $libname.a'
16587 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016588 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 +000016589 ;;
16590 esac
16591 ;;
16592
16593beos*)
16594 library_names_spec='${libname}${shared_ext}'
16595 dynamic_linker="$host_os ld.so"
16596 shlibpath_var=LIBRARY_PATH
16597 ;;
16598
16599bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016600 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016601 need_version=no
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603 soname_spec='${libname}${release}${shared_ext}$major'
16604 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16605 shlibpath_var=LD_LIBRARY_PATH
16606 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16607 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16608 # the default ld.so.conf also contains /usr/contrib/lib and
16609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16610 # libtool to hard-code these into programs
16611 ;;
16612
16613cygwin* | mingw* | pw32* | cegcc*)
16614 version_type=windows
16615 shrext_cmds=".dll"
16616 need_version=no
16617 need_lib_prefix=no
16618
cristyda16f162011-02-19 23:52:17 +000016619 case $GCC,$cc_basename in
16620 yes,*)
16621 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016622 library_names_spec='$libname.dll.a'
16623 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16624 postinstall_cmds='base_file=`basename \${file}`~
16625 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16626 dldir=$destdir/`dirname \$dlpath`~
16627 test -d \$dldir || mkdir -p \$dldir~
16628 $install_prog $dir/$dlname \$dldir/$dlname~
16629 chmod a+x \$dldir/$dlname~
16630 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16631 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16632 fi'
16633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16634 dlpath=$dir/\$dldll~
16635 $RM \$dlpath'
16636 shlibpath_overrides_runpath=yes
16637
16638 case $host_os in
16639 cygwin*)
16640 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16641 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016642
16643 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016644 ;;
16645 mingw* | cegcc*)
16646 # MinGW DLLs use traditional 'lib' prefix
16647 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016648 ;;
16649 pw32*)
16650 # pw32 DLLs use 'pw' prefix rather than 'lib'
16651 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16652 ;;
16653 esac
cristyda16f162011-02-19 23:52:17 +000016654 dynamic_linker='Win32 ld.exe'
16655 ;;
16656
16657 *,cl*)
16658 # Native MSVC
16659 libname_spec='$name'
16660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16661 library_names_spec='${libname}.dll.lib'
16662
16663 case $build_os in
16664 mingw*)
16665 sys_lib_search_path_spec=
16666 lt_save_ifs=$IFS
16667 IFS=';'
16668 for lt_path in $LIB
16669 do
16670 IFS=$lt_save_ifs
16671 # Let DOS variable expansion print the short 8.3 style file name.
16672 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16673 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16674 done
16675 IFS=$lt_save_ifs
16676 # Convert to MSYS style.
16677 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16678 ;;
16679 cygwin*)
16680 # Convert to unix form, then to dos form, then back to unix form
16681 # but this time dos style (no spaces!) so that the unix form looks
16682 # like /cygdrive/c/PROGRA~1:/cygdr...
16683 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16684 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16685 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16686 ;;
16687 *)
16688 sys_lib_search_path_spec="$LIB"
16689 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16690 # It is most probably a Windows format PATH.
16691 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16692 else
16693 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16694 fi
16695 # FIXME: find the short name or the path components, as spaces are
16696 # common. (e.g. "Program Files" -> "PROGRA~1")
16697 ;;
16698 esac
16699
16700 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16701 postinstall_cmds='base_file=`basename \${file}`~
16702 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16703 dldir=$destdir/`dirname \$dlpath`~
16704 test -d \$dldir || mkdir -p \$dldir~
16705 $install_prog $dir/$dlname \$dldir/$dlname'
16706 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16707 dlpath=$dir/\$dldll~
16708 $RM \$dlpath'
16709 shlibpath_overrides_runpath=yes
16710 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016711 ;;
16712
16713 *)
cristyda16f162011-02-19 23:52:17 +000016714 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016715 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016716 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016717 ;;
16718 esac
cristy73bd4a52010-10-05 11:24:23 +000016719 # FIXME: first we should search . and the directory the executable is in
16720 shlibpath_var=PATH
16721 ;;
16722
16723darwin* | rhapsody*)
16724 dynamic_linker="$host_os dyld"
16725 version_type=darwin
16726 need_lib_prefix=no
16727 need_version=no
16728 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16729 soname_spec='${libname}${release}${major}$shared_ext'
16730 shlibpath_overrides_runpath=yes
16731 shlibpath_var=DYLD_LIBRARY_PATH
16732 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16733
16734 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16735 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16736 ;;
16737
16738dgux*)
cristy99bd5232011-12-07 14:38:20 +000016739 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016740 need_lib_prefix=no
16741 need_version=no
16742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16743 soname_spec='${libname}${release}${shared_ext}$major'
16744 shlibpath_var=LD_LIBRARY_PATH
16745 ;;
16746
cristy73bd4a52010-10-05 11:24:23 +000016747freebsd* | dragonfly*)
16748 # DragonFly does not have aout. When/if they implement a new
16749 # versioning mechanism, adjust this.
16750 if test -x /usr/bin/objformat; then
16751 objformat=`/usr/bin/objformat`
16752 else
16753 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016754 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016755 *) objformat=elf ;;
16756 esac
16757 fi
16758 version_type=freebsd-$objformat
16759 case $version_type in
16760 freebsd-elf*)
16761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16762 need_version=no
16763 need_lib_prefix=no
16764 ;;
16765 freebsd-*)
16766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16767 need_version=yes
16768 ;;
16769 esac
16770 shlibpath_var=LD_LIBRARY_PATH
16771 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016772 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016773 shlibpath_overrides_runpath=yes
16774 ;;
16775 freebsd3.[01]* | freebsdelf3.[01]*)
16776 shlibpath_overrides_runpath=yes
16777 hardcode_into_libs=yes
16778 ;;
16779 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16780 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16781 shlibpath_overrides_runpath=no
16782 hardcode_into_libs=yes
16783 ;;
16784 *) # from 4.6 on, and DragonFly
16785 shlibpath_overrides_runpath=yes
16786 hardcode_into_libs=yes
16787 ;;
16788 esac
16789 ;;
16790
16791gnu*)
cristy99bd5232011-12-07 14:38:20 +000016792 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016793 need_lib_prefix=no
16794 need_version=no
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16796 soname_spec='${libname}${release}${shared_ext}$major'
16797 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016798 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016799 hardcode_into_libs=yes
16800 ;;
16801
cristy0c60a692010-11-04 01:09:47 +000016802haiku*)
cristy99bd5232011-12-07 14:38:20 +000016803 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016804 need_lib_prefix=no
16805 need_version=no
16806 dynamic_linker="$host_os runtime_loader"
16807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16808 soname_spec='${libname}${release}${shared_ext}$major'
16809 shlibpath_var=LIBRARY_PATH
16810 shlibpath_overrides_runpath=yes
16811 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16812 hardcode_into_libs=yes
16813 ;;
16814
cristy73bd4a52010-10-05 11:24:23 +000016815hpux9* | hpux10* | hpux11*)
16816 # Give a soname corresponding to the major version so that dld.sl refuses to
16817 # link against other versions.
16818 version_type=sunos
16819 need_lib_prefix=no
16820 need_version=no
16821 case $host_cpu in
16822 ia64*)
16823 shrext_cmds='.so'
16824 hardcode_into_libs=yes
16825 dynamic_linker="$host_os dld.so"
16826 shlibpath_var=LD_LIBRARY_PATH
16827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16829 soname_spec='${libname}${release}${shared_ext}$major'
16830 if test "X$HPUX_IA64_MODE" = X32; then
16831 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16832 else
16833 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16834 fi
16835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16836 ;;
16837 hppa*64*)
16838 shrext_cmds='.sl'
16839 hardcode_into_libs=yes
16840 dynamic_linker="$host_os dld.sl"
16841 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844 soname_spec='${libname}${release}${shared_ext}$major'
16845 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16847 ;;
16848 *)
16849 shrext_cmds='.sl'
16850 dynamic_linker="$host_os dld.sl"
16851 shlibpath_var=SHLIB_PATH
16852 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854 soname_spec='${libname}${release}${shared_ext}$major'
16855 ;;
16856 esac
cristy0c60a692010-11-04 01:09:47 +000016857 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016858 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016859 # or fails outright, so override atomically:
16860 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016861 ;;
16862
16863interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016864 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016865 need_lib_prefix=no
16866 need_version=no
16867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16868 soname_spec='${libname}${release}${shared_ext}$major'
16869 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16870 shlibpath_var=LD_LIBRARY_PATH
16871 shlibpath_overrides_runpath=no
16872 hardcode_into_libs=yes
16873 ;;
16874
16875irix5* | irix6* | nonstopux*)
16876 case $host_os in
16877 nonstopux*) version_type=nonstopux ;;
16878 *)
16879 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016880 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016881 else
16882 version_type=irix
16883 fi ;;
16884 esac
16885 need_lib_prefix=no
16886 need_version=no
16887 soname_spec='${libname}${release}${shared_ext}$major'
16888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16889 case $host_os in
16890 irix5* | nonstopux*)
16891 libsuff= shlibsuff=
16892 ;;
16893 *)
16894 case $LD in # libtool.m4 will add one of these switches to LD
16895 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16896 libsuff= shlibsuff= libmagic=32-bit;;
16897 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16898 libsuff=32 shlibsuff=N32 libmagic=N32;;
16899 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16900 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16901 *) libsuff= shlibsuff= libmagic=never-match;;
16902 esac
16903 ;;
16904 esac
16905 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16906 shlibpath_overrides_runpath=no
16907 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16908 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16909 hardcode_into_libs=yes
16910 ;;
16911
16912# No shared lib support for Linux oldld, aout, or coff.
16913linux*oldld* | linux*aout* | linux*coff*)
16914 dynamic_linker=no
16915 ;;
16916
cristy99bd5232011-12-07 14:38:20 +000016917# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016918linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016919 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016920 need_lib_prefix=no
16921 need_version=no
16922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16923 soname_spec='${libname}${release}${shared_ext}$major'
16924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16925 shlibpath_var=LD_LIBRARY_PATH
16926 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016927
cristy73bd4a52010-10-05 11:24:23 +000016928 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016929 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016930 $as_echo_n "(cached) " >&6
16931else
16932 lt_cv_shlibpath_overrides_runpath=no
16933 save_LDFLAGS=$LDFLAGS
16934 save_libdir=$libdir
16935 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16936 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016938/* end confdefs.h. */
16939
16940int
16941main ()
16942{
16943
16944 ;
16945 return 0;
16946}
16947_ACEOF
16948if ac_fn_c_try_link "$LINENO"; then :
16949 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016950 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016951fi
16952fi
16953rm -f core conftest.err conftest.$ac_objext \
16954 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016955 LDFLAGS=$save_LDFLAGS
16956 libdir=$save_libdir
16957
16958fi
16959
16960 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016961
16962 # This implies no fast_install, which is unacceptable.
16963 # Some rework will be needed to allow for fast_install
16964 # before this can be enabled.
16965 hardcode_into_libs=yes
16966
16967 # Add ABI-specific directories to the system library path.
16968 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16969
16970 # Append ld.so.conf contents to the search path
16971 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016972 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 +000016973 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016974
cristy73bd4a52010-10-05 11:24:23 +000016975 fi
16976
16977 # We used to test for /lib/ld.so.1 and disable shared libraries on
16978 # powerpc, because MkLinux only supported shared libraries with the
16979 # GNU dynamic linker. Since this was broken with cross compilers,
16980 # most powerpc-linux boxes support dynamic linking these days and
16981 # people can always --disable-shared, the test was removed, and we
16982 # assume the GNU/Linux dynamic linker is in use.
16983 dynamic_linker='GNU/Linux ld.so'
16984 ;;
16985
16986netbsd*)
16987 version_type=sunos
16988 need_lib_prefix=no
16989 need_version=no
16990 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16993 dynamic_linker='NetBSD (a.out) ld.so'
16994 else
16995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16996 soname_spec='${libname}${release}${shared_ext}$major'
16997 dynamic_linker='NetBSD ld.elf_so'
16998 fi
16999 shlibpath_var=LD_LIBRARY_PATH
17000 shlibpath_overrides_runpath=yes
17001 hardcode_into_libs=yes
17002 ;;
17003
17004newsos6)
cristy99bd5232011-12-07 14:38:20 +000017005 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007 shlibpath_var=LD_LIBRARY_PATH
17008 shlibpath_overrides_runpath=yes
17009 ;;
17010
17011*nto* | *qnx*)
17012 version_type=qnx
17013 need_lib_prefix=no
17014 need_version=no
17015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17016 soname_spec='${libname}${release}${shared_ext}$major'
17017 shlibpath_var=LD_LIBRARY_PATH
17018 shlibpath_overrides_runpath=no
17019 hardcode_into_libs=yes
17020 dynamic_linker='ldqnx.so'
17021 ;;
17022
17023openbsd*)
17024 version_type=sunos
17025 sys_lib_dlsearch_path_spec="/usr/lib"
17026 need_lib_prefix=no
17027 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17028 case $host_os in
17029 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17030 *) need_version=no ;;
17031 esac
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17034 shlibpath_var=LD_LIBRARY_PATH
17035 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17036 case $host_os in
17037 openbsd2.[89] | openbsd2.[89].*)
17038 shlibpath_overrides_runpath=no
17039 ;;
17040 *)
17041 shlibpath_overrides_runpath=yes
17042 ;;
17043 esac
17044 else
17045 shlibpath_overrides_runpath=yes
17046 fi
17047 ;;
17048
17049os2*)
17050 libname_spec='$name'
17051 shrext_cmds=".dll"
17052 need_lib_prefix=no
17053 library_names_spec='$libname${shared_ext} $libname.a'
17054 dynamic_linker='OS/2 ld.exe'
17055 shlibpath_var=LIBPATH
17056 ;;
17057
17058osf3* | osf4* | osf5*)
17059 version_type=osf
17060 need_lib_prefix=no
17061 need_version=no
17062 soname_spec='${libname}${release}${shared_ext}$major'
17063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17064 shlibpath_var=LD_LIBRARY_PATH
17065 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17066 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17067 ;;
17068
17069rdos*)
17070 dynamic_linker=no
17071 ;;
17072
17073solaris*)
cristy99bd5232011-12-07 14:38:20 +000017074 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017075 need_lib_prefix=no
17076 need_version=no
17077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17078 soname_spec='${libname}${release}${shared_ext}$major'
17079 shlibpath_var=LD_LIBRARY_PATH
17080 shlibpath_overrides_runpath=yes
17081 hardcode_into_libs=yes
17082 # ldd complains unless libraries are executable
17083 postinstall_cmds='chmod +x $lib'
17084 ;;
17085
17086sunos4*)
17087 version_type=sunos
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17089 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17090 shlibpath_var=LD_LIBRARY_PATH
17091 shlibpath_overrides_runpath=yes
17092 if test "$with_gnu_ld" = yes; then
17093 need_lib_prefix=no
17094 fi
17095 need_version=yes
17096 ;;
17097
17098sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017099 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17101 soname_spec='${libname}${release}${shared_ext}$major'
17102 shlibpath_var=LD_LIBRARY_PATH
17103 case $host_vendor in
17104 sni)
17105 shlibpath_overrides_runpath=no
17106 need_lib_prefix=no
17107 runpath_var=LD_RUN_PATH
17108 ;;
17109 siemens)
17110 need_lib_prefix=no
17111 ;;
17112 motorola)
17113 need_lib_prefix=no
17114 need_version=no
17115 shlibpath_overrides_runpath=no
17116 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17117 ;;
17118 esac
17119 ;;
17120
17121sysv4*MP*)
17122 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017123 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017124 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17125 soname_spec='$libname${shared_ext}.$major'
17126 shlibpath_var=LD_LIBRARY_PATH
17127 fi
17128 ;;
17129
17130sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17131 version_type=freebsd-elf
17132 need_lib_prefix=no
17133 need_version=no
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17136 shlibpath_var=LD_LIBRARY_PATH
17137 shlibpath_overrides_runpath=yes
17138 hardcode_into_libs=yes
17139 if test "$with_gnu_ld" = yes; then
17140 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17141 else
17142 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17143 case $host_os in
17144 sco3.2v5*)
17145 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17146 ;;
17147 esac
17148 fi
17149 sys_lib_dlsearch_path_spec='/usr/lib'
17150 ;;
17151
17152tpf*)
17153 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017154 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017155 need_lib_prefix=no
17156 need_version=no
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158 shlibpath_var=LD_LIBRARY_PATH
17159 shlibpath_overrides_runpath=no
17160 hardcode_into_libs=yes
17161 ;;
17162
17163uts4*)
cristy99bd5232011-12-07 14:38:20 +000017164 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17166 soname_spec='${libname}${release}${shared_ext}$major'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 ;;
17169
17170*)
17171 dynamic_linker=no
17172 ;;
17173esac
17174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17175$as_echo "$dynamic_linker" >&6; }
17176test "$dynamic_linker" = no && can_build_shared=no
17177
17178variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17179if test "$GCC" = yes; then
17180 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17181fi
17182
17183if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17184 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17185fi
17186if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17187 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17188fi
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
cristy0c60a692010-11-04 01:09:47 +000017276
17277
17278
17279
17280
cristy73bd4a52010-10-05 11:24:23 +000017281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17282$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17283hardcode_action=
17284if test -n "$hardcode_libdir_flag_spec" ||
17285 test -n "$runpath_var" ||
17286 test "X$hardcode_automatic" = "Xyes" ; then
17287
17288 # We can hardcode non-existent directories.
17289 if test "$hardcode_direct" != no &&
17290 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17291 # have to relink, otherwise we might link with an installed library
17292 # when we should be linking with a yet-to-be-installed one
17293 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17294 test "$hardcode_minus_L" != no; then
17295 # Linking always hardcodes the temporary library directory.
17296 hardcode_action=relink
17297 else
17298 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17299 hardcode_action=immediate
17300 fi
17301else
17302 # We cannot hardcode anything, or else we can only hardcode existing
17303 # directories.
17304 hardcode_action=unsupported
17305fi
17306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17307$as_echo "$hardcode_action" >&6; }
17308
17309if test "$hardcode_action" = relink ||
17310 test "$inherit_rpath" = yes; then
17311 # Fast installation is not supported
17312 enable_fast_install=no
17313elif test "$shlibpath_overrides_runpath" = yes ||
17314 test "$enable_shared" = no; then
17315 # Fast installation is not necessary
17316 enable_fast_install=needless
17317fi
17318
17319
17320
17321
17322
17323
17324 if test "x$enable_dlopen" != xyes; then
17325 enable_dlopen=unknown
17326 enable_dlopen_self=unknown
17327 enable_dlopen_self_static=unknown
17328else
17329 lt_cv_dlopen=no
17330 lt_cv_dlopen_libs=
17331
17332 case $host_os in
17333 beos*)
17334 lt_cv_dlopen="load_add_on"
17335 lt_cv_dlopen_libs=
17336 lt_cv_dlopen_self=yes
17337 ;;
17338
17339 mingw* | pw32* | cegcc*)
17340 lt_cv_dlopen="LoadLibrary"
17341 lt_cv_dlopen_libs=
17342 ;;
17343
17344 cygwin*)
17345 lt_cv_dlopen="dlopen"
17346 lt_cv_dlopen_libs=
17347 ;;
17348
17349 darwin*)
17350 # if libdl is installed we need to link against it
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17352$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017353if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017354 $as_echo_n "(cached) " >&6
17355else
17356 ac_check_lib_save_LIBS=$LIBS
17357LIBS="-ldl $LIBS"
17358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17359/* end confdefs.h. */
17360
17361/* Override any GCC internal prototype to avoid an error.
17362 Use char because int might match the return type of a GCC
17363 builtin and then its argument prototype would still apply. */
17364#ifdef __cplusplus
17365extern "C"
17366#endif
17367char dlopen ();
17368int
17369main ()
17370{
17371return dlopen ();
17372 ;
17373 return 0;
17374}
17375_ACEOF
17376if ac_fn_c_try_link "$LINENO"; then :
17377 ac_cv_lib_dl_dlopen=yes
17378else
17379 ac_cv_lib_dl_dlopen=no
17380fi
17381rm -f core conftest.err conftest.$ac_objext \
17382 conftest$ac_exeext conftest.$ac_ext
17383LIBS=$ac_check_lib_save_LIBS
17384fi
17385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17386$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017387if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017388 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17389else
17390
17391 lt_cv_dlopen="dyld"
17392 lt_cv_dlopen_libs=
17393 lt_cv_dlopen_self=yes
17394
17395fi
17396
17397 ;;
17398
17399 *)
17400 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017401if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017402 lt_cv_dlopen="shl_load"
17403else
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17405$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017406if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017407 $as_echo_n "(cached) " >&6
17408else
17409 ac_check_lib_save_LIBS=$LIBS
17410LIBS="-ldld $LIBS"
17411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17412/* end confdefs.h. */
17413
17414/* Override any GCC internal prototype to avoid an error.
17415 Use char because int might match the return type of a GCC
17416 builtin and then its argument prototype would still apply. */
17417#ifdef __cplusplus
17418extern "C"
17419#endif
17420char shl_load ();
17421int
17422main ()
17423{
17424return shl_load ();
17425 ;
17426 return 0;
17427}
17428_ACEOF
17429if ac_fn_c_try_link "$LINENO"; then :
17430 ac_cv_lib_dld_shl_load=yes
17431else
17432 ac_cv_lib_dld_shl_load=no
17433fi
17434rm -f core conftest.err conftest.$ac_objext \
17435 conftest$ac_exeext conftest.$ac_ext
17436LIBS=$ac_check_lib_save_LIBS
17437fi
17438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17439$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017440if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017441 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17442else
17443 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017444if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017445 lt_cv_dlopen="dlopen"
17446else
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17448$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017449if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017450 $as_echo_n "(cached) " >&6
17451else
17452 ac_check_lib_save_LIBS=$LIBS
17453LIBS="-ldl $LIBS"
17454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455/* end confdefs.h. */
17456
17457/* Override any GCC internal prototype to avoid an error.
17458 Use char because int might match the return type of a GCC
17459 builtin and then its argument prototype would still apply. */
17460#ifdef __cplusplus
17461extern "C"
17462#endif
17463char dlopen ();
17464int
17465main ()
17466{
17467return dlopen ();
17468 ;
17469 return 0;
17470}
17471_ACEOF
17472if ac_fn_c_try_link "$LINENO"; then :
17473 ac_cv_lib_dl_dlopen=yes
17474else
17475 ac_cv_lib_dl_dlopen=no
17476fi
17477rm -f core conftest.err conftest.$ac_objext \
17478 conftest$ac_exeext conftest.$ac_ext
17479LIBS=$ac_check_lib_save_LIBS
17480fi
17481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17482$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017483if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017484 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17485else
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17487$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017488if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017489 $as_echo_n "(cached) " >&6
17490else
17491 ac_check_lib_save_LIBS=$LIBS
17492LIBS="-lsvld $LIBS"
17493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494/* end confdefs.h. */
17495
17496/* Override any GCC internal prototype to avoid an error.
17497 Use char because int might match the return type of a GCC
17498 builtin and then its argument prototype would still apply. */
17499#ifdef __cplusplus
17500extern "C"
17501#endif
17502char dlopen ();
17503int
17504main ()
17505{
17506return dlopen ();
17507 ;
17508 return 0;
17509}
17510_ACEOF
17511if ac_fn_c_try_link "$LINENO"; then :
17512 ac_cv_lib_svld_dlopen=yes
17513else
17514 ac_cv_lib_svld_dlopen=no
17515fi
17516rm -f core conftest.err conftest.$ac_objext \
17517 conftest$ac_exeext conftest.$ac_ext
17518LIBS=$ac_check_lib_save_LIBS
17519fi
17520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17521$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017522if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17524else
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17526$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017527if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017528 $as_echo_n "(cached) " >&6
17529else
17530 ac_check_lib_save_LIBS=$LIBS
17531LIBS="-ldld $LIBS"
17532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17533/* end confdefs.h. */
17534
17535/* Override any GCC internal prototype to avoid an error.
17536 Use char because int might match the return type of a GCC
17537 builtin and then its argument prototype would still apply. */
17538#ifdef __cplusplus
17539extern "C"
17540#endif
17541char dld_link ();
17542int
17543main ()
17544{
17545return dld_link ();
17546 ;
17547 return 0;
17548}
17549_ACEOF
17550if ac_fn_c_try_link "$LINENO"; then :
17551 ac_cv_lib_dld_dld_link=yes
17552else
17553 ac_cv_lib_dld_dld_link=no
17554fi
17555rm -f core conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
17557LIBS=$ac_check_lib_save_LIBS
17558fi
17559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17560$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017561if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017562 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17563fi
17564
17565
17566fi
17567
17568
17569fi
17570
17571
17572fi
17573
17574
17575fi
17576
17577
17578fi
17579
17580 ;;
17581 esac
17582
17583 if test "x$lt_cv_dlopen" != xno; then
17584 enable_dlopen=yes
17585 else
17586 enable_dlopen=no
17587 fi
17588
17589 case $lt_cv_dlopen in
17590 dlopen)
17591 save_CPPFLAGS="$CPPFLAGS"
17592 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17593
17594 save_LDFLAGS="$LDFLAGS"
17595 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17596
17597 save_LIBS="$LIBS"
17598 LIBS="$lt_cv_dlopen_libs $LIBS"
17599
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17601$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017602if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017603 $as_echo_n "(cached) " >&6
17604else
17605 if test "$cross_compiling" = yes; then :
17606 lt_cv_dlopen_self=cross
17607else
17608 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17609 lt_status=$lt_dlunknown
17610 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017611#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017612#include "confdefs.h"
17613
17614#if HAVE_DLFCN_H
17615#include <dlfcn.h>
17616#endif
17617
17618#include <stdio.h>
17619
17620#ifdef RTLD_GLOBAL
17621# define LT_DLGLOBAL RTLD_GLOBAL
17622#else
17623# ifdef DL_GLOBAL
17624# define LT_DLGLOBAL DL_GLOBAL
17625# else
17626# define LT_DLGLOBAL 0
17627# endif
17628#endif
17629
17630/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17631 find out it does not work in some platform. */
17632#ifndef LT_DLLAZY_OR_NOW
17633# ifdef RTLD_LAZY
17634# define LT_DLLAZY_OR_NOW RTLD_LAZY
17635# else
17636# ifdef DL_LAZY
17637# define LT_DLLAZY_OR_NOW DL_LAZY
17638# else
17639# ifdef RTLD_NOW
17640# define LT_DLLAZY_OR_NOW RTLD_NOW
17641# else
17642# ifdef DL_NOW
17643# define LT_DLLAZY_OR_NOW DL_NOW
17644# else
17645# define LT_DLLAZY_OR_NOW 0
17646# endif
17647# endif
17648# endif
17649# endif
17650#endif
17651
cristy0c60a692010-11-04 01:09:47 +000017652/* When -fvisbility=hidden is used, assume the code has been annotated
17653 correspondingly for the symbols needed. */
17654#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017655int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017656#endif
17657
cristyda16f162011-02-19 23:52:17 +000017658int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017659int main ()
17660{
17661 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17662 int status = $lt_dlunknown;
17663
17664 if (self)
17665 {
17666 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017667 else
17668 {
17669 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17670 else puts (dlerror ());
17671 }
cristy73bd4a52010-10-05 11:24:23 +000017672 /* dlclose (self); */
17673 }
17674 else
17675 puts (dlerror ());
17676
17677 return status;
17678}
17679_LT_EOF
17680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17681 (eval $ac_link) 2>&5
17682 ac_status=$?
17683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17684 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17685 (./conftest; exit; ) >&5 2>/dev/null
17686 lt_status=$?
17687 case x$lt_status in
17688 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17689 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17690 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17691 esac
17692 else :
17693 # compilation failed
17694 lt_cv_dlopen_self=no
17695 fi
17696fi
17697rm -fr conftest*
17698
17699
17700fi
17701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17702$as_echo "$lt_cv_dlopen_self" >&6; }
17703
17704 if test "x$lt_cv_dlopen_self" = xyes; then
17705 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17707$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017708if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017709 $as_echo_n "(cached) " >&6
17710else
17711 if test "$cross_compiling" = yes; then :
17712 lt_cv_dlopen_self_static=cross
17713else
17714 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17715 lt_status=$lt_dlunknown
17716 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017717#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017718#include "confdefs.h"
17719
17720#if HAVE_DLFCN_H
17721#include <dlfcn.h>
17722#endif
17723
17724#include <stdio.h>
17725
17726#ifdef RTLD_GLOBAL
17727# define LT_DLGLOBAL RTLD_GLOBAL
17728#else
17729# ifdef DL_GLOBAL
17730# define LT_DLGLOBAL DL_GLOBAL
17731# else
17732# define LT_DLGLOBAL 0
17733# endif
17734#endif
17735
17736/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17737 find out it does not work in some platform. */
17738#ifndef LT_DLLAZY_OR_NOW
17739# ifdef RTLD_LAZY
17740# define LT_DLLAZY_OR_NOW RTLD_LAZY
17741# else
17742# ifdef DL_LAZY
17743# define LT_DLLAZY_OR_NOW DL_LAZY
17744# else
17745# ifdef RTLD_NOW
17746# define LT_DLLAZY_OR_NOW RTLD_NOW
17747# else
17748# ifdef DL_NOW
17749# define LT_DLLAZY_OR_NOW DL_NOW
17750# else
17751# define LT_DLLAZY_OR_NOW 0
17752# endif
17753# endif
17754# endif
17755# endif
17756#endif
17757
cristy0c60a692010-11-04 01:09:47 +000017758/* When -fvisbility=hidden is used, assume the code has been annotated
17759 correspondingly for the symbols needed. */
17760#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017761int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017762#endif
17763
cristyda16f162011-02-19 23:52:17 +000017764int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017765int main ()
17766{
17767 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17768 int status = $lt_dlunknown;
17769
17770 if (self)
17771 {
17772 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017773 else
17774 {
17775 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17776 else puts (dlerror ());
17777 }
cristy73bd4a52010-10-05 11:24:23 +000017778 /* dlclose (self); */
17779 }
17780 else
17781 puts (dlerror ());
17782
17783 return status;
17784}
17785_LT_EOF
17786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17787 (eval $ac_link) 2>&5
17788 ac_status=$?
17789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17790 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17791 (./conftest; exit; ) >&5 2>/dev/null
17792 lt_status=$?
17793 case x$lt_status in
17794 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17795 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17796 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17797 esac
17798 else :
17799 # compilation failed
17800 lt_cv_dlopen_self_static=no
17801 fi
17802fi
17803rm -fr conftest*
17804
17805
17806fi
17807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17808$as_echo "$lt_cv_dlopen_self_static" >&6; }
17809 fi
17810
17811 CPPFLAGS="$save_CPPFLAGS"
17812 LDFLAGS="$save_LDFLAGS"
17813 LIBS="$save_LIBS"
17814 ;;
17815 esac
17816
17817 case $lt_cv_dlopen_self in
17818 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17819 *) enable_dlopen_self=unknown ;;
17820 esac
17821
17822 case $lt_cv_dlopen_self_static in
17823 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17824 *) enable_dlopen_self_static=unknown ;;
17825 esac
17826fi
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844striplib=
17845old_striplib=
17846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17847$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17848if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17849 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17850 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17852$as_echo "yes" >&6; }
17853else
17854# FIXME - insert some real tests, host_os isn't really good enough
17855 case $host_os in
17856 darwin*)
17857 if test -n "$STRIP" ; then
17858 striplib="$STRIP -x"
17859 old_striplib="$STRIP -S"
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17861$as_echo "yes" >&6; }
17862 else
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17864$as_echo "no" >&6; }
17865 fi
17866 ;;
17867 *)
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17869$as_echo "no" >&6; }
17870 ;;
17871 esac
17872fi
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885 # Report which library types will actually be built
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17887$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17889$as_echo "$can_build_shared" >&6; }
17890
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17892$as_echo_n "checking whether to build shared libraries... " >&6; }
17893 test "$can_build_shared" = "no" && enable_shared=no
17894
17895 # On AIX, shared libraries and static libraries use the same namespace, and
17896 # are all built from PIC.
17897 case $host_os in
17898 aix3*)
17899 test "$enable_shared" = yes && enable_static=no
17900 if test -n "$RANLIB"; then
17901 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17902 postinstall_cmds='$RANLIB $lib'
17903 fi
17904 ;;
17905
17906 aix[4-9]*)
17907 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17908 test "$enable_shared" = yes && enable_static=no
17909 fi
17910 ;;
17911 esac
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17913$as_echo "$enable_shared" >&6; }
17914
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17916$as_echo_n "checking whether to build static libraries... " >&6; }
17917 # Make sure either enable_shared or enable_static is yes.
17918 test "$enable_shared" = yes || enable_static=yes
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17920$as_echo "$enable_static" >&6; }
17921
17922
17923
17924
17925fi
17926ac_ext=c
17927ac_cpp='$CPP $CPPFLAGS'
17928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17930ac_compiler_gnu=$ac_cv_c_compiler_gnu
17931
17932CC="$lt_save_CC"
17933
cristy0c60a692010-11-04 01:09:47 +000017934 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17935 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17936 (test "X$CXX" != "Xg++"))) ; then
17937 ac_ext=cpp
17938ac_cpp='$CXXCPP $CPPFLAGS'
17939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17943$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17944if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017945 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017946 $as_echo_n "(cached) " >&6
17947else
17948 # Double quotes because CXXCPP needs to be expanded
17949 for CXXCPP in "$CXX -E" "/lib/cpp"
17950 do
17951 ac_preproc_ok=false
17952for ac_cxx_preproc_warn_flag in '' yes
17953do
17954 # Use a header file that comes with gcc, so configuring glibc
17955 # with a fresh cross-compiler works.
17956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17957 # <limits.h> exists even on freestanding compilers.
17958 # On the NeXT, cc -E runs the code through the compiler's parser,
17959 # not just through cpp. "Syntax error" is here to catch this case.
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961/* end confdefs.h. */
17962#ifdef __STDC__
17963# include <limits.h>
17964#else
17965# include <assert.h>
17966#endif
17967 Syntax error
17968_ACEOF
17969if ac_fn_cxx_try_cpp "$LINENO"; then :
17970
17971else
17972 # Broken: fails on valid input.
17973continue
17974fi
cristyda16f162011-02-19 23:52:17 +000017975rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017976
17977 # OK, works on sane cases. Now check whether nonexistent headers
17978 # can be detected and how.
17979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980/* end confdefs.h. */
17981#include <ac_nonexistent.h>
17982_ACEOF
17983if ac_fn_cxx_try_cpp "$LINENO"; then :
17984 # Broken: success on invalid input.
17985continue
17986else
17987 # Passes both tests.
17988ac_preproc_ok=:
17989break
17990fi
cristyda16f162011-02-19 23:52:17 +000017991rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017992
17993done
17994# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017995rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017996if $ac_preproc_ok; then :
17997 break
17998fi
17999
18000 done
18001 ac_cv_prog_CXXCPP=$CXXCPP
18002
18003fi
18004 CXXCPP=$ac_cv_prog_CXXCPP
18005else
18006 ac_cv_prog_CXXCPP=$CXXCPP
18007fi
18008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18009$as_echo "$CXXCPP" >&6; }
18010ac_preproc_ok=false
18011for ac_cxx_preproc_warn_flag in '' yes
18012do
18013 # Use a header file that comes with gcc, so configuring glibc
18014 # with a fresh cross-compiler works.
18015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18016 # <limits.h> exists even on freestanding compilers.
18017 # On the NeXT, cc -E runs the code through the compiler's parser,
18018 # not just through cpp. "Syntax error" is here to catch this case.
18019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18020/* end confdefs.h. */
18021#ifdef __STDC__
18022# include <limits.h>
18023#else
18024# include <assert.h>
18025#endif
18026 Syntax error
18027_ACEOF
18028if ac_fn_cxx_try_cpp "$LINENO"; then :
18029
18030else
18031 # Broken: fails on valid input.
18032continue
18033fi
cristyda16f162011-02-19 23:52:17 +000018034rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018035
18036 # OK, works on sane cases. Now check whether nonexistent headers
18037 # can be detected and how.
18038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039/* end confdefs.h. */
18040#include <ac_nonexistent.h>
18041_ACEOF
18042if ac_fn_cxx_try_cpp "$LINENO"; then :
18043 # Broken: success on invalid input.
18044continue
18045else
18046 # Passes both tests.
18047ac_preproc_ok=:
18048break
18049fi
cristyda16f162011-02-19 23:52:17 +000018050rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018051
18052done
18053# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018054rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018055if $ac_preproc_ok; then :
18056
18057else
18058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18060as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18061See \`config.log' for more details" "$LINENO" 5; }
18062fi
18063
18064ac_ext=c
18065ac_cpp='$CPP $CPPFLAGS'
18066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18068ac_compiler_gnu=$ac_cv_c_compiler_gnu
18069
18070else
18071 _lt_caught_CXX_error=yes
18072fi
cristy73bd4a52010-10-05 11:24:23 +000018073
18074ac_ext=cpp
18075ac_cpp='$CXXCPP $CPPFLAGS'
18076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18079
18080archive_cmds_need_lc_CXX=no
18081allow_undefined_flag_CXX=
18082always_export_symbols_CXX=no
18083archive_expsym_cmds_CXX=
18084compiler_needs_object_CXX=no
18085export_dynamic_flag_spec_CXX=
18086hardcode_direct_CXX=no
18087hardcode_direct_absolute_CXX=no
18088hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018089hardcode_libdir_separator_CXX=
18090hardcode_minus_L_CXX=no
18091hardcode_shlibpath_var_CXX=unsupported
18092hardcode_automatic_CXX=no
18093inherit_rpath_CXX=no
18094module_cmds_CXX=
18095module_expsym_cmds_CXX=
18096link_all_deplibs_CXX=unknown
18097old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018098reload_flag_CXX=$reload_flag
18099reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018100no_undefined_flag_CXX=
18101whole_archive_flag_spec_CXX=
18102enable_shared_with_static_runtimes_CXX=no
18103
18104# Source file extension for C++ test sources.
18105ac_ext=cpp
18106
18107# Object file extension for compiled C++ test sources.
18108objext=o
18109objext_CXX=$objext
18110
18111# No sense in running all these tests if we already determined that
18112# the CXX compiler isn't working. Some variables (like enable_shared)
18113# are currently assumed to apply to all compilers on this platform,
18114# and will be corrupted by setting them based on a non-working compiler.
18115if test "$_lt_caught_CXX_error" != yes; then
18116 # Code to be used in simple compile tests
18117 lt_simple_compile_test_code="int some_variable = 0;"
18118
18119 # Code to be used in simple link tests
18120 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18121
18122 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18123
18124
18125
18126
18127
18128
18129# If no C compiler was specified, use CC.
18130LTCC=${LTCC-"$CC"}
18131
18132# If no C compiler flags were specified, use CFLAGS.
18133LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18134
18135# Allow CC to be a program name with arguments.
18136compiler=$CC
18137
18138
18139 # save warnings/boilerplate of simple test code
18140 ac_outfile=conftest.$ac_objext
18141echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18142eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18143_lt_compiler_boilerplate=`cat conftest.err`
18144$RM conftest*
18145
18146 ac_outfile=conftest.$ac_objext
18147echo "$lt_simple_link_test_code" >conftest.$ac_ext
18148eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18149_lt_linker_boilerplate=`cat conftest.err`
18150$RM -r conftest*
18151
18152
18153 # Allow CC to be a program name with arguments.
18154 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018155 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018156 lt_save_LD=$LD
18157 lt_save_GCC=$GCC
18158 GCC=$GXX
18159 lt_save_with_gnu_ld=$with_gnu_ld
18160 lt_save_path_LD=$lt_cv_path_LD
18161 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18162 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18163 else
18164 $as_unset lt_cv_prog_gnu_ld
18165 fi
18166 if test -n "${lt_cv_path_LDCXX+set}"; then
18167 lt_cv_path_LD=$lt_cv_path_LDCXX
18168 else
18169 $as_unset lt_cv_path_LD
18170 fi
18171 test -z "${LDCXX+set}" || LD=$LDCXX
18172 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018173 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018174 compiler=$CC
18175 compiler_CXX=$CC
18176 for cc_temp in $compiler""; do
18177 case $cc_temp in
18178 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18179 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18180 \-*) ;;
18181 *) break;;
18182 esac
18183done
cristy0c60a692010-11-04 01:09:47 +000018184cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018185
18186
18187 if test -n "$compiler"; then
18188 # We don't want -fno-exception when compiling C++ code, so set the
18189 # no_builtin_flag separately
18190 if test "$GXX" = yes; then
18191 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18192 else
18193 lt_prog_compiler_no_builtin_flag_CXX=
18194 fi
18195
18196 if test "$GXX" = yes; then
18197 # Set up default GNU C++ configuration
18198
18199
18200
18201# Check whether --with-gnu-ld was given.
18202if test "${with_gnu_ld+set}" = set; then :
18203 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18204else
18205 with_gnu_ld=no
18206fi
18207
18208ac_prog=ld
18209if test "$GCC" = yes; then
18210 # Check if gcc -print-prog-name=ld gives a path.
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18212$as_echo_n "checking for ld used by $CC... " >&6; }
18213 case $host in
18214 *-*-mingw*)
18215 # gcc leaves a trailing carriage return which upsets mingw
18216 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18217 *)
18218 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18219 esac
18220 case $ac_prog in
18221 # Accept absolute paths.
18222 [\\/]* | ?:[\\/]*)
18223 re_direlt='/[^/][^/]*/\.\./'
18224 # Canonicalize the pathname of ld
18225 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18226 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18227 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18228 done
18229 test -z "$LD" && LD="$ac_prog"
18230 ;;
18231 "")
18232 # If it fails, then pretend we aren't using GCC.
18233 ac_prog=ld
18234 ;;
18235 *)
18236 # If it is relative, then search for the first ld in PATH.
18237 with_gnu_ld=unknown
18238 ;;
18239 esac
18240elif test "$with_gnu_ld" = yes; then
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18242$as_echo_n "checking for GNU ld... " >&6; }
18243else
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18245$as_echo_n "checking for non-GNU ld... " >&6; }
18246fi
cristyda16f162011-02-19 23:52:17 +000018247if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018248 $as_echo_n "(cached) " >&6
18249else
18250 if test -z "$LD"; then
18251 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18252 for ac_dir in $PATH; do
18253 IFS="$lt_save_ifs"
18254 test -z "$ac_dir" && ac_dir=.
18255 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18256 lt_cv_path_LD="$ac_dir/$ac_prog"
18257 # Check to see if the program is GNU ld. I'd rather use --version,
18258 # but apparently some variants of GNU ld only accept -v.
18259 # Break only if it was the GNU/non-GNU ld that we prefer.
18260 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18261 *GNU* | *'with BFD'*)
18262 test "$with_gnu_ld" != no && break
18263 ;;
18264 *)
18265 test "$with_gnu_ld" != yes && break
18266 ;;
18267 esac
18268 fi
18269 done
18270 IFS="$lt_save_ifs"
18271else
18272 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18273fi
18274fi
18275
18276LD="$lt_cv_path_LD"
18277if test -n "$LD"; then
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18279$as_echo "$LD" >&6; }
18280else
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18282$as_echo "no" >&6; }
18283fi
cristy98dddb52010-11-04 00:30:15 +000018284test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18286$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018287if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018288 $as_echo_n "(cached) " >&6
18289else
18290 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18291case `$LD -v 2>&1 </dev/null` in
18292*GNU* | *'with BFD'*)
18293 lt_cv_prog_gnu_ld=yes
18294 ;;
18295*)
18296 lt_cv_prog_gnu_ld=no
18297 ;;
18298esac
18299fi
18300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18301$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18302with_gnu_ld=$lt_cv_prog_gnu_ld
18303
18304
18305
18306
18307
18308
18309
18310 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18311 # archiving commands below assume that GNU ld is being used.
18312 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018313 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18314 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 +000018315
18316 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18317 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18318
18319 # If archive_cmds runs LD, not CC, wlarc should be empty
18320 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18321 # investigate it a little bit more. (MM)
18322 wlarc='${wl}'
18323
18324 # ancient GNU ld didn't support --whole-archive et. al.
18325 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18326 $GREP 'no-whole-archive' > /dev/null; then
18327 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18328 else
18329 whole_archive_flag_spec_CXX=
18330 fi
18331 else
18332 with_gnu_ld=no
18333 wlarc=
18334
18335 # A generic and very simple default shared library creation
18336 # command for GNU C++ for the case where it uses the native
18337 # linker, instead of GNU ld. If possible, this setting should
18338 # overridden to take advantage of the native linker features on
18339 # the platform it is being used on.
18340 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18341 fi
18342
18343 # Commands to make compiler produce verbose output that lists
18344 # what "hidden" libraries, object files and flags are used when
18345 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018346 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018347
18348 else
18349 GXX=no
18350 with_gnu_ld=no
18351 wlarc=
18352 fi
18353
18354 # PORTME: fill in a description of your system's C++ link characteristics
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18356$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18357 ld_shlibs_CXX=yes
18358 case $host_os in
18359 aix3*)
18360 # FIXME: insert proper C++ library support
18361 ld_shlibs_CXX=no
18362 ;;
18363 aix[4-9]*)
18364 if test "$host_cpu" = ia64; then
18365 # On IA64, the linker does run time linking by default, so we don't
18366 # have to do anything special.
18367 aix_use_runtimelinking=no
18368 exp_sym_flag='-Bexport'
18369 no_entry_flag=""
18370 else
18371 aix_use_runtimelinking=no
18372
18373 # Test if we are trying to use run time linking or normal
18374 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18375 # need to do runtime linking.
18376 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18377 for ld_flag in $LDFLAGS; do
18378 case $ld_flag in
18379 *-brtl*)
18380 aix_use_runtimelinking=yes
18381 break
18382 ;;
18383 esac
18384 done
18385 ;;
18386 esac
18387
18388 exp_sym_flag='-bexport'
18389 no_entry_flag='-bnoentry'
18390 fi
18391
18392 # When large executables or shared objects are built, AIX ld can
18393 # have problems creating the table of contents. If linking a library
18394 # or program results in "error TOC overflow" add -mminimal-toc to
18395 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18396 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18397
18398 archive_cmds_CXX=''
18399 hardcode_direct_CXX=yes
18400 hardcode_direct_absolute_CXX=yes
18401 hardcode_libdir_separator_CXX=':'
18402 link_all_deplibs_CXX=yes
18403 file_list_spec_CXX='${wl}-f,'
18404
18405 if test "$GXX" = yes; then
18406 case $host_os in aix4.[012]|aix4.[012].*)
18407 # We only want to do this on AIX 4.2 and lower, the check
18408 # below for broken collect2 doesn't work under 4.3+
18409 collect2name=`${CC} -print-prog-name=collect2`
18410 if test -f "$collect2name" &&
18411 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18412 then
18413 # We have reworked collect2
18414 :
18415 else
18416 # We have old collect2
18417 hardcode_direct_CXX=unsupported
18418 # It fails to find uninstalled libraries when the uninstalled
18419 # path is not listed in the libpath. Setting hardcode_minus_L
18420 # to unsupported forces relinking
18421 hardcode_minus_L_CXX=yes
18422 hardcode_libdir_flag_spec_CXX='-L$libdir'
18423 hardcode_libdir_separator_CXX=
18424 fi
18425 esac
18426 shared_flag='-shared'
18427 if test "$aix_use_runtimelinking" = yes; then
18428 shared_flag="$shared_flag "'${wl}-G'
18429 fi
18430 else
18431 # not using gcc
18432 if test "$host_cpu" = ia64; then
18433 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18434 # chokes on -Wl,-G. The following line is correct:
18435 shared_flag='-G'
18436 else
18437 if test "$aix_use_runtimelinking" = yes; then
18438 shared_flag='${wl}-G'
18439 else
18440 shared_flag='${wl}-bM:SRE'
18441 fi
18442 fi
18443 fi
18444
18445 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18446 # It seems that -bexpall does not export symbols beginning with
18447 # underscore (_), so it is better to generate a list of symbols to
18448 # export.
18449 always_export_symbols_CXX=yes
18450 if test "$aix_use_runtimelinking" = yes; then
18451 # Warning - without using the other runtime loading flags (-brtl),
18452 # -berok will link without error, but may produce a broken library.
18453 allow_undefined_flag_CXX='-berok'
18454 # Determine the default libpath from the value encoded in an empty
18455 # executable.
cristyda16f162011-02-19 23:52:17 +000018456 if test "${lt_cv_aix_libpath+set}" = set; then
18457 aix_libpath=$lt_cv_aix_libpath
18458else
18459 if ${lt_cv_aix_libpath__CXX+:} false; then :
18460 $as_echo_n "(cached) " >&6
18461else
18462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018463/* end confdefs.h. */
18464
18465int
18466main ()
18467{
18468
18469 ;
18470 return 0;
18471}
18472_ACEOF
18473if ac_fn_cxx_try_link "$LINENO"; then :
18474
cristyda16f162011-02-19 23:52:17 +000018475 lt_aix_libpath_sed='
18476 /Import File Strings/,/^$/ {
18477 /^0/ {
18478 s/^0 *\([^ ]*\) *$/\1/
18479 p
18480 }
18481 }'
18482 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18483 # Check for a 64-bit object if we didn't find anything.
18484 if test -z "$lt_cv_aix_libpath__CXX"; then
18485 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18486 fi
cristy73bd4a52010-10-05 11:24:23 +000018487fi
18488rm -f core conftest.err conftest.$ac_objext \
18489 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018490 if test -z "$lt_cv_aix_libpath__CXX"; then
18491 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18492 fi
18493
18494fi
18495
18496 aix_libpath=$lt_cv_aix_libpath__CXX
18497fi
cristy73bd4a52010-10-05 11:24:23 +000018498
18499 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18500
cristy0c60a692010-11-04 01:09:47 +000018501 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 +000018502 else
18503 if test "$host_cpu" = ia64; then
18504 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18505 allow_undefined_flag_CXX="-z nodefs"
18506 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"
18507 else
18508 # Determine the default libpath from the value encoded in an
18509 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018510 if test "${lt_cv_aix_libpath+set}" = set; then
18511 aix_libpath=$lt_cv_aix_libpath
18512else
18513 if ${lt_cv_aix_libpath__CXX+:} false; then :
18514 $as_echo_n "(cached) " >&6
18515else
18516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018517/* end confdefs.h. */
18518
18519int
18520main ()
18521{
18522
18523 ;
18524 return 0;
18525}
18526_ACEOF
18527if ac_fn_cxx_try_link "$LINENO"; then :
18528
cristyda16f162011-02-19 23:52:17 +000018529 lt_aix_libpath_sed='
18530 /Import File Strings/,/^$/ {
18531 /^0/ {
18532 s/^0 *\([^ ]*\) *$/\1/
18533 p
18534 }
18535 }'
18536 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18537 # Check for a 64-bit object if we didn't find anything.
18538 if test -z "$lt_cv_aix_libpath__CXX"; then
18539 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18540 fi
cristy73bd4a52010-10-05 11:24:23 +000018541fi
18542rm -f core conftest.err conftest.$ac_objext \
18543 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018544 if test -z "$lt_cv_aix_libpath__CXX"; then
18545 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18546 fi
18547
18548fi
18549
18550 aix_libpath=$lt_cv_aix_libpath__CXX
18551fi
cristy73bd4a52010-10-05 11:24:23 +000018552
18553 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18554 # Warning - without using the other run time loading flags,
18555 # -berok will link without error, but may produce a broken library.
18556 no_undefined_flag_CXX=' ${wl}-bernotok'
18557 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018558 if test "$with_gnu_ld" = yes; then
18559 # We only use this code for GNU lds that support --whole-archive.
18560 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18561 else
18562 # Exported symbols can be pulled into shared objects from archives
18563 whole_archive_flag_spec_CXX='$convenience'
18564 fi
cristy73bd4a52010-10-05 11:24:23 +000018565 archive_cmds_need_lc_CXX=yes
18566 # This is similar to how AIX traditionally builds its shared
18567 # libraries.
18568 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'
18569 fi
18570 fi
18571 ;;
18572
18573 beos*)
18574 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18575 allow_undefined_flag_CXX=unsupported
18576 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18577 # support --undefined. This deserves some investigation. FIXME
18578 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18579 else
18580 ld_shlibs_CXX=no
18581 fi
18582 ;;
18583
18584 chorus*)
18585 case $cc_basename in
18586 *)
18587 # FIXME: insert proper C++ library support
18588 ld_shlibs_CXX=no
18589 ;;
18590 esac
18591 ;;
18592
18593 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018594 case $GXX,$cc_basename in
18595 ,cl* | no,cl*)
18596 # Native MSVC
18597 # hardcode_libdir_flag_spec is actually meaningless, as there is
18598 # no search path for DLLs.
18599 hardcode_libdir_flag_spec_CXX=' '
18600 allow_undefined_flag_CXX=unsupported
18601 always_export_symbols_CXX=yes
18602 file_list_spec_CXX='@'
18603 # Tell ltmain to make .lib files, not .a files.
18604 libext=lib
18605 # Tell ltmain to make .dll files, not .so files.
18606 shrext_cmds=".dll"
18607 # FIXME: Setting linknames here is a bad hack.
18608 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18609 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18610 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18611 else
18612 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18613 fi~
18614 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18615 linknames='
18616 # The linker will not automatically build a static lib if we build a DLL.
18617 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18618 enable_shared_with_static_runtimes_CXX=yes
18619 # Don't use ranlib
18620 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18621 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18622 lt_tool_outputfile="@TOOL_OUTPUT@"~
18623 case $lt_outputfile in
18624 *.exe|*.EXE) ;;
18625 *)
18626 lt_outputfile="$lt_outputfile.exe"
18627 lt_tool_outputfile="$lt_tool_outputfile.exe"
18628 ;;
18629 esac~
18630 func_to_tool_file "$lt_outputfile"~
18631 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18632 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18633 $RM "$lt_outputfile.manifest";
18634 fi'
18635 ;;
18636 *)
18637 # g++
18638 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18639 # as there is no search path for DLLs.
18640 hardcode_libdir_flag_spec_CXX='-L$libdir'
18641 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18642 allow_undefined_flag_CXX=unsupported
18643 always_export_symbols_CXX=no
18644 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018645
cristyda16f162011-02-19 23:52:17 +000018646 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18647 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'
18648 # If the export-symbols file already is a .def file (1st line
18649 # is EXPORTS), use it as is; otherwise, prepend...
18650 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18651 cp $export_symbols $output_objdir/$soname.def;
18652 else
18653 echo EXPORTS > $output_objdir/$soname.def;
18654 cat $export_symbols >> $output_objdir/$soname.def;
18655 fi~
18656 $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'
18657 else
18658 ld_shlibs_CXX=no
18659 fi
18660 ;;
18661 esac
18662 ;;
cristy73bd4a52010-10-05 11:24:23 +000018663 darwin* | rhapsody*)
18664
18665
18666 archive_cmds_need_lc_CXX=no
18667 hardcode_direct_CXX=no
18668 hardcode_automatic_CXX=yes
18669 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018670 if test "$lt_cv_ld_force_load" = "yes"; then
18671 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 +000018672
cristy0c60a692010-11-04 01:09:47 +000018673 else
18674 whole_archive_flag_spec_CXX=''
18675 fi
cristy73bd4a52010-10-05 11:24:23 +000018676 link_all_deplibs_CXX=yes
18677 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18678 case $cc_basename in
18679 ifort*) _lt_dar_can_shared=yes ;;
18680 *) _lt_dar_can_shared=$GCC ;;
18681 esac
18682 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018683 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018684 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}"
18685 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18686 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}"
18687 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}"
18688 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18689 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}"
18690 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}"
18691 fi
18692
18693 else
18694 ld_shlibs_CXX=no
18695 fi
18696
18697 ;;
18698
18699 dgux*)
18700 case $cc_basename in
18701 ec++*)
18702 # FIXME: insert proper C++ library support
18703 ld_shlibs_CXX=no
18704 ;;
18705 ghcx*)
18706 # Green Hills C++ Compiler
18707 # FIXME: insert proper C++ library support
18708 ld_shlibs_CXX=no
18709 ;;
18710 *)
18711 # FIXME: insert proper C++ library support
18712 ld_shlibs_CXX=no
18713 ;;
18714 esac
18715 ;;
18716
cristy99bd5232011-12-07 14:38:20 +000018717 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018718 # C++ shared libraries reported to be fairly broken before
18719 # switch to ELF
18720 ld_shlibs_CXX=no
18721 ;;
18722
18723 freebsd-elf*)
18724 archive_cmds_need_lc_CXX=no
18725 ;;
18726
18727 freebsd* | dragonfly*)
18728 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18729 # conventions
18730 ld_shlibs_CXX=yes
18731 ;;
18732
18733 gnu*)
18734 ;;
18735
cristy0c60a692010-11-04 01:09:47 +000018736 haiku*)
18737 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18738 link_all_deplibs_CXX=yes
18739 ;;
18740
cristy73bd4a52010-10-05 11:24:23 +000018741 hpux9*)
18742 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18743 hardcode_libdir_separator_CXX=:
18744 export_dynamic_flag_spec_CXX='${wl}-E'
18745 hardcode_direct_CXX=yes
18746 hardcode_minus_L_CXX=yes # Not in the search PATH,
18747 # but as the default
18748 # location of the library.
18749
18750 case $cc_basename in
18751 CC*)
18752 # FIXME: insert proper C++ library support
18753 ld_shlibs_CXX=no
18754 ;;
18755 aCC*)
18756 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'
18757 # Commands to make compiler produce verbose output that lists
18758 # what "hidden" libraries, object files and flags are used when
18759 # linking a shared library.
18760 #
18761 # There doesn't appear to be a way to prevent this compiler from
18762 # explicitly linking system object files so we need to strip them
18763 # from the output so that they don't get included in the library
18764 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018765 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 +000018766 ;;
18767 *)
18768 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018769 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 +000018770 else
18771 # FIXME: insert proper C++ library support
18772 ld_shlibs_CXX=no
18773 fi
18774 ;;
18775 esac
18776 ;;
18777
18778 hpux10*|hpux11*)
18779 if test $with_gnu_ld = no; then
18780 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18781 hardcode_libdir_separator_CXX=:
18782
18783 case $host_cpu in
18784 hppa*64*|ia64*)
18785 ;;
18786 *)
18787 export_dynamic_flag_spec_CXX='${wl}-E'
18788 ;;
18789 esac
18790 fi
18791 case $host_cpu in
18792 hppa*64*|ia64*)
18793 hardcode_direct_CXX=no
18794 hardcode_shlibpath_var_CXX=no
18795 ;;
18796 *)
18797 hardcode_direct_CXX=yes
18798 hardcode_direct_absolute_CXX=yes
18799 hardcode_minus_L_CXX=yes # Not in the search PATH,
18800 # but as the default
18801 # location of the library.
18802 ;;
18803 esac
18804
18805 case $cc_basename in
18806 CC*)
18807 # FIXME: insert proper C++ library support
18808 ld_shlibs_CXX=no
18809 ;;
18810 aCC*)
18811 case $host_cpu in
18812 hppa*64*)
18813 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18814 ;;
18815 ia64*)
18816 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18817 ;;
18818 *)
18819 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18820 ;;
18821 esac
18822 # Commands to make compiler produce verbose output that lists
18823 # what "hidden" libraries, object files and flags are used when
18824 # linking a shared library.
18825 #
18826 # There doesn't appear to be a way to prevent this compiler from
18827 # explicitly linking system object files so we need to strip them
18828 # from the output so that they don't get included in the library
18829 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018830 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 +000018831 ;;
18832 *)
18833 if test "$GXX" = yes; then
18834 if test $with_gnu_ld = no; then
18835 case $host_cpu in
18836 hppa*64*)
18837 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18838 ;;
18839 ia64*)
cristyda16f162011-02-19 23:52:17 +000018840 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 +000018841 ;;
18842 *)
cristyda16f162011-02-19 23:52:17 +000018843 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 +000018844 ;;
18845 esac
18846 fi
18847 else
18848 # FIXME: insert proper C++ library support
18849 ld_shlibs_CXX=no
18850 fi
18851 ;;
18852 esac
18853 ;;
18854
18855 interix[3-9]*)
18856 hardcode_direct_CXX=no
18857 hardcode_shlibpath_var_CXX=no
18858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18859 export_dynamic_flag_spec_CXX='${wl}-E'
18860 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18861 # Instead, shared libraries are loaded at an image base (0x10000000 by
18862 # default) and relocated if they conflict, which is a slow very memory
18863 # consuming and fragmenting process. To avoid this, we pick a random,
18864 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18865 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18866 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'
18867 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'
18868 ;;
18869 irix5* | irix6*)
18870 case $cc_basename in
18871 CC*)
18872 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018873 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 +000018874
18875 # Archives containing C++ object files must be created using
18876 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18877 # necessary to make sure instantiated templates are included
18878 # in the archive.
18879 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18880 ;;
18881 *)
18882 if test "$GXX" = yes; then
18883 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018884 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 +000018885 else
cristyda16f162011-02-19 23:52:17 +000018886 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 +000018887 fi
18888 fi
18889 link_all_deplibs_CXX=yes
18890 ;;
18891 esac
18892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18893 hardcode_libdir_separator_CXX=:
18894 inherit_rpath_CXX=yes
18895 ;;
18896
cristy0c60a692010-11-04 01:09:47 +000018897 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018898 case $cc_basename in
18899 KCC*)
18900 # Kuck and Associates, Inc. (KAI) C++ Compiler
18901
18902 # KCC will only create a shared library if the output file
18903 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18904 # to its proper name (with version) after linking.
18905 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'
18906 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'
18907 # Commands to make compiler produce verbose output that lists
18908 # what "hidden" libraries, object files and flags are used when
18909 # linking a shared library.
18910 #
18911 # There doesn't appear to be a way to prevent this compiler from
18912 # explicitly linking system object files so we need to strip them
18913 # from the output so that they don't get included in the library
18914 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018915 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 +000018916
18917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18918 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18919
18920 # Archives containing C++ object files must be created using
18921 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18922 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18923 ;;
18924 icpc* | ecpc* )
18925 # Intel C++
18926 with_gnu_ld=yes
18927 # version 8.0 and above of icpc choke on multiply defined symbols
18928 # if we add $predep_objects and $postdep_objects, however 7.1 and
18929 # earlier do not add the objects themselves.
18930 case `$CC -V 2>&1` in
18931 *"Version 7."*)
18932 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18933 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'
18934 ;;
18935 *) # Version 8.0 or newer
18936 tmp_idyn=
18937 case $host_cpu in
18938 ia64*) tmp_idyn=' -i_dynamic';;
18939 esac
18940 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18941 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'
18942 ;;
18943 esac
18944 archive_cmds_need_lc_CXX=no
18945 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18946 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18947 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18948 ;;
18949 pgCC* | pgcpp*)
18950 # Portland Group C++ compiler
18951 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018952 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018953 prelink_cmds_CXX='tpldir=Template.dir~
18954 rm -rf $tpldir~
18955 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018956 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018957 old_archive_cmds_CXX='tpldir=Template.dir~
18958 rm -rf $tpldir~
18959 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018960 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018961 $RANLIB $oldlib'
18962 archive_cmds_CXX='tpldir=Template.dir~
18963 rm -rf $tpldir~
18964 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018965 $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 +000018966 archive_expsym_cmds_CXX='tpldir=Template.dir~
18967 rm -rf $tpldir~
18968 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018969 $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 +000018970 ;;
cristy0c60a692010-11-04 01:09:47 +000018971 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018972 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18973 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'
18974 ;;
18975 esac
18976
18977 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18978 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018979 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 +000018980 ;;
18981 cxx*)
18982 # Compaq C++
18983 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18984 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'
18985
18986 runpath_var=LD_RUN_PATH
18987 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18988 hardcode_libdir_separator_CXX=:
18989
18990 # Commands to make compiler produce verbose output that lists
18991 # what "hidden" libraries, object files and flags are used when
18992 # linking a shared library.
18993 #
18994 # There doesn't appear to be a way to prevent this compiler from
18995 # explicitly linking system object files so we need to strip them
18996 # from the output so that they don't get included in the library
18997 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018998 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 +000018999 ;;
cristy0c60a692010-11-04 01:09:47 +000019000 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019001 # IBM XL 8.0 on PPC, with GNU ld
19002 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19003 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19004 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19005 if test "x$supports_anon_versioning" = xyes; then
19006 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19007 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19008 echo "local: *; };" >> $output_objdir/$libname.ver~
19009 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19010 fi
19011 ;;
19012 *)
19013 case `$CC -V 2>&1 | sed 5q` in
19014 *Sun\ C*)
19015 # Sun C++ 5.9
19016 no_undefined_flag_CXX=' -zdefs'
19017 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19018 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'
19019 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019020 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 +000019021 compiler_needs_object_CXX=yes
19022
19023 # Not sure whether something based on
19024 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19025 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019026 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019027
19028 # Archives containing C++ object files must be created using
19029 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19030 # necessary to make sure instantiated templates are included
19031 # in the archive.
19032 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19033 ;;
19034 esac
19035 ;;
19036 esac
19037 ;;
19038
19039 lynxos*)
19040 # FIXME: insert proper C++ library support
19041 ld_shlibs_CXX=no
19042 ;;
19043
19044 m88k*)
19045 # FIXME: insert proper C++ library support
19046 ld_shlibs_CXX=no
19047 ;;
19048
19049 mvs*)
19050 case $cc_basename in
19051 cxx*)
19052 # FIXME: insert proper C++ library support
19053 ld_shlibs_CXX=no
19054 ;;
19055 *)
19056 # FIXME: insert proper C++ library support
19057 ld_shlibs_CXX=no
19058 ;;
19059 esac
19060 ;;
19061
19062 netbsd*)
19063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19064 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19065 wlarc=
19066 hardcode_libdir_flag_spec_CXX='-R$libdir'
19067 hardcode_direct_CXX=yes
19068 hardcode_shlibpath_var_CXX=no
19069 fi
19070 # Workaround some broken pre-1.5 toolchains
19071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19072 ;;
19073
19074 *nto* | *qnx*)
19075 ld_shlibs_CXX=yes
19076 ;;
19077
19078 openbsd2*)
19079 # C++ shared libraries are fairly broken
19080 ld_shlibs_CXX=no
19081 ;;
19082
19083 openbsd*)
19084 if test -f /usr/libexec/ld.so; then
19085 hardcode_direct_CXX=yes
19086 hardcode_shlibpath_var_CXX=no
19087 hardcode_direct_absolute_CXX=yes
19088 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19089 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19090 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19091 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19092 export_dynamic_flag_spec_CXX='${wl}-E'
19093 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19094 fi
cristy0c60a692010-11-04 01:09:47 +000019095 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019096 else
19097 ld_shlibs_CXX=no
19098 fi
19099 ;;
19100
19101 osf3* | osf4* | osf5*)
19102 case $cc_basename in
19103 KCC*)
19104 # Kuck and Associates, Inc. (KAI) C++ Compiler
19105
19106 # KCC will only create a shared library if the output file
19107 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19108 # to its proper name (with version) after linking.
19109 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'
19110
19111 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19112 hardcode_libdir_separator_CXX=:
19113
19114 # Archives containing C++ object files must be created using
19115 # the KAI C++ compiler.
19116 case $host in
19117 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19118 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19119 esac
19120 ;;
19121 RCC*)
19122 # Rational C++ 2.4.1
19123 # FIXME: insert proper C++ library support
19124 ld_shlibs_CXX=no
19125 ;;
19126 cxx*)
19127 case $host in
19128 osf3*)
19129 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019130 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 +000019131 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19132 ;;
19133 *)
19134 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019135 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 +000019136 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19137 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019138 $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 +000019139 $RM $lib.exp'
19140 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19141 ;;
19142 esac
19143
19144 hardcode_libdir_separator_CXX=:
19145
19146 # Commands to make compiler produce verbose output that lists
19147 # what "hidden" libraries, object files and flags are used when
19148 # linking a shared library.
19149 #
19150 # There doesn't appear to be a way to prevent this compiler from
19151 # explicitly linking system object files so we need to strip them
19152 # from the output so that they don't get included in the library
19153 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019154 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 +000019155 ;;
19156 *)
19157 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19158 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19159 case $host in
19160 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019161 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 +000019162 ;;
19163 *)
cristyda16f162011-02-19 23:52:17 +000019164 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 +000019165 ;;
19166 esac
19167
19168 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19169 hardcode_libdir_separator_CXX=:
19170
19171 # Commands to make compiler produce verbose output that lists
19172 # what "hidden" libraries, object files and flags are used when
19173 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019174 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019175
19176 else
19177 # FIXME: insert proper C++ library support
19178 ld_shlibs_CXX=no
19179 fi
19180 ;;
19181 esac
19182 ;;
19183
19184 psos*)
19185 # FIXME: insert proper C++ library support
19186 ld_shlibs_CXX=no
19187 ;;
19188
19189 sunos4*)
19190 case $cc_basename in
19191 CC*)
19192 # Sun C++ 4.x
19193 # FIXME: insert proper C++ library support
19194 ld_shlibs_CXX=no
19195 ;;
19196 lcc*)
19197 # Lucid
19198 # FIXME: insert proper C++ library support
19199 ld_shlibs_CXX=no
19200 ;;
19201 *)
19202 # FIXME: insert proper C++ library support
19203 ld_shlibs_CXX=no
19204 ;;
19205 esac
19206 ;;
19207
19208 solaris*)
19209 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019210 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019211 # Sun C++ 4.2, 5.x and Centerline C++
19212 archive_cmds_need_lc_CXX=yes
19213 no_undefined_flag_CXX=' -zdefs'
19214 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19215 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19216 $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'
19217
19218 hardcode_libdir_flag_spec_CXX='-R$libdir'
19219 hardcode_shlibpath_var_CXX=no
19220 case $host_os in
19221 solaris2.[0-5] | solaris2.[0-5].*) ;;
19222 *)
19223 # The compiler driver will combine and reorder linker options,
19224 # but understands `-z linker_flag'.
19225 # Supported since Solaris 2.6 (maybe 2.5.1?)
19226 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19227 ;;
19228 esac
19229 link_all_deplibs_CXX=yes
19230
cristy0c60a692010-11-04 01:09:47 +000019231 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019232
19233 # Archives containing C++ object files must be created using
19234 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19235 # necessary to make sure instantiated templates are included
19236 # in the archive.
19237 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19238 ;;
19239 gcx*)
19240 # Green Hills C++ Compiler
19241 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19242
19243 # The C++ compiler must be used to create the archive.
19244 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19245 ;;
19246 *)
19247 # GNU C++ compiler with Solaris linker
19248 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19249 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19250 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019251 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 +000019252 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 +000019253 $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 +000019254
19255 # Commands to make compiler produce verbose output that lists
19256 # what "hidden" libraries, object files and flags are used when
19257 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019258 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019259 else
19260 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19261 # platform.
19262 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19263 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19264 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19265
19266 # Commands to make compiler produce verbose output that lists
19267 # what "hidden" libraries, object files and flags are used when
19268 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019269 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019270 fi
19271
19272 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19273 case $host_os in
19274 solaris2.[0-5] | solaris2.[0-5].*) ;;
19275 *)
19276 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19277 ;;
19278 esac
19279 fi
19280 ;;
19281 esac
19282 ;;
19283
19284 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19285 no_undefined_flag_CXX='${wl}-z,text'
19286 archive_cmds_need_lc_CXX=no
19287 hardcode_shlibpath_var_CXX=no
19288 runpath_var='LD_RUN_PATH'
19289
19290 case $cc_basename in
19291 CC*)
19292 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19293 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19294 ;;
19295 *)
19296 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19297 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19298 ;;
19299 esac
19300 ;;
19301
19302 sysv5* | sco3.2v5* | sco5v6*)
19303 # Note: We can NOT use -z defs as we might desire, because we do not
19304 # link with -lc, and that would cause any symbols used from libc to
19305 # always be unresolved, which means just about no library would
19306 # ever link correctly. If we're not using GNU ld we use -z text
19307 # though, which does catch some bad symbols but isn't as heavy-handed
19308 # as -z defs.
19309 no_undefined_flag_CXX='${wl}-z,text'
19310 allow_undefined_flag_CXX='${wl}-z,nodefs'
19311 archive_cmds_need_lc_CXX=no
19312 hardcode_shlibpath_var_CXX=no
19313 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19314 hardcode_libdir_separator_CXX=':'
19315 link_all_deplibs_CXX=yes
19316 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19317 runpath_var='LD_RUN_PATH'
19318
19319 case $cc_basename in
19320 CC*)
19321 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19322 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 +000019323 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19324 '"$old_archive_cmds_CXX"
19325 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19326 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019327 ;;
19328 *)
19329 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19330 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19331 ;;
19332 esac
19333 ;;
19334
19335 tandem*)
19336 case $cc_basename in
19337 NCC*)
19338 # NonStop-UX NCC 3.20
19339 # FIXME: insert proper C++ library support
19340 ld_shlibs_CXX=no
19341 ;;
19342 *)
19343 # FIXME: insert proper C++ library support
19344 ld_shlibs_CXX=no
19345 ;;
19346 esac
19347 ;;
19348
19349 vxworks*)
19350 # FIXME: insert proper C++ library support
19351 ld_shlibs_CXX=no
19352 ;;
19353
19354 *)
19355 # FIXME: insert proper C++ library support
19356 ld_shlibs_CXX=no
19357 ;;
19358 esac
19359
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19361$as_echo "$ld_shlibs_CXX" >&6; }
19362 test "$ld_shlibs_CXX" = no && can_build_shared=no
19363
19364 GCC_CXX="$GXX"
19365 LD_CXX="$LD"
19366
19367 ## CAVEAT EMPTOR:
19368 ## There is no encapsulation within the following macros, do not change
19369 ## the running order or otherwise move them around unless you know exactly
19370 ## what you are doing...
19371 # Dependencies to place before and after the object being linked:
19372predep_objects_CXX=
19373postdep_objects_CXX=
19374predeps_CXX=
19375postdeps_CXX=
19376compiler_lib_search_path_CXX=
19377
19378cat > conftest.$ac_ext <<_LT_EOF
19379class Foo
19380{
19381public:
19382 Foo (void) { a = 0; }
19383private:
19384 int a;
19385};
19386_LT_EOF
19387
cristyda16f162011-02-19 23:52:17 +000019388
19389_lt_libdeps_save_CFLAGS=$CFLAGS
19390case "$CC $CFLAGS " in #(
19391*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19392*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019393*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019394esac
19395
cristy73bd4a52010-10-05 11:24:23 +000019396if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19397 (eval $ac_compile) 2>&5
19398 ac_status=$?
19399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19400 test $ac_status = 0; }; then
19401 # Parse the compiler output and extract the necessary
19402 # objects, libraries and library flags.
19403
19404 # Sentinel used to keep track of whether or not we are before
19405 # the conftest object file.
19406 pre_test_object_deps_done=no
19407
19408 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019409 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019410
19411 -L* | -R* | -l*)
19412 # Some compilers place space between "-{L,R}" and the path.
19413 # Remove the space.
19414 if test $p = "-L" ||
19415 test $p = "-R"; then
19416 prev=$p
19417 continue
cristy73bd4a52010-10-05 11:24:23 +000019418 fi
19419
cristyda16f162011-02-19 23:52:17 +000019420 # Expand the sysroot to ease extracting the directories later.
19421 if test -z "$prev"; then
19422 case $p in
19423 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19424 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19425 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19426 esac
19427 fi
19428 case $p in
19429 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19430 esac
cristy73bd4a52010-10-05 11:24:23 +000019431 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019432 case ${prev} in
19433 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019434 # Internal compiler library paths should come after those
19435 # provided the user. The postdeps already come after the
19436 # user supplied libs so there is no need to process them.
19437 if test -z "$compiler_lib_search_path_CXX"; then
19438 compiler_lib_search_path_CXX="${prev}${p}"
19439 else
19440 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19441 fi
19442 ;;
19443 # The "-l" case would never come before the object being
19444 # linked, so don't bother handling this case.
19445 esac
19446 else
19447 if test -z "$postdeps_CXX"; then
19448 postdeps_CXX="${prev}${p}"
19449 else
19450 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19451 fi
19452 fi
cristyda16f162011-02-19 23:52:17 +000019453 prev=
cristy73bd4a52010-10-05 11:24:23 +000019454 ;;
19455
cristyda16f162011-02-19 23:52:17 +000019456 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019457 *.$objext)
19458 # This assumes that the test object file only shows up
19459 # once in the compiler output.
19460 if test "$p" = "conftest.$objext"; then
19461 pre_test_object_deps_done=yes
19462 continue
19463 fi
19464
19465 if test "$pre_test_object_deps_done" = no; then
19466 if test -z "$predep_objects_CXX"; then
19467 predep_objects_CXX="$p"
19468 else
19469 predep_objects_CXX="$predep_objects_CXX $p"
19470 fi
19471 else
19472 if test -z "$postdep_objects_CXX"; then
19473 postdep_objects_CXX="$p"
19474 else
19475 postdep_objects_CXX="$postdep_objects_CXX $p"
19476 fi
19477 fi
19478 ;;
19479
19480 *) ;; # Ignore the rest.
19481
19482 esac
19483 done
19484
19485 # Clean up.
19486 rm -f a.out a.exe
19487else
19488 echo "libtool.m4: error: problem compiling CXX test program"
19489fi
19490
19491$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019492CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019493
19494# PORTME: override above test on systems where it is broken
19495case $host_os in
19496interix[3-9]*)
19497 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19498 # hack all around it, let's just trust "g++" to DTRT.
19499 predep_objects_CXX=
19500 postdep_objects_CXX=
19501 postdeps_CXX=
19502 ;;
19503
19504linux*)
19505 case `$CC -V 2>&1 | sed 5q` in
19506 *Sun\ C*)
19507 # Sun C++ 5.9
19508
19509 # The more standards-conforming stlport4 library is
19510 # incompatible with the Cstd library. Avoid specifying
19511 # it if it's in CXXFLAGS. Ignore libCrun as
19512 # -library=stlport4 depends on it.
19513 case " $CXX $CXXFLAGS " in
19514 *" -library=stlport4 "*)
19515 solaris_use_stlport4=yes
19516 ;;
19517 esac
19518
19519 if test "$solaris_use_stlport4" != yes; then
19520 postdeps_CXX='-library=Cstd -library=Crun'
19521 fi
19522 ;;
19523 esac
19524 ;;
19525
19526solaris*)
19527 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019528 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019529 # The more standards-conforming stlport4 library is
19530 # incompatible with the Cstd library. Avoid specifying
19531 # it if it's in CXXFLAGS. Ignore libCrun as
19532 # -library=stlport4 depends on it.
19533 case " $CXX $CXXFLAGS " in
19534 *" -library=stlport4 "*)
19535 solaris_use_stlport4=yes
19536 ;;
19537 esac
19538
19539 # Adding this requires a known-good setup of shared libraries for
19540 # Sun compiler versions before 5.6, else PIC objects from an old
19541 # archive will be linked into the output, leading to subtle bugs.
19542 if test "$solaris_use_stlport4" != yes; then
19543 postdeps_CXX='-library=Cstd -library=Crun'
19544 fi
19545 ;;
19546 esac
19547 ;;
19548esac
19549
19550
19551case " $postdeps_CXX " in
19552*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19553esac
19554 compiler_lib_search_dirs_CXX=
19555if test -n "${compiler_lib_search_path_CXX}"; then
19556 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19557fi
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589 lt_prog_compiler_wl_CXX=
19590lt_prog_compiler_pic_CXX=
19591lt_prog_compiler_static_CXX=
19592
cristy73bd4a52010-10-05 11:24:23 +000019593
19594 # C++ specific cases for pic, static, wl, etc.
19595 if test "$GXX" = yes; then
19596 lt_prog_compiler_wl_CXX='-Wl,'
19597 lt_prog_compiler_static_CXX='-static'
19598
19599 case $host_os in
19600 aix*)
19601 # All AIX code is PIC.
19602 if test "$host_cpu" = ia64; then
19603 # AIX 5 now supports IA64 processor
19604 lt_prog_compiler_static_CXX='-Bstatic'
19605 fi
19606 ;;
19607
19608 amigaos*)
19609 case $host_cpu in
19610 powerpc)
19611 # see comment about AmigaOS4 .so support
19612 lt_prog_compiler_pic_CXX='-fPIC'
19613 ;;
19614 m68k)
19615 # FIXME: we need at least 68020 code to build shared libraries, but
19616 # adding the `-m68020' flag to GCC prevents building anything better,
19617 # like `-m68040'.
19618 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19619 ;;
19620 esac
19621 ;;
19622
19623 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19624 # PIC is the default for these OSes.
19625 ;;
19626 mingw* | cygwin* | os2* | pw32* | cegcc*)
19627 # This hack is so that the source file can tell whether it is being
19628 # built for inclusion in a dll (and should export symbols for example).
19629 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19630 # (--disable-auto-import) libraries
19631 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19632 ;;
19633 darwin* | rhapsody*)
19634 # PIC is the default on this platform
19635 # Common symbols not allowed in MH_DYLIB files
19636 lt_prog_compiler_pic_CXX='-fno-common'
19637 ;;
19638 *djgpp*)
19639 # DJGPP does not support shared libraries at all
19640 lt_prog_compiler_pic_CXX=
19641 ;;
cristy0c60a692010-11-04 01:09:47 +000019642 haiku*)
19643 # PIC is the default for Haiku.
19644 # The "-static" flag exists, but is broken.
19645 lt_prog_compiler_static_CXX=
19646 ;;
cristy73bd4a52010-10-05 11:24:23 +000019647 interix[3-9]*)
19648 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19649 # Instead, we relocate shared libraries at runtime.
19650 ;;
19651 sysv4*MP*)
19652 if test -d /usr/nec; then
19653 lt_prog_compiler_pic_CXX=-Kconform_pic
19654 fi
19655 ;;
19656 hpux*)
19657 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19658 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19659 # sets the default TLS model and affects inlining.
19660 case $host_cpu in
19661 hppa*64*)
19662 ;;
19663 *)
19664 lt_prog_compiler_pic_CXX='-fPIC'
19665 ;;
19666 esac
19667 ;;
19668 *qnx* | *nto*)
19669 # QNX uses GNU C++, but need to define -shared option too, otherwise
19670 # it will coredump.
19671 lt_prog_compiler_pic_CXX='-fPIC -shared'
19672 ;;
19673 *)
19674 lt_prog_compiler_pic_CXX='-fPIC'
19675 ;;
19676 esac
19677 else
19678 case $host_os in
19679 aix[4-9]*)
19680 # All AIX code is PIC.
19681 if test "$host_cpu" = ia64; then
19682 # AIX 5 now supports IA64 processor
19683 lt_prog_compiler_static_CXX='-Bstatic'
19684 else
19685 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19686 fi
19687 ;;
19688 chorus*)
19689 case $cc_basename in
19690 cxch68*)
19691 # Green Hills C++ Compiler
19692 # _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"
19693 ;;
19694 esac
19695 ;;
cristyda16f162011-02-19 23:52:17 +000019696 mingw* | cygwin* | os2* | pw32* | cegcc*)
19697 # This hack is so that the source file can tell whether it is being
19698 # built for inclusion in a dll (and should export symbols for example).
19699 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19700 ;;
cristy73bd4a52010-10-05 11:24:23 +000019701 dgux*)
19702 case $cc_basename in
19703 ec++*)
19704 lt_prog_compiler_pic_CXX='-KPIC'
19705 ;;
19706 ghcx*)
19707 # Green Hills C++ Compiler
19708 lt_prog_compiler_pic_CXX='-pic'
19709 ;;
19710 *)
19711 ;;
19712 esac
19713 ;;
19714 freebsd* | dragonfly*)
19715 # FreeBSD uses GNU C++
19716 ;;
19717 hpux9* | hpux10* | hpux11*)
19718 case $cc_basename in
19719 CC*)
19720 lt_prog_compiler_wl_CXX='-Wl,'
19721 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19722 if test "$host_cpu" != ia64; then
19723 lt_prog_compiler_pic_CXX='+Z'
19724 fi
19725 ;;
19726 aCC*)
19727 lt_prog_compiler_wl_CXX='-Wl,'
19728 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19729 case $host_cpu in
19730 hppa*64*|ia64*)
19731 # +Z the default
19732 ;;
19733 *)
19734 lt_prog_compiler_pic_CXX='+Z'
19735 ;;
19736 esac
19737 ;;
19738 *)
19739 ;;
19740 esac
19741 ;;
19742 interix*)
19743 # This is c89, which is MS Visual C++ (no shared libs)
19744 # Anyone wants to do a port?
19745 ;;
19746 irix5* | irix6* | nonstopux*)
19747 case $cc_basename in
19748 CC*)
19749 lt_prog_compiler_wl_CXX='-Wl,'
19750 lt_prog_compiler_static_CXX='-non_shared'
19751 # CC pic flag -KPIC is the default.
19752 ;;
19753 *)
19754 ;;
19755 esac
19756 ;;
cristy0c60a692010-11-04 01:09:47 +000019757 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019758 case $cc_basename in
19759 KCC*)
19760 # KAI C++ Compiler
19761 lt_prog_compiler_wl_CXX='--backend -Wl,'
19762 lt_prog_compiler_pic_CXX='-fPIC'
19763 ;;
19764 ecpc* )
19765 # old Intel C++ for x86_64 which still supported -KPIC.
19766 lt_prog_compiler_wl_CXX='-Wl,'
19767 lt_prog_compiler_pic_CXX='-KPIC'
19768 lt_prog_compiler_static_CXX='-static'
19769 ;;
19770 icpc* )
19771 # Intel C++, used to be incompatible with GCC.
19772 # ICC 10 doesn't accept -KPIC any more.
19773 lt_prog_compiler_wl_CXX='-Wl,'
19774 lt_prog_compiler_pic_CXX='-fPIC'
19775 lt_prog_compiler_static_CXX='-static'
19776 ;;
19777 pgCC* | pgcpp*)
19778 # Portland Group C++ compiler
19779 lt_prog_compiler_wl_CXX='-Wl,'
19780 lt_prog_compiler_pic_CXX='-fpic'
19781 lt_prog_compiler_static_CXX='-Bstatic'
19782 ;;
19783 cxx*)
19784 # Compaq C++
19785 # Make sure the PIC flag is empty. It appears that all Alpha
19786 # Linux and Compaq Tru64 Unix objects are PIC.
19787 lt_prog_compiler_pic_CXX=
19788 lt_prog_compiler_static_CXX='-non_shared'
19789 ;;
cristy0c60a692010-11-04 01:09:47 +000019790 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19791 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019792 lt_prog_compiler_wl_CXX='-Wl,'
19793 lt_prog_compiler_pic_CXX='-qpic'
19794 lt_prog_compiler_static_CXX='-qstaticlink'
19795 ;;
19796 *)
19797 case `$CC -V 2>&1 | sed 5q` in
19798 *Sun\ C*)
19799 # Sun C++ 5.9
19800 lt_prog_compiler_pic_CXX='-KPIC'
19801 lt_prog_compiler_static_CXX='-Bstatic'
19802 lt_prog_compiler_wl_CXX='-Qoption ld '
19803 ;;
19804 esac
19805 ;;
19806 esac
19807 ;;
19808 lynxos*)
19809 ;;
19810 m88k*)
19811 ;;
19812 mvs*)
19813 case $cc_basename in
19814 cxx*)
19815 lt_prog_compiler_pic_CXX='-W c,exportall'
19816 ;;
19817 *)
19818 ;;
19819 esac
19820 ;;
19821 netbsd*)
19822 ;;
19823 *qnx* | *nto*)
19824 # QNX uses GNU C++, but need to define -shared option too, otherwise
19825 # it will coredump.
19826 lt_prog_compiler_pic_CXX='-fPIC -shared'
19827 ;;
19828 osf3* | osf4* | osf5*)
19829 case $cc_basename in
19830 KCC*)
19831 lt_prog_compiler_wl_CXX='--backend -Wl,'
19832 ;;
19833 RCC*)
19834 # Rational C++ 2.4.1
19835 lt_prog_compiler_pic_CXX='-pic'
19836 ;;
19837 cxx*)
19838 # Digital/Compaq C++
19839 lt_prog_compiler_wl_CXX='-Wl,'
19840 # Make sure the PIC flag is empty. It appears that all Alpha
19841 # Linux and Compaq Tru64 Unix objects are PIC.
19842 lt_prog_compiler_pic_CXX=
19843 lt_prog_compiler_static_CXX='-non_shared'
19844 ;;
19845 *)
19846 ;;
19847 esac
19848 ;;
19849 psos*)
19850 ;;
19851 solaris*)
19852 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019853 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019854 # Sun C++ 4.2, 5.x and Centerline C++
19855 lt_prog_compiler_pic_CXX='-KPIC'
19856 lt_prog_compiler_static_CXX='-Bstatic'
19857 lt_prog_compiler_wl_CXX='-Qoption ld '
19858 ;;
19859 gcx*)
19860 # Green Hills C++ Compiler
19861 lt_prog_compiler_pic_CXX='-PIC'
19862 ;;
19863 *)
19864 ;;
19865 esac
19866 ;;
19867 sunos4*)
19868 case $cc_basename in
19869 CC*)
19870 # Sun C++ 4.x
19871 lt_prog_compiler_pic_CXX='-pic'
19872 lt_prog_compiler_static_CXX='-Bstatic'
19873 ;;
19874 lcc*)
19875 # Lucid
19876 lt_prog_compiler_pic_CXX='-pic'
19877 ;;
19878 *)
19879 ;;
19880 esac
19881 ;;
19882 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19883 case $cc_basename in
19884 CC*)
19885 lt_prog_compiler_wl_CXX='-Wl,'
19886 lt_prog_compiler_pic_CXX='-KPIC'
19887 lt_prog_compiler_static_CXX='-Bstatic'
19888 ;;
19889 esac
19890 ;;
19891 tandem*)
19892 case $cc_basename in
19893 NCC*)
19894 # NonStop-UX NCC 3.20
19895 lt_prog_compiler_pic_CXX='-KPIC'
19896 ;;
19897 *)
19898 ;;
19899 esac
19900 ;;
19901 vxworks*)
19902 ;;
19903 *)
19904 lt_prog_compiler_can_build_shared_CXX=no
19905 ;;
19906 esac
19907 fi
19908
19909case $host_os in
19910 # For platforms which do not support PIC, -DPIC is meaningless:
19911 *djgpp*)
19912 lt_prog_compiler_pic_CXX=
19913 ;;
19914 *)
19915 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19916 ;;
19917esac
cristy73bd4a52010-10-05 11:24:23 +000019918
cristyda16f162011-02-19 23:52:17 +000019919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19920$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19921if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19922 $as_echo_n "(cached) " >&6
19923else
19924 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19925fi
19926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19927$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19928lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019929
19930#
19931# Check to make sure the PIC flag actually works.
19932#
19933if test -n "$lt_prog_compiler_pic_CXX"; then
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19935$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019936if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019937 $as_echo_n "(cached) " >&6
19938else
19939 lt_cv_prog_compiler_pic_works_CXX=no
19940 ac_outfile=conftest.$ac_objext
19941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19942 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19943 # Insert the option either (1) after the last *FLAGS variable, or
19944 # (2) before a word containing "conftest.", or (3) at the end.
19945 # Note that $ac_compile itself does not contain backslashes and begins
19946 # with a dollar sign (not a hyphen), so the echo should work correctly.
19947 # The option is referenced via a variable to avoid confusing sed.
19948 lt_compile=`echo "$ac_compile" | $SED \
19949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19951 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019952 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019953 (eval "$lt_compile" 2>conftest.err)
19954 ac_status=$?
19955 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019957 if (exit $ac_status) && test -s "$ac_outfile"; then
19958 # The compiler can only warn and ignore the option if not recognized
19959 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019960 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19962 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19963 lt_cv_prog_compiler_pic_works_CXX=yes
19964 fi
19965 fi
19966 $RM conftest*
19967
19968fi
19969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19970$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19971
19972if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19973 case $lt_prog_compiler_pic_CXX in
19974 "" | " "*) ;;
19975 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19976 esac
19977else
19978 lt_prog_compiler_pic_CXX=
19979 lt_prog_compiler_can_build_shared_CXX=no
19980fi
19981
19982fi
19983
19984
19985
cristyda16f162011-02-19 23:52:17 +000019986
19987
cristy73bd4a52010-10-05 11:24:23 +000019988#
19989# Check to make sure the static flag actually works.
19990#
19991wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19993$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019994if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019995 $as_echo_n "(cached) " >&6
19996else
19997 lt_cv_prog_compiler_static_works_CXX=no
19998 save_LDFLAGS="$LDFLAGS"
19999 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20000 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20001 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20002 # The linker can only warn and ignore the option if not recognized
20003 # So say no if there are warnings
20004 if test -s conftest.err; then
20005 # Append any errors to the config.log.
20006 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020007 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20009 if diff conftest.exp conftest.er2 >/dev/null; then
20010 lt_cv_prog_compiler_static_works_CXX=yes
20011 fi
20012 else
20013 lt_cv_prog_compiler_static_works_CXX=yes
20014 fi
20015 fi
20016 $RM -r conftest*
20017 LDFLAGS="$save_LDFLAGS"
20018
20019fi
20020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20021$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20022
20023if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20024 :
20025else
20026 lt_prog_compiler_static_CXX=
20027fi
20028
20029
20030
20031
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20033$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020034if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020035 $as_echo_n "(cached) " >&6
20036else
20037 lt_cv_prog_compiler_c_o_CXX=no
20038 $RM -r conftest 2>/dev/null
20039 mkdir conftest
20040 cd conftest
20041 mkdir out
20042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20043
20044 lt_compiler_flag="-o out/conftest2.$ac_objext"
20045 # Insert the option either (1) after the last *FLAGS variable, or
20046 # (2) before a word containing "conftest.", or (3) at the end.
20047 # Note that $ac_compile itself does not contain backslashes and begins
20048 # with a dollar sign (not a hyphen), so the echo should work correctly.
20049 lt_compile=`echo "$ac_compile" | $SED \
20050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20052 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020053 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020054 (eval "$lt_compile" 2>out/conftest.err)
20055 ac_status=$?
20056 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020058 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20059 then
20060 # The compiler can only warn and ignore the option if not recognized
20061 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020063 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20064 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20065 lt_cv_prog_compiler_c_o_CXX=yes
20066 fi
20067 fi
20068 chmod u+w . 2>&5
20069 $RM conftest*
20070 # SGI C++ compiler will create directory out/ii_files/ for
20071 # template instantiation
20072 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20073 $RM out/* && rmdir out
20074 cd ..
20075 $RM -r conftest
20076 $RM conftest*
20077
20078fi
20079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20080$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20081
20082
20083
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20085$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020086if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020087 $as_echo_n "(cached) " >&6
20088else
20089 lt_cv_prog_compiler_c_o_CXX=no
20090 $RM -r conftest 2>/dev/null
20091 mkdir conftest
20092 cd conftest
20093 mkdir out
20094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20095
20096 lt_compiler_flag="-o out/conftest2.$ac_objext"
20097 # Insert the option either (1) after the last *FLAGS variable, or
20098 # (2) before a word containing "conftest.", or (3) at the end.
20099 # Note that $ac_compile itself does not contain backslashes and begins
20100 # with a dollar sign (not a hyphen), so the echo should work correctly.
20101 lt_compile=`echo "$ac_compile" | $SED \
20102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20104 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020106 (eval "$lt_compile" 2>out/conftest.err)
20107 ac_status=$?
20108 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20111 then
20112 # The compiler can only warn and ignore the option if not recognized
20113 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20117 lt_cv_prog_compiler_c_o_CXX=yes
20118 fi
20119 fi
20120 chmod u+w . 2>&5
20121 $RM conftest*
20122 # SGI C++ compiler will create directory out/ii_files/ for
20123 # template instantiation
20124 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20125 $RM out/* && rmdir out
20126 cd ..
20127 $RM -r conftest
20128 $RM conftest*
20129
20130fi
20131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20132$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20133
20134
20135
20136
20137hard_links="nottested"
20138if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20139 # do not overwrite the value of need_locks provided by the user
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20141$as_echo_n "checking if we can lock with hard links... " >&6; }
20142 hard_links=yes
20143 $RM conftest*
20144 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20145 touch conftest.a
20146 ln conftest.a conftest.b 2>&5 || hard_links=no
20147 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20149$as_echo "$hard_links" >&6; }
20150 if test "$hard_links" = no; then
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20152$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20153 need_locks=warn
20154 fi
20155else
20156 need_locks=no
20157fi
20158
20159
20160
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20162$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20163
20164 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020165 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020166 case $host_os in
20167 aix[4-9]*)
20168 # If we're using GNU nm, then we don't want the "-C" option.
20169 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020170 # Also, AIX nm treats weak defined symbols like other global defined
20171 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020172 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020173 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 +000020174 else
20175 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'
20176 fi
20177 ;;
20178 pw32*)
20179 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020180 ;;
cristy73bd4a52010-10-05 11:24:23 +000020181 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020182 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020183 cl*)
20184 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20185 ;;
cristyda16f162011-02-19 23:52:17 +000020186 *)
20187 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'
20188 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20189 ;;
20190 esac
20191 ;;
cristy73bd4a52010-10-05 11:24:23 +000020192 *)
20193 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020194 ;;
cristy73bd4a52010-10-05 11:24:23 +000020195 esac
cristy73bd4a52010-10-05 11:24:23 +000020196
20197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20198$as_echo "$ld_shlibs_CXX" >&6; }
20199test "$ld_shlibs_CXX" = no && can_build_shared=no
20200
20201with_gnu_ld_CXX=$with_gnu_ld
20202
20203
20204
20205
20206
20207
20208#
20209# Do we need to explicitly link libc?
20210#
20211case "x$archive_cmds_need_lc_CXX" in
20212x|xyes)
20213 # Assume -lc should be added
20214 archive_cmds_need_lc_CXX=yes
20215
20216 if test "$enable_shared" = yes && test "$GCC" = yes; then
20217 case $archive_cmds_CXX in
20218 *'~'*)
20219 # FIXME: we may have to deal with multi-command sequences.
20220 ;;
20221 '$CC '*)
20222 # Test whether the compiler implicitly links with -lc since on some
20223 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20224 # to ld, don't add -lc before -lgcc.
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20226$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020227if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020228 $as_echo_n "(cached) " >&6
20229else
20230 $RM conftest*
20231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020232
cristy0c60a692010-11-04 01:09:47 +000020233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020234 (eval $ac_compile) 2>&5
20235 ac_status=$?
20236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20237 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020238 soname=conftest
20239 lib=conftest
20240 libobjs=conftest.$ac_objext
20241 deplibs=
20242 wl=$lt_prog_compiler_wl_CXX
20243 pic_flag=$lt_prog_compiler_pic_CXX
20244 compiler_flags=-v
20245 linker_flags=-v
20246 verstring=
20247 output_objdir=.
20248 libname=conftest
20249 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20250 allow_undefined_flag_CXX=
20251 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 +000020252 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20253 ac_status=$?
20254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20255 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020256 then
20257 lt_cv_archive_cmds_need_lc_CXX=no
20258 else
20259 lt_cv_archive_cmds_need_lc_CXX=yes
20260 fi
20261 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20262 else
20263 cat conftest.err 1>&5
20264 fi
20265 $RM conftest*
20266
20267fi
20268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20269$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20270 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020271 ;;
20272 esac
20273 fi
20274 ;;
20275esac
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
cristy73bd4a52010-10-05 11:24:23 +000020338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20339$as_echo_n "checking dynamic linker characteristics... " >&6; }
20340
20341library_names_spec=
20342libname_spec='lib$name'
20343soname_spec=
20344shrext_cmds=".so"
20345postinstall_cmds=
20346postuninstall_cmds=
20347finish_cmds=
20348finish_eval=
20349shlibpath_var=
20350shlibpath_overrides_runpath=unknown
20351version_type=none
20352dynamic_linker="$host_os ld.so"
20353sys_lib_dlsearch_path_spec="/lib /usr/lib"
20354need_lib_prefix=unknown
20355hardcode_into_libs=no
20356
20357# when you set need_version to no, make sure it does not cause -set_version
20358# flags to be left without arguments
20359need_version=unknown
20360
20361case $host_os in
20362aix3*)
cristy99bd5232011-12-07 14:38:20 +000020363 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20365 shlibpath_var=LIBPATH
20366
20367 # AIX 3 has no versioning support, so we append a major version to the name.
20368 soname_spec='${libname}${release}${shared_ext}$major'
20369 ;;
20370
20371aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020372 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020373 need_lib_prefix=no
20374 need_version=no
20375 hardcode_into_libs=yes
20376 if test "$host_cpu" = ia64; then
20377 # AIX 5 supports IA64
20378 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20379 shlibpath_var=LD_LIBRARY_PATH
20380 else
20381 # With GCC up to 2.95.x, collect2 would create an import file
20382 # for dependence libraries. The import file would start with
20383 # the line `#! .'. This would cause the generated library to
20384 # depend on `.', always an invalid library. This was fixed in
20385 # development snapshots of GCC prior to 3.0.
20386 case $host_os in
20387 aix4 | aix4.[01] | aix4.[01].*)
20388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20389 echo ' yes '
20390 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20391 :
20392 else
20393 can_build_shared=no
20394 fi
20395 ;;
20396 esac
20397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20398 # soname into executable. Probably we can add versioning support to
20399 # collect2, so additional links can be useful in future.
20400 if test "$aix_use_runtimelinking" = yes; then
20401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20402 # instead of lib<name>.a to let people know that these are not
20403 # typical AIX shared libraries.
20404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20405 else
20406 # We preserve .a as extension for shared libraries through AIX4.2
20407 # and later when we are not doing run time linking.
20408 library_names_spec='${libname}${release}.a $libname.a'
20409 soname_spec='${libname}${release}${shared_ext}$major'
20410 fi
20411 shlibpath_var=LIBPATH
20412 fi
20413 ;;
20414
20415amigaos*)
20416 case $host_cpu in
20417 powerpc)
20418 # Since July 2007 AmigaOS4 officially supports .so libraries.
20419 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20421 ;;
20422 m68k)
20423 library_names_spec='$libname.ixlibrary $libname.a'
20424 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020425 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 +000020426 ;;
20427 esac
20428 ;;
20429
20430beos*)
20431 library_names_spec='${libname}${shared_ext}'
20432 dynamic_linker="$host_os ld.so"
20433 shlibpath_var=LIBRARY_PATH
20434 ;;
20435
20436bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020437 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020438 need_version=no
20439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20440 soname_spec='${libname}${release}${shared_ext}$major'
20441 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20442 shlibpath_var=LD_LIBRARY_PATH
20443 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20444 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20445 # the default ld.so.conf also contains /usr/contrib/lib and
20446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20447 # libtool to hard-code these into programs
20448 ;;
20449
20450cygwin* | mingw* | pw32* | cegcc*)
20451 version_type=windows
20452 shrext_cmds=".dll"
20453 need_version=no
20454 need_lib_prefix=no
20455
cristyda16f162011-02-19 23:52:17 +000020456 case $GCC,$cc_basename in
20457 yes,*)
20458 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020459 library_names_spec='$libname.dll.a'
20460 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20461 postinstall_cmds='base_file=`basename \${file}`~
20462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20463 dldir=$destdir/`dirname \$dlpath`~
20464 test -d \$dldir || mkdir -p \$dldir~
20465 $install_prog $dir/$dlname \$dldir/$dlname~
20466 chmod a+x \$dldir/$dlname~
20467 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20468 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20469 fi'
20470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20471 dlpath=$dir/\$dldll~
20472 $RM \$dlpath'
20473 shlibpath_overrides_runpath=yes
20474
20475 case $host_os in
20476 cygwin*)
20477 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20478 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020479
cristy73bd4a52010-10-05 11:24:23 +000020480 ;;
20481 mingw* | cegcc*)
20482 # MinGW DLLs use traditional 'lib' prefix
20483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020484 ;;
20485 pw32*)
20486 # pw32 DLLs use 'pw' prefix rather than 'lib'
20487 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20488 ;;
20489 esac
cristyda16f162011-02-19 23:52:17 +000020490 dynamic_linker='Win32 ld.exe'
20491 ;;
20492
20493 *,cl*)
20494 # Native MSVC
20495 libname_spec='$name'
20496 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20497 library_names_spec='${libname}.dll.lib'
20498
20499 case $build_os in
20500 mingw*)
20501 sys_lib_search_path_spec=
20502 lt_save_ifs=$IFS
20503 IFS=';'
20504 for lt_path in $LIB
20505 do
20506 IFS=$lt_save_ifs
20507 # Let DOS variable expansion print the short 8.3 style file name.
20508 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20509 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20510 done
20511 IFS=$lt_save_ifs
20512 # Convert to MSYS style.
20513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20514 ;;
20515 cygwin*)
20516 # Convert to unix form, then to dos form, then back to unix form
20517 # but this time dos style (no spaces!) so that the unix form looks
20518 # like /cygdrive/c/PROGRA~1:/cygdr...
20519 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20520 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20521 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20522 ;;
20523 *)
20524 sys_lib_search_path_spec="$LIB"
20525 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20526 # It is most probably a Windows format PATH.
20527 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20528 else
20529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20530 fi
20531 # FIXME: find the short name or the path components, as spaces are
20532 # common. (e.g. "Program Files" -> "PROGRA~1")
20533 ;;
20534 esac
20535
20536 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20537 postinstall_cmds='base_file=`basename \${file}`~
20538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20539 dldir=$destdir/`dirname \$dlpath`~
20540 test -d \$dldir || mkdir -p \$dldir~
20541 $install_prog $dir/$dlname \$dldir/$dlname'
20542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20543 dlpath=$dir/\$dldll~
20544 $RM \$dlpath'
20545 shlibpath_overrides_runpath=yes
20546 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020547 ;;
20548
20549 *)
cristyda16f162011-02-19 23:52:17 +000020550 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020552 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020553 ;;
20554 esac
cristy73bd4a52010-10-05 11:24:23 +000020555 # FIXME: first we should search . and the directory the executable is in
20556 shlibpath_var=PATH
20557 ;;
20558
20559darwin* | rhapsody*)
20560 dynamic_linker="$host_os dyld"
20561 version_type=darwin
20562 need_lib_prefix=no
20563 need_version=no
20564 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20565 soname_spec='${libname}${release}${major}$shared_ext'
20566 shlibpath_overrides_runpath=yes
20567 shlibpath_var=DYLD_LIBRARY_PATH
20568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20569
20570 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20571 ;;
20572
20573dgux*)
cristy99bd5232011-12-07 14:38:20 +000020574 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020575 need_lib_prefix=no
20576 need_version=no
20577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20578 soname_spec='${libname}${release}${shared_ext}$major'
20579 shlibpath_var=LD_LIBRARY_PATH
20580 ;;
20581
cristy73bd4a52010-10-05 11:24:23 +000020582freebsd* | dragonfly*)
20583 # DragonFly does not have aout. When/if they implement a new
20584 # versioning mechanism, adjust this.
20585 if test -x /usr/bin/objformat; then
20586 objformat=`/usr/bin/objformat`
20587 else
20588 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020589 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020590 *) objformat=elf ;;
20591 esac
20592 fi
20593 version_type=freebsd-$objformat
20594 case $version_type in
20595 freebsd-elf*)
20596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20597 need_version=no
20598 need_lib_prefix=no
20599 ;;
20600 freebsd-*)
20601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20602 need_version=yes
20603 ;;
20604 esac
20605 shlibpath_var=LD_LIBRARY_PATH
20606 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020607 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020608 shlibpath_overrides_runpath=yes
20609 ;;
20610 freebsd3.[01]* | freebsdelf3.[01]*)
20611 shlibpath_overrides_runpath=yes
20612 hardcode_into_libs=yes
20613 ;;
20614 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20615 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20616 shlibpath_overrides_runpath=no
20617 hardcode_into_libs=yes
20618 ;;
20619 *) # from 4.6 on, and DragonFly
20620 shlibpath_overrides_runpath=yes
20621 hardcode_into_libs=yes
20622 ;;
20623 esac
20624 ;;
20625
20626gnu*)
cristy99bd5232011-12-07 14:38:20 +000020627 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020628 need_lib_prefix=no
20629 need_version=no
20630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20631 soname_spec='${libname}${release}${shared_ext}$major'
20632 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020633 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020634 hardcode_into_libs=yes
20635 ;;
20636
cristy0c60a692010-11-04 01:09:47 +000020637haiku*)
cristy99bd5232011-12-07 14:38:20 +000020638 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020639 need_lib_prefix=no
20640 need_version=no
20641 dynamic_linker="$host_os runtime_loader"
20642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20643 soname_spec='${libname}${release}${shared_ext}$major'
20644 shlibpath_var=LIBRARY_PATH
20645 shlibpath_overrides_runpath=yes
20646 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20647 hardcode_into_libs=yes
20648 ;;
20649
cristy73bd4a52010-10-05 11:24:23 +000020650hpux9* | hpux10* | hpux11*)
20651 # Give a soname corresponding to the major version so that dld.sl refuses to
20652 # link against other versions.
20653 version_type=sunos
20654 need_lib_prefix=no
20655 need_version=no
20656 case $host_cpu in
20657 ia64*)
20658 shrext_cmds='.so'
20659 hardcode_into_libs=yes
20660 dynamic_linker="$host_os dld.so"
20661 shlibpath_var=LD_LIBRARY_PATH
20662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20664 soname_spec='${libname}${release}${shared_ext}$major'
20665 if test "X$HPUX_IA64_MODE" = X32; then
20666 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20667 else
20668 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20669 fi
20670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20671 ;;
20672 hppa*64*)
20673 shrext_cmds='.sl'
20674 hardcode_into_libs=yes
20675 dynamic_linker="$host_os dld.sl"
20676 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20679 soname_spec='${libname}${release}${shared_ext}$major'
20680 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20682 ;;
20683 *)
20684 shrext_cmds='.sl'
20685 dynamic_linker="$host_os dld.sl"
20686 shlibpath_var=SHLIB_PATH
20687 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20689 soname_spec='${libname}${release}${shared_ext}$major'
20690 ;;
20691 esac
cristy0c60a692010-11-04 01:09:47 +000020692 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020693 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020694 # or fails outright, so override atomically:
20695 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020696 ;;
20697
20698interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020699 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020700 need_lib_prefix=no
20701 need_version=no
20702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20703 soname_spec='${libname}${release}${shared_ext}$major'
20704 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20705 shlibpath_var=LD_LIBRARY_PATH
20706 shlibpath_overrides_runpath=no
20707 hardcode_into_libs=yes
20708 ;;
20709
20710irix5* | irix6* | nonstopux*)
20711 case $host_os in
20712 nonstopux*) version_type=nonstopux ;;
20713 *)
20714 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020715 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020716 else
20717 version_type=irix
20718 fi ;;
20719 esac
20720 need_lib_prefix=no
20721 need_version=no
20722 soname_spec='${libname}${release}${shared_ext}$major'
20723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20724 case $host_os in
20725 irix5* | nonstopux*)
20726 libsuff= shlibsuff=
20727 ;;
20728 *)
20729 case $LD in # libtool.m4 will add one of these switches to LD
20730 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20731 libsuff= shlibsuff= libmagic=32-bit;;
20732 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20733 libsuff=32 shlibsuff=N32 libmagic=N32;;
20734 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20735 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20736 *) libsuff= shlibsuff= libmagic=never-match;;
20737 esac
20738 ;;
20739 esac
20740 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20741 shlibpath_overrides_runpath=no
20742 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20743 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20744 hardcode_into_libs=yes
20745 ;;
20746
20747# No shared lib support for Linux oldld, aout, or coff.
20748linux*oldld* | linux*aout* | linux*coff*)
20749 dynamic_linker=no
20750 ;;
20751
cristy99bd5232011-12-07 14:38:20 +000020752# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020753linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020754 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020755 need_lib_prefix=no
20756 need_version=no
20757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20758 soname_spec='${libname}${release}${shared_ext}$major'
20759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20760 shlibpath_var=LD_LIBRARY_PATH
20761 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020762
cristy73bd4a52010-10-05 11:24:23 +000020763 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020764 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020765 $as_echo_n "(cached) " >&6
20766else
20767 lt_cv_shlibpath_overrides_runpath=no
20768 save_LDFLAGS=$LDFLAGS
20769 save_libdir=$libdir
20770 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20771 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020773/* end confdefs.h. */
20774
20775int
20776main ()
20777{
20778
20779 ;
20780 return 0;
20781}
20782_ACEOF
20783if ac_fn_cxx_try_link "$LINENO"; then :
20784 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020785 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020786fi
20787fi
20788rm -f core conftest.err conftest.$ac_objext \
20789 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020790 LDFLAGS=$save_LDFLAGS
20791 libdir=$save_libdir
20792
20793fi
20794
20795 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020796
20797 # This implies no fast_install, which is unacceptable.
20798 # Some rework will be needed to allow for fast_install
20799 # before this can be enabled.
20800 hardcode_into_libs=yes
20801
20802 # Add ABI-specific directories to the system library path.
20803 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20804
20805 # Append ld.so.conf contents to the search path
20806 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020807 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 +000020808 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020809
cristy73bd4a52010-10-05 11:24:23 +000020810 fi
20811
20812 # We used to test for /lib/ld.so.1 and disable shared libraries on
20813 # powerpc, because MkLinux only supported shared libraries with the
20814 # GNU dynamic linker. Since this was broken with cross compilers,
20815 # most powerpc-linux boxes support dynamic linking these days and
20816 # people can always --disable-shared, the test was removed, and we
20817 # assume the GNU/Linux dynamic linker is in use.
20818 dynamic_linker='GNU/Linux ld.so'
20819 ;;
20820
20821netbsd*)
20822 version_type=sunos
20823 need_lib_prefix=no
20824 need_version=no
20825 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20828 dynamic_linker='NetBSD (a.out) ld.so'
20829 else
20830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20831 soname_spec='${libname}${release}${shared_ext}$major'
20832 dynamic_linker='NetBSD ld.elf_so'
20833 fi
20834 shlibpath_var=LD_LIBRARY_PATH
20835 shlibpath_overrides_runpath=yes
20836 hardcode_into_libs=yes
20837 ;;
20838
20839newsos6)
cristy99bd5232011-12-07 14:38:20 +000020840 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20842 shlibpath_var=LD_LIBRARY_PATH
20843 shlibpath_overrides_runpath=yes
20844 ;;
20845
20846*nto* | *qnx*)
20847 version_type=qnx
20848 need_lib_prefix=no
20849 need_version=no
20850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20851 soname_spec='${libname}${release}${shared_ext}$major'
20852 shlibpath_var=LD_LIBRARY_PATH
20853 shlibpath_overrides_runpath=no
20854 hardcode_into_libs=yes
20855 dynamic_linker='ldqnx.so'
20856 ;;
20857
20858openbsd*)
20859 version_type=sunos
20860 sys_lib_dlsearch_path_spec="/usr/lib"
20861 need_lib_prefix=no
20862 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20863 case $host_os in
20864 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20865 *) need_version=no ;;
20866 esac
20867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20869 shlibpath_var=LD_LIBRARY_PATH
20870 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20871 case $host_os in
20872 openbsd2.[89] | openbsd2.[89].*)
20873 shlibpath_overrides_runpath=no
20874 ;;
20875 *)
20876 shlibpath_overrides_runpath=yes
20877 ;;
20878 esac
20879 else
20880 shlibpath_overrides_runpath=yes
20881 fi
20882 ;;
20883
20884os2*)
20885 libname_spec='$name'
20886 shrext_cmds=".dll"
20887 need_lib_prefix=no
20888 library_names_spec='$libname${shared_ext} $libname.a'
20889 dynamic_linker='OS/2 ld.exe'
20890 shlibpath_var=LIBPATH
20891 ;;
20892
20893osf3* | osf4* | osf5*)
20894 version_type=osf
20895 need_lib_prefix=no
20896 need_version=no
20897 soname_spec='${libname}${release}${shared_ext}$major'
20898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20899 shlibpath_var=LD_LIBRARY_PATH
20900 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20901 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20902 ;;
20903
20904rdos*)
20905 dynamic_linker=no
20906 ;;
20907
20908solaris*)
cristy99bd5232011-12-07 14:38:20 +000020909 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020910 need_lib_prefix=no
20911 need_version=no
20912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20913 soname_spec='${libname}${release}${shared_ext}$major'
20914 shlibpath_var=LD_LIBRARY_PATH
20915 shlibpath_overrides_runpath=yes
20916 hardcode_into_libs=yes
20917 # ldd complains unless libraries are executable
20918 postinstall_cmds='chmod +x $lib'
20919 ;;
20920
20921sunos4*)
20922 version_type=sunos
20923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20924 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20925 shlibpath_var=LD_LIBRARY_PATH
20926 shlibpath_overrides_runpath=yes
20927 if test "$with_gnu_ld" = yes; then
20928 need_lib_prefix=no
20929 fi
20930 need_version=yes
20931 ;;
20932
20933sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020934 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20936 soname_spec='${libname}${release}${shared_ext}$major'
20937 shlibpath_var=LD_LIBRARY_PATH
20938 case $host_vendor in
20939 sni)
20940 shlibpath_overrides_runpath=no
20941 need_lib_prefix=no
20942 runpath_var=LD_RUN_PATH
20943 ;;
20944 siemens)
20945 need_lib_prefix=no
20946 ;;
20947 motorola)
20948 need_lib_prefix=no
20949 need_version=no
20950 shlibpath_overrides_runpath=no
20951 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20952 ;;
20953 esac
20954 ;;
20955
20956sysv4*MP*)
20957 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020958 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020959 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20960 soname_spec='$libname${shared_ext}.$major'
20961 shlibpath_var=LD_LIBRARY_PATH
20962 fi
20963 ;;
20964
20965sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20966 version_type=freebsd-elf
20967 need_lib_prefix=no
20968 need_version=no
20969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20970 soname_spec='${libname}${release}${shared_ext}$major'
20971 shlibpath_var=LD_LIBRARY_PATH
20972 shlibpath_overrides_runpath=yes
20973 hardcode_into_libs=yes
20974 if test "$with_gnu_ld" = yes; then
20975 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20976 else
20977 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20978 case $host_os in
20979 sco3.2v5*)
20980 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20981 ;;
20982 esac
20983 fi
20984 sys_lib_dlsearch_path_spec='/usr/lib'
20985 ;;
20986
20987tpf*)
20988 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020989 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020990 need_lib_prefix=no
20991 need_version=no
20992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20993 shlibpath_var=LD_LIBRARY_PATH
20994 shlibpath_overrides_runpath=no
20995 hardcode_into_libs=yes
20996 ;;
20997
20998uts4*)
cristy99bd5232011-12-07 14:38:20 +000020999 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21001 soname_spec='${libname}${release}${shared_ext}$major'
21002 shlibpath_var=LD_LIBRARY_PATH
21003 ;;
21004
21005*)
21006 dynamic_linker=no
21007 ;;
21008esac
21009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21010$as_echo "$dynamic_linker" >&6; }
21011test "$dynamic_linker" = no && can_build_shared=no
21012
21013variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21014if test "$GCC" = yes; then
21015 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21016fi
21017
21018if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21019 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21020fi
21021if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21022 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21023fi
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
cristy0c60a692010-11-04 01:09:47 +000021060
21061
cristy73bd4a52010-10-05 11:24:23 +000021062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21063$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21064hardcode_action_CXX=
21065if test -n "$hardcode_libdir_flag_spec_CXX" ||
21066 test -n "$runpath_var_CXX" ||
21067 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21068
21069 # We can hardcode non-existent directories.
21070 if test "$hardcode_direct_CXX" != no &&
21071 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21072 # have to relink, otherwise we might link with an installed library
21073 # when we should be linking with a yet-to-be-installed one
21074 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21075 test "$hardcode_minus_L_CXX" != no; then
21076 # Linking always hardcodes the temporary library directory.
21077 hardcode_action_CXX=relink
21078 else
21079 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21080 hardcode_action_CXX=immediate
21081 fi
21082else
21083 # We cannot hardcode anything, or else we can only hardcode existing
21084 # directories.
21085 hardcode_action_CXX=unsupported
21086fi
21087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21088$as_echo "$hardcode_action_CXX" >&6; }
21089
21090if test "$hardcode_action_CXX" = relink ||
21091 test "$inherit_rpath_CXX" = yes; then
21092 # Fast installation is not supported
21093 enable_fast_install=no
21094elif test "$shlibpath_overrides_runpath" = yes ||
21095 test "$enable_shared" = no; then
21096 # Fast installation is not necessary
21097 enable_fast_install=needless
21098fi
21099
21100
21101
21102
21103
21104
21105
21106 fi # test -n "$compiler"
21107
21108 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021109 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021110 LDCXX=$LD
21111 LD=$lt_save_LD
21112 GCC=$lt_save_GCC
21113 with_gnu_ld=$lt_save_with_gnu_ld
21114 lt_cv_path_LDCXX=$lt_cv_path_LD
21115 lt_cv_path_LD=$lt_save_path_LD
21116 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21117 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21118fi # test "$_lt_caught_CXX_error" != yes
21119
21120ac_ext=c
21121ac_cpp='$CPP $CPPFLAGS'
21122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21124ac_compiler_gnu=$ac_cv_c_compiler_gnu
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
cristy99bd5232011-12-07 14:38:20 +000021138
21139
cristy73bd4a52010-10-05 11:24:23 +000021140 ac_config_commands="$ac_config_commands libtool"
21141
21142
21143
21144
21145# Only expand once:
21146
21147
21148
cristy3ed852e2009-09-05 21:47:34 +000021149
21150
cristy3ed852e2009-09-05 21:47:34 +000021151# Check to see if building shared libraries
21152libtool_build_shared_libs='no'
21153if test "$enable_shared" = 'yes'; then
21154 libtool_build_shared_libs='yes'
21155fi
21156
21157# Check to see if building static libraries
21158libtool_build_static_libs='no'
21159if test "$enable_static" = 'yes'; then
21160 libtool_build_static_libs='yes'
21161fi
21162
cristy73bd4a52010-10-05 11:24:23 +000021163 if test "${libtool_build_shared_libs}" = 'yes'; then
21164 WITH_SHARED_LIBS_TRUE=
21165 WITH_SHARED_LIBS_FALSE='#'
21166else
21167 WITH_SHARED_LIBS_TRUE='#'
21168 WITH_SHARED_LIBS_FALSE=
21169fi
21170
cristy3ed852e2009-09-05 21:47:34 +000021171#
21172# Enable support for building loadable modules
21173#
cristyaf4cbf32012-10-16 23:47:41 +000021174build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021175
21176# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021177if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021178 withval=$with_modules; with_modules=$withval
21179else
cristy5a1cefd2010-01-06 20:42:35 +000021180 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021181fi
21182
21183
21184# Only allow building loadable modules if we are building shared libraries
21185if test "$with_modules" != 'no' ; then
21186 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021187 { $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 +000021188$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021189 build_modules='no'
21190 else
21191 build_modules='yes'
21192 fi
cristy3ed852e2009-09-05 21:47:34 +000021193fi
cristyc6722092012-10-14 00:19:31 +000021194if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021195
cristy8b350f62009-11-15 23:12:43 +000021196$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021197
cristyfa161182012-12-19 15:45:28 +000021198 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021199fi
cristyc6722092012-10-14 00:19:31 +000021200 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021201 WITH_MODULES_TRUE=
21202 WITH_MODULES_FALSE='#'
21203else
21204 WITH_MODULES_TRUE='#'
21205 WITH_MODULES_FALSE=
21206fi
21207
cristy3ed852e2009-09-05 21:47:34 +000021208
cristy3ed852e2009-09-05 21:47:34 +000021209# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021210# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021211# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021212if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021213 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21214else
21215 enable_delegate_build='no'
21216fi
21217
21218
21219# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021220if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021221 enableval=$enable_deprecated; enable_deprecated=$enableval
21222else
21223 enable_deprecated='no'
21224fi
21225
21226
21227if test "$enable_deprecated" = 'yes'; then
21228
cristy8b350f62009-11-15 23:12:43 +000021229$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021230
21231else
21232 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21233fi
21234
21235# Build a version of ImageMagick which operates uninstalled.
21236# Used to build distributions located via MAGICK_HOME / executable path
21237# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021238if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021239 enableval=$enable_installed; enable_installed=$enableval
21240else
21241 enable_installed='yes'
21242fi
21243
21244
21245if test "$enable_installed" = 'yes'; then
21246
cristy8b350f62009-11-15 23:12:43 +000021247$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021248
21249else
21250 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21251fi
21252
21253# Permit enciphering and deciphering image pixels.
21254# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021255if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021256 enableval=$enable_cipher; enable_cipher=$enableval
21257else
21258 enable_cipher='yes'
21259fi
21260
21261
21262if test "$enable_cipher" = 'yes'; then
21263
cristy8b350f62009-11-15 23:12:43 +000021264$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021265
21266fi
21267
cristy6e3607c2011-09-13 13:59:17 +000021268# Build a zero-configuration version of ImageMagick.
21269# Check whether --enable-zero-configuration was given.
21270if test "${enable_zero_configuration+set}" = set; then :
21271 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021272else
cristy6e3607c2011-09-13 13:59:17 +000021273 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021274fi
21275
21276
cristy6e3607c2011-09-13 13:59:17 +000021277if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021278
cristy6e3607c2011-09-13 13:59:17 +000021279$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021280
cristy81af5702011-09-13 14:20:58 +000021281 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021282fi
21283
21284# Build a high dynamic range version of ImageMagick.
21285# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021286if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021287 enableval=$enable_hdri; enable_hdri=$enableval
21288else
cristy191c0b72012-08-12 16:29:52 +000021289 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021290fi
21291
21292
21293MAGICK_HDRI=""
21294if test "$enable_hdri" = 'yes'; then
21295 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021296 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021297 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021298else
21299 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021300fi
21301
cristye52f12f2012-12-31 15:32:36 +000021302cat >>confdefs.h <<_ACEOF
21303#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21304_ACEOF
21305
21306MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21307CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021308CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021309
cristy3ed852e2009-09-05 21:47:34 +000021310# Build a version of ImageMagick with assert statements.
21311# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021312if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021313 enableval=$enable_assert; enable_assert=$enableval
21314else
21315 enable_assert='yes'
21316fi
21317
21318
21319if test "$enable_assert" = 'no'; then
21320
cristy8b350f62009-11-15 23:12:43 +000021321$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021322
21323fi
21324
cristya448bd22011-10-14 12:38:13 +000021325# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021326
21327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21328$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21329 # Check whether --enable-maintainer-mode was given.
21330if test "${enable_maintainer_mode+set}" = set; then :
21331 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21332else
21333 USE_MAINTAINER_MODE=no
21334fi
21335
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21337$as_echo "$USE_MAINTAINER_MODE" >&6; }
21338 if test $USE_MAINTAINER_MODE = yes; then
21339 MAINTAINER_MODE_TRUE=
21340 MAINTAINER_MODE_FALSE='#'
21341else
21342 MAINTAINER_MODE_TRUE='#'
21343 MAINTAINER_MODE_FALSE=
21344fi
21345
21346 MAINT=$MAINTAINER_MODE_TRUE
21347
21348
cristy3ed852e2009-09-05 21:47:34 +000021349
cristy944e51f2013-04-16 18:45:02 +000021350# Enable hugepages support
21351# Check whether --enable-hugepages was given.
21352if test "${enable_hugepages+set}" = set; then :
21353 enableval=$enable_hugepages; enable_hugepages=$enableval
21354else
21355 enable_hugepages='no'
21356fi
21357
21358
cristy3ed852e2009-09-05 21:47:34 +000021359# Enable ccmalloc memory debugging support
21360# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021361if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021362 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21363else
21364 enable_ccmalloc='no'
21365fi
21366
21367
21368# Enable Electric Fence memory debugging support
21369# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021370if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021371 enableval=$enable_efence; enable_efence=$enableval
21372else
21373 enable_efence='no'
21374fi
21375
21376
21377# Enable prof-based profiling support
21378# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021379if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021380 enableval=$enable_prof; enable_prof=$enableval
21381else
21382 enable_prof='no'
21383fi
21384
21385
21386# Enable gprof-based profiling support
21387# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021388if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021389 enableval=$enable_gprof; enable_gprof=$enableval
21390else
21391 enable_gprof='no'
21392fi
21393
21394
21395# Enable gcov-based profiling support
21396# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021397if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021398 enableval=$enable_gcov; enable_gcov=$enableval
21399else
21400 enable_gcov='no'
21401fi
21402
21403
21404enable_profiling='no'
21405if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21406 enable_profiling='yes'
21407 if test "$libtool_build_shared_libs" = 'yes'; then
21408 echo "Warning: Can not profile code using shared libraries"
21409 fi
21410fi
21411
21412# Magick API method prefix
21413
21414# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021415if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021416 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021417else
cristyfc3d0222012-02-07 15:05:57 +000021418 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021419fi
21420
21421
cristyfc3d0222012-02-07 15:05:57 +000021422if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021423
21424cat >>confdefs.h <<_ACEOF
21425#define NAMESPACE_PREFIX $with_method_prefix
21426_ACEOF
21427
cristyfc3d0222012-02-07 15:05:57 +000021428 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021429fi
21430
cristy71d8c202012-03-20 17:05:01 +000021431# Enable legacy support (default no)
21432# Check whether --enable-legacy-support was given.
21433if test "${enable_legacy_support+set}" = set; then :
21434 enableval=$enable_legacy_support; with_legacy_support=$enableval
21435else
21436 with_legacy_support='no'
21437fi
21438
21439 if test "$with_legacy_support" != 'no'; then
21440 LEGACY_SUPPORT_TRUE=
21441 LEGACY_SUPPORT_FALSE='#'
21442else
21443 LEGACY_SUPPORT_TRUE='#'
21444 LEGACY_SUPPORT_FALSE=
21445fi
21446
21447
cristy3ed852e2009-09-05 21:47:34 +000021448# Number of bits in a Quantum
21449
21450# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021451if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021452 withval=$with_quantum_depth; with_quantum_depth=$withval
21453else
21454 with_quantum_depth=16
21455fi
21456
21457
21458if test "$with_quantum_depth" != '8'; then
21459 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21460fi
21461
21462case "${with_quantum_depth}" in
21463 8 ) ;;
21464 16 ) ;;
21465 32 ) ;;
21466 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021467 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021468esac
21469QUANTUM_DEPTH="$with_quantum_depth"
21470
21471cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021472#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021473_ACEOF
21474
cristya371edf2013-02-06 13:42:17 +000021475MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021476CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021477CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021478
cristy01ff9f32012-12-01 18:15:29 +000021479# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021480MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021481if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021482 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021483fi
cristy01ff9f32012-12-01 18:15:29 +000021484
21485
cristy3ed852e2009-09-05 21:47:34 +000021486# Set pixel cache threshold
21487
21488# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021489if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021490 withval=$with_cache; with_cache=$withval
21491else
21492 with_cache=''
21493fi
21494
21495
21496if test "$with_cache" != ''; then
21497
21498cat >>confdefs.h <<_ACEOF
21499#define PixelCacheThreshold $with_cache
21500_ACEOF
21501
21502 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21503fi
21504
21505# Disable/Enable support for full delegate paths
21506
21507# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021508if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021509 withval=$with_frozenpaths; with_frozenpaths=$withval
21510else
21511 with_frozenpaths='no'
21512fi
21513
21514
21515# Enable build/install of Magick++
21516
21517# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021518if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021519 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21520else
21521 with_magick_plus_plus='yes'
21522fi
21523
21524
cristy3a75f062012-09-08 23:29:40 +000021525# Encode the this name into the shared library.
21526
21527# Check whether --with-package-release-name was given.
21528if test "${with_package_release_name+set}" = set; then :
21529 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21530fi
21531
21532
21533
cristy3ed852e2009-09-05 21:47:34 +000021534# Disable build/install of PerlMagick.
21535
21536# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021537if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021538 withval=$with_perl; with_perl=$withval
21539else
cristyb5f4e2f2010-04-25 00:49:11 +000021540 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021541fi
21542
21543
21544# Options to pass when configuring PerlMagick
21545
21546# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021547if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021548 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021549fi
21550
21551
cristy3ed852e2009-09-05 21:47:34 +000021552
21553# Enable umem, object-caching memory allocation library.
21554
21555# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021556if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021557 withval=$with_umem; with_umem=$withval
21558else
21559 with_umem='no'
21560fi
21561
21562if test "$with_umem" != 'yes' ; then
21563 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21564fi
21565
21566#
21567# Specify path to shared libstdc++ if not in normal location
21568#
21569
21570# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021571if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021572 withval=$with_libstdc; with_libstdc=$withval
21573else
21574 with_libstdc=''
21575fi
21576
21577
21578if test "$with_libstdc" != ''; then
21579 if test -d "$with_libstdc"; then
21580 LIBSTDCLDFLAGS="-L$with_libstdc"
21581 fi
21582fi
21583
21584
21585# Does gcc required -traditional?
21586if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021588$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021589if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021590 $as_echo_n "(cached) " >&6
21591else
21592 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021594/* end confdefs.h. */
21595#include <sgtty.h>
21596Autoconf TIOCGETP
21597_ACEOF
21598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021599 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021600 ac_cv_prog_gcc_traditional=yes
21601else
21602 ac_cv_prog_gcc_traditional=no
21603fi
21604rm -f conftest*
21605
21606
21607 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021609/* end confdefs.h. */
21610#include <termio.h>
21611Autoconf TCGETA
21612_ACEOF
21613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021614 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021615 ac_cv_prog_gcc_traditional=yes
21616fi
21617rm -f conftest*
21618
21619 fi
21620fi
cristy8b350f62009-11-15 23:12:43 +000021621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021622$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21623 if test $ac_cv_prog_gcc_traditional = yes; then
21624 CC="$CC -traditional"
21625 fi
21626fi
21627
21628
21629########
21630#
21631# Set defines required to build DLLs and modules using MinGW
21632#
21633########
21634# These options are set for multi-thread DLL module build
21635# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21636# module: _DLL
21637# executable/Magick++: _DLL _MAGICKMOD_
21638MODULE_EXTRA_CPPFLAGS=''
21639LIBRARY_EXTRA_CPPFLAGS=''
21640if test "${native_win32_build}" = 'yes'; then
21641 if test "${libtool_build_shared_libs}" = 'yes'; then
21642 CPPFLAGS="$CPPFLAGS -D_DLL"
21643 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21644 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21645 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021646 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021647 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21648 else
21649 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21650 fi
21651 else
21652 CPPFLAGS="$CPPFLAGS -D_LIB"
21653 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21654 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21655 fi
21656 if test "$with_threads" = 'yes'; then
21657 CPPFLAGS="$CPPFLAGS -D_MT"
21658 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21659 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21660 fi
21661fi
21662
21663
21664
21665# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021667$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021668if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021669 $as_echo_n "(cached) " >&6
21670else
cristy8b350f62009-11-15 23:12:43 +000021671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021672/* end confdefs.h. */
21673#include <stdlib.h>
21674#include <stdarg.h>
21675#include <string.h>
21676#include <float.h>
21677
21678int
21679main ()
21680{
21681
21682 ;
21683 return 0;
21684}
21685_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021686if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021687 ac_cv_header_stdc=yes
21688else
cristy8b350f62009-11-15 23:12:43 +000021689 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021690fi
cristy3ed852e2009-09-05 21:47:34 +000021691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21692
21693if test $ac_cv_header_stdc = yes; then
21694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021696/* end confdefs.h. */
21697#include <string.h>
21698
21699_ACEOF
21700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021701 $EGREP "memchr" >/dev/null 2>&1; then :
21702
cristy3ed852e2009-09-05 21:47:34 +000021703else
21704 ac_cv_header_stdc=no
21705fi
21706rm -f conftest*
21707
21708fi
21709
21710if test $ac_cv_header_stdc = yes; then
21711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021713/* end confdefs.h. */
21714#include <stdlib.h>
21715
21716_ACEOF
21717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021718 $EGREP "free" >/dev/null 2>&1; then :
21719
cristy3ed852e2009-09-05 21:47:34 +000021720else
21721 ac_cv_header_stdc=no
21722fi
21723rm -f conftest*
21724
21725fi
21726
21727if test $ac_cv_header_stdc = yes; then
21728 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021729 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021730 :
21731else
cristy8b350f62009-11-15 23:12:43 +000021732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021733/* end confdefs.h. */
21734#include <ctype.h>
21735#include <stdlib.h>
21736#if ((' ' & 0x0FF) == 0x020)
21737# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21738# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21739#else
21740# define ISLOWER(c) \
21741 (('a' <= (c) && (c) <= 'i') \
21742 || ('j' <= (c) && (c) <= 'r') \
21743 || ('s' <= (c) && (c) <= 'z'))
21744# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21745#endif
21746
21747#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21748int
21749main ()
21750{
21751 int i;
21752 for (i = 0; i < 256; i++)
21753 if (XOR (islower (i), ISLOWER (i))
21754 || toupper (i) != TOUPPER (i))
21755 return 2;
21756 return 0;
21757}
21758_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021759if ac_fn_c_try_run "$LINENO"; then :
21760
cristy3ed852e2009-09-05 21:47:34 +000021761else
cristy8b350f62009-11-15 23:12:43 +000021762 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021763fi
cristy8b350f62009-11-15 23:12:43 +000021764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21765 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021766fi
21767
cristy3ed852e2009-09-05 21:47:34 +000021768fi
21769fi
cristy8b350f62009-11-15 23:12:43 +000021770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021771$as_echo "$ac_cv_header_stdc" >&6; }
21772if test $ac_cv_header_stdc = yes; then
21773
cristy8b350f62009-11-15 23:12:43 +000021774$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021775
21776fi
21777
21778if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021779 { $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 +000021780 header files. Compilation cannot proceed. Please install the ANSI C
21781 headers and rerun this script." >&5
21782$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21783 header files. Compilation cannot proceed. Please install the ANSI C
21784 headers and rerun this script." >&2;};
21785fi
cristya0b81c32010-01-22 02:54:33 +000021786
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21788$as_echo_n "checking whether to enable assertions... " >&6; }
21789 # Check whether --enable-assert was given.
21790if test "${enable_assert+set}" = set; then :
21791 enableval=$enable_assert; ac_enable_assert=$enableval
21792 if test "x$enableval" = xno; then :
21793
21794$as_echo "#define NDEBUG 1" >>confdefs.h
21795
21796elif test "x$enableval" != xyes; then :
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21798$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21799 ac_enable_assert=yes
21800fi
21801else
21802 ac_enable_assert=yes
21803fi
21804
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21806$as_echo "$ac_enable_assert" >&6; }
21807
cristy3ed852e2009-09-05 21:47:34 +000021808ac_header_dirent=no
21809for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21810 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021812$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021813if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021814 $as_echo_n "(cached) " >&6
21815else
cristy8b350f62009-11-15 23:12:43 +000021816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021817/* end confdefs.h. */
21818#include <sys/types.h>
21819#include <$ac_hdr>
21820
21821int
21822main ()
21823{
21824if ((DIR *) 0)
21825return 0;
21826 ;
21827 return 0;
21828}
21829_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021830if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021831 eval "$as_ac_Header=yes"
21832else
cristy8b350f62009-11-15 23:12:43 +000021833 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021834fi
cristy3ed852e2009-09-05 21:47:34 +000021835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21836fi
cristy8b350f62009-11-15 23:12:43 +000021837eval ac_res=\$$as_ac_Header
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021839$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021840if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021841 cat >>confdefs.h <<_ACEOF
21842#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21843_ACEOF
21844
21845ac_header_dirent=$ac_hdr; break
21846fi
21847
21848done
21849# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21850if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021852$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021853if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021854 $as_echo_n "(cached) " >&6
21855else
21856 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021858/* end confdefs.h. */
21859
21860/* Override any GCC internal prototype to avoid an error.
21861 Use char because int might match the return type of a GCC
21862 builtin and then its argument prototype would still apply. */
21863#ifdef __cplusplus
21864extern "C"
21865#endif
21866char opendir ();
21867int
21868main ()
21869{
21870return opendir ();
21871 ;
21872 return 0;
21873}
21874_ACEOF
21875for ac_lib in '' dir; do
21876 if test -z "$ac_lib"; then
21877 ac_res="none required"
21878 else
21879 ac_res=-l$ac_lib
21880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21881 fi
cristy8b350f62009-11-15 23:12:43 +000021882 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021883 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021884fi
cristy8b350f62009-11-15 23:12:43 +000021885rm -f core conftest.err conftest.$ac_objext \
21886 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021887 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021888 break
21889fi
21890done
cristyda16f162011-02-19 23:52:17 +000021891if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021892
cristy3ed852e2009-09-05 21:47:34 +000021893else
21894 ac_cv_search_opendir=no
21895fi
21896rm conftest.$ac_ext
21897LIBS=$ac_func_search_save_LIBS
21898fi
cristy8b350f62009-11-15 23:12:43 +000021899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021900$as_echo "$ac_cv_search_opendir" >&6; }
21901ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021902if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021903 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21904
21905fi
21906
21907else
cristy8b350f62009-11-15 23:12:43 +000021908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021909$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021910if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021911 $as_echo_n "(cached) " >&6
21912else
21913 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021915/* end confdefs.h. */
21916
21917/* Override any GCC internal prototype to avoid an error.
21918 Use char because int might match the return type of a GCC
21919 builtin and then its argument prototype would still apply. */
21920#ifdef __cplusplus
21921extern "C"
21922#endif
21923char opendir ();
21924int
21925main ()
21926{
21927return opendir ();
21928 ;
21929 return 0;
21930}
21931_ACEOF
21932for ac_lib in '' x; do
21933 if test -z "$ac_lib"; then
21934 ac_res="none required"
21935 else
21936 ac_res=-l$ac_lib
21937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21938 fi
cristy8b350f62009-11-15 23:12:43 +000021939 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021940 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021941fi
cristy8b350f62009-11-15 23:12:43 +000021942rm -f core conftest.err conftest.$ac_objext \
21943 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021944 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021945 break
21946fi
21947done
cristyda16f162011-02-19 23:52:17 +000021948if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021949
cristy3ed852e2009-09-05 21:47:34 +000021950else
21951 ac_cv_search_opendir=no
21952fi
21953rm conftest.$ac_ext
21954LIBS=$ac_func_search_save_LIBS
21955fi
cristy8b350f62009-11-15 23:12:43 +000021956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021957$as_echo "$ac_cv_search_opendir" >&6; }
21958ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021959if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21961
21962fi
21963
21964fi
21965
21966
21967# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021968for 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 +000021969do :
21970 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21971ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021972if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021973 cat >>confdefs.h <<_ACEOF
21974#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21975_ACEOF
21976
21977fi
21978
21979done
21980
21981
21982########
21983#
21984# Checks for typedefs, structures, and compiler characteristics.
21985#
21986########
21987
cristy8b350f62009-11-15 23:12:43 +000021988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021989$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021990if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021991 $as_echo_n "(cached) " >&6
21992else
cristy8b350f62009-11-15 23:12:43 +000021993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021994/* end confdefs.h. */
21995
cristy14fefe52012-05-21 00:59:18 +000021996 #include <stdbool.h>
21997 #ifndef bool
21998 "error: bool is not defined"
21999 #endif
22000 #ifndef false
22001 "error: false is not defined"
22002 #endif
22003 #if false
22004 "error: false is not 0"
22005 #endif
22006 #ifndef true
22007 "error: true is not defined"
22008 #endif
22009 #if true != 1
22010 "error: true is not 1"
22011 #endif
22012 #ifndef __bool_true_false_are_defined
22013 "error: __bool_true_false_are_defined is not defined"
22014 #endif
cristy3ed852e2009-09-05 21:47:34 +000022015
cristy14fefe52012-05-21 00:59:18 +000022016 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022017
cristy14fefe52012-05-21 00:59:18 +000022018 char a[true == 1 ? 1 : -1];
22019 char b[false == 0 ? 1 : -1];
22020 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22021 char d[(bool) 0.5 == true ? 1 : -1];
22022 /* See body of main program for 'e'. */
22023 char f[(_Bool) 0.0 == false ? 1 : -1];
22024 char g[true];
22025 char h[sizeof (_Bool)];
22026 char i[sizeof s.t];
22027 enum { j = false, k = true, l = false * true, m = true * 256 };
22028 /* The following fails for
22029 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22030 _Bool n[m];
22031 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22032 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22033 /* Catch a bug in an HP-UX C compiler. See
22034 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22035 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22036 */
22037 _Bool q = true;
22038 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022039
22040int
22041main ()
22042{
22043
cristy14fefe52012-05-21 00:59:18 +000022044 bool e = &s;
22045 *pq |= q;
22046 *pq |= ! q;
22047 /* Refer to every declared value, to avoid compiler optimizations. */
22048 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22049 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022050
22051 ;
22052 return 0;
22053}
22054_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022055if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022056 ac_cv_header_stdbool_h=yes
22057else
cristy8b350f62009-11-15 23:12:43 +000022058 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022059fi
cristy3ed852e2009-09-05 21:47:34 +000022060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22061fi
cristy8b350f62009-11-15 23:12:43 +000022062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022063$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022064 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022065if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022066
22067cat >>confdefs.h <<_ACEOF
22068#define HAVE__BOOL 1
22069_ACEOF
22070
22071
22072fi
22073
cristy14fefe52012-05-21 00:59:18 +000022074
cristy3ed852e2009-09-05 21:47:34 +000022075if test $ac_cv_header_stdbool_h = yes; then
22076
cristy8b350f62009-11-15 23:12:43 +000022077$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022078
22079fi
22080
cristy8b350f62009-11-15 23:12:43 +000022081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022082$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022083if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022084 $as_echo_n "(cached) " >&6
22085else
cristy8b350f62009-11-15 23:12:43 +000022086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022087/* end confdefs.h. */
22088
22089int
22090main ()
22091{
22092
22093volatile int x;
22094int * volatile y = (int *) 0;
22095return !x && !y;
22096 ;
22097 return 0;
22098}
22099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022100if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022101 ac_cv_c_volatile=yes
22102else
cristy8b350f62009-11-15 23:12:43 +000022103 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022104fi
cristy3ed852e2009-09-05 21:47:34 +000022105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22106fi
cristy8b350f62009-11-15 23:12:43 +000022107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022108$as_echo "$ac_cv_c_volatile" >&6; }
22109if test $ac_cv_c_volatile = no; then
22110
cristy8b350f62009-11-15 23:12:43 +000022111$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022112
22113fi
22114
cristy8b350f62009-11-15 23:12:43 +000022115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022116$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022117if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022118 $as_echo_n "(cached) " >&6
22119else
cristy8b350f62009-11-15 23:12:43 +000022120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022121/* end confdefs.h. */
22122#define x(y) #y
22123
22124char *s = x(teststring);
22125_ACEOF
22126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022127 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022128 ac_cv_c_stringize=no
22129else
22130 ac_cv_c_stringize=yes
22131fi
22132rm -f conftest*
22133
22134fi
cristy8b350f62009-11-15 23:12:43 +000022135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022136$as_echo "$ac_cv_c_stringize" >&6; }
22137if test $ac_cv_c_stringize = yes; then
22138
cristy8b350f62009-11-15 23:12:43 +000022139$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022140
22141fi
22142
cristy8b350f62009-11-15 23:12:43 +000022143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022144$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022145if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022146 $as_echo_n "(cached) " >&6
22147else
cristy8b350f62009-11-15 23:12:43 +000022148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022149/* end confdefs.h. */
22150#include <sys/types.h>
22151#include <sys/stat.h>
22152
22153#if defined S_ISBLK && defined S_IFDIR
22154extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22155#endif
22156
22157#if defined S_ISBLK && defined S_IFCHR
22158extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22159#endif
22160
22161#if defined S_ISLNK && defined S_IFREG
22162extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22163#endif
22164
22165#if defined S_ISSOCK && defined S_IFREG
22166extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22167#endif
22168
22169_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022170if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022171 ac_cv_header_stat_broken=no
22172else
cristy8b350f62009-11-15 23:12:43 +000022173 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022174fi
cristy3ed852e2009-09-05 21:47:34 +000022175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22176fi
cristy8b350f62009-11-15 23:12:43 +000022177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022178$as_echo "$ac_cv_header_stat_broken" >&6; }
22179if test $ac_cv_header_stat_broken = yes; then
22180
cristy8b350f62009-11-15 23:12:43 +000022181$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022182
22183fi
22184
cristy8b350f62009-11-15 23:12:43 +000022185{ $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 +000022186$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022187if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022188 $as_echo_n "(cached) " >&6
22189else
cristy8b350f62009-11-15 23:12:43 +000022190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022191/* end confdefs.h. */
22192#include <sys/types.h>
22193#include <sys/time.h>
22194#include <time.h>
22195
22196int
22197main ()
22198{
22199if ((struct tm *) 0)
22200return 0;
22201 ;
22202 return 0;
22203}
22204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022205if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022206 ac_cv_header_time=yes
22207else
cristy8b350f62009-11-15 23:12:43 +000022208 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022209fi
cristy3ed852e2009-09-05 21:47:34 +000022210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22211fi
cristy8b350f62009-11-15 23:12:43 +000022212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022213$as_echo "$ac_cv_header_time" >&6; }
22214if test $ac_cv_header_time = yes; then
22215
cristy8b350f62009-11-15 23:12:43 +000022216$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022217
22218fi
22219
cristy8b350f62009-11-15 23:12:43 +000022220{ $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 +000022221$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022222if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022223 $as_echo_n "(cached) " >&6
22224else
cristy8b350f62009-11-15 23:12:43 +000022225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022226/* end confdefs.h. */
22227#include <sys/types.h>
22228#include <time.h>
22229
22230int
22231main ()
22232{
22233struct tm tm;
22234 int *p = &tm.tm_sec;
22235 return !p;
22236 ;
22237 return 0;
22238}
22239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022240if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022241 ac_cv_struct_tm=time.h
22242else
cristy8b350f62009-11-15 23:12:43 +000022243 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022244fi
cristy3ed852e2009-09-05 21:47:34 +000022245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22246fi
cristy8b350f62009-11-15 23:12:43 +000022247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022248$as_echo "$ac_cv_struct_tm" >&6; }
22249if test $ac_cv_struct_tm = sys/time.h; then
22250
cristy8b350f62009-11-15 23:12:43 +000022251$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022252
22253fi
22254
cristy92703d82010-04-26 00:18:18 +000022255ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22256#include <$ac_cv_struct_tm>
22257
22258"
cristyda16f162011-02-19 23:52:17 +000022259if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022260
22261cat >>confdefs.h <<_ACEOF
22262#define HAVE_STRUCT_TM_TM_ZONE 1
22263_ACEOF
22264
22265
22266fi
22267
22268if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22269
22270$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22271
22272else
22273 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22274"
cristyda16f162011-02-19 23:52:17 +000022275if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022276 ac_have_decl=1
22277else
22278 ac_have_decl=0
22279fi
22280
22281cat >>confdefs.h <<_ACEOF
22282#define HAVE_DECL_TZNAME $ac_have_decl
22283_ACEOF
22284
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22286$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022287if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022288 $as_echo_n "(cached) " >&6
22289else
22290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22291/* end confdefs.h. */
22292#include <time.h>
22293#if !HAVE_DECL_TZNAME
22294extern char *tzname[];
22295#endif
22296
22297int
22298main ()
22299{
22300return tzname[0][0];
22301 ;
22302 return 0;
22303}
22304_ACEOF
22305if ac_fn_c_try_link "$LINENO"; then :
22306 ac_cv_var_tzname=yes
22307else
22308 ac_cv_var_tzname=no
22309fi
22310rm -f core conftest.err conftest.$ac_objext \
22311 conftest$ac_exeext conftest.$ac_ext
22312fi
22313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22314$as_echo "$ac_cv_var_tzname" >&6; }
22315 if test $ac_cv_var_tzname = yes; then
22316
22317$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22318
22319 fi
22320fi
22321
cristy8b350f62009-11-15 23:12:43 +000022322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022323$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022324if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022325 $as_echo_n "(cached) " >&6
22326else
22327 echo '#! /bin/cat
22328exit 69
22329' >conftest
22330chmod u+x conftest
22331(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22332if test $? -ne 69; then
22333 ac_cv_sys_interpreter=yes
22334else
22335 ac_cv_sys_interpreter=no
22336fi
22337rm -f conftest
22338fi
cristy8b350f62009-11-15 23:12:43 +000022339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022340$as_echo "$ac_cv_sys_interpreter" >&6; }
22341interpval=$ac_cv_sys_interpreter
22342
22343
cristye80f9cb2013-01-09 01:09:31 +000022344#
22345# Checks for language qualifiers and semantics.
22346#
22347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22348$as_echo_n "checking whether char is unsigned... " >&6; }
22349if ${ac_cv_c_char_unsigned+:} false; then :
22350 $as_echo_n "(cached) " >&6
22351else
22352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22353/* end confdefs.h. */
22354$ac_includes_default
22355int
22356main ()
22357{
22358static int test_array [1 - 2 * !(((char) -1) < 0)];
22359test_array [0] = 0;
22360return test_array [0];
22361
22362 ;
22363 return 0;
22364}
22365_ACEOF
22366if ac_fn_c_try_compile "$LINENO"; then :
22367 ac_cv_c_char_unsigned=no
22368else
22369 ac_cv_c_char_unsigned=yes
22370fi
22371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22372fi
22373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22374$as_echo "$ac_cv_c_char_unsigned" >&6; }
22375if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22376 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22377
22378fi
22379
22380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22381$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22382if ${ac_cv_c_const+:} false; then :
22383 $as_echo_n "(cached) " >&6
22384else
22385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22386/* end confdefs.h. */
22387
22388int
22389main ()
22390{
22391
22392#ifndef __cplusplus
22393 /* Ultrix mips cc rejects this sort of thing. */
22394 typedef int charset[2];
22395 const charset cs = { 0, 0 };
22396 /* SunOS 4.1.1 cc rejects this. */
22397 char const *const *pcpcc;
22398 char **ppc;
22399 /* NEC SVR4.0.2 mips cc rejects this. */
22400 struct point {int x, y;};
22401 static struct point const zero = {0,0};
22402 /* AIX XL C 1.02.0.0 rejects this.
22403 It does not let you subtract one const X* pointer from another in
22404 an arm of an if-expression whose if-part is not a constant
22405 expression */
22406 const char *g = "string";
22407 pcpcc = &g + (g ? g-g : 0);
22408 /* HPUX 7.0 cc rejects these. */
22409 ++pcpcc;
22410 ppc = (char**) pcpcc;
22411 pcpcc = (char const *const *) ppc;
22412 { /* SCO 3.2v4 cc rejects this sort of thing. */
22413 char tx;
22414 char *t = &tx;
22415 char const *s = 0 ? (char *) 0 : (char const *) 0;
22416
22417 *t++ = 0;
22418 if (s) return 0;
22419 }
22420 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22421 int x[] = {25, 17};
22422 const int *foo = &x[0];
22423 ++foo;
22424 }
22425 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22426 typedef const int *iptr;
22427 iptr p = 0;
22428 ++p;
22429 }
22430 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22431 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22432 struct s { int j; const int *ap[3]; } bx;
22433 struct s *b = &bx; b->j = 5;
22434 }
22435 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22436 const int foo = 10;
22437 if (!foo) return 0;
22438 }
22439 return !cs[0] && !zero.x;
22440#endif
22441
22442 ;
22443 return 0;
22444}
22445_ACEOF
22446if ac_fn_c_try_compile "$LINENO"; then :
22447 ac_cv_c_const=yes
22448else
22449 ac_cv_c_const=no
22450fi
22451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22452fi
22453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22454$as_echo "$ac_cv_c_const" >&6; }
22455if test $ac_cv_c_const = no; then
22456
22457$as_echo "#define const /**/" >>confdefs.h
22458
22459fi
22460
cristy8b350f62009-11-15 23:12:43 +000022461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022462$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022463if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022464 $as_echo_n "(cached) " >&6
22465else
22466 ac_cv_c_inline=no
22467for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022469/* end confdefs.h. */
22470#ifndef __cplusplus
22471typedef int foo_t;
22472static $ac_kw foo_t static_foo () {return 0; }
22473$ac_kw foo_t foo () {return 0; }
22474#endif
22475
22476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022477if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022478 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022479fi
cristy3ed852e2009-09-05 21:47:34 +000022480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22481 test "$ac_cv_c_inline" != no && break
22482done
22483
22484fi
cristy8b350f62009-11-15 23:12:43 +000022485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022486$as_echo "$ac_cv_c_inline" >&6; }
22487
cristy3ed852e2009-09-05 21:47:34 +000022488case $ac_cv_c_inline in
22489 inline | yes) ;;
22490 *)
22491 case $ac_cv_c_inline in
22492 no) ac_val=;;
22493 *) ac_val=$ac_cv_c_inline;;
22494 esac
22495 cat >>confdefs.h <<_ACEOF
22496#ifndef __cplusplus
22497#define inline $ac_val
22498#endif
22499_ACEOF
22500 ;;
22501esac
22502
cristy8b350f62009-11-15 23:12:43 +000022503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022504$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022505if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022506 $as_echo_n "(cached) " >&6
22507else
22508 ac_cv_c_restrict=no
22509 # The order here caters to the fact that C++ does not require restrict.
22510 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022512/* end confdefs.h. */
22513typedef int * int_ptr;
22514 int foo (int_ptr $ac_kw ip) {
22515 return ip[0];
22516 }
22517int
22518main ()
22519{
22520int s[1];
22521 int * $ac_kw t = s;
22522 t[0] = 0;
22523 return foo(t)
22524 ;
22525 return 0;
22526}
22527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022528if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022529 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022530fi
cristy3ed852e2009-09-05 21:47:34 +000022531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22532 test "$ac_cv_c_restrict" != no && break
22533 done
22534
22535fi
cristy8b350f62009-11-15 23:12:43 +000022536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022537$as_echo "$ac_cv_c_restrict" >&6; }
22538
cristy3ed852e2009-09-05 21:47:34 +000022539 case $ac_cv_c_restrict in
22540 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022541 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022542 ;;
22543 *) cat >>confdefs.h <<_ACEOF
22544#define restrict $ac_cv_c_restrict
22545_ACEOF
22546 ;;
22547 esac
22548
cristye80f9cb2013-01-09 01:09:31 +000022549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22550$as_echo_n "checking for working volatile... " >&6; }
22551if ${ac_cv_c_volatile+:} false; then :
22552 $as_echo_n "(cached) " >&6
22553else
22554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22555/* end confdefs.h. */
22556
22557int
22558main ()
22559{
22560
22561volatile int x;
22562int * volatile y = (int *) 0;
22563return !x && !y;
22564 ;
22565 return 0;
22566}
22567_ACEOF
22568if ac_fn_c_try_compile "$LINENO"; then :
22569 ac_cv_c_volatile=yes
22570else
22571 ac_cv_c_volatile=no
22572fi
22573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22574fi
22575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22576$as_echo "$ac_cv_c_volatile" >&6; }
22577if test $ac_cv_c_volatile = no; then
22578
22579$as_echo "#define volatile /**/" >>confdefs.h
22580
22581fi
22582
cristy3ed852e2009-09-05 21:47:34 +000022583
22584# If words are stored with the most significant byte first (like
22585# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022587$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022588if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022589 $as_echo_n "(cached) " >&6
22590else
22591 ac_cv_c_bigendian=unknown
22592 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022594/* end confdefs.h. */
22595#ifndef __APPLE_CC__
22596 not a universal capable compiler
22597 #endif
22598 typedef int dummy;
22599
22600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022601if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022602
22603 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022604 # there are at least two -arch flags with different values.
22605 ac_arch=
22606 ac_prev=
22607 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22608 if test -n "$ac_prev"; then
22609 case $ac_word in
22610 i?86 | x86_64 | ppc | ppc64)
22611 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22612 ac_arch=$ac_word
22613 else
22614 ac_cv_c_bigendian=universal
22615 break
22616 fi
22617 ;;
22618 esac
22619 ac_prev=
22620 elif test "x$ac_word" = "x-arch"; then
22621 ac_prev=arch
22622 fi
22623 done
cristy3ed852e2009-09-05 21:47:34 +000022624fi
cristy3ed852e2009-09-05 21:47:34 +000022625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22626 if test $ac_cv_c_bigendian = unknown; then
22627 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022629/* end confdefs.h. */
22630#include <sys/types.h>
22631 #include <sys/param.h>
22632
22633int
22634main ()
22635{
22636#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22637 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22638 && LITTLE_ENDIAN)
22639 bogus endian macros
22640 #endif
22641
22642 ;
22643 return 0;
22644}
22645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022646if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022647 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022649/* end confdefs.h. */
22650#include <sys/types.h>
22651 #include <sys/param.h>
22652
22653int
22654main ()
22655{
22656#if BYTE_ORDER != BIG_ENDIAN
22657 not big endian
22658 #endif
22659
22660 ;
22661 return 0;
22662}
22663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022664if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022665 ac_cv_c_bigendian=yes
22666else
cristy8b350f62009-11-15 23:12:43 +000022667 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022668fi
cristy3ed852e2009-09-05 21:47:34 +000022669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022670fi
cristy3ed852e2009-09-05 21:47:34 +000022671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22672 fi
22673 if test $ac_cv_c_bigendian = unknown; then
22674 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022676/* end confdefs.h. */
22677#include <limits.h>
22678
22679int
22680main ()
22681{
22682#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22683 bogus endian macros
22684 #endif
22685
22686 ;
22687 return 0;
22688}
22689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022690if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022691 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022693/* end confdefs.h. */
22694#include <limits.h>
22695
22696int
22697main ()
22698{
22699#ifndef _BIG_ENDIAN
22700 not big endian
22701 #endif
22702
22703 ;
22704 return 0;
22705}
22706_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022707if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022708 ac_cv_c_bigendian=yes
22709else
cristy8b350f62009-11-15 23:12:43 +000022710 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022711fi
cristy3ed852e2009-09-05 21:47:34 +000022712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022713fi
cristy3ed852e2009-09-05 21:47:34 +000022714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22715 fi
22716 if test $ac_cv_c_bigendian = unknown; then
22717 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022718 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022719 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022721/* end confdefs.h. */
22722short int ascii_mm[] =
22723 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22724 short int ascii_ii[] =
22725 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22726 int use_ascii (int i) {
22727 return ascii_mm[i] + ascii_ii[i];
22728 }
22729 short int ebcdic_ii[] =
22730 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22731 short int ebcdic_mm[] =
22732 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22733 int use_ebcdic (int i) {
22734 return ebcdic_mm[i] + ebcdic_ii[i];
22735 }
22736 extern int foo;
22737
22738int
22739main ()
22740{
22741return use_ascii (foo) == use_ebcdic (foo);
22742 ;
22743 return 0;
22744}
22745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022746if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022747 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22748 ac_cv_c_bigendian=yes
22749 fi
22750 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22751 if test "$ac_cv_c_bigendian" = unknown; then
22752 ac_cv_c_bigendian=no
22753 else
22754 # finding both strings is unlikely to happen, but who knows?
22755 ac_cv_c_bigendian=unknown
22756 fi
22757 fi
cristy3ed852e2009-09-05 21:47:34 +000022758fi
cristy3ed852e2009-09-05 21:47:34 +000022759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22760else
cristy8b350f62009-11-15 23:12:43 +000022761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022762/* end confdefs.h. */
22763$ac_includes_default
22764int
22765main ()
22766{
22767
22768 /* Are we little or big endian? From Harbison&Steele. */
22769 union
22770 {
22771 long int l;
22772 char c[sizeof (long int)];
22773 } u;
22774 u.l = 1;
22775 return u.c[sizeof (long int) - 1] == 1;
22776
22777 ;
22778 return 0;
22779}
22780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022781if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022782 ac_cv_c_bigendian=no
22783else
cristy8b350f62009-11-15 23:12:43 +000022784 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022785fi
cristy8b350f62009-11-15 23:12:43 +000022786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22787 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022788fi
22789
cristy3ed852e2009-09-05 21:47:34 +000022790 fi
22791fi
cristy8b350f62009-11-15 23:12:43 +000022792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022793$as_echo "$ac_cv_c_bigendian" >&6; }
22794 case $ac_cv_c_bigendian in #(
22795 yes)
cristy8b350f62009-11-15 23:12:43 +000022796 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022797;; #(
22798 no)
22799 ;; #(
22800 universal)
22801
cristy8b350f62009-11-15 23:12:43 +000022802$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022803
22804 ;; #(
22805 *)
cristy98dddb52010-11-04 00:30:15 +000022806 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022807 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022808 esac
22809
22810
cristy501c8042011-05-26 17:46:28 +000022811# Define to a suitable type, if standard headers do not define it.
22812ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22813case $ac_cv_c_int8_t in #(
22814 no|yes) ;; #(
22815 *)
cristy3ed852e2009-09-05 21:47:34 +000022816
22817cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022818#define int8_t $ac_cv_c_int8_t
22819_ACEOF
22820;;
22821esac
22822
22823ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22824case $ac_cv_c_int16_t in #(
22825 no|yes) ;; #(
22826 *)
22827
22828cat >>confdefs.h <<_ACEOF
22829#define int16_t $ac_cv_c_int16_t
22830_ACEOF
22831;;
22832esac
22833
22834ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22835case $ac_cv_c_int32_t in #(
22836 no|yes) ;; #(
22837 *)
22838
22839cat >>confdefs.h <<_ACEOF
22840#define int32_t $ac_cv_c_int32_t
22841_ACEOF
22842;;
22843esac
22844
22845ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22846case $ac_cv_c_int64_t in #(
22847 no|yes) ;; #(
22848 *)
22849
22850cat >>confdefs.h <<_ACEOF
22851#define int64_t $ac_cv_c_int64_t
22852_ACEOF
22853;;
22854esac
22855
22856
cristy045228a2013-06-23 11:00:16 +000022857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22858$as_echo_n "checking for unsigned long long int... " >&6; }
22859if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022860 $as_echo_n "(cached) " >&6
22861else
cristy045228a2013-06-23 11:00:16 +000022862 ac_cv_type_unsigned_long_long_int=yes
22863 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022865/* end confdefs.h. */
22866
22867 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022868 implementations with broken preprocessors. Perhaps this can
22869 be revisited in 2012. In the meantime, code should not expect
22870 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022871 /* Test literals. */
22872 long long int ll = 9223372036854775807ll;
22873 long long int nll = -9223372036854775807LL;
22874 unsigned long long int ull = 18446744073709551615ULL;
22875 /* Test constant expressions. */
22876 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022877 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022878 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022879 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022880 int i = 63;
22881int
22882main ()
22883{
22884/* Test availability of runtime routines for shift and division. */
22885 long long int llmax = 9223372036854775807ll;
22886 unsigned long long int ullmax = 18446744073709551615ull;
22887 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022888 | (llmax / ll) | (llmax % ll)
22889 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22890 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022891 ;
22892 return 0;
22893}
22894
22895_ACEOF
22896if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022897
22898else
22899 ac_cv_type_unsigned_long_long_int=no
22900fi
22901rm -f core conftest.err conftest.$ac_objext \
22902 conftest$ac_exeext conftest.$ac_ext
22903 fi
22904fi
22905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22906$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22907 if test $ac_cv_type_unsigned_long_long_int = yes; then
22908
22909$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22910
22911 fi
22912
22913
22914
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22916$as_echo_n "checking for long long int... " >&6; }
22917if ${ac_cv_type_long_long_int+:} false; then :
22918 $as_echo_n "(cached) " >&6
22919else
cristy501c8042011-05-26 17:46:28 +000022920 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022921 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022922 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22923 if test $ac_cv_type_long_long_int = yes; then
22924 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022925 :
cristy501c8042011-05-26 17:46:28 +000022926else
22927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22928/* end confdefs.h. */
22929#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022930 #ifndef LLONG_MAX
22931 # define HALF \
22932 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22933 # define LLONG_MAX (HALF - 1 + HALF)
22934 #endif
cristy501c8042011-05-26 17:46:28 +000022935int
22936main ()
22937{
22938long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022939 int i;
22940 for (i = 0; ; i++)
22941 {
22942 long long int m = n << i;
22943 if (m >> i != n)
22944 return 1;
22945 if (LLONG_MAX / 2 < m)
22946 break;
22947 }
22948 return 0;
cristy501c8042011-05-26 17:46:28 +000022949 ;
22950 return 0;
22951}
22952_ACEOF
22953if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022954
cristy501c8042011-05-26 17:46:28 +000022955else
22956 ac_cv_type_long_long_int=no
22957fi
22958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22959 conftest.$ac_objext conftest.beam conftest.$ac_ext
22960fi
22961
cristy5ed9c6e2013-07-14 21:20:31 +000022962 fi
cristy045228a2013-06-23 11:00:16 +000022963 fi
cristy501c8042011-05-26 17:46:28 +000022964fi
22965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22966$as_echo "$ac_cv_type_long_long_int" >&6; }
22967 if test $ac_cv_type_long_long_int = yes; then
22968
22969$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22970
22971 fi
22972
22973
22974
22975 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22976if test "x$ac_cv_type_intmax_t" = xyes; then :
22977
22978$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22979
22980else
22981 test $ac_cv_type_long_long_int = yes \
22982 && ac_type='long long int' \
22983 || ac_type='long int'
22984
22985cat >>confdefs.h <<_ACEOF
22986#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022987_ACEOF
22988
22989fi
22990
22991
cristy501c8042011-05-26 17:46:28 +000022992
22993 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22994if test "x$ac_cv_type_intptr_t" = xyes; then :
22995
22996$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022997
cristy3ed852e2009-09-05 21:47:34 +000022998else
cristy501c8042011-05-26 17:46:28 +000022999 for ac_type in 'int' 'long int' 'long long int'; do
23000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001/* end confdefs.h. */
23002$ac_includes_default
23003int
23004main ()
23005{
23006static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023007test_array [0] = 0;
23008return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023009
23010 ;
23011 return 0;
23012}
23013_ACEOF
23014if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023015
23016cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023017#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023018_ACEOF
23019
cristy501c8042011-05-26 17:46:28 +000023020 ac_type=
23021fi
23022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23023 test -z "$ac_type" && break
23024 done
cristy3ed852e2009-09-05 21:47:34 +000023025fi
23026
23027
cristy3ed852e2009-09-05 21:47:34 +000023028
cristy501c8042011-05-26 17:46:28 +000023029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23030$as_echo_n "checking for long double... " >&6; }
23031if ${ac_cv_type_long_double+:} false; then :
23032 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023033else
cristy501c8042011-05-26 17:46:28 +000023034 if test "$GCC" = yes; then
23035 ac_cv_type_long_double=yes
23036 else
23037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23038/* end confdefs.h. */
23039/* The Stardent Vistra knows sizeof (long double), but does
23040 not support it. */
23041 long double foo = 0.0L;
23042int
23043main ()
23044{
23045static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23046 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023047test_array [0] = 0;
23048return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023049
cristy501c8042011-05-26 17:46:28 +000023050 ;
23051 return 0;
23052}
cristy3ed852e2009-09-05 21:47:34 +000023053_ACEOF
cristy501c8042011-05-26 17:46:28 +000023054if ac_fn_c_try_compile "$LINENO"; then :
23055 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023056else
cristy501c8042011-05-26 17:46:28 +000023057 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023058fi
cristy501c8042011-05-26 17:46:28 +000023059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23060 fi
cristy3ed852e2009-09-05 21:47:34 +000023061fi
cristy501c8042011-05-26 17:46:28 +000023062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23063$as_echo "$ac_cv_type_long_double" >&6; }
23064 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023065
cristy501c8042011-05-26 17:46:28 +000023066$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023067
cristy501c8042011-05-26 17:46:28 +000023068 fi
23069
cristy3ed852e2009-09-05 21:47:34 +000023070
cristy8b350f62009-11-15 23:12:43 +000023071 { $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 +000023072$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023073if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023074 $as_echo_n "(cached) " >&6
23075else
cristy8b350f62009-11-15 23:12:43 +000023076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023077/* end confdefs.h. */
23078#include <float.h>
23079 long double const a[] =
23080 {
23081 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23082 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23083 };
23084 long double
23085 f (long double x)
23086 {
23087 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23088 + (x ? f (x) : 'c'));
23089 }
23090
23091int
23092main ()
23093{
23094static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23095 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23096 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23097 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23098 && (int) LDBL_EPSILON == 0
23099 )];
cristy14fefe52012-05-21 00:59:18 +000023100test_array [0] = 0;
23101return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023102
23103 ;
23104 return 0;
23105}
23106_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023107if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023108 ac_cv_type_long_double_wider=yes
23109else
cristy8b350f62009-11-15 23:12:43 +000023110 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023111fi
cristy3ed852e2009-09-05 21:47:34 +000023112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23113fi
cristy8b350f62009-11-15 23:12:43 +000023114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023115$as_echo "$ac_cv_type_long_double_wider" >&6; }
23116 if test $ac_cv_type_long_double_wider = yes; then
23117
cristy8b350f62009-11-15 23:12:43 +000023118$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023119
23120 fi
23121
23122
cristy045228a2013-06-23 11:00:16 +000023123
cristy501c8042011-05-26 17:46:28 +000023124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23125$as_echo_n "checking for long long int... " >&6; }
23126if ${ac_cv_type_long_long_int+:} false; then :
23127 $as_echo_n "(cached) " >&6
23128else
cristy501c8042011-05-26 17:46:28 +000023129 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023130 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023131 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23132 if test $ac_cv_type_long_long_int = yes; then
23133 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023134 :
cristy501c8042011-05-26 17:46:28 +000023135else
23136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23137/* end confdefs.h. */
23138#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023139 #ifndef LLONG_MAX
23140 # define HALF \
23141 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23142 # define LLONG_MAX (HALF - 1 + HALF)
23143 #endif
cristy501c8042011-05-26 17:46:28 +000023144int
23145main ()
23146{
23147long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023148 int i;
23149 for (i = 0; ; i++)
23150 {
23151 long long int m = n << i;
23152 if (m >> i != n)
23153 return 1;
23154 if (LLONG_MAX / 2 < m)
23155 break;
23156 }
23157 return 0;
cristy501c8042011-05-26 17:46:28 +000023158 ;
23159 return 0;
23160}
23161_ACEOF
23162if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023163
cristy501c8042011-05-26 17:46:28 +000023164else
23165 ac_cv_type_long_long_int=no
23166fi
23167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23168 conftest.$ac_objext conftest.beam conftest.$ac_ext
23169fi
23170
cristy5ed9c6e2013-07-14 21:20:31 +000023171 fi
cristy045228a2013-06-23 11:00:16 +000023172 fi
cristy501c8042011-05-26 17:46:28 +000023173fi
23174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23175$as_echo "$ac_cv_type_long_long_int" >&6; }
23176 if test $ac_cv_type_long_long_int = yes; then
23177
23178$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23179
23180 fi
23181
23182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23183$as_echo_n "checking for mbstate_t... " >&6; }
23184if ${ac_cv_type_mbstate_t+:} false; then :
23185 $as_echo_n "(cached) " >&6
23186else
23187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23188/* end confdefs.h. */
23189$ac_includes_default
23190# include <wchar.h>
23191int
23192main ()
23193{
23194mbstate_t x; return sizeof x;
23195 ;
23196 return 0;
23197}
23198_ACEOF
23199if ac_fn_c_try_compile "$LINENO"; then :
23200 ac_cv_type_mbstate_t=yes
23201else
23202 ac_cv_type_mbstate_t=no
23203fi
23204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23205fi
23206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23207$as_echo "$ac_cv_type_mbstate_t" >&6; }
23208 if test $ac_cv_type_mbstate_t = yes; then
23209
23210$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23211
23212 else
23213
23214$as_echo "#define mbstate_t int" >>confdefs.h
23215
23216 fi
23217ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23218if test "x$ac_cv_type_mode_t" = xyes; then :
23219
23220else
23221
23222cat >>confdefs.h <<_ACEOF
23223#define mode_t int
23224_ACEOF
23225
23226fi
23227
23228ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23229if test "x$ac_cv_type_off_t" = xyes; then :
23230
23231else
23232
23233cat >>confdefs.h <<_ACEOF
23234#define off_t long int
23235_ACEOF
23236
23237fi
23238
23239ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23240if test "x$ac_cv_type_pid_t" = xyes; then :
23241
23242else
23243
23244cat >>confdefs.h <<_ACEOF
23245#define pid_t int
23246_ACEOF
23247
23248fi
23249
23250ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23251if test "x$ac_cv_type_size_t" = xyes; then :
23252
23253else
23254
23255cat >>confdefs.h <<_ACEOF
23256#define size_t unsigned int
23257_ACEOF
23258
23259fi
23260
23261ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23262if test "x$ac_cv_type_ssize_t" = xyes; then :
23263
23264else
23265
23266cat >>confdefs.h <<_ACEOF
23267#define ssize_t int
23268_ACEOF
23269
23270fi
23271
23272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23273$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23274if ${ac_cv_type_uid_t+:} false; then :
23275 $as_echo_n "(cached) " >&6
23276else
23277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23278/* end confdefs.h. */
23279#include <sys/types.h>
23280
23281_ACEOF
23282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23283 $EGREP "uid_t" >/dev/null 2>&1; then :
23284 ac_cv_type_uid_t=yes
23285else
23286 ac_cv_type_uid_t=no
23287fi
23288rm -f conftest*
23289
23290fi
23291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23292$as_echo "$ac_cv_type_uid_t" >&6; }
23293if test $ac_cv_type_uid_t = no; then
23294
23295$as_echo "#define uid_t int" >>confdefs.h
23296
23297
23298$as_echo "#define gid_t int" >>confdefs.h
23299
23300fi
23301
23302ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23303case $ac_cv_c_uint8_t in #(
23304 no|yes) ;; #(
23305 *)
23306
23307$as_echo "#define _UINT8_T 1" >>confdefs.h
23308
23309
23310cat >>confdefs.h <<_ACEOF
23311#define uint8_t $ac_cv_c_uint8_t
23312_ACEOF
23313;;
23314 esac
23315
23316ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23317case $ac_cv_c_uint16_t in #(
23318 no|yes) ;; #(
23319 *)
23320
23321
23322cat >>confdefs.h <<_ACEOF
23323#define uint16_t $ac_cv_c_uint16_t
23324_ACEOF
23325;;
23326 esac
23327
23328ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23329case $ac_cv_c_uint32_t in #(
23330 no|yes) ;; #(
23331 *)
23332
23333$as_echo "#define _UINT32_T 1" >>confdefs.h
23334
23335
23336cat >>confdefs.h <<_ACEOF
23337#define uint32_t $ac_cv_c_uint32_t
23338_ACEOF
23339;;
23340 esac
23341
23342ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23343case $ac_cv_c_uint64_t in #(
23344 no|yes) ;; #(
23345 *)
23346
23347$as_echo "#define _UINT64_T 1" >>confdefs.h
23348
23349
23350cat >>confdefs.h <<_ACEOF
23351#define uint64_t $ac_cv_c_uint64_t
23352_ACEOF
23353;;
23354 esac
23355
23356
cristy501c8042011-05-26 17:46:28 +000023357
23358 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23359if test "x$ac_cv_type_uintmax_t" = xyes; then :
23360
23361$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23362
23363else
23364 test $ac_cv_type_unsigned_long_long_int = yes \
23365 && ac_type='unsigned long long int' \
23366 || ac_type='unsigned long int'
23367
23368cat >>confdefs.h <<_ACEOF
23369#define uintmax_t $ac_type
23370_ACEOF
23371
23372fi
23373
23374
23375
23376 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23377if test "x$ac_cv_type_uintptr_t" = xyes; then :
23378
23379$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23380
23381else
23382 for ac_type in 'unsigned int' 'unsigned long int' \
23383 'unsigned long long int'; do
23384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23385/* end confdefs.h. */
23386$ac_includes_default
23387int
23388main ()
23389{
23390static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023391test_array [0] = 0;
23392return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023393
23394 ;
23395 return 0;
23396}
23397_ACEOF
23398if ac_fn_c_try_compile "$LINENO"; then :
23399
23400cat >>confdefs.h <<_ACEOF
23401#define uintptr_t $ac_type
23402_ACEOF
23403
23404 ac_type=
23405fi
23406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23407 test -z "$ac_type" && break
23408 done
23409fi
23410
23411
23412
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23414$as_echo_n "checking for unsigned long long int... " >&6; }
23415if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23416 $as_echo_n "(cached) " >&6
23417else
cristy045228a2013-06-23 11:00:16 +000023418 ac_cv_type_unsigned_long_long_int=yes
23419 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023421/* end confdefs.h. */
23422
23423 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023424 implementations with broken preprocessors. Perhaps this can
23425 be revisited in 2012. In the meantime, code should not expect
23426 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023427 /* Test literals. */
23428 long long int ll = 9223372036854775807ll;
23429 long long int nll = -9223372036854775807LL;
23430 unsigned long long int ull = 18446744073709551615ULL;
23431 /* Test constant expressions. */
23432 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023433 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023434 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023435 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023436 int i = 63;
23437int
23438main ()
23439{
23440/* Test availability of runtime routines for shift and division. */
23441 long long int llmax = 9223372036854775807ll;
23442 unsigned long long int ullmax = 18446744073709551615ull;
23443 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023444 | (llmax / ll) | (llmax % ll)
23445 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23446 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023447 ;
23448 return 0;
23449}
23450
23451_ACEOF
23452if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023453
cristy501c8042011-05-26 17:46:28 +000023454else
23455 ac_cv_type_unsigned_long_long_int=no
23456fi
23457rm -f core conftest.err conftest.$ac_objext \
23458 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023459 fi
cristy501c8042011-05-26 17:46:28 +000023460fi
23461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23462$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23463 if test $ac_cv_type_unsigned_long_long_int = yes; then
23464
23465$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23466
23467 fi
23468
23469
cristyfec31822013-05-23 12:32:12 +000023470# Float_t and double_t are intended to be the the most efficient type.
23471ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23472"
23473if test "x$ac_cv_type_float_t" = xyes; then :
23474
23475cat >>confdefs.h <<_ACEOF
23476#define HAVE_FLOAT_T 1
23477_ACEOF
23478
23479
23480fi
23481
23482ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23483"
23484if test "x$ac_cv_type_double_t" = xyes; then :
23485
23486cat >>confdefs.h <<_ACEOF
23487#define HAVE_DOUBLE_T 1
23488_ACEOF
23489
23490
23491fi
23492
23493# The cast to long int works around a bug in the HP C Compiler
23494# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23495# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23496# This bug is HP SR number 8606223364.
23497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23498$as_echo_n "checking size of float_t... " >&6; }
23499if ${ac_cv_sizeof_float_t+:} false; then :
23500 $as_echo_n "(cached) " >&6
23501else
23502 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23503"; then :
23504
23505else
23506 if test "$ac_cv_type_float_t" = yes; then
23507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23509as_fn_error 77 "cannot compute sizeof (float_t)
23510See \`config.log' for more details" "$LINENO" 5; }
23511 else
23512 ac_cv_sizeof_float_t=0
23513 fi
23514fi
23515
23516fi
23517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23518$as_echo "$ac_cv_sizeof_float_t" >&6; }
23519
23520
23521
23522cat >>confdefs.h <<_ACEOF
23523#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23524_ACEOF
23525
23526
23527# The cast to long int works around a bug in the HP C Compiler
23528# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23529# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23530# This bug is HP SR number 8606223364.
23531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23532$as_echo_n "checking size of double_t... " >&6; }
23533if ${ac_cv_sizeof_double_t+:} false; then :
23534 $as_echo_n "(cached) " >&6
23535else
23536 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23537"; then :
23538
23539else
23540 if test "$ac_cv_type_double_t" = yes; then
23541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23543as_fn_error 77 "cannot compute sizeof (double_t)
23544See \`config.log' for more details" "$LINENO" 5; }
23545 else
23546 ac_cv_sizeof_double_t=0
23547 fi
23548fi
23549
23550fi
23551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23552$as_echo "$ac_cv_sizeof_double_t" >&6; }
23553
23554
23555
23556cat >>confdefs.h <<_ACEOF
23557#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23558_ACEOF
23559
23560
23561
cristy9b86f202012-11-28 21:55:35 +000023562# Get size of float, double and long double for comparaison.
23563# The cast to long int works around a bug in the HP C Compiler
23564# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23565# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23566# This bug is HP SR number 8606223364.
23567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23568$as_echo_n "checking size of float... " >&6; }
23569if ${ac_cv_sizeof_float+:} false; then :
23570 $as_echo_n "(cached) " >&6
23571else
23572 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23573
23574else
23575 if test "$ac_cv_type_float" = yes; then
23576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23578as_fn_error 77 "cannot compute sizeof (float)
23579See \`config.log' for more details" "$LINENO" 5; }
23580 else
23581 ac_cv_sizeof_float=0
23582 fi
23583fi
23584
23585fi
23586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23587$as_echo "$ac_cv_sizeof_float" >&6; }
23588
23589
23590
23591cat >>confdefs.h <<_ACEOF
23592#define SIZEOF_FLOAT $ac_cv_sizeof_float
23593_ACEOF
23594
23595
23596# The cast to long int works around a bug in the HP C Compiler
23597# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23598# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23599# This bug is HP SR number 8606223364.
23600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23601$as_echo_n "checking size of double... " >&6; }
23602if ${ac_cv_sizeof_double+:} false; then :
23603 $as_echo_n "(cached) " >&6
23604else
23605 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23606
23607else
23608 if test "$ac_cv_type_double" = yes; then
23609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23611as_fn_error 77 "cannot compute sizeof (double)
23612See \`config.log' for more details" "$LINENO" 5; }
23613 else
23614 ac_cv_sizeof_double=0
23615 fi
23616fi
23617
23618fi
23619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23620$as_echo "$ac_cv_sizeof_double" >&6; }
23621
23622
23623
23624cat >>confdefs.h <<_ACEOF
23625#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23626_ACEOF
23627
23628
cristyfec31822013-05-23 12:32:12 +000023629# The cast to long int works around a bug in the HP C Compiler
23630# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23631# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23632# This bug is HP SR number 8606223364.
23633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23634$as_echo_n "checking size of long double... " >&6; }
23635if ${ac_cv_sizeof_long_double+:} false; then :
23636 $as_echo_n "(cached) " >&6
23637else
23638 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23639
23640else
23641 if test "$ac_cv_type_long_double" = yes; then
23642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23644as_fn_error 77 "cannot compute sizeof (long double)
23645See \`config.log' for more details" "$LINENO" 5; }
23646 else
23647 ac_cv_sizeof_long_double=0
23648 fi
23649fi
23650
23651fi
23652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23653$as_echo "$ac_cv_sizeof_long_double" >&6; }
23654
23655
23656
23657cat >>confdefs.h <<_ACEOF
23658#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23659_ACEOF
23660
23661
cristyf0cf9a22012-10-24 12:05:01 +000023662
cristy3ed852e2009-09-05 21:47:34 +000023663# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23664# The cast to long int works around a bug in the HP C Compiler
23665# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23666# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23667# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023669$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023670if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023671 $as_echo_n "(cached) " >&6
23672else
cristy8b350f62009-11-15 23:12:43 +000023673 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 +000023674
cristy3ed852e2009-09-05 21:47:34 +000023675else
cristy8b350f62009-11-15 23:12:43 +000023676 if test "$ac_cv_type_signed_short" = yes; then
23677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023679as_fn_error 77 "cannot compute sizeof (signed short)
23680See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023681 else
23682 ac_cv_sizeof_signed_short=0
23683 fi
23684fi
cristy8b350f62009-11-15 23:12:43 +000023685
cristy3ed852e2009-09-05 21:47:34 +000023686fi
cristy8b350f62009-11-15 23:12:43 +000023687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023688$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23689
23690
23691
23692cat >>confdefs.h <<_ACEOF
23693#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23694_ACEOF
23695
23696
23697
23698# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23699# The cast to long int works around a bug in the HP C Compiler
23700# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23701# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23702# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023704$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023705if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023706 $as_echo_n "(cached) " >&6
23707else
cristy8b350f62009-11-15 23:12:43 +000023708 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 +000023709
cristy3ed852e2009-09-05 21:47:34 +000023710else
cristy8b350f62009-11-15 23:12:43 +000023711 if test "$ac_cv_type_unsigned_short" = yes; then
23712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023714as_fn_error 77 "cannot compute sizeof (unsigned short)
23715See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023716 else
23717 ac_cv_sizeof_unsigned_short=0
23718 fi
23719fi
cristy8b350f62009-11-15 23:12:43 +000023720
cristy3ed852e2009-09-05 21:47:34 +000023721fi
cristy8b350f62009-11-15 23:12:43 +000023722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023723$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23724
23725
23726
23727cat >>confdefs.h <<_ACEOF
23728#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23729_ACEOF
23730
23731
23732
23733# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23734# The cast to long int works around a bug in the HP C Compiler
23735# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23736# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23737# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023739$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023740if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023741 $as_echo_n "(cached) " >&6
23742else
cristy8b350f62009-11-15 23:12:43 +000023743 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 +000023744
cristy3ed852e2009-09-05 21:47:34 +000023745else
cristy8b350f62009-11-15 23:12:43 +000023746 if test "$ac_cv_type_signed_int" = yes; then
23747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023749as_fn_error 77 "cannot compute sizeof (signed int)
23750See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023751 else
23752 ac_cv_sizeof_signed_int=0
23753 fi
23754fi
cristy8b350f62009-11-15 23:12:43 +000023755
cristy3ed852e2009-09-05 21:47:34 +000023756fi
cristy8b350f62009-11-15 23:12:43 +000023757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023758$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23759
23760
23761
23762cat >>confdefs.h <<_ACEOF
23763#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23764_ACEOF
23765
23766
23767
23768# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23769# The cast to long int works around a bug in the HP C Compiler
23770# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23771# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23772# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023774$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023775if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023776 $as_echo_n "(cached) " >&6
23777else
cristy8b350f62009-11-15 23:12:43 +000023778 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 +000023779
cristy3ed852e2009-09-05 21:47:34 +000023780else
cristy8b350f62009-11-15 23:12:43 +000023781 if test "$ac_cv_type_unsigned_int" = yes; then
23782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023784as_fn_error 77 "cannot compute sizeof (unsigned int)
23785See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023786 else
23787 ac_cv_sizeof_unsigned_int=0
23788 fi
23789fi
cristy8b350f62009-11-15 23:12:43 +000023790
cristy3ed852e2009-09-05 21:47:34 +000023791fi
cristy8b350f62009-11-15 23:12:43 +000023792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023793$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23794
23795
23796
23797cat >>confdefs.h <<_ACEOF
23798#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23799_ACEOF
23800
23801
23802
23803# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23804# The cast to long int works around a bug in the HP C Compiler
23805# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23806# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23807# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023809$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023810if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023811 $as_echo_n "(cached) " >&6
23812else
cristy8b350f62009-11-15 23:12:43 +000023813 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 +000023814
cristy3ed852e2009-09-05 21:47:34 +000023815else
cristy8b350f62009-11-15 23:12:43 +000023816 if test "$ac_cv_type_signed_long" = yes; then
23817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023819as_fn_error 77 "cannot compute sizeof (signed long)
23820See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023821 else
23822 ac_cv_sizeof_signed_long=0
23823 fi
23824fi
cristy8b350f62009-11-15 23:12:43 +000023825
cristy3ed852e2009-09-05 21:47:34 +000023826fi
cristy8b350f62009-11-15 23:12:43 +000023827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023828$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23829
23830
23831
23832cat >>confdefs.h <<_ACEOF
23833#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23834_ACEOF
23835
23836
23837
23838# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23839# The cast to long int works around a bug in the HP C Compiler
23840# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23841# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23842# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023844$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023845if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023846 $as_echo_n "(cached) " >&6
23847else
cristy8b350f62009-11-15 23:12:43 +000023848 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 +000023849
cristy3ed852e2009-09-05 21:47:34 +000023850else
cristy8b350f62009-11-15 23:12:43 +000023851 if test "$ac_cv_type_unsigned_long" = yes; then
23852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023854as_fn_error 77 "cannot compute sizeof (unsigned long)
23855See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023856 else
23857 ac_cv_sizeof_unsigned_long=0
23858 fi
23859fi
cristy8b350f62009-11-15 23:12:43 +000023860
cristy3ed852e2009-09-05 21:47:34 +000023861fi
cristy8b350f62009-11-15 23:12:43 +000023862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023863$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23864
23865
23866
23867cat >>confdefs.h <<_ACEOF
23868#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23869_ACEOF
23870
23871
23872
23873# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23874# 'signed long long' is not supported then the value defined is zero.
23875# The cast to long int works around a bug in the HP C Compiler
23876# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23877# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23878# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023880$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023881if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023882 $as_echo_n "(cached) " >&6
23883else
cristy8b350f62009-11-15 23:12:43 +000023884 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 +000023885
cristy3ed852e2009-09-05 21:47:34 +000023886else
cristy8b350f62009-11-15 23:12:43 +000023887 if test "$ac_cv_type_signed_long_long" = yes; then
23888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023890as_fn_error 77 "cannot compute sizeof (signed long long)
23891See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023892 else
23893 ac_cv_sizeof_signed_long_long=0
23894 fi
23895fi
cristy8b350f62009-11-15 23:12:43 +000023896
cristy3ed852e2009-09-05 21:47:34 +000023897fi
cristy8b350f62009-11-15 23:12:43 +000023898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023899$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23900
23901
23902
23903cat >>confdefs.h <<_ACEOF
23904#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23905_ACEOF
23906
23907
23908
23909# Obtain size of a 'unsigned long long' and define as
23910# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23911# supported then the value defined is zero.
23912# The cast to long int works around a bug in the HP C Compiler
23913# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23914# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23915# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023917$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023918if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023919 $as_echo_n "(cached) " >&6
23920else
cristy8b350f62009-11-15 23:12:43 +000023921 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 +000023922
cristy3ed852e2009-09-05 21:47:34 +000023923else
cristy8b350f62009-11-15 23:12:43 +000023924 if test "$ac_cv_type_unsigned_long_long" = yes; then
23925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023927as_fn_error 77 "cannot compute sizeof (unsigned long long)
23928See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023929 else
23930 ac_cv_sizeof_unsigned_long_long=0
23931 fi
23932fi
cristy8b350f62009-11-15 23:12:43 +000023933
cristy3ed852e2009-09-05 21:47:34 +000023934fi
cristy8b350f62009-11-15 23:12:43 +000023935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023936$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23937
23938
23939
23940cat >>confdefs.h <<_ACEOF
23941#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23942_ACEOF
23943
23944
23945
cristyfec31822013-05-23 12:32:12 +000023946# Obtain size of off_t and define as SIZEOF_OFF_T
23947# The cast to long int works around a bug in the HP C Compiler
23948# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23949# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23950# This bug is HP SR number 8606223364.
23951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23952$as_echo_n "checking size of off_t... " >&6; }
23953if ${ac_cv_sizeof_off_t+:} false; then :
23954 $as_echo_n "(cached) " >&6
23955else
23956 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23957
23958else
23959 if test "$ac_cv_type_off_t" = yes; then
23960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23962as_fn_error 77 "cannot compute sizeof (off_t)
23963See \`config.log' for more details" "$LINENO" 5; }
23964 else
23965 ac_cv_sizeof_off_t=0
23966 fi
23967fi
23968
23969fi
23970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23971$as_echo "$ac_cv_sizeof_off_t" >&6; }
23972
23973
23974
23975cat >>confdefs.h <<_ACEOF
23976#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23977_ACEOF
23978
23979
23980
23981# Obtain size of size_t and define as SIZEOF_SIZE_T
23982# The cast to long int works around a bug in the HP C Compiler
23983# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23984# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23985# This bug is HP SR number 8606223364.
23986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23987$as_echo_n "checking size of size_t... " >&6; }
23988if ${ac_cv_sizeof_size_t+:} false; then :
23989 $as_echo_n "(cached) " >&6
23990else
23991 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23992
23993else
23994 if test "$ac_cv_type_size_t" = yes; then
23995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23997as_fn_error 77 "cannot compute sizeof (size_t)
23998See \`config.log' for more details" "$LINENO" 5; }
23999 else
24000 ac_cv_sizeof_size_t=0
24001 fi
24002fi
24003
24004fi
24005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24006$as_echo "$ac_cv_sizeof_size_t" >&6; }
24007
24008
24009
24010cat >>confdefs.h <<_ACEOF
24011#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24012_ACEOF
24013
24014
24015
24016# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24017# The cast to long int works around a bug in the HP C Compiler
24018# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24019# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24020# This bug is HP SR number 8606223364.
24021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24022$as_echo_n "checking size of ssize_t... " >&6; }
24023if ${ac_cv_sizeof_ssize_t+:} false; then :
24024 $as_echo_n "(cached) " >&6
24025else
24026 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24027
24028else
24029 if test "$ac_cv_type_ssize_t" = yes; then
24030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24032as_fn_error 77 "cannot compute sizeof (ssize_t)
24033See \`config.log' for more details" "$LINENO" 5; }
24034 else
24035 ac_cv_sizeof_ssize_t=0
24036 fi
24037fi
24038
24039fi
24040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24041$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24042
24043
24044
24045cat >>confdefs.h <<_ACEOF
24046#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24047_ACEOF
24048
24049
24050
cristy3ed852e2009-09-05 21:47:34 +000024051# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24052# The cast to long int works around a bug in the HP C Compiler
24053# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24054# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24055# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024057$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024058if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024059 $as_echo_n "(cached) " >&6
24060else
cristy8b350f62009-11-15 23:12:43 +000024061 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 +000024062
cristy3ed852e2009-09-05 21:47:34 +000024063else
cristy8b350f62009-11-15 23:12:43 +000024064 if test "$ac_cv_type_unsigned_intp" = yes; then
24065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024067as_fn_error 77 "cannot compute sizeof (unsigned int*)
24068See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024069 else
24070 ac_cv_sizeof_unsigned_intp=0
24071 fi
24072fi
cristy8b350f62009-11-15 23:12:43 +000024073
cristy3ed852e2009-09-05 21:47:34 +000024074fi
cristy8b350f62009-11-15 23:12:43 +000024075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024076$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24077
24078
24079
24080cat >>confdefs.h <<_ACEOF
24081#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24082_ACEOF
24083
24084
24085
24086#
24087# Compute sized types for current CPU and compiler options.
24088#
24089
cristy8b350f62009-11-15 23:12:43 +000024090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024091$as_echo_n "checking for signed 8-bit type... " >&6; }
24092INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24094$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024095
24096
cristy8b350f62009-11-15 23:12:43 +000024097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024098$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24099UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24101$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024102
24103
cristy8b350f62009-11-15 23:12:43 +000024104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024105$as_echo_n "checking for signed 16-bit type... " >&6; }
24106INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24108$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024109
24110
cristy8b350f62009-11-15 23:12:43 +000024111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024112$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24113UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24115$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024116
24117
cristy8b350f62009-11-15 23:12:43 +000024118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024119$as_echo_n "checking for signed 32-bit type... " >&6; }
24120INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024121INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024122if test $ac_cv_sizeof_signed_int -eq 4; then
24123 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024124 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024125elif test $ac_cv_sizeof_signed_long -eq 4; then
24126 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024127 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024128fi
cristyad38abe2012-12-23 23:03:21 +000024129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24130$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024131
24132
cristy6d5e20f2011-04-25 13:48:54 +000024133
cristy8b350f62009-11-15 23:12:43 +000024134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024135$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24136UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024137UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024138if test $ac_cv_sizeof_unsigned_int -eq 4; then
24139 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024140 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024141elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24142 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024143 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024144fi
cristyad38abe2012-12-23 23:03:21 +000024145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24146$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024147
24148
cristy6d5e20f2011-04-25 13:48:54 +000024149
cristy8b350f62009-11-15 23:12:43 +000024150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024151$as_echo_n "checking for signed 64-bit type... " >&6; }
24152INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024153INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024154if test $ac_cv_sizeof_signed_long -eq 8; then
24155 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024156 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024157elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24158 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024159 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024160fi
cristy3a99dcf2011-12-17 01:29:40 +000024161case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024162 mingw* )
24163 INT64_F='"I64"'
24164 ;;
24165esac
cristyad38abe2012-12-23 23:03:21 +000024166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24167$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024168
24169
cristy6d5e20f2011-04-25 13:48:54 +000024170
cristy8b350f62009-11-15 23:12:43 +000024171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024172$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24173UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024174UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024175if test $ac_cv_sizeof_unsigned_long -eq 8; then
24176 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024177 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024178elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24179 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024180 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024181fi
cristy3a99dcf2011-12-17 01:29:40 +000024182case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024183 mingw* )
24184 UINT64_F='"I64"'
24185 ;;
24186esac
cristyad38abe2012-12-23 23:03:21 +000024187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24188$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024189
24190
cristy6d5e20f2011-04-25 13:48:54 +000024191
cristy8b350f62009-11-15 23:12:43 +000024192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024193$as_echo_n "checking for unsigned maximum type... " >&6; }
24194UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024195UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024196if test "$UINT64_T" != 'none'; then
24197 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024198 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024199elif test "$UINT32_T" != 'none'; then
24200 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024201 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024202fi
cristyad38abe2012-12-23 23:03:21 +000024203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24204$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024205
24206
cristy6d5e20f2011-04-25 13:48:54 +000024207
cristy8b350f62009-11-15 23:12:43 +000024208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024209$as_echo_n "checking for pointer difference type... " >&6; }
24210UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024211UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024212if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24213 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024214 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024215elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24216 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024217 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024218fi
cristyad38abe2012-12-23 23:03:21 +000024219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24220$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024221
24222
cristy6d5e20f2011-04-25 13:48:54 +000024223
cristy8b350f62009-11-15 23:12:43 +000024224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024225$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024227/* end confdefs.h. */
24228
24229int
24230main ()
24231{
24232{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24233 ;
24234 return 0;
24235}
24236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024237if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24239$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024240else
cristyad38abe2012-12-23 23:03:21 +000024241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24242$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024244$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024246/* end confdefs.h. */
24247
24248int
24249main ()
24250{
24251{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24252 ;
24253 return 0;
24254}
24255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024256if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24258$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024259
cristy8b350f62009-11-15 23:12:43 +000024260$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024261
24262else
cristyad38abe2012-12-23 23:03:21 +000024263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24264$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024265
cristy8b350f62009-11-15 23:12:43 +000024266$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024267
24268fi
cristy3ed852e2009-09-05 21:47:34 +000024269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24270fi
cristy3ed852e2009-09-05 21:47:34 +000024271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24272
24273########
24274#
24275# Check for functions
24276#
24277########
cristy8b350f62009-11-15 23:12:43 +000024278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024279$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024280if ${ac_cv_func_closedir_void+:} 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_closedir_void=yes
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
24289#include <$ac_header_dirent>
24290#ifndef __cplusplus
24291int closedir ();
24292#endif
24293
24294int
24295main ()
24296{
24297return closedir (opendir (".")) != 0;
24298 ;
24299 return 0;
24300}
24301_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024302if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024303 ac_cv_func_closedir_void=no
24304else
cristy8b350f62009-11-15 23:12:43 +000024305 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024306fi
cristy8b350f62009-11-15 23:12:43 +000024307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24308 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024309fi
24310
cristy3ed852e2009-09-05 21:47:34 +000024311fi
cristy8b350f62009-11-15 23:12:43 +000024312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024313$as_echo "$ac_cv_func_closedir_void" >&6; }
24314if test $ac_cv_func_closedir_void = yes; then
24315
cristy8b350f62009-11-15 23:12:43 +000024316$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024317
24318fi
24319
cristycd4c5312009-11-22 01:19:08 +000024320
24321
24322
24323 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024324do :
24325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024326ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24327"
cristy98dddb52010-11-04 00:30:15 +000024328if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024329 cat >>confdefs.h <<_ACEOF
24330#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24331_ACEOF
24332
24333fi
24334
24335done
24336
cristycd4c5312009-11-22 01:19:08 +000024337
24338
24339
24340
24341
24342
24343
cristy3ed852e2009-09-05 21:47:34 +000024344for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024345do :
24346 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024347if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024348 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024349#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024350_ACEOF
24351
24352fi
24353done
24354
cristy8b350f62009-11-15 23:12:43 +000024355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024356$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024357if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024358 $as_echo_n "(cached) " >&6
24359else
cristy8b350f62009-11-15 23:12:43 +000024360 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024361 ac_cv_func_mmap_fixed_mapped=no
24362else
cristy8b350f62009-11-15 23:12:43 +000024363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024364/* end confdefs.h. */
24365$ac_includes_default
24366/* malloc might have been renamed as rpl_malloc. */
24367#undef malloc
24368
24369/* Thanks to Mike Haertel and Jim Avera for this test.
24370 Here is a matrix of mmap possibilities:
24371 mmap private not fixed
24372 mmap private fixed at somewhere currently unmapped
24373 mmap private fixed at somewhere already mapped
24374 mmap shared not fixed
24375 mmap shared fixed at somewhere currently unmapped
24376 mmap shared fixed at somewhere already mapped
24377 For private mappings, we should verify that changes cannot be read()
24378 back from the file, nor mmap's back from the file at a different
24379 address. (There have been systems where private was not correctly
24380 implemented like the infamous i386 svr4.0, and systems where the
24381 VM page cache was not coherent with the file system buffer cache
24382 like early versions of FreeBSD and possibly contemporary NetBSD.)
24383 For shared mappings, we should conversely verify that changes get
24384 propagated back to all the places they're supposed to be.
24385
24386 Grep wants private fixed already mapped.
24387 The main things grep needs to know about mmap are:
24388 * does it exist and is it safe to write into the mmap'd area
24389 * how to use it (BSD variants) */
24390
24391#include <fcntl.h>
24392#include <sys/mman.h>
24393
24394#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24395char *malloc ();
24396#endif
24397
24398/* This mess was copied from the GNU getpagesize.h. */
24399#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024400# ifdef _SC_PAGESIZE
24401# define getpagesize() sysconf(_SC_PAGESIZE)
24402# else /* no _SC_PAGESIZE */
24403# ifdef HAVE_SYS_PARAM_H
24404# include <sys/param.h>
24405# ifdef EXEC_PAGESIZE
24406# define getpagesize() EXEC_PAGESIZE
24407# else /* no EXEC_PAGESIZE */
24408# ifdef NBPG
24409# define getpagesize() NBPG * CLSIZE
24410# ifndef CLSIZE
24411# define CLSIZE 1
24412# endif /* no CLSIZE */
24413# else /* no NBPG */
24414# ifdef NBPC
24415# define getpagesize() NBPC
24416# else /* no NBPC */
24417# ifdef PAGESIZE
24418# define getpagesize() PAGESIZE
24419# endif /* PAGESIZE */
24420# endif /* no NBPC */
24421# endif /* no NBPG */
24422# endif /* no EXEC_PAGESIZE */
24423# else /* no HAVE_SYS_PARAM_H */
24424# define getpagesize() 8192 /* punt totally */
24425# endif /* no HAVE_SYS_PARAM_H */
24426# endif /* no _SC_PAGESIZE */
24427
24428#endif /* no HAVE_GETPAGESIZE */
24429
24430int
24431main ()
24432{
24433 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024434 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024435 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024436 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024437
24438 pagesize = getpagesize ();
24439
24440 /* First, make a file with some known garbage in it. */
24441 data = (char *) malloc (pagesize);
24442 if (!data)
24443 return 1;
24444 for (i = 0; i < pagesize; ++i)
24445 *(data + i) = rand ();
24446 umask (0);
24447 fd = creat ("conftest.mmap", 0600);
24448 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024449 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024450 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024451 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024452 close (fd);
24453
cristycd4c5312009-11-22 01:19:08 +000024454 /* Next, check that the tail of a page is zero-filled. File must have
24455 non-zero length, otherwise we risk SIGBUS for entire page. */
24456 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24457 if (fd2 < 0)
24458 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024459 cdata2 = "";
24460 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024461 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024462 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024463 if (data2 == MAP_FAILED)
24464 return 6;
24465 for (i = 0; i < pagesize; ++i)
24466 if (*(data2 + i))
24467 return 7;
24468 close (fd2);
24469 if (munmap (data2, pagesize))
24470 return 8;
24471
cristy3ed852e2009-09-05 21:47:34 +000024472 /* Next, try to mmap the file at a fixed address which already has
24473 something else allocated at it. If we can, also make sure that
24474 we see the same garbage. */
24475 fd = open ("conftest.mmap", O_RDWR);
24476 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024477 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024478 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24479 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024480 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024481 for (i = 0; i < pagesize; ++i)
24482 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024483 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024484
24485 /* Finally, make sure that changes to the mapped area do not
24486 percolate back to the file as seen by read(). (This is a bug on
24487 some variants of i386 svr4.0.) */
24488 for (i = 0; i < pagesize; ++i)
24489 *(data2 + i) = *(data2 + i) + 1;
24490 data3 = (char *) malloc (pagesize);
24491 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024492 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024493 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024494 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024495 for (i = 0; i < pagesize; ++i)
24496 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024497 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024498 close (fd);
24499 return 0;
24500}
24501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024502if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024503 ac_cv_func_mmap_fixed_mapped=yes
24504else
cristy8b350f62009-11-15 23:12:43 +000024505 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024506fi
cristy8b350f62009-11-15 23:12:43 +000024507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24508 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024509fi
24510
cristy3ed852e2009-09-05 21:47:34 +000024511fi
cristy8b350f62009-11-15 23:12:43 +000024512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024513$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24514if test $ac_cv_func_mmap_fixed_mapped = yes; then
24515
cristy8b350f62009-11-15 23:12:43 +000024516$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024517
24518fi
cristycd4c5312009-11-22 01:19:08 +000024519rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024520
cristy3ed852e2009-09-05 21:47:34 +000024521for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024522do :
24523 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024524if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024525 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024526#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024527_ACEOF
24528
24529fi
24530
24531done
24532
cristy3ed852e2009-09-05 21:47:34 +000024533for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024534do :
24535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24536ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024537if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024538 cat >>confdefs.h <<_ACEOF
24539#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24540_ACEOF
24541
24542fi
24543done
24544
24545if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024547$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024548if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024549 $as_echo_n "(cached) " >&6
24550else
cristy8b350f62009-11-15 23:12:43 +000024551 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024552 ac_cv_func_fork_works=cross
24553else
cristy8b350f62009-11-15 23:12:43 +000024554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024555/* end confdefs.h. */
24556$ac_includes_default
24557int
24558main ()
24559{
24560
24561 /* By Ruediger Kuhlmann. */
24562 return fork () < 0;
24563
24564 ;
24565 return 0;
24566}
24567_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024568if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024569 ac_cv_func_fork_works=yes
24570else
cristy8b350f62009-11-15 23:12:43 +000024571 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024572fi
cristy8b350f62009-11-15 23:12:43 +000024573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24574 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024575fi
24576
cristy3ed852e2009-09-05 21:47:34 +000024577fi
cristy8b350f62009-11-15 23:12:43 +000024578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024579$as_echo "$ac_cv_func_fork_works" >&6; }
24580
24581else
24582 ac_cv_func_fork_works=$ac_cv_func_fork
24583fi
24584if test "x$ac_cv_func_fork_works" = xcross; then
24585 case $host in
24586 *-*-amigaos* | *-*-msdosdjgpp*)
24587 # Override, as these systems have only a dummy fork() stub
24588 ac_cv_func_fork_works=no
24589 ;;
24590 *)
24591 ac_cv_func_fork_works=yes
24592 ;;
24593 esac
cristy8b350f62009-11-15 23:12:43 +000024594 { $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 +000024595$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24596fi
24597ac_cv_func_vfork_works=$ac_cv_func_vfork
24598if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024600$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024601if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024602 $as_echo_n "(cached) " >&6
24603else
cristy8b350f62009-11-15 23:12:43 +000024604 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024605 ac_cv_func_vfork_works=cross
24606else
cristy8b350f62009-11-15 23:12:43 +000024607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024608/* end confdefs.h. */
24609/* Thanks to Paul Eggert for this test. */
24610$ac_includes_default
24611#include <sys/wait.h>
24612#ifdef HAVE_VFORK_H
24613# include <vfork.h>
24614#endif
24615/* On some sparc systems, changes by the child to local and incoming
24616 argument registers are propagated back to the parent. The compiler
24617 is told about this with #include <vfork.h>, but some compilers
24618 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24619 static variable whose address is put into a register that is
24620 clobbered by the vfork. */
24621static void
24622#ifdef __cplusplus
24623sparc_address_test (int arg)
24624# else
24625sparc_address_test (arg) int arg;
24626#endif
24627{
24628 static pid_t child;
24629 if (!child) {
24630 child = vfork ();
24631 if (child < 0) {
24632 perror ("vfork");
24633 _exit(2);
24634 }
24635 if (!child) {
24636 arg = getpid();
24637 write(-1, "", 0);
24638 _exit (arg);
24639 }
24640 }
24641}
24642
24643int
24644main ()
24645{
24646 pid_t parent = getpid ();
24647 pid_t child;
24648
24649 sparc_address_test (0);
24650
24651 child = vfork ();
24652
24653 if (child == 0) {
24654 /* Here is another test for sparc vfork register problems. This
24655 test uses lots of local variables, at least as many local
24656 variables as main has allocated so far including compiler
24657 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24658 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24659 reuse the register of parent for one of the local variables,
24660 since it will think that parent can't possibly be used any more
24661 in this routine. Assigning to the local variable will thus
24662 munge parent in the parent process. */
24663 pid_t
24664 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24665 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24666 /* Convince the compiler that p..p7 are live; otherwise, it might
24667 use the same hardware register for all 8 local variables. */
24668 if (p != p1 || p != p2 || p != p3 || p != p4
24669 || p != p5 || p != p6 || p != p7)
24670 _exit(1);
24671
24672 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24673 from child file descriptors. If the child closes a descriptor
24674 before it execs or exits, this munges the parent's descriptor
24675 as well. Test for this by closing stdout in the child. */
24676 _exit(close(fileno(stdout)) != 0);
24677 } else {
24678 int status;
24679 struct stat st;
24680
24681 while (wait(&status) != child)
24682 ;
24683 return (
24684 /* Was there some problem with vforking? */
24685 child < 0
24686
24687 /* Did the child fail? (This shouldn't happen.) */
24688 || status
24689
24690 /* Did the vfork/compiler bug occur? */
24691 || parent != getpid()
24692
24693 /* Did the file descriptor bug occur? */
24694 || fstat(fileno(stdout), &st) != 0
24695 );
24696 }
24697}
24698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024699if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024700 ac_cv_func_vfork_works=yes
24701else
cristy8b350f62009-11-15 23:12:43 +000024702 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024703fi
cristy8b350f62009-11-15 23:12:43 +000024704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24705 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024706fi
24707
cristy3ed852e2009-09-05 21:47:34 +000024708fi
cristy8b350f62009-11-15 23:12:43 +000024709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024710$as_echo "$ac_cv_func_vfork_works" >&6; }
24711
24712fi;
24713if test "x$ac_cv_func_fork_works" = xcross; then
24714 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024715 { $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 +000024716$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24717fi
24718
24719if test "x$ac_cv_func_vfork_works" = xyes; then
24720
cristy8b350f62009-11-15 23:12:43 +000024721$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024722
24723else
24724
cristy8b350f62009-11-15 23:12:43 +000024725$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024726
24727fi
24728if test "x$ac_cv_func_fork_works" = xyes; then
24729
cristy8b350f62009-11-15 23:12:43 +000024730$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024731
24732fi
24733
cristy8b350f62009-11-15 23:12:43 +000024734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024735$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024736if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024737 $as_echo_n "(cached) " >&6
24738else
cristy8b350f62009-11-15 23:12:43 +000024739 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024740 ac_cv_func_memcmp_working=no
24741else
cristy8b350f62009-11-15 23:12:43 +000024742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024743/* end confdefs.h. */
24744$ac_includes_default
24745int
24746main ()
24747{
24748
24749 /* Some versions of memcmp are not 8-bit clean. */
24750 char c0 = '\100', c1 = '\200', c2 = '\201';
24751 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24752 return 1;
24753
24754 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24755 or more and with at least one buffer not starting on a 4-byte boundary.
24756 William Lewis provided this test program. */
24757 {
24758 char foo[21];
24759 char bar[21];
24760 int i;
24761 for (i = 0; i < 4; i++)
24762 {
24763 char *a = foo + i;
24764 char *b = bar + i;
24765 strcpy (a, "--------01111111");
24766 strcpy (b, "--------10000000");
24767 if (memcmp (a, b, 16) >= 0)
24768 return 1;
24769 }
24770 return 0;
24771 }
24772
24773 ;
24774 return 0;
24775}
24776_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024777if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024778 ac_cv_func_memcmp_working=yes
24779else
cristy8b350f62009-11-15 23:12:43 +000024780 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024781fi
cristy8b350f62009-11-15 23:12:43 +000024782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24783 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024784fi
24785
cristy3ed852e2009-09-05 21:47:34 +000024786fi
cristy8b350f62009-11-15 23:12:43 +000024787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024788$as_echo "$ac_cv_func_memcmp_working" >&6; }
24789test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24790 *" memcmp.$ac_objext "* ) ;;
24791 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24792 ;;
24793esac
24794
24795
cristy3ed852e2009-09-05 21:47:34 +000024796for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024797do :
24798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24799ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024800if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024801 cat >>confdefs.h <<_ACEOF
24802#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24803_ACEOF
24804
24805fi
24806
24807done
24808
cristy8b350f62009-11-15 23:12:43 +000024809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024810$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024811if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024812 $as_echo_n "(cached) " >&6
24813else
24814 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24815 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24816 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024818/* end confdefs.h. */
24819$ac_includes_default
24820#ifdef HAVE_SYS_SELECT_H
24821# include <sys/select.h>
24822#endif
24823#ifdef HAVE_SYS_SOCKET_H
24824# include <sys/socket.h>
24825#endif
24826
24827int
24828main ()
24829{
24830extern int select ($ac_arg1,
24831 $ac_arg234, $ac_arg234, $ac_arg234,
24832 $ac_arg5);
24833 ;
24834 return 0;
24835}
24836_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024837if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024838 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024839fi
cristy3ed852e2009-09-05 21:47:34 +000024840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24841 done
24842 done
24843done
24844# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024845: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024846
24847fi
cristy8b350f62009-11-15 23:12:43 +000024848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024849$as_echo "$ac_cv_func_select_args" >&6; }
24850ac_save_IFS=$IFS; IFS=','
24851set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24852IFS=$ac_save_IFS
24853shift
24854
24855cat >>confdefs.h <<_ACEOF
24856#define SELECT_TYPE_ARG1 $1
24857_ACEOF
24858
24859
24860cat >>confdefs.h <<_ACEOF
24861#define SELECT_TYPE_ARG234 ($2)
24862_ACEOF
24863
24864
24865cat >>confdefs.h <<_ACEOF
24866#define SELECT_TYPE_ARG5 ($3)
24867_ACEOF
24868
24869rm -f conftest*
24870
cristyda16f162011-02-19 23:52:17 +000024871if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024872 $as_echo_n "(cached) " >&6
24873else
24874 ac_cv_func_setvbuf_reversed=no
24875fi
24876
24877
cristy8b350f62009-11-15 23:12:43 +000024878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024879$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024880if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024881 $as_echo_n "(cached) " >&6
24882else
cristy8b350f62009-11-15 23:12:43 +000024883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024884/* end confdefs.h. */
24885#include <sys/types.h>
24886#include <signal.h>
24887
24888int
24889main ()
24890{
24891return *(signal (0, 0)) (0) == 1;
24892 ;
24893 return 0;
24894}
24895_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024896if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024897 ac_cv_type_signal=int
24898else
cristy8b350f62009-11-15 23:12:43 +000024899 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024900fi
cristy3ed852e2009-09-05 21:47:34 +000024901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24902fi
cristy8b350f62009-11-15 23:12:43 +000024903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024904$as_echo "$ac_cv_type_signal" >&6; }
24905
24906cat >>confdefs.h <<_ACEOF
24907#define RETSIGTYPE $ac_cv_type_signal
24908_ACEOF
24909
24910
cristy8b350f62009-11-15 23:12:43 +000024911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024912$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024913if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024914 $as_echo_n "(cached) " >&6
24915else
cristy8b350f62009-11-15 23:12:43 +000024916 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024917 ac_cv_func_strtod=no
24918else
cristy8b350f62009-11-15 23:12:43 +000024919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024920/* end confdefs.h. */
24921
24922$ac_includes_default
24923#ifndef strtod
24924double strtod ();
24925#endif
24926int
24927main()
24928{
24929 {
24930 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24931 char *string = " +69";
24932 char *term;
24933 double value;
24934 value = strtod (string, &term);
24935 if (value != 69 || term != (string + 4))
24936 return 1;
24937 }
24938
24939 {
24940 /* Under Solaris 2.4, strtod returns the wrong value for the
24941 terminating character under some conditions. */
24942 char *string = "NaN";
24943 char *term;
24944 strtod (string, &term);
24945 if (term != string && *(term - 1) == 0)
24946 return 1;
24947 }
24948 return 0;
24949}
24950
24951_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024952if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024953 ac_cv_func_strtod=yes
24954else
cristy8b350f62009-11-15 23:12:43 +000024955 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024956fi
cristy8b350f62009-11-15 23:12:43 +000024957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24958 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024959fi
24960
cristy3ed852e2009-09-05 21:47:34 +000024961fi
cristy8b350f62009-11-15 23:12:43 +000024962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024963$as_echo "$ac_cv_func_strtod" >&6; }
24964if test $ac_cv_func_strtod = no; then
24965 case " $LIBOBJS " in
24966 *" strtod.$ac_objext "* ) ;;
24967 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24968 ;;
24969esac
24970
cristy8b350f62009-11-15 23:12:43 +000024971ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024972if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024973
cristy3ed852e2009-09-05 21:47:34 +000024974fi
24975
cristy3ed852e2009-09-05 21:47:34 +000024976if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024978$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024979if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024980 $as_echo_n "(cached) " >&6
24981else
24982 ac_check_lib_save_LIBS=$LIBS
24983LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024985/* end confdefs.h. */
24986
24987/* Override any GCC internal prototype to avoid an error.
24988 Use char because int might match the return type of a GCC
24989 builtin and then its argument prototype would still apply. */
24990#ifdef __cplusplus
24991extern "C"
24992#endif
24993char pow ();
24994int
24995main ()
24996{
24997return pow ();
24998 ;
24999 return 0;
25000}
25001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025002if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025003 ac_cv_lib_m_pow=yes
25004else
cristy8b350f62009-11-15 23:12:43 +000025005 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025006fi
cristy8b350f62009-11-15 23:12:43 +000025007rm -f core conftest.err conftest.$ac_objext \
25008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025009LIBS=$ac_check_lib_save_LIBS
25010fi
cristy8b350f62009-11-15 23:12:43 +000025011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025012$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025013if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025014 POW_LIB=-lm
25015else
cristy8b350f62009-11-15 23:12:43 +000025016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025017$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25018fi
25019
25020fi
25021
25022fi
25023
cristy7d4a1d62011-10-13 15:54:12 +000025024ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25025if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25026 ac_have_decl=1
25027else
25028 ac_have_decl=0
25029fi
25030
25031cat >>confdefs.h <<_ACEOF
25032#define HAVE_DECL_STRERROR_R $ac_have_decl
25033_ACEOF
25034
25035for ac_func in strerror_r
25036do :
25037 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25038if test "x$ac_cv_func_strerror_r" = xyes; then :
25039 cat >>confdefs.h <<_ACEOF
25040#define HAVE_STRERROR_R 1
25041_ACEOF
25042
25043fi
25044done
25045
25046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25047$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25048if ${ac_cv_func_strerror_r_char_p+:} false; then :
25049 $as_echo_n "(cached) " >&6
25050else
25051
25052 ac_cv_func_strerror_r_char_p=no
25053 if test $ac_cv_have_decl_strerror_r = yes; then
25054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25055/* end confdefs.h. */
25056$ac_includes_default
25057int
25058main ()
25059{
25060
25061 char buf[100];
25062 char x = *strerror_r (0, buf, sizeof buf);
25063 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025064 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025065
25066 ;
25067 return 0;
25068}
25069_ACEOF
25070if ac_fn_c_try_compile "$LINENO"; then :
25071 ac_cv_func_strerror_r_char_p=yes
25072fi
25073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25074 else
25075 # strerror_r is not declared. Choose between
25076 # systems that have relatively inaccessible declarations for the
25077 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25078 # former has a strerror_r that returns char*, while the latter
25079 # has a strerror_r that returns `int'.
25080 # This test should segfault on the DEC system.
25081 if test "$cross_compiling" = yes; then :
25082 :
25083else
25084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25085/* end confdefs.h. */
25086$ac_includes_default
25087 extern char *strerror_r ();
25088int
25089main ()
25090{
25091char buf[100];
25092 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025093 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025094 ;
25095 return 0;
25096}
25097_ACEOF
25098if ac_fn_c_try_run "$LINENO"; then :
25099 ac_cv_func_strerror_r_char_p=yes
25100fi
25101rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25102 conftest.$ac_objext conftest.beam conftest.$ac_ext
25103fi
25104
25105 fi
25106
25107fi
25108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25109$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25110if test $ac_cv_func_strerror_r_char_p = yes; then
25111
25112$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25113
25114fi
25115
cristy3ed852e2009-09-05 21:47:34 +000025116for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025117do :
25118 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025119if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025120 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025121#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025122_ACEOF
25123
cristy8b350f62009-11-15 23:12:43 +000025124ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025125if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025126
cristy8b350f62009-11-15 23:12:43 +000025127$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025128
25129fi
25130
25131fi
25132done
25133
25134
25135
cristy161b9262010-03-20 19:34:32 +000025136#
25137# Find math library
25138#
25139MATH_LIBS=''
25140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25141$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025142if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025143 $as_echo_n "(cached) " >&6
25144else
25145 ac_check_lib_save_LIBS=$LIBS
25146LIBS="-lm $LIBS"
25147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25148/* end confdefs.h. */
25149
25150/* Override any GCC internal prototype to avoid an error.
25151 Use char because int might match the return type of a GCC
25152 builtin and then its argument prototype would still apply. */
25153#ifdef __cplusplus
25154extern "C"
25155#endif
25156char sqrt ();
25157int
25158main ()
25159{
25160return sqrt ();
25161 ;
25162 return 0;
25163}
25164_ACEOF
25165if ac_fn_c_try_link "$LINENO"; then :
25166 ac_cv_lib_m_sqrt=yes
25167else
25168 ac_cv_lib_m_sqrt=no
25169fi
25170rm -f core conftest.err conftest.$ac_objext \
25171 conftest$ac_exeext conftest.$ac_ext
25172LIBS=$ac_check_lib_save_LIBS
25173fi
25174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25175$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025176if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025177 MATH_LIBS="-lm"
25178fi
25179
25180LIBS="$MATH_LIBS $LIBS"
25181
25182
cristy85572162013-01-04 19:19:32 +000025183#
25184# Find socket library
25185#
cristy8a5d7f42013-01-06 15:24:33 +000025186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25187$as_echo_n "checking for library containing gethostbyname... " >&6; }
25188if ${ac_cv_search_gethostbyname+:} false; then :
25189 $as_echo_n "(cached) " >&6
25190else
25191 ac_func_search_save_LIBS=$LIBS
25192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25193/* end confdefs.h. */
25194
25195/* Override any GCC internal prototype to avoid an error.
25196 Use char because int might match the return type of a GCC
25197 builtin and then its argument prototype would still apply. */
25198#ifdef __cplusplus
25199extern "C"
25200#endif
25201char gethostbyname ();
25202int
25203main ()
25204{
25205return gethostbyname ();
25206 ;
25207 return 0;
25208}
25209_ACEOF
25210for ac_lib in '' resolv nsl; do
25211 if test -z "$ac_lib"; then
25212 ac_res="none required"
25213 else
25214 ac_res=-l$ac_lib
25215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25216 fi
25217 if ac_fn_c_try_link "$LINENO"; then :
25218 ac_cv_search_gethostbyname=$ac_res
25219fi
25220rm -f core conftest.err conftest.$ac_objext \
25221 conftest$ac_exeext
25222 if ${ac_cv_search_gethostbyname+:} false; then :
25223 break
25224fi
25225done
25226if ${ac_cv_search_gethostbyname+:} false; then :
25227
25228else
25229 ac_cv_search_gethostbyname=no
25230fi
25231rm conftest.$ac_ext
25232LIBS=$ac_func_search_save_LIBS
25233fi
25234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25235$as_echo "$ac_cv_search_gethostbyname" >&6; }
25236ac_res=$ac_cv_search_gethostbyname
25237if test "$ac_res" != no; then :
25238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25239
25240fi
25241
cristy85572162013-01-04 19:19:32 +000025242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25243$as_echo_n "checking for library containing socket... " >&6; }
25244if ${ac_cv_search_socket+:} false; then :
25245 $as_echo_n "(cached) " >&6
25246else
25247 ac_func_search_save_LIBS=$LIBS
25248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25249/* end confdefs.h. */
25250
25251/* Override any GCC internal prototype to avoid an error.
25252 Use char because int might match the return type of a GCC
25253 builtin and then its argument prototype would still apply. */
25254#ifdef __cplusplus
25255extern "C"
25256#endif
25257char socket ();
25258int
25259main ()
25260{
25261return socket ();
25262 ;
25263 return 0;
25264}
25265_ACEOF
25266for ac_lib in '' socket; do
25267 if test -z "$ac_lib"; then
25268 ac_res="none required"
25269 else
25270 ac_res=-l$ac_lib
25271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25272 fi
25273 if ac_fn_c_try_link "$LINENO"; then :
25274 ac_cv_search_socket=$ac_res
25275fi
25276rm -f core conftest.err conftest.$ac_objext \
25277 conftest$ac_exeext
25278 if ${ac_cv_search_socket+:} false; then :
25279 break
25280fi
25281done
25282if ${ac_cv_search_socket+:} false; then :
25283
25284else
25285 ac_cv_search_socket=no
25286fi
25287rm conftest.$ac_ext
25288LIBS=$ac_func_search_save_LIBS
25289fi
25290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25291$as_echo "$ac_cv_search_socket" >&6; }
25292ac_res=$ac_cv_search_socket
25293if test "$ac_res" != no; then :
25294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25295
cristy85572162013-01-04 19:19:32 +000025296
cristy8a5d7f42013-01-06 15:24:33 +000025297$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025298
cristy03f187e2013-01-24 00:22:19 +000025299 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025300
25301fi
25302
25303
25304for 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 +000025305do :
25306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25307ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025308if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025309 cat >>confdefs.h <<_ACEOF
25310#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25311_ACEOF
25312
25313fi
25314done
25315
25316
cristye43a45e2009-09-28 14:49:00 +000025317#
25318# Check for clock_gettime().
25319#
cristy8b350f62009-11-15 23:12:43 +000025320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025321$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025322if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025323 $as_echo_n "(cached) " >&6
25324else
25325 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025327/* end confdefs.h. */
25328
25329/* Override any GCC internal prototype to avoid an error.
25330 Use char because int might match the return type of a GCC
25331 builtin and then its argument prototype would still apply. */
25332#ifdef __cplusplus
25333extern "C"
25334#endif
25335char clock_gettime ();
25336int
25337main ()
25338{
25339return clock_gettime ();
25340 ;
25341 return 0;
25342}
25343_ACEOF
25344for ac_lib in '' rt; do
25345 if test -z "$ac_lib"; then
25346 ac_res="none required"
25347 else
25348 ac_res=-l$ac_lib
25349 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25350 fi
cristy8b350f62009-11-15 23:12:43 +000025351 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025352 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025353fi
cristy8b350f62009-11-15 23:12:43 +000025354rm -f core conftest.err conftest.$ac_objext \
25355 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025356 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025357 break
25358fi
25359done
cristyda16f162011-02-19 23:52:17 +000025360if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025361
cristye43a45e2009-09-28 14:49:00 +000025362else
25363 ac_cv_search_clock_gettime=no
25364fi
25365rm conftest.$ac_ext
25366LIBS=$ac_func_search_save_LIBS
25367fi
cristy8b350f62009-11-15 23:12:43 +000025368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025369$as_echo "$ac_cv_search_clock_gettime" >&6; }
25370ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025371if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25373
25374
cristy8b350f62009-11-15 23:12:43 +000025375$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025376
cristy8b350f62009-11-15 23:12:43 +000025377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025378$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025380/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025381
25382 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025383int
25384main ()
25385{
25386clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025387 ;
25388 return 0;
25389}
25390_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025391if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025392
cristyad38abe2012-12-23 23:03:21 +000025393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25394$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025395
cristy8b350f62009-11-15 23:12:43 +000025396$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025397
25398
25399else
cristyad38abe2012-12-23 23:03:21 +000025400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25401$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025402
25403fi
cristye43a45e2009-09-28 14:49:00 +000025404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25405
25406else
25407
cristy8b350f62009-11-15 23:12:43 +000025408 for ac_func in gettimeofday ftime
25409do :
25410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25411ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025412if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025413 cat >>confdefs.h <<_ACEOF
25414#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25415_ACEOF
25416 break
25417fi
25418done
25419
25420
25421
25422fi
25423
25424
cristy3ed852e2009-09-05 21:47:34 +000025425########
25426#
25427# Check for function prototypes
25428#
25429########
25430
cristy8b350f62009-11-15 23:12:43 +000025431ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025432#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025433"
cristyda16f162011-02-19 23:52:17 +000025434if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025435 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025436else
cristy8b350f62009-11-15 23:12:43 +000025437 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025438fi
25439
cristy3ed852e2009-09-05 21:47:34 +000025440cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025441#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025442_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025443ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025444#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025445"
cristyda16f162011-02-19 23:52:17 +000025446if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025447 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025448else
cristy8b350f62009-11-15 23:12:43 +000025449 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025450fi
25451
cristy3ed852e2009-09-05 21:47:34 +000025452cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025453#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025454_ACEOF
25455
25456
cristy8b350f62009-11-15 23:12:43 +000025457ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025458#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025459"
cristyda16f162011-02-19 23:52:17 +000025460if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025461 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025462else
cristy8b350f62009-11-15 23:12:43 +000025463 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025464fi
25465
cristy3ed852e2009-09-05 21:47:34 +000025466cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025467#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025468_ACEOF
25469
25470
cristy8b350f62009-11-15 23:12:43 +000025471ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025472#include <stdio.h>
25473#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025474"
cristyda16f162011-02-19 23:52:17 +000025475if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025476 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025477else
cristy8b350f62009-11-15 23:12:43 +000025478 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025479fi
25480
cristy3ed852e2009-09-05 21:47:34 +000025481cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025482#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025483_ACEOF
25484
25485
cristy3ed852e2009-09-05 21:47:34 +000025486########
25487#
25488# C++ Support Tests (For Magick++)
25489#
25490########
25491have_magick_plus_plus='no'
25492if test "$with_magick_plus_plus" = 'yes'; then
25493 OLIBS="$LIBS"
25494 LIBS=''
25495 ac_ext=cpp
25496ac_cpp='$CXXCPP $CPPFLAGS'
25497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25500
25501
25502 # Full set of headers used...
25503 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25504 # functional iomanip iosfwd iostream iterator list string strstream utility
25505 ac_ext=cpp
25506ac_cpp='$CXXCPP $CPPFLAGS'
25507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25510
25511 ac_ext=cpp
25512ac_cpp='$CXXCPP $CPPFLAGS'
25513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25516if test -z "$CXX"; then
25517 if test -n "$CCC"; then
25518 CXX=$CCC
25519 else
25520 if test -n "$ac_tool_prefix"; then
25521 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25522 do
25523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25524set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025526$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025527if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025528 $as_echo_n "(cached) " >&6
25529else
25530 if test -n "$CXX"; then
25531 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25532else
25533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25534for as_dir in $PATH
25535do
25536 IFS=$as_save_IFS
25537 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025538 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025540 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025542 break 2
25543 fi
25544done
cristy8b350f62009-11-15 23:12:43 +000025545 done
cristy3ed852e2009-09-05 21:47:34 +000025546IFS=$as_save_IFS
25547
25548fi
25549fi
25550CXX=$ac_cv_prog_CXX
25551if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025553$as_echo "$CXX" >&6; }
25554else
cristy8b350f62009-11-15 23:12:43 +000025555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025556$as_echo "no" >&6; }
25557fi
25558
25559
25560 test -n "$CXX" && break
25561 done
25562fi
25563if test -z "$CXX"; then
25564 ac_ct_CXX=$CXX
25565 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25566do
25567 # Extract the first word of "$ac_prog", so it can be a program name with args.
25568set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025570$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025571if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025572 $as_echo_n "(cached) " >&6
25573else
25574 if test -n "$ac_ct_CXX"; then
25575 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25576else
25577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25578for as_dir in $PATH
25579do
25580 IFS=$as_save_IFS
25581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025584 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025586 break 2
25587 fi
25588done
cristy8b350f62009-11-15 23:12:43 +000025589 done
cristy3ed852e2009-09-05 21:47:34 +000025590IFS=$as_save_IFS
25591
25592fi
25593fi
25594ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25595if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025597$as_echo "$ac_ct_CXX" >&6; }
25598else
cristy8b350f62009-11-15 23:12:43 +000025599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025600$as_echo "no" >&6; }
25601fi
25602
25603
25604 test -n "$ac_ct_CXX" && break
25605done
25606
25607 if test "x$ac_ct_CXX" = x; then
25608 CXX="g++"
25609 else
25610 case $cross_compiling:$ac_tool_warned in
25611yes:)
cristy8b350f62009-11-15 23:12:43 +000025612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25614ac_tool_warned=yes ;;
25615esac
25616 CXX=$ac_ct_CXX
25617 fi
25618fi
25619
25620 fi
25621fi
25622# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025623$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025624set X $ac_compile
25625ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025626for ac_option in --version -v -V -qversion; do
25627 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025628case "(($ac_try" in
25629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25630 *) ac_try_echo=$ac_try;;
25631esac
cristy8b350f62009-11-15 23:12:43 +000025632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25633$as_echo "$ac_try_echo"; } >&5
25634 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025635 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025636 if test -s conftest.err; then
25637 sed '10a\
25638... rest of stderr output deleted ...
25639 10q' conftest.err >conftest.er1
25640 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025641 fi
cristycd4c5312009-11-22 01:19:08 +000025642 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25644 test $ac_status = 0; }
25645done
cristy3ed852e2009-09-05 21:47:34 +000025646
cristy8b350f62009-11-15 23:12:43 +000025647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025648$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025649if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025650 $as_echo_n "(cached) " >&6
25651else
cristy8b350f62009-11-15 23:12:43 +000025652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025653/* end confdefs.h. */
25654
25655int
25656main ()
25657{
25658#ifndef __GNUC__
25659 choke me
25660#endif
25661
25662 ;
25663 return 0;
25664}
25665_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025666if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025667 ac_compiler_gnu=yes
25668else
cristy8b350f62009-11-15 23:12:43 +000025669 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025670fi
cristy3ed852e2009-09-05 21:47:34 +000025671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25672ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25673
25674fi
cristy8b350f62009-11-15 23:12:43 +000025675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025676$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25677if test $ac_compiler_gnu = yes; then
25678 GXX=yes
25679else
25680 GXX=
25681fi
25682ac_test_CXXFLAGS=${CXXFLAGS+set}
25683ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025685$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025686if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025687 $as_echo_n "(cached) " >&6
25688else
25689 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25690 ac_cxx_werror_flag=yes
25691 ac_cv_prog_cxx_g=no
25692 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025694/* end confdefs.h. */
25695
25696int
25697main ()
25698{
25699
25700 ;
25701 return 0;
25702}
25703_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025704if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025705 ac_cv_prog_cxx_g=yes
25706else
cristy8b350f62009-11-15 23:12:43 +000025707 CXXFLAGS=""
25708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025709/* end confdefs.h. */
25710
25711int
25712main ()
25713{
25714
25715 ;
25716 return 0;
25717}
25718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025719if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025720
cristy8b350f62009-11-15 23:12:43 +000025721else
25722 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025723 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025725/* end confdefs.h. */
25726
25727int
25728main ()
25729{
25730
25731 ;
25732 return 0;
25733}
25734_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025735if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025736 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025737fi
cristy3ed852e2009-09-05 21:47:34 +000025738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25739fi
cristy3ed852e2009-09-05 21:47:34 +000025740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25741fi
cristy3ed852e2009-09-05 21:47:34 +000025742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25743 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25744fi
cristy8b350f62009-11-15 23:12:43 +000025745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025746$as_echo "$ac_cv_prog_cxx_g" >&6; }
25747if test "$ac_test_CXXFLAGS" = set; then
25748 CXXFLAGS=$ac_save_CXXFLAGS
25749elif test $ac_cv_prog_cxx_g = yes; then
25750 if test "$GXX" = yes; then
25751 CXXFLAGS="-g -O2"
25752 else
25753 CXXFLAGS="-g"
25754 fi
25755else
25756 if test "$GXX" = yes; then
25757 CXXFLAGS="-O2"
25758 else
25759 CXXFLAGS=
25760 fi
25761fi
25762ac_ext=cpp
25763ac_cpp='$CXXCPP $CPPFLAGS'
25764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25767
cristy73bd4a52010-10-05 11:24:23 +000025768depcc="$CXX" am_compiler_list=
25769
25770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25771$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025772if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025773 $as_echo_n "(cached) " >&6
25774else
25775 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25776 # We make a subdir and do the tests there. Otherwise we can end up
25777 # making bogus files that we don't know about and never remove. For
25778 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025779 # making a dummy file named 'D' -- because '-MD' means "put the output
25780 # in D".
cristy7247bba2012-02-05 16:37:27 +000025781 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025782 mkdir conftest.dir
25783 # Copy depcomp to subdir because otherwise we won't find it if we're
25784 # using a relative directory.
25785 cp "$am_depcomp" conftest.dir
25786 cd conftest.dir
25787 # We will build objects and dependencies in a subdirectory because
25788 # it helps to detect inapplicable dependency modes. For instance
25789 # both Tru64's cc and ICC support -MD to output dependencies as a
25790 # side effect of compilation, but ICC will put the dependencies in
25791 # the current directory while Tru64 will put them in the object
25792 # directory.
25793 mkdir sub
25794
25795 am_cv_CXX_dependencies_compiler_type=none
25796 if test "$am_compiler_list" = ""; then
25797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25798 fi
25799 am__universal=false
25800 case " $depcc " in #(
25801 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25802 esac
25803
25804 for depmode in $am_compiler_list; do
25805 # Setup a source with many dependencies, because some compilers
25806 # like to wrap large dependency lists on column 80 (with \), and
25807 # we should not choose a depcomp mode which is confused by this.
25808 #
25809 # We need to recreate these files for each test, as the compiler may
25810 # overwrite some of them when testing with obscure command lines.
25811 # This happens at least with the AIX C compiler.
25812 : > sub/conftest.c
25813 for i in 1 2 3 4 5 6; do
25814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025815 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25816 # Solaris 10 /bin/sh.
25817 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025818 done
25819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25820
cristyc0890a62012-07-19 00:18:20 +000025821 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025822 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025823 # handle '-M -o', and we need to detect this. Also, some Intel
25824 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025825 am__obj=sub/conftest.${OBJEXT-o}
25826 am__minus_obj="-o $am__obj"
25827 case $depmode in
25828 gcc)
25829 # This depmode causes a compiler race in universal mode.
25830 test "$am__universal" = false || continue
25831 ;;
25832 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025833 # After this tag, mechanisms are not by side-effect, so they'll
25834 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025835 if test "x$enable_dependency_tracking" = xyes; then
25836 continue
25837 else
25838 break
25839 fi
25840 ;;
cristy7247bba2012-02-05 16:37:27 +000025841 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025842 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025843 # not run yet. These depmodes are late enough in the game, and
25844 # so weak that their functioning should not be impacted.
25845 am__obj=conftest.${OBJEXT-o}
25846 am__minus_obj=
25847 ;;
25848 none) break ;;
25849 esac
25850 if depmode=$depmode \
25851 source=sub/conftest.c object=$am__obj \
25852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25854 >/dev/null 2>conftest.err &&
25855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25859 # icc doesn't choke on unknown options, it will just issue warnings
25860 # or remarks (even with -Werror). So we grep stderr for any message
25861 # that says an option was ignored or not supported.
25862 # When given -MP, icc 7.0 and 7.1 complain thusly:
25863 # icc: Command line warning: ignoring option '-M'; no argument required
25864 # The diagnosis changed in icc 8.0:
25865 # icc: Command line remark: option '-MP' not supported
25866 if (grep 'ignoring option' conftest.err ||
25867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25868 am_cv_CXX_dependencies_compiler_type=$depmode
25869 break
25870 fi
25871 fi
25872 done
25873
25874 cd ..
25875 rm -rf conftest.dir
25876else
25877 am_cv_CXX_dependencies_compiler_type=none
25878fi
25879
25880fi
25881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25882$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25883CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25884
25885 if
25886 test "x$enable_dependency_tracking" != xno \
25887 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25888 am__fastdepCXX_TRUE=
25889 am__fastdepCXX_FALSE='#'
25890else
25891 am__fastdepCXX_TRUE='#'
25892 am__fastdepCXX_FALSE=
25893fi
25894
25895
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25897$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025898if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025899 $as_echo_n "(cached) " >&6
25900else
25901
25902 ac_ext=cpp
25903ac_cpp='$CXXCPP $CPPFLAGS'
25904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25907
25908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25909/* end confdefs.h. */
25910
25911int f(int x){return 1;}
25912int f(char x){return 1;}
25913int f(bool x){return 1;}
25914
25915int
25916main ()
25917{
25918bool b = true; return f(b);
25919 ;
25920 return 0;
25921}
25922_ACEOF
25923if ac_fn_cxx_try_compile "$LINENO"; then :
25924 ax_cv_cxx_bool=yes
25925else
25926 ax_cv_cxx_bool=no
25927fi
25928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25929 ac_ext=cpp
25930ac_cpp='$CXXCPP $CPPFLAGS'
25931ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25932ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25933ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25934
25935
25936fi
25937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25938$as_echo "$ax_cv_cxx_bool" >&6; }
25939if test "$ax_cv_cxx_bool" = yes; then
25940
25941$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25942
25943fi
25944
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25946$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025947if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025948 $as_echo_n "(cached) " >&6
25949else
25950
25951 ac_ext=cpp
25952ac_cpp='$CXXCPP $CPPFLAGS'
25953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25956
25957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25958/* end confdefs.h. */
25959namespace Outer { namespace Inner { int i = 0; }}
25960int
25961main ()
25962{
25963using namespace Outer::Inner; return i;
25964 ;
25965 return 0;
25966}
25967_ACEOF
25968if ac_fn_cxx_try_compile "$LINENO"; then :
25969 ax_cv_cxx_namespaces=yes
25970else
25971 ax_cv_cxx_namespaces=no
25972fi
25973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25974 ac_ext=cpp
25975ac_cpp='$CXXCPP $CPPFLAGS'
25976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25979
25980
25981fi
25982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25983$as_echo "$ax_cv_cxx_namespaces" >&6; }
25984if test "$ax_cv_cxx_namespaces" = yes; then
25985
25986$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25987
25988fi
25989
25990
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25992$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025993if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025994 $as_echo_n "(cached) " >&6
25995else
25996
25997 ac_ext=cpp
25998ac_cpp='$CXXCPP $CPPFLAGS'
25999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26002
26003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26004/* end confdefs.h. */
26005#include <iostream>
26006 std::istream& is = std::cin;
26007int
26008main ()
26009{
26010
26011 ;
26012 return 0;
26013}
26014_ACEOF
26015if ac_fn_cxx_try_compile "$LINENO"; then :
26016 ax_cv_cxx_have_std_namespace=yes
26017else
26018 ax_cv_cxx_have_std_namespace=no
26019fi
26020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26021 ac_ext=cpp
26022ac_cpp='$CXXCPP $CPPFLAGS'
26023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26026
26027
26028fi
26029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26030$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26031 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26032
26033$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26034
26035 fi
26036
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26038$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026039if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026040 $as_echo_n "(cached) " >&6
26041else
26042
26043
26044 ac_ext=cpp
26045ac_cpp='$CXXCPP $CPPFLAGS'
26046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26049
26050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26051/* end confdefs.h. */
26052#include <iostream>
26053#include <map>
26054#include <iomanip>
26055#include <cmath>
26056#ifdef HAVE_NAMESPACES
26057using namespace std;
26058#endif
26059int
26060main ()
26061{
26062return 0;
26063 ;
26064 return 0;
26065}
26066_ACEOF
26067if ac_fn_cxx_try_compile "$LINENO"; then :
26068 ac_cv_cxx_have_std_libs=yes
26069else
26070 ac_cv_cxx_have_std_libs=no
26071fi
26072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26073 ac_ext=cpp
26074ac_cpp='$CXXCPP $CPPFLAGS'
26075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26078
26079
26080fi
26081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26082$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26083if test "$ac_cv_cxx_have_std_libs" = yes; then
26084
26085$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26086
26087fi
26088
cristy3ed852e2009-09-05 21:47:34 +000026089
26090 OPENMP_CXXFLAGS=
26091 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026092if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026093 enableval=$enable_openmp;
26094fi
26095
26096 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26098$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026099if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026100 $as_echo_n "(cached) " >&6
26101else
cristy8b350f62009-11-15 23:12:43 +000026102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26103/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026104
26105#ifndef _OPENMP
26106 choke me
26107#endif
26108#include <omp.h>
26109int main () { return omp_get_num_threads (); }
26110
26111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026112if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026113 ac_cv_prog_cxx_openmp='none needed'
26114else
cristy8b350f62009-11-15 23:12:43 +000026115 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026116 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26117 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026118 ac_save_CXXFLAGS=$CXXFLAGS
26119 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26121/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026122
26123#ifndef _OPENMP
26124 choke me
26125#endif
26126#include <omp.h>
26127int main () { return omp_get_num_threads (); }
26128
26129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026130if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026131 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026132fi
cristy8b350f62009-11-15 23:12:43 +000026133rm -f core conftest.err conftest.$ac_objext \
26134 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026135 CXXFLAGS=$ac_save_CXXFLAGS
26136 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26137 break
26138 fi
26139 done
26140fi
cristy8b350f62009-11-15 23:12:43 +000026141rm -f core conftest.err conftest.$ac_objext \
26142 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026143fi
cristy8b350f62009-11-15 23:12:43 +000026144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026145$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26146 case $ac_cv_prog_cxx_openmp in #(
26147 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026148 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026149 *)
cristy8b350f62009-11-15 23:12:43 +000026150 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026151 esac
26152 fi
26153
26154
26155 ac_ext=c
26156ac_cpp='$CPP $CPPFLAGS'
26157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26159ac_compiler_gnu=$ac_cv_c_compiler_gnu
26160
26161
cristy8b350f62009-11-15 23:12:43 +000026162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026163$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26164 if \
cristy964cb7f2010-04-25 23:18:00 +000026165 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026166 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026167 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026168 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026169 have_magick_plus_plus='yes'
26170 else
26171 have_magick_plus_plus='no (failed tests)'
26172 fi
cristyad38abe2012-12-23 23:03:21 +000026173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26174$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026175 LIBS="$OLIBS"
26176fi
cristy73bd4a52010-10-05 11:24:23 +000026177 if test "$have_magick_plus_plus" = 'yes'; then
26178 WITH_MAGICK_PLUS_PLUS_TRUE=
26179 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26180else
26181 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26182 WITH_MAGICK_PLUS_PLUS_FALSE=
26183fi
26184
cristy3ed852e2009-09-05 21:47:34 +000026185
26186# Only check for delegate libraries in subdirectories if requested.
26187if test "$enable_delegate_build" != 'no'; then
26188 # Check for delegate sub-directories and add -I & -L options as required.
26189 # This presumes that delegates are installed as detailed in the ImageMagick
26190 # README. If delegates are installed in a standard location where the
26191 # compiler will automatically find them then these options should not be
26192 # required.
26193
26194 #
26195 # Most delegates have includes in the same directory as the library, but not all...
26196 #
26197 # Includes
cristya8940fd2014-01-12 22:52:25 +000026198 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick mupdf openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026199 if test -d "$builddir/$dir"; then
26200 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26201 else
26202 if test -d "$srcdirfull/$dir"; then
26203 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26204 fi
26205 fi
26206 done
26207
26208 # Libraries
cristya8940fd2014-01-12 22:52:25 +000026209 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick mupdf openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026210 if test -d "$builddir/$dir/.libs"; then
26211 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26212 else
26213 if test -d "$srcdirfull/$dir/.libs"; then
26214 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26215 fi
26216 fi
26217 if test -d "$builddir/$dir"; then
26218 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26219 else
26220 if test -d "$srcdirfull/$dir"; then
26221 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26222 fi
26223 fi
26224 done
26225fi
26226
26227# Assume that delegate headers reside under same directory as ImageMagick
26228# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026229MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026230
26231#
26232# Find the X11 RGB database
26233#
cristy8b350f62009-11-15 23:12:43 +000026234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026235$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026236if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026237 $as_echo_n "(cached) " >&6
26238else
26239 # Look for the header file in a standard set of common directories.
26240# Check X11 before X11Rn because it is often a symlink to the current release.
26241 for ac_dir in \
26242 /lib/usr/lib/X11 \
26243 /usr/X11/lib \
26244 /usr/X11R4/lib \
26245 /usr/X11R5/lib \
26246 /usr/X11R6/lib \
26247 /usr/X11R7/lib \
26248 /usr/X386/lib \
26249 /usr/XFree86/lib/X11 \
26250 /usr/athena/lib \
26251 /usr/lib \
26252 /usr/lib/X11 \
26253 /usr/lib/X11R4 \
26254 /usr/lib/X11R5 \
26255 /usr/lib/X11R6 \
26256 /usr/lib/X11R7 \
26257 /usr/local/X11/lib \
26258 /usr/local/X11R4/lib \
26259 /usr/local/X11R5/lib \
26260 /usr/local/X11R6/lib \
26261 /usr/local/lib \
26262 /usr/local/lib/X11 \
26263 /usr/local/lib/X11R4 \
26264 /usr/local/lib/X11R5 \
26265 /usr/local/lib/X11R6 \
26266 /usr/local/lib/X11R7 \
26267 /usr/local/x11r5/lib \
26268 /usr/lpp/Xamples/lib \
26269 /usr/openwin/lib \
26270 /usr/openwin/share/lib \
26271 /usr/unsupported/lib \
26272 /usr/x386/lib \
26273 ; do
26274 if test -f "$ac_dir/X11/rgb.txt"; then
26275 im_cv_x_configure="$ac_dir/X11/"
26276 break
26277 elif test -f "$ac_dir/rgb.txt"; then
26278 im_cv_x_configure="$ac_dir/"
26279 break
26280 fi
26281
26282 done
26283fi
cristy8b350f62009-11-15 23:12:43 +000026284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026285$as_echo "$im_cv_x_configure" >&6; }
26286X11_CONFIGURE_PATH="$im_cv_x_configure"
26287case "${build_os}" in
26288 mingw* )
26289 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26290 ;;
26291esac
26292
26293cat >>confdefs.h <<_ACEOF
26294#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26295_ACEOF
26296
26297
26298#
26299# Find OpenMP library
26300#
26301GOMP_LIBS=''
26302if test "$enable_openmp" != 'no'; then
26303 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026304 # Open64 (passes for GCC but uses different OpenMP implementation)
26305 if test "x$GOMP_LIBS" = x ; then
26306 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26308$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26309if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26310 $as_echo_n "(cached) " >&6
26311else
26312 ac_check_lib_save_LIBS=$LIBS
26313LIBS="-lopenmp $LIBS"
26314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26315/* end confdefs.h. */
26316
26317/* Override any GCC internal prototype to avoid an error.
26318 Use char because int might match the return type of a GCC
26319 builtin and then its argument prototype would still apply. */
26320#ifdef __cplusplus
26321extern "C"
26322#endif
26323char omp_get_num_procs ();
26324int
26325main ()
26326{
26327return omp_get_num_procs ();
26328 ;
26329 return 0;
26330}
26331_ACEOF
26332if ac_fn_c_try_link "$LINENO"; then :
26333 ac_cv_lib_openmp_omp_get_num_procs=yes
26334else
26335 ac_cv_lib_openmp_omp_get_num_procs=no
26336fi
26337rm -f core conftest.err conftest.$ac_objext \
26338 conftest$ac_exeext conftest.$ac_ext
26339LIBS=$ac_check_lib_save_LIBS
26340fi
26341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26342$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26343if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26344 GOMP_LIBS="-lopenmp"
26345fi
26346
26347 fi
26348 fi
26349 # GCC
26350 if test "x$GOMP_LIBS" = x ; then
26351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026352$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026353if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026354 $as_echo_n "(cached) " >&6
26355else
26356 ac_check_lib_save_LIBS=$LIBS
26357LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026359/* end confdefs.h. */
26360
26361/* Override any GCC internal prototype to avoid an error.
26362 Use char because int might match the return type of a GCC
26363 builtin and then its argument prototype would still apply. */
26364#ifdef __cplusplus
26365extern "C"
26366#endif
26367char GOMP_parallel_start ();
26368int
26369main ()
26370{
26371return GOMP_parallel_start ();
26372 ;
26373 return 0;
26374}
26375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026376if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026377 ac_cv_lib_gomp_GOMP_parallel_start=yes
26378else
cristy8b350f62009-11-15 23:12:43 +000026379 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026380fi
cristy8b350f62009-11-15 23:12:43 +000026381rm -f core conftest.err conftest.$ac_objext \
26382 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026383LIBS=$ac_check_lib_save_LIBS
26384fi
cristy8b350f62009-11-15 23:12:43 +000026385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026386$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026387if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026388 GOMP_LIBS="-lgomp"
26389fi
cristy18307f12011-12-30 01:20:16 +000026390
26391 fi
cristy3ed852e2009-09-05 21:47:34 +000026392 else
cristy18307f12011-12-30 01:20:16 +000026393 # Sun CC
26394 if test "x$GOMP_LIBS" = x ; then
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026396$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026397if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026398 $as_echo_n "(cached) " >&6
26399else
26400 ac_check_lib_save_LIBS=$LIBS
26401LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026403/* end confdefs.h. */
26404
26405/* Override any GCC internal prototype to avoid an error.
26406 Use char because int might match the return type of a GCC
26407 builtin and then its argument prototype would still apply. */
26408#ifdef __cplusplus
26409extern "C"
26410#endif
26411char sunw_mp_register_warn ();
26412int
26413main ()
26414{
26415return sunw_mp_register_warn ();
26416 ;
26417 return 0;
26418}
26419_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026420if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026421 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26422else
cristy8b350f62009-11-15 23:12:43 +000026423 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026424fi
cristy8b350f62009-11-15 23:12:43 +000026425rm -f core conftest.err conftest.$ac_objext \
26426 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026427LIBS=$ac_check_lib_save_LIBS
26428fi
cristy8b350f62009-11-15 23:12:43 +000026429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026430$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026431if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026432 GOMP_LIBS="-lmtsk"
26433fi
cristy18307f12011-12-30 01:20:16 +000026434
26435 fi
26436 # AIX xlc
26437 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026439$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026440if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026441 $as_echo_n "(cached) " >&6
26442else
26443 ac_check_lib_save_LIBS=$LIBS
26444LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026446/* end confdefs.h. */
26447
26448/* Override any GCC internal prototype to avoid an error.
26449 Use char because int might match the return type of a GCC
26450 builtin and then its argument prototype would still apply. */
26451#ifdef __cplusplus
26452extern "C"
26453#endif
26454char _xlsmpFlush ();
26455int
26456main ()
26457{
26458return _xlsmpFlush ();
26459 ;
26460 return 0;
26461}
26462_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026463if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026464 ac_cv_lib_xlsmp__xlsmpFlush=yes
26465else
cristy8b350f62009-11-15 23:12:43 +000026466 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026467fi
cristy8b350f62009-11-15 23:12:43 +000026468rm -f core conftest.err conftest.$ac_objext \
26469 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026470LIBS=$ac_check_lib_save_LIBS
26471fi
cristy8b350f62009-11-15 23:12:43 +000026472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026473$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026474if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026475 GOMP_LIBS="-lxlsmp"
26476fi
cristy18307f12011-12-30 01:20:16 +000026477
26478 fi
26479 # SGI IRIX 6.5 MIPSpro C/C++
26480 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026482$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026483if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026484 $as_echo_n "(cached) " >&6
26485else
26486 ac_check_lib_save_LIBS=$LIBS
26487LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026489/* end confdefs.h. */
26490
26491/* Override any GCC internal prototype to avoid an error.
26492 Use char because int might match the return type of a GCC
26493 builtin and then its argument prototype would still apply. */
26494#ifdef __cplusplus
26495extern "C"
26496#endif
26497char mp_destroy ();
26498int
26499main ()
26500{
26501return mp_destroy ();
26502 ;
26503 return 0;
26504}
26505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026506if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026507 ac_cv_lib_mp_mp_destroy=yes
26508else
cristy8b350f62009-11-15 23:12:43 +000026509 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026510fi
cristy8b350f62009-11-15 23:12:43 +000026511rm -f core conftest.err conftest.$ac_objext \
26512 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026513LIBS=$ac_check_lib_save_LIBS
26514fi
cristy8b350f62009-11-15 23:12:43 +000026515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026516$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026517if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026518 GOMP_LIBS="-lmp"
26519fi
cristy18307f12011-12-30 01:20:16 +000026520
26521 fi
cristy3ed852e2009-09-05 21:47:34 +000026522 fi
26523 LIBS="$GOMP_LIBS $LIBS"
26524fi
26525
26526
cristy3ed852e2009-09-05 21:47:34 +000026527
26528
26529#
26530# Check for umem.
26531#
26532have_umem='no'
26533UMEM_LIBS=''
26534if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026536$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26538$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026539 failed=0
26540 passed=0
cristy8b350f62009-11-15 23:12:43 +000026541 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026542if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026543 passed=`expr $passed + 1`
26544else
26545 failed=`expr $failed + 1`
26546fi
26547
26548
cristy8b350f62009-11-15 23:12:43 +000026549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026550$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026551if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026552 $as_echo_n "(cached) " >&6
26553else
26554 ac_check_lib_save_LIBS=$LIBS
26555LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026557/* end confdefs.h. */
26558
26559/* Override any GCC internal prototype to avoid an error.
26560 Use char because int might match the return type of a GCC
26561 builtin and then its argument prototype would still apply. */
26562#ifdef __cplusplus
26563extern "C"
26564#endif
26565char umem_alloc ();
26566int
26567main ()
26568{
26569return umem_alloc ();
26570 ;
26571 return 0;
26572}
26573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026574if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026575 ac_cv_lib_umem_umem_alloc=yes
26576else
cristy8b350f62009-11-15 23:12:43 +000026577 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026578fi
cristy8b350f62009-11-15 23:12:43 +000026579rm -f core conftest.err conftest.$ac_objext \
26580 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026581LIBS=$ac_check_lib_save_LIBS
26582fi
cristy8b350f62009-11-15 23:12:43 +000026583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026584$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026585if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026586 passed=`expr $passed + 1`
26587else
26588 failed=`expr $failed + 1`
26589fi
26590
cristy8b350f62009-11-15 23:12:43 +000026591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026592$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026593if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026594 $as_echo_n "(cached) " >&6
26595else
26596 ac_check_lib_save_LIBS=$LIBS
26597LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026599/* end confdefs.h. */
26600
26601/* Override any GCC internal prototype to avoid an error.
26602 Use char because int might match the return type of a GCC
26603 builtin and then its argument prototype would still apply. */
26604#ifdef __cplusplus
26605extern "C"
26606#endif
26607char umem_free ();
26608int
26609main ()
26610{
26611return umem_free ();
26612 ;
26613 return 0;
26614}
26615_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026616if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026617 ac_cv_lib_umem_umem_free=yes
26618else
cristy8b350f62009-11-15 23:12:43 +000026619 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026620fi
cristy8b350f62009-11-15 23:12:43 +000026621rm -f core conftest.err conftest.$ac_objext \
26622 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026623LIBS=$ac_check_lib_save_LIBS
26624fi
cristy8b350f62009-11-15 23:12:43 +000026625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026626$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026627if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026628 passed=`expr $passed + 1`
26629else
26630 failed=`expr $failed + 1`
26631fi
26632
cristy8b350f62009-11-15 23:12:43 +000026633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026634$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26635 if test $passed -gt 0; then
26636 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26638$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026639 have_umem='no (failed tests)'
26640 else
26641 UMEM_LIBS='-lumem'
26642 LIBS="$UMEM_LIBS $LIBS"
26643
cristy8b350f62009-11-15 23:12:43 +000026644$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026645
cristyad38abe2012-12-23 23:03:21 +000026646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26647$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026648 have_umem='yes'
26649 fi
26650 else
cristyad38abe2012-12-23 23:03:21 +000026651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26652$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026653 fi
26654fi
cristy73bd4a52010-10-05 11:24:23 +000026655 if test "$have_umem" = 'yes'; then
26656 HasUMEM_TRUE=
26657 HasUMEM_FALSE='#'
26658else
26659 HasUMEM_TRUE='#'
26660 HasUMEM_FALSE=
26661fi
26662
cristy3ed852e2009-09-05 21:47:34 +000026663
26664
26665#
26666# Add support for ccmalloc memory debugging library if requested
26667#
26668have_ccmalloc='no'
26669CCMALLOC_LIBS=''
26670if test "$enable_ccmalloc" = 'yes'; then
26671 # Extract the first word of "ccmalloc", so it can be a program name with args.
26672set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026674$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026675if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026676 $as_echo_n "(cached) " >&6
26677else
26678 case $CCMALLOCDelegate in
26679 [\\/]* | ?:[\\/]*)
26680 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26681 ;;
26682 *)
26683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26684for as_dir in $PATH
26685do
26686 IFS=$as_save_IFS
26687 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026688 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026690 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026692 break 2
26693 fi
26694done
cristy8b350f62009-11-15 23:12:43 +000026695 done
cristy3ed852e2009-09-05 21:47:34 +000026696IFS=$as_save_IFS
26697
26698 ;;
26699esac
26700fi
26701CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26702if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026704$as_echo "$CCMALLOCDelegate" >&6; }
26705else
cristy8b350f62009-11-15 23:12:43 +000026706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026707$as_echo "no" >&6; }
26708fi
26709
26710
26711 if test -n "$CCMALLOCDelegate"; then
26712 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26713 OLIBS="$LIBS"
26714 # Assume that gcc is used with ccmalloc.
26715 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026717$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026718if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026719 $as_echo_n "(cached) " >&6
26720else
26721 ac_check_lib_save_LIBS=$LIBS
26722LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026724/* end confdefs.h. */
26725
26726/* Override any GCC internal prototype to avoid an error.
26727 Use char because int might match the return type of a GCC
26728 builtin and then its argument prototype would still apply. */
26729#ifdef __cplusplus
26730extern "C"
26731#endif
26732char ccmalloc_malloc ();
26733int
26734main ()
26735{
26736return ccmalloc_malloc ();
26737 ;
26738 return 0;
26739}
26740_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026741if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026742 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26743else
cristy8b350f62009-11-15 23:12:43 +000026744 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026745fi
cristy8b350f62009-11-15 23:12:43 +000026746rm -f core conftest.err conftest.$ac_objext \
26747 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026748LIBS=$ac_check_lib_save_LIBS
26749fi
cristy8b350f62009-11-15 23:12:43 +000026750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026751$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026752if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026753 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26754fi
26755
26756 if test -n "$CCMALLOC_LIBS"; then
26757 LIBS="$OLIBS"
26758 LIBS="$LIBS $CCMALLOC_LIBS"
26759 have_ccmalloc='yes'
26760 else
26761 LIBS="$OLIBS"
26762 fi
26763 fi
26764fi
26765
26766#
cristy944e51f2013-04-16 18:45:02 +000026767# Add support for 'huge pages' if requested
26768#
26769if test "x$enable_hugepages" != "xno"; then :
26770
26771
26772$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26773
26774
26775fi
26776
26777#
cristy3ed852e2009-09-05 21:47:34 +000026778# Add support for efence memory debugging library if requested
26779#
26780if test "$enable_efence" = 'yes'; then
26781 EFENCE_LIBS='-lefence'
26782 LIBS="$EFENCE_LIBS $LIBS"
26783fi
26784
cristy3ed852e2009-09-05 21:47:34 +000026785
26786#
26787# Check for BZLIB
26788#
26789
26790
26791# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026792if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026793 withval=$with_bzlib; with_bzlib=$withval
26794else
26795 with_bzlib='yes'
26796fi
26797
26798
26799if test "$with_bzlib" != 'yes'; then
26800 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26801fi
26802
26803have_bzlib='no'
26804if test "$with_bzlib" != 'no'; then
26805 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26807$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026809$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26811$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026812 failed=0
26813 passed=0
26814 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026815 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026816if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026817 passed=`expr $passed + 1`
26818else
26819 failed=`expr $failed + 1`
26820fi
26821
26822
cristy8b350f62009-11-15 23:12:43 +000026823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026824$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026825if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026826 $as_echo_n "(cached) " >&6
26827else
26828 ac_check_lib_save_LIBS=$LIBS
26829LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026831/* end confdefs.h. */
26832
26833/* Override any GCC internal prototype to avoid an error.
26834 Use char because int might match the return type of a GCC
26835 builtin and then its argument prototype would still apply. */
26836#ifdef __cplusplus
26837extern "C"
26838#endif
26839char BZ2_bzDecompress ();
26840int
26841main ()
26842{
26843return BZ2_bzDecompress ();
26844 ;
26845 return 0;
26846}
26847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026848if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026849 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26850else
cristy8b350f62009-11-15 23:12:43 +000026851 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026852fi
cristy8b350f62009-11-15 23:12:43 +000026853rm -f core conftest.err conftest.$ac_objext \
26854 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026855LIBS=$ac_check_lib_save_LIBS
26856fi
cristy8b350f62009-11-15 23:12:43 +000026857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026858$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026859if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026860 found_libbz=`expr $found_libbz + 1`
26861fi
26862
26863 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026865$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026866if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026867 $as_echo_n "(cached) " >&6
26868else
26869 ac_check_lib_save_LIBS=$LIBS
26870LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026872/* end confdefs.h. */
26873
26874/* Override any GCC internal prototype to avoid an error.
26875 Use char because int might match the return type of a GCC
26876 builtin and then its argument prototype would still apply. */
26877#ifdef __cplusplus
26878extern "C"
26879#endif
26880char _imp__BZ2_decompress ();
26881int
26882main ()
26883{
26884return _imp__BZ2_decompress ();
26885 ;
26886 return 0;
26887}
26888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026889if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026890 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26891else
cristy8b350f62009-11-15 23:12:43 +000026892 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026893fi
cristy8b350f62009-11-15 23:12:43 +000026894rm -f core conftest.err conftest.$ac_objext \
26895 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026896LIBS=$ac_check_lib_save_LIBS
26897fi
cristy8b350f62009-11-15 23:12:43 +000026898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026899$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026900if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026901 found_libbz=`expr $found_libbz + 1`
26902fi
26903
26904 fi
26905 if test $found_libbz -gt 0; then
26906 passed=`expr $passed + 1`
26907 else
26908 failed=`expr $failed + 1`
26909 fi
cristy8b350f62009-11-15 23:12:43 +000026910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026911$as_echo_n "checking if BZLIB package is complete... " >&6; }
26912 if test $passed -gt 0; then
26913 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26915$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026916 have_bzlib='no (failed tests)'
26917 else
26918 BZLIB_LIBS='-lbz2'
26919 LIBS="$BZLIB_LIBS $LIBS"
26920
cristy8b350f62009-11-15 23:12:43 +000026921$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026922
cristyad38abe2012-12-23 23:03:21 +000026923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26924$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026925 have_bzlib='yes'
26926 fi
26927 else
cristyad38abe2012-12-23 23:03:21 +000026928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26929$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026930 fi
26931fi
cristy73bd4a52010-10-05 11:24:23 +000026932 if test "$have_bzlib" = 'yes'; then
26933 BZLIB_DELEGATE_TRUE=
26934 BZLIB_DELEGATE_FALSE='#'
26935else
26936 BZLIB_DELEGATE_TRUE='#'
26937 BZLIB_DELEGATE_FALSE=
26938fi
26939
cristy3ed852e2009-09-05 21:47:34 +000026940
26941
26942#
26943# Find the X11 include and library directories.
26944#
26945IPC_LIBS=''
26946X11_LIBS=''
26947XEXT_LIBS=''
26948XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026950$as_echo_n "checking for X... " >&6; }
26951
26952
26953# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026954if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026955 withval=$with_x;
26956fi
26957
26958# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26959if test "x$with_x" = xno; then
26960 # The user explicitly disabled X.
26961 have_x=disabled
26962else
26963 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026964 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026965 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026966 $as_echo_n "(cached) " >&6
26967else
26968 # One or both of the vars are not set, and there is no cached value.
26969ac_x_includes=no ac_x_libraries=no
26970rm -f -r conftest.dir
26971if mkdir conftest.dir; then
26972 cd conftest.dir
26973 cat >Imakefile <<'_ACEOF'
26974incroot:
26975 @echo incroot='${INCROOT}'
26976usrlibdir:
26977 @echo usrlibdir='${USRLIBDIR}'
26978libdir:
26979 @echo libdir='${LIBDIR}'
26980_ACEOF
26981 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026982 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026983 for ac_var in incroot usrlibdir libdir; do
26984 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26985 done
26986 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26987 for ac_extension in a so sl dylib la dll; do
26988 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26989 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26990 ac_im_usrlibdir=$ac_im_libdir; break
26991 fi
26992 done
26993 # Screen out bogus values from the imake configuration. They are
26994 # bogus both because they are the default anyway, and because
26995 # using them would break gcc on systems where it needs fixed includes.
26996 case $ac_im_incroot in
26997 /usr/include) ac_x_includes= ;;
26998 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26999 esac
27000 case $ac_im_usrlibdir in
27001 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27002 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27003 esac
27004 fi
27005 cd ..
27006 rm -f -r conftest.dir
27007fi
27008
27009# Standard set of common directories for X headers.
27010# Check X11 before X11Rn because it is often a symlink to the current release.
27011ac_x_header_dirs='
27012/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027013/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027014/usr/X11R6/include
27015/usr/X11R5/include
27016/usr/X11R4/include
27017
27018/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027019/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027020/usr/include/X11R6
27021/usr/include/X11R5
27022/usr/include/X11R4
27023
27024/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027025/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027026/usr/local/X11R6/include
27027/usr/local/X11R5/include
27028/usr/local/X11R4/include
27029
27030/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027031/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027032/usr/local/include/X11R6
27033/usr/local/include/X11R5
27034/usr/local/include/X11R4
27035
27036/usr/X386/include
27037/usr/x386/include
27038/usr/XFree86/include/X11
27039
27040/usr/include
27041/usr/local/include
27042/usr/unsupported/include
27043/usr/athena/include
27044/usr/local/x11r5/include
27045/usr/lpp/Xamples/include
27046
27047/usr/openwin/include
27048/usr/openwin/share/include'
27049
27050if test "$ac_x_includes" = no; then
27051 # Guess where to find include files, by looking for Xlib.h.
27052 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027054/* end confdefs.h. */
27055#include <X11/Xlib.h>
27056_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027057if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027058 # We can compile using X headers with no special include directory.
27059ac_x_includes=
27060else
cristyc7083c12009-10-14 03:16:55 +000027061 for ac_dir in $ac_x_header_dirs; do
27062 if test -r "$ac_dir/X11/Xlib.h"; then
27063 ac_x_includes=$ac_dir
27064 break
27065 fi
27066done
27067fi
cristyda16f162011-02-19 23:52:17 +000027068rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027069fi # $ac_x_includes = no
27070
27071if test "$ac_x_libraries" = no; then
27072 # Check for the libraries.
27073 # See if we find them without any special options.
27074 # Don't add to $LIBS permanently.
27075 ac_save_LIBS=$LIBS
27076 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027078/* end confdefs.h. */
27079#include <X11/Xlib.h>
27080int
27081main ()
27082{
27083XrmInitialize ()
27084 ;
27085 return 0;
27086}
27087_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027088if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027089 LIBS=$ac_save_LIBS
27090# We can link X programs with no special library path.
27091ac_x_libraries=
27092else
cristy8b350f62009-11-15 23:12:43 +000027093 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027094for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27095do
27096 # Don't even attempt the hair of trying to link an X program!
27097 for ac_extension in a so sl dylib la dll; do
27098 if test -r "$ac_dir/libX11.$ac_extension"; then
27099 ac_x_libraries=$ac_dir
27100 break 2
27101 fi
27102 done
27103done
27104fi
cristy8b350f62009-11-15 23:12:43 +000027105rm -f core conftest.err conftest.$ac_objext \
27106 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027107fi # $ac_x_libraries = no
27108
27109case $ac_x_includes,$ac_x_libraries in #(
27110 no,* | *,no | *\'*)
27111 # Didn't find X, or a directory has "'" in its name.
27112 ac_cv_have_x="have_x=no";; #(
27113 *)
27114 # Record where we found X for the cache.
27115 ac_cv_have_x="have_x=yes\
27116 ac_x_includes='$ac_x_includes'\
27117 ac_x_libraries='$ac_x_libraries'"
27118esac
27119fi
27120;; #(
27121 *) have_x=yes;;
27122 esac
27123 eval "$ac_cv_have_x"
27124fi # $with_x != no
27125
27126if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027128$as_echo "$have_x" >&6; }
27129 no_x=yes
27130else
27131 # If each of the values was on the command line, it overrides each guess.
27132 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27133 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27134 # Update the cache value to reflect the command line values.
27135 ac_cv_have_x="have_x=yes\
27136 ac_x_includes='$x_includes'\
27137 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027139$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27140fi
27141
cristy3ed852e2009-09-05 21:47:34 +000027142if test "$no_x" = yes; then
27143 # Not all programs may use this symbol, but it does not hurt to define it.
27144
cristy8b350f62009-11-15 23:12:43 +000027145$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027146
27147 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27148else
27149 if test -n "$x_includes"; then
27150 X_CFLAGS="$X_CFLAGS -I$x_includes"
27151 fi
27152
27153 # It would also be nice to do this for all -L options, not just this one.
27154 if test -n "$x_libraries"; then
27155 X_LIBS="$X_LIBS -L$x_libraries"
27156 # For Solaris; some versions of Sun CC require a space after -R and
27157 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027159$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27160 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27161 ac_xsave_c_werror_flag=$ac_c_werror_flag
27162 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027164/* end confdefs.h. */
27165
27166int
27167main ()
27168{
27169
27170 ;
27171 return 0;
27172}
27173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027174if ac_fn_c_try_link "$LINENO"; then :
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027176$as_echo "no" >&6; }
27177 X_LIBS="$X_LIBS -R$x_libraries"
27178else
cristy8b350f62009-11-15 23:12:43 +000027179 LIBS="$ac_xsave_LIBS -R $x_libraries"
27180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027181/* end confdefs.h. */
27182
27183int
27184main ()
27185{
27186
27187 ;
27188 return 0;
27189}
27190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027191if ac_fn_c_try_link "$LINENO"; then :
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027193$as_echo "yes" >&6; }
27194 X_LIBS="$X_LIBS -R $x_libraries"
27195else
cristy8b350f62009-11-15 23:12:43 +000027196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027197$as_echo "neither works" >&6; }
27198fi
cristy8b350f62009-11-15 23:12:43 +000027199rm -f core conftest.err conftest.$ac_objext \
27200 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027201fi
cristy8b350f62009-11-15 23:12:43 +000027202rm -f core conftest.err conftest.$ac_objext \
27203 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027204 ac_c_werror_flag=$ac_xsave_c_werror_flag
27205 LIBS=$ac_xsave_LIBS
27206 fi
27207
27208 # Check for system-dependent libraries X programs must link with.
27209 # Do this before checking for the system-independent R6 libraries
27210 # (-lICE), since we may need -lsocket or whatever for X linking.
27211
27212 if test "$ISC" = yes; then
27213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27214 else
27215 # Martyn Johnson says this is needed for Ultrix, if the X
27216 # libraries were built with DECnet support. And Karl Berry says
27217 # the Alpha needs dnet_stub (dnet does not exist).
27218 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027220/* end confdefs.h. */
27221
27222/* Override any GCC internal prototype to avoid an error.
27223 Use char because int might match the return type of a GCC
27224 builtin and then its argument prototype would still apply. */
27225#ifdef __cplusplus
27226extern "C"
27227#endif
27228char XOpenDisplay ();
27229int
27230main ()
27231{
27232return XOpenDisplay ();
27233 ;
27234 return 0;
27235}
27236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027237if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027238
cristy8b350f62009-11-15 23:12:43 +000027239else
27240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027241$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027242if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027243 $as_echo_n "(cached) " >&6
27244else
27245 ac_check_lib_save_LIBS=$LIBS
27246LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027248/* end confdefs.h. */
27249
27250/* Override any GCC internal prototype to avoid an error.
27251 Use char because int might match the return type of a GCC
27252 builtin and then its argument prototype would still apply. */
27253#ifdef __cplusplus
27254extern "C"
27255#endif
27256char dnet_ntoa ();
27257int
27258main ()
27259{
27260return dnet_ntoa ();
27261 ;
27262 return 0;
27263}
27264_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027265if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027266 ac_cv_lib_dnet_dnet_ntoa=yes
27267else
cristy8b350f62009-11-15 23:12:43 +000027268 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027269fi
cristy8b350f62009-11-15 23:12:43 +000027270rm -f core conftest.err conftest.$ac_objext \
27271 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027272LIBS=$ac_check_lib_save_LIBS
27273fi
cristy8b350f62009-11-15 23:12:43 +000027274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027275$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027276if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027277 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27278fi
27279
27280 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027282$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027283if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027284 $as_echo_n "(cached) " >&6
27285else
27286 ac_check_lib_save_LIBS=$LIBS
27287LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027289/* end confdefs.h. */
27290
27291/* Override any GCC internal prototype to avoid an error.
27292 Use char because int might match the return type of a GCC
27293 builtin and then its argument prototype would still apply. */
27294#ifdef __cplusplus
27295extern "C"
27296#endif
27297char dnet_ntoa ();
27298int
27299main ()
27300{
27301return dnet_ntoa ();
27302 ;
27303 return 0;
27304}
27305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027306if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027307 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27308else
cristy8b350f62009-11-15 23:12:43 +000027309 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027310fi
cristy8b350f62009-11-15 23:12:43 +000027311rm -f core conftest.err conftest.$ac_objext \
27312 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027313LIBS=$ac_check_lib_save_LIBS
27314fi
cristy8b350f62009-11-15 23:12:43 +000027315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027316$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027317if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027318 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27319fi
27320
27321 fi
27322fi
cristy8b350f62009-11-15 23:12:43 +000027323rm -f core conftest.err conftest.$ac_objext \
27324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027325 LIBS="$ac_xsave_LIBS"
27326
27327 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27328 # to get the SysV transport functions.
27329 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27330 # needs -lnsl.
27331 # The nsl library prevents programs from opening the X display
27332 # on Irix 5.2, according to T.E. Dickey.
27333 # The functions gethostbyname, getservbyname, and inet_addr are
27334 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027335 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027336if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027337
cristy3ed852e2009-09-05 21:47:34 +000027338fi
27339
cristy3ed852e2009-09-05 21:47:34 +000027340 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027342$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027343if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027344 $as_echo_n "(cached) " >&6
27345else
27346 ac_check_lib_save_LIBS=$LIBS
27347LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027349/* end confdefs.h. */
27350
27351/* Override any GCC internal prototype to avoid an error.
27352 Use char because int might match the return type of a GCC
27353 builtin and then its argument prototype would still apply. */
27354#ifdef __cplusplus
27355extern "C"
27356#endif
27357char gethostbyname ();
27358int
27359main ()
27360{
27361return gethostbyname ();
27362 ;
27363 return 0;
27364}
27365_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027366if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027367 ac_cv_lib_nsl_gethostbyname=yes
27368else
cristy8b350f62009-11-15 23:12:43 +000027369 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027370fi
cristy8b350f62009-11-15 23:12:43 +000027371rm -f core conftest.err conftest.$ac_objext \
27372 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027373LIBS=$ac_check_lib_save_LIBS
27374fi
cristy8b350f62009-11-15 23:12:43 +000027375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027376$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027377if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027378 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27379fi
27380
27381 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027383$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027384if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027385 $as_echo_n "(cached) " >&6
27386else
27387 ac_check_lib_save_LIBS=$LIBS
27388LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027390/* end confdefs.h. */
27391
27392/* Override any GCC internal prototype to avoid an error.
27393 Use char because int might match the return type of a GCC
27394 builtin and then its argument prototype would still apply. */
27395#ifdef __cplusplus
27396extern "C"
27397#endif
27398char gethostbyname ();
27399int
27400main ()
27401{
27402return gethostbyname ();
27403 ;
27404 return 0;
27405}
27406_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027407if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027408 ac_cv_lib_bsd_gethostbyname=yes
27409else
cristy8b350f62009-11-15 23:12:43 +000027410 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027411fi
cristy8b350f62009-11-15 23:12:43 +000027412rm -f core conftest.err conftest.$ac_objext \
27413 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027414LIBS=$ac_check_lib_save_LIBS
27415fi
cristy8b350f62009-11-15 23:12:43 +000027416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027417$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027418if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027419 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27420fi
27421
27422 fi
27423 fi
27424
27425 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27426 # socket/setsockopt and other routines are undefined under SCO ODT
27427 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27428 # on later versions), says Simon Leinen: it contains gethostby*
27429 # variants that don't use the name server (or something). -lsocket
27430 # must be given before -lnsl if both are needed. We assume that
27431 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027432 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027433if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027434
cristy3ed852e2009-09-05 21:47:34 +000027435fi
27436
cristy3ed852e2009-09-05 21:47:34 +000027437 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027439$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027440if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027441 $as_echo_n "(cached) " >&6
27442else
27443 ac_check_lib_save_LIBS=$LIBS
27444LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027446/* end confdefs.h. */
27447
27448/* Override any GCC internal prototype to avoid an error.
27449 Use char because int might match the return type of a GCC
27450 builtin and then its argument prototype would still apply. */
27451#ifdef __cplusplus
27452extern "C"
27453#endif
27454char connect ();
27455int
27456main ()
27457{
27458return connect ();
27459 ;
27460 return 0;
27461}
27462_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027463if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027464 ac_cv_lib_socket_connect=yes
27465else
cristy8b350f62009-11-15 23:12:43 +000027466 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027467fi
cristy8b350f62009-11-15 23:12:43 +000027468rm -f core conftest.err conftest.$ac_objext \
27469 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027470LIBS=$ac_check_lib_save_LIBS
27471fi
cristy8b350f62009-11-15 23:12:43 +000027472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027473$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027474if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027475 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27476fi
27477
27478 fi
27479
27480 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027481 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027482if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027483
cristy3ed852e2009-09-05 21:47:34 +000027484fi
27485
cristy3ed852e2009-09-05 21:47:34 +000027486 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027488$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027489if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027490 $as_echo_n "(cached) " >&6
27491else
27492 ac_check_lib_save_LIBS=$LIBS
27493LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027495/* end confdefs.h. */
27496
27497/* Override any GCC internal prototype to avoid an error.
27498 Use char because int might match the return type of a GCC
27499 builtin and then its argument prototype would still apply. */
27500#ifdef __cplusplus
27501extern "C"
27502#endif
27503char remove ();
27504int
27505main ()
27506{
27507return remove ();
27508 ;
27509 return 0;
27510}
27511_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027512if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027513 ac_cv_lib_posix_remove=yes
27514else
cristy8b350f62009-11-15 23:12:43 +000027515 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027516fi
cristy8b350f62009-11-15 23:12:43 +000027517rm -f core conftest.err conftest.$ac_objext \
27518 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027519LIBS=$ac_check_lib_save_LIBS
27520fi
cristy8b350f62009-11-15 23:12:43 +000027521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027522$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027523if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027524 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27525fi
27526
27527 fi
27528
27529 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027530 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027531if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027532
cristy3ed852e2009-09-05 21:47:34 +000027533fi
27534
cristy3ed852e2009-09-05 21:47:34 +000027535 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027537$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027538if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027539 $as_echo_n "(cached) " >&6
27540else
27541 ac_check_lib_save_LIBS=$LIBS
27542LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027544/* end confdefs.h. */
27545
27546/* Override any GCC internal prototype to avoid an error.
27547 Use char because int might match the return type of a GCC
27548 builtin and then its argument prototype would still apply. */
27549#ifdef __cplusplus
27550extern "C"
27551#endif
27552char shmat ();
27553int
27554main ()
27555{
27556return shmat ();
27557 ;
27558 return 0;
27559}
27560_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027561if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027562 ac_cv_lib_ipc_shmat=yes
27563else
cristy8b350f62009-11-15 23:12:43 +000027564 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027565fi
cristy8b350f62009-11-15 23:12:43 +000027566rm -f core conftest.err conftest.$ac_objext \
27567 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027568LIBS=$ac_check_lib_save_LIBS
27569fi
cristy8b350f62009-11-15 23:12:43 +000027570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027571$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027572if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027573 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27574fi
27575
27576 fi
27577 fi
27578
27579 # Check for libraries that X11R6 Xt/Xaw programs need.
27580 ac_save_LDFLAGS=$LDFLAGS
27581 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27582 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27583 # check for ICE first), but we must link in the order -lSM -lICE or
27584 # we get undefined symbols. So assume we have SM if we have ICE.
27585 # These have to be linked with before -lX11, unlike the other
27586 # libraries we check for below, so use a different variable.
27587 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027589$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027590if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027591 $as_echo_n "(cached) " >&6
27592else
27593 ac_check_lib_save_LIBS=$LIBS
27594LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027596/* end confdefs.h. */
27597
27598/* Override any GCC internal prototype to avoid an error.
27599 Use char because int might match the return type of a GCC
27600 builtin and then its argument prototype would still apply. */
27601#ifdef __cplusplus
27602extern "C"
27603#endif
27604char IceConnectionNumber ();
27605int
27606main ()
27607{
27608return IceConnectionNumber ();
27609 ;
27610 return 0;
27611}
27612_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027613if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027614 ac_cv_lib_ICE_IceConnectionNumber=yes
27615else
cristy8b350f62009-11-15 23:12:43 +000027616 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027617fi
cristy8b350f62009-11-15 23:12:43 +000027618rm -f core conftest.err conftest.$ac_objext \
27619 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027620LIBS=$ac_check_lib_save_LIBS
27621fi
cristy8b350f62009-11-15 23:12:43 +000027622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027623$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027624if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027625 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27626fi
27627
27628 LDFLAGS=$ac_save_LDFLAGS
27629
27630fi
27631
27632if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27634$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027636$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27638$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027639 LDFLAGS="$LDFLAGS $X_LIBS"
27640 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27641 LIBS="$X11_LIBS $LIBS"
27642 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27643
27644
cristy8b350f62009-11-15 23:12:43 +000027645$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027646
27647 #
27648 # Check for X11 shared memory extension
27649 #
27650 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027651 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027652if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027653 have_shmctl='yes'
27654fi
27655
27656 if test "$have_shmctl" != 'yes'; then
27657 PERSIST_LIBS=$LIBS
27658 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027660/* end confdefs.h. */
27661
27662/* Override any GCC internal prototype to avoid an error.
27663 Use char because int might match the return type of a GCC
27664 builtin and then its argument prototype would still apply. */
27665#ifdef __cplusplus
27666extern "C"
27667#endif
27668char shmctl ();
27669int
27670main ()
27671{
27672return shmctl ();
27673 ;
27674 return 0;
27675}
27676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027677if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027678 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027679fi
cristy8b350f62009-11-15 23:12:43 +000027680rm -f core conftest.err conftest.$ac_objext \
27681 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027682 LIBS=$PERSIST_LIBS
27683 fi
27684
27685 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027687$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027688if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027689 $as_echo_n "(cached) " >&6
27690else
27691 ac_check_lib_save_LIBS=$LIBS
27692LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027694/* end confdefs.h. */
27695
27696/* Override any GCC internal prototype to avoid an error.
27697 Use char because int might match the return type of a GCC
27698 builtin and then its argument prototype would still apply. */
27699#ifdef __cplusplus
27700extern "C"
27701#endif
27702char XShmAttach ();
27703int
27704main ()
27705{
27706return XShmAttach ();
27707 ;
27708 return 0;
27709}
27710_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027711if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027712 ac_cv_lib_Xext_XShmAttach=yes
27713else
cristy8b350f62009-11-15 23:12:43 +000027714 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027715fi
cristy8b350f62009-11-15 23:12:43 +000027716rm -f core conftest.err conftest.$ac_objext \
27717 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027718LIBS=$ac_check_lib_save_LIBS
27719fi
cristy8b350f62009-11-15 23:12:43 +000027720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027721$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027722if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027723 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027724$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027725
27726fi
27727
27728 fi
27729
27730 #
27731 # Check for X11 shape extension
27732 #
cristy8b350f62009-11-15 23:12:43 +000027733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027734$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027735if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027736 $as_echo_n "(cached) " >&6
27737else
27738 ac_check_lib_save_LIBS=$LIBS
27739LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027741/* end confdefs.h. */
27742
27743/* Override any GCC internal prototype to avoid an error.
27744 Use char because int might match the return type of a GCC
27745 builtin and then its argument prototype would still apply. */
27746#ifdef __cplusplus
27747extern "C"
27748#endif
27749char XShapeCombineMask ();
27750int
27751main ()
27752{
27753return XShapeCombineMask ();
27754 ;
27755 return 0;
27756}
27757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027758if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027759 ac_cv_lib_Xext_XShapeCombineMask=yes
27760else
cristy8b350f62009-11-15 23:12:43 +000027761 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027762fi
cristy8b350f62009-11-15 23:12:43 +000027763rm -f core conftest.err conftest.$ac_objext \
27764 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027765LIBS=$ac_check_lib_save_LIBS
27766fi
cristy8b350f62009-11-15 23:12:43 +000027767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027768$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027769if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027770 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027771$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027772
27773fi
27774
cristy8b350f62009-11-15 23:12:43 +000027775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027776$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027777if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027778 $as_echo_n "(cached) " >&6
27779else
27780 ac_check_lib_save_LIBS=$LIBS
27781LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027783/* end confdefs.h. */
27784
27785/* Override any GCC internal prototype to avoid an error.
27786 Use char because int might match the return type of a GCC
27787 builtin and then its argument prototype would still apply. */
27788#ifdef __cplusplus
27789extern "C"
27790#endif
27791char XtSetEventDispatcher ();
27792int
27793main ()
27794{
27795return XtSetEventDispatcher ();
27796 ;
27797 return 0;
27798}
27799_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027800if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027801 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27802else
cristy8b350f62009-11-15 23:12:43 +000027803 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027804fi
cristy8b350f62009-11-15 23:12:43 +000027805rm -f core conftest.err conftest.$ac_objext \
27806 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027807LIBS=$ac_check_lib_save_LIBS
27808fi
cristy8b350f62009-11-15 23:12:43 +000027809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027810$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027811if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027812 XT_LIBS='-lXt'
27813fi
27814
27815 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27816fi
27817if test "$no_x" != 'yes'; then
27818 have_x='yes'
27819else
27820 have_x='no'
27821fi
cristy73bd4a52010-10-05 11:24:23 +000027822 if test "$have_x" = 'yes'; then
27823 X11_DELEGATE_TRUE=
27824 X11_DELEGATE_FALSE='#'
27825else
27826 X11_DELEGATE_TRUE='#'
27827 X11_DELEGATE_FALSE=
27828fi
27829
cristy3ed852e2009-09-05 21:47:34 +000027830
27831
27832
27833
27834#
27835# Check for ZLIB
27836#
27837
27838# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027839if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027840 withval=$with_zlib; with_zlib=$withval
27841else
27842 with_zlib='yes'
27843fi
27844
27845
27846if test "$with_zlib" != 'yes'; then
27847 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27848fi
27849
27850have_zlib='no'
27851ZLIB_LIBS=''
27852if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27854$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027856$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27858$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027859 ZLIB_LIBS=''
27860 failed=0
27861 passed=0
cristy8b350f62009-11-15 23:12:43 +000027862 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027863if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027864 passed=`expr $passed + 1`
27865else
27866 failed=`expr $failed + 1`
27867fi
27868
27869
cristy8b350f62009-11-15 23:12:43 +000027870 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027871if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027872 passed=`expr $passed + 1`
27873else
27874 failed=`expr $failed + 1`
27875fi
27876
27877
cristy8b350f62009-11-15 23:12:43 +000027878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027879$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027880if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027881 $as_echo_n "(cached) " >&6
27882else
27883 ac_check_lib_save_LIBS=$LIBS
27884LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027886/* end confdefs.h. */
27887
27888/* Override any GCC internal prototype to avoid an error.
27889 Use char because int might match the return type of a GCC
27890 builtin and then its argument prototype would still apply. */
27891#ifdef __cplusplus
27892extern "C"
27893#endif
27894char compress ();
27895int
27896main ()
27897{
27898return compress ();
27899 ;
27900 return 0;
27901}
27902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027903if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027904 ac_cv_lib_z_compress=yes
27905else
cristy8b350f62009-11-15 23:12:43 +000027906 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027907fi
cristy8b350f62009-11-15 23:12:43 +000027908rm -f core conftest.err conftest.$ac_objext \
27909 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027910LIBS=$ac_check_lib_save_LIBS
27911fi
cristy8b350f62009-11-15 23:12:43 +000027912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027913$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027914if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027915 passed=`expr $passed + 1`
27916else
27917 failed=`expr $failed + 1`
27918fi
27919
cristy8b350f62009-11-15 23:12:43 +000027920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027921$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027922if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027923 $as_echo_n "(cached) " >&6
27924else
27925 ac_check_lib_save_LIBS=$LIBS
27926LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027928/* end confdefs.h. */
27929
27930/* Override any GCC internal prototype to avoid an error.
27931 Use char because int might match the return type of a GCC
27932 builtin and then its argument prototype would still apply. */
27933#ifdef __cplusplus
27934extern "C"
27935#endif
27936char uncompress ();
27937int
27938main ()
27939{
27940return uncompress ();
27941 ;
27942 return 0;
27943}
27944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027946 ac_cv_lib_z_uncompress=yes
27947else
cristy8b350f62009-11-15 23:12:43 +000027948 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027949fi
cristy8b350f62009-11-15 23:12:43 +000027950rm -f core conftest.err conftest.$ac_objext \
27951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027952LIBS=$ac_check_lib_save_LIBS
27953fi
cristy8b350f62009-11-15 23:12:43 +000027954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027955$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027956if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027957 passed=`expr $passed + 1`
27958else
27959 failed=`expr $failed + 1`
27960fi
27961
cristy8b350f62009-11-15 23:12:43 +000027962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027963$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027964if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027965 $as_echo_n "(cached) " >&6
27966else
27967 ac_check_lib_save_LIBS=$LIBS
27968LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027970/* end confdefs.h. */
27971
27972/* Override any GCC internal prototype to avoid an error.
27973 Use char because int might match the return type of a GCC
27974 builtin and then its argument prototype would still apply. */
27975#ifdef __cplusplus
27976extern "C"
27977#endif
27978char deflate ();
27979int
27980main ()
27981{
27982return deflate ();
27983 ;
27984 return 0;
27985}
27986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027987if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027988 ac_cv_lib_z_deflate=yes
27989else
cristy8b350f62009-11-15 23:12:43 +000027990 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027991fi
cristy8b350f62009-11-15 23:12:43 +000027992rm -f core conftest.err conftest.$ac_objext \
27993 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027994LIBS=$ac_check_lib_save_LIBS
27995fi
cristy8b350f62009-11-15 23:12:43 +000027996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027997$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027998if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027999 passed=`expr $passed + 1`
28000else
28001 failed=`expr $failed + 1`
28002fi
28003
cristy8b350f62009-11-15 23:12:43 +000028004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028005$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028006if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028007 $as_echo_n "(cached) " >&6
28008else
28009 ac_check_lib_save_LIBS=$LIBS
28010LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028012/* end confdefs.h. */
28013
28014/* Override any GCC internal prototype to avoid an error.
28015 Use char because int might match the return type of a GCC
28016 builtin and then its argument prototype would still apply. */
28017#ifdef __cplusplus
28018extern "C"
28019#endif
28020char inflate ();
28021int
28022main ()
28023{
28024return inflate ();
28025 ;
28026 return 0;
28027}
28028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028029if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028030 ac_cv_lib_z_inflate=yes
28031else
cristy8b350f62009-11-15 23:12:43 +000028032 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028033fi
cristy8b350f62009-11-15 23:12:43 +000028034rm -f core conftest.err conftest.$ac_objext \
28035 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028036LIBS=$ac_check_lib_save_LIBS
28037fi
cristy8b350f62009-11-15 23:12:43 +000028038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028039$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028040if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028041 passed=`expr $passed + 1`
28042else
28043 failed=`expr $failed + 1`
28044fi
28045
cristy8b350f62009-11-15 23:12:43 +000028046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028047$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028048if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028049 $as_echo_n "(cached) " >&6
28050else
28051 ac_check_lib_save_LIBS=$LIBS
28052LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028054/* end confdefs.h. */
28055
28056/* Override any GCC internal prototype to avoid an error.
28057 Use char because int might match the return type of a GCC
28058 builtin and then its argument prototype would still apply. */
28059#ifdef __cplusplus
28060extern "C"
28061#endif
28062char gzseek ();
28063int
28064main ()
28065{
28066return gzseek ();
28067 ;
28068 return 0;
28069}
28070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028071if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028072 ac_cv_lib_z_gzseek=yes
28073else
cristy8b350f62009-11-15 23:12:43 +000028074 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028075fi
cristy8b350f62009-11-15 23:12:43 +000028076rm -f core conftest.err conftest.$ac_objext \
28077 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028078LIBS=$ac_check_lib_save_LIBS
28079fi
cristy8b350f62009-11-15 23:12:43 +000028080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028081$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028082if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028083 passed=`expr $passed + 1`
28084else
28085 failed=`expr $failed + 1`
28086fi
28087
cristy8b350f62009-11-15 23:12:43 +000028088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028089$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028090if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028091 $as_echo_n "(cached) " >&6
28092else
28093 ac_check_lib_save_LIBS=$LIBS
28094LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028096/* end confdefs.h. */
28097
28098/* Override any GCC internal prototype to avoid an error.
28099 Use char because int might match the return type of a GCC
28100 builtin and then its argument prototype would still apply. */
28101#ifdef __cplusplus
28102extern "C"
28103#endif
28104char gztell ();
28105int
28106main ()
28107{
28108return gztell ();
28109 ;
28110 return 0;
28111}
28112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028113if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028114 ac_cv_lib_z_gztell=yes
28115else
cristy8b350f62009-11-15 23:12:43 +000028116 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028117fi
cristy8b350f62009-11-15 23:12:43 +000028118rm -f core conftest.err conftest.$ac_objext \
28119 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028120LIBS=$ac_check_lib_save_LIBS
28121fi
cristy8b350f62009-11-15 23:12:43 +000028122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028123$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028124if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028125 passed=`expr $passed + 1`
28126else
28127 failed=`expr $failed + 1`
28128fi
28129
cristy8b350f62009-11-15 23:12:43 +000028130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028131$as_echo_n "checking if ZLIB package is complete... " >&6; }
28132 if test $passed -gt 0; then
28133 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28135$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028136 have_zlib='no (failed tests)'
28137 else
28138 ZLIB_LIBS='-lz'
28139 LIBS="$ZLIB_LIBS $LIBS"
28140
cristy8b350f62009-11-15 23:12:43 +000028141$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028142
cristyad38abe2012-12-23 23:03:21 +000028143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28144$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028145 have_zlib='yes'
28146 fi
28147 else
cristyad38abe2012-12-23 23:03:21 +000028148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28149$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028150 fi
28151fi
cristy73bd4a52010-10-05 11:24:23 +000028152 if test "$have_zlib" = 'yes'; then
28153 ZLIB_DELEGATE_TRUE=
28154 ZLIB_DELEGATE_FALSE='#'
28155else
28156 ZLIB_DELEGATE_TRUE='#'
28157 ZLIB_DELEGATE_FALSE=
28158fi
28159
cristy3ed852e2009-09-05 21:47:34 +000028160
28161
cristy5eef09f2012-10-16 12:08:28 +000028162# whether modules are built or not.
28163with_ltdl='yes'
28164have_ltdl='no'
28165LTDL_LIBS=''
28166if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28168$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28170$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28172$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028173 failed=0
28174 passed=0
28175 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28176if test "x$ac_cv_header_ltdl_h" = xyes; then :
28177 passed=`expr $passed + 1`
28178else
28179 failed=`expr $failed + 1`
28180fi
28181
28182
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28184$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28185if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28186 $as_echo_n "(cached) " >&6
28187else
28188 ac_check_lib_save_LIBS=$LIBS
28189LIBS="-lltdl $LIBS"
28190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28191/* end confdefs.h. */
28192
28193/* Override any GCC internal prototype to avoid an error.
28194 Use char because int might match the return type of a GCC
28195 builtin and then its argument prototype would still apply. */
28196#ifdef __cplusplus
28197extern "C"
28198#endif
28199char lt_dlinit ();
28200int
28201main ()
28202{
28203return lt_dlinit ();
28204 ;
28205 return 0;
28206}
28207_ACEOF
28208if ac_fn_c_try_link "$LINENO"; then :
28209 ac_cv_lib_ltdl_lt_dlinit=yes
28210else
28211 ac_cv_lib_ltdl_lt_dlinit=no
28212fi
28213rm -f core conftest.err conftest.$ac_objext \
28214 conftest$ac_exeext conftest.$ac_ext
28215LIBS=$ac_check_lib_save_LIBS
28216fi
28217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28218$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28219if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28220 passed=`expr $passed + 1`
28221else
28222 failed=`expr $failed + 1`
28223fi
28224
28225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28226$as_echo_n "checking if libltdl package is complete... " >&6; }
28227 if test $passed -gt 0 ; then
28228 if test $failed -gt 0 ; then
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28230$as_echo "no -- some components failed test" >&6; }
28231 have_ltdl='no (failed tests)'
28232 else
28233 LTDL_LIBS='-lltdl'
28234 LIBS="$LTDL_LIBS $LIBS"
28235
28236$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28237
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28239$as_echo "yes" >&6; }
28240 have_ltdl='yes'
28241 fi
28242 else
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28244$as_echo "no" >&6; }
28245 fi
cristyaf4cbf32012-10-16 23:47:41 +000028246 if test "$have_ltdl" != 'yes' ; then
28247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28249as_fn_error 1 "libltdl is required for modules build
28250See \`config.log' for more details" "$LINENO" 5; }
28251 fi
cristy5eef09f2012-10-16 12:08:28 +000028252fi
28253 if test "$have_ltdl" != 'no'; then
28254 WITH_LTDL_TRUE=
28255 WITH_LTDL_FALSE='#'
28256else
28257 WITH_LTDL_TRUE='#'
28258 WITH_LTDL_FALSE=
28259fi
28260
28261
cristy3ed852e2009-09-05 21:47:34 +000028262#
28263# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28264#
28265LIB_DL=''
28266if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028268$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028269if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028270 $as_echo_n "(cached) " >&6
28271else
28272 ac_check_lib_save_LIBS=$LIBS
28273LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028275/* end confdefs.h. */
28276
28277/* Override any GCC internal prototype to avoid an error.
28278 Use char because int might match the return type of a GCC
28279 builtin and then its argument prototype would still apply. */
28280#ifdef __cplusplus
28281extern "C"
28282#endif
28283char dlopen ();
28284int
28285main ()
28286{
28287return dlopen ();
28288 ;
28289 return 0;
28290}
28291_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028292if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028293 ac_cv_lib_dl_dlopen=yes
28294else
cristy8b350f62009-11-15 23:12:43 +000028295 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028296fi
cristy8b350f62009-11-15 23:12:43 +000028297rm -f core conftest.err conftest.$ac_objext \
28298 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028299LIBS=$ac_check_lib_save_LIBS
28300fi
cristy8b350f62009-11-15 23:12:43 +000028301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028302$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028303if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028304 LIB_DL='-ldl'
28305fi
28306
28307 LIBS="$LIB_DL $LIBS"
28308fi
28309
28310
28311
28312#
28313# Check for Autotrace delegate library.
28314#
28315
28316# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028317if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028318 withval=$with_autotrace; with_autotrace=$withval
28319else
28320 with_autotrace='no'
28321fi
28322
28323
28324if test "$with_autotrace" != 'yes'; then
28325 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28326fi
28327
28328have_autotrace='no'
28329AUTOTRACE_CFLAGS=""
28330AUTOTRACE_LIBS=""
28331AUTOTRACE_PKG=""
28332if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28334$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028335
28336pkg_failed=no
28337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28338$as_echo_n "checking for AUTOTRACE... " >&6; }
28339
28340if test -n "$AUTOTRACE_CFLAGS"; then
28341 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28342 elif test -n "$PKG_CONFIG"; then
28343 if test -n "$PKG_CONFIG" && \
28344 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28345 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28346 ac_status=$?
28347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28348 test $ac_status = 0; }; then
28349 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28350else
28351 pkg_failed=yes
28352fi
28353 else
28354 pkg_failed=untried
28355fi
28356if test -n "$AUTOTRACE_LIBS"; then
28357 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28358 elif test -n "$PKG_CONFIG"; then
28359 if test -n "$PKG_CONFIG" && \
28360 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28361 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28362 ac_status=$?
28363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28364 test $ac_status = 0; }; then
28365 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28366else
28367 pkg_failed=yes
28368fi
28369 else
28370 pkg_failed=untried
28371fi
28372
28373
28374
28375if test $pkg_failed = yes; then
28376
28377if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28378 _pkg_short_errors_supported=yes
28379else
28380 _pkg_short_errors_supported=no
28381fi
28382 if test $_pkg_short_errors_supported = yes; then
28383 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28384 else
28385 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28386 fi
28387 # Put the nasty error message in config.log where it belongs
28388 echo "$AUTOTRACE_PKG_ERRORS" >&5
28389
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28391$as_echo "no" >&6; }
28392 have_autotrace=no
28393elif test $pkg_failed = untried; then
28394 have_autotrace=no
28395else
28396 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28397 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28399$as_echo "yes" >&6; }
28400 have_autotrace=yes
28401fi
cristyad38abe2012-12-23 23:03:21 +000028402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28403$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028404fi
28405
28406if test "$have_autotrace" = 'yes'; then
28407 failed=0
28408
cristy8b350f62009-11-15 23:12:43 +000028409$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028410
cristyc6722092012-10-14 00:19:31 +000028411 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028412 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028413 fi
28414fi
28415
cristy73bd4a52010-10-05 11:24:23 +000028416 if test "$have_autotrace" = 'yes'; then
28417 AUTOTRACE_DELEGATE_TRUE=
28418 AUTOTRACE_DELEGATE_FALSE='#'
28419else
28420 AUTOTRACE_DELEGATE_TRUE='#'
28421 AUTOTRACE_DELEGATE_FALSE=
28422fi
28423
cristy3ed852e2009-09-05 21:47:34 +000028424
28425
28426
28427
28428#
28429# Check for Display Postscript delegate library.
28430#
28431
28432# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028433if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028434 withval=$with_dps; with_dps=$withval
28435else
28436 with_dps='yes'
28437fi
28438
28439
28440if test "$with_dps" != 'yes'; then
28441 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28442fi
28443
28444have_dps='no'
28445DPS_LIBS=''
28446if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28448$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028450$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28452$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028453 failed=0
28454 passed=0
28455 PERSIST_CPPFLAGS="$CPPFLAGS"
28456 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028457 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 +000028458if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028459 passed=`expr $passed + 1`
28460else
28461 failed=`expr $failed + 1`
28462fi
28463
28464
28465 # DPS issues:
28466 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28467 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28468 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28469 # ImageMagick itself doesn't use -lXt.
28470 have_libdps='no'
28471 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028473$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028474if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028475 $as_echo_n "(cached) " >&6
28476else
28477 ac_check_lib_save_LIBS=$LIBS
28478LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028480/* end confdefs.h. */
28481
28482/* Override any GCC internal prototype to avoid an error.
28483 Use char because int might match the return type of a GCC
28484 builtin and then its argument prototype would still apply. */
28485#ifdef __cplusplus
28486extern "C"
28487#endif
28488char DPSInitialize ();
28489int
28490main ()
28491{
28492return DPSInitialize ();
28493 ;
28494 return 0;
28495}
28496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028497if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028498 ac_cv_lib_dps_DPSInitialize=yes
28499else
cristy8b350f62009-11-15 23:12:43 +000028500 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028501fi
cristy8b350f62009-11-15 23:12:43 +000028502rm -f core conftest.err conftest.$ac_objext \
28503 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028504LIBS=$ac_check_lib_save_LIBS
28505fi
cristy8b350f62009-11-15 23:12:43 +000028506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028507$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028508if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028509 have_libdps='yes'
28510else
28511 have_libdps='no'
28512fi
28513
28514 if test "$have_libdps" != 'yes'; then
28515 # Unset cache variable so we can try again.
28516 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028518$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028519if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028520 $as_echo_n "(cached) " >&6
28521else
28522 ac_check_lib_save_LIBS=$LIBS
28523LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028525/* end confdefs.h. */
28526
28527/* Override any GCC internal prototype to avoid an error.
28528 Use char because int might match the return type of a GCC
28529 builtin and then its argument prototype would still apply. */
28530#ifdef __cplusplus
28531extern "C"
28532#endif
28533char DPSInitialize ();
28534int
28535main ()
28536{
28537return DPSInitialize ();
28538 ;
28539 return 0;
28540}
28541_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028542if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028543 ac_cv_lib_dps_DPSInitialize=yes
28544else
cristy8b350f62009-11-15 23:12:43 +000028545 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028546fi
cristy8b350f62009-11-15 23:12:43 +000028547rm -f core conftest.err conftest.$ac_objext \
28548 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028549LIBS=$ac_check_lib_save_LIBS
28550fi
cristy8b350f62009-11-15 23:12:43 +000028551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028552$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028553if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028554 have_libdps='yes'
28555else
28556 have_libdps='no'
28557fi
28558
28559 if test "$have_libdps" = 'yes'; then
28560 LIBDPS_XT='-lXt'
28561 fi
28562 fi
28563 if test "$have_libdps" = 'yes'; then
28564 passed=`expr $passed + 1`
28565 else
28566 failed=`expr $failed + 1`
28567 fi
cristy8b350f62009-11-15 23:12:43 +000028568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028569$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028570if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028571 $as_echo_n "(cached) " >&6
28572else
28573 ac_check_lib_save_LIBS=$LIBS
28574LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028576/* end confdefs.h. */
28577
28578/* Override any GCC internal prototype to avoid an error.
28579 Use char because int might match the return type of a GCC
28580 builtin and then its argument prototype would still apply. */
28581#ifdef __cplusplus
28582extern "C"
28583#endif
28584char XDPSPixelsPerPoint ();
28585int
28586main ()
28587{
28588return XDPSPixelsPerPoint ();
28589 ;
28590 return 0;
28591}
28592_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028593if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028594 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28595else
cristy8b350f62009-11-15 23:12:43 +000028596 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028597fi
cristy8b350f62009-11-15 23:12:43 +000028598rm -f core conftest.err conftest.$ac_objext \
28599 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028600LIBS=$ac_check_lib_save_LIBS
28601fi
cristy8b350f62009-11-15 23:12:43 +000028602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028603$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028604if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028605 passed=`expr $passed + 1`
28606else
28607 failed=`expr $failed + 1`
28608fi
28609
cristy8b350f62009-11-15 23:12:43 +000028610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028611$as_echo_n "checking if DPS package is complete... " >&6; }
28612 if test $passed -gt 0; then
28613 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28615$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028616 have_dps='no (failed tests)'
28617 CPPFLAGS="$PERSIST_CPPFLAGS"
28618 else
28619 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28620 LIBS="$DPS_LIBS $LIBS"
28621
cristy8b350f62009-11-15 23:12:43 +000028622$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028623
cristyad38abe2012-12-23 23:03:21 +000028624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28625$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028626 have_dps='yes'
28627 fi
28628 else
cristyad38abe2012-12-23 23:03:21 +000028629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28630$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028631 CPPFLAGS=$PERSIST_CPPFLAGS
28632 fi
28633fi
cristy73bd4a52010-10-05 11:24:23 +000028634 if test "$have_dps" = 'yes'; then
28635 DPS_DELEGATE_TRUE=
28636 DPS_DELEGATE_FALSE='#'
28637else
28638 DPS_DELEGATE_TRUE='#'
28639 DPS_DELEGATE_FALSE=
28640fi
28641
cristy3ed852e2009-09-05 21:47:34 +000028642
28643
28644
28645#
28646# Check for DJVU delegate library.
28647#
28648
28649# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028650if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028651 withval=$with_djvu; with_djvu=$withval
28652else
28653 with_djvu='yes'
28654fi
28655
28656
28657if test "$with_djvu" != 'yes'; then
28658 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28659fi
28660
28661have_djvu='no'
28662DJVU_LIBS=''
28663if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28665$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028667$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28669$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028670 failed=0
28671 passed=0
cristy8b350f62009-11-15 23:12:43 +000028672 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 +000028673if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028674 passed=`expr $passed + 1`
28675else
28676 failed=`expr $failed + 1`
28677fi
28678
28679
cristy8b350f62009-11-15 23:12:43 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028681$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028682if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028683 $as_echo_n "(cached) " >&6
28684else
28685 ac_check_lib_save_LIBS=$LIBS
28686LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028688/* end confdefs.h. */
28689
28690/* Override any GCC internal prototype to avoid an error.
28691 Use char because int might match the return type of a GCC
28692 builtin and then its argument prototype would still apply. */
28693#ifdef __cplusplus
28694extern "C"
28695#endif
28696char ddjvu_context_create ();
28697int
28698main ()
28699{
28700return ddjvu_context_create ();
28701 ;
28702 return 0;
28703}
28704_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028705if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028706 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28707else
cristy8b350f62009-11-15 23:12:43 +000028708 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028709fi
cristy8b350f62009-11-15 23:12:43 +000028710rm -f core conftest.err conftest.$ac_objext \
28711 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028712LIBS=$ac_check_lib_save_LIBS
28713fi
cristy8b350f62009-11-15 23:12:43 +000028714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028715$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028716if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028717 passed=`expr $passed + 1`
28718else
28719 failed=`expr $failed + 1`
28720fi
28721
cristy8b350f62009-11-15 23:12:43 +000028722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028723$as_echo_n "checking if DJVU package is complete... " >&6; }
28724 if test $passed -gt 0; then
28725 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28727$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028728 have_djvu='no (failed tests)'
28729 else
28730 DJVU_LIBS='-ldjvulibre'
28731 LIBS="$DJVU_LIBS $LIBS"
28732
cristy8b350f62009-11-15 23:12:43 +000028733$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028734
cristyad38abe2012-12-23 23:03:21 +000028735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28736$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028737 have_djvu='yes'
28738 fi
28739 else
cristyad38abe2012-12-23 23:03:21 +000028740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28741$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028742 fi
28743fi
cristy73bd4a52010-10-05 11:24:23 +000028744 if test "$have_djvu" = 'yes'; then
28745 DJVU_DELEGATE_TRUE=
28746 DJVU_DELEGATE_FALSE='#'
28747else
28748 DJVU_DELEGATE_TRUE='#'
28749 DJVU_DELEGATE_FALSE=
28750fi
28751
cristy3ed852e2009-09-05 21:47:34 +000028752
28753
28754
28755#
cristy430a7312010-01-21 20:44:04 +000028756# Set DejaVu font directory.
28757#
28758
28759# Check whether --with-dejavu-font-dir was given.
28760if test "${with_dejavu_font_dir+set}" = set; then :
28761 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28762else
28763 with_dejavu_font_dir='default'
28764fi
28765
28766
28767if test "$with_dejavu_font_dir" != 'default'; then
28768 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28769fi
28770
28771
28772#
cristy3ed852e2009-09-05 21:47:34 +000028773# Check for FFTW delegate library.
28774#
28775
28776# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028777if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028778 withval=$with_fftw; with_fftw=$withval
28779else
28780 with_fftw='yes'
28781fi
28782
28783
28784if test "$with_fftw" != 'yes'; then
28785 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28786fi
28787
cristy81beccd2011-10-03 18:17:24 +000028788have_fftw='no'
28789FFTW_LIBS=''
28790if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28792$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28794$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28796$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028797 failed=0
28798 passed=0
28799 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28800if test "x$ac_cv_header_fftw3_h" = xyes; then :
28801 passed=`expr $passed + 1`
28802else
28803 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028804fi
28805
cristy81beccd2011-10-03 18:17:24 +000028806
28807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28808$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28809if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28810 $as_echo_n "(cached) " >&6
28811else
28812 ac_check_lib_save_LIBS=$LIBS
28813LIBS="-lfftw3 $LIBS"
28814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28815/* end confdefs.h. */
28816
28817/* Override any GCC internal prototype to avoid an error.
28818 Use char because int might match the return type of a GCC
28819 builtin and then its argument prototype would still apply. */
28820#ifdef __cplusplus
28821extern "C"
28822#endif
28823char fftw_execute ();
28824int
28825main ()
28826{
28827return fftw_execute ();
28828 ;
28829 return 0;
28830}
28831_ACEOF
28832if ac_fn_c_try_link "$LINENO"; then :
28833 ac_cv_lib_fftw3_fftw_execute=yes
28834else
28835 ac_cv_lib_fftw3_fftw_execute=no
28836fi
28837rm -f core conftest.err conftest.$ac_objext \
28838 conftest$ac_exeext conftest.$ac_ext
28839LIBS=$ac_check_lib_save_LIBS
28840fi
28841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28842$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28843if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28844 passed=`expr $passed + 1`
28845else
28846 failed=`expr $failed + 1`
28847fi
28848
28849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28850$as_echo_n "checking if FFTW package is complete... " >&6; }
28851 if test $passed -gt 0; then
28852 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28854$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028855 have_fftw='no (failed tests)'
28856 else
28857 FFTW_LIBS='-lfftw3'
28858 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028859
cristy8b350f62009-11-15 23:12:43 +000028860$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028861
cristyad38abe2012-12-23 23:03:21 +000028862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28863$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028864 have_fftw='yes'
28865 fi
28866 else
cristyad38abe2012-12-23 23:03:21 +000028867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28868$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028869 fi
28870fi
cristy73bd4a52010-10-05 11:24:23 +000028871 if test "$have_fftw" = 'yes'; then
28872 FFTW_DELEGATE_TRUE=
28873 FFTW_DELEGATE_FALSE='#'
28874else
28875 FFTW_DELEGATE_TRUE='#'
28876 FFTW_DELEGATE_FALSE=
28877fi
28878
cristy3ed852e2009-09-05 21:47:34 +000028879
28880
28881
28882#
28883# Check for FlashPIX delegate library.
28884#
28885
28886# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028887if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028888 withval=$with_fpx; with_fpx=$withval
28889else
28890 with_fpx='yes'
28891fi
28892
28893
28894if test "$with_fpx" != 'yes'; then
28895 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28896fi
28897
28898have_fpx='no'
28899FPX_LIBS=''
cristyd7f73ad2014-03-05 00:25:29 +000028900SAVED_LIBS=${LIBS}
28901LIBS=${LIBS/-ldjvulibre/}
cristy3ed852e2009-09-05 21:47:34 +000028902if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28904$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028906$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28908$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028909 failed=0
28910 passed=0
28911 ac_ext=cpp
28912ac_cpp='$CXXCPP $CPPFLAGS'
28913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28916
28917
cristy8b350f62009-11-15 23:12:43 +000028918ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028919if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028920 passed=`expr $passed + 1`
28921else
28922 failed=`expr $failed + 1`
28923fi
28924
28925
cristy8b350f62009-11-15 23:12:43 +000028926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028927$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028928if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028929 $as_echo_n "(cached) " >&6
28930else
28931 ac_check_lib_save_LIBS=$LIBS
28932LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028934/* end confdefs.h. */
28935
28936/* Override any GCC internal prototype to avoid an error.
28937 Use char because int might match the return type of a GCC
28938 builtin and then its argument prototype would still apply. */
28939#ifdef __cplusplus
28940extern "C"
28941#endif
28942char FPX_OpenImageByFilename ();
28943int
28944main ()
28945{
28946return FPX_OpenImageByFilename ();
28947 ;
28948 return 0;
28949}
28950_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028951if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028952 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28953else
cristy8b350f62009-11-15 23:12:43 +000028954 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028955fi
cristy8b350f62009-11-15 23:12:43 +000028956rm -f core conftest.err conftest.$ac_objext \
28957 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028958LIBS=$ac_check_lib_save_LIBS
28959fi
cristy8b350f62009-11-15 23:12:43 +000028960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028961$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028962if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028963 passed=`expr $passed + 1`
28964else
28965 failed=`expr $failed + 1`
28966fi
28967
28968 ac_ext=c
28969ac_cpp='$CPP $CPPFLAGS'
28970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28972ac_compiler_gnu=$ac_cv_c_compiler_gnu
28973
cristy8b350f62009-11-15 23:12:43 +000028974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028975$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28976 if test $passed -gt 0; then
28977 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28979$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028980 have_fpx='no (failed tests)'
28981 else
28982 FPX_LIBS='-lfpx'
28983
cristy8b350f62009-11-15 23:12:43 +000028984$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028985
cristyad38abe2012-12-23 23:03:21 +000028986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28987$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028988 have_fpx='yes'
28989 PERLMAINCC="$CXX"
28990 fi
28991 else
cristyad38abe2012-12-23 23:03:21 +000028992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28993$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028994 fi
28995fi
cristy73bd4a52010-10-05 11:24:23 +000028996 if test "$have_fpx" = 'yes'; then
28997 FPX_DELEGATE_TRUE=
28998 FPX_DELEGATE_FALSE='#'
28999else
29000 FPX_DELEGATE_TRUE='#'
29001 FPX_DELEGATE_FALSE=
29002fi
29003
cristy3ed852e2009-09-05 21:47:34 +000029004
cristyd7f73ad2014-03-05 00:25:29 +000029005LIBS=${SAVED_LIBS}
cristy3ed852e2009-09-05 21:47:34 +000029006
29007
29008#
29009# Check for fontconfig delegate library.
29010#
29011
29012# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029013if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029014 withval=$with_fontconfig; with_fontconfig=$withval
29015else
cristyfc3d0222012-02-07 15:05:57 +000029016 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029017fi
29018
29019
29020if test "$with_fontconfig" != 'yes'; then
29021 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29022fi
29023
29024have_fontconfig='no'
29025FONTCONFIG_CFLAGS=""
29026FONTCONFIG_LIBS=""
29027FONTCONFIG_PKG=""
29028if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29030$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029031
29032pkg_failed=no
29033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29034$as_echo_n "checking for FONTCONFIG... " >&6; }
29035
29036if test -n "$FONTCONFIG_CFLAGS"; then
29037 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29038 elif test -n "$PKG_CONFIG"; then
29039 if test -n "$PKG_CONFIG" && \
29040 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29041 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29042 ac_status=$?
29043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29044 test $ac_status = 0; }; then
29045 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29046else
29047 pkg_failed=yes
29048fi
29049 else
29050 pkg_failed=untried
29051fi
29052if test -n "$FONTCONFIG_LIBS"; then
29053 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29054 elif test -n "$PKG_CONFIG"; then
29055 if test -n "$PKG_CONFIG" && \
29056 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29057 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29058 ac_status=$?
29059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29060 test $ac_status = 0; }; then
29061 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29062else
29063 pkg_failed=yes
29064fi
29065 else
29066 pkg_failed=untried
29067fi
29068
29069
29070
29071if test $pkg_failed = yes; then
29072
29073if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29074 _pkg_short_errors_supported=yes
29075else
29076 _pkg_short_errors_supported=no
29077fi
29078 if test $_pkg_short_errors_supported = yes; then
29079 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29080 else
29081 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29082 fi
29083 # Put the nasty error message in config.log where it belongs
29084 echo "$FONTCONFIG_PKG_ERRORS" >&5
29085
29086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29087$as_echo "no" >&6; }
29088 have_fontconfig=no
29089elif test $pkg_failed = untried; then
29090 have_fontconfig=no
29091else
29092 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29093 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29095$as_echo "yes" >&6; }
29096 have_fontconfig=yes
29097fi
cristyad38abe2012-12-23 23:03:21 +000029098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29099$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029100fi
29101
29102if test "$have_fontconfig" = 'yes'; then
29103
cristy8b350f62009-11-15 23:12:43 +000029104$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029105
cristyc6722092012-10-14 00:19:31 +000029106 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029107 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029108 fi
cristy3ed852e2009-09-05 21:47:34 +000029109fi
29110
cristy73bd4a52010-10-05 11:24:23 +000029111 if test "$have_fontconfig" = 'yes'; then
29112 FONTCONFIG_DELEGATE_TRUE=
29113 FONTCONFIG_DELEGATE_FALSE='#'
29114else
29115 FONTCONFIG_DELEGATE_TRUE='#'
29116 FONTCONFIG_DELEGATE_FALSE=
29117fi
29118
cristy3ed852e2009-09-05 21:47:34 +000029119
29120
29121
29122
29123#
cristy03f187e2013-01-24 00:22:19 +000029124# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029125#
29126
29127# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029128if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029129 withval=$with_freetype; with_freetype=$withval
29130else
29131 with_freetype='yes'
29132fi
29133
29134
cristy3ed852e2009-09-05 21:47:34 +000029135if test "$with_freetype" != 'yes'; then
29136 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29137fi
29138
cristy81beccd2011-10-03 18:17:24 +000029139have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029140FREETYPE_CFLAGS=""
29141FREETYPE_LIBS=""
29142FREETYPE_PKG=""
29143if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29145$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029146
29147pkg_failed=no
29148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29149$as_echo_n "checking for FREETYPE... " >&6; }
29150
29151if test -n "$FREETYPE_CFLAGS"; then
29152 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29153 elif test -n "$PKG_CONFIG"; then
29154 if test -n "$PKG_CONFIG" && \
29155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29156 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29157 ac_status=$?
29158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29159 test $ac_status = 0; }; then
29160 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29161else
29162 pkg_failed=yes
29163fi
29164 else
29165 pkg_failed=untried
29166fi
29167if test -n "$FREETYPE_LIBS"; then
29168 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29169 elif test -n "$PKG_CONFIG"; then
29170 if test -n "$PKG_CONFIG" && \
29171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29172 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29173 ac_status=$?
29174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29175 test $ac_status = 0; }; then
29176 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29177else
29178 pkg_failed=yes
29179fi
29180 else
29181 pkg_failed=untried
29182fi
29183
29184
29185
29186if test $pkg_failed = yes; then
29187
29188if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29189 _pkg_short_errors_supported=yes
29190else
29191 _pkg_short_errors_supported=no
29192fi
29193 if test $_pkg_short_errors_supported = yes; then
29194 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29195 else
29196 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29197 fi
29198 # Put the nasty error message in config.log where it belongs
29199 echo "$FREETYPE_PKG_ERRORS" >&5
29200
29201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29202$as_echo "no" >&6; }
29203 have_freetype=no
29204elif test $pkg_failed = untried; then
29205 have_freetype=no
29206else
29207 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29208 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29210$as_echo "yes" >&6; }
29211 have_freetype=yes
29212fi
cristyad38abe2012-12-23 23:03:21 +000029213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29214$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029215fi
29216
cristy03f187e2013-01-24 00:22:19 +000029217if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029218
cristy8b350f62009-11-15 23:12:43 +000029219$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029220
cristy03f187e2013-01-24 00:22:19 +000029221 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029222fi
cristy03f187e2013-01-24 00:22:19 +000029223
cristy73bd4a52010-10-05 11:24:23 +000029224 if test "$have_freetype" = 'yes'; then
29225 FREETYPE_DELEGATE_TRUE=
29226 FREETYPE_DELEGATE_FALSE='#'
29227else
29228 FREETYPE_DELEGATE_TRUE='#'
29229 FREETYPE_DELEGATE_FALSE=
29230fi
29231
cristy3ed852e2009-09-05 21:47:34 +000029232
29233
29234
cristy03f187e2013-01-24 00:22:19 +000029235
cristy3ed852e2009-09-05 21:47:34 +000029236#
29237# Check for Ghostscript library or framework.
29238#
29239# Test for iapi.h & test for gsapi_new_instance in -lgs
29240# or -framework Ghostscript
29241
29242
29243# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029244if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029245 withval=$with_gslib; with_gslib=$withval
29246else
29247 with_gslib='no'
29248fi
29249
29250
cristyb7931f12009-09-25 10:22:21 +000029251gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029252if test "$with_gslib" != 'yes'; then
29253 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29254fi
29255
29256have_gslib='no'
29257GS_LIBS=''
29258if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29260$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029262$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29264$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029265 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029266 failed=0
29267 passed=0
cristy8b350f62009-11-15 23:12:43 +000029268 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 +000029269if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029270 passed=`expr $passed + 1`
29271else
29272 failed=`expr $failed + 1`
29273fi
29274
29275
cristy8b350f62009-11-15 23:12:43 +000029276 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 +000029277if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029278 passed=`expr $passed + 1`
29279else
29280 failed=`expr $failed + 1`
29281fi
29282
29283
cristy73bd4a52010-10-05 11:24:23 +000029284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29285$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029286if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029287 $as_echo_n "(cached) " >&6
29288else
29289 ac_check_framework_save_LIBS=$LIBS
29290LIBS="-framework Ghostscript $LIBS"
29291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29292/* end confdefs.h. */
29293
29294/* Override any GCC internal prototype to avoid an error.
29295 Use char because int might match the return type of a GCC
29296 builtin and then its argument prototype would still apply. */
29297#ifdef __cplusplus
29298extern "C"
29299#endif
29300char gsapi_new_instance ();
29301int
29302main ()
29303{
29304return gsapi_new_instance ();
29305 ;
29306 return 0;
29307}
29308_ACEOF
29309if ac_fn_c_try_link "$LINENO"; then :
29310 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29311else
29312 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29313fi
29314rm -f core conftest.err conftest.$ac_objext \
29315 conftest$ac_exeext conftest.$ac_ext
29316LIBS=$ac_check_framework_save_LIBS
29317fi
29318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29319$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29320if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29321 framework=`expr $framework + 1`
29322else
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029324$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029325if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029326 $as_echo_n "(cached) " >&6
29327else
29328 ac_check_lib_save_LIBS=$LIBS
29329LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029331/* end confdefs.h. */
29332
29333/* Override any GCC internal prototype to avoid an error.
29334 Use char because int might match the return type of a GCC
29335 builtin and then its argument prototype would still apply. */
29336#ifdef __cplusplus
29337extern "C"
29338#endif
29339char gsapi_new_instance ();
29340int
29341main ()
29342{
29343return gsapi_new_instance ();
29344 ;
29345 return 0;
29346}
29347_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029348if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029349 ac_cv_lib_gs_gsapi_new_instance=yes
29350else
cristy8b350f62009-11-15 23:12:43 +000029351 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029352fi
cristy8b350f62009-11-15 23:12:43 +000029353rm -f core conftest.err conftest.$ac_objext \
29354 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029355LIBS=$ac_check_lib_save_LIBS
29356fi
cristy8b350f62009-11-15 23:12:43 +000029357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029358$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029359if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029360 passed=`expr $passed + 1`
29361else
29362 failed=`expr $failed + 1`
29363fi
cristy73bd4a52010-10-05 11:24:23 +000029364
29365fi
cristy8b350f62009-11-15 23:12:43 +000029366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029367$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29368 if test $passed -gt 0; then
29369 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29371$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029372 have_gslib='no (failed tests)'
29373 else
29374 if test $framework -gt 0; then
29375 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029376 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29378$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029379 else
cristyad38abe2012-12-23 23:03:21 +000029380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29381$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029382 GS_LIBS='-lgs'
29383 fi
29384 LIBS="$GS_LIBS $LIBS"
29385
cristy8b350f62009-11-15 23:12:43 +000029386$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029387
29388 have_gslib='yes'
29389 fi
29390 else
cristyad38abe2012-12-23 23:03:21 +000029391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29392$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029393 fi
29394fi
cristy73bd4a52010-10-05 11:24:23 +000029395 if test "$have_gslib" = 'yes'; then
29396 GS_DELEGATE_TRUE=
29397 GS_DELEGATE_FALSE='#'
29398else
29399 GS_DELEGATE_TRUE='#'
29400 GS_DELEGATE_FALSE=
29401fi
29402
cristy3ed852e2009-09-05 21:47:34 +000029403
29404
29405# Set default font search path
29406
29407# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029408if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029409 withval=$with_fontpath; with_fontpath=$withval
29410else
29411 with_fontpath=''
29412fi
29413
29414
29415if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29416 with_fontpath=''
29417else
29418
29419cat >>confdefs.h <<_ACEOF
29420#define MAGICK_FONT_PATH "$with_fontpath"
29421_ACEOF
29422
29423fi
29424if test "$with_fontpath=" != ''; then
29425 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29426fi
29427
29428# Set Ghostscript font directory
29429
29430# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029431if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029432 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29433else
29434 with_gs_font_dir='default'
29435fi
29436
29437
29438if test "$with_gs_font_dir" != 'default'; then
29439 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29440fi
29441
29442
29443#
29444# Check for GVC delegate library.
29445#
29446
29447# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029448if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029449 withval=$with_gvc; with_gvc=$withval
29450else
cristy1b70dc82012-07-01 23:15:05 +000029451 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029452fi
29453
29454
29455if test "$with_gvc" != 'yes'; then
29456 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29457fi
29458
29459GVC_PKG=""
29460if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29462$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029463
29464pkg_failed=no
29465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29466$as_echo_n "checking for GVC... " >&6; }
29467
29468if test -n "$GVC_CFLAGS"; then
29469 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29470 elif test -n "$PKG_CONFIG"; then
29471 if test -n "$PKG_CONFIG" && \
29472 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29473 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29474 ac_status=$?
29475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29476 test $ac_status = 0; }; then
29477 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29478else
29479 pkg_failed=yes
29480fi
29481 else
29482 pkg_failed=untried
29483fi
29484if test -n "$GVC_LIBS"; then
29485 pkg_cv_GVC_LIBS="$GVC_LIBS"
29486 elif test -n "$PKG_CONFIG"; then
29487 if test -n "$PKG_CONFIG" && \
29488 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29489 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29490 ac_status=$?
29491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29492 test $ac_status = 0; }; then
29493 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29494else
29495 pkg_failed=yes
29496fi
29497 else
29498 pkg_failed=untried
29499fi
29500
29501
29502
29503if test $pkg_failed = yes; then
29504
29505if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29506 _pkg_short_errors_supported=yes
29507else
29508 _pkg_short_errors_supported=no
29509fi
29510 if test $_pkg_short_errors_supported = yes; then
29511 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29512 else
29513 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29514 fi
29515 # Put the nasty error message in config.log where it belongs
29516 echo "$GVC_PKG_ERRORS" >&5
29517
29518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29519$as_echo "no" >&6; }
29520 have_gvc=no
29521elif test $pkg_failed = untried; then
29522 have_gvc=no
29523else
29524 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29525 GVC_LIBS=$pkg_cv_GVC_LIBS
29526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29527$as_echo "yes" >&6; }
29528 have_gvc=yes
29529fi
cristyad38abe2012-12-23 23:03:21 +000029530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29531$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029532fi
29533
29534if test "$have_gvc" = 'yes'; then
29535
cristy8b350f62009-11-15 23:12:43 +000029536$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029537
cristyc6722092012-10-14 00:19:31 +000029538 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029539 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29540 fi
29541fi
29542
cristy73bd4a52010-10-05 11:24:23 +000029543 if test "$have_gvc" = 'yes'; then
29544 GVC_DELEGATE_TRUE=
29545 GVC_DELEGATE_FALSE='#'
29546else
29547 GVC_DELEGATE_TRUE='#'
29548 GVC_DELEGATE_FALSE=
29549fi
29550
cristy3ed852e2009-09-05 21:47:34 +000029551
29552
29553
29554
29555#
29556# Check for JBIG delegate library.
29557#
29558
29559
29560# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029561if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029562 withval=$with_jbig; with_jbig=$withval
29563else
29564 with_jbig='yes'
29565fi
29566
29567
29568have_jbig='no'
29569JBIG_LIBS=''
29570if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29572$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029574$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29576$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029577 failed=0
29578 passed=0
cristy8b350f62009-11-15 23:12:43 +000029579 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029580if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029581 passed=`expr $passed + 1`
29582else
29583 failed=`expr $failed + 1`
29584fi
29585
29586
cristy8b350f62009-11-15 23:12:43 +000029587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029588$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029589if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029590 $as_echo_n "(cached) " >&6
29591else
29592 ac_check_lib_save_LIBS=$LIBS
29593LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029595/* end confdefs.h. */
29596
29597/* Override any GCC internal prototype to avoid an error.
29598 Use char because int might match the return type of a GCC
29599 builtin and then its argument prototype would still apply. */
29600#ifdef __cplusplus
29601extern "C"
29602#endif
29603char jbg_dec_init ();
29604int
29605main ()
29606{
29607return jbg_dec_init ();
29608 ;
29609 return 0;
29610}
29611_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029612if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029613 ac_cv_lib_jbig_jbg_dec_init=yes
29614else
cristy8b350f62009-11-15 23:12:43 +000029615 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029616fi
cristy8b350f62009-11-15 23:12:43 +000029617rm -f core conftest.err conftest.$ac_objext \
29618 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029619LIBS=$ac_check_lib_save_LIBS
29620fi
cristy8b350f62009-11-15 23:12:43 +000029621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029622$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029623if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029624 passed=`expr $passed + 1`
29625else
29626 failed=`expr $failed + 1`
29627fi
29628
cristy8b350f62009-11-15 23:12:43 +000029629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029630$as_echo_n "checking if JBIG package is complete... " >&6; }
29631 if test $passed -gt 0; then
29632 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29634$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029635 have_jbig='no (failed tests)'
29636 else
29637 JBIG_LIBS='-ljbig'
29638 LIBS="$JBIG_LIBS $LIBS"
29639
cristy8b350f62009-11-15 23:12:43 +000029640$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029641
cristyad38abe2012-12-23 23:03:21 +000029642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29643$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029644 have_jbig='yes'
29645 fi
29646 else
cristyad38abe2012-12-23 23:03:21 +000029647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29648$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029649 fi
29650fi
cristy73bd4a52010-10-05 11:24:23 +000029651 if test "$have_jbig" = 'yes'; then
29652 JBIG_DELEGATE_TRUE=
29653 JBIG_DELEGATE_FALSE='#'
29654else
29655 JBIG_DELEGATE_TRUE='#'
29656 JBIG_DELEGATE_FALSE=
29657fi
29658
cristy3ed852e2009-09-05 21:47:34 +000029659
29660
29661
29662#
29663# Check for JPEG delegate library.
29664#
29665
29666# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029667if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029668 withval=$with_jpeg; with_jpeg=$withval
29669else
29670 with_jpeg='yes'
29671fi
29672
29673
29674if test "$with_jpeg" != 'yes'; then
29675 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29676fi
29677
29678have_jpeg='no'
29679JPEG_LIBS=''
29680if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29682$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029684$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29686$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029687 failed=0
29688 passed=0
cristy8b350f62009-11-15 23:12:43 +000029689 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029690if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029691 passed=`expr $passed + 1`
29692else
29693 failed=`expr $failed + 1`
29694fi
29695
29696
cristy8b350f62009-11-15 23:12:43 +000029697 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029698if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029699 passed=`expr $passed + 1`
29700else
29701 failed=`expr $failed + 1`
29702fi
29703
29704
cristy8b350f62009-11-15 23:12:43 +000029705 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029706if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029707 passed=`expr $passed + 1`
29708else
29709 failed=`expr $failed + 1`
29710fi
29711
29712
cristy8b350f62009-11-15 23:12:43 +000029713 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029714if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029715 passed=`expr $passed + 1`
29716else
29717 failed=`expr $failed + 1`
29718fi
29719
29720
cristy8b350f62009-11-15 23:12:43 +000029721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029722$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029723if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029724 $as_echo_n "(cached) " >&6
29725else
29726 ac_check_lib_save_LIBS=$LIBS
29727LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029729/* end confdefs.h. */
29730
29731/* Override any GCC internal prototype to avoid an error.
29732 Use char because int might match the return type of a GCC
29733 builtin and then its argument prototype would still apply. */
29734#ifdef __cplusplus
29735extern "C"
29736#endif
29737char jpeg_read_header ();
29738int
29739main ()
29740{
29741return jpeg_read_header ();
29742 ;
29743 return 0;
29744}
29745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029746if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029747 ac_cv_lib_jpeg_jpeg_read_header=yes
29748else
cristy8b350f62009-11-15 23:12:43 +000029749 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029750fi
cristy8b350f62009-11-15 23:12:43 +000029751rm -f core conftest.err conftest.$ac_objext \
29752 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029753LIBS=$ac_check_lib_save_LIBS
29754fi
cristy8b350f62009-11-15 23:12:43 +000029755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029756$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029757if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029758 passed=`expr $passed + 1`
29759else
29760 failed=`expr $failed + 1`
29761fi
29762
29763
29764# Test for compatible JPEG library
29765if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029767$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029768if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029769 $as_echo_n "(cached) " >&6
29770else
cristy8b350f62009-11-15 23:12:43 +000029771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029772/* end confdefs.h. */
29773#include <stdio.h>
29774#include <stdlib.h>
29775#include <jpeglib.h>
29776
29777int
29778main ()
29779{
29780
29781#if JPEG_LIB_VERSION < 62
29782#error IJG JPEG library must be version 6b or newer!
29783#endif
29784return 0;
29785
29786 ;
29787 return 0;
29788}
29789_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029790if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029791 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29792else
cristy8b350f62009-11-15 23:12:43 +000029793 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029794fi
cristy3ed852e2009-09-05 21:47:34 +000029795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29796fi
cristy8b350f62009-11-15 23:12:43 +000029797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029798$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29799fi
cristy8b350f62009-11-15 23:12:43 +000029800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029801$as_echo_n "checking if JPEG package is complete... " >&6; }
29802 if test $passed -gt 0; then
29803 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29805$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029806 have_jpeg='no (failed tests)'
29807 else
29808 JPEG_LIBS='-ljpeg'
29809 LIBS="$JPEG_LIBS $LIBS"
29810
cristy8b350f62009-11-15 23:12:43 +000029811$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029812
cristyad38abe2012-12-23 23:03:21 +000029813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29814$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029815 have_jpeg='yes'
29816 fi
29817 else
cristyad38abe2012-12-23 23:03:21 +000029818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29819$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029820 fi
29821fi
cristy73bd4a52010-10-05 11:24:23 +000029822 if test "$have_jpeg" = 'yes'; then
29823 JPEG_DELEGATE_TRUE=
29824 JPEG_DELEGATE_FALSE='#'
29825else
29826 JPEG_DELEGATE_TRUE='#'
29827 JPEG_DELEGATE_FALSE=
29828fi
29829
cristy3ed852e2009-09-05 21:47:34 +000029830
29831
29832
29833#
cristy3ed852e2009-09-05 21:47:34 +000029834# Check for LCMS delegate library.
29835#
cristy71203402010-06-18 13:12:03 +000029836# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029837
29838# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029839if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029840 withval=$with_lcms; with_lcms=$withval
29841else
29842 with_lcms='yes'
29843fi
29844
cristy71203402010-06-18 13:12:03 +000029845if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029846 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29847fi
29848
cristy71203402010-06-18 13:12:03 +000029849# Disable LCMS2.
29850
29851# Check whether --with-lcms2 was given.
29852if test "${with_lcms2+set}" = set; then :
29853 withval=$with_lcms2; with_lcms2=$withval
29854else
29855 with_lcms2='yes'
29856fi
29857
29858if test "$with_lcms2" != 'yes' ; then
29859 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29860fi
29861
29862have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029863LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029864if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29866$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29868$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29870$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029871 failed=0
29872 passed=0
29873 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029874
29875 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029876 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029877if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029878 have_lcms_header='yes'
29879fi
29880
29881
29882 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029883
29884$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29885
cristy71203402010-06-18 13:12:03 +000029886 passed=`expr $passed + 1`
29887 fi
29888
29889 # Check for <lcms2/lcms2.h)
29890 if test "$have_lcms_header" != 'yes'; then
29891 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 +000029892if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029893 have_lcms_header='yes'
29894fi
29895
29896
cristy71203402010-06-18 13:12:03 +000029897 if test "$have_lcms_header" = 'yes'; then
29898 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029899
cristy71203402010-06-18 13:12:03 +000029900$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029901
cristy71203402010-06-18 13:12:03 +000029902 fi
cristyd09bcf92010-03-25 03:04:45 +000029903 fi
cristy71203402010-06-18 13:12:03 +000029904
29905 # Failed to find lcms header?
29906 if test "$have_lcms_header" != 'yes'; then
29907 failed=`expr $failed + 1`
29908 fi
29909
29910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29911$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029912if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029913 $as_echo_n "(cached) " >&6
29914else
29915 ac_check_lib_save_LIBS=$LIBS
29916LIBS="-llcms2 $LIBS"
29917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29918/* end confdefs.h. */
29919
29920/* Override any GCC internal prototype to avoid an error.
29921 Use char because int might match the return type of a GCC
29922 builtin and then its argument prototype would still apply. */
29923#ifdef __cplusplus
29924extern "C"
29925#endif
cristy71203402010-06-18 13:12:03 +000029926char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029927int
29928main ()
29929{
cristy71203402010-06-18 13:12:03 +000029930return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029931 ;
29932 return 0;
29933}
29934_ACEOF
29935if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029936 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029937else
cristy71203402010-06-18 13:12:03 +000029938 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029939fi
29940rm -f core conftest.err conftest.$ac_objext \
29941 conftest$ac_exeext conftest.$ac_ext
29942LIBS=$ac_check_lib_save_LIBS
29943fi
cristy71203402010-06-18 13:12:03 +000029944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29945$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029946if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029947 passed=`expr $passed + 1`
29948else
29949 failed=`expr $failed + 1`
29950fi
29951
cristy71203402010-06-18 13:12:03 +000029952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29953$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029954 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029955 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29957$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029958 have_lcms2='no (failed tests)'
29959 else
29960 LCMS_LIBS='-llcms2'
29961 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29963$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029964 have_lcms2='yes'
29965 fi
cristyd09bcf92010-03-25 03:04:45 +000029966 else
cristyad38abe2012-12-23 23:03:21 +000029967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29968$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029969 fi
29970fi
29971
cristy71203402010-06-18 13:12:03 +000029972#
29973# Check for LCMS v1 (1.11 or later)
29974#
29975if test $have_lcms2 = 'yes'; then
29976 with_lcms='no'
29977fi
29978
29979have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029980if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29982$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29984$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29986$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029987 failed=0
29988 passed=0
29989 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029990
29991 # Check for <lcms.h>
29992 if test "$have_lcms_header" != 'yes'; then
29993 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029994if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029995 have_lcms_header='yes'
29996fi
29997
29998
cristy71203402010-06-18 13:12:03 +000029999 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030000 passed=`expr $passed + 1`
30001
cristy8b350f62009-11-15 23:12:43 +000030002$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030003
cristy71203402010-06-18 13:12:03 +000030004 fi
30005 fi
30006
30007 # Check for <lcms/lcms.h>
30008 if test "$have_lcms_header" != 'yes'; then
30009 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 +000030010if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030011 have_lcms_header='yes'
30012fi
30013
30014
cristy71203402010-06-18 13:12:03 +000030015 if test "$have_lcms_header" = 'yes'; then
30016 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030017
cristy8b350f62009-11-15 23:12:43 +000030018$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030019
cristy71203402010-06-18 13:12:03 +000030020 fi
cristy3ed852e2009-09-05 21:47:34 +000030021 fi
cristy71203402010-06-18 13:12:03 +000030022
30023 # Failed to find lcms header?
30024 if test "$have_lcms_header" != 'yes'; then
30025 failed=`expr $failed + 1`
30026 fi
30027
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30029$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030030if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030031 $as_echo_n "(cached) " >&6
30032else
30033 ac_check_lib_save_LIBS=$LIBS
30034LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030036/* end confdefs.h. */
30037
30038/* Override any GCC internal prototype to avoid an error.
30039 Use char because int might match the return type of a GCC
30040 builtin and then its argument prototype would still apply. */
30041#ifdef __cplusplus
30042extern "C"
30043#endif
cristy71203402010-06-18 13:12:03 +000030044char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030045int
30046main ()
30047{
cristy71203402010-06-18 13:12:03 +000030048return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030049 ;
30050 return 0;
30051}
30052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030053if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030054 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030055else
cristy71203402010-06-18 13:12:03 +000030056 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030057fi
cristy8b350f62009-11-15 23:12:43 +000030058rm -f core conftest.err conftest.$ac_objext \
30059 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030060LIBS=$ac_check_lib_save_LIBS
30061fi
cristy71203402010-06-18 13:12:03 +000030062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30063$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030064if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030065 passed=`expr $passed + 1`
30066else
30067 failed=`expr $failed + 1`
30068fi
30069
cristy8b350f62009-11-15 23:12:43 +000030070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030071$as_echo_n "checking if LCMS package is complete... " >&6; }
30072 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030073 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30075$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030076 have_lcms='no (failed tests)'
30077 else
30078 LCMS_LIBS='-llcms'
30079 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30081$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030082 have_lcms='yes'
30083 fi
cristy3ed852e2009-09-05 21:47:34 +000030084 else
cristyad38abe2012-12-23 23:03:21 +000030085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30086$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030087 fi
30088fi
cristy71203402010-06-18 13:12:03 +000030089
cristy73bd4a52010-10-05 11:24:23 +000030090 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30091 LCMS_DELEGATE_TRUE=
30092 LCMS_DELEGATE_FALSE='#'
30093else
30094 LCMS_DELEGATE_TRUE='#'
30095 LCMS_DELEGATE_FALSE=
30096fi
30097
cristy71203402010-06-18 13:12:03 +000030098if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30099
30100$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30101
30102fi
30103
cristy3ed852e2009-09-05 21:47:34 +000030104
30105
30106
30107#
cristy99db3872014-01-01 15:11:34 +000030108# Check for the OpenJP2 delegate library.
30109#
30110
30111# Check whether --with-openjp2 was given.
30112if test "${with_openjp2+set}" = set; then :
30113 withval=$with_openjp2; with_openjp2=$withval
30114else
30115 with_openjp2='yes'
30116fi
30117
30118
30119if test "$with_openjp2" != 'yes'; then
30120 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30121fi
30122
30123have_openjp2='no'
30124LIBOPENJP2_CFLAGS=""
30125LIBOPENJP2_LIBS=""
30126LIBOPENJP2_PKG=""
30127if test "x$with_openjp2" = "xyes"; then
30128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30129$as_echo "-------------------------------------------------------------" >&6; }
30130
30131pkg_failed=no
30132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30133$as_echo_n "checking for LIBOPENJP2... " >&6; }
30134
30135if test -n "$LIBOPENJP2_CFLAGS"; then
30136 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30137 elif test -n "$PKG_CONFIG"; then
30138 if test -n "$PKG_CONFIG" && \
30139 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.0.0\""; } >&5
30140 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.0.0") 2>&5
30141 ac_status=$?
30142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30143 test $ac_status = 0; }; then
30144 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.0.0" 2>/dev/null`
30145else
30146 pkg_failed=yes
30147fi
30148 else
30149 pkg_failed=untried
30150fi
30151if test -n "$LIBOPENJP2_LIBS"; then
30152 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30153 elif test -n "$PKG_CONFIG"; then
30154 if test -n "$PKG_CONFIG" && \
30155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.0.0\""; } >&5
30156 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.0.0") 2>&5
30157 ac_status=$?
30158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30159 test $ac_status = 0; }; then
30160 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.0.0" 2>/dev/null`
30161else
30162 pkg_failed=yes
30163fi
30164 else
30165 pkg_failed=untried
30166fi
30167
30168
30169
30170if test $pkg_failed = yes; then
30171
30172if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30173 _pkg_short_errors_supported=yes
30174else
30175 _pkg_short_errors_supported=no
30176fi
30177 if test $_pkg_short_errors_supported = yes; then
30178 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.0.0" 2>&1`
30179 else
30180 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.0.0" 2>&1`
30181 fi
30182 # Put the nasty error message in config.log where it belongs
30183 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30184
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30186$as_echo "no" >&6; }
30187 have_openjp2=no
30188elif test $pkg_failed = untried; then
30189 have_openjp2=no
30190else
30191 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30192 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30194$as_echo "yes" >&6; }
30195 have_openjp2=yes
30196fi
30197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30198$as_echo "" >&6; }
30199fi
30200
30201if test "$have_openjp2" = 'yes'; then
30202
30203$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30204
30205 if test "$build_modules" = 'no'; then
30206 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30207 fi
30208fi
30209
30210 if test "$have_openjp2" = 'yes'; then
30211 LIBOPENJP2_DELEGATE_TRUE=
30212 LIBOPENJP2_DELEGATE_FALSE='#'
30213else
30214 LIBOPENJP2_DELEGATE_TRUE='#'
30215 LIBOPENJP2_DELEGATE_FALSE=
30216fi
30217
30218
30219
30220
30221
30222
30223#
cristy3ed852e2009-09-05 21:47:34 +000030224# Check for the LQR (Liquid Rescale) delegate library.
30225#
30226
30227# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030228if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030229 withval=$with_lqr; with_lqr=$withval
30230else
30231 with_lqr='yes'
30232fi
30233
30234
30235if test "$with_lqr" != 'yes'; then
30236 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30237fi
30238
30239have_lqr='no'
30240LQR_CFLAGS=""
30241LQR_LIBS=""
30242LQR_PKG=""
30243if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30245$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030246
30247pkg_failed=no
30248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30249$as_echo_n "checking for LQR... " >&6; }
30250
30251if test -n "$LQR_CFLAGS"; then
30252 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30253 elif test -n "$PKG_CONFIG"; then
30254 if test -n "$PKG_CONFIG" && \
30255 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30256 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30257 ac_status=$?
30258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30259 test $ac_status = 0; }; then
30260 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30261else
30262 pkg_failed=yes
30263fi
30264 else
30265 pkg_failed=untried
30266fi
30267if test -n "$LQR_LIBS"; then
30268 pkg_cv_LQR_LIBS="$LQR_LIBS"
30269 elif test -n "$PKG_CONFIG"; then
30270 if test -n "$PKG_CONFIG" && \
30271 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30272 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30273 ac_status=$?
30274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30275 test $ac_status = 0; }; then
30276 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30277else
30278 pkg_failed=yes
30279fi
30280 else
30281 pkg_failed=untried
30282fi
30283
30284
30285
30286if test $pkg_failed = yes; then
30287
30288if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30289 _pkg_short_errors_supported=yes
30290else
30291 _pkg_short_errors_supported=no
30292fi
30293 if test $_pkg_short_errors_supported = yes; then
30294 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30295 else
30296 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30297 fi
30298 # Put the nasty error message in config.log where it belongs
30299 echo "$LQR_PKG_ERRORS" >&5
30300
30301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30302$as_echo "no" >&6; }
30303 have_lqr=no
30304elif test $pkg_failed = untried; then
30305 have_lqr=no
30306else
30307 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30308 LQR_LIBS=$pkg_cv_LQR_LIBS
30309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30310$as_echo "yes" >&6; }
30311 have_lqr=yes
30312fi
cristyad38abe2012-12-23 23:03:21 +000030313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30314$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030315fi
30316
30317if test "$have_lqr" = 'yes'; then
30318
cristy8b350f62009-11-15 23:12:43 +000030319$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030320
30321 CFLAGS="$LQR_CFLAGS $CFLAGS"
30322fi
30323
cristy73bd4a52010-10-05 11:24:23 +000030324 if test "$have_lqr" = 'yes'; then
30325 LQR_DELEGATE_TRUE=
30326 LQR_DELEGATE_FALSE='#'
30327else
30328 LQR_DELEGATE_TRUE='#'
30329 LQR_DELEGATE_FALSE=
30330fi
30331
cristy3ed852e2009-09-05 21:47:34 +000030332
30333
30334
30335
cristy81beccd2011-10-03 18:17:24 +000030336# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030337
30338# Check whether --with-lzma was given.
30339if test "${with_lzma+set}" = set; then :
30340 withval=$with_lzma; with_lzma=$withval
30341else
30342 with_lzma='yes'
30343fi
30344
cristy81beccd2011-10-03 18:17:24 +000030345if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030346 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30347fi
30348
cristyb94e5002011-11-14 13:20:10 +000030349LZMA_PKG=""
30350if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30352$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030353
30354pkg_failed=no
30355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030356$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030357
30358if test -n "$LZMA_CFLAGS"; then
30359 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30360 elif test -n "$PKG_CONFIG"; then
30361 if test -n "$PKG_CONFIG" && \
30362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30363 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30364 ac_status=$?
30365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30366 test $ac_status = 0; }; then
30367 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30368else
30369 pkg_failed=yes
30370fi
30371 else
30372 pkg_failed=untried
30373fi
30374if test -n "$LZMA_LIBS"; then
30375 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30376 elif test -n "$PKG_CONFIG"; then
30377 if test -n "$PKG_CONFIG" && \
30378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30379 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30380 ac_status=$?
30381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30382 test $ac_status = 0; }; then
30383 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30384else
30385 pkg_failed=yes
30386fi
30387 else
30388 pkg_failed=untried
30389fi
30390
30391
30392
30393if test $pkg_failed = yes; then
30394
30395if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30396 _pkg_short_errors_supported=yes
30397else
30398 _pkg_short_errors_supported=no
30399fi
30400 if test $_pkg_short_errors_supported = yes; then
30401 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30402 else
30403 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30404 fi
30405 # Put the nasty error message in config.log where it belongs
30406 echo "$LZMA_PKG_ERRORS" >&5
30407
30408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30409$as_echo "no" >&6; }
30410 have_lzma=no
30411elif test $pkg_failed = untried; then
30412 have_lzma=no
30413else
30414 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30415 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30417$as_echo "yes" >&6; }
30418 have_lzma=yes
30419fi
cristyad38abe2012-12-23 23:03:21 +000030420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30421$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030422fi
30423
cristyb94e5002011-11-14 13:20:10 +000030424if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030425
30426$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30427
cristyc6722092012-10-14 00:19:31 +000030428 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030429 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030430 fi
cristyfbb0ef02010-12-19 02:32:11 +000030431fi
cristyb94e5002011-11-14 13:20:10 +000030432
cristyfbb0ef02010-12-19 02:32:11 +000030433 if test "$have_lzma" = 'yes'; then
30434 LZMA_DELEGATE_TRUE=
30435 LZMA_DELEGATE_FALSE='#'
30436else
30437 LZMA_DELEGATE_TRUE='#'
30438 LZMA_DELEGATE_FALSE=
30439fi
30440
30441
30442
30443
cristyb94e5002011-11-14 13:20:10 +000030444
cristy3ed852e2009-09-05 21:47:34 +000030445#
cristy854c9cf2013-08-10 21:03:06 +000030446# Check for MUPDF delegate library.
30447#
30448
30449# Check whether --with-mupdf was given.
30450if test "${with_mupdf+set}" = set; then :
30451 withval=$with_mupdf; with_mupdf=$withval
30452else
30453 with_mupdf='no'
30454fi
30455
30456
30457if test "$with_mupdf" != 'yes'; then
30458 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-mupdf=$with_mupdf "
30459fi
30460
30461have_mupdf='no'
30462MUPDF_LIBS=''
30463if test "$with_mupdf" != 'no'; then
30464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30465$as_echo "-------------------------------------------------------------" >&6; }
30466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MUPDF" >&5
30467$as_echo_n "checking for MUPDF... " >&6; }
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30469$as_echo "" >&6; }
30470 failed=0
30471 passed=0
30472 ac_fn_c_check_header_mongrel "$LINENO" "mupdf/fitz.h" "ac_cv_header_mupdf_fitz_h" "$ac_includes_default"
30473if test "x$ac_cv_header_mupdf_fitz_h" = xyes; then :
30474 passed=`expr $passed + 1`
30475else
30476 failed=`expr $failed + 1`
30477fi
30478
30479
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fz_new_context in -lmupdf" >&5
30481$as_echo_n "checking for fz_new_context in -lmupdf... " >&6; }
30482if ${ac_cv_lib_mupdf_fz_new_context+:} false; then :
30483 $as_echo_n "(cached) " >&6
30484else
30485 ac_check_lib_save_LIBS=$LIBS
30486LIBS="-lmupdf -lmupdf $FREETYPE_LIBS $LIBS"
30487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30488/* end confdefs.h. */
30489
30490/* Override any GCC internal prototype to avoid an error.
30491 Use char because int might match the return type of a GCC
30492 builtin and then its argument prototype would still apply. */
30493#ifdef __cplusplus
30494extern "C"
30495#endif
30496char fz_new_context ();
30497int
30498main ()
30499{
30500return fz_new_context ();
30501 ;
30502 return 0;
30503}
30504_ACEOF
30505if ac_fn_c_try_link "$LINENO"; then :
30506 ac_cv_lib_mupdf_fz_new_context=yes
30507else
30508 ac_cv_lib_mupdf_fz_new_context=no
30509fi
30510rm -f core conftest.err conftest.$ac_objext \
30511 conftest$ac_exeext conftest.$ac_ext
30512LIBS=$ac_check_lib_save_LIBS
30513fi
30514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mupdf_fz_new_context" >&5
30515$as_echo "$ac_cv_lib_mupdf_fz_new_context" >&6; }
30516if test "x$ac_cv_lib_mupdf_fz_new_context" = xyes; then :
30517 passed=`expr $passed + 1`
30518else
30519 failed=`expr $failed + 1`
30520fi
30521
30522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MUPDF package is complete" >&5
30523$as_echo_n "checking if MUPDF package is complete... " >&6; }
30524 if test $passed -gt 0; then
30525 if test $failed -gt 0; then
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30527$as_echo "no -- some components failed test" >&6; }
30528 have_mupdf='no (failed tests)'
30529 else
30530 MUPDF_LIBS='-lmupdf'
30531 LIBS="$MUPDF_LIBS $LIBS"
30532
30533$as_echo "#define MUPDF_DELEGATE 1" >>confdefs.h
30534
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30536$as_echo "yes" >&6; }
30537 have_mupdf='yes'
30538 fi
30539 else
30540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30541$as_echo "no" >&6; }
30542 fi
30543fi
30544 if test "$have_mupdf" = 'yes'; then
30545 MUPDF_DELEGATE_TRUE=
30546 MUPDF_DELEGATE_FALSE='#'
30547else
30548 MUPDF_DELEGATE_TRUE='#'
30549 MUPDF_DELEGATE_FALSE=
30550fi
30551
30552
30553
30554
30555#
cristy3ed852e2009-09-05 21:47:34 +000030556# Check for the OpenEXR delegate library.
30557#
30558
30559# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030560if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030561 withval=$with_openexr; with_openexr=$withval
30562else
30563 with_openexr='yes'
30564fi
30565
30566
30567if test "$with_openexr" != 'yes'; then
30568 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30569fi
30570
30571have_openexr='no'
30572OPENEXR_CFLAGS=""
30573OPENEXR_LIBS=""
30574OPENEXR_PKG=""
30575if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30577$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030578
30579pkg_failed=no
30580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30581$as_echo_n "checking for OPENEXR... " >&6; }
30582
30583if test -n "$OPENEXR_CFLAGS"; then
30584 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30585 elif test -n "$PKG_CONFIG"; then
30586 if test -n "$PKG_CONFIG" && \
30587 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30588 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30589 ac_status=$?
30590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30591 test $ac_status = 0; }; then
30592 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30593else
30594 pkg_failed=yes
30595fi
30596 else
30597 pkg_failed=untried
30598fi
30599if test -n "$OPENEXR_LIBS"; then
30600 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30601 elif test -n "$PKG_CONFIG"; then
30602 if test -n "$PKG_CONFIG" && \
30603 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30604 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30605 ac_status=$?
30606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30607 test $ac_status = 0; }; then
30608 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30609else
30610 pkg_failed=yes
30611fi
30612 else
30613 pkg_failed=untried
30614fi
30615
30616
30617
30618if test $pkg_failed = yes; then
30619
30620if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30621 _pkg_short_errors_supported=yes
30622else
30623 _pkg_short_errors_supported=no
30624fi
30625 if test $_pkg_short_errors_supported = yes; then
30626 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30627 else
30628 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30629 fi
30630 # Put the nasty error message in config.log where it belongs
30631 echo "$OPENEXR_PKG_ERRORS" >&5
30632
30633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30634$as_echo "no" >&6; }
30635 have_openexr=no
30636elif test $pkg_failed = untried; then
30637 have_openexr=no
30638else
30639 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30640 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30642$as_echo "yes" >&6; }
30643 have_openexr=yes
30644fi
cristyad38abe2012-12-23 23:03:21 +000030645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30646$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030647fi
30648
30649if test "$have_openexr" = 'yes'; then
30650
cristy8b350f62009-11-15 23:12:43 +000030651$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030652
cristyc6722092012-10-14 00:19:31 +000030653 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030654 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30655 fi
30656fi
30657
cristy73bd4a52010-10-05 11:24:23 +000030658 if test "$have_openexr" = 'yes'; then
30659 OPENEXR_DELEGATE_TRUE=
30660 OPENEXR_DELEGATE_FALSE='#'
30661else
30662 OPENEXR_DELEGATE_TRUE='#'
30663 OPENEXR_DELEGATE_FALSE=
30664fi
30665
cristy3ed852e2009-09-05 21:47:34 +000030666
30667
30668
30669
30670#
cristy41cbe8a2011-10-27 01:35:18 +000030671# Check for PANGO delegate library.
30672#
30673
30674# Check whether --with-pango was given.
30675if test "${with_pango+set}" = set; then :
30676 withval=$with_pango; with_pango=$withval
30677else
cristyfc3d0222012-02-07 15:05:57 +000030678 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030679fi
30680
30681
30682if test "$with_pango" != 'yes'; then
30683 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30684fi
30685
30686have_pango='no'
cristya054b762012-03-26 23:16:00 +000030687have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030688PANGO_CFLAGS=""
30689PANGO_LIBS=""
30690PANGO_PKG=""
30691if test "x$with_pango" = "xyes"; then
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30693$as_echo "-------------------------------------------------------------" >&6; }
30694
30695pkg_failed=no
30696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30697$as_echo_n "checking for PANGO... " >&6; }
30698
30699if test -n "$PANGO_CFLAGS"; then
30700 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30701 elif test -n "$PKG_CONFIG"; then
30702 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030703 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30704 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030705 ac_status=$?
30706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30707 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030708 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030709else
30710 pkg_failed=yes
30711fi
30712 else
30713 pkg_failed=untried
30714fi
30715if test -n "$PANGO_LIBS"; then
30716 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30717 elif test -n "$PKG_CONFIG"; then
30718 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30720 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030721 ac_status=$?
30722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30723 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030724 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030725else
30726 pkg_failed=yes
30727fi
30728 else
30729 pkg_failed=untried
30730fi
30731
30732
30733
30734if test $pkg_failed = yes; then
30735
30736if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30737 _pkg_short_errors_supported=yes
30738else
30739 _pkg_short_errors_supported=no
30740fi
30741 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030742 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030743 else
cristya054b762012-03-26 23:16:00 +000030744 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030745 fi
30746 # Put the nasty error message in config.log where it belongs
30747 echo "$PANGO_PKG_ERRORS" >&5
30748
30749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30750$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030751 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030752elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030753 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030754else
30755 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30756 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30758$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030759 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030760fi
30761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30762$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030763
30764pkg_failed=no
30765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30766$as_echo_n "checking for PANGO... " >&6; }
30767
30768if test -n "$PANGO_CFLAGS"; then
30769 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30770 elif test -n "$PKG_CONFIG"; then
30771 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030772 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30773 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030774 ac_status=$?
30775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30776 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030777 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030778else
30779 pkg_failed=yes
30780fi
30781 else
30782 pkg_failed=untried
30783fi
30784if test -n "$PANGO_LIBS"; then
30785 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30786 elif test -n "$PKG_CONFIG"; then
30787 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030788 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30789 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030790 ac_status=$?
30791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30792 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030793 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030794else
30795 pkg_failed=yes
30796fi
30797 else
30798 pkg_failed=untried
30799fi
30800
30801
30802
30803if test $pkg_failed = yes; then
30804
30805if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30806 _pkg_short_errors_supported=yes
30807else
30808 _pkg_short_errors_supported=no
30809fi
30810 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030811 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030812 else
cristy2542fc62011-12-06 17:50:25 +000030813 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030814 fi
30815 # Put the nasty error message in config.log where it belongs
30816 echo "$PANGO_PKG_ERRORS" >&5
30817
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30819$as_echo "no" >&6; }
30820 have_pango=no
30821elif test $pkg_failed = untried; then
30822 have_pango=no
30823else
30824 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30825 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30827$as_echo "yes" >&6; }
30828 have_pango=yes
30829fi
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30831$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030832fi
30833
30834if test "$have_pango" = 'yes'; then
30835
30836$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30837
cristyc6722092012-10-14 00:19:31 +000030838 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030839 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30840 fi
30841fi
30842
cristya054b762012-03-26 23:16:00 +000030843if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030844
cristya054b762012-03-26 23:16:00 +000030845$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030846
cristyc6722092012-10-14 00:19:31 +000030847 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030848 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030849 fi
30850fi
30851
30852 if test "$have_pango" = 'yes'; then
30853 PANGO_DELEGATE_TRUE=
30854 PANGO_DELEGATE_FALSE='#'
30855else
30856 PANGO_DELEGATE_TRUE='#'
30857 PANGO_DELEGATE_FALSE=
30858fi
30859
cristya054b762012-03-26 23:16:00 +000030860 if test "$have_pangocairo" = 'yes'; then
30861 PANGOCAIRO_DELEGATE_TRUE=
30862 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030863else
cristya054b762012-03-26 23:16:00 +000030864 PANGOCAIRO_DELEGATE_TRUE='#'
30865 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030866fi
30867
30868
30869
30870
30871
30872#
cristy3ed852e2009-09-05 21:47:34 +000030873# Check for PNG delegate library.
30874#
30875
30876# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030877if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030878 withval=$with_png; with_png=$withval
30879else
30880 with_png='yes'
30881fi
30882
30883
30884if test "$with_png" != 'yes'; then
30885 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30886fi
30887
cristy81beccd2011-10-03 18:17:24 +000030888have_png='no'
30889PNG_LIBS=''
30890
30891if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30893$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30895$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30897$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030898 failed=0
30899 passed=0
30900 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30901if test "x$ac_cv_header_png_h" = xyes; then :
30902 passed=`expr $passed + 1`
30903else
30904 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030905fi
30906
cristy81beccd2011-10-03 18:17:24 +000030907
30908
30909 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030910 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030911 if test "$have_png" = 'no' ; then
30912 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030913 pnglib='png'
30914 else
30915 pnglib="png1${var}"
30916 fi
30917
30918# Test for compatible LIBPNG library
30919 failed=0
30920 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030921 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030922 if test "${pnglib}" != 'png' ; then
30923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30924$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30926/* end confdefs.h. */
30927#include <stdio.h>
30928#include <stdlib.h>
30929#include <png.h>
30930
30931int
30932main ()
30933{
30934
30935#if PNG_LIBPNG_VER_MINOR != ${var}
30936#error LIBPNG library must be version 1${var}!
30937Kaboom, Kaboom
30938#endif
30939return 0;
30940
30941 ;
30942 return 0;
30943}
30944_ACEOF
30945if ac_fn_c_try_compile "$LINENO"; then :
30946 ac_cv_libpng_ok='yes'
30947else
30948 ac_cv_libpng_ok='no'
30949fi
30950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30951 if test "$ac_cv_libpng_ok" = 'yes' ; then
30952 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30954$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030955 else
30956 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30958$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030959 fi
30960 else
30961 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30963$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030964 fi
30965 fi
30966
30967 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030968 if test "1${var}" = '17' ; then
30969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30970$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30971if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30972 $as_echo_n "(cached) " >&6
30973else
30974 ac_check_lib_save_LIBS=$LIBS
30975LIBS="-lpng17 $LIBS"
30976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30977/* end confdefs.h. */
30978
30979/* Override any GCC internal prototype to avoid an error.
30980 Use char because int might match the return type of a GCC
30981 builtin and then its argument prototype would still apply. */
30982#ifdef __cplusplus
30983extern "C"
30984#endif
30985char png_get_io_ptr ();
30986int
30987main ()
30988{
30989return png_get_io_ptr ();
30990 ;
30991 return 0;
30992}
30993_ACEOF
30994if ac_fn_c_try_link "$LINENO"; then :
30995 ac_cv_lib_png17_png_get_io_ptr=yes
30996else
30997 ac_cv_lib_png17_png_get_io_ptr=no
30998fi
30999rm -f core conftest.err conftest.$ac_objext \
31000 conftest$ac_exeext conftest.$ac_ext
31001LIBS=$ac_check_lib_save_LIBS
31002fi
31003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31004$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31005if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31006 passed=`expr $passed + 1`
31007else
31008 failed=`expr $failed + 1`
31009fi
31010
31011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31012$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31013if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31014 $as_echo_n "(cached) " >&6
31015else
31016 ac_check_lib_save_LIBS=$LIBS
31017LIBS="-lpng17 $LIBS"
31018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31019/* end confdefs.h. */
31020
31021/* Override any GCC internal prototype to avoid an error.
31022 Use char because int might match the return type of a GCC
31023 builtin and then its argument prototype would still apply. */
31024#ifdef __cplusplus
31025extern "C"
31026#endif
31027char png_longjmp ();
31028int
31029main ()
31030{
31031return png_longjmp ();
31032 ;
31033 return 0;
31034}
31035_ACEOF
31036if ac_fn_c_try_link "$LINENO"; then :
31037 ac_cv_lib_png17_png_longjmp=yes
31038else
31039 ac_cv_lib_png17_png_longjmp=no
31040fi
31041rm -f core conftest.err conftest.$ac_objext \
31042 conftest$ac_exeext conftest.$ac_ext
31043LIBS=$ac_check_lib_save_LIBS
31044fi
31045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31046$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31047if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31048 passed=`expr $passed + 1`
31049else
31050 failed=`expr $failed + 1`
31051fi
31052
31053 fi
31054 if test "1${var}" = '16' ; then
31055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31056$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31057if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31058 $as_echo_n "(cached) " >&6
31059else
31060 ac_check_lib_save_LIBS=$LIBS
31061LIBS="-lpng16 $LIBS"
31062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31063/* end confdefs.h. */
31064
31065/* Override any GCC internal prototype to avoid an error.
31066 Use char because int might match the return type of a GCC
31067 builtin and then its argument prototype would still apply. */
31068#ifdef __cplusplus
31069extern "C"
31070#endif
31071char png_get_io_ptr ();
31072int
31073main ()
31074{
31075return png_get_io_ptr ();
31076 ;
31077 return 0;
31078}
31079_ACEOF
31080if ac_fn_c_try_link "$LINENO"; then :
31081 ac_cv_lib_png16_png_get_io_ptr=yes
31082else
31083 ac_cv_lib_png16_png_get_io_ptr=no
31084fi
31085rm -f core conftest.err conftest.$ac_objext \
31086 conftest$ac_exeext conftest.$ac_ext
31087LIBS=$ac_check_lib_save_LIBS
31088fi
31089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31090$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31091if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31092 passed=`expr $passed + 1`
31093else
31094 failed=`expr $failed + 1`
31095fi
31096
31097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31098$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31099if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31100 $as_echo_n "(cached) " >&6
31101else
31102 ac_check_lib_save_LIBS=$LIBS
31103LIBS="-lpng16 $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_longjmp ();
31114int
31115main ()
31116{
31117return png_longjmp ();
31118 ;
31119 return 0;
31120}
31121_ACEOF
31122if ac_fn_c_try_link "$LINENO"; then :
31123 ac_cv_lib_png16_png_longjmp=yes
31124else
31125 ac_cv_lib_png16_png_longjmp=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_png16_png_longjmp" >&5
31132$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31133if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31134 passed=`expr $passed + 1`
31135else
31136 failed=`expr $failed + 1`
31137fi
31138
31139 fi
cristy81beccd2011-10-03 18:17:24 +000031140 if test "1${var}" = '15' ; then
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31142$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31143if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31144 $as_echo_n "(cached) " >&6
31145else
31146 ac_check_lib_save_LIBS=$LIBS
31147LIBS="-lpng15 $LIBS"
31148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31149/* end confdefs.h. */
31150
31151/* Override any GCC internal prototype to avoid an error.
31152 Use char because int might match the return type of a GCC
31153 builtin and then its argument prototype would still apply. */
31154#ifdef __cplusplus
31155extern "C"
31156#endif
31157char png_get_io_ptr ();
31158int
31159main ()
31160{
31161return png_get_io_ptr ();
31162 ;
31163 return 0;
31164}
31165_ACEOF
31166if ac_fn_c_try_link "$LINENO"; then :
31167 ac_cv_lib_png15_png_get_io_ptr=yes
31168else
31169 ac_cv_lib_png15_png_get_io_ptr=no
31170fi
31171rm -f core conftest.err conftest.$ac_objext \
31172 conftest$ac_exeext conftest.$ac_ext
31173LIBS=$ac_check_lib_save_LIBS
31174fi
31175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31176$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31177if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31178 passed=`expr $passed + 1`
31179else
31180 failed=`expr $failed + 1`
31181fi
31182
31183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31184$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31185if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31186 $as_echo_n "(cached) " >&6
31187else
31188 ac_check_lib_save_LIBS=$LIBS
31189LIBS="-lpng15 $LIBS"
31190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31191/* end confdefs.h. */
31192
31193/* Override any GCC internal prototype to avoid an error.
31194 Use char because int might match the return type of a GCC
31195 builtin and then its argument prototype would still apply. */
31196#ifdef __cplusplus
31197extern "C"
31198#endif
31199char png_longjmp ();
31200int
31201main ()
31202{
31203return png_longjmp ();
31204 ;
31205 return 0;
31206}
31207_ACEOF
31208if ac_fn_c_try_link "$LINENO"; then :
31209 ac_cv_lib_png15_png_longjmp=yes
31210else
31211 ac_cv_lib_png15_png_longjmp=no
31212fi
31213rm -f core conftest.err conftest.$ac_objext \
31214 conftest$ac_exeext conftest.$ac_ext
31215LIBS=$ac_check_lib_save_LIBS
31216fi
31217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31218$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31219if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31220 passed=`expr $passed + 1`
31221else
31222 failed=`expr $failed + 1`
31223fi
31224
31225 fi
31226 if test "1${var}" = '14' ; then
31227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31228$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31229if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31230 $as_echo_n "(cached) " >&6
31231else
31232 ac_check_lib_save_LIBS=$LIBS
31233LIBS="-lpng14 $LIBS"
31234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31235/* end confdefs.h. */
31236
31237/* Override any GCC internal prototype to avoid an error.
31238 Use char because int might match the return type of a GCC
31239 builtin and then its argument prototype would still apply. */
31240#ifdef __cplusplus
31241extern "C"
31242#endif
31243char png_get_io_ptr ();
31244int
31245main ()
31246{
31247return png_get_io_ptr ();
31248 ;
31249 return 0;
31250}
31251_ACEOF
31252if ac_fn_c_try_link "$LINENO"; then :
31253 ac_cv_lib_png14_png_get_io_ptr=yes
31254else
31255 ac_cv_lib_png14_png_get_io_ptr=no
31256fi
31257rm -f core conftest.err conftest.$ac_objext \
31258 conftest$ac_exeext conftest.$ac_ext
31259LIBS=$ac_check_lib_save_LIBS
31260fi
31261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31262$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31263if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31264 passed=`expr $passed + 1`
31265else
31266 failed=`expr $failed + 1`
31267fi
31268
31269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31270$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31271if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31272 $as_echo_n "(cached) " >&6
31273else
31274 ac_check_lib_save_LIBS=$LIBS
31275LIBS="-lpng14 $LIBS"
31276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31277/* end confdefs.h. */
31278
31279/* Override any GCC internal prototype to avoid an error.
31280 Use char because int might match the return type of a GCC
31281 builtin and then its argument prototype would still apply. */
31282#ifdef __cplusplus
31283extern "C"
31284#endif
31285char png_get_io_state ();
31286int
31287main ()
31288{
31289return png_get_io_state ();
31290 ;
31291 return 0;
31292}
31293_ACEOF
31294if ac_fn_c_try_link "$LINENO"; then :
31295 ac_cv_lib_png14_png_get_io_state=yes
31296else
31297 ac_cv_lib_png14_png_get_io_state=no
31298fi
31299rm -f core conftest.err conftest.$ac_objext \
31300 conftest$ac_exeext conftest.$ac_ext
31301LIBS=$ac_check_lib_save_LIBS
31302fi
31303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31304$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31305if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31306 passed=`expr $passed + 1`
31307else
31308 failed=`expr $failed + 1`
31309fi
31310
31311 fi
31312 if test "1${var}" = '12' ; then
31313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31314$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31315if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31316 $as_echo_n "(cached) " >&6
31317else
31318 ac_check_lib_save_LIBS=$LIBS
31319LIBS="-lpng12 $LIBS"
31320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31321/* end confdefs.h. */
31322
31323/* Override any GCC internal prototype to avoid an error.
31324 Use char because int might match the return type of a GCC
31325 builtin and then its argument prototype would still apply. */
31326#ifdef __cplusplus
31327extern "C"
31328#endif
31329char png_get_io_ptr ();
31330int
31331main ()
31332{
31333return png_get_io_ptr ();
31334 ;
31335 return 0;
31336}
31337_ACEOF
31338if ac_fn_c_try_link "$LINENO"; then :
31339 ac_cv_lib_png12_png_get_io_ptr=yes
31340else
31341 ac_cv_lib_png12_png_get_io_ptr=no
31342fi
31343rm -f core conftest.err conftest.$ac_objext \
31344 conftest$ac_exeext conftest.$ac_ext
31345LIBS=$ac_check_lib_save_LIBS
31346fi
31347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31348$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31349if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31350 passed=`expr $passed + 1`
31351else
31352 failed=`expr $failed + 1`
31353fi
31354
31355 fi
31356 if test "1${var}" = '1' ; then
31357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31358$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31359if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31360 $as_echo_n "(cached) " >&6
31361else
31362 ac_check_lib_save_LIBS=$LIBS
31363LIBS="-lpng $LIBS"
31364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31365/* end confdefs.h. */
31366
31367/* Override any GCC internal prototype to avoid an error.
31368 Use char because int might match the return type of a GCC
31369 builtin and then its argument prototype would still apply. */
31370#ifdef __cplusplus
31371extern "C"
31372#endif
31373char png_get_io_ptr ();
31374int
31375main ()
31376{
31377return png_get_io_ptr ();
31378 ;
31379 return 0;
31380}
31381_ACEOF
31382if ac_fn_c_try_link "$LINENO"; then :
31383 ac_cv_lib_png_png_get_io_ptr=yes
31384else
31385 ac_cv_lib_png_png_get_io_ptr=no
31386fi
31387rm -f core conftest.err conftest.$ac_objext \
31388 conftest$ac_exeext conftest.$ac_ext
31389LIBS=$ac_check_lib_save_LIBS
31390fi
31391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31392$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31393if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31394 passed=`expr $passed + 1`
31395else
31396 failed=`expr $failed + 1`
31397fi
31398
31399 fi
31400 if test $passed -gt 0 -a $failed -le 0 ; then
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31402$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31403 if test $passed -gt 0 ; then
31404 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31406$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031407 have_png='no (failed tests)'
31408 else
31409 PNG_LIBS="-l${pnglib}"
31410 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031411
cristy8b350f62009-11-15 23:12:43 +000031412$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031413
cristyad38abe2012-12-23 23:03:21 +000031414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31415$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031416 have_png='yes'
31417 fi
31418 fi
31419 fi
31420 fi
31421 fi
31422 done
31423 fi
cristy3ed852e2009-09-05 21:47:34 +000031424fi
cristy64877302011-08-23 19:10:31 +000031425
cristy73bd4a52010-10-05 11:24:23 +000031426 if test "$have_png" = 'yes'; then
31427 PNG_DELEGATE_TRUE=
31428 PNG_DELEGATE_FALSE='#'
31429else
31430 PNG_DELEGATE_TRUE='#'
31431 PNG_DELEGATE_FALSE=
31432fi
31433
cristy3ed852e2009-09-05 21:47:34 +000031434
cristy50d3f5c2011-09-10 20:09:06 +000031435
cristy3ed852e2009-09-05 21:47:34 +000031436
31437
31438#
31439# Check for RSVG delegate library.
31440#
31441
31442# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031443if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031444 withval=$with_rsvg; with_rsvg=$withval
31445else
cristy1164d5f2012-08-15 00:58:25 +000031446 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031447fi
31448
31449
31450if test "$with_rsvg" != 'yes'; then
31451 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31452fi
31453
31454have_rsvg='no'
31455have_cairo='no'
31456RSVG_CFLAGS=""
31457RSVG_LIBS=""
31458RSVG_PKG=""
31459if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31461$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031462
31463pkg_failed=no
31464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31465$as_echo_n "checking for RSVG... " >&6; }
31466
31467if test -n "$RSVG_CFLAGS"; then
31468 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31469 elif test -n "$PKG_CONFIG"; then
31470 if test -n "$PKG_CONFIG" && \
31471 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31472 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31473 ac_status=$?
31474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31475 test $ac_status = 0; }; then
31476 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31477else
31478 pkg_failed=yes
31479fi
31480 else
31481 pkg_failed=untried
31482fi
31483if test -n "$RSVG_LIBS"; then
31484 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31485 elif test -n "$PKG_CONFIG"; then
31486 if test -n "$PKG_CONFIG" && \
31487 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31488 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31489 ac_status=$?
31490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31491 test $ac_status = 0; }; then
31492 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31493else
31494 pkg_failed=yes
31495fi
31496 else
31497 pkg_failed=untried
31498fi
31499
31500
31501
31502if test $pkg_failed = yes; then
31503
31504if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31505 _pkg_short_errors_supported=yes
31506else
31507 _pkg_short_errors_supported=no
31508fi
31509 if test $_pkg_short_errors_supported = yes; then
31510 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31511 else
31512 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31513 fi
31514 # Put the nasty error message in config.log where it belongs
31515 echo "$RSVG_PKG_ERRORS" >&5
31516
31517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31518$as_echo "no" >&6; }
31519 have_rsvg=no
31520elif test $pkg_failed = untried; then
31521 have_rsvg=no
31522else
31523 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31524 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31526$as_echo "yes" >&6; }
31527 have_rsvg=yes
31528fi
cristyad38abe2012-12-23 23:03:21 +000031529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31530$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031531
31532pkg_failed=no
31533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31534$as_echo_n "checking for CAIRO_SVG... " >&6; }
31535
31536if test -n "$CAIRO_SVG_CFLAGS"; then
31537 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31538 elif test -n "$PKG_CONFIG"; then
31539 if test -n "$PKG_CONFIG" && \
31540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31541 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31542 ac_status=$?
31543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31544 test $ac_status = 0; }; then
31545 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31546else
31547 pkg_failed=yes
31548fi
31549 else
31550 pkg_failed=untried
31551fi
31552if test -n "$CAIRO_SVG_LIBS"; then
31553 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31554 elif test -n "$PKG_CONFIG"; then
31555 if test -n "$PKG_CONFIG" && \
31556 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31557 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31558 ac_status=$?
31559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31560 test $ac_status = 0; }; then
31561 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31562else
31563 pkg_failed=yes
31564fi
31565 else
31566 pkg_failed=untried
31567fi
31568
31569
31570
31571if test $pkg_failed = yes; then
31572
31573if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31574 _pkg_short_errors_supported=yes
31575else
31576 _pkg_short_errors_supported=no
31577fi
31578 if test $_pkg_short_errors_supported = yes; then
31579 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31580 else
31581 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31582 fi
31583 # Put the nasty error message in config.log where it belongs
31584 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31585
31586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31587$as_echo "no" >&6; }
31588 have_cairo=no
31589elif test $pkg_failed = untried; then
31590 have_cairo=no
31591else
31592 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31593 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31595$as_echo "yes" >&6; }
31596 have_cairo=yes
31597fi
cristyad38abe2012-12-23 23:03:21 +000031598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31599$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031600fi
31601
31602if test "$have_rsvg" = 'yes'; then
31603
cristy8b350f62009-11-15 23:12:43 +000031604$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031605
cristyc6722092012-10-14 00:19:31 +000031606 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031607 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31608 fi
31609fi
31610
31611if test "$have_cairo" = 'yes'; then
31612
cristy8b350f62009-11-15 23:12:43 +000031613$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031614
cristyc6722092012-10-14 00:19:31 +000031615 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031616 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31617 fi
31618fi
31619
cristy73bd4a52010-10-05 11:24:23 +000031620 if test "$have_rsvg" = 'yes'; then
31621 RSVG_DELEGATE_TRUE=
31622 RSVG_DELEGATE_FALSE='#'
31623else
31624 RSVG_DELEGATE_TRUE='#'
31625 RSVG_DELEGATE_FALSE=
31626fi
31627
31628 if test "$have_cairo" = 'yes'; then
31629 CAIRO_DELEGATE_TRUE=
31630 CAIRO_DELEGATE_FALSE='#'
31631else
31632 CAIRO_DELEGATE_TRUE='#'
31633 CAIRO_DELEGATE_FALSE=
31634fi
31635
cristy3ed852e2009-09-05 21:47:34 +000031636
31637
31638
31639
31640#
31641# Check for TIFF delegate library.
31642#
31643
31644# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031645if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031646 withval=$with_tiff; with_tiff=$withval
31647else
31648 with_tiff='yes'
31649fi
31650
31651
31652if test "$with_tiff" != 'yes'; then
31653 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31654fi
31655
31656have_tiff='no'
31657TIFF_LIBS=''
31658if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31660$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031662$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31664$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031665 failed=0
31666 passed=0
cristy8b350f62009-11-15 23:12:43 +000031667 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031668if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031669 passed=`expr $passed + 1`
31670else
31671 failed=`expr $failed + 1`
31672fi
31673
31674
cristy8b350f62009-11-15 23:12:43 +000031675 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031676if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031677 passed=`expr $passed + 1`
31678else
31679 failed=`expr $failed + 1`
31680fi
31681
31682
cristy8b350f62009-11-15 23:12:43 +000031683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031684$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031685if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031686 $as_echo_n "(cached) " >&6
31687else
31688 ac_check_lib_save_LIBS=$LIBS
31689LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031691/* end confdefs.h. */
31692
31693/* Override any GCC internal prototype to avoid an error.
31694 Use char because int might match the return type of a GCC
31695 builtin and then its argument prototype would still apply. */
31696#ifdef __cplusplus
31697extern "C"
31698#endif
31699char TIFFOpen ();
31700int
31701main ()
31702{
31703return TIFFOpen ();
31704 ;
31705 return 0;
31706}
31707_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031708if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031709 ac_cv_lib_tiff_TIFFOpen=yes
31710else
cristy8b350f62009-11-15 23:12:43 +000031711 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031712fi
cristy8b350f62009-11-15 23:12:43 +000031713rm -f core conftest.err conftest.$ac_objext \
31714 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031715LIBS=$ac_check_lib_save_LIBS
31716fi
cristy8b350f62009-11-15 23:12:43 +000031717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031718$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031719if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031720 passed=`expr $passed + 1`
31721else
31722 failed=`expr $failed + 1`
31723fi
31724
cristy8b350f62009-11-15 23:12:43 +000031725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031726$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031727if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031728 $as_echo_n "(cached) " >&6
31729else
31730 ac_check_lib_save_LIBS=$LIBS
31731LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031733/* end confdefs.h. */
31734
31735/* Override any GCC internal prototype to avoid an error.
31736 Use char because int might match the return type of a GCC
31737 builtin and then its argument prototype would still apply. */
31738#ifdef __cplusplus
31739extern "C"
31740#endif
31741char TIFFClientOpen ();
31742int
31743main ()
31744{
31745return TIFFClientOpen ();
31746 ;
31747 return 0;
31748}
31749_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031750if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031751 ac_cv_lib_tiff_TIFFClientOpen=yes
31752else
cristy8b350f62009-11-15 23:12:43 +000031753 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031754fi
cristy8b350f62009-11-15 23:12:43 +000031755rm -f core conftest.err conftest.$ac_objext \
31756 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031757LIBS=$ac_check_lib_save_LIBS
31758fi
cristy8b350f62009-11-15 23:12:43 +000031759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031760$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031761if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031762 passed=`expr $passed + 1`
31763else
31764 failed=`expr $failed + 1`
31765fi
31766
cristy8b350f62009-11-15 23:12:43 +000031767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031768$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031769if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031770 $as_echo_n "(cached) " >&6
31771else
31772 ac_check_lib_save_LIBS=$LIBS
31773LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031775/* end confdefs.h. */
31776
31777/* Override any GCC internal prototype to avoid an error.
31778 Use char because int might match the return type of a GCC
31779 builtin and then its argument prototype would still apply. */
31780#ifdef __cplusplus
31781extern "C"
31782#endif
31783char TIFFIsByteSwapped ();
31784int
31785main ()
31786{
31787return TIFFIsByteSwapped ();
31788 ;
31789 return 0;
31790}
31791_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031792if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031793 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31794else
cristy8b350f62009-11-15 23:12:43 +000031795 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031796fi
cristy8b350f62009-11-15 23:12:43 +000031797rm -f core conftest.err conftest.$ac_objext \
31798 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031799LIBS=$ac_check_lib_save_LIBS
31800fi
cristy8b350f62009-11-15 23:12:43 +000031801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031802$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031803if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031804 passed=`expr $passed + 1`
31805else
31806 failed=`expr $failed + 1`
31807fi
31808
cristy8b350f62009-11-15 23:12:43 +000031809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031810$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031811if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031812 $as_echo_n "(cached) " >&6
31813else
31814 ac_check_lib_save_LIBS=$LIBS
31815LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031817/* end confdefs.h. */
31818
31819/* Override any GCC internal prototype to avoid an error.
31820 Use char because int might match the return type of a GCC
31821 builtin and then its argument prototype would still apply. */
31822#ifdef __cplusplus
31823extern "C"
31824#endif
31825char TIFFReadRGBATile ();
31826int
31827main ()
31828{
31829return TIFFReadRGBATile ();
31830 ;
31831 return 0;
31832}
31833_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031834if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031835 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31836else
cristy8b350f62009-11-15 23:12:43 +000031837 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031838fi
cristy8b350f62009-11-15 23:12:43 +000031839rm -f core conftest.err conftest.$ac_objext \
31840 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031841LIBS=$ac_check_lib_save_LIBS
31842fi
cristy8b350f62009-11-15 23:12:43 +000031843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031844$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031845if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031846 passed=`expr $passed + 1`
31847else
31848 failed=`expr $failed + 1`
31849fi
31850
cristy8b350f62009-11-15 23:12:43 +000031851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031852$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031853if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031854 $as_echo_n "(cached) " >&6
31855else
31856 ac_check_lib_save_LIBS=$LIBS
31857LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031859/* end confdefs.h. */
31860
31861/* Override any GCC internal prototype to avoid an error.
31862 Use char because int might match the return type of a GCC
31863 builtin and then its argument prototype would still apply. */
31864#ifdef __cplusplus
31865extern "C"
31866#endif
31867char TIFFReadRGBAStrip ();
31868int
31869main ()
31870{
31871return TIFFReadRGBAStrip ();
31872 ;
31873 return 0;
31874}
31875_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031876if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031877 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31878else
cristy8b350f62009-11-15 23:12:43 +000031879 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031880fi
cristy8b350f62009-11-15 23:12:43 +000031881rm -f core conftest.err conftest.$ac_objext \
31882 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031883LIBS=$ac_check_lib_save_LIBS
31884fi
cristy8b350f62009-11-15 23:12:43 +000031885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031886$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031887if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031888 passed=`expr $passed + 1`
31889else
31890 failed=`expr $failed + 1`
31891fi
31892
cristy8b350f62009-11-15 23:12:43 +000031893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031894$as_echo_n "checking if TIFF package is complete... " >&6; }
31895 if test $passed -gt 0; then
31896 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31898$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031899 have_tiff='no (failed tests)'
31900 else
31901 TIFF_LIBS='-ltiff'
31902 LIBS="$TIFF_LIBS $LIBS"
31903
cristy8b350f62009-11-15 23:12:43 +000031904$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031905
cristyad38abe2012-12-23 23:03:21 +000031906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31907$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031908 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031909 for ac_header in tiffconf.h
31910do :
31911 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031912if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031913 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031914#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031915_ACEOF
31916
31917fi
31918
31919done
31920
cristy8b350f62009-11-15 23:12:43 +000031921 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031922 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31923 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31924 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031925do :
31926 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31927ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031928if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031929 cat >>confdefs.h <<_ACEOF
31930#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31931_ACEOF
31932
31933fi
31934done
31935
31936 fi
31937 else
cristyad38abe2012-12-23 23:03:21 +000031938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31939$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031940 fi
31941fi
cristy73bd4a52010-10-05 11:24:23 +000031942 if test "$have_tiff" = 'yes'; then
31943 TIFF_DELEGATE_TRUE=
31944 TIFF_DELEGATE_FALSE='#'
31945else
31946 TIFF_DELEGATE_TRUE='#'
31947 TIFF_DELEGATE_FALSE=
31948fi
31949
cristy3ed852e2009-09-05 21:47:34 +000031950
31951
31952
31953#
cristyb1860752011-03-14 00:27:46 +000031954# Check for WEBP delegate library.
31955#
31956
31957# Check whether --with-webp was given.
31958if test "${with_webp+set}" = set; then :
31959 withval=$with_webp; with_webp=$withval
31960else
31961 with_webp='yes'
31962fi
31963
31964
31965if test "$with_webp" != 'yes'; then
31966 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31967fi
31968
31969have_webp='no'
31970WEBP_LIBS=''
31971if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31973$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31975$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31977$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031978 failed=0
31979 passed=0
31980 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31981if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31982 passed=`expr $passed + 1`
31983else
31984 failed=`expr $failed + 1`
31985fi
31986
31987
cristy6d670312013-03-22 23:23:01 +000031988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31989$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31990if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031991 $as_echo_n "(cached) " >&6
31992else
31993 ac_check_lib_save_LIBS=$LIBS
31994LIBS="-lwebp $LIBS"
31995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31996/* end confdefs.h. */
31997
31998/* Override any GCC internal prototype to avoid an error.
31999 Use char because int might match the return type of a GCC
32000 builtin and then its argument prototype would still apply. */
32001#ifdef __cplusplus
32002extern "C"
32003#endif
cristy6d670312013-03-22 23:23:01 +000032004char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032005int
32006main ()
32007{
cristy6d670312013-03-22 23:23:01 +000032008return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032009 ;
32010 return 0;
32011}
32012_ACEOF
32013if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032014 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032015else
cristy6d670312013-03-22 23:23:01 +000032016 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032017fi
32018rm -f core conftest.err conftest.$ac_objext \
32019 conftest$ac_exeext conftest.$ac_ext
32020LIBS=$ac_check_lib_save_LIBS
32021fi
cristy6d670312013-03-22 23:23:01 +000032022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32023$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32024if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032025 passed=`expr $passed + 1`
32026else
32027 failed=`expr $failed + 1`
32028fi
32029
32030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32031$as_echo_n "checking if WEBP package is complete... " >&6; }
32032 if test $passed -gt 0; then
32033 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32035$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032036 have_webp='no (failed tests)'
32037 else
32038 WEBP_LIBS='-lwebp'
32039 LIBS="$WEBP_LIBS $LIBS"
32040
32041$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32042
cristyad38abe2012-12-23 23:03:21 +000032043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32044$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032045 have_webp='yes'
32046 fi
32047 else
cristyad38abe2012-12-23 23:03:21 +000032048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32049$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032050 fi
32051fi
32052 if test "$have_webp" = 'yes'; then
32053 WEBP_DELEGATE_TRUE=
32054 WEBP_DELEGATE_FALSE='#'
32055else
32056 WEBP_DELEGATE_TRUE='#'
32057 WEBP_DELEGATE_FALSE=
32058fi
32059
32060
32061
32062
32063#
cristy3ed852e2009-09-05 21:47:34 +000032064# Set Windows font directory.
32065#
32066
32067# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032068if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032069 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32070else
32071 with_windows_font_dir=''
32072fi
32073
32074if test "$with_windows_font_dir" != '' ; then
32075 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32076fi
32077
32078
32079#
32080# Check for WMF delegate library.
32081#
32082
32083# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032084if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032085 withval=$with_wmf; with_wmf=$withval
32086else
cristyfc3d0222012-02-07 15:05:57 +000032087 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032088fi
32089
32090
32091if test "$with_wmf" != 'yes'; then
32092 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32093fi
32094
32095have_wmf='no'
32096WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032097WMF_LIBS_DEPS=''
32098OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032099if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32101$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032103$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32105$as_echo "" >&6; }
32106 have_libwmf='no'
32107 have_libwmflite='no'
32108 have_libwmf_ipa_h='no'
32109
32110 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32111"
32112if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32113 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032114fi
32115
32116
cristy03f7cf92011-12-15 01:40:41 +000032117 if test "$have_libwmf_ipa_h" = 'yes'; then
32118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32119$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32120if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032121 $as_echo_n "(cached) " >&6
32122else
32123 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032124LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032126/* end confdefs.h. */
32127
32128/* Override any GCC internal prototype to avoid an error.
32129 Use char because int might match the return type of a GCC
32130 builtin and then its argument prototype would still apply. */
32131#ifdef __cplusplus
32132extern "C"
32133#endif
cristy03f7cf92011-12-15 01:40:41 +000032134char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032135int
32136main ()
32137{
cristy03f7cf92011-12-15 01:40:41 +000032138return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032139 ;
32140 return 0;
32141}
32142_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032143if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032144 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032145else
cristy03f7cf92011-12-15 01:40:41 +000032146 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032147fi
cristy8b350f62009-11-15 23:12:43 +000032148rm -f core conftest.err conftest.$ac_objext \
32149 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032150LIBS=$ac_check_lib_save_LIBS
32151fi
cristy03f7cf92011-12-15 01:40:41 +000032152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32153$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32154if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32155 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032156fi
32157
cristy03f7cf92011-12-15 01:40:41 +000032158 if test "$have_libwmflite" = 'yes'; then
32159
32160$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32161
32162 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032163 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032164 have_wmf='yes'
32165 else
32166 WMF_LIBS_DEPS=''
32167 WMF_CONFIG_LIBS=`libwmf-config --libs`
32168 for lib in xml2 expat freetype jpeg png z; do
32169 testlib="-l${lib}"
32170 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32171 done
32172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32173$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32174if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32175 $as_echo_n "(cached) " >&6
32176else
32177 ac_check_lib_save_LIBS=$LIBS
32178LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32180/* end confdefs.h. */
32181
32182/* Override any GCC internal prototype to avoid an error.
32183 Use char because int might match the return type of a GCC
32184 builtin and then its argument prototype would still apply. */
32185#ifdef __cplusplus
32186extern "C"
32187#endif
32188char wmf_api_create ();
32189int
32190main ()
32191{
32192return wmf_api_create ();
32193 ;
32194 return 0;
32195}
32196_ACEOF
32197if ac_fn_c_try_link "$LINENO"; then :
32198 ac_cv_lib_wmf_wmf_api_create=yes
32199else
32200 ac_cv_lib_wmf_wmf_api_create=no
32201fi
32202rm -f core conftest.err conftest.$ac_objext \
32203 conftest$ac_exeext conftest.$ac_ext
32204LIBS=$ac_check_lib_save_LIBS
32205fi
32206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32207$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32208if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32209 have_libwmf='yes'
32210fi
32211
32212 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032213
cristy8b350f62009-11-15 23:12:43 +000032214$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032215
cristy03f7cf92011-12-15 01:40:41 +000032216 WMF_LIBS='-lwmf'
32217 LIBS="$WMF_LIBS $LIBS"
32218 have_wmf='yes'
32219 else
32220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32221$as_echo "no -- some components failed test" >&6; }
32222 have_wmf='no (failed tests)'
32223 have_wmflite='no (failed tests)'
32224 LIBS="$OLIBS"
32225 WMF_LIBS=''
32226 fi
glennrp33e524b2011-08-24 17:41:57 +000032227 fi
cristy03f7cf92011-12-15 01:40:41 +000032228 fi
32229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32230$as_echo_n "checking if WMF package is complete... " >&6; }
32231 if test "$have_wmf" = 'yes'; then
32232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32233$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032234 else
cristy03f7cf92011-12-15 01:40:41 +000032235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32236$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032237 fi
cristy3ed852e2009-09-05 21:47:34 +000032238fi
cristy73bd4a52010-10-05 11:24:23 +000032239 if test "$have_wmf" = 'yes'; then
32240 WMF_DELEGATE_TRUE=
32241 WMF_DELEGATE_FALSE='#'
32242else
32243 WMF_DELEGATE_TRUE='#'
32244 WMF_DELEGATE_FALSE=
32245fi
32246
cristy3ed852e2009-09-05 21:47:34 +000032247
32248
32249
cristy81beccd2011-10-03 18:17:24 +000032250
32251
cristy3ed852e2009-09-05 21:47:34 +000032252#
32253# Check for XML delegate library.
32254#
32255
32256# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032257if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032258 withval=$with_xml; with_xml=$withval
32259else
cristyfc3d0222012-02-07 15:05:57 +000032260 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032261fi
32262
32263
cristy81beccd2011-10-03 18:17:24 +000032264if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032265 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32266fi
32267
cristy81beccd2011-10-03 18:17:24 +000032268have_xml='no'
32269XML_LIBS=''
32270if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32272$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32274$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32276$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032277 PERSIST_LDFLAGS=$LDFLAGS
32278 PERSIST_CPPFLAGS=$CPPFLAGS
32279 xml2_config=''
32280 # Extract the first word of "xml2-config", so it can be a program name with args.
32281set dummy xml2-config; ac_word=$2
32282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32283$as_echo_n "checking for $ac_word... " >&6; }
32284if ${ac_cv_path_xml2_config+:} false; then :
32285 $as_echo_n "(cached) " >&6
32286else
32287 case $xml2_config in
32288 [\\/]* | ?:[\\/]*)
32289 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32290 ;;
32291 *)
32292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32293for as_dir in $PATH
32294do
32295 IFS=$as_save_IFS
32296 test -z "$as_dir" && as_dir=.
32297 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032299 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32301 break 2
32302 fi
32303done
32304 done
32305IFS=$as_save_IFS
32306
32307 ;;
32308esac
32309fi
32310xml2_config=$ac_cv_path_xml2_config
32311if test -n "$xml2_config"; then
32312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32313$as_echo "$xml2_config" >&6; }
32314else
32315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32316$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032317fi
32318
cristy81beccd2011-10-03 18:17:24 +000032319 if test -n "$xml2_config"; then
32320 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32321 # the shared library installed under /usr/lib, whereas the package
32322 # installs itself under $prefix/libxml and $prefix/lib.
32323 xml2_prefix=`xml2-config --prefix`
32324 if test -d "${xml2_prefix}/include/libxml2"; then
32325 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32326 fi
32327 if test "${xml2_prefix}" != '/usr'; then
32328 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32329 fi
32330 fi
32331 failed=0
32332 passed=0
32333 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32334if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32335 passed=`expr $passed + 1`
32336else
32337 failed=`expr $failed + 1`
32338fi
32339
32340
32341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32342$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32343if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32344 $as_echo_n "(cached) " >&6
32345else
32346 ac_check_lib_save_LIBS=$LIBS
32347LIBS="-lxml2 $LIBS"
32348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32349/* end confdefs.h. */
32350
32351/* Override any GCC internal prototype to avoid an error.
32352 Use char because int might match the return type of a GCC
32353 builtin and then its argument prototype would still apply. */
32354#ifdef __cplusplus
32355extern "C"
32356#endif
32357char xmlSAXVersion ();
32358int
32359main ()
32360{
32361return xmlSAXVersion ();
32362 ;
32363 return 0;
32364}
32365_ACEOF
32366if ac_fn_c_try_link "$LINENO"; then :
32367 ac_cv_lib_xml2_xmlSAXVersion=yes
32368else
32369 ac_cv_lib_xml2_xmlSAXVersion=no
32370fi
32371rm -f core conftest.err conftest.$ac_objext \
32372 conftest$ac_exeext conftest.$ac_ext
32373LIBS=$ac_check_lib_save_LIBS
32374fi
32375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32376$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32377if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32378 passed=`expr $passed + 1`
32379else
32380 failed=`expr $failed + 1`
32381fi
32382
32383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32384$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32385if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32386 $as_echo_n "(cached) " >&6
32387else
32388 ac_check_lib_save_LIBS=$LIBS
32389LIBS="-lxml2 $LIBS"
32390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32391/* end confdefs.h. */
32392
32393/* Override any GCC internal prototype to avoid an error.
32394 Use char because int might match the return type of a GCC
32395 builtin and then its argument prototype would still apply. */
32396#ifdef __cplusplus
32397extern "C"
32398#endif
32399char xmlParseChunk ();
32400int
32401main ()
32402{
32403return xmlParseChunk ();
32404 ;
32405 return 0;
32406}
32407_ACEOF
32408if ac_fn_c_try_link "$LINENO"; then :
32409 ac_cv_lib_xml2_xmlParseChunk=yes
32410else
32411 ac_cv_lib_xml2_xmlParseChunk=no
32412fi
32413rm -f core conftest.err conftest.$ac_objext \
32414 conftest$ac_exeext conftest.$ac_ext
32415LIBS=$ac_check_lib_save_LIBS
32416fi
32417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32418$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32419if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32420 passed=`expr $passed + 1`
32421else
32422 failed=`expr $failed + 1`
32423fi
32424
32425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32426$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32427if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32428 $as_echo_n "(cached) " >&6
32429else
32430 ac_check_lib_save_LIBS=$LIBS
32431LIBS="-lxml2 $LIBS"
32432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32433/* end confdefs.h. */
32434
32435/* Override any GCC internal prototype to avoid an error.
32436 Use char because int might match the return type of a GCC
32437 builtin and then its argument prototype would still apply. */
32438#ifdef __cplusplus
32439extern "C"
32440#endif
32441char xmlCreatePushParserCtxt ();
32442int
32443main ()
32444{
32445return xmlCreatePushParserCtxt ();
32446 ;
32447 return 0;
32448}
32449_ACEOF
32450if ac_fn_c_try_link "$LINENO"; then :
32451 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32452else
32453 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32454fi
32455rm -f core conftest.err conftest.$ac_objext \
32456 conftest$ac_exeext conftest.$ac_ext
32457LIBS=$ac_check_lib_save_LIBS
32458fi
32459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32460$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32461if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32462 passed=`expr $passed + 1`
32463else
32464 failed=`expr $failed + 1`
32465fi
32466
32467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32468$as_echo_n "checking if XML package is complete... " >&6; }
32469 if test $passed -gt 0; then
32470 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32472$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032473 have_xml='no (failed tests)'
32474 LDFLAGS="$PERSIST_LDFLAGS"
32475 CPPFLAGS="$PERSIST_CPPFLAGS"
32476 else
32477 XML_LIBS='-lxml2'
32478 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032479
cristy8b350f62009-11-15 23:12:43 +000032480$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032481
cristyad38abe2012-12-23 23:03:21 +000032482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32483$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032484 have_xml='yes'
32485 fi
32486 else
cristyad38abe2012-12-23 23:03:21 +000032487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32488$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032489 fi
32490fi
cristy73bd4a52010-10-05 11:24:23 +000032491 if test "$have_xml" = 'yes'; then
32492 XML_DELEGATE_TRUE=
32493 XML_DELEGATE_FALSE='#'
32494else
32495 XML_DELEGATE_TRUE='#'
32496 XML_DELEGATE_FALSE=
32497fi
32498
cristy3ed852e2009-09-05 21:47:34 +000032499
32500
32501
32502# Substitute compiler name to build/link PerlMagick
32503#
32504
32505
32506#
32507# Configure install Paths
32508#
cristy7def36a2011-10-28 19:04:41 +000032509
cristy2a11bef2011-10-28 18:33:11 +000032510# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032511INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032512INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32513DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032514case "${build_os}" in
32515 mingw* )
32516 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32517 ;;
32518esac
32519
32520cat >>confdefs.h <<_ACEOF
32521#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32522_ACEOF
32523
32524
cristy3ed852e2009-09-05 21:47:34 +000032525
cristye52f12f2012-12-31 15:32:36 +000032526# Path to ImageMagick header files (arch part)
32527INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32528DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32529case "${build_os}" in
32530 mingw* )
32531 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32532 ;;
32533esac
32534
32535cat >>confdefs.h <<_ACEOF
32536#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32537_ACEOF
32538
32539
32540
cristy3ed852e2009-09-05 21:47:34 +000032541# Subdirectory under lib to place ImageMagick lib files
32542LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32543
32544cat >>confdefs.h <<_ACEOF
32545#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32546_ACEOF
32547
32548
32549# Path to ImageMagick bin directory
32550EXECUTABLE_PATH="${BIN_DIR}"
32551DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32552case "${build_os}" in
32553 mingw* )
32554 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32555 ;;
32556esac
32557
32558cat >>confdefs.h <<_ACEOF
32559#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32560_ACEOF
32561
32562
32563
32564# Path to ImageMagick lib
32565LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32566DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32567case "${build_os}" in
32568 mingw* )
32569 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32570 ;;
32571esac
32572
32573cat >>confdefs.h <<_ACEOF
32574#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32575_ACEOF
32576
32577
32578
cristy3ed852e2009-09-05 21:47:34 +000032579#
cristy8d0ff762013-03-10 20:33:28 +000032580# path to local binaries
32581if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32582 LIB_BIN_BASEDIRNAME="bin"
32583fi
32584
32585cat >>confdefs.h <<_ACEOF
32586#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32587_ACEOF
32588
32589
32590
32591if test "x$LIB_BIN_DIR" = "x"; then
32592 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32593fi
32594
32595
32596LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32597
32598LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32599
32600
32601#
cristy01ff9f32012-12-01 18:15:29 +000032602# path to modules lib
32603if test "x$MODULES_BASEDIRNAME" = "x"; then
32604 MODULES_BASEDIRNAME="modules"
32605fi
cristy3ed852e2009-09-05 21:47:34 +000032606
32607cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032608#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032609_ACEOF
32610
cristy01ff9f32012-12-01 18:15:29 +000032611
32612
32613if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032614 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32615else
cristy3ed852e2009-09-05 21:47:34 +000032616
32617cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032618#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032619_ACEOF
32620
cristycf4a3c22012-12-02 21:47:25 +000032621fi
cristy01ff9f32012-12-01 18:15:29 +000032622
32623
cristy371d4812012-12-01 19:48:10 +000032624MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032625
32626MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32627
32628
32629#
32630# path to coders lib
32631if test "x$CODER_DIRNAME" = "x"; then
32632 CODER_DIRNAME="coders"
32633fi
32634
32635cat >>confdefs.h <<_ACEOF
32636#define CODER_DIRNAME "$CODER_DIRNAME"
32637_ACEOF
32638
32639
32640
cristy371d4812012-12-01 19:48:10 +000032641CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032642CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032643
32644
32645#
32646# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032647#
32648# path to coders lib
32649if test "x$FILTER_DIRNAME" = "x"; then
32650 FILTER_DIRNAME="filters"
32651fi
cristy3ed852e2009-09-05 21:47:34 +000032652
32653cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032654#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032655_ACEOF
32656
cristy3ed852e2009-09-05 21:47:34 +000032657
cristy3ed852e2009-09-05 21:47:34 +000032658
cristy371d4812012-12-01 19:48:10 +000032659FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032660FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032661
32662
32663#
32664# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032665DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032666DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32667DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032668case "${build_os}" in
32669 mingw* )
32670 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32671 ;;
32672esac
32673
32674cat >>confdefs.h <<_ACEOF
32675#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32676_ACEOF
32677
32678
32679
cristydd17feb2014-03-05 02:06:32 +000032680#
32681# Enable/Disable documentation
32682# Check whether --enable-docs was given.
32683if test "${enable_docs+set}" = set; then :
32684 enableval=$enable_docs; wantdocs=$enableval
32685else
cristy02272312014-03-07 00:55:25 +000032686 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000032687fi
32688
cristy02272312014-03-07 00:55:25 +000032689 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000032690 INSTALL_DOC_TRUE=
32691 INSTALL_DOC_FALSE='#'
32692else
32693 INSTALL_DOC_TRUE='#'
32694 INSTALL_DOC_FALSE=
32695fi
32696
32697
cristy2a11bef2011-10-28 18:33:11 +000032698# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032699CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032700
32701cat >>confdefs.h <<_ACEOF
32702#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32703_ACEOF
32704
cristy7def36a2011-10-28 19:04:41 +000032705CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032706DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32707case "${build_os}" in
32708 mingw* )
32709 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32710 ;;
32711esac
32712
32713cat >>confdefs.h <<_ACEOF
32714#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32715_ACEOF
32716
32717
32718
cristy2a11bef2011-10-28 18:33:11 +000032719# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032720SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032721
32722cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032723#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032724_ACEOF
32725
cristy670aa3c2011-11-03 00:54:00 +000032726SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032727DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032728case "${build_os}" in
32729 mingw* )
cristy4f820712011-04-01 12:35:43 +000032730 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032731 ;;
32732esac
32733
32734cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032735#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032736_ACEOF
32737
32738
32739
cristy54378032012-12-04 15:52:20 +000032740#
32741# Subdirectory to place architecture-dependent configuration files.
32742if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32743 SHAREARCH_BASEDIRNAME="config"
32744fi
cristy670aa3c2011-11-03 00:54:00 +000032745
32746cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032747#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032748_ACEOF
32749
cristy54378032012-12-04 15:52:20 +000032750
32751
32752if test "x$SHAREARCH_DIRNAME" = "x"; then
32753 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32754else
cristy670aa3c2011-11-03 00:54:00 +000032755
32756cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032757#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032758_ACEOF
32759
cristy54378032012-12-04 15:52:20 +000032760fi
32761
32762
32763SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32764
32765SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032766
32767
cristy3ed852e2009-09-05 21:47:34 +000032768#
32769# program_transform_name is formed for use in a Makefile, so create a
32770# modified version for use in a shell script.
32771configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32772
32773# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32775$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032777$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32779$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032780AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032781BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032782BZIPDelegateDefault='bzip2'
32783BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032784CatDelegateDefault='cat'
32785DNGDecodeDelegateDefault='ufraw-batch'
32786GVCDecodeDelegateDefault='dot'
32787DVIDecodeDelegateDefault='dvips'
32788EchoDelegateDefault='echo'
32789EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032790ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32791DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32792MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32793GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032794HPGLDecodeDelegateDefault='hp2xx'
32795HTMLDecodeDelegateDefault='html2ps'
32796ILBMDecodeDelegateDefault='ilbmtoppm'
32797ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032798JXRDecodeDelegateDefault='JxrDecApp'
32799JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032800LPDelegateDefault='lp'
32801LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032802LaunchDelegateDefault='gimp'
32803MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032804MPEGDecodeDelegateDefault='avconv'
32805MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032806MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032807MVDelegateDefault='mv'
32808PCLDelegateDefault='pcl6'
32809PGPDecodeDelegateDefault='pgpv'
32810POVDelegateDefault='povray'
32811if test "$native_win32_build" = 'yes'; then
32812 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032813elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032814 PSDelegateDefault='gsc'
32815else
32816 PSDelegateDefault='gs'
32817fi
32818RLEEncodeDelegateDefault='rawtorle'
32819RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032820RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032821SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032822SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032823TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032824UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032825WebPDecodeDelegateDefault='dwebp'
32826WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032827WMFDecodeDelegateDefault='wmf2eps'
32828WWWDecodeDelegateDefault='curl'
32829XPSDelegateDefault='gxps'
32830ZipDelegateDefault='gzip'
32831
32832# Search for delegates
32833# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32834set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032836$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032837if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032838 $as_echo_n "(cached) " >&6
32839else
32840 case $AutotraceDecodeDelegate in
32841 [\\/]* | ?:[\\/]*)
32842 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32843 ;;
32844 *)
32845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32846for as_dir in $PATH
32847do
32848 IFS=$as_save_IFS
32849 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032852 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032854 break 2
32855 fi
32856done
cristy8b350f62009-11-15 23:12:43 +000032857 done
cristy3ed852e2009-09-05 21:47:34 +000032858IFS=$as_save_IFS
32859
32860 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32861 ;;
32862esac
32863fi
32864AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32865if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032867$as_echo "$AutotraceDecodeDelegate" >&6; }
32868else
cristy8b350f62009-11-15 23:12:43 +000032869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032870$as_echo "no" >&6; }
32871fi
32872
32873
cristy3ed852e2009-09-05 21:47:34 +000032874# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32875set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032877$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032878if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032879 $as_echo_n "(cached) " >&6
32880else
32881 case $BlenderDecodeDelegate in
32882 [\\/]* | ?:[\\/]*)
32883 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32884 ;;
32885 *)
32886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32887for as_dir in $PATH
32888do
32889 IFS=$as_save_IFS
32890 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032891 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032893 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032895 break 2
32896 fi
32897done
cristy8b350f62009-11-15 23:12:43 +000032898 done
cristy3ed852e2009-09-05 21:47:34 +000032899IFS=$as_save_IFS
32900
32901 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32902 ;;
32903esac
32904fi
32905BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32906if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032908$as_echo "$BlenderDecodeDelegate" >&6; }
32909else
cristy8b350f62009-11-15 23:12:43 +000032910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911$as_echo "no" >&6; }
32912fi
32913
32914
32915# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32916set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032918$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032919if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032920 $as_echo_n "(cached) " >&6
32921else
32922 case $BZIPDelegate in
32923 [\\/]* | ?:[\\/]*)
32924 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32925 ;;
32926 *)
32927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32928for as_dir in $PATH
32929do
32930 IFS=$as_save_IFS
32931 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032932 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032934 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032936 break 2
32937 fi
32938done
cristy8b350f62009-11-15 23:12:43 +000032939 done
cristy3ed852e2009-09-05 21:47:34 +000032940IFS=$as_save_IFS
32941
32942 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32943 ;;
32944esac
32945fi
32946BZIPDelegate=$ac_cv_path_BZIPDelegate
32947if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032949$as_echo "$BZIPDelegate" >&6; }
32950else
cristy8b350f62009-11-15 23:12:43 +000032951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo "no" >&6; }
32953fi
32954
32955
cristyc59f0e72012-08-27 12:59:33 +000032956for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32957do
32958 # Extract the first word of "$ac_prog", so it can be a program name with args.
32959set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032961$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032962if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032963 $as_echo_n "(cached) " >&6
32964else
32965 case $BrowseDelegate in
32966 [\\/]* | ?:[\\/]*)
32967 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32968 ;;
32969 *)
32970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32971for as_dir in $PATH
32972do
32973 IFS=$as_save_IFS
32974 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032977 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032979 break 2
32980 fi
32981done
cristy8b350f62009-11-15 23:12:43 +000032982 done
cristy3ed852e2009-09-05 21:47:34 +000032983IFS=$as_save_IFS
32984
cristy3ed852e2009-09-05 21:47:34 +000032985 ;;
32986esac
32987fi
32988BrowseDelegate=$ac_cv_path_BrowseDelegate
32989if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032991$as_echo "$BrowseDelegate" >&6; }
32992else
cristy8b350f62009-11-15 23:12:43 +000032993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032994$as_echo "no" >&6; }
32995fi
32996
32997
cristyc59f0e72012-08-27 12:59:33 +000032998 test -n "$BrowseDelegate" && break
32999done
33000test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33001
cristy3ed852e2009-09-05 21:47:34 +000033002# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33003set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033005$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033006if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033007 $as_echo_n "(cached) " >&6
33008else
33009 case $CatDelegate in
33010 [\\/]* | ?:[\\/]*)
33011 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33012 ;;
33013 *)
33014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33015for as_dir in $PATH
33016do
33017 IFS=$as_save_IFS
33018 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033021 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033023 break 2
33024 fi
33025done
cristy8b350f62009-11-15 23:12:43 +000033026 done
cristy3ed852e2009-09-05 21:47:34 +000033027IFS=$as_save_IFS
33028
33029 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33030 ;;
33031esac
33032fi
33033CatDelegate=$ac_cv_path_CatDelegate
33034if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033036$as_echo "$CatDelegate" >&6; }
33037else
cristy8b350f62009-11-15 23:12:43 +000033038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033039$as_echo "no" >&6; }
33040fi
33041
33042
33043# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33044set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033046$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033047if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033048 $as_echo_n "(cached) " >&6
33049else
33050 case $DNGDecodeDelegate in
33051 [\\/]* | ?:[\\/]*)
33052 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33053 ;;
33054 *)
33055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33056for as_dir in $PATH
33057do
33058 IFS=$as_save_IFS
33059 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033060 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033062 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033064 break 2
33065 fi
33066done
cristy8b350f62009-11-15 23:12:43 +000033067 done
cristy3ed852e2009-09-05 21:47:34 +000033068IFS=$as_save_IFS
33069
33070 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33071 ;;
33072esac
33073fi
33074DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33075if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033077$as_echo "$DNGDecodeDelegate" >&6; }
33078else
cristy8b350f62009-11-15 23:12:43 +000033079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033080$as_echo "no" >&6; }
33081fi
33082
33083
33084# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33085set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033088if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033089 $as_echo_n "(cached) " >&6
33090else
33091 case $GVCDecodeDelegate in
33092 [\\/]* | ?:[\\/]*)
33093 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33094 ;;
33095 *)
33096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33097for as_dir in $PATH
33098do
33099 IFS=$as_save_IFS
33100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033103 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033105 break 2
33106 fi
33107done
cristy8b350f62009-11-15 23:12:43 +000033108 done
cristy3ed852e2009-09-05 21:47:34 +000033109IFS=$as_save_IFS
33110
33111 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33112 ;;
33113esac
33114fi
33115GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33116if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033118$as_echo "$GVCDecodeDelegate" >&6; }
33119else
cristy8b350f62009-11-15 23:12:43 +000033120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033121$as_echo "no" >&6; }
33122fi
33123
33124
33125# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33126set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033129if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033130 $as_echo_n "(cached) " >&6
33131else
33132 case $DVIDecodeDelegate in
33133 [\\/]* | ?:[\\/]*)
33134 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33135 ;;
33136 *)
33137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33138for as_dir in $PATH
33139do
33140 IFS=$as_save_IFS
33141 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033144 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033146 break 2
33147 fi
33148done
cristy8b350f62009-11-15 23:12:43 +000033149 done
cristy3ed852e2009-09-05 21:47:34 +000033150IFS=$as_save_IFS
33151
33152 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33153 ;;
33154esac
33155fi
33156DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33157if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033159$as_echo "$DVIDecodeDelegate" >&6; }
33160else
cristy8b350f62009-11-15 23:12:43 +000033161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033162$as_echo "no" >&6; }
33163fi
33164
33165
33166# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33167set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033169$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033170if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033171 $as_echo_n "(cached) " >&6
33172else
33173 case $EchoDelegate in
33174 [\\/]* | ?:[\\/]*)
33175 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33176 ;;
33177 *)
33178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33179for as_dir in $PATH
33180do
33181 IFS=$as_save_IFS
33182 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033183 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033185 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033187 break 2
33188 fi
33189done
cristy8b350f62009-11-15 23:12:43 +000033190 done
cristy3ed852e2009-09-05 21:47:34 +000033191IFS=$as_save_IFS
33192
33193 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33194 ;;
33195esac
33196fi
33197EchoDelegate=$ac_cv_path_EchoDelegate
33198if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033200$as_echo "$EchoDelegate" >&6; }
33201else
cristy8b350f62009-11-15 23:12:43 +000033202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033203$as_echo "no" >&6; }
33204fi
33205
33206
33207# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33208set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033210$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033211if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033212 $as_echo_n "(cached) " >&6
33213else
33214 case $EditorDelegate in
33215 [\\/]* | ?:[\\/]*)
33216 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33217 ;;
33218 *)
33219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33220for as_dir in $PATH
33221do
33222 IFS=$as_save_IFS
33223 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033226 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033228 break 2
33229 fi
33230done
cristy8b350f62009-11-15 23:12:43 +000033231 done
cristy3ed852e2009-09-05 21:47:34 +000033232IFS=$as_save_IFS
33233
33234 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33235 ;;
33236esac
33237fi
33238EditorDelegate=$ac_cv_path_EditorDelegate
33239if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033241$as_echo "$EditorDelegate" >&6; }
33242else
cristy8b350f62009-11-15 23:12:43 +000033243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033244$as_echo "no" >&6; }
33245fi
33246
33247
cristy3ed852e2009-09-05 21:47:34 +000033248# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33249set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033251$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033252if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033253 $as_echo_n "(cached) " >&6
33254else
33255 case $ConvertDelegate in
33256 [\\/]* | ?:[\\/]*)
33257 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33258 ;;
33259 *)
33260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33261for as_dir in $PATH
33262do
33263 IFS=$as_save_IFS
33264 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033267 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033269 break 2
33270 fi
33271done
cristy8b350f62009-11-15 23:12:43 +000033272 done
cristy3ed852e2009-09-05 21:47:34 +000033273IFS=$as_save_IFS
33274
33275 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33276 ;;
33277esac
33278fi
33279ConvertDelegate=$ac_cv_path_ConvertDelegate
33280if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033282$as_echo "$ConvertDelegate" >&6; }
33283else
cristy8b350f62009-11-15 23:12:43 +000033284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033285$as_echo "no" >&6; }
33286fi
33287
33288
33289# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33290set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033292$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033293if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033294 $as_echo_n "(cached) " >&6
33295else
33296 case $DisplayDelegate in
33297 [\\/]* | ?:[\\/]*)
33298 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33299 ;;
33300 *)
33301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33302for as_dir in $PATH
33303do
33304 IFS=$as_save_IFS
33305 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033306 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033308 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033310 break 2
33311 fi
33312done
cristy8b350f62009-11-15 23:12:43 +000033313 done
cristy3ed852e2009-09-05 21:47:34 +000033314IFS=$as_save_IFS
33315
33316 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33317 ;;
33318esac
33319fi
33320DisplayDelegate=$ac_cv_path_DisplayDelegate
33321if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033323$as_echo "$DisplayDelegate" >&6; }
33324else
cristy8b350f62009-11-15 23:12:43 +000033325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033326$as_echo "no" >&6; }
33327fi
33328
33329
33330# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33331set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033333$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033334if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033335 $as_echo_n "(cached) " >&6
33336else
33337 case $MogrifyDelegate in
33338 [\\/]* | ?:[\\/]*)
33339 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33340 ;;
33341 *)
33342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33343for as_dir in $PATH
33344do
33345 IFS=$as_save_IFS
33346 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033349 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033351 break 2
33352 fi
33353done
cristy8b350f62009-11-15 23:12:43 +000033354 done
cristy3ed852e2009-09-05 21:47:34 +000033355IFS=$as_save_IFS
33356
33357 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33358 ;;
33359esac
33360fi
33361MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33362if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033364$as_echo "$MogrifyDelegate" >&6; }
33365else
cristy8b350f62009-11-15 23:12:43 +000033366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033367$as_echo "no" >&6; }
33368fi
33369
33370
33371# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33372set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033374$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033375if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033376 $as_echo_n "(cached) " >&6
33377else
33378 case $GnuplotDecodeDelegate in
33379 [\\/]* | ?:[\\/]*)
33380 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33381 ;;
33382 *)
33383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33384for as_dir in $PATH
33385do
33386 IFS=$as_save_IFS
33387 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033390 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033392 break 2
33393 fi
33394done
cristy8b350f62009-11-15 23:12:43 +000033395 done
cristy3ed852e2009-09-05 21:47:34 +000033396IFS=$as_save_IFS
33397
33398 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33399 ;;
33400esac
33401fi
33402GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33403if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033405$as_echo "$GnuplotDecodeDelegate" >&6; }
33406else
cristy8b350f62009-11-15 23:12:43 +000033407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033408$as_echo "no" >&6; }
33409fi
33410
33411
cristy3ed852e2009-09-05 21:47:34 +000033412# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33413set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033415$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033416if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033417 $as_echo_n "(cached) " >&6
33418else
33419 case $HPGLDecodeDelegate in
33420 [\\/]* | ?:[\\/]*)
33421 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33422 ;;
33423 *)
33424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33425for as_dir in $PATH
33426do
33427 IFS=$as_save_IFS
33428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033431 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033433 break 2
33434 fi
33435done
cristy8b350f62009-11-15 23:12:43 +000033436 done
cristy3ed852e2009-09-05 21:47:34 +000033437IFS=$as_save_IFS
33438
33439 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33440 ;;
33441esac
33442fi
33443HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33444if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033446$as_echo "$HPGLDecodeDelegate" >&6; }
33447else
cristy8b350f62009-11-15 23:12:43 +000033448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033449$as_echo "no" >&6; }
33450fi
33451
33452
33453# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33454set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033457if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033458 $as_echo_n "(cached) " >&6
33459else
33460 case $HTMLDecodeDelegate in
33461 [\\/]* | ?:[\\/]*)
33462 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33463 ;;
33464 *)
33465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33466for as_dir in $PATH
33467do
33468 IFS=$as_save_IFS
33469 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033470 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033472 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033474 break 2
33475 fi
33476done
cristy8b350f62009-11-15 23:12:43 +000033477 done
cristy3ed852e2009-09-05 21:47:34 +000033478IFS=$as_save_IFS
33479
33480 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33481 ;;
33482esac
33483fi
33484HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33485if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033487$as_echo "$HTMLDecodeDelegate" >&6; }
33488else
cristy8b350f62009-11-15 23:12:43 +000033489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490$as_echo "no" >&6; }
33491fi
33492
33493
33494# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33495set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033498if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033499 $as_echo_n "(cached) " >&6
33500else
33501 case $ILBMDecodeDelegate in
33502 [\\/]* | ?:[\\/]*)
33503 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33504 ;;
33505 *)
33506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33507for as_dir in $PATH
33508do
33509 IFS=$as_save_IFS
33510 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033511 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033513 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033515 break 2
33516 fi
33517done
cristy8b350f62009-11-15 23:12:43 +000033518 done
cristy3ed852e2009-09-05 21:47:34 +000033519IFS=$as_save_IFS
33520
33521 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33522 ;;
33523esac
33524fi
33525ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33526if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033528$as_echo "$ILBMDecodeDelegate" >&6; }
33529else
cristy8b350f62009-11-15 23:12:43 +000033530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531$as_echo "no" >&6; }
33532fi
33533
33534
33535# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33536set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033539if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033540 $as_echo_n "(cached) " >&6
33541else
33542 case $ILBMEncodeDelegate in
33543 [\\/]* | ?:[\\/]*)
33544 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33545 ;;
33546 *)
33547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33548for as_dir in $PATH
33549do
33550 IFS=$as_save_IFS
33551 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033554 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033556 break 2
33557 fi
33558done
cristy8b350f62009-11-15 23:12:43 +000033559 done
cristy3ed852e2009-09-05 21:47:34 +000033560IFS=$as_save_IFS
33561
33562 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33563 ;;
33564esac
33565fi
33566ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33567if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033569$as_echo "$ILBMEncodeDelegate" >&6; }
33570else
cristy8b350f62009-11-15 23:12:43 +000033571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033572$as_echo "no" >&6; }
33573fi
33574
33575
cristy71f53d52013-04-27 13:33:59 +000033576# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33577set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33579$as_echo_n "checking for $ac_word... " >&6; }
33580if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33581 $as_echo_n "(cached) " >&6
33582else
33583 case $JXRDecodeDelegate in
33584 [\\/]* | ?:[\\/]*)
33585 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33586 ;;
33587 *)
33588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33589for as_dir in $PATH
33590do
33591 IFS=$as_save_IFS
33592 test -z "$as_dir" && as_dir=.
33593 for ac_exec_ext in '' $ac_executable_extensions; do
33594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33595 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33597 break 2
33598 fi
33599done
33600 done
33601IFS=$as_save_IFS
33602
33603 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33604 ;;
33605esac
33606fi
33607JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33608if test -n "$JXRDecodeDelegate"; then
33609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33610$as_echo "$JXRDecodeDelegate" >&6; }
33611else
33612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33613$as_echo "no" >&6; }
33614fi
33615
33616
33617# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33618set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33620$as_echo_n "checking for $ac_word... " >&6; }
33621if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33622 $as_echo_n "(cached) " >&6
33623else
33624 case $JXREncodeDelegate in
33625 [\\/]* | ?:[\\/]*)
33626 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33627 ;;
33628 *)
33629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33630for as_dir in $PATH
33631do
33632 IFS=$as_save_IFS
33633 test -z "$as_dir" && as_dir=.
33634 for ac_exec_ext in '' $ac_executable_extensions; do
33635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33636 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33638 break 2
33639 fi
33640done
33641 done
33642IFS=$as_save_IFS
33643
33644 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33645 ;;
33646esac
33647fi
33648JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33649if test -n "$JXREncodeDelegate"; then
33650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33651$as_echo "$JXREncodeDelegate" >&6; }
33652else
33653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33654$as_echo "no" >&6; }
33655fi
33656
33657
cristy3ed852e2009-09-05 21:47:34 +000033658# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33659set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033661$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033662if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033663 $as_echo_n "(cached) " >&6
33664else
33665 case $LPDelegate in
33666 [\\/]* | ?:[\\/]*)
33667 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33668 ;;
33669 *)
33670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33671for as_dir in $PATH
33672do
33673 IFS=$as_save_IFS
33674 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033675 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033677 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033679 break 2
33680 fi
33681done
cristy8b350f62009-11-15 23:12:43 +000033682 done
cristy3ed852e2009-09-05 21:47:34 +000033683IFS=$as_save_IFS
33684
33685 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33686 ;;
33687esac
33688fi
33689LPDelegate=$ac_cv_path_LPDelegate
33690if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033692$as_echo "$LPDelegate" >&6; }
33693else
cristy8b350f62009-11-15 23:12:43 +000033694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033695$as_echo "no" >&6; }
33696fi
33697
33698
33699# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33700set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033702$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033703if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033704 $as_echo_n "(cached) " >&6
33705else
33706 case $LPRDelegate in
33707 [\\/]* | ?:[\\/]*)
33708 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33709 ;;
33710 *)
33711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33712for as_dir in $PATH
33713do
33714 IFS=$as_save_IFS
33715 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033716 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033718 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033720 break 2
33721 fi
33722done
cristy8b350f62009-11-15 23:12:43 +000033723 done
cristy3ed852e2009-09-05 21:47:34 +000033724IFS=$as_save_IFS
33725
33726 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33727 ;;
33728esac
33729fi
33730LPRDelegate=$ac_cv_path_LPRDelegate
33731if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033733$as_echo "$LPRDelegate" >&6; }
33734else
cristy8b350f62009-11-15 23:12:43 +000033735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736$as_echo "no" >&6; }
33737fi
33738
33739
cristy3ed852e2009-09-05 21:47:34 +000033740# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33741set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033743$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033744if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033745 $as_echo_n "(cached) " >&6
33746else
33747 case $LaunchDelegate in
33748 [\\/]* | ?:[\\/]*)
33749 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33750 ;;
33751 *)
33752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33753for as_dir in $PATH
33754do
33755 IFS=$as_save_IFS
33756 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033759 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033761 break 2
33762 fi
33763done
cristy8b350f62009-11-15 23:12:43 +000033764 done
cristy3ed852e2009-09-05 21:47:34 +000033765IFS=$as_save_IFS
33766
33767 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33768 ;;
33769esac
33770fi
33771LaunchDelegate=$ac_cv_path_LaunchDelegate
33772if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033774$as_echo "$LaunchDelegate" >&6; }
33775else
cristy8b350f62009-11-15 23:12:43 +000033776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033777$as_echo "no" >&6; }
33778fi
33779
33780
33781# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33782set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033785if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033786 $as_echo_n "(cached) " >&6
33787else
33788 case $MANDelegate in
33789 [\\/]* | ?:[\\/]*)
33790 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33791 ;;
33792 *)
33793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33794for as_dir in $PATH
33795do
33796 IFS=$as_save_IFS
33797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033800 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033802 break 2
33803 fi
33804done
cristy8b350f62009-11-15 23:12:43 +000033805 done
cristy3ed852e2009-09-05 21:47:34 +000033806IFS=$as_save_IFS
33807
33808 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33809 ;;
33810esac
33811fi
33812MANDelegate=$ac_cv_path_MANDelegate
33813if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033815$as_echo "$MANDelegate" >&6; }
33816else
cristy8b350f62009-11-15 23:12:43 +000033817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033818$as_echo "no" >&6; }
33819fi
33820
33821
33822# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33823set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033826if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033827 $as_echo_n "(cached) " >&6
33828else
33829 case $MPEGDecodeDelegate in
33830 [\\/]* | ?:[\\/]*)
33831 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33832 ;;
33833 *)
33834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33835for as_dir in $PATH
33836do
33837 IFS=$as_save_IFS
33838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033841 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033843 break 2
33844 fi
33845done
cristy8b350f62009-11-15 23:12:43 +000033846 done
cristy3ed852e2009-09-05 21:47:34 +000033847IFS=$as_save_IFS
33848
33849 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33850 ;;
33851esac
33852fi
33853MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33854if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033856$as_echo "$MPEGDecodeDelegate" >&6; }
33857else
cristy8b350f62009-11-15 23:12:43 +000033858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859$as_echo "no" >&6; }
33860fi
33861
33862
cristy81ab5af2013-10-06 18:28:39 +000033863if test "$MPEGDecodeDelegate" == "$MPEGDecodeDelegateDefault" ; then
33864 MPEGDecodeDelegateDefault='ffmpeg'
33865 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33866set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33868$as_echo_n "checking for $ac_word... " >&6; }
33869if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33870 $as_echo_n "(cached) " >&6
33871else
33872 case $MPEGDecodeDelegate in
33873 [\\/]* | ?:[\\/]*)
33874 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33875 ;;
33876 *)
33877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33878for as_dir in $PATH
33879do
33880 IFS=$as_save_IFS
33881 test -z "$as_dir" && as_dir=.
33882 for ac_exec_ext in '' $ac_executable_extensions; do
33883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33884 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33886 break 2
33887 fi
33888done
33889 done
33890IFS=$as_save_IFS
33891
33892 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33893 ;;
33894esac
33895fi
33896MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33897if test -n "$MPEGDecodeDelegate"; then
33898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33899$as_echo "$MPEGDecodeDelegate" >&6; }
33900else
33901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33902$as_echo "no" >&6; }
33903fi
33904
33905
33906fi;
cristy3ed852e2009-09-05 21:47:34 +000033907# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33908set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033910$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033911if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033912 $as_echo_n "(cached) " >&6
33913else
33914 case $MPEGEncodeDelegate in
33915 [\\/]* | ?:[\\/]*)
33916 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33917 ;;
33918 *)
33919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33920for as_dir in $PATH
33921do
33922 IFS=$as_save_IFS
33923 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033924 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033926 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033928 break 2
33929 fi
33930done
cristy8b350f62009-11-15 23:12:43 +000033931 done
cristy3ed852e2009-09-05 21:47:34 +000033932IFS=$as_save_IFS
33933
33934 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33935 ;;
33936esac
33937fi
33938MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33939if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033941$as_echo "$MPEGEncodeDelegate" >&6; }
33942else
cristy8b350f62009-11-15 23:12:43 +000033943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033944$as_echo "no" >&6; }
33945fi
33946
33947
cristy81ab5af2013-10-06 18:28:39 +000033948if test "$MPEGEncodeDelegate" == "$MPEGEncodeDelegateDefault" ; then
33949 MPEGEncodeDelegateDefault='ffmpeg'
33950 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33951set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33953$as_echo_n "checking for $ac_word... " >&6; }
33954if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33955 $as_echo_n "(cached) " >&6
33956else
33957 case $MPEGEncodeDelegate in
33958 [\\/]* | ?:[\\/]*)
33959 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33960 ;;
33961 *)
33962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33963for as_dir in $PATH
33964do
33965 IFS=$as_save_IFS
33966 test -z "$as_dir" && as_dir=.
33967 for ac_exec_ext in '' $ac_executable_extensions; do
33968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33969 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33971 break 2
33972 fi
33973done
33974 done
33975IFS=$as_save_IFS
33976
33977 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33978 ;;
33979esac
33980fi
33981MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33982if test -n "$MPEGEncodeDelegate"; then
33983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33984$as_echo "$MPEGEncodeDelegate" >&6; }
33985else
33986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33987$as_echo "no" >&6; }
33988fi
33989
33990
33991fi;
cristy935c86e2010-06-05 23:50:07 +000033992# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33993set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33995$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033996if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033997 $as_echo_n "(cached) " >&6
33998else
33999 case $MrSIDDecodeDelegate in
34000 [\\/]* | ?:[\\/]*)
34001 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34002 ;;
34003 *)
34004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34005for as_dir in $PATH
34006do
34007 IFS=$as_save_IFS
34008 test -z "$as_dir" && as_dir=.
34009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034011 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34013 break 2
34014 fi
34015done
34016 done
34017IFS=$as_save_IFS
34018
34019 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34020 ;;
34021esac
34022fi
34023MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34024if test -n "$MrSIDDecodeDelegate"; then
34025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34026$as_echo "$MrSIDDecodeDelegate" >&6; }
34027else
34028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34029$as_echo "no" >&6; }
34030fi
34031
34032
cristy3ed852e2009-09-05 21:47:34 +000034033# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34034set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034036$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034037if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034038 $as_echo_n "(cached) " >&6
34039else
34040 case $MVDelegate in
34041 [\\/]* | ?:[\\/]*)
34042 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34043 ;;
34044 *)
34045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34046for as_dir in $PATH
34047do
34048 IFS=$as_save_IFS
34049 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034050 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034052 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034054 break 2
34055 fi
34056done
cristy8b350f62009-11-15 23:12:43 +000034057 done
cristy3ed852e2009-09-05 21:47:34 +000034058IFS=$as_save_IFS
34059
34060 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34061 ;;
34062esac
34063fi
34064MVDelegate=$ac_cv_path_MVDelegate
34065if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034067$as_echo "$MVDelegate" >&6; }
34068else
cristy8b350f62009-11-15 23:12:43 +000034069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034070$as_echo "no" >&6; }
34071fi
34072
34073
34074# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34075set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034077$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034078if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034079 $as_echo_n "(cached) " >&6
34080else
34081 case $PCLDelegate in
34082 [\\/]* | ?:[\\/]*)
34083 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34084 ;;
34085 *)
34086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34087for as_dir in $PATH
34088do
34089 IFS=$as_save_IFS
34090 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034093 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034095 break 2
34096 fi
34097done
cristy8b350f62009-11-15 23:12:43 +000034098 done
cristy3ed852e2009-09-05 21:47:34 +000034099IFS=$as_save_IFS
34100
34101 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34102 ;;
34103esac
34104fi
34105PCLDelegate=$ac_cv_path_PCLDelegate
34106if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034108$as_echo "$PCLDelegate" >&6; }
34109else
cristy8b350f62009-11-15 23:12:43 +000034110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034111$as_echo "no" >&6; }
34112fi
34113
34114
34115# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34116set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034118$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034119if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034120 $as_echo_n "(cached) " >&6
34121else
34122 case $PGPDecodeDelegate in
34123 [\\/]* | ?:[\\/]*)
34124 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34125 ;;
34126 *)
34127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34128for as_dir in $PATH
34129do
34130 IFS=$as_save_IFS
34131 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034134 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034136 break 2
34137 fi
34138done
cristy8b350f62009-11-15 23:12:43 +000034139 done
cristy3ed852e2009-09-05 21:47:34 +000034140IFS=$as_save_IFS
34141
34142 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34143 ;;
34144esac
34145fi
34146PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34147if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034149$as_echo "$PGPDecodeDelegate" >&6; }
34150else
cristy8b350f62009-11-15 23:12:43 +000034151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034152$as_echo "no" >&6; }
34153fi
34154
34155
34156# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34157set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034159$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034160if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034161 $as_echo_n "(cached) " >&6
34162else
34163 case $POVDelegate in
34164 [\\/]* | ?:[\\/]*)
34165 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34166 ;;
34167 *)
34168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34169for as_dir in $PATH
34170do
34171 IFS=$as_save_IFS
34172 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034173 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034175 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034177 break 2
34178 fi
34179done
cristy8b350f62009-11-15 23:12:43 +000034180 done
cristy3ed852e2009-09-05 21:47:34 +000034181IFS=$as_save_IFS
34182
34183 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34184 ;;
34185esac
34186fi
34187POVDelegate=$ac_cv_path_POVDelegate
34188if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034190$as_echo "$POVDelegate" >&6; }
34191else
cristy8b350f62009-11-15 23:12:43 +000034192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034193$as_echo "no" >&6; }
34194fi
34195
34196
34197for ac_prog in gsx gsc "$PSDelegateDefault"
34198do
34199 # Extract the first word of "$ac_prog", so it can be a program name with args.
34200set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034202$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034203if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034204 $as_echo_n "(cached) " >&6
34205else
34206 case $PSDelegate in
34207 [\\/]* | ?:[\\/]*)
34208 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34209 ;;
34210 *)
34211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34212for as_dir in $PATH
34213do
34214 IFS=$as_save_IFS
34215 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034216 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034218 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034220 break 2
34221 fi
34222done
cristy8b350f62009-11-15 23:12:43 +000034223 done
cristy3ed852e2009-09-05 21:47:34 +000034224IFS=$as_save_IFS
34225
34226 ;;
34227esac
34228fi
34229PSDelegate=$ac_cv_path_PSDelegate
34230if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034232$as_echo "$PSDelegate" >&6; }
34233else
cristy8b350f62009-11-15 23:12:43 +000034234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034235$as_echo "no" >&6; }
34236fi
34237
34238
34239 test -n "$PSDelegate" && break
34240done
34241test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34242
34243# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34244set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034246$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034247if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034248 $as_echo_n "(cached) " >&6
34249else
34250 case $RLEEncodeDelegate in
34251 [\\/]* | ?:[\\/]*)
34252 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34253 ;;
34254 *)
34255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34256for as_dir in $PATH
34257do
34258 IFS=$as_save_IFS
34259 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034260 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034262 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034264 break 2
34265 fi
34266done
cristy8b350f62009-11-15 23:12:43 +000034267 done
cristy3ed852e2009-09-05 21:47:34 +000034268IFS=$as_save_IFS
34269
34270 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34271 ;;
34272esac
34273fi
34274RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34275if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034277$as_echo "$RLEEncodeDelegate" >&6; }
34278else
cristy8b350f62009-11-15 23:12:43 +000034279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034280$as_echo "no" >&6; }
34281fi
34282
34283
34284# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34285set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034287$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034288if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034289 $as_echo_n "(cached) " >&6
34290else
34291 case $RMDelegate in
34292 [\\/]* | ?:[\\/]*)
34293 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34294 ;;
34295 *)
34296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34297for as_dir in $PATH
34298do
34299 IFS=$as_save_IFS
34300 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034301 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034303 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034305 break 2
34306 fi
34307done
cristy8b350f62009-11-15 23:12:43 +000034308 done
cristy3ed852e2009-09-05 21:47:34 +000034309IFS=$as_save_IFS
34310
34311 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34312 ;;
34313esac
34314fi
34315RMDelegate=$ac_cv_path_RMDelegate
34316if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034318$as_echo "$RMDelegate" >&6; }
34319else
cristy8b350f62009-11-15 23:12:43 +000034320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034321$as_echo "no" >&6; }
34322fi
34323
34324
cristy4689cf02010-02-17 21:15:45 +000034325# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34326set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34328$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034329if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034330 $as_echo_n "(cached) " >&6
34331else
34332 case $RSVGDecodeDelegate in
34333 [\\/]* | ?:[\\/]*)
34334 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34335 ;;
34336 *)
34337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34338for as_dir in $PATH
34339do
34340 IFS=$as_save_IFS
34341 test -z "$as_dir" && as_dir=.
34342 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034344 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34346 break 2
34347 fi
34348done
34349 done
34350IFS=$as_save_IFS
34351
34352 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34353 ;;
34354esac
34355fi
34356RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34357if test -n "$RSVGDecodeDelegate"; then
34358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34359$as_echo "$RSVGDecodeDelegate" >&6; }
34360else
34361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34362$as_echo "no" >&6; }
34363fi
34364
34365
cristy3ed852e2009-09-05 21:47:34 +000034366# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34367set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034369$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034370if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034371 $as_echo_n "(cached) " >&6
34372else
34373 case $SCANDecodeDelegate in
34374 [\\/]* | ?:[\\/]*)
34375 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34376 ;;
34377 *)
34378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34379for as_dir in $PATH
34380do
34381 IFS=$as_save_IFS
34382 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034383 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034385 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034387 break 2
34388 fi
34389done
cristy8b350f62009-11-15 23:12:43 +000034390 done
cristy3ed852e2009-09-05 21:47:34 +000034391IFS=$as_save_IFS
34392
34393 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34394 ;;
34395esac
34396fi
34397SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34398if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034400$as_echo "$SCANDecodeDelegate" >&6; }
34401else
cristy8b350f62009-11-15 23:12:43 +000034402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034403$as_echo "no" >&6; }
34404fi
34405
34406
cristyec6934f2012-08-14 18:38:40 +000034407# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34408set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34410$as_echo_n "checking for $ac_word... " >&6; }
34411if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34412 $as_echo_n "(cached) " >&6
34413else
34414 case $SVGDecodeDelegate in
34415 [\\/]* | ?:[\\/]*)
34416 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34417 ;;
34418 *)
34419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34420for as_dir in $PATH
34421do
34422 IFS=$as_save_IFS
34423 test -z "$as_dir" && as_dir=.
34424 for ac_exec_ext in '' $ac_executable_extensions; do
34425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34426 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34428 break 2
34429 fi
34430done
34431 done
34432IFS=$as_save_IFS
34433
34434 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34435 ;;
34436esac
34437fi
34438SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34439if test -n "$SVGDecodeDelegate"; then
34440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34441$as_echo "$SVGDecodeDelegate" >&6; }
34442else
34443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34444$as_echo "no" >&6; }
34445fi
34446
34447
cristy3ed852e2009-09-05 21:47:34 +000034448# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34449set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034451$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034452if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034453 $as_echo_n "(cached) " >&6
34454else
34455 case $TXTDelegate in
34456 [\\/]* | ?:[\\/]*)
34457 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34458 ;;
34459 *)
34460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34461for as_dir in $PATH
34462do
34463 IFS=$as_save_IFS
34464 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034465 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034467 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034469 break 2
34470 fi
34471done
cristy8b350f62009-11-15 23:12:43 +000034472 done
cristy3ed852e2009-09-05 21:47:34 +000034473IFS=$as_save_IFS
34474
34475 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34476 ;;
34477esac
34478fi
34479TXTDelegate=$ac_cv_path_TXTDelegate
34480if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034482$as_echo "$TXTDelegate" >&6; }
34483else
cristy8b350f62009-11-15 23:12:43 +000034484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034485$as_echo "no" >&6; }
34486fi
34487
34488
cristy5ac9ac82010-07-29 13:24:24 +000034489# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34490set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34492$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034493if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034494 $as_echo_n "(cached) " >&6
34495else
34496 case $UniconvertorDelegate in
34497 [\\/]* | ?:[\\/]*)
34498 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34499 ;;
34500 *)
34501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34502for as_dir in $PATH
34503do
34504 IFS=$as_save_IFS
34505 test -z "$as_dir" && as_dir=.
34506 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034508 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34510 break 2
34511 fi
34512done
34513 done
34514IFS=$as_save_IFS
34515
34516 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34517 ;;
34518esac
34519fi
34520UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34521if test -n "$UniconvertorDelegate"; then
34522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34523$as_echo "$UniconvertorDelegate" >&6; }
34524else
34525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34526$as_echo "no" >&6; }
34527fi
34528
34529
cristy86e86092013-08-04 17:43:57 +000034530# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34531set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34533$as_echo_n "checking for $ac_word... " >&6; }
34534if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34535 $as_echo_n "(cached) " >&6
34536else
34537 case $WebPDecodeDelegate in
34538 [\\/]* | ?:[\\/]*)
34539 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34540 ;;
34541 *)
34542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34543for as_dir in $PATH
34544do
34545 IFS=$as_save_IFS
34546 test -z "$as_dir" && as_dir=.
34547 for ac_exec_ext in '' $ac_executable_extensions; do
34548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34549 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34551 break 2
34552 fi
34553done
34554 done
34555IFS=$as_save_IFS
34556
34557 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34558 ;;
34559esac
34560fi
34561WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34562if test -n "$WebPDecodeDelegate"; then
34563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34564$as_echo "$WebPDecodeDelegate" >&6; }
34565else
34566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34567$as_echo "no" >&6; }
34568fi
34569
34570
34571# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34572set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34574$as_echo_n "checking for $ac_word... " >&6; }
34575if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34576 $as_echo_n "(cached) " >&6
34577else
34578 case $WebPEncodeDelegate in
34579 [\\/]* | ?:[\\/]*)
34580 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34581 ;;
34582 *)
34583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34584for as_dir in $PATH
34585do
34586 IFS=$as_save_IFS
34587 test -z "$as_dir" && as_dir=.
34588 for ac_exec_ext in '' $ac_executable_extensions; do
34589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34590 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34592 break 2
34593 fi
34594done
34595 done
34596IFS=$as_save_IFS
34597
34598 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34599 ;;
34600esac
34601fi
34602WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34603if test -n "$WebPEncodeDelegate"; then
34604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34605$as_echo "$WebPEncodeDelegate" >&6; }
34606else
34607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34608$as_echo "no" >&6; }
34609fi
34610
34611
cristy3ed852e2009-09-05 21:47:34 +000034612# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34613set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034615$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034616if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034617 $as_echo_n "(cached) " >&6
34618else
34619 case $WMFDecodeDelegate in
34620 [\\/]* | ?:[\\/]*)
34621 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34622 ;;
34623 *)
34624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34625for as_dir in $PATH
34626do
34627 IFS=$as_save_IFS
34628 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034629 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034631 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034633 break 2
34634 fi
34635done
cristy8b350f62009-11-15 23:12:43 +000034636 done
cristy3ed852e2009-09-05 21:47:34 +000034637IFS=$as_save_IFS
34638
34639 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34640 ;;
34641esac
34642fi
34643WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34644if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034646$as_echo "$WMFDecodeDelegate" >&6; }
34647else
cristy8b350f62009-11-15 23:12:43 +000034648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034649$as_echo "no" >&6; }
34650fi
34651
34652
34653# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34654set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034656$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034657if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034658 $as_echo_n "(cached) " >&6
34659else
34660 case $WWWDecodeDelegate in
34661 [\\/]* | ?:[\\/]*)
34662 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34663 ;;
34664 *)
34665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34666for as_dir in $PATH
34667do
34668 IFS=$as_save_IFS
34669 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034670 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034672 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034674 break 2
34675 fi
34676done
cristy8b350f62009-11-15 23:12:43 +000034677 done
cristy3ed852e2009-09-05 21:47:34 +000034678IFS=$as_save_IFS
34679
34680 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34681 ;;
34682esac
34683fi
34684WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34685if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034687$as_echo "$WWWDecodeDelegate" >&6; }
34688else
cristy8b350f62009-11-15 23:12:43 +000034689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034690$as_echo "no" >&6; }
34691fi
34692
34693
34694# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34695set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034697$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034698if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034699 $as_echo_n "(cached) " >&6
34700else
34701 case $XPSDelegate in
34702 [\\/]* | ?:[\\/]*)
34703 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34704 ;;
34705 *)
34706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34707for as_dir in $PATH
34708do
34709 IFS=$as_save_IFS
34710 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034711 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034713 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034715 break 2
34716 fi
34717done
cristy8b350f62009-11-15 23:12:43 +000034718 done
cristy3ed852e2009-09-05 21:47:34 +000034719IFS=$as_save_IFS
34720
34721 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34722 ;;
34723esac
34724fi
34725XPSDelegate=$ac_cv_path_XPSDelegate
34726if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034728$as_echo "$XPSDelegate" >&6; }
34729else
cristy8b350f62009-11-15 23:12:43 +000034730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034731$as_echo "no" >&6; }
34732fi
34733
34734
34735# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34736set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034738$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034739if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034740 $as_echo_n "(cached) " >&6
34741else
34742 case $ZipDelegate in
34743 [\\/]* | ?:[\\/]*)
34744 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34745 ;;
34746 *)
34747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34748for as_dir in $PATH
34749do
34750 IFS=$as_save_IFS
34751 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034752 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034754 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034756 break 2
34757 fi
34758done
cristy8b350f62009-11-15 23:12:43 +000034759 done
cristy3ed852e2009-09-05 21:47:34 +000034760IFS=$as_save_IFS
34761
34762 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34763 ;;
34764esac
34765fi
34766ZipDelegate=$ac_cv_path_ZipDelegate
34767if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034769$as_echo "$ZipDelegate" >&6; }
34770else
cristy8b350f62009-11-15 23:12:43 +000034771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034772$as_echo "no" >&6; }
34773fi
34774
34775
34776
34777# Prefer lpr to lp; lp needs options tacked on.
34778if test "$LPRDelegate" != no; then
34779 PrintDelegate="$LPRDelegate"
34780else
34781 PrintDelegate="$LPDelegate -c -s"
34782fi
34783
34784
34785# Installed ImageMagick utiltity paths
34786ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34787DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34788MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34789
34790# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034791have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034792have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34793have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34794have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034795have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034796have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34797have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034798have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34799
34800#
34801# Test for font directories
34802#
34803type_include_files=''
34804
cristy430a7312010-01-21 20:44:04 +000034805# Dejavu fonts.
34806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34807$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34808dejavu_font_dir=''
34809if test "${with_dejavu_font_dir}" != 'default'; then
34810 dejavu_font_dir="${with_dejavu_font_dir}/"
34811else
34812 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34813 if test -f "${font_dir}DejaVuSerif.ttf"; then
34814 dejavu_font_dir="${font_dir}"
34815 break 1
34816 fi
34817 done
34818fi
34819if test "${dejavu_font_dir}x" != 'x'; then
34820 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34822$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034823else
cristyad38abe2012-12-23 23:03:21 +000034824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34825$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034826fi
34827
34828
cristy3ed852e2009-09-05 21:47:34 +000034829# Windows
34830windows_font_dir=''
34831if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34832 windows_font_dir="${with_windows_font_dir}/"
34833fi
cristy430a7312010-01-21 20:44:04 +000034834if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034835 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34836 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34837 fi
34838 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34839 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34840 fi
34841 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34842 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34843 fi
34844fi
cristy430a7312010-01-21 20:44:04 +000034845if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034846 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34847fi
34848
34849
34850# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034852$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34853ghostscript_font_dir=''
34854if test "${with_gs_font_dir}" != 'default'; then
34855 ghostscript_font_dir="${with_gs_font_dir}/"
34856else
34857 if test "${native_win32_build}" = 'yes'; then
34858 # Native Windows Build
34859 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34860 if test -f "${font_dir}a010013l.pfb"; then
34861 ghostscript_font_dir="$font_dir"
34862 break 1
34863 fi
34864 done
34865 if test "${PSDelegate}" != 'gswin32c'; then
34866 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34867 fi
34868 else
34869 # Linux / Mac OS X / Unix Build
34870 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
34871 if test -f "${font_dir}a010013l.pfb"; then
34872 ghostscript_font_dir="${font_dir}"
34873 break 1
34874 fi
34875 done
34876 if test "${ghostscript_font_dir}x" = 'x'; then
34877 if test "$PSDelegate" != 'gs'; then
34878 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34879 fi
34880 fi
34881 fi
34882fi
34883if test "${ghostscript_font_dir}x" != 'x'; then
34884 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34886$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034887else
cristyad38abe2012-12-23 23:03:21 +000034888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34889$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034890fi
34891
34892case "${build_os}" in
34893 mingw* )
34894 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34895 ;;
34896esac
34897
34898
34899
34900#
34901# Handle case where user doesn't want frozen paths
34902#
34903if test "$with_frozenpaths" != 'yes'; then
34904 # Re-set delegate definitions to default (no paths)
34905 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034906 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34907 BZIPDelegate="$BZIPDelegateDefault"
34908 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034909 CatDelegate="$CatDelegateDefault"
34910 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034911 DisplayDelegate="$DisplayDelegateDefault"
34912 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034913 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34914 EchoDelegate="$EchoDelegateDefault"
34915 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034916 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034917 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034918 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34919 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34920 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34921 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034922 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34923 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034924 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034925 LaunchDelegate="$LaunchDelegateDefault"
34926 MANDelegate="$MANDelegateDefault"
34927 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34928 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034929 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034930 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34931 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034932 PCLDelegate="$PCLDelegateDefault"
34933 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34934 POVDelegate="$POVDelegateDefault"
34935 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034936 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34937 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034938 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034939 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034940 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034941 ShowImageDelegate="$ShowImageDelegateDefault"
34942 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034943 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034944 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34945 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034946 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34947 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34948 XPSDelegate="$XPSDelegateDefault"
34949 ZipDelegate="$ZipDelegateDefault"
34950fi
34951
34952# Delegate substitutions
34953
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966
34967
34968
34969
34970
34971
34972
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986
34987
34988
34989
34990
34991
34992
cristy71f53d52013-04-27 13:33:59 +000034993
34994
cristy3ed852e2009-09-05 21:47:34 +000034995#
34996# RPM support.
34997#
34998RPM=''
34999for ac_prog in gnutar gtar tar
35000do
35001 # Extract the first word of "$ac_prog", so it can be a program name with args.
35002set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035004$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035005if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035006 $as_echo_n "(cached) " >&6
35007else
35008 if test -n "$TAR"; then
35009 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35010else
35011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35012for as_dir in $PATH
35013do
35014 IFS=$as_save_IFS
35015 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035016 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035018 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035020 break 2
35021 fi
35022done
cristy8b350f62009-11-15 23:12:43 +000035023 done
cristy3ed852e2009-09-05 21:47:34 +000035024IFS=$as_save_IFS
35025
35026fi
35027fi
35028TAR=$ac_cv_prog_TAR
35029if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035031$as_echo "$TAR" >&6; }
35032else
cristy8b350f62009-11-15 23:12:43 +000035033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035034$as_echo "no" >&6; }
35035fi
35036
35037
35038 test -n "$TAR" && break
35039done
35040
35041for ac_prog in perl
35042do
35043 # Extract the first word of "$ac_prog", so it can be a program name with args.
35044set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035046$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035047if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035048 $as_echo_n "(cached) " >&6
35049else
35050 if test -n "$PERL"; then
35051 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35052else
35053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35054for as_dir in $PATH
35055do
35056 IFS=$as_save_IFS
35057 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035058 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035060 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035062 break 2
35063 fi
35064done
cristy8b350f62009-11-15 23:12:43 +000035065 done
cristy3ed852e2009-09-05 21:47:34 +000035066IFS=$as_save_IFS
35067
35068fi
35069fi
35070PERL=$ac_cv_prog_PERL
35071if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035073$as_echo "$PERL" >&6; }
35074else
cristy8b350f62009-11-15 23:12:43 +000035075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035076$as_echo "no" >&6; }
35077fi
35078
35079
35080 test -n "$PERL" && break
35081done
35082
35083for ac_prog in rpmbuild rpm
35084do
35085 # Extract the first word of "$ac_prog", so it can be a program name with args.
35086set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035088$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035089if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035090 $as_echo_n "(cached) " >&6
35091else
35092 if test -n "$RPM"; then
35093 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35094else
35095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35096for as_dir in $PATH
35097do
35098 IFS=$as_save_IFS
35099 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035100 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035102 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035104 break 2
35105 fi
35106done
cristy8b350f62009-11-15 23:12:43 +000035107 done
cristy3ed852e2009-09-05 21:47:34 +000035108IFS=$as_save_IFS
35109
35110fi
35111fi
35112RPM=$ac_cv_prog_RPM
35113if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035115$as_echo "$RPM" >&6; }
35116else
cristy8b350f62009-11-15 23:12:43 +000035117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035118$as_echo "no" >&6; }
35119fi
35120
35121
35122 test -n "$RPM" && break
35123done
35124
35125
cristy73bd4a52010-10-05 11:24:23 +000035126ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35127
35128
35129AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35130
35131
35132AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35133
35134
35135AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35136
35137
35138 if test "x$RPM" != "x" ; then
35139 RPM_DELEGATE_TRUE=
35140 RPM_DELEGATE_FALSE='#'
35141else
35142 RPM_DELEGATE_TRUE='#'
35143 RPM_DELEGATE_FALSE=
35144fi
35145
cristy3ed852e2009-09-05 21:47:34 +000035146
35147#
35148# 7ZIP support (http://p7zip.sourceforge.net/)
35149#
35150P7ZIP=''
35151for ac_prog in 7za
35152do
35153 # Extract the first word of "$ac_prog", so it can be a program name with args.
35154set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035156$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035157if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035158 $as_echo_n "(cached) " >&6
35159else
35160 if test -n "$P7ZIP"; then
35161 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35162else
35163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35164for as_dir in $PATH
35165do
35166 IFS=$as_save_IFS
35167 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035168 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035170 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035172 break 2
35173 fi
35174done
cristy8b350f62009-11-15 23:12:43 +000035175 done
cristy3ed852e2009-09-05 21:47:34 +000035176IFS=$as_save_IFS
35177
35178fi
35179fi
35180P7ZIP=$ac_cv_prog_P7ZIP
35181if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035183$as_echo "$P7ZIP" >&6; }
35184else
cristy8b350f62009-11-15 23:12:43 +000035185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035186$as_echo "no" >&6; }
35187fi
35188
35189
35190 test -n "$P7ZIP" && break
35191done
35192
35193
cristy73bd4a52010-10-05 11:24:23 +000035194 if test "x$P7ZIP" != "x" ; then
35195 P7ZIP_DELEGATE_TRUE=
35196 P7ZIP_DELEGATE_FALSE='#'
35197else
35198 P7ZIP_DELEGATE_TRUE='#'
35199 P7ZIP_DELEGATE_FALSE=
35200fi
35201
cristy3ed852e2009-09-05 21:47:34 +000035202
35203#
35204# ZIP support (http://www.info-zip.org/Zip.html)
35205#
35206ZIP=''
35207for ac_prog in zip
35208do
35209 # Extract the first word of "$ac_prog", so it can be a program name with args.
35210set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035213if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035214 $as_echo_n "(cached) " >&6
35215else
35216 if test -n "$ZIP"; then
35217 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35218else
35219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35220for as_dir in $PATH
35221do
35222 IFS=$as_save_IFS
35223 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035226 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035228 break 2
35229 fi
35230done
cristy8b350f62009-11-15 23:12:43 +000035231 done
cristy3ed852e2009-09-05 21:47:34 +000035232IFS=$as_save_IFS
35233
35234fi
35235fi
35236ZIP=$ac_cv_prog_ZIP
35237if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035239$as_echo "$ZIP" >&6; }
35240else
cristy8b350f62009-11-15 23:12:43 +000035241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035242$as_echo "no" >&6; }
35243fi
35244
35245
35246 test -n "$ZIP" && break
35247done
35248
35249
cristy73bd4a52010-10-05 11:24:23 +000035250 if test "x$ZIP" != "x" ; then
35251 ZIP_DELEGATE_TRUE=
35252 ZIP_DELEGATE_FALSE='#'
35253else
35254 ZIP_DELEGATE_TRUE='#'
35255 ZIP_DELEGATE_FALSE=
35256fi
35257
cristy3ed852e2009-09-05 21:47:34 +000035258
35259#
35260# GhostPCL related configuration.
35261#
35262PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035263PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035264PCLMonoDevice=pbmraw
35265if test -z "$PCLVersion"; then
35266 PCLVersion='unknown'
35267fi
35268if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35270$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035272$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35274$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035275 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035277$as_echo_n "checking for pcl color device... " >&6; }
35278 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35279 :
35280 else
35281 PCLColorDevice=ppmraw
35282 fi
cristyad38abe2012-12-23 23:03:21 +000035283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35284$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035285
35286 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035288$as_echo_n "checking for pcl CMYK device... " >&6; }
35289 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35290 :
35291 else
35292 PCLCMYKDevice=$PCLColorDevice
35293 fi
cristyad38abe2012-12-23 23:03:21 +000035294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35295$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035296
35297 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035299$as_echo_n "checking for pcl mono device... " >&6; }
35300 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35301 :
35302 else
35303 PCLMonoDevice=$PCLColorDevice
35304 fi
cristyad38abe2012-12-23 23:03:21 +000035305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35306$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035307fi
35308
35309
35310
35311
35312
35313
35314#
35315# GhostXPS related configuration.
35316#
35317XPSColorDevice=ppmraw
35318XPSCMYKDevice=bmpsep8
35319XPSMonoDevice=pbmraw
35320if test -z "$XPSVersion"; then
35321 XPSVersion='unknown'
35322fi
35323if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35325$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035327$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35329$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035330 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035332$as_echo_n "checking for xps color device... " >&6; }
35333 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35334 :
35335 else
35336 XPSColorDevice=ppmraw
35337 fi
cristyad38abe2012-12-23 23:03:21 +000035338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35339$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035340
35341 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035343$as_echo_n "checking for xps CMYK device... " >&6; }
35344 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35345 :
35346 else
35347 XPSCMYKDevice=$XPSColorDevice
35348 fi
cristyad38abe2012-12-23 23:03:21 +000035349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35350$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035351
35352 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035354$as_echo_n "checking for xps mono device... " >&6; }
35355 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35356 :
35357 else
35358 XPSMonoDevice=$XPSColorDevice
35359 fi
cristyad38abe2012-12-23 23:03:21 +000035360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35361$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035362fi
35363
35364
35365
35366
35367
35368
35369#
35370# Ghostscript related configuration.
35371#
cristya97426c2011-02-04 01:41:27 +000035372GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035373GSColorDevice=pnmraw
35374GSCMYKDevice=pam
35375GSMonoDevice=pbmraw
35376GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035377GSPSDevice=ps2write
cristy3ed852e2009-09-05 21:47:34 +000035378GSEPSDevice=epswrite
35379GSVersion='unknown'
35380if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35382$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035384$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35386$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035388$as_echo_n "checking for Ghostscript version... " >&6; }
35389 if GSVersion=`$PSDelegate --version`; then
35390 :
35391 else
35392 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35393 fi
cristyad38abe2012-12-23 23:03:21 +000035394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35395$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035396
35397 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035399$as_echo_n "checking for gs alpha device... " >&6; }
35400 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35401 :
35402 else
35403 GSAlphaDevice=pnmraw
35404 fi
cristyad38abe2012-12-23 23:03:21 +000035405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35406$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035407
35408 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035410$as_echo_n "checking for gs color device... " >&6; }
35411 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35412 :
35413 else
35414 GSColorDevice=pnmraw
35415 fi
cristyad38abe2012-12-23 23:03:21 +000035416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35417$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035418
35419 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035421$as_echo_n "checking for gs CMYK device... " >&6; }
35422 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35423 :
35424 else
35425 GSCMYKDevice=bmpsep8
35426 fi
cristyad38abe2012-12-23 23:03:21 +000035427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35428$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035429
35430 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035432$as_echo_n "checking for gs mono device... " >&6; }
35433 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35434 :
35435 else
35436 GSMonoDevice=$GSColorDevice
35437 fi
cristyad38abe2012-12-23 23:03:21 +000035438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35439$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035440
35441 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035443$as_echo_n "checking for gs PDF writing device... " >&6; }
35444 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35445 :
35446 else
35447 GSPDFDevice=nodevice
35448 fi
cristyad38abe2012-12-23 23:03:21 +000035449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35450$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035451
35452 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035454$as_echo_n "checking for gs PS writing device... " >&6; }
35455 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35456 :
35457 else
35458 GSPSDevice=nodevice
35459 fi
cristyad38abe2012-12-23 23:03:21 +000035460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35461$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035462
35463 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035465$as_echo_n "checking for gs EPS writing device... " >&6; }
35466 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35467 :
35468 else
35469 GSEPSDevice=nodevice
35470 fi
cristyad38abe2012-12-23 23:03:21 +000035471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35472$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035473fi
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484#
35485# PerlMagick-related configuration
35486#
35487
35488# Look for PERL if PerlMagick requested
35489# If name/path of desired PERL interpreter is specified, look for that one first
35490have_perl='no'
35491if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35493$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035495$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35497$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035498 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035500$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035501if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035502 $as_echo_n "(cached) " >&6
35503else
35504 ac_cv_path_PERL="$with_perl"
35505fi
cristy8b350f62009-11-15 23:12:43 +000035506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035507$as_echo "$ac_cv_path_PERL" >&6; };
35508 PERL=$ac_cv_path_PERL
35509 have_perl="$ac_cv_path_PERL"
35510 else
35511 for ac_prog in perl perl5
35512do
35513 # Extract the first word of "$ac_prog", so it can be a program name with args.
35514set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035516$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035517if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035518 $as_echo_n "(cached) " >&6
35519else
35520 case $PERL in
35521 [\\/]* | ?:[\\/]*)
35522 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35523 ;;
35524 *)
35525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35526for as_dir in $PATH
35527do
35528 IFS=$as_save_IFS
35529 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035530 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035532 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035534 break 2
35535 fi
35536done
cristy8b350f62009-11-15 23:12:43 +000035537 done
cristy3ed852e2009-09-05 21:47:34 +000035538IFS=$as_save_IFS
35539
35540 ;;
35541esac
35542fi
35543PERL=$ac_cv_path_PERL
35544if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035546$as_echo "$PERL" >&6; }
35547else
cristy8b350f62009-11-15 23:12:43 +000035548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035549$as_echo "no" >&6; }
35550fi
35551
35552
35553 test -n "$PERL" && break
35554done
35555 if test "$ac_cv_path_PERL"; then
35556 have_perl="$ac_cv_path_PERL"
35557 fi
35558 fi
35559fi
35560
cristy949301e2010-01-06 01:38:40 +000035561if test "$with_perl" != 'yes' ; then
35562 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35563fi
35564
35565PERL_SUPPORTS_DESTDIR='no'
35566
cristy3ed852e2009-09-05 21:47:34 +000035567with_perl_static='no'
35568with_perl_dynamic='no'
35569if test "$have_perl" != 'no'; then
35570 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35571 with_perl_static='yes'
35572 fi
35573 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35574 with_perl_dynamic='yes'
35575 fi
35576 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035577
35578
35579
35580
35581 if test -n "$PERL"; then :
35582
35583 ax_perl_version="5.8.1"
35584
35585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35586$as_echo_n "checking for perl version... " >&6; }
35587
35588 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35589
35590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35591$as_echo "$perl_version" >&6; }
35592
35593 PERL_VERSION=$perl_version
35594
35595
35596
35597
35598
35599 # Used to indicate true or false condition
35600 ax_compare_version=false
35601
35602 # Convert the two version strings to be compared into a format that
35603 # allows a simple string comparison. The end result is that a version
35604 # string of the form 1.12.5-r617 will be converted to the form
35605 # 0001001200050617. In other words, each number is zero padded to four
35606 # digits, and non digits are removed.
35607
35608 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35609 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35610 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35611 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35612 -e 's/[^0-9]//g'`
35613
35614
35615 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35616 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35617 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35618 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35619 -e 's/[^0-9]//g'`
35620
35621
35622 ax_compare_version=`echo "x$ax_compare_version_A
35623x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35624
35625
35626
35627 if test "$ax_compare_version" = "true" ; then
35628
35629 :
35630 PERL_SUPPORTS_DESTDIR='yes'
35631
35632 else
35633 :
35634 PERL_SUPPORTS_DESTDIR='no'
35635
35636 fi
35637
35638
35639else
35640
35641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35642$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35643 PERL_SUPPORTS_DESTDIR='no'
35644
cristy3ed852e2009-09-05 21:47:34 +000035645fi
cristy73bd4a52010-10-05 11:24:23 +000035646
35647fi
35648 if test "$have_perl" != 'no'; then
35649 WITH_PERL_TRUE=
35650 WITH_PERL_FALSE='#'
35651else
35652 WITH_PERL_TRUE='#'
35653 WITH_PERL_FALSE=
35654fi
35655
35656 if test $with_perl_static = 'yes'; then
35657 WITH_PERL_STATIC_TRUE=
35658 WITH_PERL_STATIC_FALSE='#'
35659else
35660 WITH_PERL_STATIC_TRUE='#'
35661 WITH_PERL_STATIC_FALSE=
35662fi
35663
35664 if test $with_perl_dynamic = 'yes'; then
35665 WITH_PERL_DYNAMIC_TRUE=
35666 WITH_PERL_DYNAMIC_FALSE='#'
35667else
35668 WITH_PERL_DYNAMIC_TRUE='#'
35669 WITH_PERL_DYNAMIC_FALSE=
35670fi
35671
cristy3ed852e2009-09-05 21:47:34 +000035672
35673
35674# Determine path to pick up MagickCore library from for use with building PerlMagick
35675MAGICKCORE_PATH="${LIB_DIR}"
35676if test $with_perl_static = 'yes'; then
35677 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35678 libtool_objdir=$objdir
35679
35680 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035681 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035682fi
35683
35684
cristy2a3eb392012-12-17 13:39:20 +000035685# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035686MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035687if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035688 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035689fi
cristy2a3eb392012-12-17 13:39:20 +000035690if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035691 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035692fi
35693if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035694 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035695fi
35696if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035697 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035698fi
cristy81ab5af2013-10-06 18:28:39 +000035699if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035700 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035701fi
cristy854c9cf2013-08-10 21:03:06 +000035702if test "$have_mupdf" = 'yes' ; then
35703 MAGICK_DELEGATES="$MAGICK_DELEGATES mupdf"
cristyc0884e92013-08-10 17:14:59 +000035704fi
cristy2a3eb392012-12-17 13:39:20 +000035705if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035706 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035707fi
cristy2a3eb392012-12-17 13:39:20 +000035708if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035709 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035710fi
35711if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035712 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035713fi
35714if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035715 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035716fi
35717if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035718 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035719fi
35720if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035721 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035722fi
35723if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035724 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035725fi
35726if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035727 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035728fi
35729if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035730 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035731fi
35732if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035733 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035734fi
35735if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035736 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035737fi
35738if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035739 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035740fi
35741if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035742 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035743fi
cristy99db3872014-01-01 15:11:34 +000035744if test "$have_openjp2" = 'yes' ; then
35745 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000035746fi
cristy2a3eb392012-12-17 13:39:20 +000035747if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035748 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035749fi
35750if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035751 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035752fi
35753have_ps='no'
35754if test "$have_dps" = 'yes' || \
35755 test "$have_gs" = 'yes' || \
35756 test "${native_win32_build}" = 'yes' ; then
35757 have_ps='yes'
35758fi
35759if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035760 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035761fi
cristy2a3eb392012-12-17 13:39:20 +000035762if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035763 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035764fi
35765if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035766 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035767fi
35768if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035769 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035770fi
35771if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035772 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035773fi
cristy3b640ed2013-07-29 00:27:59 +000035774if test "$have_webp" = 'yes' ; then
35775 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35776fi
cristy2a3eb392012-12-17 13:39:20 +000035777if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035778 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035779fi
35780if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035781 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035782fi
35783if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035784 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035785fi
35786if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035787 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035788fi
cristy2a3eb392012-12-17 13:39:20 +000035789# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035790MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035791MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035792
35793
cristyfa161182012-12-19 15:45:28 +000035794
cristy3ed852e2009-09-05 21:47:34 +000035795#
35796# Handle special compiler flags
35797#
35798
35799# Add '-p' if prof source profiling support enabled
35800if test "$enable_prof" = 'yes'; then
35801 CFLAGS="-p $CFLAGS"
35802 CXXFLAGS="-p $CXXFLAGS"
35803 LDFLAGS="-p $LDFLAGS"
35804fi
35805
35806# Add '-pg' if gprof source profiling support enabled
35807if test "$enable_gprof" = 'yes'; then
35808 CFLAGS="-pg $CFLAGS"
35809 CXXFLAGS="-pg $CXXFLAGS"
35810 LDFLAGS="-pg $LDFLAGS"
35811fi
35812
35813# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35814# This is a gcc-specific feature
35815if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035817$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035818if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035819 $as_echo_n "(cached) " >&6
35820else
35821 ac_check_lib_save_LIBS=$LIBS
35822LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035824/* end confdefs.h. */
35825
35826/* Override any GCC internal prototype to avoid an error.
35827 Use char because int might match the return type of a GCC
35828 builtin and then its argument prototype would still apply. */
35829#ifdef __cplusplus
35830extern "C"
35831#endif
35832char _gcov_init ();
35833int
35834main ()
35835{
35836return _gcov_init ();
35837 ;
35838 return 0;
35839}
35840_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035841if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035842 ac_cv_lib_gcov__gcov_init=yes
35843else
cristy8b350f62009-11-15 23:12:43 +000035844 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035845fi
cristy8b350f62009-11-15 23:12:43 +000035846rm -f core conftest.err conftest.$ac_objext \
35847 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035848LIBS=$ac_check_lib_save_LIBS
35849fi
cristy8b350f62009-11-15 23:12:43 +000035850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035851$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035852if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035853 cat >>confdefs.h <<_ACEOF
35854#define HAVE_LIBGCOV 1
35855_ACEOF
35856
35857 LIBS="-lgcov $LIBS"
35858
35859fi
35860
cristy8b350f62009-11-15 23:12:43 +000035861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035862$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035863if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035864 $as_echo_n "(cached) " >&6
35865else
35866 ac_check_lib_save_LIBS=$LIBS
35867LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035869/* end confdefs.h. */
35870
35871/* Override any GCC internal prototype to avoid an error.
35872 Use char because int might match the return type of a GCC
35873 builtin and then its argument prototype would still apply. */
35874#ifdef __cplusplus
35875extern "C"
35876#endif
35877char __gcov_init ();
35878int
35879main ()
35880{
35881return __gcov_init ();
35882 ;
35883 return 0;
35884}
35885_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035886if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035887 ac_cv_lib_gcov___gcov_init=yes
35888else
cristy8b350f62009-11-15 23:12:43 +000035889 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035890fi
cristy8b350f62009-11-15 23:12:43 +000035891rm -f core conftest.err conftest.$ac_objext \
35892 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035893LIBS=$ac_check_lib_save_LIBS
35894fi
cristy8b350f62009-11-15 23:12:43 +000035895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035896$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035897if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035898 cat >>confdefs.h <<_ACEOF
35899#define HAVE_LIBGCOV 1
35900_ACEOF
35901
35902 LIBS="-lgcov $LIBS"
35903
35904fi
35905
35906 case "$target_os" in
35907 darwin*)
35908 OSX_GCOV_LDFLAG="-Wl,-single_module"
35909 ;;
35910 *)
35911 OSX_GCOV_LDFLAG=""
35912 ;;
35913 esac
35914
35915 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35916 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35917 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35918fi
35919
35920#
35921# Build library dependency list for libMagickCore
35922#
35923
cristyc6722092012-10-14 00:19:31 +000035924if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035925 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 +000035926else
cristy25997252014-01-02 13:28:18 +000035927 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_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 $OPENJPEG_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 +000035928fi
35929
35930
35931#
35932# Remove extraneous spaces from output variables (asthetic)
35933#
35934X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35935X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35936X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35937X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35938
35939CC=`echo $CC | sed -e 's/ */ /g'`
35940CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35941CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35942CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035943DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35944LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35945TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35946MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35947#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35948
35949# Pass only user-provided LIBS as "global" libraries
35950LIBS=$USER_LIBS
35951
35952#AC_SUBST(CPPFLAGS)
35953
35954#AC_SUBST(LDFLAGS)
35955#AC_SUBST(X_PRE_LIBS)
35956#AC_SUBST(X_LIBS)
35957#AC_SUBST(X_EXTRA_LIBS)
35958
35959MAGICK_CFLAGS=$CFLAGS
35960MAGICK_CXXFLAGS="$CXXFLAGS"
35961MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35962MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35963MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000035964MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035965
35966
35967
35968
35969
35970
35971
35972
35973# Set configured scripts to executable.
35974ac_config_commands="$ac_config_commands default"
35975
cristy2bd4b6e2012-07-22 15:29:11 +000035976ac_config_commands="$ac_config_commands magick.sh.in"
35977
cristy3ed852e2009-09-05 21:47:34 +000035978ac_config_commands="$ac_config_commands MagickCore-config.in"
35979
cristy3ed852e2009-09-05 21:47:34 +000035980ac_config_commands="$ac_config_commands MagickWand-config.in"
35981
cristy3ed852e2009-09-05 21:47:34 +000035982ac_config_commands="$ac_config_commands Magick++-config.in"
35983
35984ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35985
35986
cristyad38abe2012-12-23 23:03:21 +000035987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35988$as_echo "-------------------------------------------------------------" >&6; }
35989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35990$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035991cat >confcache <<\_ACEOF
35992# This file is a shell script that caches the results of configure
35993# tests run on this system so they can be shared between configure
35994# scripts and configure runs, see configure's option --config-cache.
35995# It is not useful on other systems. If it contains results you don't
35996# want to keep, you may remove or edit it.
35997#
35998# config.status only pays attention to the cache file if you give it
35999# the --recheck option to rerun configure.
36000#
36001# `ac_cv_env_foo' variables (set or unset) will be overridden when
36002# loading this file, other *unset* `ac_cv_foo' will be assigned the
36003# following values.
36004
36005_ACEOF
36006
36007# The following way of writing the cache mishandles newlines in values,
36008# but we know of no workaround that is simple, portable, and efficient.
36009# So, we kill variables containing newlines.
36010# Ultrix sh set writes to stderr and can't be redirected directly,
36011# and sets the high bit in the cache file unless we assign to the vars.
36012(
36013 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36014 eval ac_val=\$$ac_var
36015 case $ac_val in #(
36016 *${as_nl}*)
36017 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036018 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036019$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36020 esac
36021 case $ac_var in #(
36022 _ | IFS | as_nl) ;; #(
36023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036024 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036025 esac ;;
36026 esac
36027 done
36028
36029 (set) 2>&1 |
36030 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36031 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036032 # `set' does not quote correctly, so add quotes: double-quote
36033 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036034 sed -n \
36035 "s/'/'\\\\''/g;
36036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36037 ;; #(
36038 *)
36039 # `set' quotes correctly as required by POSIX, so do not add quotes.
36040 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36041 ;;
36042 esac |
36043 sort
36044) |
36045 sed '
36046 /^ac_cv_env_/b end
36047 t clear
36048 :clear
36049 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36050 t end
36051 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36052 :end' >>confcache
36053if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36054 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036055 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036056 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036057$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036058 if test ! -f "$cache_file" || test -h "$cache_file"; then
36059 cat confcache >"$cache_file"
36060 else
36061 case $cache_file in #(
36062 */* | ?:*)
36063 mv -f confcache "$cache_file"$$ &&
36064 mv -f "$cache_file"$$ "$cache_file" ;; #(
36065 *)
36066 mv -f confcache "$cache_file" ;;
36067 esac
36068 fi
36069 fi
cristy3ed852e2009-09-05 21:47:34 +000036070 else
cristy8b350f62009-11-15 23:12:43 +000036071 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036072$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36073 fi
36074fi
36075rm -f confcache
36076
36077test "x$prefix" = xNONE && prefix=$ac_default_prefix
36078# Let make expand exec_prefix.
36079test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36080
36081DEFS=-DHAVE_CONFIG_H
36082
36083ac_libobjs=
36084ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036085U=
cristy3ed852e2009-09-05 21:47:34 +000036086for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36087 # 1. Remove the extension, and $U if already installed.
36088 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36089 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36090 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36091 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036092 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36093 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036094done
36095LIBOBJS=$ac_libobjs
36096
36097LTLIBOBJS=$ac_ltlibobjs
36098
36099
cristyc0890a62012-07-19 00:18:20 +000036100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36101$as_echo_n "checking that generated files are newer than configure... " >&6; }
36102 if test -n "$am_sleep_pid"; then
36103 # Hide warnings about reused PIDs.
36104 wait $am_sleep_pid 2>/dev/null
36105 fi
36106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36107$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036108 if test -n "$EXEEXT"; then
36109 am__EXEEXT_TRUE=
36110 am__EXEEXT_FALSE='#'
36111else
36112 am__EXEEXT_TRUE='#'
36113 am__EXEEXT_FALSE=
36114fi
cristy3ed852e2009-09-05 21:47:34 +000036115
cristy73bd4a52010-10-05 11:24:23 +000036116if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036117 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036118Usually this means the macro was only invoked conditionally." "$LINENO" 5
36119fi
36120if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036121 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036122Usually this means the macro was only invoked conditionally." "$LINENO" 5
36123fi
36124if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036125 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036126Usually this means the macro was only invoked conditionally." "$LINENO" 5
36127fi
36128if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036129 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036130Usually this means the macro was only invoked conditionally." "$LINENO" 5
36131fi
cristy9b86f202012-11-28 21:55:35 +000036132if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36133 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36134Usually this means the macro was only invoked conditionally." "$LINENO" 5
36135fi
cristy73bd4a52010-10-05 11:24:23 +000036136if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036137 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036138Usually this means the macro was only invoked conditionally." "$LINENO" 5
36139fi
36140if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036141 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036142Usually this means the macro was only invoked conditionally." "$LINENO" 5
36143fi
36144if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036145 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036146Usually this means the macro was only invoked conditionally." "$LINENO" 5
36147fi
36148if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036149 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036150Usually this means the macro was only invoked conditionally." "$LINENO" 5
36151fi
cristy73bd4a52010-10-05 11:24:23 +000036152if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036153 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036154Usually this means the macro was only invoked conditionally." "$LINENO" 5
36155fi
36156if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036157 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036158Usually this means the macro was only invoked conditionally." "$LINENO" 5
36159fi
cristy73bd4a52010-10-05 11:24:23 +000036160if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036161 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036162Usually this means the macro was only invoked conditionally." "$LINENO" 5
36163fi
cristy71d8c202012-03-20 17:05:01 +000036164if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36165 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36166Usually this means the macro was only invoked conditionally." "$LINENO" 5
36167fi
cristy73bd4a52010-10-05 11:24:23 +000036168
36169if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036170 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036171Usually this means the macro was only invoked conditionally." "$LINENO" 5
36172fi
36173if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036174 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036175Usually this means the macro was only invoked conditionally." "$LINENO" 5
36176fi
36177if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036178 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036179Usually this means the macro was only invoked conditionally." "$LINENO" 5
36180fi
36181if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036182 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036183Usually this means the macro was only invoked conditionally." "$LINENO" 5
36184fi
36185if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036186 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036187Usually this means the macro was only invoked conditionally." "$LINENO" 5
36188fi
36189if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036190 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036191Usually this means the macro was only invoked conditionally." "$LINENO" 5
36192fi
cristy5eef09f2012-10-16 12:08:28 +000036193if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36194 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36195Usually this means the macro was only invoked conditionally." "$LINENO" 5
36196fi
cristy73bd4a52010-10-05 11:24:23 +000036197if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036198 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036199Usually this means the macro was only invoked conditionally." "$LINENO" 5
36200fi
36201if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036202 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036203Usually this means the macro was only invoked conditionally." "$LINENO" 5
36204fi
36205if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036206 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036207Usually this means the macro was only invoked conditionally." "$LINENO" 5
36208fi
36209if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036210 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036211Usually this means the macro was only invoked conditionally." "$LINENO" 5
36212fi
36213if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036214 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036215Usually this means the macro was only invoked conditionally." "$LINENO" 5
36216fi
36217if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036218 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036219Usually this means the macro was only invoked conditionally." "$LINENO" 5
36220fi
36221if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036222 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036223Usually this means the macro was only invoked conditionally." "$LINENO" 5
36224fi
36225if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036226 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036227Usually this means the macro was only invoked conditionally." "$LINENO" 5
36228fi
36229if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036230 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036231Usually this means the macro was only invoked conditionally." "$LINENO" 5
36232fi
36233if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036234 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036235Usually this means the macro was only invoked conditionally." "$LINENO" 5
36236fi
36237if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036238 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036239Usually this means the macro was only invoked conditionally." "$LINENO" 5
36240fi
cristy73bd4a52010-10-05 11:24:23 +000036241if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036242 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036243Usually this means the macro was only invoked conditionally." "$LINENO" 5
36244fi
cristy99db3872014-01-01 15:11:34 +000036245if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36246 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36247Usually this means the macro was only invoked conditionally." "$LINENO" 5
36248fi
cristy73bd4a52010-10-05 11:24:23 +000036249if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036250 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036251Usually this means the macro was only invoked conditionally." "$LINENO" 5
36252fi
cristyfbb0ef02010-12-19 02:32:11 +000036253if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36254 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36255Usually this means the macro was only invoked conditionally." "$LINENO" 5
36256fi
cristy854c9cf2013-08-10 21:03:06 +000036257if test -z "${MUPDF_DELEGATE_TRUE}" && test -z "${MUPDF_DELEGATE_FALSE}"; then
36258 as_fn_error $? "conditional \"MUPDF_DELEGATE\" was never defined.
36259Usually this means the macro was only invoked conditionally." "$LINENO" 5
36260fi
cristy73bd4a52010-10-05 11:24:23 +000036261if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036262 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036263Usually this means the macro was only invoked conditionally." "$LINENO" 5
36264fi
cristy41cbe8a2011-10-27 01:35:18 +000036265if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36266 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36267Usually this means the macro was only invoked conditionally." "$LINENO" 5
36268fi
cristya054b762012-03-26 23:16:00 +000036269if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36270 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036271Usually this means the macro was only invoked conditionally." "$LINENO" 5
36272fi
cristy73bd4a52010-10-05 11:24:23 +000036273if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036274 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036275Usually this means the macro was only invoked conditionally." "$LINENO" 5
36276fi
36277if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036278 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036279Usually this means the macro was only invoked conditionally." "$LINENO" 5
36280fi
36281if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036282 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036283Usually this means the macro was only invoked conditionally." "$LINENO" 5
36284fi
36285if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036286 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036287Usually this means the macro was only invoked conditionally." "$LINENO" 5
36288fi
cristyb1860752011-03-14 00:27:46 +000036289if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36290 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36291Usually this means the macro was only invoked conditionally." "$LINENO" 5
36292fi
cristy73bd4a52010-10-05 11:24:23 +000036293if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036294 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036295Usually this means the macro was only invoked conditionally." "$LINENO" 5
36296fi
36297if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036298 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036299Usually this means the macro was only invoked conditionally." "$LINENO" 5
36300fi
cristydd17feb2014-03-05 02:06:32 +000036301if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36302 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36303Usually this means the macro was only invoked conditionally." "$LINENO" 5
36304fi
cristy73bd4a52010-10-05 11:24:23 +000036305if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036306 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036307Usually this means the macro was only invoked conditionally." "$LINENO" 5
36308fi
36309if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036310 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036311Usually this means the macro was only invoked conditionally." "$LINENO" 5
36312fi
36313if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036314 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036315Usually this means the macro was only invoked conditionally." "$LINENO" 5
36316fi
36317if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036318 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036319Usually this means the macro was only invoked conditionally." "$LINENO" 5
36320fi
36321if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036322 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036323Usually this means the macro was only invoked conditionally." "$LINENO" 5
36324fi
36325if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036326 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036327Usually this means the macro was only invoked conditionally." "$LINENO" 5
36328fi
cristy3ed852e2009-09-05 21:47:34 +000036329
cristyda16f162011-02-19 23:52:17 +000036330: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036331ac_write_fail=0
36332ac_clean_files_save=$ac_clean_files
36333ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036334{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036335$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036336as_write_fail=0
36337cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036338#! $SHELL
36339# Generated by $as_me.
36340# Run this file to recreate the current configuration.
36341# Compiler output produced by configure, useful for debugging
36342# configure, is in config.log if it exists.
36343
36344debug=false
36345ac_cs_recheck=false
36346ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036347
cristy8b350f62009-11-15 23:12:43 +000036348SHELL=\${CONFIG_SHELL-$SHELL}
36349export SHELL
36350_ASEOF
36351cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36352## -------------------- ##
36353## M4sh Initialization. ##
36354## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036355
36356# Be more Bourne compatible
36357DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036358if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036359 emulate sh
36360 NULLCMD=:
36361 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36362 # is contrary to our usage. Disable this feature.
36363 alias -g '${1+"$@"}'='"$@"'
36364 setopt NO_GLOB_SUBST
36365else
cristy8b350f62009-11-15 23:12:43 +000036366 case `(set -o) 2>/dev/null` in #(
36367 *posix*) :
36368 set -o posix ;; #(
36369 *) :
36370 ;;
cristy3ed852e2009-09-05 21:47:34 +000036371esac
cristy3ed852e2009-09-05 21:47:34 +000036372fi
36373
36374
cristy3ed852e2009-09-05 21:47:34 +000036375as_nl='
36376'
36377export as_nl
36378# Printing a long string crashes Solaris 7 /usr/bin/printf.
36379as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36380as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36381as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036382# Prefer a ksh shell builtin over an external printf program on Solaris,
36383# but without wasting forks for bash or zsh.
36384if test -z "$BASH_VERSION$ZSH_VERSION" \
36385 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36386 as_echo='print -r --'
36387 as_echo_n='print -rn --'
36388elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036389 as_echo='printf %s\n'
36390 as_echo_n='printf %s'
36391else
36392 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36393 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36394 as_echo_n='/usr/ucb/echo -n'
36395 else
36396 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36397 as_echo_n_body='eval
36398 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036399 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036400 *"$as_nl"*)
36401 expr "X$arg" : "X\\(.*\\)$as_nl";
36402 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36403 esac;
36404 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36405 '
36406 export as_echo_n_body
36407 as_echo_n='sh -c $as_echo_n_body as_echo'
36408 fi
36409 export as_echo_body
36410 as_echo='sh -c $as_echo_body as_echo'
36411fi
36412
36413# The user is always right.
36414if test "${PATH_SEPARATOR+set}" != set; then
36415 PATH_SEPARATOR=:
36416 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36417 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36418 PATH_SEPARATOR=';'
36419 }
36420fi
36421
cristy3ed852e2009-09-05 21:47:34 +000036422
36423# IFS
36424# We need space, tab and new line, in precisely that order. Quoting is
36425# there to prevent editors from complaining about space-tab.
36426# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36427# splitting by setting IFS to empty value.)
36428IFS=" "" $as_nl"
36429
36430# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036431as_myself=
cristy8b350f62009-11-15 23:12:43 +000036432case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036433 *[\\/]* ) as_myself=$0 ;;
36434 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36435for as_dir in $PATH
36436do
36437 IFS=$as_save_IFS
36438 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036439 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36440 done
cristy3ed852e2009-09-05 21:47:34 +000036441IFS=$as_save_IFS
36442
36443 ;;
36444esac
36445# We did not find ourselves, most probably we were run as `sh COMMAND'
36446# in which case we are not to be found in the path.
36447if test "x$as_myself" = x; then
36448 as_myself=$0
36449fi
36450if test ! -f "$as_myself"; then
36451 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036452 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036453fi
36454
cristy8b350f62009-11-15 23:12:43 +000036455# Unset variables that we do not need and which cause bugs (e.g. in
36456# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36457# suppresses any "Segmentation fault" message there. '((' could
36458# trigger a bug in pdksh 5.2.14.
36459for as_var in BASH_ENV ENV MAIL MAILPATH
36460do eval test x\${$as_var+set} = xset \
36461 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036462done
36463PS1='$ '
36464PS2='> '
36465PS4='+ '
36466
36467# NLS nuisances.
36468LC_ALL=C
36469export LC_ALL
36470LANGUAGE=C
36471export LANGUAGE
36472
cristy8b350f62009-11-15 23:12:43 +000036473# CDPATH.
36474(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36475
36476
cristy98dddb52010-11-04 00:30:15 +000036477# as_fn_error STATUS ERROR [LINENO LOG_FD]
36478# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036479# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36480# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036481# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036482as_fn_error ()
36483{
cristy98dddb52010-11-04 00:30:15 +000036484 as_status=$1; test $as_status -eq 0 && as_status=1
36485 if test "$4"; then
36486 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36487 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036488 fi
cristy98dddb52010-11-04 00:30:15 +000036489 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036490 as_fn_exit $as_status
36491} # as_fn_error
36492
36493
36494# as_fn_set_status STATUS
36495# -----------------------
36496# Set $? to STATUS, without forking.
36497as_fn_set_status ()
36498{
36499 return $1
36500} # as_fn_set_status
36501
36502# as_fn_exit STATUS
36503# -----------------
36504# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36505as_fn_exit ()
36506{
36507 set +e
36508 as_fn_set_status $1
36509 exit $1
36510} # as_fn_exit
36511
36512# as_fn_unset VAR
36513# ---------------
36514# Portably unset VAR.
36515as_fn_unset ()
36516{
36517 { eval $1=; unset $1;}
36518}
36519as_unset=as_fn_unset
36520# as_fn_append VAR VALUE
36521# ----------------------
36522# Append the text in VALUE to the end of the definition contained in VAR. Take
36523# advantage of any shell optimizations that allow amortized linear growth over
36524# repeated appends, instead of the typical quadratic growth present in naive
36525# implementations.
36526if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36527 eval 'as_fn_append ()
36528 {
36529 eval $1+=\$2
36530 }'
36531else
36532 as_fn_append ()
36533 {
36534 eval $1=\$$1\$2
36535 }
36536fi # as_fn_append
36537
36538# as_fn_arith ARG...
36539# ------------------
36540# Perform arithmetic evaluation on the ARGs, and store the result in the
36541# global $as_val. Take advantage of shells that can avoid forks. The arguments
36542# must be portable across $(()) and expr.
36543if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36544 eval 'as_fn_arith ()
36545 {
36546 as_val=$(( $* ))
36547 }'
36548else
36549 as_fn_arith ()
36550 {
36551 as_val=`expr "$@" || test $? -eq 1`
36552 }
36553fi # as_fn_arith
36554
36555
cristy3ed852e2009-09-05 21:47:34 +000036556if expr a : '\(a\)' >/dev/null 2>&1 &&
36557 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36558 as_expr=expr
36559else
36560 as_expr=false
36561fi
36562
36563if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36564 as_basename=basename
36565else
36566 as_basename=false
36567fi
36568
cristy8b350f62009-11-15 23:12:43 +000036569if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36570 as_dirname=dirname
36571else
36572 as_dirname=false
36573fi
cristy3ed852e2009-09-05 21:47:34 +000036574
cristy3ed852e2009-09-05 21:47:34 +000036575as_me=`$as_basename -- "$0" ||
36576$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36577 X"$0" : 'X\(//\)$' \| \
36578 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36579$as_echo X/"$0" |
36580 sed '/^.*\/\([^/][^/]*\)\/*$/{
36581 s//\1/
36582 q
36583 }
36584 /^X\/\(\/\/\)$/{
36585 s//\1/
36586 q
36587 }
36588 /^X\/\(\/\).*/{
36589 s//\1/
36590 q
36591 }
36592 s/.*/./; q'`
36593
cristy8b350f62009-11-15 23:12:43 +000036594# Avoid depending upon Character Ranges.
36595as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36596as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36597as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36598as_cr_digits='0123456789'
36599as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036600
36601ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036602case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036603-n*)
cristy8b350f62009-11-15 23:12:43 +000036604 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036605 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036606 xy) ECHO_C='\c';;
36607 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36608 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036609 esac;;
36610*)
36611 ECHO_N='-n';;
36612esac
cristy3ed852e2009-09-05 21:47:34 +000036613
36614rm -f conf$$ conf$$.exe conf$$.file
36615if test -d conf$$.dir; then
36616 rm -f conf$$.dir/conf$$.file
36617else
36618 rm -f conf$$.dir
36619 mkdir conf$$.dir 2>/dev/null
36620fi
36621if (echo >conf$$.file) 2>/dev/null; then
36622 if ln -s conf$$.file conf$$ 2>/dev/null; then
36623 as_ln_s='ln -s'
36624 # ... but there are two gotchas:
36625 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36626 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036627 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036628 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036629 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036630 elif ln conf$$.file conf$$ 2>/dev/null; then
36631 as_ln_s=ln
36632 else
cristy14fefe52012-05-21 00:59:18 +000036633 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036634 fi
36635else
cristy14fefe52012-05-21 00:59:18 +000036636 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036637fi
36638rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36639rmdir conf$$.dir 2>/dev/null
36640
cristy8b350f62009-11-15 23:12:43 +000036641
36642# as_fn_mkdir_p
36643# -------------
36644# Create "$as_dir" as a directory, including parents if necessary.
36645as_fn_mkdir_p ()
36646{
36647
36648 case $as_dir in #(
36649 -*) as_dir=./$as_dir;;
36650 esac
36651 test -d "$as_dir" || eval $as_mkdir_p || {
36652 as_dirs=
36653 while :; do
36654 case $as_dir in #(
36655 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36656 *) as_qdir=$as_dir;;
36657 esac
36658 as_dirs="'$as_qdir' $as_dirs"
36659 as_dir=`$as_dirname -- "$as_dir" ||
36660$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36661 X"$as_dir" : 'X\(//\)[^/]' \| \
36662 X"$as_dir" : 'X\(//\)$' \| \
36663 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36664$as_echo X"$as_dir" |
36665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36666 s//\1/
36667 q
36668 }
36669 /^X\(\/\/\)[^/].*/{
36670 s//\1/
36671 q
36672 }
36673 /^X\(\/\/\)$/{
36674 s//\1/
36675 q
36676 }
36677 /^X\(\/\).*/{
36678 s//\1/
36679 q
36680 }
36681 s/.*/./; q'`
36682 test -d "$as_dir" && break
36683 done
36684 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036685 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036686
36687
36688} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036689if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036690 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036691else
36692 test -d ./-p && rmdir ./-p
36693 as_mkdir_p=false
36694fi
36695
cristy14fefe52012-05-21 00:59:18 +000036696
36697# as_fn_executable_p FILE
36698# -----------------------
36699# Test if FILE is an executable regular file.
36700as_fn_executable_p ()
36701{
36702 test -f "$1" && test -x "$1"
36703} # as_fn_executable_p
36704as_test_x='test -x'
36705as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036706
36707# Sed expression to map a string onto a valid CPP name.
36708as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36709
36710# Sed expression to map a string onto a valid variable name.
36711as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36712
36713
36714exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036715## ----------------------------------- ##
36716## Main body of $CONFIG_STATUS script. ##
36717## ----------------------------------- ##
36718_ASEOF
36719test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036720
cristy8b350f62009-11-15 23:12:43 +000036721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36722# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036723# report actual input values of CONFIG_FILES etc. instead of their
36724# values after options handling.
36725ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036726This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036727generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036728
36729 CONFIG_FILES = $CONFIG_FILES
36730 CONFIG_HEADERS = $CONFIG_HEADERS
36731 CONFIG_LINKS = $CONFIG_LINKS
36732 CONFIG_COMMANDS = $CONFIG_COMMANDS
36733 $ $0 $@
36734
36735on `(hostname || uname -n) 2>/dev/null | sed 1q`
36736"
36737
36738_ACEOF
36739
36740case $ac_config_files in *"
36741"*) set x $ac_config_files; shift; ac_config_files=$*;;
36742esac
36743
36744case $ac_config_headers in *"
36745"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36746esac
36747
36748
36749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36750# Files that config.status was made for.
36751config_files="$ac_config_files"
36752config_headers="$ac_config_headers"
36753config_commands="$ac_config_commands"
36754
36755_ACEOF
36756
36757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36758ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036759\`$as_me' instantiates files and other configuration actions
36760from templates according to the current configuration. Unless the files
36761and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036762
cristy8b350f62009-11-15 23:12:43 +000036763Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036764
36765 -h, --help print this help, then exit
36766 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036767 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036768 -q, --quiet, --silent
36769 do not print progress messages
36770 -d, --debug don't remove temporary files
36771 --recheck update $as_me by reconfiguring in the same conditions
36772 --file=FILE[:TEMPLATE]
36773 instantiate the configuration file FILE
36774 --header=FILE[:TEMPLATE]
36775 instantiate the configuration header FILE
36776
36777Configuration files:
36778$config_files
36779
36780Configuration headers:
36781$config_headers
36782
36783Configuration commands:
36784$config_commands
36785
cristy8b350f62009-11-15 23:12:43 +000036786Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036787
36788_ACEOF
36789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036790ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036791ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036792ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036793configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036794 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036795
cristy14fefe52012-05-21 00:59:18 +000036796Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036797This config.status script is free software; the Free Software Foundation
36798gives unlimited permission to copy, distribute and modify it."
36799
36800ac_pwd='$ac_pwd'
36801srcdir='$srcdir'
36802INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036803MKDIR_P='$MKDIR_P'
36804AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036805test -n "\$AWK" || AWK=awk
36806_ACEOF
36807
36808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36809# The default lists apply if the user does not specify any file.
36810ac_need_defaults=:
36811while test $# != 0
36812do
36813 case $1 in
cristyda16f162011-02-19 23:52:17 +000036814 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036815 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36816 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36817 ac_shift=:
36818 ;;
cristyda16f162011-02-19 23:52:17 +000036819 --*=)
36820 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36821 ac_optarg=
36822 ac_shift=:
36823 ;;
cristy3ed852e2009-09-05 21:47:34 +000036824 *)
36825 ac_option=$1
36826 ac_optarg=$2
36827 ac_shift=shift
36828 ;;
36829 esac
36830
36831 case $ac_option in
36832 # Handling of the options.
36833 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36834 ac_cs_recheck=: ;;
36835 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36836 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036837 --config | --confi | --conf | --con | --co | --c )
36838 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036839 --debug | --debu | --deb | --de | --d | -d )
36840 debug=: ;;
36841 --file | --fil | --fi | --f )
36842 $ac_shift
36843 case $ac_optarg in
36844 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036845 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036846 esac
cristy8b350f62009-11-15 23:12:43 +000036847 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036848 ac_need_defaults=false;;
36849 --header | --heade | --head | --hea )
36850 $ac_shift
36851 case $ac_optarg in
36852 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36853 esac
cristy8b350f62009-11-15 23:12:43 +000036854 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036855 ac_need_defaults=false;;
36856 --he | --h)
36857 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036858 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036859Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036860 --help | --hel | -h )
36861 $as_echo "$ac_cs_usage"; exit ;;
36862 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36863 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36864 ac_cs_silent=: ;;
36865
36866 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036867 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036868Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036869
cristy8b350f62009-11-15 23:12:43 +000036870 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036871 ac_need_defaults=false ;;
36872
36873 esac
36874 shift
36875done
36876
36877ac_configure_extra_args=
36878
36879if $ac_cs_silent; then
36880 exec 6>/dev/null
36881 ac_configure_extra_args="$ac_configure_extra_args --silent"
36882fi
36883
36884_ACEOF
36885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36886if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036887 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036888 shift
36889 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36890 CONFIG_SHELL='$SHELL'
36891 export CONFIG_SHELL
36892 exec "\$@"
36893fi
36894
36895_ACEOF
36896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36897exec 5>>config.log
36898{
36899 echo
36900 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36901## Running $as_me. ##
36902_ASBOX
36903 $as_echo "$ac_log"
36904} >&5
36905
36906_ACEOF
36907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036908#
36909# INIT-COMMANDS
36910#
36911PACKAGE="$PACKAGE"
36912AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36913
36914
36915# The HP-UX ksh and POSIX shell print the target directory to stdout
36916# if CDPATH is set.
36917(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36918
36919sed_quote_subst='$sed_quote_subst'
36920double_quote_subst='$double_quote_subst'
36921delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036922SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36923Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36924GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36925EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36926FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36927SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36928ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36929LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36930macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36931macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36932AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36933DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36934OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36935enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36936enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36937pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36938enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036939PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036940host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36941host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36942host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36943build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36944build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36945build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36946NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36947LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36948max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36949ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36950exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36951lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36952lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36953lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036954lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36955lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036956reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36957reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36958deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36959file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036960file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36961want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36962sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036963AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36964AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036965archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036966STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36967RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36968old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36969old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36970old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36971lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36972CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36973CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36974compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36975GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36976lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36977lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36978lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36979lt_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 +000036980nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36981lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036982objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36983MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36984lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036985lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036986lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036987lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36988lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36989need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036990MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036991DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36992NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36993LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36994OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36995OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36996libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36997shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36998extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36999archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37000enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37001export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37002whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37003compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37004old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37005old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37006archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37007archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37008module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37009module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37010with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37011allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37012no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37013hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037014hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37015hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37016hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37017hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37018hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37019hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37020inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37021link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037022always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37023export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37024exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37025include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37026prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037027postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037028file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37029variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37030need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37031need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37032version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37033runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37034shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37035shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37036libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37037library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37038soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37039install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37040postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37041postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37042finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37043finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37044hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37045sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37046sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37047hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37048enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37049enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37050enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37051old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37052striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37053compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37054predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37055postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37056predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37057postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37058compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37059LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37060reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37061reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37062old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37063compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37064GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37065lt_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 +000037066lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037067lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037068lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37069lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37070archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37071enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37072export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37073whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37074compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37075old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37076old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37077archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37078archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37079module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37080module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37081with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37082allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37083no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37084hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037085hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37086hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37087hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37088hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37089hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37090hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37091inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37092link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037093always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37094export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37095exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37096include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37097prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037098postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037099file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37100hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37101compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37102predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37103postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37104predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37105postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37106compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037107
37108LTCC='$LTCC'
37109LTCFLAGS='$LTCFLAGS'
37110compiler='$compiler_DEFAULT'
37111
cristy0c60a692010-11-04 01:09:47 +000037112# A function that is used when there is no print builtin or printf.
37113func_fallback_echo ()
37114{
37115 eval 'cat <<_LTECHO_EOF
37116\$1
37117_LTECHO_EOF'
37118}
37119
cristy73bd4a52010-10-05 11:24:23 +000037120# Quote evaled strings.
37121for var in SED \
37122GREP \
37123EGREP \
37124FGREP \
cristy0c60a692010-11-04 01:09:47 +000037125SHELL \
37126ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037127LD \
cristy0c60a692010-11-04 01:09:47 +000037128AS \
37129DLLTOOL \
37130OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037131PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037132NM \
37133LN_S \
37134lt_SP2NL \
37135lt_NL2SP \
37136reload_flag \
37137deplibs_check_method \
37138file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037139file_magic_glob \
37140want_nocaseglob \
37141sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037142AR \
37143AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037144archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037145STRIP \
37146RANLIB \
37147CC \
37148CFLAGS \
37149compiler \
37150lt_cv_sys_global_symbol_pipe \
37151lt_cv_sys_global_symbol_to_cdecl \
37152lt_cv_sys_global_symbol_to_c_name_address \
37153lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037154nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037155lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037156lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037157lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037158lt_prog_compiler_static \
37159lt_cv_prog_compiler_c_o \
37160need_locks \
cristyda16f162011-02-19 23:52:17 +000037161MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037162DSYMUTIL \
37163NMEDIT \
37164LIPO \
37165OTOOL \
37166OTOOL64 \
37167shrext_cmds \
37168export_dynamic_flag_spec \
37169whole_archive_flag_spec \
37170compiler_needs_object \
37171with_gnu_ld \
37172allow_undefined_flag \
37173no_undefined_flag \
37174hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037175hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037176exclude_expsyms \
37177include_expsyms \
37178file_list_spec \
37179variables_saved_for_relink \
37180libname_spec \
37181library_names_spec \
37182soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037183install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037184finish_eval \
37185old_striplib \
37186striplib \
37187compiler_lib_search_dirs \
37188predep_objects \
37189postdep_objects \
37190predeps \
37191postdeps \
37192compiler_lib_search_path \
37193LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037194reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037195compiler_CXX \
37196lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037197lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037198lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037199lt_prog_compiler_static_CXX \
37200lt_cv_prog_compiler_c_o_CXX \
37201export_dynamic_flag_spec_CXX \
37202whole_archive_flag_spec_CXX \
37203compiler_needs_object_CXX \
37204with_gnu_ld_CXX \
37205allow_undefined_flag_CXX \
37206no_undefined_flag_CXX \
37207hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037208hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037209exclude_expsyms_CXX \
37210include_expsyms_CXX \
37211file_list_spec_CXX \
37212compiler_lib_search_dirs_CXX \
37213predep_objects_CXX \
37214postdep_objects_CXX \
37215predeps_CXX \
37216postdeps_CXX \
37217compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037218 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037219 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037220 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037221 ;;
37222 *)
37223 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37224 ;;
37225 esac
37226done
37227
37228# Double-quote double-evaled strings.
37229for var in reload_cmds \
37230old_postinstall_cmds \
37231old_postuninstall_cmds \
37232old_archive_cmds \
37233extract_expsyms_cmds \
37234old_archive_from_new_cmds \
37235old_archive_from_expsyms_cmds \
37236archive_cmds \
37237archive_expsym_cmds \
37238module_cmds \
37239module_expsym_cmds \
37240export_symbols_cmds \
37241prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037242postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037243postinstall_cmds \
37244postuninstall_cmds \
37245finish_cmds \
37246sys_lib_search_path_spec \
37247sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037248reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037249old_archive_cmds_CXX \
37250old_archive_from_new_cmds_CXX \
37251old_archive_from_expsyms_cmds_CXX \
37252archive_cmds_CXX \
37253archive_expsym_cmds_CXX \
37254module_cmds_CXX \
37255module_expsym_cmds_CXX \
37256export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037257prelink_cmds_CXX \
37258postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037259 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037260 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037261 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037262 ;;
37263 *)
37264 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37265 ;;
37266 esac
37267done
37268
cristy73bd4a52010-10-05 11:24:23 +000037269ac_aux_dir='$ac_aux_dir'
37270xsi_shell='$xsi_shell'
37271lt_shell_append='$lt_shell_append'
37272
37273# See if we are running on zsh, and set the options which allow our
37274# commands through without removal of \ escapes INIT.
37275if test -n "\${ZSH_VERSION+set}" ; then
37276 setopt NO_GLOB_SUBST
37277fi
37278
37279
37280 PACKAGE='$PACKAGE'
37281 VERSION='$VERSION'
37282 TIMESTAMP='$TIMESTAMP'
37283 RM='$RM'
37284 ofile='$ofile'
37285
37286
37287
37288
37289
37290
cristy3ed852e2009-09-05 21:47:34 +000037291_ACEOF
37292
37293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37294
37295# Handling of arguments.
37296for ac_config_target in $ac_config_targets
37297do
37298 case $ac_config_target in
37299 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037300 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037301 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037302 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37303 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37304 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37305 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37306 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037307 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037308 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037309 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37310 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37311 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37312 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37313 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037314 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037315 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037316 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37317 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37318 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037319 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37320 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037321 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037322 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037323 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037324 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037325 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37326 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37327 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37328 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037329 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37330 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37331 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37332 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37333 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37334 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37335 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37336 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37337 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37338 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37339 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37340 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037341 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37342 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037343 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37344 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037345 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037346 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037347 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037348 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037349 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37350 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37351
cristy98dddb52010-11-04 00:30:15 +000037352 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037353 esac
37354done
37355
37356
37357# If the user did not use the arguments to specify the items to instantiate,
37358# then the envvar interface is used. Set only those that are not.
37359# We use the long form for the default assignment because of an extremely
37360# bizarre bug on SunOS 4.1.3.
37361if $ac_need_defaults; then
37362 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37363 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37364 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37365fi
37366
37367# Have a temporary directory for convenience. Make it in the build tree
37368# simply because there is no reason against having it here, and in addition,
37369# creating and moving files from /tmp can sometimes cause problems.
37370# Hook for its removal unless debugging.
37371# Note that there is a small window in which the directory will not be cleaned:
37372# after its creation but before its name has been assigned to `$tmp'.
37373$debug ||
37374{
cristyda16f162011-02-19 23:52:17 +000037375 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037376 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037377 : "${ac_tmp:=$tmp}"
37378 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037379' 0
cristy8b350f62009-11-15 23:12:43 +000037380 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037381}
37382# Create a (secure) tmp directory for tmp files.
37383
37384{
37385 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037386 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037387} ||
37388{
37389 tmp=./conf$$-$RANDOM
37390 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037391} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037392ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037393
37394# Set up the scripts for CONFIG_FILES section.
37395# No need to generate them if there are no CONFIG_FILES.
37396# This happens for instance with `./config.status config.h'.
37397if test -n "$CONFIG_FILES"; then
37398
37399
cristy8b350f62009-11-15 23:12:43 +000037400ac_cr=`echo X | tr X '\015'`
37401# On cygwin, bash can eat \r inside `` if the user requested igncr.
37402# But we know of no other shell where ac_cr would be empty at this
37403# point, so we can use a bashism as a fallback.
37404if test "x$ac_cr" = x; then
37405 eval ac_cr=\$\'\\r\'
37406fi
cristy3ed852e2009-09-05 21:47:34 +000037407ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37408if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037409 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037410else
37411 ac_cs_awk_cr=$ac_cr
37412fi
37413
cristyda16f162011-02-19 23:52:17 +000037414echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037415_ACEOF
37416
37417
37418{
37419 echo "cat >conf$$subs.awk <<_ACEOF" &&
37420 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37421 echo "_ACEOF"
37422} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037423 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37424ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037425ac_delim='%!_!# '
37426for ac_last_try in false false false false false :; do
37427 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037428 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037429
37430 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37431 if test $ac_delim_n = $ac_delim_num; then
37432 break
37433 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037434 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037435 else
37436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37437 fi
37438done
37439rm -f conf$$subs.sh
37440
37441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037442cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037443_ACEOF
37444sed -n '
37445h
37446s/^/S["/; s/!.*/"]=/
37447p
37448g
37449s/^[^!]*!//
37450:repl
37451t repl
37452s/'"$ac_delim"'$//
37453t delim
37454:nl
37455h
cristycd4c5312009-11-22 01:19:08 +000037456s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037457t more1
37458s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37459p
37460n
37461b repl
37462:more1
37463s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37464p
37465g
37466s/.\{148\}//
37467t nl
37468:delim
37469h
cristycd4c5312009-11-22 01:19:08 +000037470s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037471t more2
37472s/["\\]/\\&/g; s/^/"/; s/$/"/
37473p
37474b
37475:more2
37476s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37477p
37478g
37479s/.\{148\}//
37480t delim
37481' <conf$$subs.awk | sed '
37482/^[^""]/{
37483 N
37484 s/\n//
37485}
37486' >>$CONFIG_STATUS || ac_write_fail=1
37487rm -f conf$$subs.awk
37488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37489_ACAWK
cristyda16f162011-02-19 23:52:17 +000037490cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037491 for (key in S) S_is_set[key] = 1
37492 FS = ""
37493
37494}
37495{
37496 line = $ 0
37497 nfields = split(line, field, "@")
37498 substed = 0
37499 len = length(field[1])
37500 for (i = 2; i < nfields; i++) {
37501 key = field[i]
37502 keylen = length(key)
37503 if (S_is_set[key]) {
37504 value = S[key]
37505 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37506 len += length(value) + length(field[++i])
37507 substed = 1
37508 } else
37509 len += 1 + keylen
37510 }
37511
37512 print line
37513}
37514
37515_ACAWK
37516_ACEOF
37517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37518if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37519 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37520else
37521 cat
cristyda16f162011-02-19 23:52:17 +000037522fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037523 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037524_ACEOF
37525
cristy98dddb52010-11-04 00:30:15 +000037526# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37527# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037528# trailing colons and then remove the whole line if VPATH becomes empty
37529# (actually we leave an empty line to preserve line numbers).
37530if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037531 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37532h
37533s///
37534s/^/:/
37535s/[ ]*$/:/
37536s/:\$(srcdir):/:/g
37537s/:\${srcdir}:/:/g
37538s/:@srcdir@:/:/g
37539s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037540s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037541x
37542s/\(=[ ]*\).*/\1/
37543G
37544s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037545s/^[^=]*=[ ]*$//
37546}'
37547fi
37548
37549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37550fi # test -n "$CONFIG_FILES"
37551
37552# Set up the scripts for CONFIG_HEADERS section.
37553# No need to generate them if there are no CONFIG_HEADERS.
37554# This happens for instance with `./config.status Makefile'.
37555if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037556cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037557BEGIN {
37558_ACEOF
37559
37560# Transform confdefs.h into an awk script `defines.awk', embedded as
37561# here-document in config.status, that substitutes the proper values into
37562# config.h.in to produce config.h.
37563
37564# Create a delimiter string that does not exist in confdefs.h, to ease
37565# handling of long lines.
37566ac_delim='%!_!# '
37567for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037568 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37569 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037570 break
37571 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037572 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037573 else
37574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37575 fi
37576done
37577
37578# For the awk script, D is an array of macro values keyed by name,
37579# likewise P contains macro parameters if any. Preserve backslash
37580# newline sequences.
37581
37582ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37583sed -n '
37584s/.\{148\}/&'"$ac_delim"'/g
37585t rset
37586:rset
37587s/^[ ]*#[ ]*define[ ][ ]*/ /
37588t def
37589d
37590:def
37591s/\\$//
37592t bsnl
37593s/["\\]/\\&/g
37594s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37595D["\1"]=" \3"/p
37596s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37597d
37598:bsnl
37599s/["\\]/\\&/g
37600s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37601D["\1"]=" \3\\\\\\n"\\/p
37602t cont
37603s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37604t cont
37605d
37606:cont
37607n
37608s/.\{148\}/&'"$ac_delim"'/g
37609t clear
37610:clear
37611s/\\$//
37612t bsnlc
37613s/["\\]/\\&/g; s/^/"/; s/$/"/p
37614d
37615:bsnlc
37616s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37617b cont
37618' <confdefs.h | sed '
37619s/'"$ac_delim"'/"\\\
37620"/g' >>$CONFIG_STATUS || ac_write_fail=1
37621
37622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37623 for (key in D) D_is_set[key] = 1
37624 FS = ""
37625}
37626/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37627 line = \$ 0
37628 split(line, arg, " ")
37629 if (arg[1] == "#") {
37630 defundef = arg[2]
37631 mac1 = arg[3]
37632 } else {
37633 defundef = substr(arg[1], 2)
37634 mac1 = arg[2]
37635 }
37636 split(mac1, mac2, "(") #)
37637 macro = mac2[1]
37638 prefix = substr(line, 1, index(line, defundef) - 1)
37639 if (D_is_set[macro]) {
37640 # Preserve the white space surrounding the "#".
37641 print prefix "define", macro P[macro] D[macro]
37642 next
37643 } else {
37644 # Replace #undef with comments. This is necessary, for example,
37645 # in the case of _POSIX_SOURCE, which is predefined and required
37646 # on some systems where configure will not decide to define it.
37647 if (defundef == "undef") {
37648 print "/*", prefix defundef, macro, "*/"
37649 next
37650 }
37651 }
37652}
37653{ print }
37654_ACAWK
37655_ACEOF
37656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037657 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037658fi # test -n "$CONFIG_HEADERS"
37659
37660
37661eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37662shift
37663for ac_tag
37664do
37665 case $ac_tag in
37666 :[FHLC]) ac_mode=$ac_tag; continue;;
37667 esac
37668 case $ac_mode$ac_tag in
37669 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037670 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037671 :[FH]-) ac_tag=-:-;;
37672 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37673 esac
37674 ac_save_IFS=$IFS
37675 IFS=:
37676 set x $ac_tag
37677 IFS=$ac_save_IFS
37678 shift
37679 ac_file=$1
37680 shift
37681
37682 case $ac_mode in
37683 :L) ac_source=$1;;
37684 :[FH])
37685 ac_file_inputs=
37686 for ac_f
37687 do
37688 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037689 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037690 *) # Look for the file first in the build tree, then in the source tree
37691 # (if the path is not absolute). The absolute path cannot be DOS-style,
37692 # because $ac_f cannot contain `:'.
37693 test -f "$ac_f" ||
37694 case $ac_f in
37695 [\\/$]*) false;;
37696 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37697 esac ||
cristy98dddb52010-11-04 00:30:15 +000037698 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037699 esac
37700 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037701 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037702 done
37703
37704 # Let's still pretend it is `configure' which instantiates (i.e., don't
37705 # use $as_me), people would be surprised to read:
37706 # /* config.h. Generated by config.status. */
37707 configure_input='Generated from '`
37708 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37709 `' by configure.'
37710 if test x"$ac_file" != x-; then
37711 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037713$as_echo "$as_me: creating $ac_file" >&6;}
37714 fi
37715 # Neutralize special characters interpreted by sed in replacement strings.
37716 case $configure_input in #(
37717 *\&* | *\|* | *\\* )
37718 ac_sed_conf_input=`$as_echo "$configure_input" |
37719 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37720 *) ac_sed_conf_input=$configure_input;;
37721 esac
37722
37723 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037724 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037725 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037726 esac
37727 ;;
37728 esac
37729
37730 ac_dir=`$as_dirname -- "$ac_file" ||
37731$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37732 X"$ac_file" : 'X\(//\)[^/]' \| \
37733 X"$ac_file" : 'X\(//\)$' \| \
37734 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37735$as_echo X"$ac_file" |
37736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37737 s//\1/
37738 q
37739 }
37740 /^X\(\/\/\)[^/].*/{
37741 s//\1/
37742 q
37743 }
37744 /^X\(\/\/\)$/{
37745 s//\1/
37746 q
37747 }
37748 /^X\(\/\).*/{
37749 s//\1/
37750 q
37751 }
37752 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037753 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037754 ac_builddir=.
37755
37756case "$ac_dir" in
37757.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37758*)
37759 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37760 # A ".." for each directory in $ac_dir_suffix.
37761 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37762 case $ac_top_builddir_sub in
37763 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37764 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37765 esac ;;
37766esac
37767ac_abs_top_builddir=$ac_pwd
37768ac_abs_builddir=$ac_pwd$ac_dir_suffix
37769# for backward compatibility:
37770ac_top_builddir=$ac_top_build_prefix
37771
37772case $srcdir in
37773 .) # We are building in place.
37774 ac_srcdir=.
37775 ac_top_srcdir=$ac_top_builddir_sub
37776 ac_abs_top_srcdir=$ac_pwd ;;
37777 [\\/]* | ?:[\\/]* ) # Absolute name.
37778 ac_srcdir=$srcdir$ac_dir_suffix;
37779 ac_top_srcdir=$srcdir
37780 ac_abs_top_srcdir=$srcdir ;;
37781 *) # Relative name.
37782 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37783 ac_top_srcdir=$ac_top_build_prefix$srcdir
37784 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37785esac
37786ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37787
37788
37789 case $ac_mode in
37790 :F)
37791 #
37792 # CONFIG_FILE
37793 #
37794
37795 case $INSTALL in
37796 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37797 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37798 esac
cristy73bd4a52010-10-05 11:24:23 +000037799 ac_MKDIR_P=$MKDIR_P
37800 case $MKDIR_P in
37801 [\\/$]* | ?:[\\/]* ) ;;
37802 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37803 esac
cristy3ed852e2009-09-05 21:47:34 +000037804_ACEOF
37805
37806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37807# If the template does not know about datarootdir, expand it.
37808# FIXME: This hack should be removed a few years after 2.60.
37809ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037810ac_sed_dataroot='
37811/datarootdir/ {
37812 p
37813 q
37814}
37815/@datadir@/p
37816/@docdir@/p
37817/@infodir@/p
37818/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037819/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037820case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37821*datarootdir*) ac_datarootdir_seen=yes;;
37822*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037824$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37825_ACEOF
37826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37827 ac_datarootdir_hack='
37828 s&@datadir@&$datadir&g
37829 s&@docdir@&$docdir&g
37830 s&@infodir@&$infodir&g
37831 s&@localedir@&$localedir&g
37832 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037833 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037834esac
37835_ACEOF
37836
37837# Neutralize VPATH when `$srcdir' = `.'.
37838# Shell code in configure.ac might set extrasub.
37839# FIXME: do we really want to maintain this feature?
37840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37841ac_sed_extra="$ac_vpsub
37842$extrasub
37843_ACEOF
37844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37845:t
37846/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37847s|@configure_input@|$ac_sed_conf_input|;t t
37848s&@top_builddir@&$ac_top_builddir_sub&;t t
37849s&@top_build_prefix@&$ac_top_build_prefix&;t t
37850s&@srcdir@&$ac_srcdir&;t t
37851s&@abs_srcdir@&$ac_abs_srcdir&;t t
37852s&@top_srcdir@&$ac_top_srcdir&;t t
37853s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37854s&@builddir@&$ac_builddir&;t t
37855s&@abs_builddir@&$ac_abs_builddir&;t t
37856s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37857s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037858s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037859$ac_datarootdir_hack
37860"
cristyda16f162011-02-19 23:52:17 +000037861eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37862 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037863
37864test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037865 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37866 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37867 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037869which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037870$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037871which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037872
cristyda16f162011-02-19 23:52:17 +000037873 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037874 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037875 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37876 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037877 esac \
cristy98dddb52010-11-04 00:30:15 +000037878 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037879 ;;
37880 :H)
37881 #
37882 # CONFIG_HEADER
37883 #
37884 if test x"$ac_file" != x-; then
37885 {
37886 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037887 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37888 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037890 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037891 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037892$as_echo "$as_me: $ac_file is unchanged" >&6;}
37893 else
37894 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037895 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037896 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037897 fi
37898 else
37899 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037900 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037901 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037902 fi
cristy73bd4a52010-10-05 11:24:23 +000037903# Compute "$ac_file"'s index in $config_headers.
37904_am_arg="$ac_file"
37905_am_stamp_count=1
37906for _am_header in $config_headers :; do
37907 case $_am_header in
37908 $_am_arg | $_am_arg:* )
37909 break ;;
37910 * )
37911 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37912 esac
37913done
37914echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37915$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37916 X"$_am_arg" : 'X\(//\)[^/]' \| \
37917 X"$_am_arg" : 'X\(//\)$' \| \
37918 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37919$as_echo X"$_am_arg" |
37920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37921 s//\1/
37922 q
37923 }
37924 /^X\(\/\/\)[^/].*/{
37925 s//\1/
37926 q
37927 }
37928 /^X\(\/\/\)$/{
37929 s//\1/
37930 q
37931 }
37932 /^X\(\/\).*/{
37933 s//\1/
37934 q
37935 }
37936 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037937 ;;
37938
cristy8b350f62009-11-15 23:12:43 +000037939 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037940$as_echo "$as_me: executing $ac_file commands" >&6;}
37941 ;;
37942 esac
37943
37944
37945 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037946 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037947ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37948ac_prefix_conf_PKG=`echo MagickCore`
37949ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37950ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37951ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37952if test ".$ac_prefix_conf_INP" = "."; then
37953 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37954 case "$ac_file" in
37955 *.h) ac_prefix_conf_INP=$ac_file ;;
37956 *)
37957 esac
37958 test ".$ac_prefix_conf_INP" != "." && break
37959 done
37960fi
37961if test ".$ac_prefix_conf_INP" = "."; then
37962 case "$ac_prefix_conf_OUT" in
37963 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37964 ;;
37965 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37966 ;;
37967 *) ac_prefix_conf_INP=config.h
37968 ;;
37969 esac
37970fi
37971if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037972 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037973else
37974 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37975 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37976 fi fi
37977 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37978$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37979 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037980 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37981 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37982 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37983 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37984 $as_echo "#endif/" >> conftest.prefix
37985 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37986 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37987 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037988 # now executing _script on _DEF input to create _OUT output file
37989 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37990 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37991 echo ' ' >>$tmp/pconfig.h
37992 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37993
37994 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37995 echo ' ' >>$tmp/pconfig.h
37996 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37997 echo "#endif" >>$tmp/pconfig.h
37998 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37999 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38000$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38001 else
38002 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38003$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38004 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38005 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38006 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38007$as_echo X"$ac_prefix_conf_OUT" |
38008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38009 s//\1/
38010 q
38011 }
38012 /^X\(\/\/\)[^/].*/{
38013 s//\1/
38014 q
38015 }
38016 /^X\(\/\/\)$/{
38017 s//\1/
38018 q
38019 }
38020 /^X\(\/\).*/{
38021 s//\1/
38022 q
38023 }
38024 s/.*/./; q'`
38025 as_dir="$ac_dir"; as_fn_mkdir_p
38026 rm -f "$ac_prefix_conf_OUT"
38027 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38028 fi
38029 cp conftest.prefix _configs.sed
38030 else
cristy98dddb52010-11-04 00:30:15 +000038031 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 +000038032 fi
38033 rm -f conftest.*
38034fi
38035 ;;
38036 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038037 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038038 # are listed without --file. Let's play safe and only enable the eval
38039 # if we detect the quoting.
38040 case $CONFIG_FILES in
38041 *\'*) eval set x "$CONFIG_FILES" ;;
38042 *) set x $CONFIG_FILES ;;
38043 esac
38044 shift
38045 for mf
38046 do
38047 # Strip MF so we end up with the name of the file.
38048 mf=`echo "$mf" | sed -e 's/:.*$//'`
38049 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038050 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038051 # some people rename them; so instead we look at the file content.
38052 # Grep'ing the first line is not enough: some people post-process
38053 # each Makefile.in and add a new line on top of each file to say so.
38054 # Grep'ing the whole file is not good either: AIX grep has a line
38055 # limit of 2048, but all sed's we know have understand at least 4000.
38056 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38057 dirpart=`$as_dirname -- "$mf" ||
38058$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38059 X"$mf" : 'X\(//\)[^/]' \| \
38060 X"$mf" : 'X\(//\)$' \| \
38061 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38062$as_echo X"$mf" |
38063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38064 s//\1/
38065 q
38066 }
38067 /^X\(\/\/\)[^/].*/{
38068 s//\1/
38069 q
38070 }
38071 /^X\(\/\/\)$/{
38072 s//\1/
38073 q
38074 }
38075 /^X\(\/\).*/{
38076 s//\1/
38077 q
38078 }
38079 s/.*/./; q'`
38080 else
38081 continue
38082 fi
38083 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038084 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038085 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38086 test -z "$DEPDIR" && continue
38087 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038088 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038089 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038090 # Find all dependency output files, they are included files with
38091 # $(DEPDIR) in their names. We invoke sed twice because it is the
38092 # simplest approach to changing $(DEPDIR) to its actual value in the
38093 # expansion.
38094 for file in `sed -n "
38095 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038096 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038097 # Make sure the directory exists.
38098 test -f "$dirpart/$file" && continue
38099 fdir=`$as_dirname -- "$file" ||
38100$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38101 X"$file" : 'X\(//\)[^/]' \| \
38102 X"$file" : 'X\(//\)$' \| \
38103 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38104$as_echo X"$file" |
38105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38106 s//\1/
38107 q
38108 }
38109 /^X\(\/\/\)[^/].*/{
38110 s//\1/
38111 q
38112 }
38113 /^X\(\/\/\)$/{
38114 s//\1/
38115 q
38116 }
38117 /^X\(\/\).*/{
38118 s//\1/
38119 q
38120 }
38121 s/.*/./; q'`
38122 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38123 # echo "creating $dirpart/$file"
38124 echo '# dummy' > "$dirpart/$file"
38125 done
38126 done
38127}
38128 ;;
38129 "libtool":C)
38130
38131 # See if we are running on zsh, and set the options which allow our
38132 # commands through without removal of \ escapes.
38133 if test -n "${ZSH_VERSION+set}" ; then
38134 setopt NO_GLOB_SUBST
38135 fi
38136
38137 cfgfile="${ofile}T"
38138 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38139 $RM "$cfgfile"
38140
38141 cat <<_LT_EOF >> "$cfgfile"
38142#! $SHELL
38143
38144# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38145# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38146# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38147# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38148#
38149# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038150# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38151# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038152# Written by Gordon Matzigkeit, 1996
38153#
38154# This file is part of GNU Libtool.
38155#
38156# GNU Libtool is free software; you can redistribute it and/or
38157# modify it under the terms of the GNU General Public License as
38158# published by the Free Software Foundation; either version 2 of
38159# the License, or (at your option) any later version.
38160#
38161# As a special exception to the GNU General Public License,
38162# if you distribute this file as part of a program or library that
38163# is built using GNU Libtool, you may include this file under the
38164# same distribution terms that you use for the rest of that program.
38165#
38166# GNU Libtool is distributed in the hope that it will be useful,
38167# but WITHOUT ANY WARRANTY; without even the implied warranty of
38168# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38169# GNU General Public License for more details.
38170#
38171# You should have received a copy of the GNU General Public License
38172# along with GNU Libtool; see the file COPYING. If not, a copy
38173# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38174# obtained by writing to the Free Software Foundation, Inc.,
38175# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38176
38177
38178# The names of the tagged configurations supported by this script.
38179available_tags="CXX "
38180
38181# ### BEGIN LIBTOOL CONFIG
38182
38183# A sed program that does not truncate output.
38184SED=$lt_SED
38185
38186# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38187Xsed="\$SED -e 1s/^X//"
38188
38189# A grep program that handles long lines.
38190GREP=$lt_GREP
38191
38192# An ERE matcher.
38193EGREP=$lt_EGREP
38194
38195# A literal string matcher.
38196FGREP=$lt_FGREP
38197
cristy0c60a692010-11-04 01:09:47 +000038198# Shell to use when invoking shell scripts.
38199SHELL=$lt_SHELL
38200
38201# An echo program that protects backslashes.
38202ECHO=$lt_ECHO
38203
cristy73bd4a52010-10-05 11:24:23 +000038204# Which release of libtool.m4 was used?
38205macro_version=$macro_version
38206macro_revision=$macro_revision
38207
38208# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038209AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038210
38211# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038212DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038213
38214# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038215OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038216
38217# Whether or not to build shared libraries.
38218build_libtool_libs=$enable_shared
38219
38220# Whether or not to build static libraries.
38221build_old_libs=$enable_static
38222
38223# What type of objects to build.
38224pic_mode=$pic_mode
38225
38226# Whether or not to optimize for fast installation.
38227fast_install=$enable_fast_install
38228
cristy99bd5232011-12-07 14:38:20 +000038229# The PATH separator for the build system.
38230PATH_SEPARATOR=$lt_PATH_SEPARATOR
38231
cristy73bd4a52010-10-05 11:24:23 +000038232# The host system.
38233host_alias=$host_alias
38234host=$host
38235host_os=$host_os
38236
38237# The build system.
38238build_alias=$build_alias
38239build=$build
38240build_os=$build_os
38241
38242# A BSD- or MS-compatible name lister.
38243NM=$lt_NM
38244
38245# Whether we need soft or hard links.
38246LN_S=$lt_LN_S
38247
38248# What is the maximum length of a command?
38249max_cmd_len=$max_cmd_len
38250
38251# Object file suffix (normally "o").
38252objext=$ac_objext
38253
38254# Executable file suffix (normally "").
38255exeext=$exeext
38256
38257# whether the shell understands "unset".
38258lt_unset=$lt_unset
38259
38260# turn spaces into newlines.
38261SP2NL=$lt_lt_SP2NL
38262
38263# turn newlines into spaces.
38264NL2SP=$lt_lt_NL2SP
38265
cristyda16f162011-02-19 23:52:17 +000038266# convert \$build file names to \$host format.
38267to_host_file_cmd=$lt_cv_to_host_file_cmd
38268
38269# convert \$build files to toolchain format.
38270to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38271
cristy73bd4a52010-10-05 11:24:23 +000038272# Method to check whether dependent libraries are shared objects.
38273deplibs_check_method=$lt_deplibs_check_method
38274
cristyda16f162011-02-19 23:52:17 +000038275# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038276file_magic_cmd=$lt_file_magic_cmd
38277
cristyda16f162011-02-19 23:52:17 +000038278# How to find potential files when deplibs_check_method = "file_magic".
38279file_magic_glob=$lt_file_magic_glob
38280
38281# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38282want_nocaseglob=$lt_want_nocaseglob
38283
38284# Command to associate shared and link libraries.
38285sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38286
cristy73bd4a52010-10-05 11:24:23 +000038287# The archiver.
38288AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038289
38290# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038291AR_FLAGS=$lt_AR_FLAGS
38292
cristyda16f162011-02-19 23:52:17 +000038293# How to feed a file listing to the archiver.
38294archiver_list_spec=$lt_archiver_list_spec
38295
cristy73bd4a52010-10-05 11:24:23 +000038296# A symbol stripping program.
38297STRIP=$lt_STRIP
38298
38299# Commands used to install an old-style archive.
38300RANLIB=$lt_RANLIB
38301old_postinstall_cmds=$lt_old_postinstall_cmds
38302old_postuninstall_cmds=$lt_old_postuninstall_cmds
38303
cristy0c60a692010-11-04 01:09:47 +000038304# Whether to use a lock for old archive extraction.
38305lock_old_archive_extraction=$lock_old_archive_extraction
38306
cristy73bd4a52010-10-05 11:24:23 +000038307# A C compiler.
38308LTCC=$lt_CC
38309
38310# LTCC compiler flags.
38311LTCFLAGS=$lt_CFLAGS
38312
38313# Take the output of nm and produce a listing of raw symbols and C names.
38314global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38315
38316# Transform the output of nm in a proper C declaration.
38317global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38318
38319# Transform the output of nm in a C name address pair.
38320global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38321
38322# Transform the output of nm in a C name address pair when lib prefix is needed.
38323global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38324
cristyda16f162011-02-19 23:52:17 +000038325# Specify filename containing input files for \$NM.
38326nm_file_list_spec=$lt_nm_file_list_spec
38327
38328# The root where to search for dependent libraries,and in which our libraries should be installed.
38329lt_sysroot=$lt_sysroot
38330
cristy73bd4a52010-10-05 11:24:23 +000038331# The name of the directory that contains temporary libtool files.
38332objdir=$objdir
38333
cristy73bd4a52010-10-05 11:24:23 +000038334# Used to examine libraries when file_magic_cmd begins with "file".
38335MAGIC_CMD=$MAGIC_CMD
38336
38337# Must we lock files when doing compilation?
38338need_locks=$lt_need_locks
38339
cristyda16f162011-02-19 23:52:17 +000038340# Manifest tool.
38341MANIFEST_TOOL=$lt_MANIFEST_TOOL
38342
cristy73bd4a52010-10-05 11:24:23 +000038343# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38344DSYMUTIL=$lt_DSYMUTIL
38345
38346# Tool to change global to local symbols on Mac OS X.
38347NMEDIT=$lt_NMEDIT
38348
38349# Tool to manipulate fat objects and archives on Mac OS X.
38350LIPO=$lt_LIPO
38351
38352# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38353OTOOL=$lt_OTOOL
38354
38355# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38356OTOOL64=$lt_OTOOL64
38357
38358# Old archive suffix (normally "a").
38359libext=$libext
38360
38361# Shared library suffix (normally ".so").
38362shrext_cmds=$lt_shrext_cmds
38363
38364# The commands to extract the exported symbol list from a shared archive.
38365extract_expsyms_cmds=$lt_extract_expsyms_cmds
38366
38367# Variables whose values should be saved in libtool wrapper scripts and
38368# restored at link time.
38369variables_saved_for_relink=$lt_variables_saved_for_relink
38370
38371# Do we need the "lib" prefix for modules?
38372need_lib_prefix=$need_lib_prefix
38373
38374# Do we need a version for libraries?
38375need_version=$need_version
38376
38377# Library versioning type.
38378version_type=$version_type
38379
38380# Shared library runtime path variable.
38381runpath_var=$runpath_var
38382
38383# Shared library path variable.
38384shlibpath_var=$shlibpath_var
38385
38386# Is shlibpath searched before the hard-coded library search path?
38387shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38388
38389# Format of library name prefix.
38390libname_spec=$lt_libname_spec
38391
38392# List of archive names. First name is the real one, the rest are links.
38393# The last name is the one that the linker finds with -lNAME
38394library_names_spec=$lt_library_names_spec
38395
38396# The coded name of the library, if different from the real name.
38397soname_spec=$lt_soname_spec
38398
cristy0c60a692010-11-04 01:09:47 +000038399# Permission mode override for installation of shared libraries.
38400install_override_mode=$lt_install_override_mode
38401
cristy73bd4a52010-10-05 11:24:23 +000038402# Command to use after installation of a shared archive.
38403postinstall_cmds=$lt_postinstall_cmds
38404
38405# Command to use after uninstallation of a shared archive.
38406postuninstall_cmds=$lt_postuninstall_cmds
38407
38408# Commands used to finish a libtool library installation in a directory.
38409finish_cmds=$lt_finish_cmds
38410
38411# As "finish_cmds", except a single script fragment to be evaled but
38412# not shown.
38413finish_eval=$lt_finish_eval
38414
38415# Whether we should hardcode library paths into libraries.
38416hardcode_into_libs=$hardcode_into_libs
38417
38418# Compile-time system search path for libraries.
38419sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38420
38421# Run-time system search path for libraries.
38422sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38423
38424# Whether dlopen is supported.
38425dlopen_support=$enable_dlopen
38426
38427# Whether dlopen of programs is supported.
38428dlopen_self=$enable_dlopen_self
38429
38430# Whether dlopen of statically linked programs is supported.
38431dlopen_self_static=$enable_dlopen_self_static
38432
38433# Commands to strip libraries.
38434old_striplib=$lt_old_striplib
38435striplib=$lt_striplib
38436
38437
38438# The linker used to build libraries.
38439LD=$lt_LD
38440
cristy0c60a692010-11-04 01:09:47 +000038441# How to create reloadable object files.
38442reload_flag=$lt_reload_flag
38443reload_cmds=$lt_reload_cmds
38444
cristy73bd4a52010-10-05 11:24:23 +000038445# Commands used to build an old-style archive.
38446old_archive_cmds=$lt_old_archive_cmds
38447
38448# A language specific compiler.
38449CC=$lt_compiler
38450
38451# Is the compiler the GNU compiler?
38452with_gcc=$GCC
38453
38454# Compiler flag to turn off builtin functions.
38455no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38456
cristy73bd4a52010-10-05 11:24:23 +000038457# Additional compiler flags for building library objects.
38458pic_flag=$lt_lt_prog_compiler_pic
38459
cristyda16f162011-02-19 23:52:17 +000038460# How to pass a linker flag through the compiler.
38461wl=$lt_lt_prog_compiler_wl
38462
cristy73bd4a52010-10-05 11:24:23 +000038463# Compiler flag to prevent dynamic linking.
38464link_static_flag=$lt_lt_prog_compiler_static
38465
38466# Does compiler simultaneously support -c and -o options?
38467compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38468
38469# Whether or not to add -lc for building shared libraries.
38470build_libtool_need_lc=$archive_cmds_need_lc
38471
38472# Whether or not to disallow shared libs when runtime libs are static.
38473allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38474
38475# Compiler flag to allow reflexive dlopens.
38476export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38477
38478# Compiler flag to generate shared objects directly from archives.
38479whole_archive_flag_spec=$lt_whole_archive_flag_spec
38480
38481# Whether the compiler copes with passing no objects directly.
38482compiler_needs_object=$lt_compiler_needs_object
38483
38484# Create an old-style archive from a shared archive.
38485old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38486
38487# Create a temporary old-style archive to link instead of a shared archive.
38488old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38489
38490# Commands used to build a shared archive.
38491archive_cmds=$lt_archive_cmds
38492archive_expsym_cmds=$lt_archive_expsym_cmds
38493
38494# Commands used to build a loadable module if different from building
38495# a shared archive.
38496module_cmds=$lt_module_cmds
38497module_expsym_cmds=$lt_module_expsym_cmds
38498
38499# Whether we are building with GNU ld or not.
38500with_gnu_ld=$lt_with_gnu_ld
38501
38502# Flag that allows shared libraries with undefined symbols to be built.
38503allow_undefined_flag=$lt_allow_undefined_flag
38504
38505# Flag that enforces no undefined symbols.
38506no_undefined_flag=$lt_no_undefined_flag
38507
38508# Flag to hardcode \$libdir into a binary during linking.
38509# This must work even if \$libdir does not exist
38510hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38511
cristy73bd4a52010-10-05 11:24:23 +000038512# Whether we need a single "-rpath" flag with a separated argument.
38513hardcode_libdir_separator=$lt_hardcode_libdir_separator
38514
38515# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38516# DIR into the resulting binary.
38517hardcode_direct=$hardcode_direct
38518
38519# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38520# DIR into the resulting binary and the resulting library dependency is
38521# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38522# library is relocated.
38523hardcode_direct_absolute=$hardcode_direct_absolute
38524
38525# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38526# into the resulting binary.
38527hardcode_minus_L=$hardcode_minus_L
38528
38529# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38530# into the resulting binary.
38531hardcode_shlibpath_var=$hardcode_shlibpath_var
38532
38533# Set to "yes" if building a shared library automatically hardcodes DIR
38534# into the library and all subsequent libraries and executables linked
38535# against it.
38536hardcode_automatic=$hardcode_automatic
38537
38538# Set to yes if linker adds runtime paths of dependent libraries
38539# to runtime path list.
38540inherit_rpath=$inherit_rpath
38541
38542# Whether libtool must link a program against all its dependency libraries.
38543link_all_deplibs=$link_all_deplibs
38544
cristy73bd4a52010-10-05 11:24:23 +000038545# Set to "yes" if exported symbols are required.
38546always_export_symbols=$always_export_symbols
38547
38548# The commands to list exported symbols.
38549export_symbols_cmds=$lt_export_symbols_cmds
38550
38551# Symbols that should not be listed in the preloaded symbols.
38552exclude_expsyms=$lt_exclude_expsyms
38553
38554# Symbols that must always be exported.
38555include_expsyms=$lt_include_expsyms
38556
38557# Commands necessary for linking programs (against libraries) with templates.
38558prelink_cmds=$lt_prelink_cmds
38559
cristyda16f162011-02-19 23:52:17 +000038560# Commands necessary for finishing linking programs.
38561postlink_cmds=$lt_postlink_cmds
38562
cristy73bd4a52010-10-05 11:24:23 +000038563# Specify filename containing input files.
38564file_list_spec=$lt_file_list_spec
38565
38566# How to hardcode a shared library path into an executable.
38567hardcode_action=$hardcode_action
38568
38569# The directories searched by this compiler when creating a shared library.
38570compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38571
38572# Dependencies to place before and after the objects being linked to
38573# create a shared library.
38574predep_objects=$lt_predep_objects
38575postdep_objects=$lt_postdep_objects
38576predeps=$lt_predeps
38577postdeps=$lt_postdeps
38578
38579# The library search path used internally by the compiler when linking
38580# a shared library.
38581compiler_lib_search_path=$lt_compiler_lib_search_path
38582
38583# ### END LIBTOOL CONFIG
38584
38585_LT_EOF
38586
38587 case $host_os in
38588 aix3*)
38589 cat <<\_LT_EOF >> "$cfgfile"
38590# AIX sometimes has problems with the GCC collect2 program. For some
38591# reason, if we set the COLLECT_NAMES environment variable, the problems
38592# vanish in a puff of smoke.
38593if test "X${COLLECT_NAMES+set}" != Xset; then
38594 COLLECT_NAMES=
38595 export COLLECT_NAMES
38596fi
38597_LT_EOF
38598 ;;
38599 esac
38600
38601
38602ltmain="$ac_aux_dir/ltmain.sh"
38603
38604
38605 # We use sed instead of cat because bash on DJGPP gets confused if
38606 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38607 # text mode, it properly converts lines to CR/LF. This bash problem
38608 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038609 sed '$q' "$ltmain" >> "$cfgfile" \
38610 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038611
cristyda16f162011-02-19 23:52:17 +000038612 if test x"$xsi_shell" = xyes; then
38613 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38614func_dirname ()\
38615{\
38616\ case ${1} in\
38617\ */*) func_dirname_result="${1%/*}${2}" ;;\
38618\ * ) func_dirname_result="${3}" ;;\
38619\ esac\
38620} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38621 && mv -f "$cfgfile.tmp" "$cfgfile" \
38622 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38623test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038624
38625
cristyda16f162011-02-19 23:52:17 +000038626 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38627func_basename ()\
38628{\
38629\ func_basename_result="${1##*/}"\
38630} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38631 && mv -f "$cfgfile.tmp" "$cfgfile" \
38632 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38633test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038634
38635
cristyda16f162011-02-19 23:52:17 +000038636 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38637func_dirname_and_basename ()\
38638{\
38639\ case ${1} in\
38640\ */*) func_dirname_result="${1%/*}${2}" ;;\
38641\ * ) func_dirname_result="${3}" ;;\
38642\ esac\
38643\ func_basename_result="${1##*/}"\
38644} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38645 && mv -f "$cfgfile.tmp" "$cfgfile" \
38646 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38647test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038648
cristyda16f162011-02-19 23:52:17 +000038649
38650 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38651func_stripname ()\
38652{\
38653\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38654\ # positional parameters, so assign one to ordinary parameter first.\
38655\ func_stripname_result=${3}\
38656\ func_stripname_result=${func_stripname_result#"${1}"}\
38657\ func_stripname_result=${func_stripname_result%"${2}"}\
38658} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38659 && mv -f "$cfgfile.tmp" "$cfgfile" \
38660 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38661test 0 -eq $? || _lt_function_replace_fail=:
38662
38663
38664 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38665func_split_long_opt ()\
38666{\
38667\ func_split_long_opt_name=${1%%=*}\
38668\ func_split_long_opt_arg=${1#*=}\
38669} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38670 && mv -f "$cfgfile.tmp" "$cfgfile" \
38671 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38672test 0 -eq $? || _lt_function_replace_fail=:
38673
38674
38675 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38676func_split_short_opt ()\
38677{\
38678\ func_split_short_opt_arg=${1#??}\
38679\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38680} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38681 && mv -f "$cfgfile.tmp" "$cfgfile" \
38682 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38683test 0 -eq $? || _lt_function_replace_fail=:
38684
38685
38686 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38687func_lo2o ()\
38688{\
38689\ case ${1} in\
38690\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38691\ *) func_lo2o_result=${1} ;;\
38692\ esac\
38693} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38694 && mv -f "$cfgfile.tmp" "$cfgfile" \
38695 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38696test 0 -eq $? || _lt_function_replace_fail=:
38697
38698
38699 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38700func_xform ()\
38701{\
38702 func_xform_result=${1%.*}.lo\
38703} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38704 && mv -f "$cfgfile.tmp" "$cfgfile" \
38705 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38706test 0 -eq $? || _lt_function_replace_fail=:
38707
38708
38709 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38710func_arith ()\
38711{\
38712 func_arith_result=$(( $* ))\
38713} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38714 && mv -f "$cfgfile.tmp" "$cfgfile" \
38715 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38716test 0 -eq $? || _lt_function_replace_fail=:
38717
38718
38719 sed -e '/^func_len ()$/,/^} # func_len /c\
38720func_len ()\
38721{\
38722 func_len_result=${#1}\
38723} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38724 && mv -f "$cfgfile.tmp" "$cfgfile" \
38725 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38726test 0 -eq $? || _lt_function_replace_fail=:
38727
38728fi
38729
38730if test x"$lt_shell_append" = xyes; then
38731 sed -e '/^func_append ()$/,/^} # func_append /c\
38732func_append ()\
38733{\
38734 eval "${1}+=\\${2}"\
38735} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38736 && mv -f "$cfgfile.tmp" "$cfgfile" \
38737 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38738test 0 -eq $? || _lt_function_replace_fail=:
38739
38740
38741 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38742func_append_quoted ()\
38743{\
38744\ func_quote_for_eval "${2}"\
38745\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38746} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38747 && mv -f "$cfgfile.tmp" "$cfgfile" \
38748 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38749test 0 -eq $? || _lt_function_replace_fail=:
38750
38751
38752 # Save a `func_append' function call where possible by direct use of '+='
38753 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38754 && mv -f "$cfgfile.tmp" "$cfgfile" \
38755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38756 test 0 -eq $? || _lt_function_replace_fail=:
38757else
38758 # Save a `func_append' function call even when '+=' is not available
38759 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38760 && mv -f "$cfgfile.tmp" "$cfgfile" \
38761 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38762 test 0 -eq $? || _lt_function_replace_fail=:
38763fi
38764
38765if test x"$_lt_function_replace_fail" = x":"; then
38766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38767$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38768fi
38769
38770
38771 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038772 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38773 chmod +x "$ofile"
38774
38775
38776 cat <<_LT_EOF >> "$ofile"
38777
38778# ### BEGIN LIBTOOL TAG CONFIG: CXX
38779
38780# The linker used to build libraries.
38781LD=$lt_LD_CXX
38782
cristy0c60a692010-11-04 01:09:47 +000038783# How to create reloadable object files.
38784reload_flag=$lt_reload_flag_CXX
38785reload_cmds=$lt_reload_cmds_CXX
38786
cristy73bd4a52010-10-05 11:24:23 +000038787# Commands used to build an old-style archive.
38788old_archive_cmds=$lt_old_archive_cmds_CXX
38789
38790# A language specific compiler.
38791CC=$lt_compiler_CXX
38792
38793# Is the compiler the GNU compiler?
38794with_gcc=$GCC_CXX
38795
38796# Compiler flag to turn off builtin functions.
38797no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38798
cristy73bd4a52010-10-05 11:24:23 +000038799# Additional compiler flags for building library objects.
38800pic_flag=$lt_lt_prog_compiler_pic_CXX
38801
cristyda16f162011-02-19 23:52:17 +000038802# How to pass a linker flag through the compiler.
38803wl=$lt_lt_prog_compiler_wl_CXX
38804
cristy73bd4a52010-10-05 11:24:23 +000038805# Compiler flag to prevent dynamic linking.
38806link_static_flag=$lt_lt_prog_compiler_static_CXX
38807
38808# Does compiler simultaneously support -c and -o options?
38809compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38810
38811# Whether or not to add -lc for building shared libraries.
38812build_libtool_need_lc=$archive_cmds_need_lc_CXX
38813
38814# Whether or not to disallow shared libs when runtime libs are static.
38815allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38816
38817# Compiler flag to allow reflexive dlopens.
38818export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38819
38820# Compiler flag to generate shared objects directly from archives.
38821whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38822
38823# Whether the compiler copes with passing no objects directly.
38824compiler_needs_object=$lt_compiler_needs_object_CXX
38825
38826# Create an old-style archive from a shared archive.
38827old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38828
38829# Create a temporary old-style archive to link instead of a shared archive.
38830old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38831
38832# Commands used to build a shared archive.
38833archive_cmds=$lt_archive_cmds_CXX
38834archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38835
38836# Commands used to build a loadable module if different from building
38837# a shared archive.
38838module_cmds=$lt_module_cmds_CXX
38839module_expsym_cmds=$lt_module_expsym_cmds_CXX
38840
38841# Whether we are building with GNU ld or not.
38842with_gnu_ld=$lt_with_gnu_ld_CXX
38843
38844# Flag that allows shared libraries with undefined symbols to be built.
38845allow_undefined_flag=$lt_allow_undefined_flag_CXX
38846
38847# Flag that enforces no undefined symbols.
38848no_undefined_flag=$lt_no_undefined_flag_CXX
38849
38850# Flag to hardcode \$libdir into a binary during linking.
38851# This must work even if \$libdir does not exist
38852hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38853
cristy73bd4a52010-10-05 11:24:23 +000038854# Whether we need a single "-rpath" flag with a separated argument.
38855hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38856
38857# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38858# DIR into the resulting binary.
38859hardcode_direct=$hardcode_direct_CXX
38860
38861# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38862# DIR into the resulting binary and the resulting library dependency is
38863# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38864# library is relocated.
38865hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38866
38867# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38868# into the resulting binary.
38869hardcode_minus_L=$hardcode_minus_L_CXX
38870
38871# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38872# into the resulting binary.
38873hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38874
38875# Set to "yes" if building a shared library automatically hardcodes DIR
38876# into the library and all subsequent libraries and executables linked
38877# against it.
38878hardcode_automatic=$hardcode_automatic_CXX
38879
38880# Set to yes if linker adds runtime paths of dependent libraries
38881# to runtime path list.
38882inherit_rpath=$inherit_rpath_CXX
38883
38884# Whether libtool must link a program against all its dependency libraries.
38885link_all_deplibs=$link_all_deplibs_CXX
38886
cristy73bd4a52010-10-05 11:24:23 +000038887# Set to "yes" if exported symbols are required.
38888always_export_symbols=$always_export_symbols_CXX
38889
38890# The commands to list exported symbols.
38891export_symbols_cmds=$lt_export_symbols_cmds_CXX
38892
38893# Symbols that should not be listed in the preloaded symbols.
38894exclude_expsyms=$lt_exclude_expsyms_CXX
38895
38896# Symbols that must always be exported.
38897include_expsyms=$lt_include_expsyms_CXX
38898
38899# Commands necessary for linking programs (against libraries) with templates.
38900prelink_cmds=$lt_prelink_cmds_CXX
38901
cristyda16f162011-02-19 23:52:17 +000038902# Commands necessary for finishing linking programs.
38903postlink_cmds=$lt_postlink_cmds_CXX
38904
cristy73bd4a52010-10-05 11:24:23 +000038905# Specify filename containing input files.
38906file_list_spec=$lt_file_list_spec_CXX
38907
38908# How to hardcode a shared library path into an executable.
38909hardcode_action=$hardcode_action_CXX
38910
38911# The directories searched by this compiler when creating a shared library.
38912compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38913
38914# Dependencies to place before and after the objects being linked to
38915# create a shared library.
38916predep_objects=$lt_predep_objects_CXX
38917postdep_objects=$lt_postdep_objects_CXX
38918predeps=$lt_predeps_CXX
38919postdeps=$lt_postdeps_CXX
38920
38921# The library search path used internally by the compiler when linking
38922# a shared library.
38923compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38924
38925# ### END LIBTOOL TAG CONFIG: CXX
38926_LT_EOF
38927
38928 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038929 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038930 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038931 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038932 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38933 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38934
38935 esac
38936done # for ac_tag
38937
38938
cristy8b350f62009-11-15 23:12:43 +000038939as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038940_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038941ac_clean_files=$ac_clean_files_save
38942
38943test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038944 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038945
38946
38947# configure is writing to config.log, and then calls config.status.
38948# config.status does its own redirection, appending to config.log.
38949# Unfortunately, on DOS this fails, as config.log is still kept open
38950# by configure, so config.status won't be able to write to it; its
38951# output is simply discarded. So we exec the FD to /dev/null,
38952# effectively closing config.log, so it can be properly (re)opened and
38953# appended to by config.status. When coming back to configure, we
38954# need to make the FD available again.
38955if test "$no_create" != yes; then
38956 ac_cs_success=:
38957 ac_config_status_args=
38958 test "$silent" = yes &&
38959 ac_config_status_args="$ac_config_status_args --quiet"
38960 exec 5>/dev/null
38961 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38962 exec 5>>config.log
38963 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38964 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038965 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038966fi
38967if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038969$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38970fi
38971
38972
38973rm -f magick-version
38974
cristy430a7312010-01-21 20:44:04 +000038975result_dejavu_font_dir='none'
38976if test "${dejavu_font_dir}x" != 'x'; then
38977 result_dejavu_font_dir=$dejavu_font_dir
38978fi
38979
cristy3ed852e2009-09-05 21:47:34 +000038980result_ghostscript_font_dir='none'
38981if test "${ghostscript_font_dir}x" != 'x'; then
38982 result_ghostscript_font_dir=$ghostscript_font_dir
38983fi
38984
38985result_windows_font_dir='none'
38986if test "${windows_font_dir}x" != 'x'; then
38987 result_windows_font_dir=${windows_font_dir}
38988fi
38989
cristyad38abe2012-12-23 23:03:21 +000038990{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038991ImageMagick is configured as follows. Please verify that this configuration
38992matches your expectations.
38993
38994Host system type: $host
38995Build system type: $build
38996
38997 Option Value
38998-------------------------------------------------------------------------------
38999Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39000Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039001Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039002GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39003Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39004High Dynamic Range Imagery
39005 --enable-hdri=$enable_hdri $enable_hdri
39006
39007Delegate Configuration:
39008BZLIB --with-bzlib=$with_bzlib $have_bzlib
39009Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039010Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039011DJVU --with-djvu=$with_djvu $have_djvu
39012DPS --with-dps=$with_dps $have_dps
39013FFTW --with-fftw=$with_fftw $have_fftw
39014FlashPIX --with-fpx=$with_fpx $have_fpx
39015FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39016FreeType --with-freetype=$with_freetype $have_freetype
39017GhostPCL None $PCLDelegate ($PCLVersion)
39018GhostXPS None $XPSDelegate ($XPSVersion)
39019Ghostscript None $PSDelegate ($GSVersion)
39020Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39021Ghostscript lib --with-gslib=$with_gslib $have_gslib
39022Graphviz --with-gvc=$with_gvc $have_gvc
39023JBIG --with-jbig=$with_jbig $have_jbig
39024JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39025JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039026LCMS v1 --with-lcms=$with_lcms $have_lcms
39027LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039028LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039029LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039030LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039031LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039032Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000039033MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000039034OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039035PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039036PERL --with-perl=$with_perl $have_perl
39037PNG --with-png=$with_png $have_png
39038RSVG --with-rsvg=$with_rsvg $have_rsvg
39039TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039040WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039041Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039042WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039043X11 --with-x=$with_x $have_x
39044XML --with-xml=$with_xml $have_xml
39045ZLIB --with-zlib=$with_zlib $have_zlib
39046
39047X11 Configuration:
39048 X_CFLAGS = $X_CFLAGS
39049 X_PRE_LIBS = $X_PRE_LIBS
39050 X_LIBS = $X_LIBS
39051 X_EXTRA_LIBS = $X_EXTRA_LIBS
39052
39053Options used to compile and link:
39054 PREFIX = $PREFIX_DIR
39055 EXEC-PREFIX = $EXEC_PREFIX_DIR
39056 VERSION = $PACKAGE_VERSION
39057 CC = $CC
39058 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039059 CPPFLAGS = $MAGICK_CPPFLAGS
39060 PCFLAGS = $MAGICK_PCFLAGS
39061 DEFS = $DEFS
39062 LDFLAGS = $LDFLAGS
39063 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39064 LIBS = $MAGICK_LIBS
39065 CXX = $CXX
39066 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039067 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039068 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000039069" >&5
cristyad38abe2012-12-23 23:03:21 +000039070$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000039071ImageMagick is configured as follows. Please verify that this configuration
39072matches your expectations.
39073
39074Host system type: $host
39075Build system type: $build
39076
39077 Option Value
39078-------------------------------------------------------------------------------
39079Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39080Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039081Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039082GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39083Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39084High Dynamic Range Imagery
39085 --enable-hdri=$enable_hdri $enable_hdri
39086
39087Delegate Configuration:
39088BZLIB --with-bzlib=$with_bzlib $have_bzlib
39089Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039090Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039091DJVU --with-djvu=$with_djvu $have_djvu
39092DPS --with-dps=$with_dps $have_dps
39093FFTW --with-fftw=$with_fftw $have_fftw
39094FlashPIX --with-fpx=$with_fpx $have_fpx
39095FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39096FreeType --with-freetype=$with_freetype $have_freetype
39097GhostPCL None $PCLDelegate ($PCLVersion)
39098GhostXPS None $XPSDelegate ($XPSVersion)
39099Ghostscript None $PSDelegate ($GSVersion)
39100Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39101Ghostscript lib --with-gslib=$with_gslib $have_gslib
39102Graphviz --with-gvc=$with_gvc $have_gvc
39103JBIG --with-jbig=$with_jbig $have_jbig
39104JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39105JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039106LCMS v1 --with-lcms=$with_lcms $have_lcms
39107LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039108LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039109LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039110LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039111LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039112Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000039113MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000039114OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039115PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039116PERL --with-perl=$with_perl $have_perl
39117PNG --with-png=$with_png $have_png
39118RSVG --with-rsvg=$with_rsvg $have_rsvg
39119TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039120WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039121Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039122WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039123X11 --with-x=$with_x $have_x
39124XML --with-xml=$with_xml $have_xml
39125ZLIB --with-zlib=$with_zlib $have_zlib
39126
39127X11 Configuration:
39128 X_CFLAGS = $X_CFLAGS
39129 X_PRE_LIBS = $X_PRE_LIBS
39130 X_LIBS = $X_LIBS
39131 X_EXTRA_LIBS = $X_EXTRA_LIBS
39132
39133Options used to compile and link:
39134 PREFIX = $PREFIX_DIR
39135 EXEC-PREFIX = $EXEC_PREFIX_DIR
39136 VERSION = $PACKAGE_VERSION
39137 CC = $CC
39138 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039139 CPPFLAGS = $MAGICK_CPPFLAGS
39140 PCFLAGS = $MAGICK_PCFLAGS
39141 DEFS = $DEFS
39142 LDFLAGS = $LDFLAGS
39143 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39144 LIBS = $MAGICK_LIBS
39145 CXX = $CXX
39146 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039147 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039148 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000039149" >&6; }