blob: a3a20255870a56c925db5607b7a34f43a14cd64f [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
cristy66f238e2014-05-16 12:21:48 +0000712MogrifyDelegate
cristy3ed852e2009-09-05 21:47:34 +0000713MANDelegate
714LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000715LPRDelegate
716LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000717JXREncodeDelegate
718JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000719ILBMEncodeDelegate
720ILBMDecodeDelegate
721HTMLDecodeDelegate
722HPGLDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000723GVCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000724GnuplotDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000725EditorDelegate
726EchoDelegate
cristy66f238e2014-05-16 12:21:48 +0000727DisplayDelegate
728ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000729DVIDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000730DOCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000731DNGDecodeDelegate
732CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000733BrowseDelegate
734BZIPDelegate
735BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000736AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000737SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000738SHAREARCH_RELATIVE_PATH
739SHAREARCH_DIRNAME
740SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000741SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000742CONFIGURE_PATH
cristydd17feb2014-03-05 02:06:32 +0000743INSTALL_DOC_FALSE
744INSTALL_DOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000745DOCUMENTATION_PATH
746FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000747FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000748CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000749CODER_DIRNAME
750MODULES_PATH
751MODULES_RELATIVE_PATH
752MODULES_DIRNAME
753MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000754LIB_BIN_DIR_PATH
755LIB_BIN_DIR_RELATIVE_PATH
756LIB_BIN_DIR
757LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000758LIBRARY_PATH
759EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000760INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000761INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000762PERLMAINCC
763XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000764XML_DELEGATE_FALSE
765XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000766xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000767WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000768WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000769WMF_DELEGATE_FALSE
770WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000771WEBP_LIBS
772WEBP_DELEGATE_FALSE
773WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000774TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000775TIFF_DELEGATE_FALSE
776TIFF_DELEGATE_TRUE
777CAIRO_DELEGATE_FALSE
778CAIRO_DELEGATE_TRUE
779RSVG_DELEGATE_FALSE
780RSVG_DELEGATE_TRUE
781CAIRO_SVG_LIBS
782CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000783RSVG_LIBS
784RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000785PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000786PNG_DELEGATE_FALSE
787PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000788PANGOCAIRO_DELEGATE_FALSE
789PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000790PANGO_DELEGATE_FALSE
791PANGO_DELEGATE_TRUE
792PANGO_LIBS
793PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000794OPENEXR_DELEGATE_FALSE
795OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796OPENEXR_LIBS
797OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000798LZMA_DELEGATE_FALSE
799LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000800LZMA_LIBS
801LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000802LQR_DELEGATE_FALSE
803LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804LQR_LIBS
805LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000806LIBOPENJP2_DELEGATE_FALSE
807LIBOPENJP2_DELEGATE_TRUE
808LIBOPENJP2_LIBS
809LIBOPENJP2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000810LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811LCMS_DELEGATE_FALSE
812LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000813JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814JPEG_DELEGATE_FALSE
815JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817JBIG_DELEGATE_FALSE
818JBIG_DELEGATE_TRUE
819GVC_DELEGATE_FALSE
820GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000821GVC_LIBS
822GVC_CFLAGS
823GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824GS_DELEGATE_FALSE
825GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000826FREETYPE_DELEGATE_FALSE
827FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000828FREETYPE_LIBS
829FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000830FONTCONFIG_DELEGATE_FALSE
831FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000832FONTCONFIG_LIBS
833FONTCONFIG_CFLAGS
834FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000835FPX_DELEGATE_FALSE
836FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000837FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838FFTW_DELEGATE_FALSE
839FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841DJVU_DELEGATE_FALSE
842DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844DPS_DELEGATE_FALSE
845DPS_DELEGATE_TRUE
846AUTOTRACE_DELEGATE_FALSE
847AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000848AUTOTRACE_LIBS
849AUTOTRACE_CFLAGS
850LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000851WITH_LTDL_FALSE
852WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000853ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000854ZLIB_DELEGATE_FALSE
855ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856XEXT_LIBS
857X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000858X11_DELEGATE_FALSE
859X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000860X_EXTRA_LIBS
861X_LIBS
862X_PRE_LIBS
863X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000864XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000865BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000866BZLIB_DELEGATE_FALSE
867BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000868CCMALLOCDelegate
869UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000870HasUMEM_FALSE
871HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000872GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000873WITH_MAGICK_PLUS_PLUS_FALSE
874WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000875OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000876MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000877POW_LIB
878LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000879UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000880UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000881UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000882UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000883UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000884UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000885INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000886INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000887UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000888UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000889INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000890INT32_T
891UINT16_T
892INT16_T
893UINT8_T
894INT8_T
895LIBRARY_EXTRA_CPPFLAGS
896MODULE_EXTRA_CPPFLAGS
897LIBSTDCLDFLAGS
898PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000899MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000900MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000901QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000902LEGACY_SUPPORT_FALSE
903LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000904MAINT
905MAINTAINER_MODE_FALSE
906MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000907MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000908WITH_MODULES_FALSE
909WITH_MODULES_TRUE
910WITH_SHARED_LIBS_FALSE
911WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000912LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000913CXXCPP
914OTOOL64
915OTOOL
916LIPO
917NMEDIT
918DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000919MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000920RANLIB
cristyda16f162011-02-19 23:52:17 +0000921ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000922AR
923NM
924ac_ct_DUMPBIN
925DUMPBIN
926LIBTOOL
927OBJDUMP
928DLLTOOL
929AS
cristy3ed852e2009-09-05 21:47:34 +0000930LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000931CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000932CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000933OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000934THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000935PTHREAD_CFLAGS
936PTHREAD_LIBS
937PTHREAD_CC
938ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000939pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000940SHAREARCH_DIR
941INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000942WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000943USING_CL_FALSE
944USING_CL_TRUE
945CYGWIN_BUILD_FALSE
946CYGWIN_BUILD_TRUE
947WIN32_NATIVE_BUILD_FALSE
948WIN32_NATIVE_BUILD_TRUE
949WINGDI32_DELEGATE_FALSE
950WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000951GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000952HAVE_LD_VERSION_SCRIPT_FALSE
953HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000954PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000955PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000956LN_S
cristy3ed852e2009-09-05 21:47:34 +0000957LD
cristy73bd4a52010-10-05 11:24:23 +0000958FGREP
959SED
960am__fastdepCXX_FALSE
961am__fastdepCXX_TRUE
962CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000963ac_ct_CXX
964CXXFLAGS
965CXX
cristya0b81c32010-01-22 02:54:33 +0000966EGREP
967GREP
968CPP
cristy73bd4a52010-10-05 11:24:23 +0000969am__fastdepCC_FALSE
970am__fastdepCC_TRUE
971CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000972am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000973AMDEPBACKSLASH
974AMDEP_FALSE
975AMDEP_TRUE
976am__quote
977am__include
978DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000979OBJEXT
980EXEEXT
981ac_ct_CC
982CPPFLAGS
983LDFLAGS
984CFLAGS
985CC
986DIRSEP
987MAGICK_FILTER_MODULE_PATH
988MAGICK_CONFIGURE_BUILD_PATH
989MAGICK_CONFIGURE_SRC_PATH
990MAGICK_CODER_MODULE_PATH
991MAN_DIR
992INFO_DIR
993PERSISTINCLUDE_DIR
994INCLUDE_DIR
995LIB_DIR
996LOCALSTATE_DIR
997SHAREDSTATE_DIR
998SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000999DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001000DATA_DIR
1001LIBEXEC_DIR
1002SBIN_DIR
1003BIN_DIR
1004EXEC_PREFIX_DIR
1005PREFIX_DIR
1006CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001007MAGICKPP_LIB_VERSION_TEXT
1008MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001009MAGICK_LIB_VERSION_NUMBER
1010MAGICK_LIB_VERSION_TEXT
1011MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001012AM_BACKSLASH
1013AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001014AM_DEFAULT_V
1015AM_V
cristy73bd4a52010-10-05 11:24:23 +00001016am__untar
1017am__tar
1018AMTAR
1019am__leading_dot
1020SET_MAKE
1021AWK
1022mkdir_p
1023MKDIR_P
1024INSTALL_STRIP_PROGRAM
1025STRIP
1026install_sh
1027MAKEINFO
1028AUTOHEADER
1029AUTOMAKE
1030AUTOCONF
1031ACLOCAL
1032VERSION
1033PACKAGE
1034CYGPATH_W
1035am__isrc
1036INSTALL_DATA
1037INSTALL_SCRIPT
1038INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001039PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001040PACKAGE_RELEASE_DATE
1041PACKAGE_LIB_VERSION_NUMBER
1042PACKAGE_LIB_VERSION
1043PACKAGE_CHANGE_DATE
1044PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001045PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001046MAGICKPP_LIBRARY_VERSION_INFO
1047MAGICKPP_LIBRARY_CURRENT_MIN
1048MAGICKPP_LIBRARY_AGE
1049MAGICKPP_LIBRARY_REVISION
1050MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001051MAGICK_LIBRARY_VERSION_INFO
1052MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001053MAGICK_LIBRARY_AGE
1054MAGICK_LIBRARY_REVISION
1055MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001056MAGICK_SVN_REVISION
1057MAGICK_VERSION
1058MAGICK_PATCHLEVEL_VERSION
1059MAGICK_MICRO_VERSION
1060MAGICK_MINOR_VERSION
1061MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001062MAGICK_TARGET_OS
1063MAGICK_TARGET_VENDOR
1064MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001065target_os
1066target_vendor
1067target_cpu
1068target
1069host_os
1070host_vendor
1071host_cpu
1072host
1073build_os
1074build_vendor
1075build_cpu
1076build
1077CONFIGURE_ARGS
1078DISTCHECK_CONFIG_FLAGS
1079target_alias
1080host_alias
1081build_alias
1082LIBS
1083ECHO_T
1084ECHO_N
1085ECHO_C
1086DEFS
1087mandir
1088localedir
1089libdir
1090psdir
1091pdfdir
1092dvidir
1093htmldir
1094infodir
1095docdir
1096oldincludedir
1097includedir
1098localstatedir
1099sharedstatedir
1100sysconfdir
1101datadir
1102datarootdir
1103libexecdir
1104sbindir
1105bindir
1106program_transform_name
1107prefix
1108exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001109PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001110PACKAGE_BUGREPORT
1111PACKAGE_STRING
1112PACKAGE_VERSION
1113PACKAGE_TARNAME
1114PACKAGE_NAME
1115PATH_SEPARATOR
1116SHELL'
1117ac_subst_files=''
1118ac_user_opts='
1119enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001120enable_silent_rules
1121enable_dependency_tracking
1122with_gnu_ld
1123with_dmalloc
cristya0459972013-11-03 18:09:35 +00001124with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001125enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001126enable_bounds_checking
1127enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001128with_includearch_dir
1129with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001130with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001131with_threads
1132enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001133enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001134enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001135enable_shared
1136enable_static
1137with_pic
1138enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001139with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001140enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001141with_modules
1142enable_delegate_build
1143enable_deprecated
1144enable_installed
1145enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001146enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001147enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001148enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001149enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001150enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001151enable_ccmalloc
1152enable_efence
1153enable_prof
1154enable_gprof
1155enable_gcov
1156with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001157enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001158with_quantum_depth
1159with_cache
1160with_frozenpaths
1161with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001162with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001163with_perl
1164with_perl_options
1165with_umem
1166with_libstdc
1167with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001168with_x
cristy3ed852e2009-09-05 21:47:34 +00001169with_zlib
1170with_autotrace
1171with_dps
1172with_djvu
cristy430a7312010-01-21 20:44:04 +00001173with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001174with_fftw
1175with_fpx
1176with_fontconfig
1177with_freetype
1178with_gslib
1179with_fontpath
1180with_gs_font_dir
1181with_gvc
1182with_jbig
1183with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001184with_lcms
cristy71203402010-06-18 13:12:03 +00001185with_lcms2
cristy99db3872014-01-01 15:11:34 +00001186with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001187with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001188with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001189with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001190with_pango
cristy3ed852e2009-09-05 21:47:34 +00001191with_png
1192with_rsvg
1193with_tiff
cristyb1860752011-03-14 00:27:46 +00001194with_webp
cristy3ed852e2009-09-05 21:47:34 +00001195with_windows_font_dir
1196with_wmf
1197with_xml
cristydd17feb2014-03-05 02:06:32 +00001198enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001199'
1200 ac_precious_vars='build_alias
1201host_alias
1202target_alias
1203CC
1204CFLAGS
1205LDFLAGS
1206LIBS
1207CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001208CPP
cristy3ed852e2009-09-05 21:47:34 +00001209CXX
1210CXXFLAGS
1211CCC
cristy73bd4a52010-10-05 11:24:23 +00001212PKG_CONFIG
1213CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001214XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001215AUTOTRACE_CFLAGS
1216AUTOTRACE_LIBS
1217FONTCONFIG_CFLAGS
1218FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001219FREETYPE_CFLAGS
1220FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001221GVC_CFLAGS
1222GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001223LIBOPENJP2_CFLAGS
1224LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001225LQR_CFLAGS
1226LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001227LZMA_CFLAGS
1228LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001229OPENEXR_CFLAGS
1230OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001231PANGO_CFLAGS
1232PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001233RSVG_CFLAGS
1234RSVG_LIBS
1235CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001236CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001237
1238
1239# Initialize some variables set by options.
1240ac_init_help=
1241ac_init_version=false
1242ac_unrecognized_opts=
1243ac_unrecognized_sep=
1244# The variables have the same names as the options, with
1245# dashes changed to underlines.
1246cache_file=/dev/null
1247exec_prefix=NONE
1248no_create=
1249no_recursion=
1250prefix=NONE
1251program_prefix=NONE
1252program_suffix=NONE
1253program_transform_name=s,x,x,
1254silent=
1255site=
1256srcdir=
1257verbose=
1258x_includes=NONE
1259x_libraries=NONE
1260
1261# Installation directory options.
1262# These are left unexpanded so users can "make install exec_prefix=/foo"
1263# and all the variables that are supposed to be based on exec_prefix
1264# by default will actually change.
1265# Use braces instead of parens because sh, perl, etc. also accept them.
1266# (The list follows the same order as the GNU Coding Standards.)
1267bindir='${exec_prefix}/bin'
1268sbindir='${exec_prefix}/sbin'
1269libexecdir='${exec_prefix}/libexec'
1270datarootdir='${prefix}/share'
1271datadir='${datarootdir}'
1272sysconfdir='${prefix}/etc'
1273sharedstatedir='${prefix}/com'
1274localstatedir='${prefix}/var'
1275includedir='${prefix}/include'
1276oldincludedir='/usr/include'
1277docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1278infodir='${datarootdir}/info'
1279htmldir='${docdir}'
1280dvidir='${docdir}'
1281pdfdir='${docdir}'
1282psdir='${docdir}'
1283libdir='${exec_prefix}/lib'
1284localedir='${datarootdir}/locale'
1285mandir='${datarootdir}/man'
1286
1287ac_prev=
1288ac_dashdash=
1289for ac_option
1290do
1291 # If the previous option needs an argument, assign it.
1292 if test -n "$ac_prev"; then
1293 eval $ac_prev=\$ac_option
1294 ac_prev=
1295 continue
1296 fi
1297
1298 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001299 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1300 *=) ac_optarg= ;;
1301 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001302 esac
1303
1304 # Accept the important Cygnus configure options, so we can diagnose typos.
1305
1306 case $ac_dashdash$ac_option in
1307 --)
1308 ac_dashdash=yes ;;
1309
1310 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1311 ac_prev=bindir ;;
1312 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1313 bindir=$ac_optarg ;;
1314
1315 -build | --build | --buil | --bui | --bu)
1316 ac_prev=build_alias ;;
1317 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1318 build_alias=$ac_optarg ;;
1319
1320 -cache-file | --cache-file | --cache-fil | --cache-fi \
1321 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1322 ac_prev=cache_file ;;
1323 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1324 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1325 cache_file=$ac_optarg ;;
1326
1327 --config-cache | -C)
1328 cache_file=config.cache ;;
1329
1330 -datadir | --datadir | --datadi | --datad)
1331 ac_prev=datadir ;;
1332 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1333 datadir=$ac_optarg ;;
1334
1335 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1336 | --dataroo | --dataro | --datar)
1337 ac_prev=datarootdir ;;
1338 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1339 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1340 datarootdir=$ac_optarg ;;
1341
1342 -disable-* | --disable-*)
1343 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001346 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001347 ac_useropt_orig=$ac_useropt
1348 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349 case $ac_user_opts in
1350 *"
1351"enable_$ac_useropt"
1352"*) ;;
1353 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1354 ac_unrecognized_sep=', ';;
1355 esac
1356 eval enable_$ac_useropt=no ;;
1357
1358 -docdir | --docdir | --docdi | --doc | --do)
1359 ac_prev=docdir ;;
1360 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1361 docdir=$ac_optarg ;;
1362
1363 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1364 ac_prev=dvidir ;;
1365 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1366 dvidir=$ac_optarg ;;
1367
1368 -enable-* | --enable-*)
1369 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1370 # Reject names that are not valid shell variable names.
1371 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001372 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001373 ac_useropt_orig=$ac_useropt
1374 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1375 case $ac_user_opts in
1376 *"
1377"enable_$ac_useropt"
1378"*) ;;
1379 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1380 ac_unrecognized_sep=', ';;
1381 esac
1382 eval enable_$ac_useropt=\$ac_optarg ;;
1383
1384 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1385 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1386 | --exec | --exe | --ex)
1387 ac_prev=exec_prefix ;;
1388 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1389 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1390 | --exec=* | --exe=* | --ex=*)
1391 exec_prefix=$ac_optarg ;;
1392
1393 -gas | --gas | --ga | --g)
1394 # Obsolete; use --with-gas.
1395 with_gas=yes ;;
1396
1397 -help | --help | --hel | --he | -h)
1398 ac_init_help=long ;;
1399 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1400 ac_init_help=recursive ;;
1401 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1402 ac_init_help=short ;;
1403
1404 -host | --host | --hos | --ho)
1405 ac_prev=host_alias ;;
1406 -host=* | --host=* | --hos=* | --ho=*)
1407 host_alias=$ac_optarg ;;
1408
1409 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1410 ac_prev=htmldir ;;
1411 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1412 | --ht=*)
1413 htmldir=$ac_optarg ;;
1414
1415 -includedir | --includedir | --includedi | --included | --include \
1416 | --includ | --inclu | --incl | --inc)
1417 ac_prev=includedir ;;
1418 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1419 | --includ=* | --inclu=* | --incl=* | --inc=*)
1420 includedir=$ac_optarg ;;
1421
1422 -infodir | --infodir | --infodi | --infod | --info | --inf)
1423 ac_prev=infodir ;;
1424 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1425 infodir=$ac_optarg ;;
1426
1427 -libdir | --libdir | --libdi | --libd)
1428 ac_prev=libdir ;;
1429 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1430 libdir=$ac_optarg ;;
1431
1432 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1433 | --libexe | --libex | --libe)
1434 ac_prev=libexecdir ;;
1435 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1436 | --libexe=* | --libex=* | --libe=*)
1437 libexecdir=$ac_optarg ;;
1438
1439 -localedir | --localedir | --localedi | --localed | --locale)
1440 ac_prev=localedir ;;
1441 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1442 localedir=$ac_optarg ;;
1443
1444 -localstatedir | --localstatedir | --localstatedi | --localstated \
1445 | --localstate | --localstat | --localsta | --localst | --locals)
1446 ac_prev=localstatedir ;;
1447 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1448 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1449 localstatedir=$ac_optarg ;;
1450
1451 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1452 ac_prev=mandir ;;
1453 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1454 mandir=$ac_optarg ;;
1455
1456 -nfp | --nfp | --nf)
1457 # Obsolete; use --without-fp.
1458 with_fp=no ;;
1459
1460 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1461 | --no-cr | --no-c | -n)
1462 no_create=yes ;;
1463
1464 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1465 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1466 no_recursion=yes ;;
1467
1468 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1469 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1470 | --oldin | --oldi | --old | --ol | --o)
1471 ac_prev=oldincludedir ;;
1472 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1473 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1474 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1475 oldincludedir=$ac_optarg ;;
1476
1477 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1478 ac_prev=prefix ;;
1479 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1480 prefix=$ac_optarg ;;
1481
1482 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1483 | --program-pre | --program-pr | --program-p)
1484 ac_prev=program_prefix ;;
1485 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1486 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1487 program_prefix=$ac_optarg ;;
1488
1489 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1490 | --program-suf | --program-su | --program-s)
1491 ac_prev=program_suffix ;;
1492 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1493 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1494 program_suffix=$ac_optarg ;;
1495
1496 -program-transform-name | --program-transform-name \
1497 | --program-transform-nam | --program-transform-na \
1498 | --program-transform-n | --program-transform- \
1499 | --program-transform | --program-transfor \
1500 | --program-transfo | --program-transf \
1501 | --program-trans | --program-tran \
1502 | --progr-tra | --program-tr | --program-t)
1503 ac_prev=program_transform_name ;;
1504 -program-transform-name=* | --program-transform-name=* \
1505 | --program-transform-nam=* | --program-transform-na=* \
1506 | --program-transform-n=* | --program-transform-=* \
1507 | --program-transform=* | --program-transfor=* \
1508 | --program-transfo=* | --program-transf=* \
1509 | --program-trans=* | --program-tran=* \
1510 | --progr-tra=* | --program-tr=* | --program-t=*)
1511 program_transform_name=$ac_optarg ;;
1512
1513 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1514 ac_prev=pdfdir ;;
1515 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1516 pdfdir=$ac_optarg ;;
1517
1518 -psdir | --psdir | --psdi | --psd | --ps)
1519 ac_prev=psdir ;;
1520 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1521 psdir=$ac_optarg ;;
1522
1523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1524 | -silent | --silent | --silen | --sile | --sil)
1525 silent=yes ;;
1526
1527 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1528 ac_prev=sbindir ;;
1529 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1530 | --sbi=* | --sb=*)
1531 sbindir=$ac_optarg ;;
1532
1533 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1534 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1535 | --sharedst | --shareds | --shared | --share | --shar \
1536 | --sha | --sh)
1537 ac_prev=sharedstatedir ;;
1538 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1539 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1540 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1541 | --sha=* | --sh=*)
1542 sharedstatedir=$ac_optarg ;;
1543
1544 -site | --site | --sit)
1545 ac_prev=site ;;
1546 -site=* | --site=* | --sit=*)
1547 site=$ac_optarg ;;
1548
1549 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1550 ac_prev=srcdir ;;
1551 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1552 srcdir=$ac_optarg ;;
1553
1554 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1555 | --syscon | --sysco | --sysc | --sys | --sy)
1556 ac_prev=sysconfdir ;;
1557 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1558 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1559 sysconfdir=$ac_optarg ;;
1560
1561 -target | --target | --targe | --targ | --tar | --ta | --t)
1562 ac_prev=target_alias ;;
1563 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1564 target_alias=$ac_optarg ;;
1565
1566 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1567 verbose=yes ;;
1568
1569 -version | --version | --versio | --versi | --vers | -V)
1570 ac_init_version=: ;;
1571
1572 -with-* | --with-*)
1573 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1574 # Reject names that are not valid shell variable names.
1575 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001576 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001577 ac_useropt_orig=$ac_useropt
1578 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1579 case $ac_user_opts in
1580 *"
1581"with_$ac_useropt"
1582"*) ;;
1583 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1584 ac_unrecognized_sep=', ';;
1585 esac
1586 eval with_$ac_useropt=\$ac_optarg ;;
1587
1588 -without-* | --without-*)
1589 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1590 # Reject names that are not valid shell variable names.
1591 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001592 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001593 ac_useropt_orig=$ac_useropt
1594 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1595 case $ac_user_opts in
1596 *"
1597"with_$ac_useropt"
1598"*) ;;
1599 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1600 ac_unrecognized_sep=', ';;
1601 esac
1602 eval with_$ac_useropt=no ;;
1603
1604 --x)
1605 # Obsolete; use --with-x.
1606 with_x=yes ;;
1607
1608 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1609 | --x-incl | --x-inc | --x-in | --x-i)
1610 ac_prev=x_includes ;;
1611 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1612 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1613 x_includes=$ac_optarg ;;
1614
1615 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1616 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1617 ac_prev=x_libraries ;;
1618 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1619 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1620 x_libraries=$ac_optarg ;;
1621
cristy98dddb52010-11-04 00:30:15 +00001622 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1623Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001624 ;;
1625
1626 *=*)
1627 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1628 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001629 case $ac_envvar in #(
1630 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001631 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001632 esac
cristy3ed852e2009-09-05 21:47:34 +00001633 eval $ac_envvar=\$ac_optarg
1634 export $ac_envvar ;;
1635
1636 *)
1637 # FIXME: should be removed in autoconf 3.0.
1638 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1639 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1640 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001641 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001642 ;;
1643
1644 esac
1645done
1646
1647if test -n "$ac_prev"; then
1648 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001649 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001650fi
1651
1652if test -n "$ac_unrecognized_opts"; then
1653 case $enable_option_checking in
1654 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001655 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001656 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1657 esac
1658fi
1659
1660# Check all directory arguments for consistency.
1661for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1662 datadir sysconfdir sharedstatedir localstatedir includedir \
1663 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1664 libdir localedir mandir
1665do
1666 eval ac_val=\$$ac_var
1667 # Remove trailing slashes.
1668 case $ac_val in
1669 */ )
1670 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1671 eval $ac_var=\$ac_val;;
1672 esac
1673 # Be sure to have absolute directory names.
1674 case $ac_val in
1675 [\\/$]* | ?:[\\/]* ) continue;;
1676 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1677 esac
cristy98dddb52010-11-04 00:30:15 +00001678 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001679done
1680
1681# There might be people who depend on the old broken behavior: `$host'
1682# used to hold the argument of --host etc.
1683# FIXME: To remove some day.
1684build=$build_alias
1685host=$host_alias
1686target=$target_alias
1687
1688# FIXME: To remove some day.
1689if test "x$host_alias" != x; then
1690 if test "x$build_alias" = x; then
1691 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001692 elif test "x$build_alias" != "x$host_alias"; then
1693 cross_compiling=yes
1694 fi
1695fi
1696
1697ac_tool_prefix=
1698test -n "$host_alias" && ac_tool_prefix=$host_alias-
1699
1700test "$silent" = yes && exec 6>/dev/null
1701
1702
1703ac_pwd=`pwd` && test -n "$ac_pwd" &&
1704ac_ls_di=`ls -di .` &&
1705ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001706 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001707test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001708 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001709
1710
1711# Find the source files, if location was not specified.
1712if test -z "$srcdir"; then
1713 ac_srcdir_defaulted=yes
1714 # Try the directory containing this script, then the parent directory.
1715 ac_confdir=`$as_dirname -- "$as_myself" ||
1716$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1717 X"$as_myself" : 'X\(//\)[^/]' \| \
1718 X"$as_myself" : 'X\(//\)$' \| \
1719 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1720$as_echo X"$as_myself" |
1721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1722 s//\1/
1723 q
1724 }
1725 /^X\(\/\/\)[^/].*/{
1726 s//\1/
1727 q
1728 }
1729 /^X\(\/\/\)$/{
1730 s//\1/
1731 q
1732 }
1733 /^X\(\/\).*/{
1734 s//\1/
1735 q
1736 }
1737 s/.*/./; q'`
1738 srcdir=$ac_confdir
1739 if test ! -r "$srcdir/$ac_unique_file"; then
1740 srcdir=..
1741 fi
1742else
1743 ac_srcdir_defaulted=no
1744fi
1745if test ! -r "$srcdir/$ac_unique_file"; then
1746 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001747 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001748fi
1749ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1750ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001751 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001752 pwd)`
1753# When building in place, set srcdir=.
1754if test "$ac_abs_confdir" = "$ac_pwd"; then
1755 srcdir=.
1756fi
1757# Remove unnecessary trailing slashes from srcdir.
1758# Double slashes in file names in object file debugging info
1759# mess up M-x gdb in Emacs.
1760case $srcdir in
1761*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1762esac
1763for ac_var in $ac_precious_vars; do
1764 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1765 eval ac_env_${ac_var}_value=\$${ac_var}
1766 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1767 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1768done
1769
1770#
1771# Report the --help message.
1772#
1773if test "$ac_init_help" = "long"; then
1774 # Omit some internal or obsolete options to make the list less imposing.
1775 # This message is too long to be a string in the A/UX 3.1 sh.
1776 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001777\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001778
1779Usage: $0 [OPTION]... [VAR=VALUE]...
1780
1781To assign environment variables (e.g., CC, CFLAGS...), specify them as
1782VAR=VALUE. See below for descriptions of some of the useful variables.
1783
1784Defaults for the options are specified in brackets.
1785
1786Configuration:
1787 -h, --help display this help and exit
1788 --help=short display options specific to this package
1789 --help=recursive display the short help of all the included packages
1790 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001791 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001792 --cache-file=FILE cache test results in FILE [disabled]
1793 -C, --config-cache alias for \`--cache-file=config.cache'
1794 -n, --no-create do not create output files
1795 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1796
1797Installation directories:
1798 --prefix=PREFIX install architecture-independent files in PREFIX
1799 [$ac_default_prefix]
1800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1801 [PREFIX]
1802
1803By default, \`make install' will install all the files in
1804\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1805an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1806for instance \`--prefix=\$HOME'.
1807
1808For better control, use the options below.
1809
1810Fine tuning of the installation directories:
1811 --bindir=DIR user executables [EPREFIX/bin]
1812 --sbindir=DIR system admin executables [EPREFIX/sbin]
1813 --libexecdir=DIR program executables [EPREFIX/libexec]
1814 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1815 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1816 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1817 --libdir=DIR object code libraries [EPREFIX/lib]
1818 --includedir=DIR C header files [PREFIX/include]
1819 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1820 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1821 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1822 --infodir=DIR info documentation [DATAROOTDIR/info]
1823 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1824 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001825 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001826 --htmldir=DIR html documentation [DOCDIR]
1827 --dvidir=DIR dvi documentation [DOCDIR]
1828 --pdfdir=DIR pdf documentation [DOCDIR]
1829 --psdir=DIR ps documentation [DOCDIR]
1830_ACEOF
1831
1832 cat <<\_ACEOF
1833
cristy73bd4a52010-10-05 11:24:23 +00001834Program names:
1835 --program-prefix=PREFIX prepend PREFIX to installed program names
1836 --program-suffix=SUFFIX append SUFFIX to installed program names
1837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1838
cristy3ed852e2009-09-05 21:47:34 +00001839X features:
1840 --x-includes=DIR X include files are in DIR
1841 --x-libraries=DIR X library files are in DIR
1842
1843System types:
1844 --build=BUILD configure for building on BUILD [guessed]
1845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1846 --target=TARGET configure for building compilers for TARGET [HOST]
1847_ACEOF
1848fi
1849
1850if test -n "$ac_init_help"; then
1851 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001852 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001853 esac
1854 cat <<\_ACEOF
1855
1856Optional Features:
1857 --disable-option-checking ignore unrecognized --enable/--with options
1858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001860 --enable-silent-rules less verbose build output (undo: "make V=1")
1861 --disable-silent-rules verbose build output (undo: "make V=0")
1862 --enable-dependency-tracking
1863 do not reject slow dependency extractors
1864 --disable-dependency-tracking
1865 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001866 --enable-ld-version-script
1867 enable linker version script (default is enabled
1868 when possible)
cristya3824692012-03-30 17:22:07 +00001869 --enable-bounds-checking
1870 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001871 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001872 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001873 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001874 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001875 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001876 --enable-shared[=PKGS] build shared libraries [default=yes]
1877 --enable-static[=PKGS] build static libraries [default=yes]
1878 --enable-fast-install[=PKGS]
1879 optimize for fast installation [default=yes]
1880 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001881 --enable-delegate-build look for delegate libraries in build directory
1882 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001883 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001884 --disable-installed Formally install ImageMagick under PREFIX
1885 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001886 --enable-zero-configuration
1887 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001888 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001889 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001890 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001891 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001892 --enable-maintainer-mode
1893 enable make rules and dependencies not useful (and
1894 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001895 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001896 --enable-ccmalloc enable 'ccmalloc' memory debug support
1897 --enable-efence enable 'efence' memory debug support
1898 --enable-prof enable 'prof' profiling support
1899 --enable-gprof enable 'gprof' profiling support
1900 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001901 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001902 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001903 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001904
1905Optional Packages:
1906 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1907 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001908 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001909 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001910 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1911 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001912 --includearch-dir=DIR ARCH specific include directory
1913 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001914 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001915 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001916 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001917 both]
cristyda16f162011-02-19 23:52:17 +00001918 --with-sysroot=DIR Search for dependent libraries within DIR
1919 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001920 --with-modules enable building dynamically loadable modules
1921 --with-method-prefix=PREFIX
1922 prefix MagickCore API methods
1923 --with-quantum-depth=DEPTH
1924 number of bits in a pixel quantum (default 16)
1925 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1926 memory)
1927 --with-frozenpaths freeze delegate paths
1928 --without-magick-plus-plus
1929 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001930 --with-package-release-name=NAME
1931 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001932 --with-perl enable build/install of PerlMagick
1933 --with-perl-options=OPTIONS
1934 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001935 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001936 --with-umem enable umem memory allocation library support
1937 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1938 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001939 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001940 --without-zlib disable ZLIB support
1941 --with-autotrace enable autotrace support
1942 --without-dps disable Display Postscript support
1943 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001944 --with-dejavu-font-dir=DIR
1945 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-fftw disable FFTW support
1947 --without-fpx disable FlashPIX support
1948 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001949 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001950 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001951 --with-fontpath=DIR prepend to default font search path
1952 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001953 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001954 --without-jbig disable JBIG support
1955 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001956 --without-lcms disable lcms (v1.1X) support
1957 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001958 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001959 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001960 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001961 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001962 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001963 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001964 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001965 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001966 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001967 --with-windows-font-dir=DIR
1968 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001969 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001970 --without-xml disable XML support
1971
1972Some influential environment variables:
1973 CC C compiler command
1974 CFLAGS C compiler flags
1975 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1976 nonstandard directory <lib dir>
1977 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001978 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001979 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001980 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001981 CXX C++ compiler command
1982 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001983 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001984 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001985 XMKMF Path to xmkmf, Makefile generator for X Window System
1986 AUTOTRACE_CFLAGS
1987 C compiler flags for AUTOTRACE, overriding pkg-config
1988 AUTOTRACE_LIBS
1989 linker flags for AUTOTRACE, overriding pkg-config
1990 FONTCONFIG_CFLAGS
1991 C compiler flags for FONTCONFIG, overriding pkg-config
1992 FONTCONFIG_LIBS
1993 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001994 FREETYPE_CFLAGS
1995 C compiler flags for FREETYPE, overriding pkg-config
1996 FREETYPE_LIBS
1997 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001998 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1999 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002000 LIBOPENJP2_CFLAGS
2001 C compiler flags for LIBOPENJP2, overriding pkg-config
2002 LIBOPENJP2_LIBS
2003 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002004 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2005 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002006 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2007 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002008 OPENEXR_CFLAGS
2009 C compiler flags for OPENEXR, overriding pkg-config
2010 OPENEXR_LIBS
2011 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002012 PANGO_CFLAGS
2013 C compiler flags for PANGO, overriding pkg-config
2014 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002015 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2016 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2017 CAIRO_SVG_CFLAGS
2018 C compiler flags for CAIRO_SVG, overriding pkg-config
2019 CAIRO_SVG_LIBS
2020 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002021
2022Use these variables to override the choices made by `configure' or to help
2023it to find libraries and programs with nonstandard names/locations.
2024
2025Report bugs to <http://www.imagemagick.org>.
2026_ACEOF
2027ac_status=$?
2028fi
2029
2030if test "$ac_init_help" = "recursive"; then
2031 # If there are subdirs, report their specific --help.
2032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2033 test -d "$ac_dir" ||
2034 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2035 continue
2036 ac_builddir=.
2037
2038case "$ac_dir" in
2039.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2040*)
2041 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2042 # A ".." for each directory in $ac_dir_suffix.
2043 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2044 case $ac_top_builddir_sub in
2045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2047 esac ;;
2048esac
2049ac_abs_top_builddir=$ac_pwd
2050ac_abs_builddir=$ac_pwd$ac_dir_suffix
2051# for backward compatibility:
2052ac_top_builddir=$ac_top_build_prefix
2053
2054case $srcdir in
2055 .) # We are building in place.
2056 ac_srcdir=.
2057 ac_top_srcdir=$ac_top_builddir_sub
2058 ac_abs_top_srcdir=$ac_pwd ;;
2059 [\\/]* | ?:[\\/]* ) # Absolute name.
2060 ac_srcdir=$srcdir$ac_dir_suffix;
2061 ac_top_srcdir=$srcdir
2062 ac_abs_top_srcdir=$srcdir ;;
2063 *) # Relative name.
2064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2065 ac_top_srcdir=$ac_top_build_prefix$srcdir
2066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2067esac
2068ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2069
2070 cd "$ac_dir" || { ac_status=$?; continue; }
2071 # Check for guested configure.
2072 if test -f "$ac_srcdir/configure.gnu"; then
2073 echo &&
2074 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2075 elif test -f "$ac_srcdir/configure"; then
2076 echo &&
2077 $SHELL "$ac_srcdir/configure" --help=recursive
2078 else
2079 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2080 fi || ac_status=$?
2081 cd "$ac_pwd" || { ac_status=$?; break; }
2082 done
2083fi
2084
2085test -n "$ac_init_help" && exit $ac_status
2086if $ac_init_version; then
2087 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002088ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002089generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002090
cristy14fefe52012-05-21 00:59:18 +00002091Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002092This configure script is free software; the Free Software Foundation
2093gives unlimited permission to copy, distribute and modify it.
2094_ACEOF
2095 exit
2096fi
cristy8b350f62009-11-15 23:12:43 +00002097
2098## ------------------------ ##
2099## Autoconf initialization. ##
2100## ------------------------ ##
2101
2102# ac_fn_c_try_compile LINENO
2103# --------------------------
2104# Try to compile conftest.$ac_ext, and return whether this succeeded.
2105ac_fn_c_try_compile ()
2106{
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 rm -f conftest.$ac_objext
2109 if { { ac_try="$ac_compile"
2110case "(($ac_try" in
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2113esac
2114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115$as_echo "$ac_try_echo"; } >&5
2116 (eval "$ac_compile") 2>conftest.err
2117 ac_status=$?
2118 if test -s conftest.err; then
2119 grep -v '^ *+' conftest.err >conftest.er1
2120 cat conftest.er1 >&5
2121 mv -f conftest.er1 conftest.err
2122 fi
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } && {
2125 test -z "$ac_c_werror_flag" ||
2126 test ! -s conftest.err
2127 } && test -s conftest.$ac_objext; then :
2128 ac_retval=0
2129else
2130 $as_echo "$as_me: failed program was:" >&5
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
2133 ac_retval=1
2134fi
cristyda16f162011-02-19 23:52:17 +00002135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002136 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002137
2138} # ac_fn_c_try_compile
2139
cristy95646052009-11-28 23:05:30 +00002140# ac_fn_c_try_cpp LINENO
2141# ----------------------
2142# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2143ac_fn_c_try_cpp ()
2144{
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 if { { ac_try="$ac_cpp conftest.$ac_ext"
2147case "(($ac_try" in
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2150esac
2151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2152$as_echo "$ac_try_echo"; } >&5
2153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2154 ac_status=$?
2155 if test -s conftest.err; then
2156 grep -v '^ *+' conftest.err >conftest.er1
2157 cat conftest.er1 >&5
2158 mv -f conftest.er1 conftest.err
2159 fi
2160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002161 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2163 test ! -s conftest.err
2164 }; then :
2165 ac_retval=0
2166else
2167 $as_echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
2169
2170 ac_retval=1
2171fi
cristyda16f162011-02-19 23:52:17 +00002172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002173 as_fn_set_status $ac_retval
2174
2175} # ac_fn_c_try_cpp
2176
cristy8b350f62009-11-15 23:12:43 +00002177# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2178# -------------------------------------------------------
2179# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2180# the include files in INCLUDES and setting the cache variable VAR
2181# accordingly.
2182ac_fn_c_check_header_mongrel ()
2183{
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002185 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002188if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002189 $as_echo_n "(cached) " >&6
2190fi
2191eval ac_res=\$$3
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193$as_echo "$ac_res" >&6; }
2194else
2195 # Is the header compilable?
2196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2197$as_echo_n "checking $2 usability... " >&6; }
2198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h. */
2200$4
2201#include <$2>
2202_ACEOF
2203if ac_fn_c_try_compile "$LINENO"; then :
2204 ac_header_compiler=yes
2205else
2206 ac_header_compiler=no
2207fi
2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2210$as_echo "$ac_header_compiler" >&6; }
2211
2212# Is the header present?
2213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2214$as_echo_n "checking $2 presence... " >&6; }
2215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216/* end confdefs.h. */
2217#include <$2>
2218_ACEOF
2219if ac_fn_c_try_cpp "$LINENO"; then :
2220 ac_header_preproc=yes
2221else
2222 ac_header_preproc=no
2223fi
cristyda16f162011-02-19 23:52:17 +00002224rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2226$as_echo "$ac_header_preproc" >&6; }
2227
2228# So? What about this header?
2229case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2230 yes:no: )
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2232$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2234$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2235 ;;
2236 no:yes:* )
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2238$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2240$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2242$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2244$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2246$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002247( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002248## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002249## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002250 ) | sed "s/^/$as_me: WARNING: /" >&2
2251 ;;
2252esac
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002255if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002256 $as_echo_n "(cached) " >&6
2257else
2258 eval "$3=\$ac_header_compiler"
2259fi
2260eval ac_res=\$$3
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262$as_echo "$ac_res" >&6; }
2263fi
cristyda16f162011-02-19 23:52:17 +00002264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002265
2266} # ac_fn_c_check_header_mongrel
2267
2268# ac_fn_c_try_run LINENO
2269# ----------------------
2270# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2271# that executables *can* be run.
2272ac_fn_c_try_run ()
2273{
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 if { { ac_try="$ac_link"
2276case "(($ac_try" in
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2279esac
2280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2281$as_echo "$ac_try_echo"; } >&5
2282 (eval "$ac_link") 2>&5
2283 ac_status=$?
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2286 { { case "(($ac_try" in
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2289esac
2290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291$as_echo "$ac_try_echo"; } >&5
2292 (eval "$ac_try") 2>&5
2293 ac_status=$?
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; }; }; then :
2296 ac_retval=0
2297else
2298 $as_echo "$as_me: program exited with status $ac_status" >&5
2299 $as_echo "$as_me: failed program was:" >&5
2300sed 's/^/| /' conftest.$ac_ext >&5
2301
2302 ac_retval=$ac_status
2303fi
2304 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002306 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002307
2308} # ac_fn_c_try_run
2309
2310# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2311# -------------------------------------------------------
2312# Tests whether HEADER exists and can be compiled using the include files in
2313# INCLUDES, setting the cache variable VAR accordingly.
2314ac_fn_c_check_header_compile ()
2315{
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2318$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002319if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002320 $as_echo_n "(cached) " >&6
2321else
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323/* end confdefs.h. */
2324$4
2325#include <$2>
2326_ACEOF
2327if ac_fn_c_try_compile "$LINENO"; then :
2328 eval "$3=yes"
2329else
2330 eval "$3=no"
2331fi
2332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333fi
2334eval ac_res=\$$3
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2336$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002337 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002338
2339} # ac_fn_c_check_header_compile
2340
cristya0b81c32010-01-22 02:54:33 +00002341# ac_fn_cxx_try_compile LINENO
2342# ----------------------------
2343# Try to compile conftest.$ac_ext, and return whether this succeeded.
2344ac_fn_cxx_try_compile ()
2345{
2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347 rm -f conftest.$ac_objext
2348 if { { ac_try="$ac_compile"
2349case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352esac
2353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2354$as_echo "$ac_try_echo"; } >&5
2355 (eval "$ac_compile") 2>conftest.err
2356 ac_status=$?
2357 if test -s conftest.err; then
2358 grep -v '^ *+' conftest.err >conftest.er1
2359 cat conftest.er1 >&5
2360 mv -f conftest.er1 conftest.err
2361 fi
2362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2363 test $ac_status = 0; } && {
2364 test -z "$ac_cxx_werror_flag" ||
2365 test ! -s conftest.err
2366 } && test -s conftest.$ac_objext; then :
2367 ac_retval=0
2368else
2369 $as_echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 ac_retval=1
2373fi
cristyda16f162011-02-19 23:52:17 +00002374 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002375 as_fn_set_status $ac_retval
2376
2377} # ac_fn_cxx_try_compile
2378
cristyd95b7a52013-10-23 13:12:53 +00002379# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2380# --------------------------------------------
2381# Tries to find the compile-time value of EXPR in a program that includes
2382# INCLUDES, setting VAR accordingly. Returns whether the value could be
2383# computed
2384ac_fn_c_compute_int ()
2385{
2386 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387 if test "$cross_compiling" = yes; then
2388 # Depending upon the size, compute the lo and hi bounds.
2389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390/* end confdefs.h. */
2391$4
2392int
2393main ()
2394{
2395static int test_array [1 - 2 * !(($2) >= 0)];
2396test_array [0] = 0;
2397return test_array [0];
2398
2399 ;
2400 return 0;
2401}
2402_ACEOF
2403if ac_fn_c_try_compile "$LINENO"; then :
2404 ac_lo=0 ac_mid=0
2405 while :; do
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407/* end confdefs.h. */
2408$4
2409int
2410main ()
2411{
2412static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2413test_array [0] = 0;
2414return test_array [0];
2415
2416 ;
2417 return 0;
2418}
2419_ACEOF
2420if ac_fn_c_try_compile "$LINENO"; then :
2421 ac_hi=$ac_mid; break
2422else
2423 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2424 if test $ac_lo -le $ac_mid; then
2425 ac_lo= ac_hi=
2426 break
2427 fi
2428 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2429fi
2430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 done
2432else
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434/* end confdefs.h. */
2435$4
2436int
2437main ()
2438{
2439static int test_array [1 - 2 * !(($2) < 0)];
2440test_array [0] = 0;
2441return test_array [0];
2442
2443 ;
2444 return 0;
2445}
2446_ACEOF
2447if ac_fn_c_try_compile "$LINENO"; then :
2448 ac_hi=-1 ac_mid=-1
2449 while :; do
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451/* end confdefs.h. */
2452$4
2453int
2454main ()
2455{
2456static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2457test_array [0] = 0;
2458return test_array [0];
2459
2460 ;
2461 return 0;
2462}
2463_ACEOF
2464if ac_fn_c_try_compile "$LINENO"; then :
2465 ac_lo=$ac_mid; break
2466else
2467 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2468 if test $ac_mid -le $ac_hi; then
2469 ac_lo= ac_hi=
2470 break
2471 fi
2472 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2473fi
2474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475 done
2476else
2477 ac_lo= ac_hi=
2478fi
2479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480fi
2481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482# Binary search between lo and hi bounds.
2483while test "x$ac_lo" != "x$ac_hi"; do
2484 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486/* end confdefs.h. */
2487$4
2488int
2489main ()
2490{
2491static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2492test_array [0] = 0;
2493return test_array [0];
2494
2495 ;
2496 return 0;
2497}
2498_ACEOF
2499if ac_fn_c_try_compile "$LINENO"; then :
2500 ac_hi=$ac_mid
2501else
2502 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2503fi
2504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505done
2506case $ac_lo in #((
2507?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2508'') ac_retval=1 ;;
2509esac
2510 else
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512/* end confdefs.h. */
2513$4
2514static long int longval () { return $2; }
2515static unsigned long int ulongval () { return $2; }
2516#include <stdio.h>
2517#include <stdlib.h>
2518int
2519main ()
2520{
2521
2522 FILE *f = fopen ("conftest.val", "w");
2523 if (! f)
2524 return 1;
2525 if (($2) < 0)
2526 {
2527 long int i = longval ();
2528 if (i != ($2))
2529 return 1;
2530 fprintf (f, "%ld", i);
2531 }
2532 else
2533 {
2534 unsigned long int i = ulongval ();
2535 if (i != ($2))
2536 return 1;
2537 fprintf (f, "%lu", i);
2538 }
2539 /* Do not output a trailing newline, as this causes \r\n confusion
2540 on some platforms. */
2541 return ferror (f) || fclose (f) != 0;
2542
2543 ;
2544 return 0;
2545}
2546_ACEOF
2547if ac_fn_c_try_run "$LINENO"; then :
2548 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2549else
2550 ac_retval=1
2551fi
2552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2553 conftest.$ac_objext conftest.beam conftest.$ac_ext
2554rm -f conftest.val
2555
2556 fi
2557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2558 as_fn_set_status $ac_retval
2559
2560} # ac_fn_c_compute_int
2561
cristy8b350f62009-11-15 23:12:43 +00002562# ac_fn_c_try_link LINENO
2563# -----------------------
2564# Try to link conftest.$ac_ext, and return whether this succeeded.
2565ac_fn_c_try_link ()
2566{
2567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568 rm -f conftest.$ac_objext conftest$ac_exeext
2569 if { { ac_try="$ac_link"
2570case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2573esac
2574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575$as_echo "$ac_try_echo"; } >&5
2576 (eval "$ac_link") 2>conftest.err
2577 ac_status=$?
2578 if test -s conftest.err; then
2579 grep -v '^ *+' conftest.err >conftest.er1
2580 cat conftest.er1 >&5
2581 mv -f conftest.er1 conftest.err
2582 fi
2583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2584 test $ac_status = 0; } && {
2585 test -z "$ac_c_werror_flag" ||
2586 test ! -s conftest.err
2587 } && test -s conftest$ac_exeext && {
2588 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002589 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002590 }; then :
2591 ac_retval=0
2592else
2593 $as_echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 ac_retval=1
2597fi
2598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2600 # interfere with the next link command; also delete a directory that is
2601 # left behind by Apple's compiler. We do this before executing the actions.
2602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002604 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002605
2606} # ac_fn_c_try_link
2607
cristy73bd4a52010-10-05 11:24:23 +00002608# ac_fn_c_check_func LINENO FUNC VAR
2609# ----------------------------------
2610# Tests whether FUNC exists, setting the cache variable VAR accordingly
2611ac_fn_c_check_func ()
2612{
2613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2615$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002616if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002617 $as_echo_n "(cached) " >&6
2618else
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620/* end confdefs.h. */
2621/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2623#define $2 innocuous_$2
2624
2625/* System header to define __stub macros and hopefully few prototypes,
2626 which can conflict with char $2 (); below.
2627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2628 <limits.h> exists even on freestanding compilers. */
2629
2630#ifdef __STDC__
2631# include <limits.h>
2632#else
2633# include <assert.h>
2634#endif
2635
2636#undef $2
2637
2638/* Override any GCC internal prototype to avoid an error.
2639 Use char because int might match the return type of a GCC
2640 builtin and then its argument prototype would still apply. */
2641#ifdef __cplusplus
2642extern "C"
2643#endif
2644char $2 ();
2645/* The GNU C library defines this for functions which it implements
2646 to always fail with ENOSYS. Some functions are actually named
2647 something starting with __ and the normal name is an alias. */
2648#if defined __stub_$2 || defined __stub___$2
2649choke me
2650#endif
2651
2652int
2653main ()
2654{
2655return $2 ();
2656 ;
2657 return 0;
2658}
2659_ACEOF
2660if ac_fn_c_try_link "$LINENO"; then :
2661 eval "$3=yes"
2662else
2663 eval "$3=no"
2664fi
2665rm -f core conftest.err conftest.$ac_objext \
2666 conftest$ac_exeext conftest.$ac_ext
2667fi
2668eval ac_res=\$$3
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2670$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002672
2673} # ac_fn_c_check_func
2674
2675# ac_fn_cxx_try_cpp LINENO
2676# ------------------------
2677# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2678ac_fn_cxx_try_cpp ()
2679{
2680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681 if { { ac_try="$ac_cpp conftest.$ac_ext"
2682case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685esac
2686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687$as_echo "$ac_try_echo"; } >&5
2688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2689 ac_status=$?
2690 if test -s conftest.err; then
2691 grep -v '^ *+' conftest.err >conftest.er1
2692 cat conftest.er1 >&5
2693 mv -f conftest.er1 conftest.err
2694 fi
2695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002696 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002697 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2698 test ! -s conftest.err
2699 }; then :
2700 ac_retval=0
2701else
2702 $as_echo "$as_me: failed program was:" >&5
2703sed 's/^/| /' conftest.$ac_ext >&5
2704
2705 ac_retval=1
2706fi
cristyda16f162011-02-19 23:52:17 +00002707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002708 as_fn_set_status $ac_retval
2709
2710} # ac_fn_cxx_try_cpp
2711
2712# ac_fn_cxx_try_link LINENO
2713# -------------------------
2714# Try to link conftest.$ac_ext, and return whether this succeeded.
2715ac_fn_cxx_try_link ()
2716{
2717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2718 rm -f conftest.$ac_objext conftest$ac_exeext
2719 if { { ac_try="$ac_link"
2720case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723esac
2724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2725$as_echo "$ac_try_echo"; } >&5
2726 (eval "$ac_link") 2>conftest.err
2727 ac_status=$?
2728 if test -s conftest.err; then
2729 grep -v '^ *+' conftest.err >conftest.er1
2730 cat conftest.er1 >&5
2731 mv -f conftest.er1 conftest.err
2732 fi
2733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2734 test $ac_status = 0; } && {
2735 test -z "$ac_cxx_werror_flag" ||
2736 test ! -s conftest.err
2737 } && test -s conftest$ac_exeext && {
2738 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002739 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002740 }; then :
2741 ac_retval=0
2742else
2743 $as_echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746 ac_retval=1
2747fi
2748 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2749 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2750 # interfere with the next link command; also delete a directory that is
2751 # left behind by Apple's compiler. We do this before executing the actions.
2752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002754 as_fn_set_status $ac_retval
2755
2756} # ac_fn_cxx_try_link
2757
cristy8b350f62009-11-15 23:12:43 +00002758# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2759# -------------------------------------------
2760# Tests whether TYPE exists after having included INCLUDES, setting cache
2761# variable VAR accordingly.
2762ac_fn_c_check_type ()
2763{
2764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2766$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002767if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002768 $as_echo_n "(cached) " >&6
2769else
2770 eval "$3=no"
2771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772/* end confdefs.h. */
2773$4
2774int
2775main ()
2776{
2777if (sizeof ($2))
2778 return 0;
2779 ;
2780 return 0;
2781}
2782_ACEOF
2783if ac_fn_c_try_compile "$LINENO"; then :
2784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2785/* end confdefs.h. */
2786$4
2787int
2788main ()
2789{
2790if (sizeof (($2)))
2791 return 0;
2792 ;
2793 return 0;
2794}
2795_ACEOF
2796if ac_fn_c_try_compile "$LINENO"; then :
2797
2798else
2799 eval "$3=yes"
2800fi
2801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802fi
2803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804fi
2805eval ac_res=\$$3
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2807$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002809
2810} # ac_fn_c_check_type
2811
cristy92703d82010-04-26 00:18:18 +00002812# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2813# ----------------------------------------------------
2814# Tries to find if the field MEMBER exists in type AGGR, after including
2815# INCLUDES, setting cache variable VAR accordingly.
2816ac_fn_c_check_member ()
2817{
2818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2820$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002821if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002822 $as_echo_n "(cached) " >&6
2823else
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825/* end confdefs.h. */
2826$5
2827int
2828main ()
2829{
2830static $2 ac_aggr;
2831if (ac_aggr.$3)
2832return 0;
2833 ;
2834 return 0;
2835}
2836_ACEOF
2837if ac_fn_c_try_compile "$LINENO"; then :
2838 eval "$4=yes"
2839else
2840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841/* end confdefs.h. */
2842$5
2843int
2844main ()
2845{
2846static $2 ac_aggr;
2847if (sizeof ac_aggr.$3)
2848return 0;
2849 ;
2850 return 0;
2851}
2852_ACEOF
2853if ac_fn_c_try_compile "$LINENO"; then :
2854 eval "$4=yes"
2855else
2856 eval "$4=no"
2857fi
2858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2859fi
2860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861fi
2862eval ac_res=\$$4
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2864$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002866
2867} # ac_fn_c_check_member
2868
cristy5eef09f2012-10-16 12:08:28 +00002869# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2870# ---------------------------------------------
2871# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2872# accordingly.
2873ac_fn_c_check_decl ()
2874{
2875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2876 as_decl_name=`echo $2|sed 's/ *(.*//'`
2877 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2879$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2880if eval \${$3+:} false; then :
2881 $as_echo_n "(cached) " >&6
2882else
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884/* end confdefs.h. */
2885$4
2886int
2887main ()
2888{
2889#ifndef $as_decl_name
2890#ifdef __cplusplus
2891 (void) $as_decl_use;
2892#else
2893 (void) $as_decl_name;
2894#endif
2895#endif
2896
2897 ;
2898 return 0;
2899}
2900_ACEOF
2901if ac_fn_c_try_compile "$LINENO"; then :
2902 eval "$3=yes"
2903else
2904 eval "$3=no"
2905fi
2906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907fi
2908eval ac_res=\$$3
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2910$as_echo "$ac_res" >&6; }
2911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2912
2913} # ac_fn_c_check_decl
2914
cristy501c8042011-05-26 17:46:28 +00002915# ac_fn_c_find_intX_t LINENO BITS VAR
2916# -----------------------------------
2917# Finds a signed integer type with width BITS, setting cache variable VAR
2918# accordingly.
2919ac_fn_c_find_intX_t ()
2920{
2921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2923$as_echo_n "checking for int$2_t... " >&6; }
2924if eval \${$3+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926else
2927 eval "$3=no"
2928 # Order is important - never check a type that is potentially smaller
2929 # than half of the expected target width.
2930 for ac_type in int$2_t 'int' 'long int' \
2931 'long long int' 'short int' 'signed char'; do
2932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933/* end confdefs.h. */
2934$ac_includes_default
2935 enum { N = $2 / 2 - 1 };
2936int
2937main ()
2938{
2939static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002940test_array [0] = 0;
2941return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002942
2943 ;
2944 return 0;
2945}
2946_ACEOF
2947if ac_fn_c_try_compile "$LINENO"; then :
2948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949/* end confdefs.h. */
2950$ac_includes_default
2951 enum { N = $2 / 2 - 1 };
2952int
2953main ()
2954{
2955static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2956 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002957test_array [0] = 0;
2958return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002959
2960 ;
2961 return 0;
2962}
2963_ACEOF
2964if ac_fn_c_try_compile "$LINENO"; then :
2965
2966else
2967 case $ac_type in #(
2968 int$2_t) :
2969 eval "$3=yes" ;; #(
2970 *) :
2971 eval "$3=\$ac_type" ;;
2972esac
2973fi
2974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975fi
2976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 if eval test \"x\$"$3"\" = x"no"; then :
2978
2979else
2980 break
2981fi
2982 done
2983fi
2984eval ac_res=\$$3
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2986$as_echo "$ac_res" >&6; }
2987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2988
2989} # ac_fn_c_find_intX_t
2990
2991# ac_fn_c_find_uintX_t LINENO BITS VAR
2992# ------------------------------------
2993# Finds an unsigned integer type with width BITS, setting cache variable VAR
2994# accordingly.
2995ac_fn_c_find_uintX_t ()
2996{
2997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2999$as_echo_n "checking for uint$2_t... " >&6; }
3000if eval \${$3+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002else
3003 eval "$3=no"
3004 # Order is important - never check a type that is potentially smaller
3005 # than half of the expected target width.
3006 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3007 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009/* end confdefs.h. */
3010$ac_includes_default
3011int
3012main ()
3013{
3014static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003015test_array [0] = 0;
3016return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003017
3018 ;
3019 return 0;
3020}
3021_ACEOF
3022if ac_fn_c_try_compile "$LINENO"; then :
3023 case $ac_type in #(
3024 uint$2_t) :
3025 eval "$3=yes" ;; #(
3026 *) :
3027 eval "$3=\$ac_type" ;;
3028esac
3029fi
3030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 if eval test \"x\$"$3"\" = x"no"; then :
3032
3033else
3034 break
3035fi
3036 done
3037fi
3038eval ac_res=\$$3
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3040$as_echo "$ac_res" >&6; }
3041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3042
3043} # ac_fn_c_find_uintX_t
3044
cristy8b350f62009-11-15 23:12:43 +00003045# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3046# ---------------------------------------------------------
3047# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3048# the include files in INCLUDES and setting the cache variable VAR
3049# accordingly.
3050ac_fn_cxx_check_header_mongrel ()
3051{
3052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003053 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3055$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003056if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003057 $as_echo_n "(cached) " >&6
3058fi
3059eval ac_res=\$$3
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3061$as_echo "$ac_res" >&6; }
3062else
3063 # Is the header compilable?
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3065$as_echo_n "checking $2 usability... " >&6; }
3066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067/* end confdefs.h. */
3068$4
3069#include <$2>
3070_ACEOF
3071if ac_fn_cxx_try_compile "$LINENO"; then :
3072 ac_header_compiler=yes
3073else
3074 ac_header_compiler=no
3075fi
3076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3078$as_echo "$ac_header_compiler" >&6; }
3079
3080# Is the header present?
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3082$as_echo_n "checking $2 presence... " >&6; }
3083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084/* end confdefs.h. */
3085#include <$2>
3086_ACEOF
3087if ac_fn_cxx_try_cpp "$LINENO"; then :
3088 ac_header_preproc=yes
3089else
3090 ac_header_preproc=no
3091fi
cristyda16f162011-02-19 23:52:17 +00003092rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3094$as_echo "$ac_header_preproc" >&6; }
3095
3096# So? What about this header?
3097case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3098 yes:no: )
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3100$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3102$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3103 ;;
3104 no:yes:* )
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3106$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3108$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3110$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3112$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3114$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003115( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003116## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003117## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003118 ) | sed "s/^/$as_me: WARNING: /" >&2
3119 ;;
3120esac
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3122$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003123if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003124 $as_echo_n "(cached) " >&6
3125else
3126 eval "$3=\$ac_header_compiler"
3127fi
3128eval ac_res=\$$3
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3130$as_echo "$ac_res" >&6; }
3131fi
cristyda16f162011-02-19 23:52:17 +00003132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003133
3134} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003135cat >config.log <<_ACEOF
3136This file contains any messages produced by compilers while
3137running configure, to aid debugging if configure makes a mistake.
3138
cristy29eb34e2011-10-16 00:46:08 +00003139It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003140generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003141
3142 $ $0 $@
3143
3144_ACEOF
3145exec 5>>config.log
3146{
3147cat <<_ASUNAME
3148## --------- ##
3149## Platform. ##
3150## --------- ##
3151
3152hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3153uname -m = `(uname -m) 2>/dev/null || echo unknown`
3154uname -r = `(uname -r) 2>/dev/null || echo unknown`
3155uname -s = `(uname -s) 2>/dev/null || echo unknown`
3156uname -v = `(uname -v) 2>/dev/null || echo unknown`
3157
3158/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3159/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3160
3161/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3162/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3163/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3164/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3165/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3166/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3167/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3168
3169_ASUNAME
3170
3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH
3173do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003176 $as_echo "PATH: $as_dir"
3177 done
cristy3ed852e2009-09-05 21:47:34 +00003178IFS=$as_save_IFS
3179
3180} >&5
3181
3182cat >&5 <<_ACEOF
3183
3184
3185## ----------- ##
3186## Core tests. ##
3187## ----------- ##
3188
3189_ACEOF
3190
3191
3192# Keep a trace of the command line.
3193# Strip out --no-create and --no-recursion so they do not pile up.
3194# Strip out --silent because we don't want to record it for future runs.
3195# Also quote any args containing shell meta-characters.
3196# Make two passes to allow for proper duplicate-argument suppression.
3197ac_configure_args=
3198ac_configure_args0=
3199ac_configure_args1=
3200ac_must_keep_next=false
3201for ac_pass in 1 2
3202do
3203 for ac_arg
3204 do
3205 case $ac_arg in
3206 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3208 | -silent | --silent | --silen | --sile | --sil)
3209 continue ;;
3210 *\'*)
3211 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3212 esac
3213 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003214 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003215 2)
cristy8b350f62009-11-15 23:12:43 +00003216 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003217 if test $ac_must_keep_next = true; then
3218 ac_must_keep_next=false # Got value, back to normal.
3219 else
3220 case $ac_arg in
3221 *=* | --config-cache | -C | -disable-* | --disable-* \
3222 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3223 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3224 | -with-* | --with-* | -without-* | --without-* | --x)
3225 case "$ac_configure_args0 " in
3226 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3227 esac
3228 ;;
3229 -* ) ac_must_keep_next=true ;;
3230 esac
3231 fi
cristy8b350f62009-11-15 23:12:43 +00003232 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003233 ;;
3234 esac
3235 done
3236done
cristy8b350f62009-11-15 23:12:43 +00003237{ ac_configure_args0=; unset ac_configure_args0;}
3238{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003239
3240# When interrupted or exit'd, cleanup temporary files, and complete
3241# config.log. We remove comments because anyway the quotes in there
3242# would cause problems or look ugly.
3243# WARNING: Use '\'' to represent an apostrophe within the trap.
3244# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3245trap 'exit_status=$?
3246 # Save into config.log some information that might help in debugging.
3247 {
3248 echo
3249
cristy98dddb52010-11-04 00:30:15 +00003250 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003251## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003252## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003253 echo
3254 # The following way of writing the cache mishandles newlines in values,
3255(
3256 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3257 eval ac_val=\$$ac_var
3258 case $ac_val in #(
3259 *${as_nl}*)
3260 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003261 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003262$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3263 esac
3264 case $ac_var in #(
3265 _ | IFS | as_nl) ;; #(
3266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003267 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003268 esac ;;
3269 esac
3270 done
3271 (set) 2>&1 |
3272 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3273 *${as_nl}ac_space=\ *)
3274 sed -n \
3275 "s/'\''/'\''\\\\'\'''\''/g;
3276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3277 ;; #(
3278 *)
3279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3280 ;;
3281 esac |
3282 sort
3283)
3284 echo
3285
cristy98dddb52010-11-04 00:30:15 +00003286 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003287## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003288## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003289 echo
3290 for ac_var in $ac_subst_vars
3291 do
3292 eval ac_val=\$$ac_var
3293 case $ac_val in
3294 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3295 esac
3296 $as_echo "$ac_var='\''$ac_val'\''"
3297 done | sort
3298 echo
3299
3300 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003301 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003302## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003303## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003304 echo
3305 for ac_var in $ac_subst_files
3306 do
3307 eval ac_val=\$$ac_var
3308 case $ac_val in
3309 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3310 esac
3311 $as_echo "$ac_var='\''$ac_val'\''"
3312 done | sort
3313 echo
3314 fi
3315
3316 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003317 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003318## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003319## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003320 echo
3321 cat confdefs.h
3322 echo
3323 fi
3324 test "$ac_signal" != 0 &&
3325 $as_echo "$as_me: caught signal $ac_signal"
3326 $as_echo "$as_me: exit $exit_status"
3327 } >&5
3328 rm -f core *.core core.conftest.* &&
3329 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3330 exit $exit_status
3331' 0
3332for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003333 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003334done
3335ac_signal=0
3336
3337# confdefs.h avoids OS command line length limits that DEFS can exceed.
3338rm -f -r conftest* confdefs.h
3339
cristy8b350f62009-11-15 23:12:43 +00003340$as_echo "/* confdefs.h */" > confdefs.h
3341
cristy3ed852e2009-09-05 21:47:34 +00003342# Predefined preprocessor variables.
3343
3344cat >>confdefs.h <<_ACEOF
3345#define PACKAGE_NAME "$PACKAGE_NAME"
3346_ACEOF
3347
cristy3ed852e2009-09-05 21:47:34 +00003348cat >>confdefs.h <<_ACEOF
3349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3350_ACEOF
3351
cristy3ed852e2009-09-05 21:47:34 +00003352cat >>confdefs.h <<_ACEOF
3353#define PACKAGE_VERSION "$PACKAGE_VERSION"
3354_ACEOF
3355
cristy3ed852e2009-09-05 21:47:34 +00003356cat >>confdefs.h <<_ACEOF
3357#define PACKAGE_STRING "$PACKAGE_STRING"
3358_ACEOF
3359
cristy3ed852e2009-09-05 21:47:34 +00003360cat >>confdefs.h <<_ACEOF
3361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3362_ACEOF
3363
cristy8b350f62009-11-15 23:12:43 +00003364cat >>confdefs.h <<_ACEOF
3365#define PACKAGE_URL "$PACKAGE_URL"
3366_ACEOF
3367
cristy3ed852e2009-09-05 21:47:34 +00003368
3369# Let the site file select an alternate cache file if it wants to.
3370# Prefer an explicitly selected file to automatically selected ones.
3371ac_site_file1=NONE
3372ac_site_file2=NONE
3373if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003374 # We do not want a PATH search for config.site.
3375 case $CONFIG_SITE in #((
3376 -*) ac_site_file1=./$CONFIG_SITE;;
3377 */*) ac_site_file1=$CONFIG_SITE;;
3378 *) ac_site_file1=./$CONFIG_SITE;;
3379 esac
cristy3ed852e2009-09-05 21:47:34 +00003380elif test "x$prefix" != xNONE; then
3381 ac_site_file1=$prefix/share/config.site
3382 ac_site_file2=$prefix/etc/config.site
3383else
3384 ac_site_file1=$ac_default_prefix/share/config.site
3385 ac_site_file2=$ac_default_prefix/etc/config.site
3386fi
3387for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3388do
3389 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003390 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003391 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003392$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3393 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003394 . "$ac_site_file" \
3395 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397as_fn_error $? "failed to load site script $ac_site_file
3398See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003399 fi
3400done
3401
3402if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003403 # Some versions of bash will fail to source /dev/null (special files
3404 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3405 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003406 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003407$as_echo "$as_me: loading cache $cache_file" >&6;}
3408 case $cache_file in
3409 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3410 *) . "./$cache_file";;
3411 esac
3412 fi
3413else
cristy8b350f62009-11-15 23:12:43 +00003414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003415$as_echo "$as_me: creating cache $cache_file" >&6;}
3416 >$cache_file
3417fi
3418
cristycd4c5312009-11-22 01:19:08 +00003419as_fn_append ac_header_list " stdlib.h"
3420as_fn_append ac_header_list " unistd.h"
3421as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003422# Check that the precious variables saved in the cache have kept the same
3423# value.
3424ac_cache_corrupted=false
3425for ac_var in $ac_precious_vars; do
3426 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3427 eval ac_new_set=\$ac_env_${ac_var}_set
3428 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3429 eval ac_new_val=\$ac_env_${ac_var}_value
3430 case $ac_old_set,$ac_new_set in
3431 set,)
cristy8b350f62009-11-15 23:12:43 +00003432 { $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 +00003433$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3434 ac_cache_corrupted=: ;;
3435 ,set)
cristy8b350f62009-11-15 23:12:43 +00003436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003437$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3438 ac_cache_corrupted=: ;;
3439 ,);;
3440 *)
3441 if test "x$ac_old_val" != "x$ac_new_val"; then
3442 # differences in whitespace do not lead to failure.
3443 ac_old_val_w=`echo x $ac_old_val`
3444 ac_new_val_w=`echo x $ac_new_val`
3445 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003447$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3448 ac_cache_corrupted=:
3449 else
cristy8b350f62009-11-15 23:12:43 +00003450 { $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 +00003451$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3452 eval $ac_var=\$ac_old_val
3453 fi
cristy8b350f62009-11-15 23:12:43 +00003454 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003455$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003456 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003457$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3458 fi;;
3459 esac
3460 # Pass precious variables to config.status.
3461 if test "$ac_new_set" = set; then
3462 case $ac_new_val in
3463 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3464 *) ac_arg=$ac_var=$ac_new_val ;;
3465 esac
3466 case " $ac_configure_args " in
3467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003468 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003469 esac
3470 fi
3471done
3472if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003476$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003477 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003478fi
cristy8b350f62009-11-15 23:12:43 +00003479## -------------------- ##
3480## Main body of script. ##
3481## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003482
3483ac_ext=c
3484ac_cpp='$CPP $CPPFLAGS'
3485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488
3489
3490
3491ac_aux_dir=
3492for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003493 if test -f "$ac_dir/install-sh"; then
3494 ac_aux_dir=$ac_dir
3495 ac_install_sh="$ac_aux_dir/install-sh -c"
3496 break
3497 elif 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/shtool"; then
3502 ac_aux_dir=$ac_dir
3503 ac_install_sh="$ac_aux_dir/shtool install -c"
3504 break
3505 fi
cristy3ed852e2009-09-05 21:47:34 +00003506done
3507if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003508 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003509fi
3510
3511# These three variables are undocumented and unsupported,
3512# and are intended to be withdrawn in a future Autoconf release.
3513# They can cause serious problems if a builder's source tree is in a directory
3514# whose full name contains unusual characters.
3515ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3516ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3517ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3518
3519
3520
3521
3522ac_config_headers="$ac_config_headers config/config.h"
3523
cristy24fc1fe2010-10-23 21:13:01 +00003524
cristy01ff9f32012-12-01 18:15:29 +00003525ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003526
cristy8d0ff762013-03-10 20:33:28 +00003527ac_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 +00003528
3529
3530#
3531# Save initial user-tunable values
3532#
3533USER_LIBS=$LIBS
3534for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3535 eval isset=\${$var+set}
3536 if test "$isset" = 'set'; then
3537 eval val=$`echo $var`
3538 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3539 fi
3540done
3541
3542
3543CONFIGURE_ARGS="$0 ${ac_configure_args}"
3544
3545
3546# Source file containing package/library versioning information.
3547. ${srcdir}/version.sh
3548
cristy15a88782010-01-31 23:24:49 +00003549echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003550# Make sure we can run config.sub.
3551$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003552 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003553
cristy8b350f62009-11-15 23:12:43 +00003554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003555$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003556if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003557 $as_echo_n "(cached) " >&6
3558else
3559 ac_build_alias=$build_alias
3560test "x$ac_build_alias" = x &&
3561 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3562test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003563 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003564ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003565 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003566
3567fi
cristy8b350f62009-11-15 23:12:43 +00003568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003569$as_echo "$ac_cv_build" >&6; }
3570case $ac_cv_build in
3571*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003572*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003573esac
3574build=$ac_cv_build
3575ac_save_IFS=$IFS; IFS='-'
3576set x $ac_cv_build
3577shift
3578build_cpu=$1
3579build_vendor=$2
3580shift; shift
3581# Remember, the first character of IFS is used to create $*,
3582# except with old shells:
3583build_os=$*
3584IFS=$ac_save_IFS
3585case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3586
3587
cristy8b350f62009-11-15 23:12:43 +00003588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003589$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003590if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003591 $as_echo_n "(cached) " >&6
3592else
3593 if test "x$host_alias" = x; then
3594 ac_cv_host=$ac_cv_build
3595else
3596 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003597 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003598fi
3599
3600fi
cristy8b350f62009-11-15 23:12:43 +00003601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003602$as_echo "$ac_cv_host" >&6; }
3603case $ac_cv_host in
3604*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003605*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003606esac
3607host=$ac_cv_host
3608ac_save_IFS=$IFS; IFS='-'
3609set x $ac_cv_host
3610shift
3611host_cpu=$1
3612host_vendor=$2
3613shift; shift
3614# Remember, the first character of IFS is used to create $*,
3615# except with old shells:
3616host_os=$*
3617IFS=$ac_save_IFS
3618case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3619
3620
cristy8b350f62009-11-15 23:12:43 +00003621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003622$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003623if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003624 $as_echo_n "(cached) " >&6
3625else
3626 if test "x$target_alias" = x; then
3627 ac_cv_target=$ac_cv_host
3628else
3629 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003630 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003631fi
3632
3633fi
cristy8b350f62009-11-15 23:12:43 +00003634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003635$as_echo "$ac_cv_target" >&6; }
3636case $ac_cv_target in
3637*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003638*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003639esac
3640target=$ac_cv_target
3641ac_save_IFS=$IFS; IFS='-'
3642set x $ac_cv_target
3643shift
3644target_cpu=$1
3645target_vendor=$2
3646shift; shift
3647# Remember, the first character of IFS is used to create $*,
3648# except with old shells:
3649target_os=$*
3650IFS=$ac_save_IFS
3651case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3652
3653
3654# The aliases save the names the user supplied, while $host etc.
3655# will get canonicalized.
3656test -n "$target_alias" &&
3657 test "$program_prefix$program_suffix$program_transform_name" = \
3658 NONENONEs,x,x, &&
3659 program_prefix=${target_alias}-
3660
cristy837d6dc2010-02-27 01:16:57 +00003661
3662
3663
cristy8be34142012-06-17 14:07:18 +00003664
cristy19615b82011-04-13 20:02:01 +00003665MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003666
3667
cristy27d53d62012-07-29 23:30:07 +00003668cat >>confdefs.h <<_ACEOF
3669#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3670_ACEOF
3671
3672
cristy19615b82011-04-13 20:02:01 +00003673MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003674
3675
cristy27d53d62012-07-29 23:30:07 +00003676cat >>confdefs.h <<_ACEOF
3677#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3678_ACEOF
3679
3680
cristy19615b82011-04-13 20:02:01 +00003681MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003682
3683
cristy27d53d62012-07-29 23:30:07 +00003684cat >>confdefs.h <<_ACEOF
3685#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3686_ACEOF
3687
3688
cristy37442762013-02-10 21:07:23 +00003689
3690# Substitute versioning
3691MAGICK_MAJOR_VERSION=7
3692
3693MAGICK_MINOR_VERSION=0
3694
3695MAGICK_MICRO_VERSION=0
3696
3697MAGICK_PATCHLEVEL_VERSION=0
3698
3699MAGICK_VERSION=7.0.0-0
3700
cristy17491be2014-06-24 01:10:53 +00003701MAGICK_SVN_REVISION=16049:16055M
cristy37442762013-02-10 21:07:23 +00003702
3703
cristy3ed852e2009-09-05 21:47:34 +00003704# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003705MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3706
3707MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3708
cristy37442762013-02-10 21:07:23 +00003709
cristy5ed9c6e2013-07-14 21:20:31 +00003710MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3711
3712MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3713
3714
cristyd694ca32011-03-27 21:42:54 +00003715
cristy3ed852e2009-09-05 21:47:34 +00003716# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3718$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003719# Reject unsafe characters in $srcdir or the absolute working directory
3720# name. Accept space and tab only in the latter.
3721am_lf='
3722'
3723case `pwd` in
3724 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003725 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003726esac
3727case $srcdir in
3728 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003729 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003730esac
cristy3ed852e2009-09-05 21:47:34 +00003731
cristyc0890a62012-07-19 00:18:20 +00003732# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003733# arguments. Must try -L first in case configure is actually a
3734# symlink; some systems play weird games with the mod time of symlinks
3735# (eg FreeBSD returns the mod time of the symlink's containing
3736# directory).
3737if (
cristyc0890a62012-07-19 00:18:20 +00003738 am_has_slept=no
3739 for am_try in 1 2; do
3740 echo "timestamp, slept: $am_has_slept" > conftest.file
3741 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3742 if test "$*" = "X"; then
3743 # -L didn't work.
3744 set X `ls -t "$srcdir/configure" conftest.file`
3745 fi
3746 if test "$*" != "X $srcdir/configure conftest.file" \
3747 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003748
cristyc0890a62012-07-19 00:18:20 +00003749 # If neither matched, then we have a broken ls. This can happen
3750 # if, for instance, CONFIG_SHELL is bash and it inherits a
3751 # broken ls alias from the environment. This has actually
3752 # happened. Such a system could not be considered "sane".
3753 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3754 alias in your environment" "$LINENO" 5
3755 fi
3756 if test "$2" = conftest.file || test $am_try -eq 2; then
3757 break
3758 fi
3759 # Just in case.
3760 sleep 1
3761 am_has_slept=yes
3762 done
cristy73bd4a52010-10-05 11:24:23 +00003763 test "$2" = conftest.file
3764 )
3765then
3766 # Ok.
3767 :
3768else
cristy98dddb52010-11-04 00:30:15 +00003769 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003770Check your system clock" "$LINENO" 5
3771fi
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3773$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003774# If we didn't sleep, we still need to ensure time stamps of config.status and
3775# generated files are strictly newer.
3776am_sleep_pid=
3777if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3778 ( sleep 1 ) &
3779 am_sleep_pid=$!
3780fi
cristy73bd4a52010-10-05 11:24:23 +00003781
cristyc0890a62012-07-19 00:18:20 +00003782rm -f conftest.file
3783
3784
cristya5bda012013-11-03 18:05:38 +00003785am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003786
3787# Find a good install program. We prefer a C program (faster),
3788# so one script is as good as another. But avoid the broken or
3789# incompatible versions:
3790# SysV /etc/install, /usr/sbin/install
3791# SunOS /usr/etc/install
3792# IRIX /sbin/install
3793# AIX /bin/install
3794# AmigaOS /C/install, which installs bootblocks on floppy discs
3795# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3796# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3797# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3798# OS/2's system install, which has a completely different semantic
3799# ./install, which can be erroneously created by make from ./install.sh.
3800# Reject install programs that cannot install multiple files.
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3802$as_echo_n "checking for a BSD-compatible install... " >&6; }
3803if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003804if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003805 $as_echo_n "(cached) " >&6
3806else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 # Account for people who put trailing slashes in PATH elements.
3813case $as_dir/ in #((
3814 ./ | .// | /[cC]/* | \
3815 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3816 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3817 /usr/ucb/* ) ;;
3818 *)
3819 # OSF1 and SCO ODT 3.0 have their own names for install.
3820 # Don't use installbsd from OSF since it installs stuff as root
3821 # by default.
3822 for ac_prog in ginstall scoinst install; do
3823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003824 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003825 if test $ac_prog = install &&
3826 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3827 # AIX install. It has an incompatible calling convention.
3828 :
3829 elif test $ac_prog = install &&
3830 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3831 # program-specific install script used by HP pwplus--don't use.
3832 :
3833 else
3834 rm -rf conftest.one conftest.two conftest.dir
3835 echo one > conftest.one
3836 echo two > conftest.two
3837 mkdir conftest.dir
3838 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3839 test -s conftest.one && test -s conftest.two &&
3840 test -s conftest.dir/conftest.one &&
3841 test -s conftest.dir/conftest.two
3842 then
3843 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3844 break 3
3845 fi
3846 fi
3847 fi
3848 done
3849 done
3850 ;;
3851esac
3852
3853 done
3854IFS=$as_save_IFS
3855
3856rm -rf conftest.one conftest.two conftest.dir
3857
3858fi
3859 if test "${ac_cv_path_install+set}" = set; then
3860 INSTALL=$ac_cv_path_install
3861 else
3862 # As a last resort, use the slow shell script. Don't cache a
3863 # value for INSTALL within a source directory, because that will
3864 # break other packages using the cache if that directory is
3865 # removed, or if the value is a relative name.
3866 INSTALL=$ac_install_sh
3867 fi
3868fi
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3870$as_echo "$INSTALL" >&6; }
3871
3872# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3873# It thinks the first close brace ends the variable substitution.
3874test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3875
3876test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3877
3878test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3879
3880test "$program_prefix" != NONE &&
3881 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3882# Use a double $ so make ignores it.
3883test "$program_suffix" != NONE &&
3884 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3885# Double any \ or $.
3886# By default was `s,x,x', remove it if useless.
3887ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3888program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3889
3890# expand $ac_aux_dir to an absolute path
3891am_aux_dir=`cd $ac_aux_dir && pwd`
3892
3893if test x"${MISSING+set}" != xset; then
3894 case $am_aux_dir in
3895 *\ * | *\ *)
3896 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3897 *)
3898 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3899 esac
3900fi
3901# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003902if eval "$MISSING --is-lightweight"; then
3903 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003904else
3905 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3907$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003908fi
3909
3910if test x"${install_sh}" != xset; then
3911 case $am_aux_dir in
3912 *\ * | *\ *)
3913 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3914 *)
3915 install_sh="\${SHELL} $am_aux_dir/install-sh"
3916 esac
3917fi
3918
cristyc0890a62012-07-19 00:18:20 +00003919# Installed binaries are usually stripped using 'strip' when the user
3920# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003921# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003922# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003923if test "$cross_compiling" != no; then
3924 if test -n "$ac_tool_prefix"; then
3925 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3926set dummy ${ac_tool_prefix}strip; ac_word=$2
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003929if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003930 $as_echo_n "(cached) " >&6
3931else
3932 if test -n "$STRIP"; then
3933 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003942 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946done
3947 done
3948IFS=$as_save_IFS
3949
3950fi
3951fi
3952STRIP=$ac_cv_prog_STRIP
3953if test -n "$STRIP"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3955$as_echo "$STRIP" >&6; }
3956else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958$as_echo "no" >&6; }
3959fi
3960
3961
3962fi
3963if test -z "$ac_cv_prog_STRIP"; then
3964 ac_ct_STRIP=$STRIP
3965 # Extract the first word of "strip", so it can be a program name with args.
3966set dummy strip; ac_word=$2
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003969if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003970 $as_echo_n "(cached) " >&6
3971else
3972 if test -n "$ac_ct_STRIP"; then
3973 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3974else
3975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976for as_dir in $PATH
3977do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003982 ac_cv_prog_ac_ct_STRIP="strip"
3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 break 2
3985 fi
3986done
3987 done
3988IFS=$as_save_IFS
3989
3990fi
3991fi
3992ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3993if test -n "$ac_ct_STRIP"; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3995$as_echo "$ac_ct_STRIP" >&6; }
3996else
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998$as_echo "no" >&6; }
3999fi
4000
4001 if test "x$ac_ct_STRIP" = x; then
4002 STRIP=":"
4003 else
4004 case $cross_compiling:$ac_tool_warned in
4005yes:)
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4008ac_tool_warned=yes ;;
4009esac
4010 STRIP=$ac_ct_STRIP
4011 fi
4012else
4013 STRIP="$ac_cv_prog_STRIP"
4014fi
4015
4016fi
4017INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4018
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4020$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4021if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004022 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004023 $as_echo_n "(cached) " >&6
4024else
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4027do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_prog in mkdir gmkdir; do
4031 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004032 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004033 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4034 'mkdir (GNU coreutils) '* | \
4035 'mkdir (coreutils) '* | \
4036 'mkdir (fileutils) '4.1*)
4037 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4038 break 3;;
4039 esac
4040 done
4041 done
4042 done
4043IFS=$as_save_IFS
4044
4045fi
4046
4047 test -d ./--version && rmdir ./--version
4048 if test "${ac_cv_path_mkdir+set}" = set; then
4049 MKDIR_P="$ac_cv_path_mkdir -p"
4050 else
4051 # As a last resort, use the slow shell script. Don't cache a
4052 # value for MKDIR_P within a source directory, because that will
4053 # break other packages using the cache if that directory is
4054 # removed, or if the value is a relative name.
4055 MKDIR_P="$ac_install_sh -d"
4056 fi
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4059$as_echo "$MKDIR_P" >&6; }
4060
cristy73bd4a52010-10-05 11:24:23 +00004061for ac_prog in gawk mawk nawk awk
4062do
4063 # Extract the first word of "$ac_prog", so it can be a program name with args.
4064set dummy $ac_prog; ac_word=$2
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004067if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004068 $as_echo_n "(cached) " >&6
4069else
4070 if test -n "$AWK"; then
4071 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4072else
4073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH
4075do
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004080 ac_cv_prog_AWK="$ac_prog"
4081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 break 2
4083 fi
4084done
4085 done
4086IFS=$as_save_IFS
4087
4088fi
4089fi
4090AWK=$ac_cv_prog_AWK
4091if test -n "$AWK"; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4093$as_echo "$AWK" >&6; }
4094else
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096$as_echo "no" >&6; }
4097fi
4098
4099
4100 test -n "$AWK" && break
4101done
4102
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4104$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4105set x ${MAKE-make}
4106ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004107if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004108 $as_echo_n "(cached) " >&6
4109else
4110 cat >conftest.make <<\_ACEOF
4111SHELL = /bin/sh
4112all:
4113 @echo '@@@%%%=$(MAKE)=@@@%%%'
4114_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004115# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004116case `${MAKE-make} -f conftest.make 2>/dev/null` in
4117 *@@@%%%=?*=@@@%%%*)
4118 eval ac_cv_prog_make_${ac_make}_set=yes;;
4119 *)
4120 eval ac_cv_prog_make_${ac_make}_set=no;;
4121esac
4122rm -f conftest.make
4123fi
4124if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4126$as_echo "yes" >&6; }
4127 SET_MAKE=
4128else
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130$as_echo "no" >&6; }
4131 SET_MAKE="MAKE=${MAKE-make}"
4132fi
4133
4134rm -rf .tst 2>/dev/null
4135mkdir .tst 2>/dev/null
4136if test -d .tst; then
4137 am__leading_dot=.
4138else
4139 am__leading_dot=_
4140fi
4141rmdir .tst 2>/dev/null
4142
cristya448bd22011-10-14 12:38:13 +00004143# Check whether --enable-silent-rules was given.
4144if test "${enable_silent_rules+set}" = set; then :
4145 enableval=$enable_silent_rules;
4146fi
4147
cristyc0890a62012-07-19 00:18:20 +00004148case $enable_silent_rules in # (((
4149 yes) AM_DEFAULT_VERBOSITY=0;;
4150 no) AM_DEFAULT_VERBOSITY=1;;
4151 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004152esac
cristyc3fb77b2012-02-06 01:49:41 +00004153am_make=${MAKE-make}
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4155$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4156if ${am_cv_make_support_nested_variables+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158else
4159 if $as_echo 'TRUE=$(BAR$(V))
4160BAR0=false
4161BAR1=true
4162V=1
4163am__doit:
4164 @$(TRUE)
4165.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4166 am_cv_make_support_nested_variables=yes
4167else
4168 am_cv_make_support_nested_variables=no
4169fi
4170fi
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4172$as_echo "$am_cv_make_support_nested_variables" >&6; }
4173if test $am_cv_make_support_nested_variables = yes; then
4174 AM_V='$(V)'
4175 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4176else
4177 AM_V=$AM_DEFAULT_VERBOSITY
4178 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4179fi
cristya448bd22011-10-14 12:38:13 +00004180AM_BACKSLASH='\'
4181
cristy73bd4a52010-10-05 11:24:23 +00004182if test "`cd $srcdir && pwd`" != "`pwd`"; then
4183 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4184 # is not polluted with repeated "-I."
4185 am__isrc=' -I$(srcdir)'
4186 # test to see if srcdir already configured
4187 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004188 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004189 fi
4190fi
4191
4192# test whether we have cygpath
4193if test -z "$CYGPATH_W"; then
4194 if (cygpath --version) >/dev/null 2>/dev/null; then
4195 CYGPATH_W='cygpath -w'
4196 else
4197 CYGPATH_W=echo
4198 fi
4199fi
4200
4201
4202# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004203 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004204 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004205
4206
cristya448bd22011-10-14 12:38:13 +00004207cat >>confdefs.h <<_ACEOF
4208#define PACKAGE "$PACKAGE"
4209_ACEOF
4210
4211
4212cat >>confdefs.h <<_ACEOF
4213#define VERSION "$VERSION"
4214_ACEOF
4215
cristy73bd4a52010-10-05 11:24:23 +00004216# Some tools Automake needs.
4217
4218ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4219
4220
4221AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4222
4223
4224AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4225
4226
4227AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4228
4229
4230MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4231
cristyc0890a62012-07-19 00:18:20 +00004232# For better backward compatibility. To be removed once Automake 1.9.x
4233# dies out for good. For more background, see:
4234# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4235# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4236mkdir_p='$(MKDIR_P)'
4237
cristy73bd4a52010-10-05 11:24:23 +00004238# We need awk for the "check" target. The system "awk" is bad on
4239# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004240# Always define AMTAR for backward compatibility. Yes, it's still used
4241# in the wild :-( We should find a proper way to deprecate it ...
4242AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004243
cristye69bdbe2013-05-03 21:40:44 +00004244
4245# We'll loop over all known methods to create a tar archive until one works.
4246_am_tools='gnutar pax cpio none'
4247
cristyc3fb77b2012-02-06 01:49:41 +00004248am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004249
4250
4251
4252
4253
cristy3ed852e2009-09-05 21:47:34 +00004254
cristya5bda012013-11-03 18:05:38 +00004255# POSIX will say in a future version that running "rm -f" with no argument
4256# is OK; and we want to be able to make that assumption in our Makefile
4257# recipes. So use an aggressive probe to check that the usage we want is
4258# actually supported "in the wild" to an acceptable degree.
4259# See automake bug#10828.
4260# To make any issue more visible, cause the running configure to be aborted
4261# by default if the 'rm' program in use doesn't match our expectations; the
4262# user can still override this though.
4263if rm -f && rm -fr && rm -rf; then : OK; else
4264 cat >&2 <<'END'
4265Oops!
4266
4267Your 'rm' program seems unable to run without file operands specified
4268on the command line, even when the '-f' option is present. This is contrary
4269to the behaviour of most rm programs out there, and not conforming with
4270the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4271
4272Please tell bug-automake@gnu.org about your system, including the value
4273of your $PATH and any error possibly output before this message. This
4274can help us improve future automake versions.
4275
4276END
4277 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4278 echo 'Configuration will proceed anyway, since you have set the' >&2
4279 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4280 echo >&2
4281 else
4282 cat >&2 <<'END'
4283Aborting the configuration process, to ensure you take notice of the issue.
4284
4285You can download and install GNU coreutils to get an 'rm' implementation
4286that behaves properly: <http://www.gnu.org/software/coreutils/>.
4287
4288If you want to complete the configuration process using your problematic
4289'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4290to "yes", and re-run configure.
4291
4292END
4293 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4294 fi
4295fi
cristye69bdbe2013-05-03 21:40:44 +00004296
cristy3ed852e2009-09-05 21:47:34 +00004297# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004298# Check whether --enable-silent-rules was given.
4299if test "${enable_silent_rules+set}" = set; then :
4300 enableval=$enable_silent_rules;
4301fi
4302
cristyc0890a62012-07-19 00:18:20 +00004303case $enable_silent_rules in # (((
4304 yes) AM_DEFAULT_VERBOSITY=0;;
4305 no) AM_DEFAULT_VERBOSITY=1;;
4306 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004307esac
cristyc3fb77b2012-02-06 01:49:41 +00004308am_make=${MAKE-make}
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4310$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4311if ${am_cv_make_support_nested_variables+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313else
4314 if $as_echo 'TRUE=$(BAR$(V))
4315BAR0=false
4316BAR1=true
4317V=1
4318am__doit:
4319 @$(TRUE)
4320.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4321 am_cv_make_support_nested_variables=yes
4322else
4323 am_cv_make_support_nested_variables=no
4324fi
4325fi
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4327$as_echo "$am_cv_make_support_nested_variables" >&6; }
4328if test $am_cv_make_support_nested_variables = yes; then
4329 AM_V='$(V)'
4330 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4331else
4332 AM_V=$AM_DEFAULT_VERBOSITY
4333 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4334fi
cristy73bd4a52010-10-05 11:24:23 +00004335AM_BACKSLASH='\'
4336
cristy3ed852e2009-09-05 21:47:34 +00004337
cristy5ed9c6e2013-07-14 21:20:31 +00004338# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004339MAGICK_LIB_VERSION="0x"
4340if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4341 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4342fi
4343MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4344if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4345 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4346fi
4347MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4348if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4349 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4350fi
4351MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4352
4353
4354# Definition used to define MagickLibVersionText in version.h
4355MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4356
4357
4358# Definition used to define MagickLibVersionNumber in version.h
4359MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4360
4361
cristy5ed9c6e2013-07-14 21:20:31 +00004362MAGICKPP_LIB_VERSION="0x"
4363if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4364 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4365fi
4366MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4367if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4368 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4369fi
4370MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4371if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4372 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4373fi
4374MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4375
4376
4377# Definition used to define MagickLibVersionText in version.h
4378MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4379
4380
4381# Definition used to define MagickLibVersionNumber in version.h
4382MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4383
4384
4385
4386
cristy3ed852e2009-09-05 21:47:34 +00004387# Regenerate config.status if ChangeLog or version.sh is updated.
4388CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4389
4390
4391PERLMAINCC=$CC
4392
4393MAGICK_CFLAGS=''
4394MAGICK_CPPFLAGS=$CPPFLAGS_USER
4395MAGICK_PCFLAGS=$CPPFLAGS_USER
4396MAGICK_LDFLAGS=''
4397MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004398MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004399
4400#
4401# Evaluate shell variable equivalents to Makefile directory variables
4402#
4403if test "x$prefix" = xNONE; then
4404 prefix=$ac_default_prefix
4405fi
4406# Let make expand exec_prefix.
4407if test "x$exec_prefix" = xNONE; then
4408 exec_prefix='${prefix}'
4409fi
4410
4411#
4412eval "eval PREFIX_DIR=${prefix}"
4413
4414eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4415
4416eval "eval BIN_DIR=$bindir"
4417
4418eval "eval SBIN_DIR=$sbindir"
4419
4420eval "eval LIBEXEC_DIR=$libexecdir"
4421
4422eval "eval DATA_DIR=$datadir"
4423
cristy4e65ec22012-04-08 01:33:27 +00004424eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004425
cristy3ed852e2009-09-05 21:47:34 +00004426eval "eval SYSCONF_DIR=$sysconfdir"
4427
4428eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4429
4430eval "eval LOCALSTATE_DIR=$localstatedir"
4431
4432eval "eval LIB_DIR=$libdir"
4433
4434eval "eval INCLUDE_DIR=$includedir"
4435
4436eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4437
4438eval "eval INFO_DIR=$infodir"
4439
4440eval "eval MAN_DIR=$mandir"
4441
4442
4443# Get full paths to source and build directories
4444srcdirfull="`cd $srcdir && pwd`"
4445builddir="`pwd`"
4446
4447#
4448# Compute variables useful for running uninstalled software.
4449#
4450MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4451MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4452MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4453MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4454DIRSEP=':'
4455case "${build_os}" in
4456 mingw* )
4457 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4458 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4459 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4460 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4461 DIRSEP=';'
4462 ;;
4463esac
4464case "${host_os}" in
4465 mingw* )
4466 DIRSEP=';'
4467 ;;
4468esac
4469
4470
4471
4472
4473
4474
cristya0b81c32010-01-22 02:54:33 +00004475
4476#
4477# Enable OS features.
4478#
cristy73bd4a52010-10-05 11:24:23 +00004479DEPDIR="${am__leading_dot}deps"
4480
4481ac_config_commands="$ac_config_commands depfiles"
4482
4483
4484am_make=${MAKE-make}
4485cat > confinc << 'END'
4486am__doit:
4487 @echo this is the am__doit target
4488.PHONY: am__doit
4489END
4490# If we don't find an include directive, just comment out the code.
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4492$as_echo_n "checking for style of include used by $am_make... " >&6; }
4493am__include="#"
4494am__quote=
4495_am_result=none
4496# First try GNU make style include.
4497echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004498# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004499case `$am_make -s -f confmf 2> /dev/null` in #(
4500*the\ am__doit\ target*)
4501 am__include=include
4502 am__quote=
4503 _am_result=GNU
4504 ;;
4505esac
4506# Now try BSD make style include.
4507if test "$am__include" = "#"; then
4508 echo '.include "confinc"' > confmf
4509 case `$am_make -s -f confmf 2> /dev/null` in #(
4510 *the\ am__doit\ target*)
4511 am__include=.include
4512 am__quote="\""
4513 _am_result=BSD
4514 ;;
4515 esac
4516fi
4517
4518
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4520$as_echo "$_am_result" >&6; }
4521rm -f confinc confmf
4522
4523# Check whether --enable-dependency-tracking was given.
4524if test "${enable_dependency_tracking+set}" = set; then :
4525 enableval=$enable_dependency_tracking;
4526fi
4527
4528if test "x$enable_dependency_tracking" != xno; then
4529 am_depcomp="$ac_aux_dir/depcomp"
4530 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004531 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004532fi
4533 if test "x$enable_dependency_tracking" != xno; then
4534 AMDEP_TRUE=
4535 AMDEP_FALSE='#'
4536else
4537 AMDEP_TRUE='#'
4538 AMDEP_FALSE=
4539fi
4540
4541
cristy3ed852e2009-09-05 21:47:34 +00004542ac_ext=c
4543ac_cpp='$CPP $CPPFLAGS'
4544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547if test -n "$ac_tool_prefix"; then
4548 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4549set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004551$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004552if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004553 $as_echo_n "(cached) " >&6
4554else
4555 if test -n "$CC"; then
4556 ac_cv_prog_CC="$CC" # Let the user override the test.
4557else
4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004563 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004565 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004567 break 2
4568 fi
4569done
cristy8b350f62009-11-15 23:12:43 +00004570 done
cristy3ed852e2009-09-05 21:47:34 +00004571IFS=$as_save_IFS
4572
4573fi
4574fi
4575CC=$ac_cv_prog_CC
4576if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004578$as_echo "$CC" >&6; }
4579else
cristy8b350f62009-11-15 23:12:43 +00004580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004581$as_echo "no" >&6; }
4582fi
4583
4584
4585fi
4586if test -z "$ac_cv_prog_CC"; then
4587 ac_ct_CC=$CC
4588 # Extract the first word of "gcc", so it can be a program name with args.
4589set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004592if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004593 $as_echo_n "(cached) " >&6
4594else
4595 if test -n "$ac_ct_CC"; then
4596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004605 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004607 break 2
4608 fi
4609done
cristy8b350f62009-11-15 23:12:43 +00004610 done
cristy3ed852e2009-09-05 21:47:34 +00004611IFS=$as_save_IFS
4612
4613fi
4614fi
4615ac_ct_CC=$ac_cv_prog_ac_ct_CC
4616if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004618$as_echo "$ac_ct_CC" >&6; }
4619else
cristy8b350f62009-11-15 23:12:43 +00004620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004621$as_echo "no" >&6; }
4622fi
4623
4624 if test "x$ac_ct_CC" = x; then
4625 CC=""
4626 else
4627 case $cross_compiling:$ac_tool_warned in
4628yes:)
cristy8b350f62009-11-15 23:12:43 +00004629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4631ac_tool_warned=yes ;;
4632esac
4633 CC=$ac_ct_CC
4634 fi
4635else
4636 CC="$ac_cv_prog_CC"
4637fi
4638
4639if test -z "$CC"; then
4640 if test -n "$ac_tool_prefix"; then
4641 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4642set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004644$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004645if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004646 $as_echo_n "(cached) " >&6
4647else
4648 if test -n "$CC"; then
4649 ac_cv_prog_CC="$CC" # Let the user override the test.
4650else
4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004656 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004658 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004660 break 2
4661 fi
4662done
cristy8b350f62009-11-15 23:12:43 +00004663 done
cristy3ed852e2009-09-05 21:47:34 +00004664IFS=$as_save_IFS
4665
4666fi
4667fi
4668CC=$ac_cv_prog_CC
4669if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004671$as_echo "$CC" >&6; }
4672else
cristy8b350f62009-11-15 23:12:43 +00004673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004674$as_echo "no" >&6; }
4675fi
4676
4677
4678 fi
4679fi
4680if test -z "$CC"; then
4681 # Extract the first word of "cc", so it can be a program name with args.
4682set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004684$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004685if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004686 $as_echo_n "(cached) " >&6
4687else
4688 if test -n "$CC"; then
4689 ac_cv_prog_CC="$CC" # Let the user override the test.
4690else
4691 ac_prog_rejected=no
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4700 ac_prog_rejected=yes
4701 continue
4702 fi
4703 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004705 break 2
4706 fi
4707done
cristy8b350f62009-11-15 23:12:43 +00004708 done
cristy3ed852e2009-09-05 21:47:34 +00004709IFS=$as_save_IFS
4710
4711if test $ac_prog_rejected = yes; then
4712 # We found a bogon in the path, so make sure we never use it.
4713 set dummy $ac_cv_prog_CC
4714 shift
4715 if test $# != 0; then
4716 # We chose a different compiler from the bogus one.
4717 # However, it has the same basename, so the bogon will be chosen
4718 # first if we set CC to just the basename; use the full file name.
4719 shift
4720 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4721 fi
4722fi
4723fi
4724fi
4725CC=$ac_cv_prog_CC
4726if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004728$as_echo "$CC" >&6; }
4729else
cristy8b350f62009-11-15 23:12:43 +00004730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004731$as_echo "no" >&6; }
4732fi
4733
4734
4735fi
4736if test -z "$CC"; then
4737 if test -n "$ac_tool_prefix"; then
4738 for ac_prog in cl.exe
4739 do
4740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4741set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004743$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004744if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004745 $as_echo_n "(cached) " >&6
4746else
4747 if test -n "$CC"; then
4748 ac_cv_prog_CC="$CC" # Let the user override the test.
4749else
4750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751for as_dir in $PATH
4752do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004759 break 2
4760 fi
4761done
cristy8b350f62009-11-15 23:12:43 +00004762 done
cristy3ed852e2009-09-05 21:47:34 +00004763IFS=$as_save_IFS
4764
4765fi
4766fi
4767CC=$ac_cv_prog_CC
4768if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004770$as_echo "$CC" >&6; }
4771else
cristy8b350f62009-11-15 23:12:43 +00004772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004773$as_echo "no" >&6; }
4774fi
4775
4776
4777 test -n "$CC" && break
4778 done
4779fi
4780if test -z "$CC"; then
4781 ac_ct_CC=$CC
4782 for ac_prog in cl.exe
4783do
4784 # Extract the first word of "$ac_prog", so it can be a program name with args.
4785set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004787$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004788if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004789 $as_echo_n "(cached) " >&6
4790else
4791 if test -n "$ac_ct_CC"; then
4792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4793else
4794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795for as_dir in $PATH
4796do
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004801 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004803 break 2
4804 fi
4805done
cristy8b350f62009-11-15 23:12:43 +00004806 done
cristy3ed852e2009-09-05 21:47:34 +00004807IFS=$as_save_IFS
4808
4809fi
4810fi
4811ac_ct_CC=$ac_cv_prog_ac_ct_CC
4812if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004814$as_echo "$ac_ct_CC" >&6; }
4815else
cristy8b350f62009-11-15 23:12:43 +00004816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004817$as_echo "no" >&6; }
4818fi
4819
4820
4821 test -n "$ac_ct_CC" && break
4822done
4823
4824 if test "x$ac_ct_CC" = x; then
4825 CC=""
4826 else
4827 case $cross_compiling:$ac_tool_warned in
4828yes:)
cristy8b350f62009-11-15 23:12:43 +00004829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831ac_tool_warned=yes ;;
4832esac
4833 CC=$ac_ct_CC
4834 fi
4835fi
4836
4837fi
4838
4839
cristy8b350f62009-11-15 23:12:43 +00004840test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004842as_fn_error $? "no acceptable C compiler found in \$PATH
4843See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004844
4845# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004846$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004847set X $ac_compile
4848ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004849for ac_option in --version -v -V -qversion; do
4850 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004851case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854esac
cristy8b350f62009-11-15 23:12:43 +00004855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4856$as_echo "$ac_try_echo"; } >&5
4857 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004858 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004859 if test -s conftest.err; then
4860 sed '10a\
4861... rest of stderr output deleted ...
4862 10q' conftest.err >conftest.er1
4863 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004864 fi
cristycd4c5312009-11-22 01:19:08 +00004865 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4867 test $ac_status = 0; }
4868done
cristy3ed852e2009-09-05 21:47:34 +00004869
cristy8b350f62009-11-15 23:12:43 +00004870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004871/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004872
cristy3ed852e2009-09-05 21:47:34 +00004873int
4874main ()
4875{
4876
4877 ;
4878 return 0;
4879}
4880_ACEOF
4881ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004882ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004883# Try to create an executable without -o first, disregard a.out.
4884# It will help us diagnose broken compilers, and finding out an intuition
4885# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4887$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004888ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4889
4890# The possible output files:
4891ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4892
4893ac_rmfiles=
4894for ac_file in $ac_files
4895do
4896 case $ac_file in
4897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4898 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4899 esac
4900done
4901rm -f $ac_rmfiles
4902
cristy8b350f62009-11-15 23:12:43 +00004903if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004904case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907esac
cristy8b350f62009-11-15 23:12:43 +00004908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4909$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004910 (eval "$ac_link_default") 2>&5
4911 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4913 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004914 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4915# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4916# in a Makefile. We should not override ac_cv_exeext if it was cached,
4917# so that the user can short-circuit this test for compilers unknown to
4918# Autoconf.
4919for ac_file in $ac_files ''
4920do
4921 test -f "$ac_file" || continue
4922 case $ac_file in
4923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4924 ;;
4925 [ab].out )
4926 # We found the default executable, but exeext='' is most
4927 # certainly right.
4928 break;;
4929 *.* )
cristy8b350f62009-11-15 23:12:43 +00004930 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004931 then :; else
4932 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4933 fi
4934 # We set ac_cv_exeext here because the later test for it is not
4935 # safe: cross compilers may not add the suffix if given an `-o'
4936 # argument, so we may need to know it at that point already.
4937 # Even if this section looks crufty: it has the advantage of
4938 # actually working.
4939 break;;
4940 * )
4941 break;;
4942 esac
4943done
4944test "$ac_cv_exeext" = no && ac_cv_exeext=
4945
4946else
4947 ac_file=''
4948fi
cristy8b350f62009-11-15 23:12:43 +00004949if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951$as_echo "no" >&6; }
4952$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004953sed 's/^/| /' conftest.$ac_ext >&5
4954
cristy8b350f62009-11-15 23:12:43 +00004955{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004957as_fn_error 77 "C compiler cannot create executables
4958See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004959else
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4961$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004962fi
cristycd4c5312009-11-22 01:19:08 +00004963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4964$as_echo_n "checking for C compiler default output file name... " >&6; }
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4966$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004967ac_exeext=$ac_cv_exeext
4968
cristycd4c5312009-11-22 01:19:08 +00004969rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004970ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004972$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004973if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004974case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977esac
cristy8b350f62009-11-15 23:12:43 +00004978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004980 (eval "$ac_link") 2>&5
4981 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4983 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004984 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4985# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4986# work properly (i.e., refer to `conftest.exe'), while it won't with
4987# `rm'.
4988for ac_file in conftest.exe conftest conftest.*; do
4989 test -f "$ac_file" || continue
4990 case $ac_file in
4991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4992 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4993 break;;
4994 * ) break;;
4995 esac
4996done
4997else
cristy8b350f62009-11-15 23:12:43 +00004998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005000as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5001See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005002fi
cristycd4c5312009-11-22 01:19:08 +00005003rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005005$as_echo "$ac_cv_exeext" >&6; }
5006
5007rm -f conftest.$ac_ext
5008EXEEXT=$ac_cv_exeext
5009ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011/* end confdefs.h. */
5012#include <stdio.h>
5013int
5014main ()
5015{
5016FILE *f = fopen ("conftest.out", "w");
5017 return ferror (f) || fclose (f) != 0;
5018
5019 ;
5020 return 0;
5021}
5022_ACEOF
5023ac_clean_files="$ac_clean_files conftest.out"
5024# Check that the compiler produces executables we can run. If not, either
5025# the compiler is broken, or we cross compile.
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5027$as_echo_n "checking whether we are cross compiling... " >&6; }
5028if test "$cross_compiling" != yes; then
5029 { { ac_try="$ac_link"
5030case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033esac
5034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5035$as_echo "$ac_try_echo"; } >&5
5036 (eval "$ac_link") 2>&5
5037 ac_status=$?
5038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5039 test $ac_status = 0; }
5040 if { ac_try='./conftest$ac_cv_exeext'
5041 { { case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044esac
5045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5046$as_echo "$ac_try_echo"; } >&5
5047 (eval "$ac_try") 2>&5
5048 ac_status=$?
5049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5050 test $ac_status = 0; }; }; then
5051 cross_compiling=no
5052 else
5053 if test "$cross_compiling" = maybe; then
5054 cross_compiling=yes
5055 else
5056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005058as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005059If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005060See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005061 fi
5062 fi
5063fi
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5065$as_echo "$cross_compiling" >&6; }
5066
5067rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5068ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005070$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005071if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005072 $as_echo_n "(cached) " >&6
5073else
cristy8b350f62009-11-15 23:12:43 +00005074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005075/* end confdefs.h. */
5076
5077int
5078main ()
5079{
5080
5081 ;
5082 return 0;
5083}
5084_ACEOF
5085rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005086if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005087case "(($ac_try" in
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5090esac
cristy8b350f62009-11-15 23:12:43 +00005091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5092$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005093 (eval "$ac_compile") 2>&5
5094 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5096 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005097 for ac_file in conftest.o conftest.obj conftest.*; do
5098 test -f "$ac_file" || continue;
5099 case $ac_file in
5100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5101 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5102 break;;
5103 esac
5104done
5105else
5106 $as_echo "$as_me: failed program was:" >&5
5107sed 's/^/| /' conftest.$ac_ext >&5
5108
cristy8b350f62009-11-15 23:12:43 +00005109{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005111as_fn_error $? "cannot compute suffix of object files: cannot compile
5112See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005113fi
cristy3ed852e2009-09-05 21:47:34 +00005114rm -f conftest.$ac_cv_objext conftest.$ac_ext
5115fi
cristy8b350f62009-11-15 23:12:43 +00005116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005117$as_echo "$ac_cv_objext" >&6; }
5118OBJEXT=$ac_cv_objext
5119ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005121$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005122if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005123 $as_echo_n "(cached) " >&6
5124else
cristy8b350f62009-11-15 23:12:43 +00005125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005126/* end confdefs.h. */
5127
5128int
5129main ()
5130{
5131#ifndef __GNUC__
5132 choke me
5133#endif
5134
5135 ;
5136 return 0;
5137}
5138_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005139if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005140 ac_compiler_gnu=yes
5141else
cristy8b350f62009-11-15 23:12:43 +00005142 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005143fi
cristy3ed852e2009-09-05 21:47:34 +00005144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145ac_cv_c_compiler_gnu=$ac_compiler_gnu
5146
5147fi
cristy8b350f62009-11-15 23:12:43 +00005148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005149$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5150if test $ac_compiler_gnu = yes; then
5151 GCC=yes
5152else
5153 GCC=
5154fi
5155ac_test_CFLAGS=${CFLAGS+set}
5156ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005158$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005159if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005160 $as_echo_n "(cached) " >&6
5161else
5162 ac_save_c_werror_flag=$ac_c_werror_flag
5163 ac_c_werror_flag=yes
5164 ac_cv_prog_cc_g=no
5165 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005167/* end confdefs.h. */
5168
5169int
5170main ()
5171{
5172
5173 ;
5174 return 0;
5175}
5176_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005177if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005178 ac_cv_prog_cc_g=yes
5179else
cristy8b350f62009-11-15 23:12:43 +00005180 CFLAGS=""
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005182/* end confdefs.h. */
5183
5184int
5185main ()
5186{
5187
5188 ;
5189 return 0;
5190}
5191_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005192if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005193
cristy8b350f62009-11-15 23:12:43 +00005194else
5195 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005196 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005198/* end confdefs.h. */
5199
5200int
5201main ()
5202{
5203
5204 ;
5205 return 0;
5206}
5207_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005208if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005209 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005210fi
cristy3ed852e2009-09-05 21:47:34 +00005211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212fi
cristy3ed852e2009-09-05 21:47:34 +00005213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214fi
cristy3ed852e2009-09-05 21:47:34 +00005215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 ac_c_werror_flag=$ac_save_c_werror_flag
5217fi
cristy8b350f62009-11-15 23:12:43 +00005218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005219$as_echo "$ac_cv_prog_cc_g" >&6; }
5220if test "$ac_test_CFLAGS" = set; then
5221 CFLAGS=$ac_save_CFLAGS
5222elif test $ac_cv_prog_cc_g = yes; then
5223 if test "$GCC" = yes; then
5224 CFLAGS="-g -O2"
5225 else
5226 CFLAGS="-g"
5227 fi
5228else
5229 if test "$GCC" = yes; then
5230 CFLAGS="-O2"
5231 else
5232 CFLAGS=
5233 fi
5234fi
cristy8b350f62009-11-15 23:12:43 +00005235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005236$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005237if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005238 $as_echo_n "(cached) " >&6
5239else
5240 ac_cv_prog_cc_c89=no
5241ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005243/* end confdefs.h. */
5244#include <stdarg.h>
5245#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005246struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005247/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5248struct buf { int x; };
5249FILE * (*rcsopen) (struct buf *, struct stat *, int);
5250static char *e (p, i)
5251 char **p;
5252 int i;
5253{
5254 return p[i];
5255}
5256static char *f (char * (*g) (char **, int), char **p, ...)
5257{
5258 char *s;
5259 va_list v;
5260 va_start (v,p);
5261 s = g (p, va_arg (v,int));
5262 va_end (v);
5263 return s;
5264}
5265
5266/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5267 function prototypes and stuff, but not '\xHH' hex character constants.
5268 These don't provoke an error unfortunately, instead are silently treated
5269 as 'x'. The following induces an error, until -std is added to get
5270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5271 array size at least. It's necessary to write '\x00'==0 to get something
5272 that's true only with -std. */
5273int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5274
5275/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5276 inside strings and character constants. */
5277#define FOO(x) 'x'
5278int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5279
5280int test (int i, double x);
5281struct s1 {int (*f) (int a);};
5282struct s2 {int (*f) (double a);};
5283int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5284int argc;
5285char **argv;
5286int
5287main ()
5288{
5289return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5290 ;
5291 return 0;
5292}
5293_ACEOF
5294for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5295 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5296do
5297 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005298 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005299 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005300fi
cristy3ed852e2009-09-05 21:47:34 +00005301rm -f core conftest.err conftest.$ac_objext
5302 test "x$ac_cv_prog_cc_c89" != "xno" && break
5303done
5304rm -f conftest.$ac_ext
5305CC=$ac_save_CC
5306
5307fi
5308# AC_CACHE_VAL
5309case "x$ac_cv_prog_cc_c89" in
5310 x)
cristy8b350f62009-11-15 23:12:43 +00005311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005312$as_echo "none needed" >&6; } ;;
5313 xno)
cristy8b350f62009-11-15 23:12:43 +00005314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005315$as_echo "unsupported" >&6; } ;;
5316 *)
5317 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005319$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5320esac
cristy8b350f62009-11-15 23:12:43 +00005321if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005322
cristy8b350f62009-11-15 23:12:43 +00005323fi
cristy3ed852e2009-09-05 21:47:34 +00005324
5325ac_ext=c
5326ac_cpp='$CPP $CPPFLAGS'
5327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005330
cristya5bda012013-11-03 18:05:38 +00005331ac_ext=c
5332ac_cpp='$CPP $CPPFLAGS'
5333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335ac_compiler_gnu=$ac_cv_c_compiler_gnu
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5337$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5338if ${am_cv_prog_cc_c_o+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340else
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h. */
5343
5344int
5345main ()
5346{
5347
5348 ;
5349 return 0;
5350}
5351_ACEOF
5352 # Make sure it works both with $CC and with simple cc.
5353 # Following AC_PROG_CC_C_O, we do the test twice because some
5354 # compilers refuse to overwrite an existing .o file with -o,
5355 # though they will create one.
5356 am_cv_prog_cc_c_o=yes
5357 for am_i in 1 2; do
5358 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5359 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } \
5363 && test -f conftest2.$ac_objext; then
5364 : OK
5365 else
5366 am_cv_prog_cc_c_o=no
5367 break
5368 fi
5369 done
5370 rm -f core conftest*
5371 unset am_i
5372fi
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5374$as_echo "$am_cv_prog_cc_c_o" >&6; }
5375if test "$am_cv_prog_cc_c_o" != yes; then
5376 # Losing compiler, so override with the script.
5377 # FIXME: It is wrong to rewrite CC.
5378 # But if we don't then we get into trouble of one sort or another.
5379 # A longer-term fix would be to have automake use am__CC in this case,
5380 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5381 CC="$am_aux_dir/compile $CC"
5382fi
5383ac_ext=c
5384ac_cpp='$CPP $CPPFLAGS'
5385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388
5389
cristy73bd4a52010-10-05 11:24:23 +00005390depcc="$CC" am_compiler_list=
5391
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5393$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005394if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005395 $as_echo_n "(cached) " >&6
5396else
5397 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5398 # We make a subdir and do the tests there. Otherwise we can end up
5399 # making bogus files that we don't know about and never remove. For
5400 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005401 # making a dummy file named 'D' -- because '-MD' means "put the output
5402 # in D".
cristy7247bba2012-02-05 16:37:27 +00005403 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005404 mkdir conftest.dir
5405 # Copy depcomp to subdir because otherwise we won't find it if we're
5406 # using a relative directory.
5407 cp "$am_depcomp" conftest.dir
5408 cd conftest.dir
5409 # We will build objects and dependencies in a subdirectory because
5410 # it helps to detect inapplicable dependency modes. For instance
5411 # both Tru64's cc and ICC support -MD to output dependencies as a
5412 # side effect of compilation, but ICC will put the dependencies in
5413 # the current directory while Tru64 will put them in the object
5414 # directory.
5415 mkdir sub
5416
5417 am_cv_CC_dependencies_compiler_type=none
5418 if test "$am_compiler_list" = ""; then
5419 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5420 fi
5421 am__universal=false
5422 case " $depcc " in #(
5423 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5424 esac
5425
5426 for depmode in $am_compiler_list; do
5427 # Setup a source with many dependencies, because some compilers
5428 # like to wrap large dependency lists on column 80 (with \), and
5429 # we should not choose a depcomp mode which is confused by this.
5430 #
5431 # We need to recreate these files for each test, as the compiler may
5432 # overwrite some of them when testing with obscure command lines.
5433 # This happens at least with the AIX C compiler.
5434 : > sub/conftest.c
5435 for i in 1 2 3 4 5 6; do
5436 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005437 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5438 # Solaris 10 /bin/sh.
5439 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005440 done
5441 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5442
cristyc0890a62012-07-19 00:18:20 +00005443 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005444 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005445 # handle '-M -o', and we need to detect this. Also, some Intel
5446 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005447 am__obj=sub/conftest.${OBJEXT-o}
5448 am__minus_obj="-o $am__obj"
5449 case $depmode in
5450 gcc)
5451 # This depmode causes a compiler race in universal mode.
5452 test "$am__universal" = false || continue
5453 ;;
5454 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005455 # After this tag, mechanisms are not by side-effect, so they'll
5456 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005457 if test "x$enable_dependency_tracking" = xyes; then
5458 continue
5459 else
5460 break
5461 fi
5462 ;;
cristy7247bba2012-02-05 16:37:27 +00005463 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005464 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005465 # not run yet. These depmodes are late enough in the game, and
5466 # so weak that their functioning should not be impacted.
5467 am__obj=conftest.${OBJEXT-o}
5468 am__minus_obj=
5469 ;;
5470 none) break ;;
5471 esac
5472 if depmode=$depmode \
5473 source=sub/conftest.c object=$am__obj \
5474 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5475 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5476 >/dev/null 2>conftest.err &&
5477 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5478 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5479 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5480 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5481 # icc doesn't choke on unknown options, it will just issue warnings
5482 # or remarks (even with -Werror). So we grep stderr for any message
5483 # that says an option was ignored or not supported.
5484 # When given -MP, icc 7.0 and 7.1 complain thusly:
5485 # icc: Command line warning: ignoring option '-M'; no argument required
5486 # The diagnosis changed in icc 8.0:
5487 # icc: Command line remark: option '-MP' not supported
5488 if (grep 'ignoring option' conftest.err ||
5489 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5490 am_cv_CC_dependencies_compiler_type=$depmode
5491 break
5492 fi
5493 fi
5494 done
5495
5496 cd ..
5497 rm -rf conftest.dir
5498else
5499 am_cv_CC_dependencies_compiler_type=none
5500fi
5501
5502fi
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5504$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5505CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5506
5507 if
5508 test "x$enable_dependency_tracking" != xno \
5509 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5510 am__fastdepCC_TRUE=
5511 am__fastdepCC_FALSE='#'
5512else
5513 am__fastdepCC_TRUE='#'
5514 am__fastdepCC_FALSE=
5515fi
5516
5517
cristy3ed852e2009-09-05 21:47:34 +00005518
cristya0b81c32010-01-22 02:54:33 +00005519ac_ext=c
5520ac_cpp='$CPP $CPPFLAGS'
5521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523ac_compiler_gnu=$ac_cv_c_compiler_gnu
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5525$as_echo_n "checking how to run the C preprocessor... " >&6; }
5526# On Suns, sometimes $CPP names a directory.
5527if test -n "$CPP" && test -d "$CPP"; then
5528 CPP=
5529fi
5530if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005531 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005532 $as_echo_n "(cached) " >&6
5533else
5534 # Double quotes because CPP needs to be expanded
5535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5536 do
5537 ac_preproc_ok=false
5538for ac_c_preproc_warn_flag in '' yes
5539do
5540 # Use a header file that comes with gcc, so configuring glibc
5541 # with a fresh cross-compiler works.
5542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5543 # <limits.h> exists even on freestanding compilers.
5544 # On the NeXT, cc -E runs the code through the compiler's parser,
5545 # not just through cpp. "Syntax error" is here to catch this case.
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547/* end confdefs.h. */
5548#ifdef __STDC__
5549# include <limits.h>
5550#else
5551# include <assert.h>
5552#endif
5553 Syntax error
5554_ACEOF
5555if ac_fn_c_try_cpp "$LINENO"; then :
5556
5557else
5558 # Broken: fails on valid input.
5559continue
5560fi
cristyda16f162011-02-19 23:52:17 +00005561rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005562
5563 # OK, works on sane cases. Now check whether nonexistent headers
5564 # can be detected and how.
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566/* end confdefs.h. */
5567#include <ac_nonexistent.h>
5568_ACEOF
5569if ac_fn_c_try_cpp "$LINENO"; then :
5570 # Broken: success on invalid input.
5571continue
5572else
5573 # Passes both tests.
5574ac_preproc_ok=:
5575break
5576fi
cristyda16f162011-02-19 23:52:17 +00005577rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005578
5579done
5580# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005581rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005582if $ac_preproc_ok; then :
5583 break
5584fi
5585
5586 done
5587 ac_cv_prog_CPP=$CPP
5588
5589fi
5590 CPP=$ac_cv_prog_CPP
5591else
5592 ac_cv_prog_CPP=$CPP
5593fi
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5595$as_echo "$CPP" >&6; }
5596ac_preproc_ok=false
5597for ac_c_preproc_warn_flag in '' yes
5598do
5599 # Use a header file that comes with gcc, so configuring glibc
5600 # with a fresh cross-compiler works.
5601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5602 # <limits.h> exists even on freestanding compilers.
5603 # On the NeXT, cc -E runs the code through the compiler's parser,
5604 # not just through cpp. "Syntax error" is here to catch this case.
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606/* end confdefs.h. */
5607#ifdef __STDC__
5608# include <limits.h>
5609#else
5610# include <assert.h>
5611#endif
5612 Syntax error
5613_ACEOF
5614if ac_fn_c_try_cpp "$LINENO"; then :
5615
5616else
5617 # Broken: fails on valid input.
5618continue
5619fi
cristyda16f162011-02-19 23:52:17 +00005620rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005621
5622 # OK, works on sane cases. Now check whether nonexistent headers
5623 # can be detected and how.
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h. */
5626#include <ac_nonexistent.h>
5627_ACEOF
5628if ac_fn_c_try_cpp "$LINENO"; then :
5629 # Broken: success on invalid input.
5630continue
5631else
5632 # Passes both tests.
5633ac_preproc_ok=:
5634break
5635fi
cristyda16f162011-02-19 23:52:17 +00005636rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005637
5638done
5639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005640rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005641if $ac_preproc_ok; then :
5642
5643else
5644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005646as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5647See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005648fi
5649
5650ac_ext=c
5651ac_cpp='$CPP $CPPFLAGS'
5652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655
5656
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5658$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005659if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005660 $as_echo_n "(cached) " >&6
5661else
5662 if test -z "$GREP"; then
5663 ac_path_GREP_found=false
5664 # Loop through the user's path and test for each of PROGNAME-LIST
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5667do
5668 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
5670 for ac_prog in grep ggrep; do
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005673 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005674# Check for GNU ac_path_GREP and select it if it is found.
5675 # Check for GNU $ac_path_GREP
5676case `"$ac_path_GREP" --version 2>&1` in
5677*GNU*)
5678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5679*)
5680 ac_count=0
5681 $as_echo_n 0123456789 >"conftest.in"
5682 while :
5683 do
5684 cat "conftest.in" "conftest.in" >"conftest.tmp"
5685 mv "conftest.tmp" "conftest.in"
5686 cp "conftest.in" "conftest.nl"
5687 $as_echo 'GREP' >> "conftest.nl"
5688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5690 as_fn_arith $ac_count + 1 && ac_count=$as_val
5691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5692 # Best one so far, save it but keep looking for a better one
5693 ac_cv_path_GREP="$ac_path_GREP"
5694 ac_path_GREP_max=$ac_count
5695 fi
5696 # 10*(2^10) chars as input seems more than enough
5697 test $ac_count -gt 10 && break
5698 done
5699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5700esac
5701
5702 $ac_path_GREP_found && break 3
5703 done
5704 done
5705 done
5706IFS=$as_save_IFS
5707 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005708 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005709 fi
5710else
5711 ac_cv_path_GREP=$GREP
5712fi
5713
5714fi
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5716$as_echo "$ac_cv_path_GREP" >&6; }
5717 GREP="$ac_cv_path_GREP"
5718
5719
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5721$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005722if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005723 $as_echo_n "(cached) " >&6
5724else
5725 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5726 then ac_cv_path_EGREP="$GREP -E"
5727 else
5728 if test -z "$EGREP"; then
5729 ac_path_EGREP_found=false
5730 # Loop through the user's path and test for each of PROGNAME-LIST
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5733do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_prog in egrep; do
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005739 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005740# Check for GNU ac_path_EGREP and select it if it is found.
5741 # Check for GNU $ac_path_EGREP
5742case `"$ac_path_EGREP" --version 2>&1` in
5743*GNU*)
5744 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5745*)
5746 ac_count=0
5747 $as_echo_n 0123456789 >"conftest.in"
5748 while :
5749 do
5750 cat "conftest.in" "conftest.in" >"conftest.tmp"
5751 mv "conftest.tmp" "conftest.in"
5752 cp "conftest.in" "conftest.nl"
5753 $as_echo 'EGREP' >> "conftest.nl"
5754 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5756 as_fn_arith $ac_count + 1 && ac_count=$as_val
5757 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5758 # Best one so far, save it but keep looking for a better one
5759 ac_cv_path_EGREP="$ac_path_EGREP"
5760 ac_path_EGREP_max=$ac_count
5761 fi
5762 # 10*(2^10) chars as input seems more than enough
5763 test $ac_count -gt 10 && break
5764 done
5765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5766esac
5767
5768 $ac_path_EGREP_found && break 3
5769 done
5770 done
5771 done
5772IFS=$as_save_IFS
5773 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005774 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005775 fi
5776else
5777 ac_cv_path_EGREP=$EGREP
5778fi
5779
5780 fi
5781fi
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5783$as_echo "$ac_cv_path_EGREP" >&6; }
5784 EGREP="$ac_cv_path_EGREP"
5785
5786
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5788$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005789if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005790 $as_echo_n "(cached) " >&6
5791else
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793/* end confdefs.h. */
5794#include <stdlib.h>
5795#include <stdarg.h>
5796#include <string.h>
5797#include <float.h>
5798
5799int
5800main ()
5801{
5802
5803 ;
5804 return 0;
5805}
5806_ACEOF
5807if ac_fn_c_try_compile "$LINENO"; then :
5808 ac_cv_header_stdc=yes
5809else
5810 ac_cv_header_stdc=no
5811fi
5812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813
5814if test $ac_cv_header_stdc = yes; then
5815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817/* end confdefs.h. */
5818#include <string.h>
5819
5820_ACEOF
5821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5822 $EGREP "memchr" >/dev/null 2>&1; then :
5823
5824else
5825 ac_cv_header_stdc=no
5826fi
5827rm -f conftest*
5828
5829fi
5830
5831if test $ac_cv_header_stdc = yes; then
5832 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834/* end confdefs.h. */
5835#include <stdlib.h>
5836
5837_ACEOF
5838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5839 $EGREP "free" >/dev/null 2>&1; then :
5840
5841else
5842 ac_cv_header_stdc=no
5843fi
5844rm -f conftest*
5845
5846fi
5847
5848if test $ac_cv_header_stdc = yes; then
5849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5850 if test "$cross_compiling" = yes; then :
5851 :
5852else
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h. */
5855#include <ctype.h>
5856#include <stdlib.h>
5857#if ((' ' & 0x0FF) == 0x020)
5858# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5859# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5860#else
5861# define ISLOWER(c) \
5862 (('a' <= (c) && (c) <= 'i') \
5863 || ('j' <= (c) && (c) <= 'r') \
5864 || ('s' <= (c) && (c) <= 'z'))
5865# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5866#endif
5867
5868#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5869int
5870main ()
5871{
5872 int i;
5873 for (i = 0; i < 256; i++)
5874 if (XOR (islower (i), ISLOWER (i))
5875 || toupper (i) != TOUPPER (i))
5876 return 2;
5877 return 0;
5878}
5879_ACEOF
5880if ac_fn_c_try_run "$LINENO"; then :
5881
5882else
5883 ac_cv_header_stdc=no
5884fi
5885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5886 conftest.$ac_objext conftest.beam conftest.$ac_ext
5887fi
5888
5889fi
5890fi
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5892$as_echo "$ac_cv_header_stdc" >&6; }
5893if test $ac_cv_header_stdc = yes; then
5894
5895$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5896
5897fi
5898
5899# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5900for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5901 inttypes.h stdint.h unistd.h
5902do :
5903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5904ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5905"
cristy98dddb52010-11-04 00:30:15 +00005906if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005907 cat >>confdefs.h <<_ACEOF
5908#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5909_ACEOF
5910
5911fi
5912
5913done
5914
5915
5916
5917 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 +00005918if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005919 MINIX=yes
5920else
5921 MINIX=
5922fi
5923
5924
5925 if test "$MINIX" = yes; then
5926
5927$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5928
5929
5930$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5931
5932
5933$as_echo "#define _MINIX 1" >>confdefs.h
5934
5935 fi
5936
5937
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5939$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005940if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005941 $as_echo_n "(cached) " >&6
5942else
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h. */
5945
cristy14fefe52012-05-21 00:59:18 +00005946# define __EXTENSIONS__ 1
5947 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005948int
5949main ()
5950{
5951
5952 ;
5953 return 0;
5954}
5955_ACEOF
5956if ac_fn_c_try_compile "$LINENO"; then :
5957 ac_cv_safe_to_define___extensions__=yes
5958else
5959 ac_cv_safe_to_define___extensions__=no
5960fi
5961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962fi
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5964$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5965 test $ac_cv_safe_to_define___extensions__ = yes &&
5966 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5967
5968 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5969
5970 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5971
5972 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5973
5974 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5975
5976
5977
5978# Check for programs
5979ac_ext=c
5980ac_cpp='$CPP $CPPFLAGS'
5981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983ac_compiler_gnu=$ac_cv_c_compiler_gnu
5984if test -n "$ac_tool_prefix"; then
5985 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5986set dummy ${ac_tool_prefix}gcc; ac_word=$2
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5988$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005989if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005990 $as_echo_n "(cached) " >&6
5991else
5992 if test -n "$CC"; then
5993 ac_cv_prog_CC="$CC" # Let the user override the test.
5994else
5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006002 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6005 fi
6006done
6007 done
6008IFS=$as_save_IFS
6009
6010fi
6011fi
6012CC=$ac_cv_prog_CC
6013if test -n "$CC"; then
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6015$as_echo "$CC" >&6; }
6016else
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018$as_echo "no" >&6; }
6019fi
6020
6021
6022fi
6023if test -z "$ac_cv_prog_CC"; then
6024 ac_ct_CC=$CC
6025 # Extract the first word of "gcc", so it can be a program name with args.
6026set dummy gcc; ac_word=$2
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006029if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006030 $as_echo_n "(cached) " >&6
6031else
6032 if test -n "$ac_ct_CC"; then
6033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6034else
6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006042 ac_cv_prog_ac_ct_CC="gcc"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6045 fi
6046done
6047 done
6048IFS=$as_save_IFS
6049
6050fi
6051fi
6052ac_ct_CC=$ac_cv_prog_ac_ct_CC
6053if test -n "$ac_ct_CC"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6055$as_echo "$ac_ct_CC" >&6; }
6056else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058$as_echo "no" >&6; }
6059fi
6060
6061 if test "x$ac_ct_CC" = x; then
6062 CC=""
6063 else
6064 case $cross_compiling:$ac_tool_warned in
6065yes:)
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6068ac_tool_warned=yes ;;
6069esac
6070 CC=$ac_ct_CC
6071 fi
6072else
6073 CC="$ac_cv_prog_CC"
6074fi
6075
6076if test -z "$CC"; then
6077 if test -n "$ac_tool_prefix"; then
6078 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6079set dummy ${ac_tool_prefix}cc; ac_word=$2
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006082if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006083 $as_echo_n "(cached) " >&6
6084else
6085 if test -n "$CC"; then
6086 ac_cv_prog_CC="$CC" # Let the user override the test.
6087else
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006095 ac_cv_prog_CC="${ac_tool_prefix}cc"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6098 fi
6099done
6100 done
6101IFS=$as_save_IFS
6102
6103fi
6104fi
6105CC=$ac_cv_prog_CC
6106if test -n "$CC"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6108$as_echo "$CC" >&6; }
6109else
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111$as_echo "no" >&6; }
6112fi
6113
6114
6115 fi
6116fi
6117if test -z "$CC"; then
6118 # Extract the first word of "cc", so it can be a program name with args.
6119set dummy cc; ac_word=$2
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006122if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006123 $as_echo_n "(cached) " >&6
6124else
6125 if test -n "$CC"; then
6126 ac_cv_prog_CC="$CC" # Let the user override the test.
6127else
6128 ac_prog_rejected=no
6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH
6131do
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006136 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6137 ac_prog_rejected=yes
6138 continue
6139 fi
6140 ac_cv_prog_CC="cc"
6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 break 2
6143 fi
6144done
6145 done
6146IFS=$as_save_IFS
6147
6148if test $ac_prog_rejected = yes; then
6149 # We found a bogon in the path, so make sure we never use it.
6150 set dummy $ac_cv_prog_CC
6151 shift
6152 if test $# != 0; then
6153 # We chose a different compiler from the bogus one.
6154 # However, it has the same basename, so the bogon will be chosen
6155 # first if we set CC to just the basename; use the full file name.
6156 shift
6157 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6158 fi
6159fi
6160fi
6161fi
6162CC=$ac_cv_prog_CC
6163if test -n "$CC"; then
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6165$as_echo "$CC" >&6; }
6166else
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168$as_echo "no" >&6; }
6169fi
6170
6171
6172fi
6173if test -z "$CC"; then
6174 if test -n "$ac_tool_prefix"; then
6175 for ac_prog in cl.exe
6176 do
6177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006181if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006182 $as_echo_n "(cached) " >&6
6183else
6184 if test -n "$CC"; then
6185 ac_cv_prog_CC="$CC" # Let the user override the test.
6186else
6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006194 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 break 2
6197 fi
6198done
6199 done
6200IFS=$as_save_IFS
6201
6202fi
6203fi
6204CC=$ac_cv_prog_CC
6205if test -n "$CC"; then
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6207$as_echo "$CC" >&6; }
6208else
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210$as_echo "no" >&6; }
6211fi
6212
6213
6214 test -n "$CC" && break
6215 done
6216fi
6217if test -z "$CC"; then
6218 ac_ct_CC=$CC
6219 for ac_prog in cl.exe
6220do
6221 # Extract the first word of "$ac_prog", so it can be a program name with args.
6222set dummy $ac_prog; ac_word=$2
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006225if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006226 $as_echo_n "(cached) " >&6
6227else
6228 if test -n "$ac_ct_CC"; then
6229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6230else
6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006238 ac_cv_prog_ac_ct_CC="$ac_prog"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6241 fi
6242done
6243 done
6244IFS=$as_save_IFS
6245
6246fi
6247fi
6248ac_ct_CC=$ac_cv_prog_ac_ct_CC
6249if test -n "$ac_ct_CC"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6251$as_echo "$ac_ct_CC" >&6; }
6252else
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254$as_echo "no" >&6; }
6255fi
6256
6257
6258 test -n "$ac_ct_CC" && break
6259done
6260
6261 if test "x$ac_ct_CC" = x; then
6262 CC=""
6263 else
6264 case $cross_compiling:$ac_tool_warned in
6265yes:)
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6268ac_tool_warned=yes ;;
6269esac
6270 CC=$ac_ct_CC
6271 fi
6272fi
6273
6274fi
6275
6276
6277test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006279as_fn_error $? "no acceptable C compiler found in \$PATH
6280See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006281
6282# Provide some information about the compiler.
6283$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6284set X $ac_compile
6285ac_compiler=$2
6286for ac_option in --version -v -V -qversion; do
6287 { { ac_try="$ac_compiler $ac_option >&5"
6288case "(($ac_try" in
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6291esac
6292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6293$as_echo "$ac_try_echo"; } >&5
6294 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6295 ac_status=$?
6296 if test -s conftest.err; then
6297 sed '10a\
6298... rest of stderr output deleted ...
6299 10q' conftest.err >conftest.er1
6300 cat conftest.er1 >&5
6301 fi
6302 rm -f conftest.er1 conftest.err
6303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6304 test $ac_status = 0; }
6305done
6306
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6308$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006309if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006310 $as_echo_n "(cached) " >&6
6311else
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313/* end confdefs.h. */
6314
6315int
6316main ()
6317{
6318#ifndef __GNUC__
6319 choke me
6320#endif
6321
6322 ;
6323 return 0;
6324}
6325_ACEOF
6326if ac_fn_c_try_compile "$LINENO"; then :
6327 ac_compiler_gnu=yes
6328else
6329 ac_compiler_gnu=no
6330fi
6331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332ac_cv_c_compiler_gnu=$ac_compiler_gnu
6333
6334fi
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6336$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6337if test $ac_compiler_gnu = yes; then
6338 GCC=yes
6339else
6340 GCC=
6341fi
6342ac_test_CFLAGS=${CFLAGS+set}
6343ac_save_CFLAGS=$CFLAGS
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6345$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006346if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006347 $as_echo_n "(cached) " >&6
6348else
6349 ac_save_c_werror_flag=$ac_c_werror_flag
6350 ac_c_werror_flag=yes
6351 ac_cv_prog_cc_g=no
6352 CFLAGS="-g"
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354/* end confdefs.h. */
6355
6356int
6357main ()
6358{
6359
6360 ;
6361 return 0;
6362}
6363_ACEOF
6364if ac_fn_c_try_compile "$LINENO"; then :
6365 ac_cv_prog_cc_g=yes
6366else
6367 CFLAGS=""
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369/* end confdefs.h. */
6370
6371int
6372main ()
6373{
6374
6375 ;
6376 return 0;
6377}
6378_ACEOF
6379if ac_fn_c_try_compile "$LINENO"; then :
6380
6381else
6382 ac_c_werror_flag=$ac_save_c_werror_flag
6383 CFLAGS="-g"
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385/* end confdefs.h. */
6386
6387int
6388main ()
6389{
6390
6391 ;
6392 return 0;
6393}
6394_ACEOF
6395if ac_fn_c_try_compile "$LINENO"; then :
6396 ac_cv_prog_cc_g=yes
6397fi
6398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399fi
6400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401fi
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 ac_c_werror_flag=$ac_save_c_werror_flag
6404fi
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6406$as_echo "$ac_cv_prog_cc_g" >&6; }
6407if test "$ac_test_CFLAGS" = set; then
6408 CFLAGS=$ac_save_CFLAGS
6409elif test $ac_cv_prog_cc_g = yes; then
6410 if test "$GCC" = yes; then
6411 CFLAGS="-g -O2"
6412 else
6413 CFLAGS="-g"
6414 fi
6415else
6416 if test "$GCC" = yes; then
6417 CFLAGS="-O2"
6418 else
6419 CFLAGS=
6420 fi
6421fi
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6423$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006424if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006425 $as_echo_n "(cached) " >&6
6426else
6427 ac_cv_prog_cc_c89=no
6428ac_save_CC=$CC
6429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h. */
6431#include <stdarg.h>
6432#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006433struct stat;
cristya0b81c32010-01-22 02:54:33 +00006434/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6435struct buf { int x; };
6436FILE * (*rcsopen) (struct buf *, struct stat *, int);
6437static char *e (p, i)
6438 char **p;
6439 int i;
6440{
6441 return p[i];
6442}
6443static char *f (char * (*g) (char **, int), char **p, ...)
6444{
6445 char *s;
6446 va_list v;
6447 va_start (v,p);
6448 s = g (p, va_arg (v,int));
6449 va_end (v);
6450 return s;
6451}
6452
6453/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6454 function prototypes and stuff, but not '\xHH' hex character constants.
6455 These don't provoke an error unfortunately, instead are silently treated
6456 as 'x'. The following induces an error, until -std is added to get
6457 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6458 array size at least. It's necessary to write '\x00'==0 to get something
6459 that's true only with -std. */
6460int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6461
6462/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6463 inside strings and character constants. */
6464#define FOO(x) 'x'
6465int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6466
6467int test (int i, double x);
6468struct s1 {int (*f) (int a);};
6469struct s2 {int (*f) (double a);};
6470int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6471int argc;
6472char **argv;
6473int
6474main ()
6475{
6476return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6477 ;
6478 return 0;
6479}
6480_ACEOF
6481for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6482 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6483do
6484 CC="$ac_save_CC $ac_arg"
6485 if ac_fn_c_try_compile "$LINENO"; then :
6486 ac_cv_prog_cc_c89=$ac_arg
6487fi
6488rm -f core conftest.err conftest.$ac_objext
6489 test "x$ac_cv_prog_cc_c89" != "xno" && break
6490done
6491rm -f conftest.$ac_ext
6492CC=$ac_save_CC
6493
6494fi
6495# AC_CACHE_VAL
6496case "x$ac_cv_prog_cc_c89" in
6497 x)
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6499$as_echo "none needed" >&6; } ;;
6500 xno)
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6502$as_echo "unsupported" >&6; } ;;
6503 *)
6504 CC="$CC $ac_cv_prog_cc_c89"
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6506$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6507esac
6508if test "x$ac_cv_prog_cc_c89" != xno; then :
6509
6510fi
6511
6512ac_ext=c
6513ac_cpp='$CPP $CPPFLAGS'
6514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6516ac_compiler_gnu=$ac_cv_c_compiler_gnu
6517
cristya5bda012013-11-03 18:05:38 +00006518ac_ext=c
6519ac_cpp='$CPP $CPPFLAGS'
6520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6522ac_compiler_gnu=$ac_cv_c_compiler_gnu
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6524$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6525if ${am_cv_prog_cc_c_o+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527else
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529/* end confdefs.h. */
6530
6531int
6532main ()
6533{
6534
6535 ;
6536 return 0;
6537}
6538_ACEOF
6539 # Make sure it works both with $CC and with simple cc.
6540 # Following AC_PROG_CC_C_O, we do the test twice because some
6541 # compilers refuse to overwrite an existing .o file with -o,
6542 # though they will create one.
6543 am_cv_prog_cc_c_o=yes
6544 for am_i in 1 2; do
6545 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6546 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } \
6550 && test -f conftest2.$ac_objext; then
6551 : OK
6552 else
6553 am_cv_prog_cc_c_o=no
6554 break
6555 fi
6556 done
6557 rm -f core conftest*
6558 unset am_i
6559fi
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6561$as_echo "$am_cv_prog_cc_c_o" >&6; }
6562if test "$am_cv_prog_cc_c_o" != yes; then
6563 # Losing compiler, so override with the script.
6564 # FIXME: It is wrong to rewrite CC.
6565 # But if we don't then we get into trouble of one sort or another.
6566 # A longer-term fix would be to have automake use am__CC in this case,
6567 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6568 CC="$am_aux_dir/compile $CC"
6569fi
6570ac_ext=c
6571ac_cpp='$CPP $CPPFLAGS'
6572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6574ac_compiler_gnu=$ac_cv_c_compiler_gnu
6575
6576
cristy73bd4a52010-10-05 11:24:23 +00006577depcc="$CC" am_compiler_list=
6578
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6580$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006581if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006582 $as_echo_n "(cached) " >&6
6583else
6584 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6585 # We make a subdir and do the tests there. Otherwise we can end up
6586 # making bogus files that we don't know about and never remove. For
6587 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006588 # making a dummy file named 'D' -- because '-MD' means "put the output
6589 # in D".
cristy7247bba2012-02-05 16:37:27 +00006590 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006591 mkdir conftest.dir
6592 # Copy depcomp to subdir because otherwise we won't find it if we're
6593 # using a relative directory.
6594 cp "$am_depcomp" conftest.dir
6595 cd conftest.dir
6596 # We will build objects and dependencies in a subdirectory because
6597 # it helps to detect inapplicable dependency modes. For instance
6598 # both Tru64's cc and ICC support -MD to output dependencies as a
6599 # side effect of compilation, but ICC will put the dependencies in
6600 # the current directory while Tru64 will put them in the object
6601 # directory.
6602 mkdir sub
6603
6604 am_cv_CC_dependencies_compiler_type=none
6605 if test "$am_compiler_list" = ""; then
6606 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6607 fi
6608 am__universal=false
6609 case " $depcc " in #(
6610 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6611 esac
6612
6613 for depmode in $am_compiler_list; do
6614 # Setup a source with many dependencies, because some compilers
6615 # like to wrap large dependency lists on column 80 (with \), and
6616 # we should not choose a depcomp mode which is confused by this.
6617 #
6618 # We need to recreate these files for each test, as the compiler may
6619 # overwrite some of them when testing with obscure command lines.
6620 # This happens at least with the AIX C compiler.
6621 : > sub/conftest.c
6622 for i in 1 2 3 4 5 6; do
6623 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006624 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6625 # Solaris 10 /bin/sh.
6626 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006627 done
6628 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6629
cristyc0890a62012-07-19 00:18:20 +00006630 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006631 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006632 # handle '-M -o', and we need to detect this. Also, some Intel
6633 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006634 am__obj=sub/conftest.${OBJEXT-o}
6635 am__minus_obj="-o $am__obj"
6636 case $depmode in
6637 gcc)
6638 # This depmode causes a compiler race in universal mode.
6639 test "$am__universal" = false || continue
6640 ;;
6641 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006642 # After this tag, mechanisms are not by side-effect, so they'll
6643 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006644 if test "x$enable_dependency_tracking" = xyes; then
6645 continue
6646 else
6647 break
6648 fi
6649 ;;
cristy7247bba2012-02-05 16:37:27 +00006650 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006651 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006652 # not run yet. These depmodes are late enough in the game, and
6653 # so weak that their functioning should not be impacted.
6654 am__obj=conftest.${OBJEXT-o}
6655 am__minus_obj=
6656 ;;
6657 none) break ;;
6658 esac
6659 if depmode=$depmode \
6660 source=sub/conftest.c object=$am__obj \
6661 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6662 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6663 >/dev/null 2>conftest.err &&
6664 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6665 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6666 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6667 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6668 # icc doesn't choke on unknown options, it will just issue warnings
6669 # or remarks (even with -Werror). So we grep stderr for any message
6670 # that says an option was ignored or not supported.
6671 # When given -MP, icc 7.0 and 7.1 complain thusly:
6672 # icc: Command line warning: ignoring option '-M'; no argument required
6673 # The diagnosis changed in icc 8.0:
6674 # icc: Command line remark: option '-MP' not supported
6675 if (grep 'ignoring option' conftest.err ||
6676 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6677 am_cv_CC_dependencies_compiler_type=$depmode
6678 break
6679 fi
6680 fi
6681 done
6682
6683 cd ..
6684 rm -rf conftest.dir
6685else
6686 am_cv_CC_dependencies_compiler_type=none
6687fi
6688
6689fi
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6691$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6692CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6693
6694 if
6695 test "x$enable_dependency_tracking" != xno \
6696 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6697 am__fastdepCC_TRUE=
6698 am__fastdepCC_FALSE='#'
6699else
6700 am__fastdepCC_TRUE='#'
6701 am__fastdepCC_FALSE=
6702fi
6703
6704
cristy95646052009-11-28 23:05:30 +00006705ac_ext=cpp
6706ac_cpp='$CXXCPP $CPPFLAGS'
6707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6710if test -z "$CXX"; then
6711 if test -n "$CCC"; then
6712 CXX=$CCC
6713 else
6714 if test -n "$ac_tool_prefix"; then
6715 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6716 do
6717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6718set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006721if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006722 $as_echo_n "(cached) " >&6
6723else
6724 if test -n "$CXX"; then
6725 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6726else
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006734 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738done
6739 done
6740IFS=$as_save_IFS
6741
6742fi
6743fi
6744CXX=$ac_cv_prog_CXX
6745if test -n "$CXX"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6747$as_echo "$CXX" >&6; }
6748else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750$as_echo "no" >&6; }
6751fi
6752
6753
6754 test -n "$CXX" && break
6755 done
6756fi
6757if test -z "$CXX"; then
6758 ac_ct_CXX=$CXX
6759 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6760do
6761 # Extract the first word of "$ac_prog", so it can be a program name with args.
6762set dummy $ac_prog; ac_word=$2
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006765if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006766 $as_echo_n "(cached) " >&6
6767else
6768 if test -n "$ac_ct_CXX"; then
6769 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6770else
6771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772for as_dir in $PATH
6773do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006778 ac_cv_prog_ac_ct_CXX="$ac_prog"
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6781 fi
6782done
6783 done
6784IFS=$as_save_IFS
6785
6786fi
6787fi
6788ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6789if test -n "$ac_ct_CXX"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6791$as_echo "$ac_ct_CXX" >&6; }
6792else
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794$as_echo "no" >&6; }
6795fi
6796
6797
6798 test -n "$ac_ct_CXX" && break
6799done
6800
6801 if test "x$ac_ct_CXX" = x; then
6802 CXX="g++"
6803 else
6804 case $cross_compiling:$ac_tool_warned in
6805yes:)
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808ac_tool_warned=yes ;;
6809esac
6810 CXX=$ac_ct_CXX
6811 fi
6812fi
6813
6814 fi
6815fi
6816# Provide some information about the compiler.
6817$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6818set X $ac_compile
6819ac_compiler=$2
6820for ac_option in --version -v -V -qversion; do
6821 { { ac_try="$ac_compiler $ac_option >&5"
6822case "(($ac_try" in
6823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6824 *) ac_try_echo=$ac_try;;
6825esac
6826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6827$as_echo "$ac_try_echo"; } >&5
6828 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6829 ac_status=$?
6830 if test -s conftest.err; then
6831 sed '10a\
6832... rest of stderr output deleted ...
6833 10q' conftest.err >conftest.er1
6834 cat conftest.er1 >&5
6835 fi
6836 rm -f conftest.er1 conftest.err
6837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6838 test $ac_status = 0; }
6839done
6840
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6842$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006843if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006844 $as_echo_n "(cached) " >&6
6845else
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847/* end confdefs.h. */
6848
6849int
6850main ()
6851{
6852#ifndef __GNUC__
6853 choke me
6854#endif
6855
6856 ;
6857 return 0;
6858}
6859_ACEOF
6860if ac_fn_cxx_try_compile "$LINENO"; then :
6861 ac_compiler_gnu=yes
6862else
6863 ac_compiler_gnu=no
6864fi
6865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6867
6868fi
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6870$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6871if test $ac_compiler_gnu = yes; then
6872 GXX=yes
6873else
6874 GXX=
6875fi
6876ac_test_CXXFLAGS=${CXXFLAGS+set}
6877ac_save_CXXFLAGS=$CXXFLAGS
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6879$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006880if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006881 $as_echo_n "(cached) " >&6
6882else
6883 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6884 ac_cxx_werror_flag=yes
6885 ac_cv_prog_cxx_g=no
6886 CXXFLAGS="-g"
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888/* end confdefs.h. */
6889
6890int
6891main ()
6892{
6893
6894 ;
6895 return 0;
6896}
6897_ACEOF
6898if ac_fn_cxx_try_compile "$LINENO"; then :
6899 ac_cv_prog_cxx_g=yes
6900else
6901 CXXFLAGS=""
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903/* end confdefs.h. */
6904
6905int
6906main ()
6907{
6908
6909 ;
6910 return 0;
6911}
6912_ACEOF
6913if ac_fn_cxx_try_compile "$LINENO"; then :
6914
6915else
6916 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6917 CXXFLAGS="-g"
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h. */
6920
6921int
6922main ()
6923{
6924
6925 ;
6926 return 0;
6927}
6928_ACEOF
6929if ac_fn_cxx_try_compile "$LINENO"; then :
6930 ac_cv_prog_cxx_g=yes
6931fi
6932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933fi
6934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935fi
6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6938fi
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6940$as_echo "$ac_cv_prog_cxx_g" >&6; }
6941if test "$ac_test_CXXFLAGS" = set; then
6942 CXXFLAGS=$ac_save_CXXFLAGS
6943elif test $ac_cv_prog_cxx_g = yes; then
6944 if test "$GXX" = yes; then
6945 CXXFLAGS="-g -O2"
6946 else
6947 CXXFLAGS="-g"
6948 fi
6949else
6950 if test "$GXX" = yes; then
6951 CXXFLAGS="-O2"
6952 else
6953 CXXFLAGS=
6954 fi
6955fi
6956ac_ext=c
6957ac_cpp='$CPP $CPPFLAGS'
6958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6960ac_compiler_gnu=$ac_cv_c_compiler_gnu
6961
cristy73bd4a52010-10-05 11:24:23 +00006962depcc="$CXX" am_compiler_list=
6963
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6965$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006966if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006967 $as_echo_n "(cached) " >&6
6968else
6969 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6970 # We make a subdir and do the tests there. Otherwise we can end up
6971 # making bogus files that we don't know about and never remove. For
6972 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006973 # making a dummy file named 'D' -- because '-MD' means "put the output
6974 # in D".
cristy7247bba2012-02-05 16:37:27 +00006975 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006976 mkdir conftest.dir
6977 # Copy depcomp to subdir because otherwise we won't find it if we're
6978 # using a relative directory.
6979 cp "$am_depcomp" conftest.dir
6980 cd conftest.dir
6981 # We will build objects and dependencies in a subdirectory because
6982 # it helps to detect inapplicable dependency modes. For instance
6983 # both Tru64's cc and ICC support -MD to output dependencies as a
6984 # side effect of compilation, but ICC will put the dependencies in
6985 # the current directory while Tru64 will put them in the object
6986 # directory.
6987 mkdir sub
6988
6989 am_cv_CXX_dependencies_compiler_type=none
6990 if test "$am_compiler_list" = ""; then
6991 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6992 fi
6993 am__universal=false
6994 case " $depcc " in #(
6995 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6996 esac
6997
6998 for depmode in $am_compiler_list; do
6999 # Setup a source with many dependencies, because some compilers
7000 # like to wrap large dependency lists on column 80 (with \), and
7001 # we should not choose a depcomp mode which is confused by this.
7002 #
7003 # We need to recreate these files for each test, as the compiler may
7004 # overwrite some of them when testing with obscure command lines.
7005 # This happens at least with the AIX C compiler.
7006 : > sub/conftest.c
7007 for i in 1 2 3 4 5 6; do
7008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007009 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7010 # Solaris 10 /bin/sh.
7011 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007012 done
7013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7014
cristyc0890a62012-07-19 00:18:20 +00007015 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007016 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007017 # handle '-M -o', and we need to detect this. Also, some Intel
7018 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007019 am__obj=sub/conftest.${OBJEXT-o}
7020 am__minus_obj="-o $am__obj"
7021 case $depmode in
7022 gcc)
7023 # This depmode causes a compiler race in universal mode.
7024 test "$am__universal" = false || continue
7025 ;;
7026 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007027 # After this tag, mechanisms are not by side-effect, so they'll
7028 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007029 if test "x$enable_dependency_tracking" = xyes; then
7030 continue
7031 else
7032 break
7033 fi
7034 ;;
cristy7247bba2012-02-05 16:37:27 +00007035 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007036 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007037 # not run yet. These depmodes are late enough in the game, and
7038 # so weak that their functioning should not be impacted.
7039 am__obj=conftest.${OBJEXT-o}
7040 am__minus_obj=
7041 ;;
7042 none) break ;;
7043 esac
7044 if depmode=$depmode \
7045 source=sub/conftest.c object=$am__obj \
7046 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7047 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7048 >/dev/null 2>conftest.err &&
7049 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7050 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7051 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7053 # icc doesn't choke on unknown options, it will just issue warnings
7054 # or remarks (even with -Werror). So we grep stderr for any message
7055 # that says an option was ignored or not supported.
7056 # When given -MP, icc 7.0 and 7.1 complain thusly:
7057 # icc: Command line warning: ignoring option '-M'; no argument required
7058 # The diagnosis changed in icc 8.0:
7059 # icc: Command line remark: option '-MP' not supported
7060 if (grep 'ignoring option' conftest.err ||
7061 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7062 am_cv_CXX_dependencies_compiler_type=$depmode
7063 break
7064 fi
7065 fi
7066 done
7067
7068 cd ..
7069 rm -rf conftest.dir
7070else
7071 am_cv_CXX_dependencies_compiler_type=none
7072fi
7073
7074fi
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7076$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7077CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7078
7079 if
7080 test "x$enable_dependency_tracking" != xno \
7081 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7082 am__fastdepCXX_TRUE=
7083 am__fastdepCXX_FALSE='#'
7084else
7085 am__fastdepCXX_TRUE='#'
7086 am__fastdepCXX_FALSE=
7087fi
7088
7089
cristy8b350f62009-11-15 23:12:43 +00007090 case $ac_cv_prog_cc_stdc in #(
7091 no) :
7092 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7093 *) :
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007095$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007096if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007097 $as_echo_n "(cached) " >&6
7098else
7099 ac_cv_prog_cc_c99=no
7100ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007102/* end confdefs.h. */
7103#include <stdarg.h>
7104#include <stdbool.h>
7105#include <stdlib.h>
7106#include <wchar.h>
7107#include <stdio.h>
7108
7109// Check varargs macros. These examples are taken from C99 6.10.3.5.
7110#define debug(...) fprintf (stderr, __VA_ARGS__)
7111#define showlist(...) puts (#__VA_ARGS__)
7112#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7113static void
7114test_varargs_macros (void)
7115{
7116 int x = 1234;
7117 int y = 5678;
7118 debug ("Flag");
7119 debug ("X = %d\n", x);
7120 showlist (The first, second, and third items.);
7121 report (x>y, "x is %d but y is %d", x, y);
7122}
7123
7124// Check long long types.
7125#define BIG64 18446744073709551615ull
7126#define BIG32 4294967295ul
7127#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7128#if !BIG_OK
7129 your preprocessor is broken;
7130#endif
7131#if BIG_OK
7132#else
7133 your preprocessor is broken;
7134#endif
7135static long long int bignum = -9223372036854775807LL;
7136static unsigned long long int ubignum = BIG64;
7137
7138struct incomplete_array
7139{
7140 int datasize;
7141 double data[];
7142};
7143
7144struct named_init {
7145 int number;
7146 const wchar_t *name;
7147 double average;
7148};
7149
7150typedef const char *ccp;
7151
7152static inline int
7153test_restrict (ccp restrict text)
7154{
7155 // See if C++-style comments work.
7156 // Iterate through items via the restricted pointer.
7157 // Also check for declarations in for loops.
7158 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7159 continue;
7160 return 0;
7161}
7162
7163// Check varargs and va_copy.
7164static void
7165test_varargs (const char *format, ...)
7166{
7167 va_list args;
7168 va_start (args, format);
7169 va_list args_copy;
7170 va_copy (args_copy, args);
7171
7172 const char *str;
7173 int number;
7174 float fnumber;
7175
7176 while (*format)
7177 {
7178 switch (*format++)
7179 {
7180 case 's': // string
7181 str = va_arg (args_copy, const char *);
7182 break;
7183 case 'd': // int
7184 number = va_arg (args_copy, int);
7185 break;
7186 case 'f': // float
7187 fnumber = va_arg (args_copy, double);
7188 break;
7189 default:
7190 break;
7191 }
7192 }
7193 va_end (args_copy);
7194 va_end (args);
7195}
7196
7197int
7198main ()
7199{
7200
7201 // Check bool.
7202 _Bool success = false;
7203
7204 // Check restrict.
7205 if (test_restrict ("String literal") == 0)
7206 success = true;
7207 char *restrict newvar = "Another string";
7208
7209 // Check varargs.
7210 test_varargs ("s, d' f .", "string", 65, 34.234);
7211 test_varargs_macros ();
7212
7213 // Check flexible array members.
7214 struct incomplete_array *ia =
7215 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7216 ia->datasize = 10;
7217 for (int i = 0; i < ia->datasize; ++i)
7218 ia->data[i] = i * 1.234;
7219
7220 // Check named initializers.
7221 struct named_init ni = {
7222 .number = 34,
7223 .name = L"Test wide string",
7224 .average = 543.34343,
7225 };
7226
7227 ni.number = 58;
7228
7229 int dynamic_array[ni.number];
7230 dynamic_array[ni.number - 1] = 543;
7231
7232 // work around unused variable warnings
7233 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7234 || dynamic_array[ni.number - 1] != 543);
7235
7236 ;
7237 return 0;
7238}
7239_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007240for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007241do
7242 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007243 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007244 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007245fi
cristy3ed852e2009-09-05 21:47:34 +00007246rm -f core conftest.err conftest.$ac_objext
7247 test "x$ac_cv_prog_cc_c99" != "xno" && break
7248done
7249rm -f conftest.$ac_ext
7250CC=$ac_save_CC
7251
7252fi
7253# AC_CACHE_VAL
7254case "x$ac_cv_prog_cc_c99" in
7255 x)
cristy8b350f62009-11-15 23:12:43 +00007256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007257$as_echo "none needed" >&6; } ;;
7258 xno)
cristy8b350f62009-11-15 23:12:43 +00007259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007260$as_echo "unsupported" >&6; } ;;
7261 *)
7262 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007264$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7265esac
cristy8b350f62009-11-15 23:12:43 +00007266if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007267 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7268else
cristy8b350f62009-11-15 23:12:43 +00007269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007270$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007271if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007272 $as_echo_n "(cached) " >&6
7273else
7274 ac_cv_prog_cc_c89=no
7275ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007277/* end confdefs.h. */
7278#include <stdarg.h>
7279#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007280struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007281/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7282struct buf { int x; };
7283FILE * (*rcsopen) (struct buf *, struct stat *, int);
7284static char *e (p, i)
7285 char **p;
7286 int i;
7287{
7288 return p[i];
7289}
7290static char *f (char * (*g) (char **, int), char **p, ...)
7291{
7292 char *s;
7293 va_list v;
7294 va_start (v,p);
7295 s = g (p, va_arg (v,int));
7296 va_end (v);
7297 return s;
7298}
7299
7300/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7301 function prototypes and stuff, but not '\xHH' hex character constants.
7302 These don't provoke an error unfortunately, instead are silently treated
7303 as 'x'. The following induces an error, until -std is added to get
7304 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7305 array size at least. It's necessary to write '\x00'==0 to get something
7306 that's true only with -std. */
7307int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7308
7309/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7310 inside strings and character constants. */
7311#define FOO(x) 'x'
7312int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7313
7314int test (int i, double x);
7315struct s1 {int (*f) (int a);};
7316struct s2 {int (*f) (double a);};
7317int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7318int argc;
7319char **argv;
7320int
7321main ()
7322{
7323return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7324 ;
7325 return 0;
7326}
7327_ACEOF
7328for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7329 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7330do
7331 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007332 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007333 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007334fi
cristy3ed852e2009-09-05 21:47:34 +00007335rm -f core conftest.err conftest.$ac_objext
7336 test "x$ac_cv_prog_cc_c89" != "xno" && break
7337done
7338rm -f conftest.$ac_ext
7339CC=$ac_save_CC
7340
7341fi
7342# AC_CACHE_VAL
7343case "x$ac_cv_prog_cc_c89" in
7344 x)
cristy8b350f62009-11-15 23:12:43 +00007345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007346$as_echo "none needed" >&6; } ;;
7347 xno)
cristy8b350f62009-11-15 23:12:43 +00007348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007349$as_echo "unsupported" >&6; } ;;
7350 *)
7351 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007353$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7354esac
cristy8b350f62009-11-15 23:12:43 +00007355if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007356 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7357else
7358 ac_cv_prog_cc_stdc=no
7359fi
7360
cristy3ed852e2009-09-05 21:47:34 +00007361fi
cristy3ed852e2009-09-05 21:47:34 +00007362 ;;
7363esac
cristy8b350f62009-11-15 23:12:43 +00007364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007365$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007366 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007367 $as_echo_n "(cached) " >&6
7368fi
7369
cristy8b350f62009-11-15 23:12:43 +00007370 case $ac_cv_prog_cc_stdc in #(
7371 no) :
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7373$as_echo "unsupported" >&6; } ;; #(
7374 '') :
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7376$as_echo "none needed" >&6; } ;; #(
7377 *) :
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007379$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7380esac
7381
cristy3ed852e2009-09-05 21:47:34 +00007382ac_ext=c
7383ac_cpp='$CPP $CPPFLAGS'
7384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007388$as_echo_n "checking how to run the C preprocessor... " >&6; }
7389# On Suns, sometimes $CPP names a directory.
7390if test -n "$CPP" && test -d "$CPP"; then
7391 CPP=
7392fi
7393if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007394 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007395 $as_echo_n "(cached) " >&6
7396else
7397 # Double quotes because CPP needs to be expanded
7398 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7399 do
7400 ac_preproc_ok=false
7401for ac_c_preproc_warn_flag in '' yes
7402do
7403 # Use a header file that comes with gcc, so configuring glibc
7404 # with a fresh cross-compiler works.
7405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7406 # <limits.h> exists even on freestanding compilers.
7407 # On the NeXT, cc -E runs the code through the compiler's parser,
7408 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007410/* end confdefs.h. */
7411#ifdef __STDC__
7412# include <limits.h>
7413#else
7414# include <assert.h>
7415#endif
7416 Syntax error
7417_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007418if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007419
cristy8b350f62009-11-15 23:12:43 +00007420else
cristy3ed852e2009-09-05 21:47:34 +00007421 # Broken: fails on valid input.
7422continue
7423fi
cristyda16f162011-02-19 23:52:17 +00007424rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007425
7426 # OK, works on sane cases. Now check whether nonexistent headers
7427 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007429/* end confdefs.h. */
7430#include <ac_nonexistent.h>
7431_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007432if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007433 # Broken: success on invalid input.
7434continue
7435else
cristy3ed852e2009-09-05 21:47:34 +00007436 # Passes both tests.
7437ac_preproc_ok=:
7438break
7439fi
cristyda16f162011-02-19 23:52:17 +00007440rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007441
7442done
7443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007444rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007445if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007446 break
7447fi
7448
7449 done
7450 ac_cv_prog_CPP=$CPP
7451
7452fi
7453 CPP=$ac_cv_prog_CPP
7454else
7455 ac_cv_prog_CPP=$CPP
7456fi
cristy8b350f62009-11-15 23:12:43 +00007457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007458$as_echo "$CPP" >&6; }
7459ac_preproc_ok=false
7460for ac_c_preproc_warn_flag in '' yes
7461do
7462 # Use a header file that comes with gcc, so configuring glibc
7463 # with a fresh cross-compiler works.
7464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7465 # <limits.h> exists even on freestanding compilers.
7466 # On the NeXT, cc -E runs the code through the compiler's parser,
7467 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007469/* end confdefs.h. */
7470#ifdef __STDC__
7471# include <limits.h>
7472#else
7473# include <assert.h>
7474#endif
7475 Syntax error
7476_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007477if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007478
cristy8b350f62009-11-15 23:12:43 +00007479else
cristy3ed852e2009-09-05 21:47:34 +00007480 # Broken: fails on valid input.
7481continue
7482fi
cristyda16f162011-02-19 23:52:17 +00007483rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007484
7485 # OK, works on sane cases. Now check whether nonexistent headers
7486 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007488/* end confdefs.h. */
7489#include <ac_nonexistent.h>
7490_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007491if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007492 # Broken: success on invalid input.
7493continue
7494else
cristy3ed852e2009-09-05 21:47:34 +00007495 # Passes both tests.
7496ac_preproc_ok=:
7497break
7498fi
cristyda16f162011-02-19 23:52:17 +00007499rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007500
7501done
7502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007503rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007504if $ac_preproc_ok; then :
7505
cristy3ed852e2009-09-05 21:47:34 +00007506else
cristy8b350f62009-11-15 23:12:43 +00007507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007509as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7510See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007511fi
7512
7513ac_ext=c
7514ac_cpp='$CPP $CPPFLAGS'
7515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7517ac_compiler_gnu=$ac_cv_c_compiler_gnu
7518
cristy73bd4a52010-10-05 11:24:23 +00007519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7520$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007521if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007522 $as_echo_n "(cached) " >&6
7523else
7524 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7525 for ac_i in 1 2 3 4 5 6 7; do
7526 ac_script="$ac_script$as_nl$ac_script"
7527 done
7528 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7529 { ac_script=; unset ac_script;}
7530 if test -z "$SED"; then
7531 ac_path_SED_found=false
7532 # Loop through the user's path and test for each of PROGNAME-LIST
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534for as_dir in $PATH
7535do
7536 IFS=$as_save_IFS
7537 test -z "$as_dir" && as_dir=.
7538 for ac_prog in sed gsed; do
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007541 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007542# Check for GNU ac_path_SED and select it if it is found.
7543 # Check for GNU $ac_path_SED
7544case `"$ac_path_SED" --version 2>&1` in
7545*GNU*)
7546 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7547*)
7548 ac_count=0
7549 $as_echo_n 0123456789 >"conftest.in"
7550 while :
7551 do
7552 cat "conftest.in" "conftest.in" >"conftest.tmp"
7553 mv "conftest.tmp" "conftest.in"
7554 cp "conftest.in" "conftest.nl"
7555 $as_echo '' >> "conftest.nl"
7556 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7558 as_fn_arith $ac_count + 1 && ac_count=$as_val
7559 if test $ac_count -gt ${ac_path_SED_max-0}; then
7560 # Best one so far, save it but keep looking for a better one
7561 ac_cv_path_SED="$ac_path_SED"
7562 ac_path_SED_max=$ac_count
7563 fi
7564 # 10*(2^10) chars as input seems more than enough
7565 test $ac_count -gt 10 && break
7566 done
7567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7568esac
7569
7570 $ac_path_SED_found && break 3
7571 done
7572 done
7573 done
7574IFS=$as_save_IFS
7575 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007576 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007577 fi
7578else
7579 ac_cv_path_SED=$SED
7580fi
7581
7582fi
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7584$as_echo "$ac_cv_path_SED" >&6; }
7585 SED="$ac_cv_path_SED"
7586 rm -f conftest.sed
7587
7588test -z "$SED" && SED=sed
7589Xsed="$SED -e 1s/^X//"
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7602$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007603if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007604 $as_echo_n "(cached) " >&6
7605else
7606 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7607 then ac_cv_path_FGREP="$GREP -F"
7608 else
7609 if test -z "$FGREP"; then
7610 ac_path_FGREP_found=false
7611 # Loop through the user's path and test for each of PROGNAME-LIST
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7614do
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_prog in fgrep; do
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007620 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007621# Check for GNU ac_path_FGREP and select it if it is found.
7622 # Check for GNU $ac_path_FGREP
7623case `"$ac_path_FGREP" --version 2>&1` in
7624*GNU*)
7625 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7626*)
7627 ac_count=0
7628 $as_echo_n 0123456789 >"conftest.in"
7629 while :
7630 do
7631 cat "conftest.in" "conftest.in" >"conftest.tmp"
7632 mv "conftest.tmp" "conftest.in"
7633 cp "conftest.in" "conftest.nl"
7634 $as_echo 'FGREP' >> "conftest.nl"
7635 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7637 as_fn_arith $ac_count + 1 && ac_count=$as_val
7638 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7639 # Best one so far, save it but keep looking for a better one
7640 ac_cv_path_FGREP="$ac_path_FGREP"
7641 ac_path_FGREP_max=$ac_count
7642 fi
7643 # 10*(2^10) chars as input seems more than enough
7644 test $ac_count -gt 10 && break
7645 done
7646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7647esac
7648
7649 $ac_path_FGREP_found && break 3
7650 done
7651 done
7652 done
7653IFS=$as_save_IFS
7654 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007655 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007656 fi
7657else
7658 ac_cv_path_FGREP=$FGREP
7659fi
7660
7661 fi
7662fi
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7664$as_echo "$ac_cv_path_FGREP" >&6; }
7665 FGREP="$ac_cv_path_FGREP"
7666
7667
7668test -z "$GREP" && GREP=grep
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
cristy0c60a692010-11-04 01:09:47 +00007686ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7687ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7688ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7689
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7691$as_echo_n "checking how to print strings... " >&6; }
7692# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007693if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007694 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7695 ECHO='print -r --'
7696elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7697 ECHO='printf %s\n'
7698else
7699 # Use this function as a fallback that always works.
7700 func_fallback_echo ()
7701 {
7702 eval 'cat <<_LTECHO_EOF
7703$1
7704_LTECHO_EOF'
7705 }
7706 ECHO='func_fallback_echo'
7707fi
7708
7709# func_echo_all arg...
7710# Invoke $ECHO with all args, space-separated.
7711func_echo_all ()
7712{
7713 $ECHO ""
7714}
7715
7716case "$ECHO" in
7717 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7718$as_echo "printf" >&6; } ;;
7719 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7720$as_echo "print -r" >&6; } ;;
7721 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7722$as_echo "cat" >&6; } ;;
7723esac
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
cristy73bd4a52010-10-05 11:24:23 +00007738
7739
7740# Check whether --with-gnu-ld was given.
7741if test "${with_gnu_ld+set}" = set; then :
7742 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7743else
7744 with_gnu_ld=no
7745fi
7746
7747ac_prog=ld
7748if test "$GCC" = yes; then
7749 # Check if gcc -print-prog-name=ld gives a path.
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7751$as_echo_n "checking for ld used by $CC... " >&6; }
7752 case $host in
7753 *-*-mingw*)
7754 # gcc leaves a trailing carriage return which upsets mingw
7755 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7756 *)
7757 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7758 esac
7759 case $ac_prog in
7760 # Accept absolute paths.
7761 [\\/]* | ?:[\\/]*)
7762 re_direlt='/[^/][^/]*/\.\./'
7763 # Canonicalize the pathname of ld
7764 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7765 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7766 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7767 done
7768 test -z "$LD" && LD="$ac_prog"
7769 ;;
7770 "")
7771 # If it fails, then pretend we aren't using GCC.
7772 ac_prog=ld
7773 ;;
7774 *)
7775 # If it is relative, then search for the first ld in PATH.
7776 with_gnu_ld=unknown
7777 ;;
7778 esac
7779elif test "$with_gnu_ld" = yes; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7781$as_echo_n "checking for GNU ld... " >&6; }
7782else
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7784$as_echo_n "checking for non-GNU ld... " >&6; }
7785fi
cristyda16f162011-02-19 23:52:17 +00007786if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007787 $as_echo_n "(cached) " >&6
7788else
7789 if test -z "$LD"; then
7790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7791 for ac_dir in $PATH; do
7792 IFS="$lt_save_ifs"
7793 test -z "$ac_dir" && ac_dir=.
7794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7795 lt_cv_path_LD="$ac_dir/$ac_prog"
7796 # Check to see if the program is GNU ld. I'd rather use --version,
7797 # but apparently some variants of GNU ld only accept -v.
7798 # Break only if it was the GNU/non-GNU ld that we prefer.
7799 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7800 *GNU* | *'with BFD'*)
7801 test "$with_gnu_ld" != no && break
7802 ;;
7803 *)
7804 test "$with_gnu_ld" != yes && break
7805 ;;
7806 esac
7807 fi
7808 done
7809 IFS="$lt_save_ifs"
7810else
7811 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7812fi
7813fi
7814
7815LD="$lt_cv_path_LD"
7816if test -n "$LD"; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7818$as_echo "$LD" >&6; }
7819else
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821$as_echo "no" >&6; }
7822fi
cristy98dddb52010-11-04 00:30:15 +00007823test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7825$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007826if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007827 $as_echo_n "(cached) " >&6
7828else
7829 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7830case `$LD -v 2>&1 </dev/null` in
7831*GNU* | *'with BFD'*)
7832 lt_cv_prog_gnu_ld=yes
7833 ;;
7834*)
7835 lt_cv_prog_gnu_ld=no
7836 ;;
7837esac
7838fi
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7840$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7841with_gnu_ld=$lt_cv_prog_gnu_ld
7842
7843
7844
7845
7846
7847
7848
7849
7850
cristy3ed852e2009-09-05 21:47:34 +00007851
cristy837d6dc2010-02-27 01:16:57 +00007852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7853$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007854if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007855 $as_echo_n "(cached) " >&6
7856else
7857 ac_cv_prog_cc_c99=no
7858ac_save_CC=$CC
7859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860/* end confdefs.h. */
7861#include <stdarg.h>
7862#include <stdbool.h>
7863#include <stdlib.h>
7864#include <wchar.h>
7865#include <stdio.h>
7866
7867// Check varargs macros. These examples are taken from C99 6.10.3.5.
7868#define debug(...) fprintf (stderr, __VA_ARGS__)
7869#define showlist(...) puts (#__VA_ARGS__)
7870#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7871static void
7872test_varargs_macros (void)
7873{
7874 int x = 1234;
7875 int y = 5678;
7876 debug ("Flag");
7877 debug ("X = %d\n", x);
7878 showlist (The first, second, and third items.);
7879 report (x>y, "x is %d but y is %d", x, y);
7880}
7881
7882// Check long long types.
7883#define BIG64 18446744073709551615ull
7884#define BIG32 4294967295ul
7885#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7886#if !BIG_OK
7887 your preprocessor is broken;
7888#endif
7889#if BIG_OK
7890#else
7891 your preprocessor is broken;
7892#endif
7893static long long int bignum = -9223372036854775807LL;
7894static unsigned long long int ubignum = BIG64;
7895
7896struct incomplete_array
7897{
7898 int datasize;
7899 double data[];
7900};
7901
7902struct named_init {
7903 int number;
7904 const wchar_t *name;
7905 double average;
7906};
7907
7908typedef const char *ccp;
7909
7910static inline int
7911test_restrict (ccp restrict text)
7912{
7913 // See if C++-style comments work.
7914 // Iterate through items via the restricted pointer.
7915 // Also check for declarations in for loops.
7916 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7917 continue;
7918 return 0;
7919}
7920
7921// Check varargs and va_copy.
7922static void
7923test_varargs (const char *format, ...)
7924{
7925 va_list args;
7926 va_start (args, format);
7927 va_list args_copy;
7928 va_copy (args_copy, args);
7929
7930 const char *str;
7931 int number;
7932 float fnumber;
7933
7934 while (*format)
7935 {
7936 switch (*format++)
7937 {
7938 case 's': // string
7939 str = va_arg (args_copy, const char *);
7940 break;
7941 case 'd': // int
7942 number = va_arg (args_copy, int);
7943 break;
7944 case 'f': // float
7945 fnumber = va_arg (args_copy, double);
7946 break;
7947 default:
7948 break;
7949 }
7950 }
7951 va_end (args_copy);
7952 va_end (args);
7953}
7954
7955int
7956main ()
7957{
7958
7959 // Check bool.
7960 _Bool success = false;
7961
7962 // Check restrict.
7963 if (test_restrict ("String literal") == 0)
7964 success = true;
7965 char *restrict newvar = "Another string";
7966
7967 // Check varargs.
7968 test_varargs ("s, d' f .", "string", 65, 34.234);
7969 test_varargs_macros ();
7970
7971 // Check flexible array members.
7972 struct incomplete_array *ia =
7973 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7974 ia->datasize = 10;
7975 for (int i = 0; i < ia->datasize; ++i)
7976 ia->data[i] = i * 1.234;
7977
7978 // Check named initializers.
7979 struct named_init ni = {
7980 .number = 34,
7981 .name = L"Test wide string",
7982 .average = 543.34343,
7983 };
7984
7985 ni.number = 58;
7986
7987 int dynamic_array[ni.number];
7988 dynamic_array[ni.number - 1] = 543;
7989
7990 // work around unused variable warnings
7991 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7992 || dynamic_array[ni.number - 1] != 543);
7993
7994 ;
7995 return 0;
7996}
7997_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007998for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007999do
8000 CC="$ac_save_CC $ac_arg"
8001 if ac_fn_c_try_compile "$LINENO"; then :
8002 ac_cv_prog_cc_c99=$ac_arg
8003fi
8004rm -f core conftest.err conftest.$ac_objext
8005 test "x$ac_cv_prog_cc_c99" != "xno" && break
8006done
8007rm -f conftest.$ac_ext
8008CC=$ac_save_CC
8009
8010fi
8011# AC_CACHE_VAL
8012case "x$ac_cv_prog_cc_c99" in
8013 x)
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8015$as_echo "none needed" >&6; } ;;
8016 xno)
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8018$as_echo "unsupported" >&6; } ;;
8019 *)
8020 CC="$CC $ac_cv_prog_cc_c99"
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8022$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8023esac
8024if test "x$ac_cv_prog_cc_c99" != xno; then :
8025
8026fi
8027
8028
cristy73bd4a52010-10-05 11:24:23 +00008029
cristy17491be2014-06-24 01:10:53 +00008030ac_ext=c
8031ac_cpp='$CPP $CPPFLAGS'
8032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034ac_compiler_gnu=$ac_cv_c_compiler_gnu
8035
cristy73bd4a52010-10-05 11:24:23 +00008036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8037$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008038if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008039 $as_echo_n "(cached) " >&6
8040else
8041 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008042ac_save_CFLAGS="$CFLAGS"
8043for ac_arg in "-warn all % -warn all" "-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" #
cristy73bd4a52010-10-05 11:24:23 +00008044do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046/* end confdefs.h. */
8047
8048int
8049main ()
8050{
cristy24fc1fe2010-10-23 21:13:01 +00008051
cristy73bd4a52010-10-05 11:24:23 +00008052 ;
8053 return 0;
8054}
8055_ACEOF
8056if ac_fn_c_try_compile "$LINENO"; then :
8057 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8058fi
8059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060done
cristy17491be2014-06-24 01:10:53 +00008061CFLAGS="$ac_save_CFLAGS"
8062
8063fi
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8065$as_echo "$ac_cv_cflags_warn_all" >&6; }
8066
8067
8068case ".$ac_cv_cflags_warn_all" in
8069 .ok|.ok,*) ;;
8070 .|.no|.no,*) ;;
8071 *) if ${CFLAGS+:} false; then :
8072 case " $CFLAGS " in
8073 *" $ac_cv_cflags_warn_all "*)
8074 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8075 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8076 ac_status=$?
8077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8078 test $ac_status = 0; }
8079 ;;
8080 *)
8081 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8082 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8083 ac_status=$?
8084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8085 test $ac_status = 0; }
8086 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8087 ;;
8088 esac
8089else
8090 CFLAGS="$ac_cv_cflags_warn_all"
8091fi
8092 ;;
8093esac
8094
8095ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008096ac_cpp='$CPP $CPPFLAGS'
8097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8099ac_compiler_gnu=$ac_cv_c_compiler_gnu
8100
8101
cristya0b81c32010-01-22 02:54:33 +00008102
8103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8104$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8105set x ${MAKE-make}
8106ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008107if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008108 $as_echo_n "(cached) " >&6
8109else
8110 cat >conftest.make <<\_ACEOF
8111SHELL = /bin/sh
8112all:
8113 @echo '@@@%%%=$(MAKE)=@@@%%%'
8114_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008115# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008116case `${MAKE-make} -f conftest.make 2>/dev/null` in
8117 *@@@%%%=?*=@@@%%%*)
8118 eval ac_cv_prog_make_${ac_make}_set=yes;;
8119 *)
8120 eval ac_cv_prog_make_${ac_make}_set=no;;
8121esac
8122rm -f conftest.make
8123fi
8124if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8126$as_echo "yes" >&6; }
8127 SET_MAKE=
8128else
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130$as_echo "no" >&6; }
8131 SET_MAKE="MAKE=${MAKE-make}"
8132fi
8133
cristy8b350f62009-11-15 23:12:43 +00008134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008135$as_echo_n "checking whether ln -s works... " >&6; }
8136LN_S=$as_ln_s
8137if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008139$as_echo "yes" >&6; }
8140else
cristy8b350f62009-11-15 23:12:43 +00008141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008142$as_echo "no, using $LN_S" >&6; }
8143fi
8144
cristy8d0ff762013-03-10 20:33:28 +00008145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8146$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8147if ${ac_cv_path_SED+:} false; then :
8148 $as_echo_n "(cached) " >&6
8149else
8150 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8151 for ac_i in 1 2 3 4 5 6 7; do
8152 ac_script="$ac_script$as_nl$ac_script"
8153 done
8154 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8155 { ac_script=; unset ac_script;}
8156 if test -z "$SED"; then
8157 ac_path_SED_found=false
8158 # Loop through the user's path and test for each of PROGNAME-LIST
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160for as_dir in $PATH
8161do
8162 IFS=$as_save_IFS
8163 test -z "$as_dir" && as_dir=.
8164 for ac_prog in sed gsed; do
8165 for ac_exec_ext in '' $ac_executable_extensions; do
8166 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8167 as_fn_executable_p "$ac_path_SED" || continue
8168# Check for GNU ac_path_SED and select it if it is found.
8169 # Check for GNU $ac_path_SED
8170case `"$ac_path_SED" --version 2>&1` in
8171*GNU*)
8172 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8173*)
8174 ac_count=0
8175 $as_echo_n 0123456789 >"conftest.in"
8176 while :
8177 do
8178 cat "conftest.in" "conftest.in" >"conftest.tmp"
8179 mv "conftest.tmp" "conftest.in"
8180 cp "conftest.in" "conftest.nl"
8181 $as_echo '' >> "conftest.nl"
8182 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8184 as_fn_arith $ac_count + 1 && ac_count=$as_val
8185 if test $ac_count -gt ${ac_path_SED_max-0}; then
8186 # Best one so far, save it but keep looking for a better one
8187 ac_cv_path_SED="$ac_path_SED"
8188 ac_path_SED_max=$ac_count
8189 fi
8190 # 10*(2^10) chars as input seems more than enough
8191 test $ac_count -gt 10 && break
8192 done
8193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8194esac
8195
8196 $ac_path_SED_found && break 3
8197 done
8198 done
8199 done
8200IFS=$as_save_IFS
8201 if test -z "$ac_cv_path_SED"; then
8202 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8203 fi
8204else
8205 ac_cv_path_SED=$SED
8206fi
8207
8208fi
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8210$as_echo "$ac_cv_path_SED" >&6; }
8211 SED="$ac_cv_path_SED"
8212 rm -f conftest.sed
8213
cristybc556452012-08-17 19:44:03 +00008214for ac_prog in gawk mawk nawk awk
8215do
8216 # Extract the first word of "$ac_prog", so it can be a program name with args.
8217set dummy $ac_prog; ac_word=$2
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219$as_echo_n "checking for $ac_word... " >&6; }
8220if ${ac_cv_prog_AWK+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222else
8223 if test -n "$AWK"; then
8224 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8225else
8226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227for as_dir in $PATH
8228do
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8233 ac_cv_prog_AWK="$ac_prog"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8236 fi
8237done
8238 done
8239IFS=$as_save_IFS
8240
8241fi
8242fi
8243AWK=$ac_cv_prog_AWK
8244if test -n "$AWK"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8246$as_echo "$AWK" >&6; }
8247else
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249$as_echo "no" >&6; }
8250fi
8251
8252
8253 test -n "$AWK" && break
8254done
8255
cristy73bd4a52010-10-05 11:24:23 +00008256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8257$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8258
8259# Check whether --with-dmalloc was given.
8260if test "${with_dmalloc+set}" = set; then :
8261 withval=$with_dmalloc; if test "$withval" = yes; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8263$as_echo "yes" >&6; }
8264
8265$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8266
8267 LIBS="$LIBS -ldmalloc"
8268 LDFLAGS="$LDFLAGS -g"
8269else
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271$as_echo "no" >&6; }
8272fi
8273else
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275$as_echo "no" >&6; }
8276fi
8277
8278
8279
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8281$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008282if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008283 $as_echo_n "(cached) " >&6
8284else
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286/* end confdefs.h. */
8287#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008288 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008289 static void
8290 foo(void) {
8291 exit(1);
8292 }
8293
8294int
8295main ()
8296{
8297
8298 ;
8299 return 0;
8300}
8301_ACEOF
8302if ac_fn_c_try_compile "$LINENO"; then :
8303 ax_cv___attribute__=yes
8304else
8305 ax_cv___attribute__=no
8306
8307fi
8308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309
8310fi
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8312$as_echo "$ax_cv___attribute__" >&6; }
8313 if test "$ax_cv___attribute__" = "yes"; then
8314
8315$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8316
8317 fi
8318
8319
8320
cristya0459972013-11-03 18:09:35 +00008321
8322
cristy17491be2014-06-24 01:10:53 +00008323
cristya0459972013-11-03 18:09:35 +00008324# Check whether --with-gcc-arch was given.
8325if test "${with_gcc_arch+set}" = set; then :
8326 withval=$with_gcc_arch; ax_gcc_arch=$withval
8327else
cristy17491be2014-06-24 01:10:53 +00008328 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008329fi
8330
8331
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8333$as_echo_n "checking for gcc architecture flag... " >&6; }
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8335$as_echo "" >&6; }
8336if ${ax_cv_gcc_archflag+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338else
8339
8340ax_cv_gcc_archflag="unknown"
8341
8342if test "$GCC" = yes; then
8343
8344if test "x$ax_gcc_arch" = xyes; then
8345ax_gcc_arch=""
8346if test "$cross_compiling" = no; then
8347case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008348 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008349
8350ac_ext=c
8351ac_cpp='$CPP $CPPFLAGS'
8352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8354ac_compiler_gnu=$ac_cv_c_compiler_gnu
8355
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8357$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8358if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360else
8361 if test "$cross_compiling" = yes; then :
8362 ax_cv_gcc_x86_cpuid_0=unknown
8363else
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365/* end confdefs.h. */
8366#include <stdio.h>
8367int
8368main ()
8369{
8370
8371 int op = 0, eax, ebx, ecx, edx;
8372 FILE *f;
8373 __asm__("cpuid"
8374 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8375 : "a" (op));
8376 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8377 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8378 fclose(f);
8379 return 0;
8380
8381 ;
8382 return 0;
8383}
8384_ACEOF
8385if ac_fn_c_try_run "$LINENO"; then :
8386 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8387else
8388 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8389fi
8390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8391 conftest.$ac_objext conftest.beam conftest.$ac_ext
8392fi
8393
8394fi
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8396$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8397ac_ext=c
8398ac_cpp='$CPP $CPPFLAGS'
8399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8401ac_compiler_gnu=$ac_cv_c_compiler_gnu
8402
8403
8404
8405ac_ext=c
8406ac_cpp='$CPP $CPPFLAGS'
8407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8409ac_compiler_gnu=$ac_cv_c_compiler_gnu
8410
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8412$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8413if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415else
8416 if test "$cross_compiling" = yes; then :
8417 ax_cv_gcc_x86_cpuid_1=unknown
8418else
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420/* end confdefs.h. */
8421#include <stdio.h>
8422int
8423main ()
8424{
8425
8426 int op = 1, eax, ebx, ecx, edx;
8427 FILE *f;
8428 __asm__("cpuid"
8429 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8430 : "a" (op));
8431 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8432 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8433 fclose(f);
8434 return 0;
8435
8436 ;
8437 return 0;
8438}
8439_ACEOF
8440if ac_fn_c_try_run "$LINENO"; then :
8441 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8442else
8443 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8444fi
8445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8446 conftest.$ac_objext conftest.beam conftest.$ac_ext
8447fi
8448
8449fi
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8451$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8452ac_ext=c
8453ac_cpp='$CPP $CPPFLAGS'
8454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8456ac_compiler_gnu=$ac_cv_c_compiler_gnu
8457
8458
8459 case $ax_cv_gcc_x86_cpuid_0 in
8460 *:756e6547:*:*) # Intel
8461 case $ax_cv_gcc_x86_cpuid_1 in
8462 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8463 *5??:*:*:*) ax_gcc_arch=pentium ;;
cristya0459972013-11-03 18:09:35 +00008464 *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" ;;
cristy17491be2014-06-24 01:10:53 +00008468 *[1-9a-f]?6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8469 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8470 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8471 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8472 *6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8473 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8474 *6f?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8475 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8476 *f3[347]:*:*:*|*f41347:*:*:*|*f6?:*:*:*)
cristya0459972013-11-03 18:09:35 +00008477 case $host_cpu in
8478 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8479 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8480 esac ;;
cristy17491be2014-06-24 01:10:53 +00008481 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
cristya0459972013-11-03 18:09:35 +00008482 esac ;;
8483 *:68747541:*:*) # AMD
8484 case $ax_cv_gcc_x86_cpuid_1 in
8485 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8486 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8487 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8488 *60?:*:*:*) ax_gcc_arch=k7 ;;
8489 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8490 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8491 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8492 *6[68a]?:*:*:*)
8493
8494ac_ext=c
8495ac_cpp='$CPP $CPPFLAGS'
8496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8498ac_compiler_gnu=$ac_cv_c_compiler_gnu
8499
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8501$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8502if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8503 $as_echo_n "(cached) " >&6
8504else
8505 if test "$cross_compiling" = yes; then :
8506 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8507else
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509/* end confdefs.h. */
8510#include <stdio.h>
8511int
8512main ()
8513{
8514
8515 int op = 0x80000006, eax, ebx, ecx, edx;
8516 FILE *f;
8517 __asm__("cpuid"
8518 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8519 : "a" (op));
8520 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8521 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8522 fclose(f);
8523 return 0;
8524
8525 ;
8526 return 0;
8527}
8528_ACEOF
8529if ac_fn_c_try_run "$LINENO"; then :
8530 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8531else
8532 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8533fi
8534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8535 conftest.$ac_objext conftest.beam conftest.$ac_ext
8536fi
8537
8538fi
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8540$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8541ac_ext=c
8542ac_cpp='$CPP $CPPFLAGS'
8543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545ac_compiler_gnu=$ac_cv_c_compiler_gnu
8546
8547 # L2 cache size
8548 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8549 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8550 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8551 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8552 esac ;;
cristy17491be2014-06-24 01:10:53 +00008553 *5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8554 *6??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8555 *[1-9a-f]??f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8556 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8557 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8558 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8559 *f??:*:*:*) ax_gcc_arch="k8" ;;
cristya0459972013-11-03 18:09:35 +00008560 esac ;;
8561 *:746e6543:*:*) # IDT
8562 case $ax_cv_gcc_x86_cpuid_1 in
8563 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8564 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8565 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8566 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8567 esac ;;
8568 esac
8569 if test x"$ax_gcc_arch" = x; then # fallback
8570 case $host_cpu in
8571 i586*) ax_gcc_arch=pentium ;;
8572 i686*) ax_gcc_arch=pentiumpro ;;
8573 esac
8574 fi
8575 ;;
8576
8577 sparc*)
8578 # Extract the first word of "prtdiag", so it can be a program name with args.
8579set dummy prtdiag; ac_word=$2
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581$as_echo_n "checking for $ac_word... " >&6; }
8582if ${ac_cv_path_PRTDIAG+:} false; then :
8583 $as_echo_n "(cached) " >&6
8584else
8585 case $PRTDIAG in
8586 [\\/]* | ?:[\\/]*)
8587 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8588 ;;
8589 *)
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8592for as_dir in $as_dummy
8593do
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8598 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 break 2
8601 fi
8602done
8603 done
8604IFS=$as_save_IFS
8605
8606 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8607 ;;
8608esac
8609fi
8610PRTDIAG=$ac_cv_path_PRTDIAG
8611if test -n "$PRTDIAG"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8613$as_echo "$PRTDIAG" >&6; }
8614else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616$as_echo "no" >&6; }
8617fi
8618
8619
8620 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`
cristy17491be2014-06-24 01:10:53 +00008621 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008622 case $cputype in
8623 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8624 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8625 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8626 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8627 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8628 *cypress*) ax_gcc_arch=cypress ;;
8629 esac ;;
8630
8631 alphaev5) ax_gcc_arch=ev5 ;;
8632 alphaev56) ax_gcc_arch=ev56 ;;
8633 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8634 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8635 alphaev6) ax_gcc_arch=ev6 ;;
8636 alphaev67) ax_gcc_arch=ev67 ;;
8637 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8638 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8639 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8640 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8641
8642 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008643 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`
8644 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008645 case $cputype in
8646 *750*) ax_gcc_arch="750 G3" ;;
8647 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8648 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8649 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8650 *970*) ax_gcc_arch="970 G5 power4";;
8651 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8652 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8653 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8654 *) ax_gcc_arch=$cputype ;;
8655 esac
8656 ax_gcc_arch="$ax_gcc_arch powerpc"
8657 ;;
8658esac
8659fi # not cross-compiling
8660fi # guess arch
8661
8662if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8663for arch in $ax_gcc_arch; do
8664 if test "xno" = xyes; then # if we require portable code
8665 flags="-mtune=$arch"
8666 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8667 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8668 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8669 else
8670 flags="-march=$arch -mcpu=$arch -m$arch"
8671 fi
8672 for flag in $flags; do
8673 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8675$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8676if eval \${$as_CACHEVAR+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678else
8679
8680 ax_check_save_flags=$CFLAGS
8681 CFLAGS="$CFLAGS $flag"
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683/* end confdefs.h. */
8684
8685int
8686main ()
8687{
8688
8689 ;
8690 return 0;
8691}
8692_ACEOF
8693if ac_fn_c_try_compile "$LINENO"; then :
8694 eval "$as_CACHEVAR=yes"
8695else
8696 eval "$as_CACHEVAR=no"
8697fi
8698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 CFLAGS=$ax_check_save_flags
8700fi
8701eval ac_res=\$$as_CACHEVAR
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8703$as_echo "$ac_res" >&6; }
8704if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8705 ax_cv_gcc_archflag=$flag; break
8706else
8707 :
8708fi
8709
8710 done
8711 test "x$ax_cv_gcc_archflag" = xunknown || break
8712done
8713fi
8714
8715fi # $GCC=yes
8716
8717fi
8718
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8720$as_echo_n "checking for gcc architecture flag... " >&6; }
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8722$as_echo "$ax_cv_gcc_archflag" >&6; }
8723if test "x$ax_cv_gcc_archflag" = xunknown; then
8724 :
8725else
8726 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8727fi
8728
8729
8730
cristy73bd4a52010-10-05 11:24:23 +00008731if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8732 if test -n "$ac_tool_prefix"; then
8733 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8734set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008737if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008738 $as_echo_n "(cached) " >&6
8739else
8740 case $PKG_CONFIG in
8741 [\\/]* | ?:[\\/]*)
8742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8743 ;;
8744 *)
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008752 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756done
8757 done
8758IFS=$as_save_IFS
8759
8760 ;;
8761esac
8762fi
8763PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8764if test -n "$PKG_CONFIG"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8766$as_echo "$PKG_CONFIG" >&6; }
8767else
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769$as_echo "no" >&6; }
8770fi
8771
8772
8773fi
8774if test -z "$ac_cv_path_PKG_CONFIG"; then
8775 ac_pt_PKG_CONFIG=$PKG_CONFIG
8776 # Extract the first word of "pkg-config", so it can be a program name with args.
8777set dummy pkg-config; ac_word=$2
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008780if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008781 $as_echo_n "(cached) " >&6
8782else
8783 case $ac_pt_PKG_CONFIG in
8784 [\\/]* | ?:[\\/]*)
8785 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8786 ;;
8787 *)
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789for as_dir in $PATH
8790do
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008795 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8798 fi
8799done
8800 done
8801IFS=$as_save_IFS
8802
8803 ;;
8804esac
8805fi
8806ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8807if test -n "$ac_pt_PKG_CONFIG"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8809$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8810else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
8813fi
8814
8815 if test "x$ac_pt_PKG_CONFIG" = x; then
8816 PKG_CONFIG=""
8817 else
8818 case $cross_compiling:$ac_tool_warned in
8819yes:)
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8822ac_tool_warned=yes ;;
8823esac
8824 PKG_CONFIG=$ac_pt_PKG_CONFIG
8825 fi
8826else
8827 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8828fi
8829
8830fi
8831if test -n "$PKG_CONFIG"; then
8832 _pkg_min_version=0.9.0
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8834$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8835 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8837$as_echo "yes" >&6; }
8838 else
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
8841 PKG_CONFIG=""
8842 fi
8843
8844fi
cristy3ed852e2009-09-05 21:47:34 +00008845
cristyd95b7a52013-10-23 13:12:53 +00008846# Test for 64-bit build.
8847# The cast to long int works around a bug in the HP C Compiler
8848# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8849# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8850# This bug is HP SR number 8606223364.
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8852$as_echo_n "checking size of size_t... " >&6; }
8853if ${ac_cv_sizeof_size_t+:} false; then :
8854 $as_echo_n "(cached) " >&6
8855else
8856 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8857
8858else
8859 if test "$ac_cv_type_size_t" = yes; then
8860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8862as_fn_error 77 "cannot compute sizeof (size_t)
8863See \`config.log' for more details" "$LINENO" 5; }
8864 else
8865 ac_cv_sizeof_size_t=0
8866 fi
8867fi
8868
8869fi
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8871$as_echo "$ac_cv_sizeof_size_t" >&6; }
8872
8873
8874
8875cat >>confdefs.h <<_ACEOF
8876#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8877_ACEOF
8878
8879
8880
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8882$as_echo_n "checking for C compiler vendor... " >&6; }
8883if ${ax_cv_c_compiler_vendor+:} false; then :
8884 $as_echo_n "(cached) " >&6
8885else
8886 # note: don't check for gcc first since some other compilers define __GNUC__
8887 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8888 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8889 pathscale: __PATHCC__,__PATHSCALE__
8890 clang: __clang__
cristy17491be2014-06-24 01:10:53 +00008891 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00008892 gnu: __GNUC__
8893 sun: __SUNPRO_C,__SUNPRO_CC
8894 hp: __HP_cc,__HP_aCC
8895 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8896 borland: __BORLANDC__,__TURBOC__
8897 comeau: __COMO__
8898 cray: _CRAYC
8899 kai: __KCC
8900 lcc: __LCC__
8901 sgi: __sgi,sgi
8902 microsoft: _MSC_VER
8903 metrowerks: __MWERKS__
8904 watcom: __WATCOMC__
8905 portland: __PGI
8906 unknown: UNKNOWN"
8907 for ventest in $vendors; do
8908 case $ventest in
8909 *:) vendor=$ventest; continue ;;
8910 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8911 esac
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913/* end confdefs.h. */
8914
8915int
8916main ()
8917{
8918
8919 #if !($vencpp)
8920 thisisanerror;
8921 #endif
8922
8923 ;
8924 return 0;
8925}
8926_ACEOF
8927if ac_fn_c_try_compile "$LINENO"; then :
8928 break
8929fi
8930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 done
8932 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8933
8934fi
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8936$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8937
cristyd95b7a52013-10-23 13:12:53 +00008938# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8939# compiler.
8940if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00008941 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00008942ac_cpp='$CPP $CPPFLAGS'
8943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8945ac_compiler_gnu=$ac_cv_c_compiler_gnu
8946
cristy17491be2014-06-24 01:10:53 +00008947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8948$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8949if ${ac_cv_cflags_warn_all+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951else
8952 ac_cv_cflags_warn_all="no, unknown"
8953ac_save_CFLAGS="$CFLAGS"
8954for ac_arg in "-warn all % -warn all" "-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" #
cristyd95b7a52013-10-23 13:12:53 +00008955do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957/* end confdefs.h. */
8958
8959int
8960main ()
8961{
8962
8963 ;
8964 return 0;
8965}
8966_ACEOF
8967if ac_fn_c_try_compile "$LINENO"; then :
8968 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8969fi
8970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971done
cristy17491be2014-06-24 01:10:53 +00008972CFLAGS="$ac_save_CFLAGS"
8973
8974fi
8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8976$as_echo "$ac_cv_cflags_warn_all" >&6; }
8977
8978
8979case ".$ac_cv_cflags_warn_all" in
8980 .ok|.ok,*) ;;
8981 .|.no|.no,*) ;;
8982 *) if ${CFLAGS+:} false; then :
8983 case " $CFLAGS " in
8984 *" $ac_cv_cflags_warn_all "*)
8985 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8986 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8987 ac_status=$?
8988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8989 test $ac_status = 0; }
8990 ;;
8991 *)
8992 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8993 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8994 ac_status=$?
8995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8996 test $ac_status = 0; }
8997 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8998 ;;
8999 esac
9000else
9001 CFLAGS="$ac_cv_cflags_warn_all"
9002fi
9003 ;;
9004esac
9005
9006ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009007ac_cpp='$CPP $CPPFLAGS'
9008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9010ac_compiler_gnu=$ac_cv_c_compiler_gnu
9011
9012
9013fi
cristyd95b7a52013-10-23 13:12:53 +00009014
9015if test "x$GCC" = "xyes"; then
9016 CFLAGS="$CFLAGS -fexceptions"
9017 touch local.exp
9018else
9019 cat > local.exp <<EOF
9020set CC_FOR_TARGET "$CC"
9021EOF
9022fi
9023
cristy9b86f202012-11-28 21:55:35 +00009024# Check for linker script support
9025
9026 # Check whether --enable-ld-version-script was given.
9027if test "${enable_ld_version_script+set}" = set; then :
9028 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9029fi
9030
9031 if test -z "$have_ld_version_script"; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9033$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9034 save_LDFLAGS="$LDFLAGS"
9035 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9036 cat > conftest.map <<EOF
9037foo
9038EOF
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040/* end confdefs.h. */
9041
9042int
9043main ()
9044{
9045
9046 ;
9047 return 0;
9048}
9049_ACEOF
9050if ac_fn_c_try_link "$LINENO"; then :
9051 accepts_syntax_errors=yes
9052else
9053 accepts_syntax_errors=no
9054fi
9055rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057 if test "$accepts_syntax_errors" = no; then
9058 cat > conftest.map <<EOF
9059VERS_1 {
9060 global: sym;
9061};
9062
9063VERS_2 {
9064 global: sym;
9065} VERS_1;
9066EOF
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068/* end confdefs.h. */
9069
9070int
9071main ()
9072{
9073
9074 ;
9075 return 0;
9076}
9077_ACEOF
9078if ac_fn_c_try_link "$LINENO"; then :
9079 have_ld_version_script=yes
9080else
9081 have_ld_version_script=no
9082fi
9083rm -f core conftest.err conftest.$ac_objext \
9084 conftest$ac_exeext conftest.$ac_ext
9085 else
9086 have_ld_version_script=no
9087 fi
9088 rm -f conftest.map
9089 LDFLAGS="$save_LDFLAGS"
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9091$as_echo "$have_ld_version_script" >&6; }
9092 fi
9093 if test "$have_ld_version_script" = "yes"; then
9094 HAVE_LD_VERSION_SCRIPT_TRUE=
9095 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9096else
9097 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9098 HAVE_LD_VERSION_SCRIPT_FALSE=
9099fi
9100
9101
9102
cristy3ed852e2009-09-05 21:47:34 +00009103#
cristy3ed852e2009-09-05 21:47:34 +00009104# Enable run-time checking.
9105#
9106# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009107if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009108 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9109else
9110 enable_bounds_checking='no'
9111fi
9112
9113
9114if test "$enable_bounds_checking" = yes; then
9115
cristy8b350f62009-11-15 23:12:43 +00009116$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009117
9118fi
9119
9120#
9121# Tests for Windows
9122#
9123
9124
9125
9126GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009127native_win32_build='no'
9128cygwin_build='no'
9129case "${host_os}" in
9130 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009131 cygwin_build='yes'
9132 GDI32_LIBS='-lgdi32'
9133 ;;
9134 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009135 native_win32_build='yes'
9136 GDI32_LIBS='-lgdi32'
9137 ;;
9138esac
9139if test "${GDI32_LIBS}x" != 'x'; then
9140
cristy8b350f62009-11-15 23:12:43 +00009141$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009142
9143fi
9144
cristy73bd4a52010-10-05 11:24:23 +00009145 if test "${GDI32_LIBS}x" != 'x' ; then
9146 WINGDI32_DELEGATE_TRUE=
9147 WINGDI32_DELEGATE_FALSE='#'
9148else
9149 WINGDI32_DELEGATE_TRUE='#'
9150 WINGDI32_DELEGATE_FALSE=
9151fi
9152
9153 if test "${native_win32_build}" = 'yes' ; then
9154 WIN32_NATIVE_BUILD_TRUE=
9155 WIN32_NATIVE_BUILD_FALSE='#'
9156else
9157 WIN32_NATIVE_BUILD_TRUE='#'
9158 WIN32_NATIVE_BUILD_FALSE=
9159fi
9160
9161 if test "${cygwin_build}" = 'yes' ; then
9162 CYGWIN_BUILD_TRUE=
9163 CYGWIN_BUILD_FALSE='#'
9164else
9165 CYGWIN_BUILD_TRUE='#'
9166 CYGWIN_BUILD_FALSE=
9167fi
9168
9169 if test "x${CC}" = 'xcl.exe' ; then
9170 USING_CL_TRUE=
9171 USING_CL_FALSE='#'
9172else
9173 USING_CL_TRUE='#'
9174 USING_CL_FALSE=
9175fi
9176
cristy3ed852e2009-09-05 21:47:34 +00009177
9178WinPathScript="${srcdirfull}/winpath.sh"
9179
9180
9181#
9182# Compiler flags tweaks
9183#
9184if test "${GCC}" != "yes"; then
9185 case "${host}" in
9186 *-*-hpux* )
9187 # aCC: HP ANSI C++ B3910B A.03.34
9188 CFLAGS="${CFLAGS} -Wp,-H30000"
9189 if test -n "${CXXFLAGS}"; then
9190 CXXFLAGS='-AA'
9191 else
9192 CXXFLAGS="${CXXFLAGS} -AA"
9193 fi
9194 ;;
9195 *-dec-osf5.* )
9196 # Compaq alphaev68-dec-osf5.1 compiler
9197 if test -n "${CXXFLAGS}"; then
9198 CXXFLAGS='-std strict_ansi -noimplicit_include'
9199 else
9200 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9201 fi
9202 esac
9203fi
9204
9205# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009207$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009208if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009209 $as_echo_n "(cached) " >&6
9210else
9211
9212im_cv_ld_lazyload='none'
9213case "${host}" in
9214 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9215 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9216 im_cv_ld_lazyload='-Wl,-zlazyload'
9217 fi
9218 ;;
9219esac
9220
9221fi
cristy8b350f62009-11-15 23:12:43 +00009222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009223$as_echo "$im_cv_ld_lazyload" >&6; }
9224if test "${im_cv_ld_lazyload}" != 'none' ; then
9225 if test -z "${LDFLAGS}" ; then
9226 LDFLAGS="${im_cv_ld_lazyload}"
9227 else
9228 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9229 fi
9230fi
9231
9232case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009233 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009234 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009235 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009236if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009237 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9238else
9239 build_osxuniversal=no
9240fi
9241
9242
cristyc37574e2013-02-16 01:04:55 +00009243 if test "${build_osxuniversal}" != no ; then
9244 if test "$enable_dependency_tracking" != no ; then
9245 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009246Please re-run configure with these options:
9247 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009248 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009249 fi
9250 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9251 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9252 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009253 fi
9254 ;;
9255esac
9256
cristy0151ae12011-10-28 16:32:29 +00009257#
9258# ARCH specific include directory
9259#
9260
cristy670aa3c2011-11-03 00:54:00 +00009261# Check whether --with-includearch-dir was given.
9262if test "${with_includearch_dir+set}" = set; then :
9263 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009264else
cristy670aa3c2011-11-03 00:54:00 +00009265 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009266fi
9267
9268
cristyd286fd72013-02-24 19:25:33 +00009269eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009270
cristy0151ae12011-10-28 16:32:29 +00009271
9272#
9273# ARCH specific configuration directory
9274#
9275
cristy670aa3c2011-11-03 00:54:00 +00009276# Check whether --with-sharearch-dir was given.
9277if test "${with_sharearch_dir+set}" = set; then :
9278 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009279else
cristy408ebcd2011-11-14 01:36:57 +00009280 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009281fi
9282
9283
cristy670aa3c2011-11-03 00:54:00 +00009284eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009285
cristy0151ae12011-10-28 16:32:29 +00009286
cristy2ec87cc2013-02-18 17:46:50 +00009287# Path to the pkgconfig folder
9288
9289# Check whether --with-pkgconfigdir was given.
9290if test "${with_pkgconfigdir+set}" = set; then :
9291 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9292else
9293 pkgconfigdir='${libdir}/pkgconfig'
9294fi
9295
9296
9297
cristy0151ae12011-10-28 16:32:29 +00009298#
cristy3ed852e2009-09-05 21:47:34 +00009299# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009300#
9301# Find Posix threads library
9302#
cristy3ed852e2009-09-05 21:47:34 +00009303
9304# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009305if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009306 withval=$with_threads; with_threads=$withval
9307else
9308 with_threads='yes'
9309fi
9310
9311
cristy1ae5c992013-07-30 14:55:07 +00009312THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009313have_threads=no
9314if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009315
9316
cristy73bd4a52010-10-05 11:24:23 +00009317ac_ext=c
9318ac_cpp='$CPP $CPPFLAGS'
9319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9321ac_compiler_gnu=$ac_cv_c_compiler_gnu
9322
9323ax_pthread_ok=no
9324
9325# We used to check for pthread.h first, but this fails if pthread.h
9326# requires special compiler flags (e.g. on True64 or Sequent).
9327# It gets checked for in the link test anyway.
9328
9329# First of all, check if the user has set any of the PTHREAD_LIBS,
9330# etcetera environment variables, and if threads linking works using
9331# them:
9332if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9333 save_CFLAGS="$CFLAGS"
9334 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9335 save_LIBS="$LIBS"
9336 LIBS="$PTHREAD_LIBS $LIBS"
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9338$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340/* end confdefs.h. */
9341
9342/* Override any GCC internal prototype to avoid an error.
9343 Use char because int might match the return type of a GCC
9344 builtin and then its argument prototype would still apply. */
9345#ifdef __cplusplus
9346extern "C"
9347#endif
9348char pthread_join ();
9349int
9350main ()
9351{
9352return pthread_join ();
9353 ;
9354 return 0;
9355}
9356_ACEOF
9357if ac_fn_c_try_link "$LINENO"; then :
9358 ax_pthread_ok=yes
9359fi
9360rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9363$as_echo "$ax_pthread_ok" >&6; }
9364 if test x"$ax_pthread_ok" = xno; then
9365 PTHREAD_LIBS=""
9366 PTHREAD_CFLAGS=""
9367 fi
9368 LIBS="$save_LIBS"
9369 CFLAGS="$save_CFLAGS"
9370fi
9371
9372# We must check for the threads library under a number of different
9373# names; the ordering is very important because some systems
9374# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9375# libraries is broken (non-POSIX).
9376
9377# Create a list of thread flags to try. Items starting with a "-" are
9378# C compiler flags, and other items are library names, except for "none"
9379# which indicates that we try without any flags at all, and "pthread-config"
9380# which is a program returning the flags for the Pth emulation library.
9381
cristy2ec87cc2013-02-18 17:46:50 +00009382ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009383
9384# The ordering *is* (sometimes) important. Some notes on the
9385# individual items follow:
9386
9387# pthreads: AIX (must check this before -lpthread)
9388# none: in case threads are in libc; should be tried before -Kthread and
9389# other compiler flags to prevent continual compiler warnings
9390# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9391# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9392# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9393# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9394# -pthreads: Solaris/gcc
9395# -mthreads: Mingw32/gcc, Lynx/gcc
9396# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9397# doesn't hurt to check since this sometimes defines pthreads too;
9398# also defines -D_REENTRANT)
9399# ... -mt is also the pthreads flag for HP/aCC
9400# pthread: Linux, etcetera
9401# --thread-safe: KAI C++
9402# pthread-config: use pthread-config program (for GNU Pth library)
9403
cristy2ec87cc2013-02-18 17:46:50 +00009404case ${host_os} in
9405 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009406
9407 # On Solaris (at least, for some versions), libc contains stubbed
9408 # (non-functional) versions of the pthreads routines, so link-based
9409 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9410 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9411 # a function called by this macro, so we could check for that, but
9412 # who knows whether they'll stub that too in a future libc.) So,
9413 # we'll just look for -pthreads and -lpthread first:
9414
9415 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9416 ;;
9417
cristy2ec87cc2013-02-18 17:46:50 +00009418 darwin*)
cristya316db12011-10-24 00:49:45 +00009419 ax_pthread_flags="-pthread $ax_pthread_flags"
9420 ;;
cristy73bd4a52010-10-05 11:24:23 +00009421esac
9422
cristy17491be2014-06-24 01:10:53 +00009423# Clang doesn't consider unrecognized options an error unless we specify
9424# -Werror. We throw in some extra Clang-specific options to ensure that
9425# this doesn't happen for GCC, which also accepts -Werror.
9426
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9428$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9429save_CFLAGS="$CFLAGS"
9430ax_pthread_extra_flags="-Werror"
9431CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433/* end confdefs.h. */
9434int foo(void);
9435int
9436main ()
9437{
9438foo()
9439 ;
9440 return 0;
9441}
9442_ACEOF
9443if ac_fn_c_try_compile "$LINENO"; then :
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9445$as_echo "yes" >&6; }
9446else
9447 ax_pthread_extra_flags=
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449$as_echo "no" >&6; }
9450fi
9451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452CFLAGS="$save_CFLAGS"
9453
cristy73bd4a52010-10-05 11:24:23 +00009454if test x"$ax_pthread_ok" = xno; then
9455for flag in $ax_pthread_flags; do
9456
9457 case $flag in
9458 none)
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9460$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9461 ;;
9462
9463 -*)
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9465$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9466 PTHREAD_CFLAGS="$flag"
9467 ;;
9468
cristya316db12011-10-24 00:49:45 +00009469 pthread-config)
9470 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009471set dummy pthread-config; ac_word=$2
9472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009474if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009475 $as_echo_n "(cached) " >&6
9476else
9477 if test -n "$ax_pthread_config"; then
9478 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9479else
9480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481for as_dir in $PATH
9482do
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009487 ac_cv_prog_ax_pthread_config="yes"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 break 2
9490 fi
9491done
9492 done
9493IFS=$as_save_IFS
9494
9495 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9496fi
9497fi
9498ax_pthread_config=$ac_cv_prog_ax_pthread_config
9499if test -n "$ax_pthread_config"; then
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9501$as_echo "$ax_pthread_config" >&6; }
9502else
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504$as_echo "no" >&6; }
9505fi
9506
9507
cristya316db12011-10-24 00:49:45 +00009508 if test x"$ax_pthread_config" = xno; then continue; fi
9509 PTHREAD_CFLAGS="`pthread-config --cflags`"
9510 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9511 ;;
cristy73bd4a52010-10-05 11:24:23 +00009512
9513 *)
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9515$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9516 PTHREAD_LIBS="-l$flag"
9517 ;;
9518 esac
9519
9520 save_LIBS="$LIBS"
9521 save_CFLAGS="$CFLAGS"
9522 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009523 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009524
9525 # Check for various functions. We must include pthread.h,
9526 # since some functions may be macros. (On the Sequent, we
9527 # need a special flag -Kthread to make this header compile.)
9528 # We check for pthread_join because it is in -lpthread on IRIX
9529 # while pthread_create is in libc. We check for pthread_attr_init
9530 # due to DEC craziness with -lpthreads. We check for
9531 # pthread_cleanup_push because it is one of the few pthread
9532 # functions on Solaris that doesn't have a non-functional libc stub.
9533 # We try pthread_create on general principles.
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535/* end confdefs.h. */
9536#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009537 static void routine(void *a) { a = 0; }
9538 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009539int
9540main ()
9541{
9542pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009543 pthread_create(&th, 0, start_routine, 0);
9544 pthread_join(th, 0);
9545 pthread_attr_init(&attr);
9546 pthread_cleanup_push(routine, 0);
9547 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009548 ;
9549 return 0;
9550}
9551_ACEOF
9552if ac_fn_c_try_link "$LINENO"; then :
9553 ax_pthread_ok=yes
9554fi
9555rm -f core conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9557
9558 LIBS="$save_LIBS"
9559 CFLAGS="$save_CFLAGS"
9560
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9562$as_echo "$ax_pthread_ok" >&6; }
9563 if test "x$ax_pthread_ok" = xyes; then
9564 break;
9565 fi
9566
9567 PTHREAD_LIBS=""
9568 PTHREAD_CFLAGS=""
9569done
9570fi
9571
9572# Various other checks:
9573if test "x$ax_pthread_ok" = xyes; then
9574 save_LIBS="$LIBS"
9575 LIBS="$PTHREAD_LIBS $LIBS"
9576 save_CFLAGS="$CFLAGS"
9577 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9578
9579 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009581$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009582 attr_name=unknown
9583 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009585/* end confdefs.h. */
9586#include <pthread.h>
9587int
9588main ()
9589{
cristya316db12011-10-24 00:49:45 +00009590int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009591 ;
9592 return 0;
9593}
9594_ACEOF
9595if ac_fn_c_try_link "$LINENO"; then :
9596 attr_name=$attr; break
9597fi
9598rm -f core conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009600 done
cristy73bd4a52010-10-05 11:24:23 +00009601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9602$as_echo "$attr_name" >&6; }
9603 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9604
9605cat >>confdefs.h <<_ACEOF
9606#define PTHREAD_CREATE_JOINABLE $attr_name
9607_ACEOF
9608
9609 fi
9610
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9612$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9613 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009614 case ${host_os} in
9615 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9616 osf* | hpux*) flag="-D_REENTRANT";;
9617 solaris*)
9618 if test "$GCC" = "yes"; then
9619 flag="-D_REENTRANT"
9620 else
cristy17491be2014-06-24 01:10:53 +00009621 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009622 flag="-mt -D_REENTRANT"
9623 fi
9624 ;;
cristy73bd4a52010-10-05 11:24:23 +00009625 esac
cristy17491be2014-06-24 01:10:53 +00009626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9627$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009628 if test "x$flag" != xno; then
9629 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9630 fi
9631
cristya316db12011-10-24 00:49:45 +00009632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9633$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9634if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636else
9637
9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009640#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009641int
9642main ()
9643{
9644int i = PTHREAD_PRIO_INHERIT;
9645 ;
9646 return 0;
9647}
9648_ACEOF
9649if ac_fn_c_try_link "$LINENO"; then :
9650 ax_cv_PTHREAD_PRIO_INHERIT=yes
9651else
9652 ax_cv_PTHREAD_PRIO_INHERIT=no
9653fi
9654rm -f core conftest.err conftest.$ac_objext \
9655 conftest$ac_exeext conftest.$ac_ext
9656
9657fi
9658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9659$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9660 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9661
9662$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9663
9664fi
9665
cristy73bd4a52010-10-05 11:24:23 +00009666 LIBS="$save_LIBS"
9667 CFLAGS="$save_CFLAGS"
9668
cristy23493c42013-04-11 16:04:59 +00009669 # More AIX lossage: compile with *_r variant
9670 if test "x$GCC" != xyes; then
9671 case $host_os in
9672 aix*)
9673 case "x/$CC" in #(
9674 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9675 #handle absolute path differently from PATH based program lookup
9676 case "x$CC" in #(
9677 x/*) :
9678 if as_fn_executable_p ${CC}_r; then :
9679 PTHREAD_CC="${CC}_r"
9680fi ;; #(
9681 *) :
9682 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009683do
9684 # Extract the first word of "$ac_prog", so it can be a program name with args.
9685set dummy $ac_prog; ac_word=$2
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009688if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009689 $as_echo_n "(cached) " >&6
9690else
9691 if test -n "$PTHREAD_CC"; then
9692 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9693else
9694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $PATH
9696do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009701 ac_cv_prog_PTHREAD_CC="$ac_prog"
9702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9704 fi
9705done
9706 done
9707IFS=$as_save_IFS
9708
9709fi
9710fi
9711PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9712if test -n "$PTHREAD_CC"; then
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9714$as_echo "$PTHREAD_CC" >&6; }
9715else
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717$as_echo "no" >&6; }
9718fi
9719
9720
9721 test -n "$PTHREAD_CC" && break
9722done
cristy23493c42013-04-11 16:04:59 +00009723test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9724 ;;
9725esac ;; #(
9726 *) :
9727 ;;
9728esac
9729 ;;
9730 esac
cristya316db12011-10-24 00:49:45 +00009731 fi
cristy73bd4a52010-10-05 11:24:23 +00009732fi
9733
cristy23493c42013-04-11 16:04:59 +00009734test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9735
cristy73bd4a52010-10-05 11:24:23 +00009736
9737
9738
9739
9740# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9741if test x"$ax_pthread_ok" = xyes; then
9742
9743$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9744
9745 :
9746else
9747 ax_pthread_ok=no
9748
9749fi
9750ac_ext=c
9751ac_cpp='$CPP $CPPFLAGS'
9752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9754ac_compiler_gnu=$ac_cv_c_compiler_gnu
9755
9756
cristy7acf8fb2010-09-23 19:58:53 +00009757 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009758 have_threads=yes
9759 DEF_THREAD="$PTHREAD_CFLAGS"
9760 CFLAGS="$CFLAGS $DEF_THREAD"
9761 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009762 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009763 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009764 { $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 +00009765$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9766 CC="$PTHREAD_CC"
9767 fi
cristy55bf91c2010-09-24 00:29:41 +00009768
9769$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9770
cristy3ed852e2009-09-05 21:47:34 +00009771 fi
9772fi
cristy1ae5c992013-07-30 14:55:07 +00009773LIBS="$LIBS $THREAD_LIBS"
9774
cristy3ed852e2009-09-05 21:47:34 +00009775
9776# Enable support for OpenMP
9777if test "$have_threads" != 'yes'; then
9778 ac_cv_prog_c_openmp=unsupported
9779fi
9780
9781 OPENMP_CFLAGS=
9782 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009783if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009784 enableval=$enable_openmp;
9785fi
9786
9787 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009789$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009790if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009791 $as_echo_n "(cached) " >&6
9792else
cristy8b350f62009-11-15 23:12:43 +00009793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009795
9796#ifndef _OPENMP
9797 choke me
9798#endif
9799#include <omp.h>
9800int main () { return omp_get_num_threads (); }
9801
9802_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009803if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009804 ac_cv_prog_c_openmp='none needed'
9805else
cristy8b350f62009-11-15 23:12:43 +00009806 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009807 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9808 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009809 ac_save_CFLAGS=$CFLAGS
9810 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009813
9814#ifndef _OPENMP
9815 choke me
9816#endif
9817#include <omp.h>
9818int main () { return omp_get_num_threads (); }
9819
9820_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009821if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009822 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009823fi
cristy8b350f62009-11-15 23:12:43 +00009824rm -f core conftest.err conftest.$ac_objext \
9825 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009826 CFLAGS=$ac_save_CFLAGS
9827 if test "$ac_cv_prog_c_openmp" != unsupported; then
9828 break
9829 fi
9830 done
9831fi
cristy8b350f62009-11-15 23:12:43 +00009832rm -f core conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009834fi
cristy8b350f62009-11-15 23:12:43 +00009835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009836$as_echo "$ac_cv_prog_c_openmp" >&6; }
9837 case $ac_cv_prog_c_openmp in #(
9838 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009839 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009840 *)
cristy8b350f62009-11-15 23:12:43 +00009841 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009842 esac
9843 fi
9844
9845
9846CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9847MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9848
cristy391f1ce2010-09-09 17:23:28 +00009849if test "$enable_openmp" != no; then
9850 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9851 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9852 fi
9853fi
cristy3ed852e2009-09-05 21:47:34 +00009854
cristy736173a2009-09-20 21:18:22 +00009855# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009856
9857
cristy73bd4a52010-10-05 11:24:23 +00009858ac_ext=c
9859ac_cpp='$CPP $CPPFLAGS'
9860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9862ac_compiler_gnu=$ac_cv_c_compiler_gnu
9863
9864ax_pthread_ok=no
9865
9866# We used to check for pthread.h first, but this fails if pthread.h
9867# requires special compiler flags (e.g. on True64 or Sequent).
9868# It gets checked for in the link test anyway.
9869
9870# First of all, check if the user has set any of the PTHREAD_LIBS,
9871# etcetera environment variables, and if threads linking works using
9872# them:
9873if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9874 save_CFLAGS="$CFLAGS"
9875 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9876 save_LIBS="$LIBS"
9877 LIBS="$PTHREAD_LIBS $LIBS"
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9879$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881/* end confdefs.h. */
9882
9883/* Override any GCC internal prototype to avoid an error.
9884 Use char because int might match the return type of a GCC
9885 builtin and then its argument prototype would still apply. */
9886#ifdef __cplusplus
9887extern "C"
9888#endif
9889char pthread_join ();
9890int
9891main ()
9892{
9893return pthread_join ();
9894 ;
9895 return 0;
9896}
9897_ACEOF
9898if ac_fn_c_try_link "$LINENO"; then :
9899 ax_pthread_ok=yes
9900fi
9901rm -f core conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9904$as_echo "$ax_pthread_ok" >&6; }
9905 if test x"$ax_pthread_ok" = xno; then
9906 PTHREAD_LIBS=""
9907 PTHREAD_CFLAGS=""
9908 fi
9909 LIBS="$save_LIBS"
9910 CFLAGS="$save_CFLAGS"
9911fi
9912
9913# We must check for the threads library under a number of different
9914# names; the ordering is very important because some systems
9915# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9916# libraries is broken (non-POSIX).
9917
9918# Create a list of thread flags to try. Items starting with a "-" are
9919# C compiler flags, and other items are library names, except for "none"
9920# which indicates that we try without any flags at all, and "pthread-config"
9921# which is a program returning the flags for the Pth emulation library.
9922
cristy2ec87cc2013-02-18 17:46:50 +00009923ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009924
9925# The ordering *is* (sometimes) important. Some notes on the
9926# individual items follow:
9927
9928# pthreads: AIX (must check this before -lpthread)
9929# none: in case threads are in libc; should be tried before -Kthread and
9930# other compiler flags to prevent continual compiler warnings
9931# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9932# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9933# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9934# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9935# -pthreads: Solaris/gcc
9936# -mthreads: Mingw32/gcc, Lynx/gcc
9937# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9938# doesn't hurt to check since this sometimes defines pthreads too;
9939# also defines -D_REENTRANT)
9940# ... -mt is also the pthreads flag for HP/aCC
9941# pthread: Linux, etcetera
9942# --thread-safe: KAI C++
9943# pthread-config: use pthread-config program (for GNU Pth library)
9944
cristy2ec87cc2013-02-18 17:46:50 +00009945case ${host_os} in
9946 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009947
9948 # On Solaris (at least, for some versions), libc contains stubbed
9949 # (non-functional) versions of the pthreads routines, so link-based
9950 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9951 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9952 # a function called by this macro, so we could check for that, but
9953 # who knows whether they'll stub that too in a future libc.) So,
9954 # we'll just look for -pthreads and -lpthread first:
9955
9956 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9957 ;;
9958
cristy2ec87cc2013-02-18 17:46:50 +00009959 darwin*)
cristya316db12011-10-24 00:49:45 +00009960 ax_pthread_flags="-pthread $ax_pthread_flags"
9961 ;;
cristy73bd4a52010-10-05 11:24:23 +00009962esac
9963
cristy17491be2014-06-24 01:10:53 +00009964# Clang doesn't consider unrecognized options an error unless we specify
9965# -Werror. We throw in some extra Clang-specific options to ensure that
9966# this doesn't happen for GCC, which also accepts -Werror.
9967
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9969$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9970save_CFLAGS="$CFLAGS"
9971ax_pthread_extra_flags="-Werror"
9972CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974/* end confdefs.h. */
9975int foo(void);
9976int
9977main ()
9978{
9979foo()
9980 ;
9981 return 0;
9982}
9983_ACEOF
9984if ac_fn_c_try_compile "$LINENO"; then :
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9986$as_echo "yes" >&6; }
9987else
9988 ax_pthread_extra_flags=
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990$as_echo "no" >&6; }
9991fi
9992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9993CFLAGS="$save_CFLAGS"
9994
cristy73bd4a52010-10-05 11:24:23 +00009995if test x"$ax_pthread_ok" = xno; then
9996for flag in $ax_pthread_flags; do
9997
9998 case $flag in
9999 none)
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10001$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10002 ;;
10003
10004 -*)
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10006$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10007 PTHREAD_CFLAGS="$flag"
10008 ;;
10009
cristya316db12011-10-24 00:49:45 +000010010 pthread-config)
10011 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010012set dummy pthread-config; ac_word=$2
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10014$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010015if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010016 $as_echo_n "(cached) " >&6
10017else
10018 if test -n "$ax_pthread_config"; then
10019 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10020else
10021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022for as_dir in $PATH
10023do
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010028 ac_cv_prog_ax_pthread_config="yes"
10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10031 fi
10032done
10033 done
10034IFS=$as_save_IFS
10035
10036 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10037fi
10038fi
10039ax_pthread_config=$ac_cv_prog_ax_pthread_config
10040if test -n "$ax_pthread_config"; then
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10042$as_echo "$ax_pthread_config" >&6; }
10043else
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10045$as_echo "no" >&6; }
10046fi
10047
10048
cristya316db12011-10-24 00:49:45 +000010049 if test x"$ax_pthread_config" = xno; then continue; fi
10050 PTHREAD_CFLAGS="`pthread-config --cflags`"
10051 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10052 ;;
cristy73bd4a52010-10-05 11:24:23 +000010053
10054 *)
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10056$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10057 PTHREAD_LIBS="-l$flag"
10058 ;;
10059 esac
10060
10061 save_LIBS="$LIBS"
10062 save_CFLAGS="$CFLAGS"
10063 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010064 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010065
10066 # Check for various functions. We must include pthread.h,
10067 # since some functions may be macros. (On the Sequent, we
10068 # need a special flag -Kthread to make this header compile.)
10069 # We check for pthread_join because it is in -lpthread on IRIX
10070 # while pthread_create is in libc. We check for pthread_attr_init
10071 # due to DEC craziness with -lpthreads. We check for
10072 # pthread_cleanup_push because it is one of the few pthread
10073 # functions on Solaris that doesn't have a non-functional libc stub.
10074 # We try pthread_create on general principles.
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076/* end confdefs.h. */
10077#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010078 static void routine(void *a) { a = 0; }
10079 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010080int
10081main ()
10082{
10083pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010084 pthread_create(&th, 0, start_routine, 0);
10085 pthread_join(th, 0);
10086 pthread_attr_init(&attr);
10087 pthread_cleanup_push(routine, 0);
10088 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010089 ;
10090 return 0;
10091}
10092_ACEOF
10093if ac_fn_c_try_link "$LINENO"; then :
10094 ax_pthread_ok=yes
10095fi
10096rm -f core conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext conftest.$ac_ext
10098
10099 LIBS="$save_LIBS"
10100 CFLAGS="$save_CFLAGS"
10101
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10103$as_echo "$ax_pthread_ok" >&6; }
10104 if test "x$ax_pthread_ok" = xyes; then
10105 break;
10106 fi
10107
10108 PTHREAD_LIBS=""
10109 PTHREAD_CFLAGS=""
10110done
10111fi
10112
10113# Various other checks:
10114if test "x$ax_pthread_ok" = xyes; then
10115 save_LIBS="$LIBS"
10116 LIBS="$PTHREAD_LIBS $LIBS"
10117 save_CFLAGS="$CFLAGS"
10118 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10119
10120 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010122$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010123 attr_name=unknown
10124 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010126/* end confdefs.h. */
10127#include <pthread.h>
10128int
10129main ()
10130{
cristya316db12011-10-24 00:49:45 +000010131int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010132 ;
10133 return 0;
10134}
10135_ACEOF
10136if ac_fn_c_try_link "$LINENO"; then :
10137 attr_name=$attr; break
10138fi
10139rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010141 done
cristy73bd4a52010-10-05 11:24:23 +000010142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10143$as_echo "$attr_name" >&6; }
10144 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10145
10146cat >>confdefs.h <<_ACEOF
10147#define PTHREAD_CREATE_JOINABLE $attr_name
10148_ACEOF
10149
10150 fi
10151
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10153$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10154 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010155 case ${host_os} in
10156 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10157 osf* | hpux*) flag="-D_REENTRANT";;
10158 solaris*)
10159 if test "$GCC" = "yes"; then
10160 flag="-D_REENTRANT"
10161 else
cristy17491be2014-06-24 01:10:53 +000010162 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010163 flag="-mt -D_REENTRANT"
10164 fi
10165 ;;
cristy73bd4a52010-10-05 11:24:23 +000010166 esac
cristy17491be2014-06-24 01:10:53 +000010167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10168$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010169 if test "x$flag" != xno; then
10170 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10171 fi
10172
cristya316db12011-10-24 00:49:45 +000010173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10174$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10175if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10176 $as_echo_n "(cached) " >&6
10177else
10178
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010181#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010182int
10183main ()
10184{
10185int i = PTHREAD_PRIO_INHERIT;
10186 ;
10187 return 0;
10188}
10189_ACEOF
10190if ac_fn_c_try_link "$LINENO"; then :
10191 ax_cv_PTHREAD_PRIO_INHERIT=yes
10192else
10193 ax_cv_PTHREAD_PRIO_INHERIT=no
10194fi
10195rm -f core conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10197
10198fi
10199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10200$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10201 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10202
10203$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10204
10205fi
10206
cristy73bd4a52010-10-05 11:24:23 +000010207 LIBS="$save_LIBS"
10208 CFLAGS="$save_CFLAGS"
10209
cristy23493c42013-04-11 16:04:59 +000010210 # More AIX lossage: compile with *_r variant
10211 if test "x$GCC" != xyes; then
10212 case $host_os in
10213 aix*)
10214 case "x/$CC" in #(
10215 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10216 #handle absolute path differently from PATH based program lookup
10217 case "x$CC" in #(
10218 x/*) :
10219 if as_fn_executable_p ${CC}_r; then :
10220 PTHREAD_CC="${CC}_r"
10221fi ;; #(
10222 *) :
10223 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010224do
10225 # Extract the first word of "$ac_prog", so it can be a program name with args.
10226set dummy $ac_prog; ac_word=$2
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10228$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010229if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010230 $as_echo_n "(cached) " >&6
10231else
10232 if test -n "$PTHREAD_CC"; then
10233 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10234else
10235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10236for as_dir in $PATH
10237do
10238 IFS=$as_save_IFS
10239 test -z "$as_dir" && as_dir=.
10240 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010242 ac_cv_prog_PTHREAD_CC="$ac_prog"
10243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10244 break 2
10245 fi
10246done
10247 done
10248IFS=$as_save_IFS
10249
10250fi
10251fi
10252PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10253if test -n "$PTHREAD_CC"; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10255$as_echo "$PTHREAD_CC" >&6; }
10256else
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258$as_echo "no" >&6; }
10259fi
10260
10261
10262 test -n "$PTHREAD_CC" && break
10263done
cristy23493c42013-04-11 16:04:59 +000010264test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10265 ;;
10266esac ;; #(
10267 *) :
10268 ;;
10269esac
10270 ;;
10271 esac
cristya316db12011-10-24 00:49:45 +000010272 fi
cristy73bd4a52010-10-05 11:24:23 +000010273fi
10274
cristy23493c42013-04-11 16:04:59 +000010275test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10276
cristy73bd4a52010-10-05 11:24:23 +000010277
10278
10279
10280
10281# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10282if test x"$ax_pthread_ok" = xyes; then
10283
10284$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10285
10286 :
10287else
10288 ax_pthread_ok=no
10289
10290fi
10291ac_ext=c
10292ac_cpp='$CPP $CPPFLAGS'
10293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10295ac_compiler_gnu=$ac_cv_c_compiler_gnu
10296
10297
10298
10299# Check whether --enable-opencl was given.
10300if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010301 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010302else
cristy48794642012-09-02 15:19:08 +000010303 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010304fi
10305
10306
cristy48794642012-09-02 15:19:08 +000010307if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010308 ac_ext=c
10309ac_cpp='$CPP $CPPFLAGS'
10310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10312ac_compiler_gnu=$ac_cv_c_compiler_gnu
10313
cristy75314cc2012-09-15 23:08:29 +000010314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10315$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10316if ${ax_cv_c_compiler_ms+:} false; then :
10317 $as_echo_n "(cached) " >&6
10318else
10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320/* end confdefs.h. */
10321
10322int
10323main ()
10324{
10325#ifndef _MSC_VER
10326 choke me
10327#endif
10328
10329 ;
10330 return 0;
10331}
10332_ACEOF
10333if ac_fn_c_try_compile "$LINENO"; then :
10334 ax_compiler_ms=yes
10335else
10336 ax_compiler_ms=no
10337fi
10338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10339ax_cv_c_compiler_ms=$ax_compiler_ms
10340
10341fi
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10343$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010344 if test X$ax_compiler_ms = Xno; then :
10345 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10346fi
10347
10348 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010349 ax_save_CL_CFLAGS=$CL_CFLAGS
10350
10351 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010352 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10353 for ac_header in CL/cl.h OpenCL/cl.h
10354do :
10355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10356ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010357if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010358 cat >>confdefs.h <<_ACEOF
10359#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10360_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010361 found_opencl_header='yes'
10362 break;
10363else
10364 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010365fi
10366
10367done
10368
cristyfdc7d122013-08-17 20:46:45 +000010369
10370 if test X$found_opencl_header = Xno; then :
10371 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10372 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10373 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10374 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10375 for ac_header in CL/cl.h OpenCL/cl.h
10376do :
10377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10378ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10379if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10380 cat >>confdefs.h <<_ACEOF
10381#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10382_ACEOF
10383 found_opencl_header='yes'
10384 break;
10385else
10386 found_opencl_header='no'
10387fi
10388
10389done
10390
10391
10392fi
10393
10394 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010395
10396 for ac_header in windows.h
10397do :
10398 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010399if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010400 cat >>confdefs.h <<_ACEOF
10401#define HAVE_WINDOWS_H 1
10402_ACEOF
10403
10404fi
10405
10406done
10407
10408
10409
10410
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10412$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010413if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010414 $as_echo_n "(cached) " >&6
10415else
10416 ax_cv_check_cl_libcl=no
10417 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010418 x86_64) ax_check_cl_libdir=lib64
10419 ax_check_cl_amd_libdir=x86_64
10420 ;;
10421 *) ax_check_cl_libdir=lib
10422 ax_check_cl_amd_libdir=x86
10423 ;;
cristy73bd4a52010-10-05 11:24:23 +000010424 esac
10425 ax_save_CPPFLAGS=$CPPFLAGS
10426 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10427 ax_save_LIBS=$LIBS
10428 LIBS=""
10429 ax_check_libs="-lOpenCL -lCL -lclparser"
10430 for ax_lib in $ax_check_libs; do
10431 if test X$ax_compiler_ms = Xyes; then :
10432 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10433else
10434 ax_try_lib=$ax_lib
10435fi
10436 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438/* end confdefs.h. */
10439
10440 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10441 # include <windows.h>
10442 # endif
10443 # ifdef HAVE_CL_CL_H
10444 # include <CL/cl.h>
10445 # elif defined(HAVE_OPENCL_CL_H)
10446 # include <OpenCL/cl.h>
10447 # else
10448 # error no CL.h
10449 # endif
10450int
10451main ()
10452{
10453clCreateContextFromType(0,0,0,0,0)
10454 ;
10455 return 0;
10456}
10457_ACEOF
10458if ac_fn_c_try_link "$LINENO"; then :
10459 ax_cv_check_cl_libcl=$ax_try_lib; break
10460else
10461 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"
10462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10463/* end confdefs.h. */
10464
10465 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10466 # include <windows.h>
10467 # endif
10468 # ifdef HAVE_CL_CL_H
10469 # include <CL/cl.h>
10470 # elif defined(HAVE_OPENCL_CL_H)
10471 # include <OpenCL/cl.h>
10472 # else
10473 # error no CL.h
10474 # endif
10475int
10476main ()
10477{
10478clCreateContextFromType(0,0,0,0,0)
10479 ;
10480 return 0;
10481}
10482_ACEOF
10483if ac_fn_c_try_link "$LINENO"; then :
10484 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10485else
cristy78c5a0c2010-12-04 20:00:59 +000010486 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 +000010487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488/* end confdefs.h. */
10489
10490 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10491 # include <windows.h>
10492 # endif
10493 # ifdef HAVE_CL_CL_H
10494 # include <CL/cl.h>
10495 # elif defined(HAVE_OPENCL_CL_H)
10496 # include <OpenCL/cl.h>
10497 # else
10498 # error no CL.h
10499 # endif
10500int
10501main ()
10502{
10503clCreateContextFromType(0,0,0,0,0)
10504 ;
10505 return 0;
10506}
10507_ACEOF
10508if ac_fn_c_try_link "$LINENO"; then :
10509 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010510else
10511 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"
10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513/* end confdefs.h. */
10514
10515 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10516 # include <windows.h>
10517 # endif
10518 # ifdef HAVE_CL_CL_H
10519 # include <CL/cl.h>
10520 # elif defined(HAVE_OPENCL_CL_H)
10521 # include <OpenCL/cl.h>
10522 # else
10523 # error no CL.h
10524 # endif
10525int
10526main ()
10527{
10528clCreateContextFromType(0,0,0,0,0)
10529 ;
10530 return 0;
10531}
10532_ACEOF
10533if ac_fn_c_try_link "$LINENO"; then :
10534 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10535
10536fi
10537rm -f core conftest.err conftest.$ac_objext \
10538 conftest$ac_exeext conftest.$ac_ext
10539
10540
cristy73bd4a52010-10-05 11:24:23 +000010541fi
10542rm -f core conftest.err conftest.$ac_objext \
10543 conftest$ac_exeext conftest.$ac_ext
10544fi
10545rm -f core conftest.err conftest.$ac_objext \
10546 conftest$ac_exeext conftest.$ac_ext
10547fi
10548rm -f core conftest.err conftest.$ac_objext \
10549 conftest$ac_exeext conftest.$ac_ext
10550 done
10551
cristyc3f8b8e2011-12-22 14:55:16 +000010552 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010553 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555/* end confdefs.h. */
10556
10557 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10558 # include <windows.h>
10559 # endif
10560 # ifdef HAVE_CL_CL_H
10561 # include <CL/cl.h>
10562 # elif defined(HAVE_OPENCL_CL_H)
10563 # include <OpenCL/cl.h>
10564 # else
10565 # error no CL.h
10566 # endif
10567int
10568main ()
10569{
10570clCreateContextFromType(0,0,0,0,0)
10571 ;
10572 return 0;
10573}
10574_ACEOF
10575if ac_fn_c_try_link "$LINENO"; then :
10576 ax_cv_check_cl_libcl=$LIBS
10577fi
10578rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10580fi
10581
10582 LIBS=$ax_save_LIBS
10583 CPPFLAGS=$ax_save_CPPFLAGS
10584fi
10585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10586$as_echo "$ax_cv_check_cl_libcl" >&6; }
10587
10588 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10589 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10590else
10591 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10592$as_echo "#define _OPENCL 1" >>confdefs.h
10593
10594fi
10595 ac_ext=c
10596ac_cpp='$CPP $CPPFLAGS'
10597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10599ac_compiler_gnu=$ac_cv_c_compiler_gnu
10600
10601fi
10602
10603
10604
cristy0c832c62014-03-07 22:21:04 +000010605#remove static link on Linux
10606CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10607
cristy73bd4a52010-10-05 11:24:23 +000010608
cristyc7083c12009-10-14 03:16:55 +000010609CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010610CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010611LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010612
cristy391f1ce2010-09-09 17:23:28 +000010613if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010614 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010615 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10616 fi
cristyfd9dcd42010-08-08 18:07:02 +000010617fi
cristy2e8b51d2009-10-17 18:26:15 +000010618
cristy3ed852e2009-09-05 21:47:34 +000010619########
10620#
10621# Check for large file support
10622#
10623########
10624# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010625if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010626 enableval=$enable_largefile;
10627fi
10628
10629if test "$enable_largefile" != no; then
10630
cristy8b350f62009-11-15 23:12:43 +000010631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010632$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010633if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010634 $as_echo_n "(cached) " >&6
10635else
10636 ac_cv_sys_largefile_CC=no
10637 if test "$GCC" != yes; then
10638 ac_save_CC=$CC
10639 while :; do
10640 # IRIX 6.2 and later do not support large files by default,
10641 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010643/* end confdefs.h. */
10644#include <sys/types.h>
10645 /* Check that off_t can represent 2**63 - 1 correctly.
10646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10647 since some C++ compilers masquerading as C compilers
10648 incorrectly reject 9223372036854775807. */
10649#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10651 && LARGE_OFF_T % 2147483647 == 1)
10652 ? 1 : -1];
10653int
10654main ()
10655{
10656
10657 ;
10658 return 0;
10659}
10660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010661 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010662 break
cristy3ed852e2009-09-05 21:47:34 +000010663fi
cristy3ed852e2009-09-05 21:47:34 +000010664rm -f core conftest.err conftest.$ac_objext
10665 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010666 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010667 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010668fi
cristy3ed852e2009-09-05 21:47:34 +000010669rm -f core conftest.err conftest.$ac_objext
10670 break
10671 done
10672 CC=$ac_save_CC
10673 rm -f conftest.$ac_ext
10674 fi
10675fi
cristy8b350f62009-11-15 23:12:43 +000010676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010677$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10678 if test "$ac_cv_sys_largefile_CC" != no; then
10679 CC=$CC$ac_cv_sys_largefile_CC
10680 fi
10681
cristy8b350f62009-11-15 23:12:43 +000010682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010683$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010684if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010685 $as_echo_n "(cached) " >&6
10686else
10687 while :; do
cristy8b350f62009-11-15 23:12:43 +000010688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010689/* end confdefs.h. */
10690#include <sys/types.h>
10691 /* Check that off_t can represent 2**63 - 1 correctly.
10692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10693 since some C++ compilers masquerading as C compilers
10694 incorrectly reject 9223372036854775807. */
10695#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10697 && LARGE_OFF_T % 2147483647 == 1)
10698 ? 1 : -1];
10699int
10700main ()
10701{
10702
10703 ;
10704 return 0;
10705}
10706_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010707if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010708 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010709fi
cristy3ed852e2009-09-05 21:47:34 +000010710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010712/* end confdefs.h. */
10713#define _FILE_OFFSET_BITS 64
10714#include <sys/types.h>
10715 /* Check that off_t can represent 2**63 - 1 correctly.
10716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10717 since some C++ compilers masquerading as C compilers
10718 incorrectly reject 9223372036854775807. */
10719#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10721 && LARGE_OFF_T % 2147483647 == 1)
10722 ? 1 : -1];
10723int
10724main ()
10725{
10726
10727 ;
10728 return 0;
10729}
10730_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010731if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010732 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010733fi
cristy3ed852e2009-09-05 21:47:34 +000010734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10735 ac_cv_sys_file_offset_bits=unknown
10736 break
10737done
10738fi
cristy8b350f62009-11-15 23:12:43 +000010739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010740$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10741case $ac_cv_sys_file_offset_bits in #(
10742 no | unknown) ;;
10743 *)
10744cat >>confdefs.h <<_ACEOF
10745#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10746_ACEOF
10747;;
10748esac
10749rm -rf conftest*
10750 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010752$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010753if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010754 $as_echo_n "(cached) " >&6
10755else
10756 while :; do
cristy8b350f62009-11-15 23:12:43 +000010757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010758/* end confdefs.h. */
10759#include <sys/types.h>
10760 /* Check that off_t can represent 2**63 - 1 correctly.
10761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10762 since some C++ compilers masquerading as C compilers
10763 incorrectly reject 9223372036854775807. */
10764#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10766 && LARGE_OFF_T % 2147483647 == 1)
10767 ? 1 : -1];
10768int
10769main ()
10770{
10771
10772 ;
10773 return 0;
10774}
10775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010776if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010777 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010778fi
cristy3ed852e2009-09-05 21:47:34 +000010779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010781/* end confdefs.h. */
10782#define _LARGE_FILES 1
10783#include <sys/types.h>
10784 /* Check that off_t can represent 2**63 - 1 correctly.
10785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10786 since some C++ compilers masquerading as C compilers
10787 incorrectly reject 9223372036854775807. */
10788#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10790 && LARGE_OFF_T % 2147483647 == 1)
10791 ? 1 : -1];
10792int
10793main ()
10794{
10795
10796 ;
10797 return 0;
10798}
10799_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010800if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010801 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010802fi
cristy3ed852e2009-09-05 21:47:34 +000010803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 ac_cv_sys_large_files=unknown
10805 break
10806done
10807fi
cristy8b350f62009-11-15 23:12:43 +000010808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010809$as_echo "$ac_cv_sys_large_files" >&6; }
10810case $ac_cv_sys_large_files in #(
10811 no | unknown) ;;
10812 *)
10813cat >>confdefs.h <<_ACEOF
10814#define _LARGE_FILES $ac_cv_sys_large_files
10815_ACEOF
10816;;
10817esac
10818rm -rf conftest*
10819 fi
cristy14fefe52012-05-21 00:59:18 +000010820
10821
cristy3ed852e2009-09-05 21:47:34 +000010822fi
10823
cristy8b350f62009-11-15 23:12:43 +000010824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010825$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010826if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010827 $as_echo_n "(cached) " >&6
10828else
10829 while :; do
cristy8b350f62009-11-15 23:12:43 +000010830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010831/* end confdefs.h. */
10832#include <sys/types.h> /* for off_t */
10833 #include <stdio.h>
10834int
10835main ()
10836{
10837int (*fp) (FILE *, off_t, int) = fseeko;
10838 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10839 ;
10840 return 0;
10841}
10842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010843if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010844 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010845fi
cristy8b350f62009-11-15 23:12:43 +000010846rm -f core conftest.err conftest.$ac_objext \
10847 conftest$ac_exeext conftest.$ac_ext
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010849/* end confdefs.h. */
10850#define _LARGEFILE_SOURCE 1
10851#include <sys/types.h> /* for off_t */
10852 #include <stdio.h>
10853int
10854main ()
10855{
10856int (*fp) (FILE *, off_t, int) = fseeko;
10857 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10858 ;
10859 return 0;
10860}
10861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010862if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010863 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010864fi
cristy8b350f62009-11-15 23:12:43 +000010865rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010867 ac_cv_sys_largefile_source=unknown
10868 break
10869done
10870fi
cristy8b350f62009-11-15 23:12:43 +000010871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010872$as_echo "$ac_cv_sys_largefile_source" >&6; }
10873case $ac_cv_sys_largefile_source in #(
10874 no | unknown) ;;
10875 *)
10876cat >>confdefs.h <<_ACEOF
10877#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10878_ACEOF
10879;;
10880esac
10881rm -rf conftest*
10882
10883# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10884# in glibc 2.1.3, but that breaks too many other things.
10885# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10886if test $ac_cv_sys_largefile_source != unknown; then
10887
cristy8b350f62009-11-15 23:12:43 +000010888$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010889
10890fi
10891
10892LFS_CPPFLAGS=''
10893if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010894 case $ac_cv_sys_file_offset_bits in
10895 no)
10896 # nothing to do here as the host supports LFS fine
10897 ;;
10898 unknown)
cristy8b350f62009-11-15 23:12:43 +000010899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010900$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010901 if test "$cross_compiling" = yes; then :
10902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010904as_fn_error $? "cannot run test program while cross compiling
10905See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010906else
cristy8b350f62009-11-15 23:12:43 +000010907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010909#include <unistd.h>
10910 main () {
10911 exit(!(sizeof(off_t) == 8));
10912 }
cristyda16f162011-02-19 23:52:17 +000010913int
10914main ()
10915{
10916
10917 ;
10918 return 0;
10919}
cristy3ed852e2009-09-05 21:47:34 +000010920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010921if ac_fn_c_try_run "$LINENO"; then :
10922 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010923
cristyad38abe2012-12-23 23:03:21 +000010924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10925$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010926else
cristyad38abe2012-12-23 23:03:21 +000010927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010929fi
cristy8b350f62009-11-15 23:12:43 +000010930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10931 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010932fi
10933
cristyc1e0cc12011-09-21 16:41:16 +000010934 ;;
10935 *)
10936 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10937 ;;
10938 esac
cristy3ed852e2009-09-05 21:47:34 +000010939 if test "$ac_cv_sys_large_files" != 'no'; then
10940 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10941 fi
10942 if test "$ac_cv_sys_largefile_source" != 'no'; then
10943 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10944 fi
10945fi
10946
10947
cristy3ed852e2009-09-05 21:47:34 +000010948# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010949enable_dlopen=yes
10950
10951
10952
10953case `pwd` in
10954 *\ * | *\ *)
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10956$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10957esac
10958
10959
10960
cristy99bd5232011-12-07 14:38:20 +000010961macro_version='2.4.2'
10962macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976ltmain="$ac_aux_dir/ltmain.sh"
10977
cristy0c60a692010-11-04 01:09:47 +000010978# Backslashify metacharacters that are still active within
10979# double-quoted strings.
10980sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10981
10982# Same as above, but do not quote variable references.
10983double_quote_subst='s/\(["`\\]\)/\\\1/g'
10984
10985# Sed substitution to delay expansion of an escaped shell variable in a
10986# double_quote_subst'ed string.
10987delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10988
10989# Sed substitution to delay expansion of an escaped single quote.
10990delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10991
10992# Sed substitution to avoid accidental globbing in evaled expressions
10993no_glob_subst='s/\*/\\\*/g'
10994
cristy73bd4a52010-10-05 11:24:23 +000010995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10996$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010997if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010998 $as_echo_n "(cached) " >&6
10999else
11000 if test -n "$NM"; then
11001 # Let the user override the test.
11002 lt_cv_path_NM="$NM"
11003else
11004 lt_nm_to_check="${ac_tool_prefix}nm"
11005 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11006 lt_nm_to_check="$lt_nm_to_check nm"
11007 fi
11008 for lt_tmp_nm in $lt_nm_to_check; do
11009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11010 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11011 IFS="$lt_save_ifs"
11012 test -z "$ac_dir" && ac_dir=.
11013 tmp_nm="$ac_dir/$lt_tmp_nm"
11014 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11015 # Check to see if the nm accepts a BSD-compat flag.
11016 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11017 # nm: unknown option "B" ignored
11018 # Tru64's nm complains that /dev/null is an invalid object file
11019 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11020 */dev/null* | *'Invalid file or object type'*)
11021 lt_cv_path_NM="$tmp_nm -B"
11022 break
11023 ;;
11024 *)
11025 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11026 */dev/null*)
11027 lt_cv_path_NM="$tmp_nm -p"
11028 break
11029 ;;
11030 *)
11031 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11032 continue # so that we can try to find one that supports BSD flags
11033 ;;
11034 esac
11035 ;;
11036 esac
11037 fi
11038 done
11039 IFS="$lt_save_ifs"
11040 done
11041 : ${lt_cv_path_NM=no}
11042fi
11043fi
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11045$as_echo "$lt_cv_path_NM" >&6; }
11046if test "$lt_cv_path_NM" != "no"; then
11047 NM="$lt_cv_path_NM"
11048else
11049 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011050 if test -n "$DUMPBIN"; then :
11051 # Let the user override the test.
11052 else
11053 if test -n "$ac_tool_prefix"; then
11054 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011055 do
11056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11057set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11059$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011060if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011061 $as_echo_n "(cached) " >&6
11062else
11063 if test -n "$DUMPBIN"; then
11064 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11065else
11066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067for as_dir in $PATH
11068do
11069 IFS=$as_save_IFS
11070 test -z "$as_dir" && as_dir=.
11071 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011073 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11075 break 2
11076 fi
11077done
11078 done
11079IFS=$as_save_IFS
11080
11081fi
11082fi
11083DUMPBIN=$ac_cv_prog_DUMPBIN
11084if test -n "$DUMPBIN"; then
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11086$as_echo "$DUMPBIN" >&6; }
11087else
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089$as_echo "no" >&6; }
11090fi
11091
11092
11093 test -n "$DUMPBIN" && break
11094 done
11095fi
11096if test -z "$DUMPBIN"; then
11097 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011098 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011099do
11100 # Extract the first word of "$ac_prog", so it can be a program name with args.
11101set dummy $ac_prog; ac_word=$2
11102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011104if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011105 $as_echo_n "(cached) " >&6
11106else
11107 if test -n "$ac_ct_DUMPBIN"; then
11108 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11109else
11110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111for as_dir in $PATH
11112do
11113 IFS=$as_save_IFS
11114 test -z "$as_dir" && as_dir=.
11115 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011117 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 break 2
11120 fi
11121done
11122 done
11123IFS=$as_save_IFS
11124
11125fi
11126fi
11127ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11128if test -n "$ac_ct_DUMPBIN"; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11130$as_echo "$ac_ct_DUMPBIN" >&6; }
11131else
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133$as_echo "no" >&6; }
11134fi
11135
11136
11137 test -n "$ac_ct_DUMPBIN" && break
11138done
11139
11140 if test "x$ac_ct_DUMPBIN" = x; then
11141 DUMPBIN=":"
11142 else
11143 case $cross_compiling:$ac_tool_warned in
11144yes:)
11145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11147ac_tool_warned=yes ;;
11148esac
11149 DUMPBIN=$ac_ct_DUMPBIN
11150 fi
11151fi
11152
cristy0c60a692010-11-04 01:09:47 +000011153 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11154 *COFF*)
11155 DUMPBIN="$DUMPBIN -symbols"
11156 ;;
11157 *)
11158 DUMPBIN=:
11159 ;;
11160 esac
11161 fi
cristy73bd4a52010-10-05 11:24:23 +000011162
11163 if test "$DUMPBIN" != ":"; then
11164 NM="$DUMPBIN"
11165 fi
11166fi
11167test -z "$NM" && NM=nm
11168
11169
11170
11171
11172
11173
11174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11175$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011176if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011177 $as_echo_n "(cached) " >&6
11178else
11179 lt_cv_nm_interface="BSD nm"
11180 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011181 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011182 (eval "$ac_compile" 2>conftest.err)
11183 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011184 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011185 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11186 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011187 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011188 cat conftest.out >&5
11189 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11190 lt_cv_nm_interface="MS dumpbin"
11191 fi
11192 rm -f conftest*
11193fi
11194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11195$as_echo "$lt_cv_nm_interface" >&6; }
11196
11197# find the maximum length of command line arguments
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11199$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011200if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011201 $as_echo_n "(cached) " >&6
11202else
11203 i=0
11204 teststring="ABCD"
11205
11206 case $build_os in
11207 msdosdjgpp*)
11208 # On DJGPP, this test can blow up pretty badly due to problems in libc
11209 # (any single argument exceeding 2000 bytes causes a buffer overrun
11210 # during glob expansion). Even if it were fixed, the result of this
11211 # check would be larger than it should be.
11212 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11213 ;;
11214
11215 gnu*)
11216 # Under GNU Hurd, this test is not required because there is
11217 # no limit to the length of command line arguments.
11218 # Libtool will interpret -1 as no limit whatsoever
11219 lt_cv_sys_max_cmd_len=-1;
11220 ;;
11221
11222 cygwin* | mingw* | cegcc*)
11223 # On Win9x/ME, this test blows up -- it succeeds, but takes
11224 # about 5 minutes as the teststring grows exponentially.
11225 # Worse, since 9x/ME are not pre-emptively multitasking,
11226 # you end up with a "frozen" computer, even though with patience
11227 # the test eventually succeeds (with a max line length of 256k).
11228 # Instead, let's just punt: use the minimum linelength reported by
11229 # all of the supported platforms: 8192 (on NT/2K/XP).
11230 lt_cv_sys_max_cmd_len=8192;
11231 ;;
11232
cristy0c60a692010-11-04 01:09:47 +000011233 mint*)
11234 # On MiNT this can take a long time and run out of memory.
11235 lt_cv_sys_max_cmd_len=8192;
11236 ;;
11237
cristy73bd4a52010-10-05 11:24:23 +000011238 amigaos*)
11239 # On AmigaOS with pdksh, this test takes hours, literally.
11240 # So we just punt and use a minimum line length of 8192.
11241 lt_cv_sys_max_cmd_len=8192;
11242 ;;
11243
11244 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11245 # This has been around since 386BSD, at least. Likely further.
11246 if test -x /sbin/sysctl; then
11247 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11248 elif test -x /usr/sbin/sysctl; then
11249 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11250 else
11251 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11252 fi
11253 # And add a safety zone
11254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11256 ;;
11257
11258 interix*)
11259 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11260 lt_cv_sys_max_cmd_len=196608
11261 ;;
11262
cristy99bd5232011-12-07 14:38:20 +000011263 os2*)
11264 # The test takes a long time on OS/2.
11265 lt_cv_sys_max_cmd_len=8192
11266 ;;
11267
cristy73bd4a52010-10-05 11:24:23 +000011268 osf*)
11269 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11270 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11271 # nice to cause kernel panics so lets avoid the loop below.
11272 # First set a reasonable default.
11273 lt_cv_sys_max_cmd_len=16384
11274 #
11275 if test -x /sbin/sysconfig; then
11276 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11277 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11278 esac
11279 fi
11280 ;;
11281 sco3.2v5*)
11282 lt_cv_sys_max_cmd_len=102400
11283 ;;
11284 sysv5* | sco5v6* | sysv4.2uw2*)
11285 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11286 if test -n "$kargmax"; then
11287 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11288 else
11289 lt_cv_sys_max_cmd_len=32768
11290 fi
11291 ;;
11292 *)
11293 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11294 if test -n "$lt_cv_sys_max_cmd_len"; then
11295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11297 else
11298 # Make teststring a little bigger before we do anything with it.
11299 # a 1K string should be a reasonable start.
11300 for i in 1 2 3 4 5 6 7 8 ; do
11301 teststring=$teststring$teststring
11302 done
11303 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11304 # If test is not a shell built-in, we'll probably end up computing a
11305 # maximum length that is only half of the actual maximum length, but
11306 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011307 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011308 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011309 test $i != 17 # 1/2 MB should be enough
11310 do
11311 i=`expr $i + 1`
11312 teststring=$teststring$teststring
11313 done
11314 # Only check the string length outside the loop.
11315 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11316 teststring=
11317 # Add a significant safety factor because C++ compilers can tack on
11318 # massive amounts of additional arguments before passing them to the
11319 # linker. It appears as though 1/2 is a usable value.
11320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11321 fi
11322 ;;
11323 esac
11324
11325fi
11326
11327if test -n $lt_cv_sys_max_cmd_len ; then
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11329$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11330else
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11332$as_echo "none" >&6; }
11333fi
11334max_cmd_len=$lt_cv_sys_max_cmd_len
11335
11336
11337
11338
11339
11340
11341: ${CP="cp -f"}
11342: ${MV="mv -f"}
11343: ${RM="rm -f"}
11344
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11346$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11347# Try some XSI features
11348xsi_shell=no
11349( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011350 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11351 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011352 && eval 'test $(( 1 + 1 )) -eq 2 \
11353 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11354 && xsi_shell=yes
11355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11356$as_echo "$xsi_shell" >&6; }
11357
11358
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11360$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11361lt_shell_append=no
11362( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11363 >/dev/null 2>&1 \
11364 && lt_shell_append=yes
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11366$as_echo "$lt_shell_append" >&6; }
11367
11368
11369if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11370 lt_unset=unset
11371else
11372 lt_unset=false
11373fi
11374
11375
11376
11377
11378
11379# test EBCDIC or ASCII
11380case `echo X|tr X '\101'` in
11381 A) # ASCII based system
11382 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11383 lt_SP2NL='tr \040 \012'
11384 lt_NL2SP='tr \015\012 \040\040'
11385 ;;
11386 *) # EBCDIC based system
11387 lt_SP2NL='tr \100 \n'
11388 lt_NL2SP='tr \r\n \100\100'
11389 ;;
11390esac
11391
11392
11393
11394
11395
11396
11397
11398
11399
cristyda16f162011-02-19 23:52:17 +000011400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11401$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11402if ${lt_cv_to_host_file_cmd+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404else
11405 case $host in
11406 *-*-mingw* )
11407 case $build in
11408 *-*-mingw* ) # actually msys
11409 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11410 ;;
11411 *-*-cygwin* )
11412 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11413 ;;
11414 * ) # otherwise, assume *nix
11415 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11416 ;;
11417 esac
11418 ;;
11419 *-*-cygwin* )
11420 case $build in
11421 *-*-mingw* ) # actually msys
11422 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11423 ;;
11424 *-*-cygwin* )
11425 lt_cv_to_host_file_cmd=func_convert_file_noop
11426 ;;
11427 * ) # otherwise, assume *nix
11428 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11429 ;;
11430 esac
11431 ;;
11432 * ) # unhandled hosts (and "normal" native builds)
11433 lt_cv_to_host_file_cmd=func_convert_file_noop
11434 ;;
11435esac
11436
11437fi
11438
11439to_host_file_cmd=$lt_cv_to_host_file_cmd
11440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11441$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11442
11443
11444
11445
11446
11447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11448$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11449if ${lt_cv_to_tool_file_cmd+:} false; then :
11450 $as_echo_n "(cached) " >&6
11451else
11452 #assume ordinary cross tools, or native build.
11453lt_cv_to_tool_file_cmd=func_convert_file_noop
11454case $host in
11455 *-*-mingw* )
11456 case $build in
11457 *-*-mingw* ) # actually msys
11458 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11459 ;;
11460 esac
11461 ;;
11462esac
11463
11464fi
11465
11466to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11468$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11469
11470
11471
11472
11473
cristy73bd4a52010-10-05 11:24:23 +000011474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11475$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011476if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011477 $as_echo_n "(cached) " >&6
11478else
11479 lt_cv_ld_reload_flag='-r'
11480fi
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11482$as_echo "$lt_cv_ld_reload_flag" >&6; }
11483reload_flag=$lt_cv_ld_reload_flag
11484case $reload_flag in
11485"" | " "*) ;;
11486*) reload_flag=" $reload_flag" ;;
11487esac
11488reload_cmds='$LD$reload_flag -o $output$reload_objs'
11489case $host_os in
cristyda16f162011-02-19 23:52:17 +000011490 cygwin* | mingw* | pw32* | cegcc*)
11491 if test "$GCC" != yes; then
11492 reload_cmds=false
11493 fi
11494 ;;
cristy73bd4a52010-10-05 11:24:23 +000011495 darwin*)
11496 if test "$GCC" = yes; then
11497 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11498 else
11499 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11500 fi
11501 ;;
11502esac
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512if test -n "$ac_tool_prefix"; then
11513 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11514set dummy ${ac_tool_prefix}objdump; ac_word=$2
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011517if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011518 $as_echo_n "(cached) " >&6
11519else
11520 if test -n "$OBJDUMP"; then
11521 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11522else
11523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524for as_dir in $PATH
11525do
11526 IFS=$as_save_IFS
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011530 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 break 2
11533 fi
11534done
11535 done
11536IFS=$as_save_IFS
11537
11538fi
11539fi
11540OBJDUMP=$ac_cv_prog_OBJDUMP
11541if test -n "$OBJDUMP"; then
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11543$as_echo "$OBJDUMP" >&6; }
11544else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546$as_echo "no" >&6; }
11547fi
11548
11549
11550fi
11551if test -z "$ac_cv_prog_OBJDUMP"; then
11552 ac_ct_OBJDUMP=$OBJDUMP
11553 # Extract the first word of "objdump", so it can be a program name with args.
11554set dummy objdump; ac_word=$2
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011557if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011558 $as_echo_n "(cached) " >&6
11559else
11560 if test -n "$ac_ct_OBJDUMP"; then
11561 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11562else
11563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564for as_dir in $PATH
11565do
11566 IFS=$as_save_IFS
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011570 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 break 2
11573 fi
11574done
11575 done
11576IFS=$as_save_IFS
11577
11578fi
11579fi
11580ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11581if test -n "$ac_ct_OBJDUMP"; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11583$as_echo "$ac_ct_OBJDUMP" >&6; }
11584else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586$as_echo "no" >&6; }
11587fi
11588
11589 if test "x$ac_ct_OBJDUMP" = x; then
11590 OBJDUMP="false"
11591 else
11592 case $cross_compiling:$ac_tool_warned in
11593yes:)
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11596ac_tool_warned=yes ;;
11597esac
11598 OBJDUMP=$ac_ct_OBJDUMP
11599 fi
11600else
11601 OBJDUMP="$ac_cv_prog_OBJDUMP"
11602fi
11603
11604test -z "$OBJDUMP" && OBJDUMP=objdump
11605
11606
11607
11608
11609
11610
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11612$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011613if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011614 $as_echo_n "(cached) " >&6
11615else
11616 lt_cv_file_magic_cmd='$MAGIC_CMD'
11617lt_cv_file_magic_test_file=
11618lt_cv_deplibs_check_method='unknown'
11619# Need to set the preceding variable on all platforms that support
11620# interlibrary dependencies.
11621# 'none' -- dependencies not supported.
11622# `unknown' -- same as none, but documents that we really don't know.
11623# 'pass_all' -- all dependencies passed with no checks.
11624# 'test_compile' -- check by making test program.
11625# 'file_magic [[regex]]' -- check by looking for files in library path
11626# which responds to the $file_magic_cmd with a given extended regex.
11627# If you have `file' or equivalent on your system and you're not sure
11628# whether `pass_all' will *always* work, you probably want this one.
11629
11630case $host_os in
11631aix[4-9]*)
11632 lt_cv_deplibs_check_method=pass_all
11633 ;;
11634
11635beos*)
11636 lt_cv_deplibs_check_method=pass_all
11637 ;;
11638
11639bsdi[45]*)
11640 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11641 lt_cv_file_magic_cmd='/usr/bin/file -L'
11642 lt_cv_file_magic_test_file=/shlib/libc.so
11643 ;;
11644
11645cygwin*)
11646 # func_win32_libid is a shell function defined in ltmain.sh
11647 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11648 lt_cv_file_magic_cmd='func_win32_libid'
11649 ;;
11650
11651mingw* | pw32*)
11652 # Base MSYS/MinGW do not provide the 'file' command needed by
11653 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11654 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011655 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11656 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011657 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11658 lt_cv_file_magic_cmd='func_win32_libid'
11659 else
cristy0c60a692010-11-04 01:09:47 +000011660 # Keep this pattern in sync with the one in func_win32_libid.
11661 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 +000011662 lt_cv_file_magic_cmd='$OBJDUMP -f'
11663 fi
11664 ;;
11665
cristy0c60a692010-11-04 01:09:47 +000011666cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011667 # use the weaker test based on 'objdump'. See mingw*.
11668 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11669 lt_cv_file_magic_cmd='$OBJDUMP -f'
11670 ;;
11671
11672darwin* | rhapsody*)
11673 lt_cv_deplibs_check_method=pass_all
11674 ;;
11675
11676freebsd* | dragonfly*)
11677 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11678 case $host_cpu in
11679 i*86 )
11680 # Not sure whether the presence of OpenBSD here was a mistake.
11681 # Let's accept both of them until this is cleared up.
11682 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11683 lt_cv_file_magic_cmd=/usr/bin/file
11684 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11685 ;;
11686 esac
11687 else
11688 lt_cv_deplibs_check_method=pass_all
11689 fi
11690 ;;
11691
11692gnu*)
11693 lt_cv_deplibs_check_method=pass_all
11694 ;;
11695
cristy0c60a692010-11-04 01:09:47 +000011696haiku*)
11697 lt_cv_deplibs_check_method=pass_all
11698 ;;
11699
cristy73bd4a52010-10-05 11:24:23 +000011700hpux10.20* | hpux11*)
11701 lt_cv_file_magic_cmd=/usr/bin/file
11702 case $host_cpu in
11703 ia64*)
11704 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11705 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11706 ;;
11707 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011708 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 +000011709 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11710 ;;
11711 *)
cristy0c60a692010-11-04 01:09:47 +000011712 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 +000011713 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11714 ;;
11715 esac
11716 ;;
11717
11718interix[3-9]*)
11719 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11721 ;;
11722
11723irix5* | irix6* | nonstopux*)
11724 case $LD in
11725 *-32|*"-32 ") libmagic=32-bit;;
11726 *-n32|*"-n32 ") libmagic=N32;;
11727 *-64|*"-64 ") libmagic=64-bit;;
11728 *) libmagic=never-match;;
11729 esac
11730 lt_cv_deplibs_check_method=pass_all
11731 ;;
11732
cristy99bd5232011-12-07 14:38:20 +000011733# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011734linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011735 lt_cv_deplibs_check_method=pass_all
11736 ;;
11737
11738netbsd*)
11739 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11741 else
11742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11743 fi
11744 ;;
11745
11746newos6*)
11747 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11748 lt_cv_file_magic_cmd=/usr/bin/file
11749 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11750 ;;
11751
11752*nto* | *qnx*)
11753 lt_cv_deplibs_check_method=pass_all
11754 ;;
11755
11756openbsd*)
11757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11759 else
11760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11761 fi
11762 ;;
11763
11764osf3* | osf4* | osf5*)
11765 lt_cv_deplibs_check_method=pass_all
11766 ;;
11767
11768rdos*)
11769 lt_cv_deplibs_check_method=pass_all
11770 ;;
11771
11772solaris*)
11773 lt_cv_deplibs_check_method=pass_all
11774 ;;
11775
11776sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11777 lt_cv_deplibs_check_method=pass_all
11778 ;;
11779
11780sysv4 | sysv4.3*)
11781 case $host_vendor in
11782 motorola)
11783 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]'
11784 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11785 ;;
11786 ncr)
11787 lt_cv_deplibs_check_method=pass_all
11788 ;;
11789 sequent)
11790 lt_cv_file_magic_cmd='/bin/file'
11791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11792 ;;
11793 sni)
11794 lt_cv_file_magic_cmd='/bin/file'
11795 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11796 lt_cv_file_magic_test_file=/lib/libc.so
11797 ;;
11798 siemens)
11799 lt_cv_deplibs_check_method=pass_all
11800 ;;
11801 pc)
11802 lt_cv_deplibs_check_method=pass_all
11803 ;;
11804 esac
11805 ;;
11806
11807tpf*)
11808 lt_cv_deplibs_check_method=pass_all
11809 ;;
11810esac
11811
11812fi
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11814$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011815
11816file_magic_glob=
11817want_nocaseglob=no
11818if test "$build" = "$host"; then
11819 case $host_os in
11820 mingw* | pw32*)
11821 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11822 want_nocaseglob=yes
11823 else
11824 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11825 fi
11826 ;;
11827 esac
11828fi
11829
cristy73bd4a52010-10-05 11:24:23 +000011830file_magic_cmd=$lt_cv_file_magic_cmd
11831deplibs_check_method=$lt_cv_deplibs_check_method
11832test -z "$deplibs_check_method" && deplibs_check_method=unknown
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
cristyda16f162011-02-19 23:52:17 +000011845
11846
11847
11848
11849
11850
11851
11852
11853
11854
cristy73bd4a52010-10-05 11:24:23 +000011855if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011856 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11857set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11859$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011860if ${ac_cv_prog_DLLTOOL+:} false; then :
11861 $as_echo_n "(cached) " >&6
11862else
11863 if test -n "$DLLTOOL"; then
11864 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11865else
11866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867for as_dir in $PATH
11868do
11869 IFS=$as_save_IFS
11870 test -z "$as_dir" && as_dir=.
11871 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011873 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 break 2
11876 fi
11877done
11878 done
11879IFS=$as_save_IFS
11880
11881fi
11882fi
11883DLLTOOL=$ac_cv_prog_DLLTOOL
11884if test -n "$DLLTOOL"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11886$as_echo "$DLLTOOL" >&6; }
11887else
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889$as_echo "no" >&6; }
11890fi
11891
11892
11893fi
11894if test -z "$ac_cv_prog_DLLTOOL"; then
11895 ac_ct_DLLTOOL=$DLLTOOL
11896 # Extract the first word of "dlltool", so it can be a program name with args.
11897set dummy dlltool; ac_word=$2
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899$as_echo_n "checking for $ac_word... " >&6; }
11900if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11901 $as_echo_n "(cached) " >&6
11902else
11903 if test -n "$ac_ct_DLLTOOL"; then
11904 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11905else
11906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907for as_dir in $PATH
11908do
11909 IFS=$as_save_IFS
11910 test -z "$as_dir" && as_dir=.
11911 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011913 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915 break 2
11916 fi
11917done
11918 done
11919IFS=$as_save_IFS
11920
11921fi
11922fi
11923ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11924if test -n "$ac_ct_DLLTOOL"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11926$as_echo "$ac_ct_DLLTOOL" >&6; }
11927else
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929$as_echo "no" >&6; }
11930fi
11931
11932 if test "x$ac_ct_DLLTOOL" = x; then
11933 DLLTOOL="false"
11934 else
11935 case $cross_compiling:$ac_tool_warned in
11936yes:)
11937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11939ac_tool_warned=yes ;;
11940esac
11941 DLLTOOL=$ac_ct_DLLTOOL
11942 fi
11943else
11944 DLLTOOL="$ac_cv_prog_DLLTOOL"
11945fi
11946
11947test -z "$DLLTOOL" && DLLTOOL=dlltool
11948
11949
11950
11951
11952
11953
11954
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11956$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11957if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959else
11960 lt_cv_sharedlib_from_linklib_cmd='unknown'
11961
11962case $host_os in
11963cygwin* | mingw* | pw32* | cegcc*)
11964 # two different shell functions defined in ltmain.sh
11965 # decide which to use based on capabilities of $DLLTOOL
11966 case `$DLLTOOL --help 2>&1` in
11967 *--identify-strict*)
11968 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11969 ;;
11970 *)
11971 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11972 ;;
11973 esac
11974 ;;
11975*)
11976 # fallback: assume linklib IS sharedlib
11977 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11978 ;;
11979esac
11980
11981fi
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11983$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11984sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11985test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11986
11987
11988
11989
11990
11991
11992
11993if test -n "$ac_tool_prefix"; then
11994 for ac_prog in ar
11995 do
11996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11997set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999$as_echo_n "checking for $ac_word... " >&6; }
12000if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012001 $as_echo_n "(cached) " >&6
12002else
12003 if test -n "$AR"; then
12004 ac_cv_prog_AR="$AR" # Let the user override the test.
12005else
12006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007for as_dir in $PATH
12008do
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012013 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 break 2
12016 fi
12017done
12018 done
12019IFS=$as_save_IFS
12020
12021fi
12022fi
12023AR=$ac_cv_prog_AR
12024if test -n "$AR"; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12026$as_echo "$AR" >&6; }
12027else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029$as_echo "no" >&6; }
12030fi
12031
12032
cristyda16f162011-02-19 23:52:17 +000012033 test -n "$AR" && break
12034 done
cristy73bd4a52010-10-05 11:24:23 +000012035fi
cristyda16f162011-02-19 23:52:17 +000012036if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012037 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012038 for ac_prog in ar
12039do
12040 # Extract the first word of "$ac_prog", so it can be a program name with args.
12041set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12043$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012044if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012045 $as_echo_n "(cached) " >&6
12046else
12047 if test -n "$ac_ct_AR"; then
12048 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12049else
12050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051for as_dir in $PATH
12052do
12053 IFS=$as_save_IFS
12054 test -z "$as_dir" && as_dir=.
12055 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012057 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12059 break 2
12060 fi
12061done
12062 done
12063IFS=$as_save_IFS
12064
12065fi
12066fi
12067ac_ct_AR=$ac_cv_prog_ac_ct_AR
12068if test -n "$ac_ct_AR"; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12070$as_echo "$ac_ct_AR" >&6; }
12071else
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073$as_echo "no" >&6; }
12074fi
12075
cristyda16f162011-02-19 23:52:17 +000012076
12077 test -n "$ac_ct_AR" && break
12078done
12079
cristy73bd4a52010-10-05 11:24:23 +000012080 if test "x$ac_ct_AR" = x; then
12081 AR="false"
12082 else
12083 case $cross_compiling:$ac_tool_warned in
12084yes:)
12085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12087ac_tool_warned=yes ;;
12088esac
12089 AR=$ac_ct_AR
12090 fi
cristy73bd4a52010-10-05 11:24:23 +000012091fi
12092
cristyda16f162011-02-19 23:52:17 +000012093: ${AR=ar}
12094: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
cristyda16f162011-02-19 23:52:17 +000012106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12107$as_echo_n "checking for archiver @FILE support... " >&6; }
12108if ${lt_cv_ar_at_file+:} false; then :
12109 $as_echo_n "(cached) " >&6
12110else
12111 lt_cv_ar_at_file=no
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113/* end confdefs.h. */
12114
12115int
12116main ()
12117{
12118
12119 ;
12120 return 0;
12121}
12122_ACEOF
12123if ac_fn_c_try_compile "$LINENO"; then :
12124 echo conftest.$ac_objext > conftest.lst
12125 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12127 (eval $lt_ar_try) 2>&5
12128 ac_status=$?
12129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12130 test $ac_status = 0; }
12131 if test "$ac_status" -eq 0; then
12132 # Ensure the archiver fails upon bogus file names.
12133 rm -f conftest.$ac_objext libconftest.a
12134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12135 (eval $lt_ar_try) 2>&5
12136 ac_status=$?
12137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12138 test $ac_status = 0; }
12139 if test "$ac_status" -ne 0; then
12140 lt_cv_ar_at_file=@
12141 fi
12142 fi
12143 rm -f conftest.* libconftest.a
12144
12145fi
12146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147
12148fi
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12150$as_echo "$lt_cv_ar_at_file" >&6; }
12151
12152if test "x$lt_cv_ar_at_file" = xno; then
12153 archiver_list_spec=
12154else
12155 archiver_list_spec=$lt_cv_ar_at_file
12156fi
12157
12158
12159
12160
12161
12162
12163
cristy73bd4a52010-10-05 11:24:23 +000012164if test -n "$ac_tool_prefix"; then
12165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12166set dummy ${ac_tool_prefix}strip; ac_word=$2
12167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012169if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012170 $as_echo_n "(cached) " >&6
12171else
12172 if test -n "$STRIP"; then
12173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12174else
12175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176for as_dir in $PATH
12177do
12178 IFS=$as_save_IFS
12179 test -z "$as_dir" && as_dir=.
12180 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012182 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 break 2
12185 fi
12186done
12187 done
12188IFS=$as_save_IFS
12189
12190fi
12191fi
12192STRIP=$ac_cv_prog_STRIP
12193if test -n "$STRIP"; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12195$as_echo "$STRIP" >&6; }
12196else
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198$as_echo "no" >&6; }
12199fi
12200
12201
12202fi
12203if test -z "$ac_cv_prog_STRIP"; then
12204 ac_ct_STRIP=$STRIP
12205 # Extract the first word of "strip", so it can be a program name with args.
12206set dummy strip; ac_word=$2
12207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12208$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012209if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012210 $as_echo_n "(cached) " >&6
12211else
12212 if test -n "$ac_ct_STRIP"; then
12213 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12214else
12215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216for as_dir in $PATH
12217do
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012222 ac_cv_prog_ac_ct_STRIP="strip"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224 break 2
12225 fi
12226done
12227 done
12228IFS=$as_save_IFS
12229
12230fi
12231fi
12232ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12233if test -n "$ac_ct_STRIP"; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12235$as_echo "$ac_ct_STRIP" >&6; }
12236else
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238$as_echo "no" >&6; }
12239fi
12240
12241 if test "x$ac_ct_STRIP" = x; then
12242 STRIP=":"
12243 else
12244 case $cross_compiling:$ac_tool_warned in
12245yes:)
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12248ac_tool_warned=yes ;;
12249esac
12250 STRIP=$ac_ct_STRIP
12251 fi
12252else
12253 STRIP="$ac_cv_prog_STRIP"
12254fi
12255
12256test -z "$STRIP" && STRIP=:
12257
12258
12259
12260
12261
12262
12263if test -n "$ac_tool_prefix"; then
12264 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12265set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12267$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012268if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012269 $as_echo_n "(cached) " >&6
12270else
12271 if test -n "$RANLIB"; then
12272 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12273else
12274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275for as_dir in $PATH
12276do
12277 IFS=$as_save_IFS
12278 test -z "$as_dir" && as_dir=.
12279 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012281 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12283 break 2
12284 fi
12285done
12286 done
12287IFS=$as_save_IFS
12288
12289fi
12290fi
12291RANLIB=$ac_cv_prog_RANLIB
12292if test -n "$RANLIB"; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12294$as_echo "$RANLIB" >&6; }
12295else
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
12298fi
12299
12300
12301fi
12302if test -z "$ac_cv_prog_RANLIB"; then
12303 ac_ct_RANLIB=$RANLIB
12304 # Extract the first word of "ranlib", so it can be a program name with args.
12305set dummy ranlib; ac_word=$2
12306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012308if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012309 $as_echo_n "(cached) " >&6
12310else
12311 if test -n "$ac_ct_RANLIB"; then
12312 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12313else
12314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315for as_dir in $PATH
12316do
12317 IFS=$as_save_IFS
12318 test -z "$as_dir" && as_dir=.
12319 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012321 ac_cv_prog_ac_ct_RANLIB="ranlib"
12322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323 break 2
12324 fi
12325done
12326 done
12327IFS=$as_save_IFS
12328
12329fi
12330fi
12331ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12332if test -n "$ac_ct_RANLIB"; then
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12334$as_echo "$ac_ct_RANLIB" >&6; }
12335else
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
12338fi
12339
12340 if test "x$ac_ct_RANLIB" = x; then
12341 RANLIB=":"
12342 else
12343 case $cross_compiling:$ac_tool_warned in
12344yes:)
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12347ac_tool_warned=yes ;;
12348esac
12349 RANLIB=$ac_ct_RANLIB
12350 fi
12351else
12352 RANLIB="$ac_cv_prog_RANLIB"
12353fi
12354
12355test -z "$RANLIB" && RANLIB=:
12356
12357
12358
12359
12360
12361
12362# Determine commands to create old-style static archives.
12363old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12364old_postinstall_cmds='chmod 644 $oldlib'
12365old_postuninstall_cmds=
12366
12367if test -n "$RANLIB"; then
12368 case $host_os in
12369 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012370 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012371 ;;
12372 *)
cristy99bd5232011-12-07 14:38:20 +000012373 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012374 ;;
12375 esac
cristy99bd5232011-12-07 14:38:20 +000012376 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012377fi
12378
cristy0c60a692010-11-04 01:09:47 +000012379case $host_os in
12380 darwin*)
12381 lock_old_archive_extraction=yes ;;
12382 *)
12383 lock_old_archive_extraction=no ;;
12384esac
12385
12386
12387
12388
12389
12390
cristy73bd4a52010-10-05 11:24:23 +000012391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424# If no C compiler was specified, use CC.
12425LTCC=${LTCC-"$CC"}
12426
12427# If no C compiler flags were specified, use CFLAGS.
12428LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12429
12430# Allow CC to be a program name with arguments.
12431compiler=$CC
12432
12433
12434# Check for command to grab the raw symbol name followed by C symbol from nm.
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12436$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012437if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012438 $as_echo_n "(cached) " >&6
12439else
12440
12441# These are sane defaults that work on at least a few old systems.
12442# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12443
12444# Character class describing NM global symbol codes.
12445symcode='[BCDEGRST]'
12446
12447# Regexp to match symbols that can be accessed directly from C.
12448sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12449
12450# Define system-specific variables.
12451case $host_os in
12452aix*)
12453 symcode='[BCDT]'
12454 ;;
12455cygwin* | mingw* | pw32* | cegcc*)
12456 symcode='[ABCDGISTW]'
12457 ;;
12458hpux*)
12459 if test "$host_cpu" = ia64; then
12460 symcode='[ABCDEGRST]'
12461 fi
12462 ;;
12463irix* | nonstopux*)
12464 symcode='[BCDEGRST]'
12465 ;;
12466osf*)
12467 symcode='[BCDEGQRST]'
12468 ;;
12469solaris*)
12470 symcode='[BDRT]'
12471 ;;
12472sco3.2v5*)
12473 symcode='[DT]'
12474 ;;
12475sysv4.2uw2*)
12476 symcode='[DT]'
12477 ;;
12478sysv5* | sco5v6* | unixware* | OpenUNIX*)
12479 symcode='[ABDT]'
12480 ;;
12481sysv4)
12482 symcode='[DFNSTU]'
12483 ;;
12484esac
12485
12486# If we're using GNU nm, then use its standard symbol codes.
12487case `$NM -V 2>&1` in
12488*GNU* | *'with BFD'*)
12489 symcode='[ABCDGIRSTW]' ;;
12490esac
12491
12492# Transform an extracted symbol line into a proper C declaration.
12493# Some systems (esp. on ia64) link data and code symbols differently,
12494# so use this general approach.
12495lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12496
12497# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012498lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12499lt_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 +000012500
12501# Handle CRLF in mingw tool chain
12502opt_cr=
12503case $build_os in
12504mingw*)
12505 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12506 ;;
12507esac
12508
12509# Try without a prefix underscore, then with it.
12510for ac_symprfx in "" "_"; do
12511
12512 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12513 symxfrm="\\1 $ac_symprfx\\2 \\2"
12514
12515 # Write the raw and C identifiers.
12516 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12517 # Fake it for dumpbin and say T for any non-static function
12518 # and D for any global variable.
12519 # Also find C++ and __fastcall symbols from MSVC++,
12520 # which start with @ or ?.
12521 lt_cv_sys_global_symbol_pipe="$AWK '"\
12522" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012523" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012524" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12525" \$ 0!~/External *\|/{next};"\
12526" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12527" {if(hide[section]) next};"\
12528" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12529" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12530" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12531" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12532" ' prfx=^$ac_symprfx"
12533 else
12534 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12535 fi
cristyda16f162011-02-19 23:52:17 +000012536 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012537
12538 # Check to see that the pipe works correctly.
12539 pipe_works=no
12540
12541 rm -f conftest*
12542 cat > conftest.$ac_ext <<_LT_EOF
12543#ifdef __cplusplus
12544extern "C" {
12545#endif
12546char nm_test_var;
12547void nm_test_func(void);
12548void nm_test_func(void){}
12549#ifdef __cplusplus
12550}
12551#endif
12552int main(){nm_test_var='a';nm_test_func();return(0);}
12553_LT_EOF
12554
12555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12556 (eval $ac_compile) 2>&5
12557 ac_status=$?
12558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12559 test $ac_status = 0; }; then
12560 # Now try to grab the symbols.
12561 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12563 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012564 ac_status=$?
12565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12566 test $ac_status = 0; } && test -s "$nlist"; then
12567 # Try sorting and uniquifying the output.
12568 if sort "$nlist" | uniq > "$nlist"T; then
12569 mv -f "$nlist"T "$nlist"
12570 else
12571 rm -f "$nlist"T
12572 fi
12573
12574 # Make sure that we snagged all the symbols we need.
12575 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12576 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12577 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012578/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12579#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12580/* DATA imports from DLLs on WIN32 con't be const, because runtime
12581 relocations are performed -- see ld's documentation on pseudo-relocs. */
12582# define LT_DLSYM_CONST
12583#elif defined(__osf__)
12584/* This system does not cope well with relocations in const data. */
12585# define LT_DLSYM_CONST
12586#else
12587# define LT_DLSYM_CONST const
12588#endif
12589
cristy73bd4a52010-10-05 11:24:23 +000012590#ifdef __cplusplus
12591extern "C" {
12592#endif
12593
12594_LT_EOF
12595 # Now generate the symbol file.
12596 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12597
12598 cat <<_LT_EOF >> conftest.$ac_ext
12599
12600/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012601LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012602 const char *name;
12603 void *address;
12604}
12605lt__PROGRAM__LTX_preloaded_symbols[] =
12606{
12607 { "@PROGRAM@", (void *) 0 },
12608_LT_EOF
12609 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12610 cat <<\_LT_EOF >> conftest.$ac_ext
12611 {0, (void *) 0}
12612};
12613
12614/* This works around a problem in FreeBSD linker */
12615#ifdef FREEBSD_WORKAROUND
12616static const void *lt_preloaded_setup() {
12617 return lt__PROGRAM__LTX_preloaded_symbols;
12618}
12619#endif
12620
12621#ifdef __cplusplus
12622}
12623#endif
12624_LT_EOF
12625 # Now try linking the two files.
12626 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012627 lt_globsym_save_LIBS=$LIBS
12628 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012629 LIBS="conftstm.$ac_objext"
12630 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12632 (eval $ac_link) 2>&5
12633 ac_status=$?
12634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12635 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12636 pipe_works=yes
12637 fi
cristyda16f162011-02-19 23:52:17 +000012638 LIBS=$lt_globsym_save_LIBS
12639 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012640 else
12641 echo "cannot find nm_test_func in $nlist" >&5
12642 fi
12643 else
12644 echo "cannot find nm_test_var in $nlist" >&5
12645 fi
12646 else
12647 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12648 fi
12649 else
12650 echo "$progname: failed program was:" >&5
12651 cat conftest.$ac_ext >&5
12652 fi
12653 rm -rf conftest* conftst*
12654
12655 # Do not use the global_symbol_pipe unless it works.
12656 if test "$pipe_works" = yes; then
12657 break
12658 else
12659 lt_cv_sys_global_symbol_pipe=
12660 fi
12661done
12662
12663fi
12664
12665if test -z "$lt_cv_sys_global_symbol_pipe"; then
12666 lt_cv_sys_global_symbol_to_cdecl=
12667fi
12668if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12670$as_echo "failed" >&6; }
12671else
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12673$as_echo "ok" >&6; }
12674fi
12675
cristyda16f162011-02-19 23:52:17 +000012676# Response file support.
12677if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12678 nm_file_list_spec='@'
12679elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12680 nm_file_list_spec='@'
12681fi
cristy73bd4a52010-10-05 11:24:23 +000012682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
cristyda16f162011-02-19 23:52:17 +000012703
12704
12705
12706
12707
12708
12709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12710$as_echo_n "checking for sysroot... " >&6; }
12711
12712# Check whether --with-sysroot was given.
12713if test "${with_sysroot+set}" = set; then :
12714 withval=$with_sysroot;
12715else
12716 with_sysroot=no
12717fi
12718
12719
12720lt_sysroot=
12721case ${with_sysroot} in #(
12722 yes)
12723 if test "$GCC" = yes; then
12724 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12725 fi
12726 ;; #(
12727 /*)
12728 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12729 ;; #(
12730 no|'')
12731 ;; #(
12732 *)
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12734$as_echo "${with_sysroot}" >&6; }
12735 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12736 ;;
12737esac
12738
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12740$as_echo "${lt_sysroot:-no}" >&6; }
12741
12742
12743
12744
12745
cristy73bd4a52010-10-05 11:24:23 +000012746# Check whether --enable-libtool-lock was given.
12747if test "${enable_libtool_lock+set}" = set; then :
12748 enableval=$enable_libtool_lock;
12749fi
12750
12751test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12752
12753# Some flags need to be propagated to the compiler or linker for good
12754# libtool support.
12755case $host in
12756ia64-*-hpux*)
12757 # Find out which ABI we are using.
12758 echo 'int i;' > conftest.$ac_ext
12759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12760 (eval $ac_compile) 2>&5
12761 ac_status=$?
12762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12763 test $ac_status = 0; }; then
12764 case `/usr/bin/file conftest.$ac_objext` in
12765 *ELF-32*)
12766 HPUX_IA64_MODE="32"
12767 ;;
12768 *ELF-64*)
12769 HPUX_IA64_MODE="64"
12770 ;;
12771 esac
12772 fi
12773 rm -rf conftest*
12774 ;;
12775*-*-irix6*)
12776 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012777 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12779 (eval $ac_compile) 2>&5
12780 ac_status=$?
12781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12782 test $ac_status = 0; }; then
12783 if test "$lt_cv_prog_gnu_ld" = yes; then
12784 case `/usr/bin/file conftest.$ac_objext` in
12785 *32-bit*)
12786 LD="${LD-ld} -melf32bsmip"
12787 ;;
12788 *N32*)
12789 LD="${LD-ld} -melf32bmipn32"
12790 ;;
12791 *64-bit*)
12792 LD="${LD-ld} -melf64bmip"
12793 ;;
12794 esac
12795 else
12796 case `/usr/bin/file conftest.$ac_objext` in
12797 *32-bit*)
12798 LD="${LD-ld} -32"
12799 ;;
12800 *N32*)
12801 LD="${LD-ld} -n32"
12802 ;;
12803 *64-bit*)
12804 LD="${LD-ld} -64"
12805 ;;
12806 esac
12807 fi
12808 fi
12809 rm -rf conftest*
12810 ;;
12811
cristyd95b7a52013-10-23 13:12:53 +000012812x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000012813s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12814 # Find out which ABI we are using.
12815 echo 'int i;' > conftest.$ac_ext
12816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12817 (eval $ac_compile) 2>&5
12818 ac_status=$?
12819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12820 test $ac_status = 0; }; then
12821 case `/usr/bin/file conftest.o` in
12822 *32-bit*)
12823 case $host in
12824 x86_64-*kfreebsd*-gnu)
12825 LD="${LD-ld} -m elf_i386_fbsd"
12826 ;;
12827 x86_64-*linux*)
12828 LD="${LD-ld} -m elf_i386"
12829 ;;
cristya5bda012013-11-03 18:05:38 +000012830 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000012831 LD="${LD-ld} -m elf32lppclinux"
12832 ;;
cristya5bda012013-11-03 18:05:38 +000012833 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012834 LD="${LD-ld} -m elf32ppclinux"
12835 ;;
12836 s390x-*linux*)
12837 LD="${LD-ld} -m elf_s390"
12838 ;;
12839 sparc64-*linux*)
12840 LD="${LD-ld} -m elf32_sparc"
12841 ;;
12842 esac
12843 ;;
12844 *64-bit*)
12845 case $host in
12846 x86_64-*kfreebsd*-gnu)
12847 LD="${LD-ld} -m elf_x86_64_fbsd"
12848 ;;
12849 x86_64-*linux*)
12850 LD="${LD-ld} -m elf_x86_64"
12851 ;;
cristyd95b7a52013-10-23 13:12:53 +000012852 powerpcle-*linux*)
12853 LD="${LD-ld} -m elf64lppc"
12854 ;;
12855 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012856 LD="${LD-ld} -m elf64ppc"
12857 ;;
12858 s390*-*linux*|s390*-*tpf*)
12859 LD="${LD-ld} -m elf64_s390"
12860 ;;
12861 sparc*-*linux*)
12862 LD="${LD-ld} -m elf64_sparc"
12863 ;;
12864 esac
12865 ;;
12866 esac
12867 fi
12868 rm -rf conftest*
12869 ;;
12870
12871*-*-sco3.2v5*)
12872 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12873 SAVE_CFLAGS="$CFLAGS"
12874 CFLAGS="$CFLAGS -belf"
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12876$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012877if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012878 $as_echo_n "(cached) " >&6
12879else
12880 ac_ext=c
12881ac_cpp='$CPP $CPPFLAGS'
12882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12884ac_compiler_gnu=$ac_cv_c_compiler_gnu
12885
12886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12887/* end confdefs.h. */
12888
12889int
12890main ()
12891{
12892
12893 ;
12894 return 0;
12895}
12896_ACEOF
12897if ac_fn_c_try_link "$LINENO"; then :
12898 lt_cv_cc_needs_belf=yes
12899else
12900 lt_cv_cc_needs_belf=no
12901fi
12902rm -f core conftest.err conftest.$ac_objext \
12903 conftest$ac_exeext conftest.$ac_ext
12904 ac_ext=c
12905ac_cpp='$CPP $CPPFLAGS'
12906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12908ac_compiler_gnu=$ac_cv_c_compiler_gnu
12909
12910fi
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12912$as_echo "$lt_cv_cc_needs_belf" >&6; }
12913 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12914 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12915 CFLAGS="$SAVE_CFLAGS"
12916 fi
12917 ;;
cristy99bd5232011-12-07 14:38:20 +000012918*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012919 # Find out which ABI we are using.
12920 echo 'int i;' > conftest.$ac_ext
12921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12922 (eval $ac_compile) 2>&5
12923 ac_status=$?
12924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12925 test $ac_status = 0; }; then
12926 case `/usr/bin/file conftest.o` in
12927 *64-bit*)
12928 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012929 yes*)
12930 case $host in
12931 i?86-*-solaris*)
12932 LD="${LD-ld} -m elf_x86_64"
12933 ;;
12934 sparc*-*-solaris*)
12935 LD="${LD-ld} -m elf64_sparc"
12936 ;;
12937 esac
12938 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12939 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12940 LD="${LD-ld}_sol2"
12941 fi
12942 ;;
cristy73bd4a52010-10-05 11:24:23 +000012943 *)
12944 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12945 LD="${LD-ld} -64"
12946 fi
12947 ;;
12948 esac
12949 ;;
12950 esac
12951 fi
12952 rm -rf conftest*
12953 ;;
12954esac
12955
12956need_locks="$enable_libtool_lock"
12957
cristyda16f162011-02-19 23:52:17 +000012958if test -n "$ac_tool_prefix"; then
12959 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12960set dummy ${ac_tool_prefix}mt; ac_word=$2
12961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12962$as_echo_n "checking for $ac_word... " >&6; }
12963if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12964 $as_echo_n "(cached) " >&6
12965else
12966 if test -n "$MANIFEST_TOOL"; then
12967 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12968else
12969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970for as_dir in $PATH
12971do
12972 IFS=$as_save_IFS
12973 test -z "$as_dir" && as_dir=.
12974 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012976 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12978 break 2
12979 fi
12980done
12981 done
12982IFS=$as_save_IFS
12983
12984fi
12985fi
12986MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12987if test -n "$MANIFEST_TOOL"; then
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12989$as_echo "$MANIFEST_TOOL" >&6; }
12990else
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992$as_echo "no" >&6; }
12993fi
12994
12995
12996fi
12997if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12998 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12999 # Extract the first word of "mt", so it can be a program name with args.
13000set dummy mt; ac_word=$2
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13002$as_echo_n "checking for $ac_word... " >&6; }
13003if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13004 $as_echo_n "(cached) " >&6
13005else
13006 if test -n "$ac_ct_MANIFEST_TOOL"; then
13007 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13008else
13009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010for as_dir in $PATH
13011do
13012 IFS=$as_save_IFS
13013 test -z "$as_dir" && as_dir=.
13014 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013016 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018 break 2
13019 fi
13020done
13021 done
13022IFS=$as_save_IFS
13023
13024fi
13025fi
13026ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13027if test -n "$ac_ct_MANIFEST_TOOL"; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13029$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13030else
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032$as_echo "no" >&6; }
13033fi
13034
13035 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13036 MANIFEST_TOOL=":"
13037 else
13038 case $cross_compiling:$ac_tool_warned in
13039yes:)
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13042ac_tool_warned=yes ;;
13043esac
13044 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13045 fi
13046else
13047 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13048fi
13049
13050test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13052$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13053if ${lt_cv_path_mainfest_tool+:} false; then :
13054 $as_echo_n "(cached) " >&6
13055else
13056 lt_cv_path_mainfest_tool=no
13057 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13058 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13059 cat conftest.err >&5
13060 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13061 lt_cv_path_mainfest_tool=yes
13062 fi
13063 rm -f conftest*
13064fi
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13066$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13067if test "x$lt_cv_path_mainfest_tool" != xyes; then
13068 MANIFEST_TOOL=:
13069fi
13070
13071
13072
13073
13074
cristy73bd4a52010-10-05 11:24:23 +000013075
13076 case $host_os in
13077 rhapsody* | darwin*)
13078 if test -n "$ac_tool_prefix"; then
13079 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13080set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13082$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013083if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013084 $as_echo_n "(cached) " >&6
13085else
13086 if test -n "$DSYMUTIL"; then
13087 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13088else
13089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090for as_dir in $PATH
13091do
13092 IFS=$as_save_IFS
13093 test -z "$as_dir" && as_dir=.
13094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013096 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098 break 2
13099 fi
13100done
13101 done
13102IFS=$as_save_IFS
13103
13104fi
13105fi
13106DSYMUTIL=$ac_cv_prog_DSYMUTIL
13107if test -n "$DSYMUTIL"; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13109$as_echo "$DSYMUTIL" >&6; }
13110else
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112$as_echo "no" >&6; }
13113fi
13114
13115
13116fi
13117if test -z "$ac_cv_prog_DSYMUTIL"; then
13118 ac_ct_DSYMUTIL=$DSYMUTIL
13119 # Extract the first word of "dsymutil", so it can be a program name with args.
13120set dummy dsymutil; ac_word=$2
13121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013123if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013124 $as_echo_n "(cached) " >&6
13125else
13126 if test -n "$ac_ct_DSYMUTIL"; then
13127 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13128else
13129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130for as_dir in $PATH
13131do
13132 IFS=$as_save_IFS
13133 test -z "$as_dir" && as_dir=.
13134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013136 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138 break 2
13139 fi
13140done
13141 done
13142IFS=$as_save_IFS
13143
13144fi
13145fi
13146ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13147if test -n "$ac_ct_DSYMUTIL"; then
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13149$as_echo "$ac_ct_DSYMUTIL" >&6; }
13150else
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152$as_echo "no" >&6; }
13153fi
13154
13155 if test "x$ac_ct_DSYMUTIL" = x; then
13156 DSYMUTIL=":"
13157 else
13158 case $cross_compiling:$ac_tool_warned in
13159yes:)
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13162ac_tool_warned=yes ;;
13163esac
13164 DSYMUTIL=$ac_ct_DSYMUTIL
13165 fi
13166else
13167 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13168fi
13169
13170 if test -n "$ac_tool_prefix"; then
13171 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13172set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013175if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013176 $as_echo_n "(cached) " >&6
13177else
13178 if test -n "$NMEDIT"; then
13179 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13180else
13181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182for as_dir in $PATH
13183do
13184 IFS=$as_save_IFS
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013188 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13190 break 2
13191 fi
13192done
13193 done
13194IFS=$as_save_IFS
13195
13196fi
13197fi
13198NMEDIT=$ac_cv_prog_NMEDIT
13199if test -n "$NMEDIT"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13201$as_echo "$NMEDIT" >&6; }
13202else
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204$as_echo "no" >&6; }
13205fi
13206
13207
13208fi
13209if test -z "$ac_cv_prog_NMEDIT"; then
13210 ac_ct_NMEDIT=$NMEDIT
13211 # Extract the first word of "nmedit", so it can be a program name with args.
13212set dummy nmedit; ac_word=$2
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013215if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013216 $as_echo_n "(cached) " >&6
13217else
13218 if test -n "$ac_ct_NMEDIT"; then
13219 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13220else
13221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222for as_dir in $PATH
13223do
13224 IFS=$as_save_IFS
13225 test -z "$as_dir" && as_dir=.
13226 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013228 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13230 break 2
13231 fi
13232done
13233 done
13234IFS=$as_save_IFS
13235
13236fi
13237fi
13238ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13239if test -n "$ac_ct_NMEDIT"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13241$as_echo "$ac_ct_NMEDIT" >&6; }
13242else
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244$as_echo "no" >&6; }
13245fi
13246
13247 if test "x$ac_ct_NMEDIT" = x; then
13248 NMEDIT=":"
13249 else
13250 case $cross_compiling:$ac_tool_warned in
13251yes:)
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13254ac_tool_warned=yes ;;
13255esac
13256 NMEDIT=$ac_ct_NMEDIT
13257 fi
13258else
13259 NMEDIT="$ac_cv_prog_NMEDIT"
13260fi
13261
13262 if test -n "$ac_tool_prefix"; then
13263 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13264set dummy ${ac_tool_prefix}lipo; ac_word=$2
13265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013267if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013268 $as_echo_n "(cached) " >&6
13269else
13270 if test -n "$LIPO"; then
13271 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13272else
13273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274for as_dir in $PATH
13275do
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013280 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282 break 2
13283 fi
13284done
13285 done
13286IFS=$as_save_IFS
13287
13288fi
13289fi
13290LIPO=$ac_cv_prog_LIPO
13291if test -n "$LIPO"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13293$as_echo "$LIPO" >&6; }
13294else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296$as_echo "no" >&6; }
13297fi
13298
13299
13300fi
13301if test -z "$ac_cv_prog_LIPO"; then
13302 ac_ct_LIPO=$LIPO
13303 # Extract the first word of "lipo", so it can be a program name with args.
13304set dummy lipo; ac_word=$2
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013307if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013308 $as_echo_n "(cached) " >&6
13309else
13310 if test -n "$ac_ct_LIPO"; then
13311 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13312else
13313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13314for as_dir in $PATH
13315do
13316 IFS=$as_save_IFS
13317 test -z "$as_dir" && as_dir=.
13318 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013320 ac_cv_prog_ac_ct_LIPO="lipo"
13321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13322 break 2
13323 fi
13324done
13325 done
13326IFS=$as_save_IFS
13327
13328fi
13329fi
13330ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13331if test -n "$ac_ct_LIPO"; then
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13333$as_echo "$ac_ct_LIPO" >&6; }
13334else
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336$as_echo "no" >&6; }
13337fi
13338
13339 if test "x$ac_ct_LIPO" = x; then
13340 LIPO=":"
13341 else
13342 case $cross_compiling:$ac_tool_warned in
13343yes:)
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13346ac_tool_warned=yes ;;
13347esac
13348 LIPO=$ac_ct_LIPO
13349 fi
13350else
13351 LIPO="$ac_cv_prog_LIPO"
13352fi
13353
13354 if test -n "$ac_tool_prefix"; then
13355 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13356set dummy ${ac_tool_prefix}otool; ac_word=$2
13357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13358$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013359if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013360 $as_echo_n "(cached) " >&6
13361else
13362 if test -n "$OTOOL"; then
13363 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13364else
13365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366for as_dir in $PATH
13367do
13368 IFS=$as_save_IFS
13369 test -z "$as_dir" && as_dir=.
13370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013372 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13374 break 2
13375 fi
13376done
13377 done
13378IFS=$as_save_IFS
13379
13380fi
13381fi
13382OTOOL=$ac_cv_prog_OTOOL
13383if test -n "$OTOOL"; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13385$as_echo "$OTOOL" >&6; }
13386else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388$as_echo "no" >&6; }
13389fi
13390
13391
13392fi
13393if test -z "$ac_cv_prog_OTOOL"; then
13394 ac_ct_OTOOL=$OTOOL
13395 # Extract the first word of "otool", so it can be a program name with args.
13396set dummy otool; ac_word=$2
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013399if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013400 $as_echo_n "(cached) " >&6
13401else
13402 if test -n "$ac_ct_OTOOL"; then
13403 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13404else
13405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406for as_dir in $PATH
13407do
13408 IFS=$as_save_IFS
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013412 ac_cv_prog_ac_ct_OTOOL="otool"
13413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414 break 2
13415 fi
13416done
13417 done
13418IFS=$as_save_IFS
13419
13420fi
13421fi
13422ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13423if test -n "$ac_ct_OTOOL"; then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13425$as_echo "$ac_ct_OTOOL" >&6; }
13426else
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13428$as_echo "no" >&6; }
13429fi
13430
13431 if test "x$ac_ct_OTOOL" = x; then
13432 OTOOL=":"
13433 else
13434 case $cross_compiling:$ac_tool_warned in
13435yes:)
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13438ac_tool_warned=yes ;;
13439esac
13440 OTOOL=$ac_ct_OTOOL
13441 fi
13442else
13443 OTOOL="$ac_cv_prog_OTOOL"
13444fi
13445
13446 if test -n "$ac_tool_prefix"; then
13447 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13448set dummy ${ac_tool_prefix}otool64; ac_word=$2
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13450$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013451if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013452 $as_echo_n "(cached) " >&6
13453else
13454 if test -n "$OTOOL64"; then
13455 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13456else
13457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458for as_dir in $PATH
13459do
13460 IFS=$as_save_IFS
13461 test -z "$as_dir" && as_dir=.
13462 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013464 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13466 break 2
13467 fi
13468done
13469 done
13470IFS=$as_save_IFS
13471
13472fi
13473fi
13474OTOOL64=$ac_cv_prog_OTOOL64
13475if test -n "$OTOOL64"; then
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13477$as_echo "$OTOOL64" >&6; }
13478else
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480$as_echo "no" >&6; }
13481fi
13482
13483
13484fi
13485if test -z "$ac_cv_prog_OTOOL64"; then
13486 ac_ct_OTOOL64=$OTOOL64
13487 # Extract the first word of "otool64", so it can be a program name with args.
13488set dummy otool64; ac_word=$2
13489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13490$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013491if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013492 $as_echo_n "(cached) " >&6
13493else
13494 if test -n "$ac_ct_OTOOL64"; then
13495 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13496else
13497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13498for as_dir in $PATH
13499do
13500 IFS=$as_save_IFS
13501 test -z "$as_dir" && as_dir=.
13502 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013504 ac_cv_prog_ac_ct_OTOOL64="otool64"
13505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13506 break 2
13507 fi
13508done
13509 done
13510IFS=$as_save_IFS
13511
13512fi
13513fi
13514ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13515if test -n "$ac_ct_OTOOL64"; then
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13517$as_echo "$ac_ct_OTOOL64" >&6; }
13518else
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520$as_echo "no" >&6; }
13521fi
13522
13523 if test "x$ac_ct_OTOOL64" = x; then
13524 OTOOL64=":"
13525 else
13526 case $cross_compiling:$ac_tool_warned in
13527yes:)
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13530ac_tool_warned=yes ;;
13531esac
13532 OTOOL64=$ac_ct_OTOOL64
13533 fi
13534else
13535 OTOOL64="$ac_cv_prog_OTOOL64"
13536fi
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13565$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013566if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013567 $as_echo_n "(cached) " >&6
13568else
13569 lt_cv_apple_cc_single_mod=no
13570 if test -z "${LT_MULTI_MODULE}"; then
13571 # By default we will add the -single_module flag. You can override
13572 # by either setting the environment variable LT_MULTI_MODULE
13573 # non-empty at configure time, or by adding -multi_module to the
13574 # link flags.
13575 rm -rf libconftest.dylib*
13576 echo "int foo(void){return 1;}" > conftest.c
13577 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13578-dynamiclib -Wl,-single_module conftest.c" >&5
13579 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13580 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13581 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013582 # If there is a non-empty error log, and "single_module"
13583 # appears in it, assume the flag caused a linker warning
13584 if test -s conftest.err && $GREP single_module conftest.err; then
13585 cat conftest.err >&5
13586 # Otherwise, if the output was created with a 0 exit code from
13587 # the compiler, it worked.
13588 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013589 lt_cv_apple_cc_single_mod=yes
13590 else
13591 cat conftest.err >&5
13592 fi
13593 rm -rf libconftest.dylib*
13594 rm -f conftest.*
13595 fi
13596fi
13597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13598$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013599
cristy73bd4a52010-10-05 11:24:23 +000013600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13601$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013602if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013603 $as_echo_n "(cached) " >&6
13604else
13605 lt_cv_ld_exported_symbols_list=no
13606 save_LDFLAGS=$LDFLAGS
13607 echo "_main" > conftest.sym
13608 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610/* end confdefs.h. */
13611
13612int
13613main ()
13614{
13615
13616 ;
13617 return 0;
13618}
13619_ACEOF
13620if ac_fn_c_try_link "$LINENO"; then :
13621 lt_cv_ld_exported_symbols_list=yes
13622else
13623 lt_cv_ld_exported_symbols_list=no
13624fi
13625rm -f core conftest.err conftest.$ac_objext \
13626 conftest$ac_exeext conftest.$ac_ext
13627 LDFLAGS="$save_LDFLAGS"
13628
13629fi
13630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13631$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013632
cristy0c60a692010-11-04 01:09:47 +000013633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13634$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013635if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013636 $as_echo_n "(cached) " >&6
13637else
13638 lt_cv_ld_force_load=no
13639 cat > conftest.c << _LT_EOF
13640int forced_loaded() { return 2;}
13641_LT_EOF
13642 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13643 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13644 echo "$AR cru libconftest.a conftest.o" >&5
13645 $AR cru libconftest.a conftest.o 2>&5
13646 echo "$RANLIB libconftest.a" >&5
13647 $RANLIB libconftest.a 2>&5
13648 cat > conftest.c << _LT_EOF
13649int main() { return 0;}
13650_LT_EOF
13651 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13652 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13653 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013654 if test -s conftest.err && $GREP force_load conftest.err; then
13655 cat conftest.err >&5
13656 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013657 lt_cv_ld_force_load=yes
13658 else
13659 cat conftest.err >&5
13660 fi
13661 rm -f conftest.err libconftest.a conftest conftest.c
13662 rm -rf conftest.dSYM
13663
13664fi
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13666$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013667 case $host_os in
13668 rhapsody* | darwin1.[012])
13669 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13670 darwin1.*)
13671 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13672 darwin*) # darwin 5.x on
13673 # if running on 10.5 or later, the deployment target defaults
13674 # to the OS version, if on x86, and 10.4, the deployment
13675 # target defaults to 10.4. Don't you love it?
13676 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13677 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13678 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13679 10.[012]*)
13680 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13681 10.*)
13682 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13683 esac
13684 ;;
13685 esac
13686 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13687 _lt_dar_single_mod='$single_module'
13688 fi
13689 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13690 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13691 else
13692 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13693 fi
cristy0c60a692010-11-04 01:09:47 +000013694 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013695 _lt_dsymutil='~$DSYMUTIL $lib || :'
13696 else
13697 _lt_dsymutil=
13698 fi
13699 ;;
13700 esac
13701
13702for ac_header in dlfcn.h
13703do :
13704 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13705"
cristyda16f162011-02-19 23:52:17 +000013706if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013707 cat >>confdefs.h <<_ACEOF
13708#define HAVE_DLFCN_H 1
13709_ACEOF
13710
13711fi
13712
13713done
13714
13715
13716
cristy73bd4a52010-10-05 11:24:23 +000013717
cristyda16f162011-02-19 23:52:17 +000013718func_stripname_cnf ()
13719{
13720 case ${2} in
13721 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13722 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13723 esac
13724} # func_stripname_cnf
13725
13726
13727
cristy73bd4a52010-10-05 11:24:23 +000013728
13729
13730# Set options
13731enable_win32_dll=yes
13732
13733case $host in
cristy0c60a692010-11-04 01:09:47 +000013734*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013735 if test -n "$ac_tool_prefix"; then
13736 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13737set dummy ${ac_tool_prefix}as; ac_word=$2
13738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13739$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013740if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013741 $as_echo_n "(cached) " >&6
13742else
13743 if test -n "$AS"; then
13744 ac_cv_prog_AS="$AS" # Let the user override the test.
13745else
13746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747for as_dir in $PATH
13748do
13749 IFS=$as_save_IFS
13750 test -z "$as_dir" && as_dir=.
13751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013753 ac_cv_prog_AS="${ac_tool_prefix}as"
13754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13755 break 2
13756 fi
13757done
13758 done
13759IFS=$as_save_IFS
13760
13761fi
13762fi
13763AS=$ac_cv_prog_AS
13764if test -n "$AS"; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13766$as_echo "$AS" >&6; }
13767else
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769$as_echo "no" >&6; }
13770fi
13771
13772
13773fi
13774if test -z "$ac_cv_prog_AS"; then
13775 ac_ct_AS=$AS
13776 # Extract the first word of "as", so it can be a program name with args.
13777set dummy as; ac_word=$2
13778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013780if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013781 $as_echo_n "(cached) " >&6
13782else
13783 if test -n "$ac_ct_AS"; then
13784 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13785else
13786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787for as_dir in $PATH
13788do
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
13791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013793 ac_cv_prog_ac_ct_AS="as"
13794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13795 break 2
13796 fi
13797done
13798 done
13799IFS=$as_save_IFS
13800
13801fi
13802fi
13803ac_ct_AS=$ac_cv_prog_ac_ct_AS
13804if test -n "$ac_ct_AS"; then
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13806$as_echo "$ac_ct_AS" >&6; }
13807else
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809$as_echo "no" >&6; }
13810fi
13811
13812 if test "x$ac_ct_AS" = x; then
13813 AS="false"
13814 else
13815 case $cross_compiling:$ac_tool_warned in
13816yes:)
13817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13819ac_tool_warned=yes ;;
13820esac
13821 AS=$ac_ct_AS
13822 fi
13823else
13824 AS="$ac_cv_prog_AS"
13825fi
13826
13827 if test -n "$ac_tool_prefix"; then
13828 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13829set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13831$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013832if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013833 $as_echo_n "(cached) " >&6
13834else
13835 if test -n "$DLLTOOL"; then
13836 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13837else
13838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13839for as_dir in $PATH
13840do
13841 IFS=$as_save_IFS
13842 test -z "$as_dir" && as_dir=.
13843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013845 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13847 break 2
13848 fi
13849done
13850 done
13851IFS=$as_save_IFS
13852
13853fi
13854fi
13855DLLTOOL=$ac_cv_prog_DLLTOOL
13856if test -n "$DLLTOOL"; then
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13858$as_echo "$DLLTOOL" >&6; }
13859else
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861$as_echo "no" >&6; }
13862fi
13863
13864
13865fi
13866if test -z "$ac_cv_prog_DLLTOOL"; then
13867 ac_ct_DLLTOOL=$DLLTOOL
13868 # Extract the first word of "dlltool", so it can be a program name with args.
13869set dummy dlltool; ac_word=$2
13870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013872if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013873 $as_echo_n "(cached) " >&6
13874else
13875 if test -n "$ac_ct_DLLTOOL"; then
13876 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13877else
13878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13879for as_dir in $PATH
13880do
13881 IFS=$as_save_IFS
13882 test -z "$as_dir" && as_dir=.
13883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013885 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13887 break 2
13888 fi
13889done
13890 done
13891IFS=$as_save_IFS
13892
13893fi
13894fi
13895ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13896if test -n "$ac_ct_DLLTOOL"; then
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13898$as_echo "$ac_ct_DLLTOOL" >&6; }
13899else
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13901$as_echo "no" >&6; }
13902fi
13903
13904 if test "x$ac_ct_DLLTOOL" = x; then
13905 DLLTOOL="false"
13906 else
13907 case $cross_compiling:$ac_tool_warned in
13908yes:)
13909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13911ac_tool_warned=yes ;;
13912esac
13913 DLLTOOL=$ac_ct_DLLTOOL
13914 fi
13915else
13916 DLLTOOL="$ac_cv_prog_DLLTOOL"
13917fi
13918
13919 if test -n "$ac_tool_prefix"; then
13920 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13921set dummy ${ac_tool_prefix}objdump; ac_word=$2
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013924if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013925 $as_echo_n "(cached) " >&6
13926else
13927 if test -n "$OBJDUMP"; then
13928 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13929else
13930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13931for as_dir in $PATH
13932do
13933 IFS=$as_save_IFS
13934 test -z "$as_dir" && as_dir=.
13935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013937 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13939 break 2
13940 fi
13941done
13942 done
13943IFS=$as_save_IFS
13944
13945fi
13946fi
13947OBJDUMP=$ac_cv_prog_OBJDUMP
13948if test -n "$OBJDUMP"; then
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13950$as_echo "$OBJDUMP" >&6; }
13951else
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13953$as_echo "no" >&6; }
13954fi
13955
13956
13957fi
13958if test -z "$ac_cv_prog_OBJDUMP"; then
13959 ac_ct_OBJDUMP=$OBJDUMP
13960 # Extract the first word of "objdump", so it can be a program name with args.
13961set dummy objdump; ac_word=$2
13962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013964if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013965 $as_echo_n "(cached) " >&6
13966else
13967 if test -n "$ac_ct_OBJDUMP"; then
13968 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13969else
13970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13971for as_dir in $PATH
13972do
13973 IFS=$as_save_IFS
13974 test -z "$as_dir" && as_dir=.
13975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013977 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13979 break 2
13980 fi
13981done
13982 done
13983IFS=$as_save_IFS
13984
13985fi
13986fi
13987ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13988if test -n "$ac_ct_OBJDUMP"; then
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13990$as_echo "$ac_ct_OBJDUMP" >&6; }
13991else
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13993$as_echo "no" >&6; }
13994fi
13995
13996 if test "x$ac_ct_OBJDUMP" = x; then
13997 OBJDUMP="false"
13998 else
13999 case $cross_compiling:$ac_tool_warned in
14000yes:)
14001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14003ac_tool_warned=yes ;;
14004esac
14005 OBJDUMP=$ac_ct_OBJDUMP
14006 fi
14007else
14008 OBJDUMP="$ac_cv_prog_OBJDUMP"
14009fi
14010
14011 ;;
14012esac
14013
14014test -z "$AS" && AS=as
14015
14016
14017
14018
14019
14020test -z "$DLLTOOL" && DLLTOOL=dlltool
14021
14022
14023
14024
14025
14026test -z "$OBJDUMP" && OBJDUMP=objdump
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036 # Check whether --enable-shared was given.
14037if test "${enable_shared+set}" = set; then :
14038 enableval=$enable_shared; p=${PACKAGE-default}
14039 case $enableval in
14040 yes) enable_shared=yes ;;
14041 no) enable_shared=no ;;
14042 *)
14043 enable_shared=no
14044 # Look at the argument we got. We use all the common list separators.
14045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14046 for pkg in $enableval; do
14047 IFS="$lt_save_ifs"
14048 if test "X$pkg" = "X$p"; then
14049 enable_shared=yes
14050 fi
14051 done
14052 IFS="$lt_save_ifs"
14053 ;;
14054 esac
14055else
14056 enable_shared=yes
14057fi
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067 # Check whether --enable-static was given.
14068if test "${enable_static+set}" = set; then :
14069 enableval=$enable_static; p=${PACKAGE-default}
14070 case $enableval in
14071 yes) enable_static=yes ;;
14072 no) enable_static=no ;;
14073 *)
14074 enable_static=no
14075 # Look at the argument we got. We use all the common list separators.
14076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14077 for pkg in $enableval; do
14078 IFS="$lt_save_ifs"
14079 if test "X$pkg" = "X$p"; then
14080 enable_static=yes
14081 fi
14082 done
14083 IFS="$lt_save_ifs"
14084 ;;
14085 esac
14086else
14087 enable_static=yes
14088fi
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099# Check whether --with-pic was given.
14100if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014101 withval=$with_pic; lt_p=${PACKAGE-default}
14102 case $withval in
14103 yes|no) pic_mode=$withval ;;
14104 *)
14105 pic_mode=default
14106 # Look at the argument we got. We use all the common list separators.
14107 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14108 for lt_pkg in $withval; do
14109 IFS="$lt_save_ifs"
14110 if test "X$lt_pkg" = "X$lt_p"; then
14111 pic_mode=yes
14112 fi
14113 done
14114 IFS="$lt_save_ifs"
14115 ;;
14116 esac
cristy73bd4a52010-10-05 11:24:23 +000014117else
14118 pic_mode=default
14119fi
14120
14121
14122test -z "$pic_mode" && pic_mode=default
14123
14124
14125
14126
14127
14128
14129
14130 # Check whether --enable-fast-install was given.
14131if test "${enable_fast_install+set}" = set; then :
14132 enableval=$enable_fast_install; p=${PACKAGE-default}
14133 case $enableval in
14134 yes) enable_fast_install=yes ;;
14135 no) enable_fast_install=no ;;
14136 *)
14137 enable_fast_install=no
14138 # Look at the argument we got. We use all the common list separators.
14139 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14140 for pkg in $enableval; do
14141 IFS="$lt_save_ifs"
14142 if test "X$pkg" = "X$p"; then
14143 enable_fast_install=yes
14144 fi
14145 done
14146 IFS="$lt_save_ifs"
14147 ;;
14148 esac
14149else
14150 enable_fast_install=yes
14151fi
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163# This can be used to rebuild libtool when needed
14164LIBTOOL_DEPS="$ltmain"
14165
14166# Always use our own libtool.
14167LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
cristy0c60a692010-11-04 01:09:47 +000014193
cristy99bd5232011-12-07 14:38:20 +000014194
14195
14196
14197
cristy73bd4a52010-10-05 11:24:23 +000014198test -z "$LN_S" && LN_S="ln -s"
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213if test -n "${ZSH_VERSION+set}" ; then
14214 setopt NO_GLOB_SUBST
14215fi
14216
14217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14218$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014219if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014220 $as_echo_n "(cached) " >&6
14221else
14222 rm -f .libs 2>/dev/null
14223mkdir .libs 2>/dev/null
14224if test -d .libs; then
14225 lt_cv_objdir=.libs
14226else
14227 # MS-DOS does not allow filenames that begin with a dot.
14228 lt_cv_objdir=_libs
14229fi
14230rmdir .libs 2>/dev/null
14231fi
14232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14233$as_echo "$lt_cv_objdir" >&6; }
14234objdir=$lt_cv_objdir
14235
14236
14237
14238
14239
14240cat >>confdefs.h <<_ACEOF
14241#define LT_OBJDIR "$lt_cv_objdir/"
14242_ACEOF
14243
14244
14245
14246
cristy73bd4a52010-10-05 11:24:23 +000014247case $host_os in
14248aix3*)
14249 # AIX sometimes has problems with the GCC collect2 program. For some
14250 # reason, if we set the COLLECT_NAMES environment variable, the problems
14251 # vanish in a puff of smoke.
14252 if test "X${COLLECT_NAMES+set}" != Xset; then
14253 COLLECT_NAMES=
14254 export COLLECT_NAMES
14255 fi
14256 ;;
14257esac
14258
cristy73bd4a52010-10-05 11:24:23 +000014259# Global variables:
14260ofile=libtool
14261can_build_shared=yes
14262
14263# All known linkers require a `.a' archive for static linking (except MSVC,
14264# which needs '.lib').
14265libext=a
14266
14267with_gnu_ld="$lt_cv_prog_gnu_ld"
14268
14269old_CC="$CC"
14270old_CFLAGS="$CFLAGS"
14271
14272# Set sane defaults for various variables
14273test -z "$CC" && CC=cc
14274test -z "$LTCC" && LTCC=$CC
14275test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14276test -z "$LD" && LD=ld
14277test -z "$ac_objext" && ac_objext=o
14278
14279for cc_temp in $compiler""; do
14280 case $cc_temp in
14281 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14282 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14283 \-*) ;;
14284 *) break;;
14285 esac
14286done
cristy0c60a692010-11-04 01:09:47 +000014287cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014288
14289
14290# Only perform the check for file, if the check method requires it
14291test -z "$MAGIC_CMD" && MAGIC_CMD=file
14292case $deplibs_check_method in
14293file_magic*)
14294 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14296$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014297if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014298 $as_echo_n "(cached) " >&6
14299else
14300 case $MAGIC_CMD in
14301[\\/*] | ?:[\\/]*)
14302 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14303 ;;
14304*)
14305 lt_save_MAGIC_CMD="$MAGIC_CMD"
14306 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14307 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14308 for ac_dir in $ac_dummy; do
14309 IFS="$lt_save_ifs"
14310 test -z "$ac_dir" && ac_dir=.
14311 if test -f $ac_dir/${ac_tool_prefix}file; then
14312 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14313 if test -n "$file_magic_test_file"; then
14314 case $deplibs_check_method in
14315 "file_magic "*)
14316 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14317 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14318 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14319 $EGREP "$file_magic_regex" > /dev/null; then
14320 :
14321 else
14322 cat <<_LT_EOF 1>&2
14323
14324*** Warning: the command libtool uses to detect shared libraries,
14325*** $file_magic_cmd, produces output that libtool cannot recognize.
14326*** The result is that libtool may fail to recognize shared libraries
14327*** as such. This will affect the creation of libtool libraries that
14328*** depend on shared libraries, but programs linked with such libtool
14329*** libraries will work regardless of this problem. Nevertheless, you
14330*** may want to report the problem to your system manager and/or to
14331*** bug-libtool@gnu.org
14332
14333_LT_EOF
14334 fi ;;
14335 esac
14336 fi
14337 break
14338 fi
14339 done
14340 IFS="$lt_save_ifs"
14341 MAGIC_CMD="$lt_save_MAGIC_CMD"
14342 ;;
14343esac
14344fi
14345
14346MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14347if test -n "$MAGIC_CMD"; then
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14349$as_echo "$MAGIC_CMD" >&6; }
14350else
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14352$as_echo "no" >&6; }
14353fi
14354
14355
14356
14357
14358
14359if test -z "$lt_cv_path_MAGIC_CMD"; then
14360 if test -n "$ac_tool_prefix"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14362$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014363if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014364 $as_echo_n "(cached) " >&6
14365else
14366 case $MAGIC_CMD in
14367[\\/*] | ?:[\\/]*)
14368 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14369 ;;
14370*)
14371 lt_save_MAGIC_CMD="$MAGIC_CMD"
14372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14373 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14374 for ac_dir in $ac_dummy; do
14375 IFS="$lt_save_ifs"
14376 test -z "$ac_dir" && ac_dir=.
14377 if test -f $ac_dir/file; then
14378 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14379 if test -n "$file_magic_test_file"; then
14380 case $deplibs_check_method in
14381 "file_magic "*)
14382 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14385 $EGREP "$file_magic_regex" > /dev/null; then
14386 :
14387 else
14388 cat <<_LT_EOF 1>&2
14389
14390*** Warning: the command libtool uses to detect shared libraries,
14391*** $file_magic_cmd, produces output that libtool cannot recognize.
14392*** The result is that libtool may fail to recognize shared libraries
14393*** as such. This will affect the creation of libtool libraries that
14394*** depend on shared libraries, but programs linked with such libtool
14395*** libraries will work regardless of this problem. Nevertheless, you
14396*** may want to report the problem to your system manager and/or to
14397*** bug-libtool@gnu.org
14398
14399_LT_EOF
14400 fi ;;
14401 esac
14402 fi
14403 break
14404 fi
14405 done
14406 IFS="$lt_save_ifs"
14407 MAGIC_CMD="$lt_save_MAGIC_CMD"
14408 ;;
14409esac
14410fi
14411
14412MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14413if test -n "$MAGIC_CMD"; then
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14415$as_echo "$MAGIC_CMD" >&6; }
14416else
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14418$as_echo "no" >&6; }
14419fi
14420
14421
14422 else
14423 MAGIC_CMD=:
14424 fi
14425fi
14426
14427 fi
14428 ;;
14429esac
14430
14431# Use C for the default configuration in the libtool script
14432
14433lt_save_CC="$CC"
14434ac_ext=c
14435ac_cpp='$CPP $CPPFLAGS'
14436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14438ac_compiler_gnu=$ac_cv_c_compiler_gnu
14439
14440
14441# Source file extension for C test sources.
14442ac_ext=c
14443
14444# Object file extension for compiled C test sources.
14445objext=o
14446objext=$objext
14447
14448# Code to be used in simple compile tests
14449lt_simple_compile_test_code="int some_variable = 0;"
14450
14451# Code to be used in simple link tests
14452lt_simple_link_test_code='int main(){return(0);}'
14453
14454
14455
14456
14457
14458
14459
14460# If no C compiler was specified, use CC.
14461LTCC=${LTCC-"$CC"}
14462
14463# If no C compiler flags were specified, use CFLAGS.
14464LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14465
14466# Allow CC to be a program name with arguments.
14467compiler=$CC
14468
14469# Save the default compiler, since it gets overwritten when the other
14470# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14471compiler_DEFAULT=$CC
14472
14473# save warnings/boilerplate of simple test code
14474ac_outfile=conftest.$ac_objext
14475echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14476eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14477_lt_compiler_boilerplate=`cat conftest.err`
14478$RM conftest*
14479
14480ac_outfile=conftest.$ac_objext
14481echo "$lt_simple_link_test_code" >conftest.$ac_ext
14482eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14483_lt_linker_boilerplate=`cat conftest.err`
14484$RM -r conftest*
14485
14486
14487## CAVEAT EMPTOR:
14488## There is no encapsulation within the following macros, do not change
14489## the running order or otherwise move them around unless you know exactly
14490## what you are doing...
14491if test -n "$compiler"; then
14492
14493lt_prog_compiler_no_builtin_flag=
14494
14495if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014496 case $cc_basename in
14497 nvcc*)
14498 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14499 *)
14500 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14501 esac
cristy73bd4a52010-10-05 11:24:23 +000014502
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14504$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014505if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014506 $as_echo_n "(cached) " >&6
14507else
14508 lt_cv_prog_compiler_rtti_exceptions=no
14509 ac_outfile=conftest.$ac_objext
14510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14511 lt_compiler_flag="-fno-rtti -fno-exceptions"
14512 # Insert the option either (1) after the last *FLAGS variable, or
14513 # (2) before a word containing "conftest.", or (3) at the end.
14514 # Note that $ac_compile itself does not contain backslashes and begins
14515 # with a dollar sign (not a hyphen), so the echo should work correctly.
14516 # The option is referenced via a variable to avoid confusing sed.
14517 lt_compile=`echo "$ac_compile" | $SED \
14518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14520 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014522 (eval "$lt_compile" 2>conftest.err)
14523 ac_status=$?
14524 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014526 if (exit $ac_status) && test -s "$ac_outfile"; then
14527 # The compiler can only warn and ignore the option if not recognized
14528 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014529 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014530 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14531 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14532 lt_cv_prog_compiler_rtti_exceptions=yes
14533 fi
14534 fi
14535 $RM conftest*
14536
14537fi
14538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14539$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14540
14541if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14542 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14543else
14544 :
14545fi
14546
14547fi
14548
14549
14550
14551
14552
14553
14554 lt_prog_compiler_wl=
14555lt_prog_compiler_pic=
14556lt_prog_compiler_static=
14557
cristy73bd4a52010-10-05 11:24:23 +000014558
14559 if test "$GCC" = yes; then
14560 lt_prog_compiler_wl='-Wl,'
14561 lt_prog_compiler_static='-static'
14562
14563 case $host_os in
14564 aix*)
14565 # All AIX code is PIC.
14566 if test "$host_cpu" = ia64; then
14567 # AIX 5 now supports IA64 processor
14568 lt_prog_compiler_static='-Bstatic'
14569 fi
14570 ;;
14571
14572 amigaos*)
14573 case $host_cpu in
14574 powerpc)
14575 # see comment about AmigaOS4 .so support
14576 lt_prog_compiler_pic='-fPIC'
14577 ;;
14578 m68k)
14579 # FIXME: we need at least 68020 code to build shared libraries, but
14580 # adding the `-m68020' flag to GCC prevents building anything better,
14581 # like `-m68040'.
14582 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14583 ;;
14584 esac
14585 ;;
14586
14587 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14588 # PIC is the default for these OSes.
14589 ;;
14590
14591 mingw* | cygwin* | pw32* | os2* | cegcc*)
14592 # This hack is so that the source file can tell whether it is being
14593 # built for inclusion in a dll (and should export symbols for example).
14594 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14595 # (--disable-auto-import) libraries
14596 lt_prog_compiler_pic='-DDLL_EXPORT'
14597 ;;
14598
14599 darwin* | rhapsody*)
14600 # PIC is the default on this platform
14601 # Common symbols not allowed in MH_DYLIB files
14602 lt_prog_compiler_pic='-fno-common'
14603 ;;
14604
cristy0c60a692010-11-04 01:09:47 +000014605 haiku*)
14606 # PIC is the default for Haiku.
14607 # The "-static" flag exists, but is broken.
14608 lt_prog_compiler_static=
14609 ;;
14610
cristy73bd4a52010-10-05 11:24:23 +000014611 hpux*)
14612 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14613 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14614 # sets the default TLS model and affects inlining.
14615 case $host_cpu in
14616 hppa*64*)
14617 # +Z the default
14618 ;;
14619 *)
14620 lt_prog_compiler_pic='-fPIC'
14621 ;;
14622 esac
14623 ;;
14624
14625 interix[3-9]*)
14626 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14627 # Instead, we relocate shared libraries at runtime.
14628 ;;
14629
14630 msdosdjgpp*)
14631 # Just because we use GCC doesn't mean we suddenly get shared libraries
14632 # on systems that don't support them.
14633 lt_prog_compiler_can_build_shared=no
14634 enable_shared=no
14635 ;;
14636
14637 *nto* | *qnx*)
14638 # QNX uses GNU C++, but need to define -shared option too, otherwise
14639 # it will coredump.
14640 lt_prog_compiler_pic='-fPIC -shared'
14641 ;;
14642
14643 sysv4*MP*)
14644 if test -d /usr/nec; then
14645 lt_prog_compiler_pic=-Kconform_pic
14646 fi
14647 ;;
14648
14649 *)
14650 lt_prog_compiler_pic='-fPIC'
14651 ;;
14652 esac
cristy0c60a692010-11-04 01:09:47 +000014653
14654 case $cc_basename in
14655 nvcc*) # Cuda Compiler Driver 2.2
14656 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014657 if test -n "$lt_prog_compiler_pic"; then
14658 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14659 fi
cristy0c60a692010-11-04 01:09:47 +000014660 ;;
14661 esac
cristy73bd4a52010-10-05 11:24:23 +000014662 else
14663 # PORTME Check for flag to pass linker flags through the system compiler.
14664 case $host_os in
14665 aix*)
14666 lt_prog_compiler_wl='-Wl,'
14667 if test "$host_cpu" = ia64; then
14668 # AIX 5 now supports IA64 processor
14669 lt_prog_compiler_static='-Bstatic'
14670 else
14671 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14672 fi
14673 ;;
14674
14675 mingw* | cygwin* | pw32* | os2* | cegcc*)
14676 # This hack is so that the source file can tell whether it is being
14677 # built for inclusion in a dll (and should export symbols for example).
14678 lt_prog_compiler_pic='-DDLL_EXPORT'
14679 ;;
14680
14681 hpux9* | hpux10* | hpux11*)
14682 lt_prog_compiler_wl='-Wl,'
14683 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14684 # not for PA HP-UX.
14685 case $host_cpu in
14686 hppa*64*|ia64*)
14687 # +Z the default
14688 ;;
14689 *)
14690 lt_prog_compiler_pic='+Z'
14691 ;;
14692 esac
14693 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14694 lt_prog_compiler_static='${wl}-a ${wl}archive'
14695 ;;
14696
14697 irix5* | irix6* | nonstopux*)
14698 lt_prog_compiler_wl='-Wl,'
14699 # PIC (with -KPIC) is the default.
14700 lt_prog_compiler_static='-non_shared'
14701 ;;
14702
cristy0c60a692010-11-04 01:09:47 +000014703 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014704 case $cc_basename in
14705 # old Intel for x86_64 which still supported -KPIC.
14706 ecc*)
14707 lt_prog_compiler_wl='-Wl,'
14708 lt_prog_compiler_pic='-KPIC'
14709 lt_prog_compiler_static='-static'
14710 ;;
14711 # icc used to be incompatible with GCC.
14712 # ICC 10 doesn't accept -KPIC any more.
14713 icc* | ifort*)
14714 lt_prog_compiler_wl='-Wl,'
14715 lt_prog_compiler_pic='-fPIC'
14716 lt_prog_compiler_static='-static'
14717 ;;
14718 # Lahey Fortran 8.1.
14719 lf95*)
14720 lt_prog_compiler_wl='-Wl,'
14721 lt_prog_compiler_pic='--shared'
14722 lt_prog_compiler_static='--static'
14723 ;;
cristyda16f162011-02-19 23:52:17 +000014724 nagfor*)
14725 # NAG Fortran compiler
14726 lt_prog_compiler_wl='-Wl,-Wl,,'
14727 lt_prog_compiler_pic='-PIC'
14728 lt_prog_compiler_static='-Bstatic'
14729 ;;
cristy0c60a692010-11-04 01:09:47 +000014730 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014731 # Portland Group compilers (*not* the Pentium gcc compiler,
14732 # which looks to be a dead project)
14733 lt_prog_compiler_wl='-Wl,'
14734 lt_prog_compiler_pic='-fpic'
14735 lt_prog_compiler_static='-Bstatic'
14736 ;;
14737 ccc*)
14738 lt_prog_compiler_wl='-Wl,'
14739 # All Alpha code is PIC.
14740 lt_prog_compiler_static='-non_shared'
14741 ;;
cristy0c60a692010-11-04 01:09:47 +000014742 xl* | bgxl* | bgf* | mpixl*)
14743 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014744 lt_prog_compiler_wl='-Wl,'
14745 lt_prog_compiler_pic='-qpic'
14746 lt_prog_compiler_static='-qstaticlink'
14747 ;;
14748 *)
14749 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014750 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014751 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14752 lt_prog_compiler_pic='-KPIC'
14753 lt_prog_compiler_static='-Bstatic'
14754 lt_prog_compiler_wl=''
14755 ;;
cristy99bd5232011-12-07 14:38:20 +000014756 *Sun\ F* | *Sun*Fortran*)
14757 lt_prog_compiler_pic='-KPIC'
14758 lt_prog_compiler_static='-Bstatic'
14759 lt_prog_compiler_wl='-Qoption ld '
14760 ;;
cristy73bd4a52010-10-05 11:24:23 +000014761 *Sun\ C*)
14762 # Sun C 5.9
14763 lt_prog_compiler_pic='-KPIC'
14764 lt_prog_compiler_static='-Bstatic'
14765 lt_prog_compiler_wl='-Wl,'
14766 ;;
cristy99bd5232011-12-07 14:38:20 +000014767 *Intel*\ [CF]*Compiler*)
14768 lt_prog_compiler_wl='-Wl,'
14769 lt_prog_compiler_pic='-fPIC'
14770 lt_prog_compiler_static='-static'
14771 ;;
14772 *Portland\ Group*)
14773 lt_prog_compiler_wl='-Wl,'
14774 lt_prog_compiler_pic='-fpic'
14775 lt_prog_compiler_static='-Bstatic'
14776 ;;
cristy73bd4a52010-10-05 11:24:23 +000014777 esac
14778 ;;
14779 esac
14780 ;;
14781
14782 newsos6)
14783 lt_prog_compiler_pic='-KPIC'
14784 lt_prog_compiler_static='-Bstatic'
14785 ;;
14786
14787 *nto* | *qnx*)
14788 # QNX uses GNU C++, but need to define -shared option too, otherwise
14789 # it will coredump.
14790 lt_prog_compiler_pic='-fPIC -shared'
14791 ;;
14792
14793 osf3* | osf4* | osf5*)
14794 lt_prog_compiler_wl='-Wl,'
14795 # All OSF/1 code is PIC.
14796 lt_prog_compiler_static='-non_shared'
14797 ;;
14798
14799 rdos*)
14800 lt_prog_compiler_static='-non_shared'
14801 ;;
14802
14803 solaris*)
14804 lt_prog_compiler_pic='-KPIC'
14805 lt_prog_compiler_static='-Bstatic'
14806 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014807 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014808 lt_prog_compiler_wl='-Qoption ld ';;
14809 *)
14810 lt_prog_compiler_wl='-Wl,';;
14811 esac
14812 ;;
14813
14814 sunos4*)
14815 lt_prog_compiler_wl='-Qoption ld '
14816 lt_prog_compiler_pic='-PIC'
14817 lt_prog_compiler_static='-Bstatic'
14818 ;;
14819
14820 sysv4 | sysv4.2uw2* | sysv4.3*)
14821 lt_prog_compiler_wl='-Wl,'
14822 lt_prog_compiler_pic='-KPIC'
14823 lt_prog_compiler_static='-Bstatic'
14824 ;;
14825
14826 sysv4*MP*)
14827 if test -d /usr/nec ;then
14828 lt_prog_compiler_pic='-Kconform_pic'
14829 lt_prog_compiler_static='-Bstatic'
14830 fi
14831 ;;
14832
14833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14834 lt_prog_compiler_wl='-Wl,'
14835 lt_prog_compiler_pic='-KPIC'
14836 lt_prog_compiler_static='-Bstatic'
14837 ;;
14838
14839 unicos*)
14840 lt_prog_compiler_wl='-Wl,'
14841 lt_prog_compiler_can_build_shared=no
14842 ;;
14843
14844 uts4*)
14845 lt_prog_compiler_pic='-pic'
14846 lt_prog_compiler_static='-Bstatic'
14847 ;;
14848
14849 *)
14850 lt_prog_compiler_can_build_shared=no
14851 ;;
14852 esac
14853 fi
14854
14855case $host_os in
14856 # For platforms which do not support PIC, -DPIC is meaningless:
14857 *djgpp*)
14858 lt_prog_compiler_pic=
14859 ;;
14860 *)
14861 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14862 ;;
14863esac
cristy73bd4a52010-10-05 11:24:23 +000014864
cristyda16f162011-02-19 23:52:17 +000014865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14866$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14867if ${lt_cv_prog_compiler_pic+:} false; then :
14868 $as_echo_n "(cached) " >&6
14869else
14870 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14871fi
14872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14873$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14874lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014875
14876#
14877# Check to make sure the PIC flag actually works.
14878#
14879if test -n "$lt_prog_compiler_pic"; then
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14881$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014882if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014883 $as_echo_n "(cached) " >&6
14884else
14885 lt_cv_prog_compiler_pic_works=no
14886 ac_outfile=conftest.$ac_objext
14887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14888 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14889 # Insert the option either (1) after the last *FLAGS variable, or
14890 # (2) before a word containing "conftest.", or (3) at the end.
14891 # Note that $ac_compile itself does not contain backslashes and begins
14892 # with a dollar sign (not a hyphen), so the echo should work correctly.
14893 # The option is referenced via a variable to avoid confusing sed.
14894 lt_compile=`echo "$ac_compile" | $SED \
14895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14897 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014898 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014899 (eval "$lt_compile" 2>conftest.err)
14900 ac_status=$?
14901 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014903 if (exit $ac_status) && test -s "$ac_outfile"; then
14904 # The compiler can only warn and ignore the option if not recognized
14905 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14908 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14909 lt_cv_prog_compiler_pic_works=yes
14910 fi
14911 fi
14912 $RM conftest*
14913
14914fi
14915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14916$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14917
14918if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14919 case $lt_prog_compiler_pic in
14920 "" | " "*) ;;
14921 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14922 esac
14923else
14924 lt_prog_compiler_pic=
14925 lt_prog_compiler_can_build_shared=no
14926fi
14927
14928fi
14929
14930
14931
14932
14933
14934
cristyda16f162011-02-19 23:52:17 +000014935
14936
14937
14938
14939
cristy73bd4a52010-10-05 11:24:23 +000014940#
14941# Check to make sure the static flag actually works.
14942#
14943wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14945$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014946if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014947 $as_echo_n "(cached) " >&6
14948else
14949 lt_cv_prog_compiler_static_works=no
14950 save_LDFLAGS="$LDFLAGS"
14951 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14952 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14953 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14954 # The linker can only warn and ignore the option if not recognized
14955 # So say no if there are warnings
14956 if test -s conftest.err; then
14957 # Append any errors to the config.log.
14958 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014959 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14961 if diff conftest.exp conftest.er2 >/dev/null; then
14962 lt_cv_prog_compiler_static_works=yes
14963 fi
14964 else
14965 lt_cv_prog_compiler_static_works=yes
14966 fi
14967 fi
14968 $RM -r conftest*
14969 LDFLAGS="$save_LDFLAGS"
14970
14971fi
14972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14973$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14974
14975if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14976 :
14977else
14978 lt_prog_compiler_static=
14979fi
14980
14981
14982
14983
14984
14985
14986
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14988$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014989if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014990 $as_echo_n "(cached) " >&6
14991else
14992 lt_cv_prog_compiler_c_o=no
14993 $RM -r conftest 2>/dev/null
14994 mkdir conftest
14995 cd conftest
14996 mkdir out
14997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14998
14999 lt_compiler_flag="-o out/conftest2.$ac_objext"
15000 # Insert the option either (1) after the last *FLAGS variable, or
15001 # (2) before a word containing "conftest.", or (3) at the end.
15002 # Note that $ac_compile itself does not contain backslashes and begins
15003 # with a dollar sign (not a hyphen), so the echo should work correctly.
15004 lt_compile=`echo "$ac_compile" | $SED \
15005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15007 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015008 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015009 (eval "$lt_compile" 2>out/conftest.err)
15010 ac_status=$?
15011 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015013 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15014 then
15015 # The compiler can only warn and ignore the option if not recognized
15016 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015017 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015018 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15019 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15020 lt_cv_prog_compiler_c_o=yes
15021 fi
15022 fi
15023 chmod u+w . 2>&5
15024 $RM conftest*
15025 # SGI C++ compiler will create directory out/ii_files/ for
15026 # template instantiation
15027 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15028 $RM out/* && rmdir out
15029 cd ..
15030 $RM -r conftest
15031 $RM conftest*
15032
15033fi
15034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15035$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15036
15037
15038
15039
15040
15041
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15043$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015044if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015045 $as_echo_n "(cached) " >&6
15046else
15047 lt_cv_prog_compiler_c_o=no
15048 $RM -r conftest 2>/dev/null
15049 mkdir conftest
15050 cd conftest
15051 mkdir out
15052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15053
15054 lt_compiler_flag="-o out/conftest2.$ac_objext"
15055 # Insert the option either (1) after the last *FLAGS variable, or
15056 # (2) before a word containing "conftest.", or (3) at the end.
15057 # Note that $ac_compile itself does not contain backslashes and begins
15058 # with a dollar sign (not a hyphen), so the echo should work correctly.
15059 lt_compile=`echo "$ac_compile" | $SED \
15060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15062 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015064 (eval "$lt_compile" 2>out/conftest.err)
15065 ac_status=$?
15066 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015068 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15069 then
15070 # The compiler can only warn and ignore the option if not recognized
15071 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015073 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15074 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15075 lt_cv_prog_compiler_c_o=yes
15076 fi
15077 fi
15078 chmod u+w . 2>&5
15079 $RM conftest*
15080 # SGI C++ compiler will create directory out/ii_files/ for
15081 # template instantiation
15082 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15083 $RM out/* && rmdir out
15084 cd ..
15085 $RM -r conftest
15086 $RM conftest*
15087
15088fi
15089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15090$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15091
15092
15093
15094
15095hard_links="nottested"
15096if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15097 # do not overwrite the value of need_locks provided by the user
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15099$as_echo_n "checking if we can lock with hard links... " >&6; }
15100 hard_links=yes
15101 $RM conftest*
15102 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15103 touch conftest.a
15104 ln conftest.a conftest.b 2>&5 || hard_links=no
15105 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15107$as_echo "$hard_links" >&6; }
15108 if test "$hard_links" = no; then
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15110$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15111 need_locks=warn
15112 fi
15113else
15114 need_locks=no
15115fi
15116
15117
15118
15119
15120
15121
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15123$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15124
15125 runpath_var=
15126 allow_undefined_flag=
15127 always_export_symbols=no
15128 archive_cmds=
15129 archive_expsym_cmds=
15130 compiler_needs_object=no
15131 enable_shared_with_static_runtimes=no
15132 export_dynamic_flag_spec=
15133 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15134 hardcode_automatic=no
15135 hardcode_direct=no
15136 hardcode_direct_absolute=no
15137 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015138 hardcode_libdir_separator=
15139 hardcode_minus_L=no
15140 hardcode_shlibpath_var=unsupported
15141 inherit_rpath=no
15142 link_all_deplibs=unknown
15143 module_cmds=
15144 module_expsym_cmds=
15145 old_archive_from_new_cmds=
15146 old_archive_from_expsyms_cmds=
15147 thread_safe_flag_spec=
15148 whole_archive_flag_spec=
15149 # include_expsyms should be a list of space-separated symbols to be *always*
15150 # included in the symbol list
15151 include_expsyms=
15152 # exclude_expsyms can be an extended regexp of symbols to exclude
15153 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15154 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15155 # as well as any symbol that contains `d'.
15156 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15157 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15158 # platforms (ab)use it in PIC code, but their linkers get confused if
15159 # the symbol is explicitly referenced. Since portable code cannot
15160 # rely on this symbol name, it's probably fine to never include it in
15161 # preloaded symbol tables.
15162 # Exclude shared library initialization/finalization symbols.
15163 extract_expsyms_cmds=
15164
15165 case $host_os in
15166 cygwin* | mingw* | pw32* | cegcc*)
15167 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15168 # When not using gcc, we currently assume that we are using
15169 # Microsoft Visual C++.
15170 if test "$GCC" != yes; then
15171 with_gnu_ld=no
15172 fi
15173 ;;
15174 interix*)
15175 # we just hope/assume this is gcc and not c89 (= MSVC++)
15176 with_gnu_ld=yes
15177 ;;
15178 openbsd*)
15179 with_gnu_ld=no
15180 ;;
15181 esac
15182
15183 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015184
15185 # On some targets, GNU ld is compatible enough with the native linker
15186 # that we're better off using the native interface for both.
15187 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015188 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015189 case $host_os in
15190 aix*)
15191 # The AIX port of GNU ld has always aspired to compatibility
15192 # with the native linker. However, as the warning in the GNU ld
15193 # block says, versions before 2.19.5* couldn't really create working
15194 # shared libraries, regardless of the interface used.
15195 case `$LD -v 2>&1` in
15196 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15197 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15198 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15199 *)
15200 lt_use_gnu_ld_interface=yes
15201 ;;
15202 esac
15203 ;;
15204 *)
15205 lt_use_gnu_ld_interface=yes
15206 ;;
15207 esac
15208 fi
15209
15210 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015211 # If archive_cmds runs LD, not CC, wlarc should be empty
15212 wlarc='${wl}'
15213
15214 # Set some defaults for GNU ld with shared library support. These
15215 # are reset later if shared libraries are not supported. Putting them
15216 # here allows them to be overridden if necessary.
15217 runpath_var=LD_RUN_PATH
15218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15219 export_dynamic_flag_spec='${wl}--export-dynamic'
15220 # ancient GNU ld didn't support --whole-archive et. al.
15221 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15222 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15223 else
15224 whole_archive_flag_spec=
15225 fi
15226 supports_anon_versioning=no
15227 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015228 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015229 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15230 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15231 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15232 *\ 2.11.*) ;; # other 2.11 versions
15233 *) supports_anon_versioning=yes ;;
15234 esac
15235
15236 # See if GNU ld supports shared libraries.
15237 case $host_os in
15238 aix[3-9]*)
15239 # On AIX/PPC, the GNU linker is very broken
15240 if test "$host_cpu" != ia64; then
15241 ld_shlibs=no
15242 cat <<_LT_EOF 1>&2
15243
cristy0c60a692010-11-04 01:09:47 +000015244*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015245*** to be unable to reliably create shared libraries on AIX.
15246*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015247*** really care for shared libraries, you may want to install binutils
15248*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15249*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015250
15251_LT_EOF
15252 fi
15253 ;;
15254
15255 amigaos*)
15256 case $host_cpu in
15257 powerpc)
15258 # see comment about AmigaOS4 .so support
15259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15260 archive_expsym_cmds=''
15261 ;;
15262 m68k)
15263 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)'
15264 hardcode_libdir_flag_spec='-L$libdir'
15265 hardcode_minus_L=yes
15266 ;;
15267 esac
15268 ;;
15269
15270 beos*)
15271 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15272 allow_undefined_flag=unsupported
15273 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15274 # support --undefined. This deserves some investigation. FIXME
15275 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15276 else
15277 ld_shlibs=no
15278 fi
15279 ;;
15280
15281 cygwin* | mingw* | pw32* | cegcc*)
15282 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15283 # as there is no search path for DLLs.
15284 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015285 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015286 allow_undefined_flag=unsupported
15287 always_export_symbols=no
15288 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015289 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'
15290 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 +000015291
15292 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15294 # If the export-symbols file already is a .def file (1st line
15295 # is EXPORTS), use it as is; otherwise, prepend...
15296 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15297 cp $export_symbols $output_objdir/$soname.def;
15298 else
15299 echo EXPORTS > $output_objdir/$soname.def;
15300 cat $export_symbols >> $output_objdir/$soname.def;
15301 fi~
15302 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15303 else
15304 ld_shlibs=no
15305 fi
15306 ;;
15307
cristy0c60a692010-11-04 01:09:47 +000015308 haiku*)
15309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15310 link_all_deplibs=yes
15311 ;;
15312
cristy73bd4a52010-10-05 11:24:23 +000015313 interix[3-9]*)
15314 hardcode_direct=no
15315 hardcode_shlibpath_var=no
15316 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15317 export_dynamic_flag_spec='${wl}-E'
15318 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15319 # Instead, shared libraries are loaded at an image base (0x10000000 by
15320 # default) and relocated if they conflict, which is a slow very memory
15321 # consuming and fragmenting process. To avoid this, we pick a random,
15322 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15323 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15324 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15325 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'
15326 ;;
15327
cristy0c60a692010-11-04 01:09:47 +000015328 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015329 tmp_diet=no
15330 if test "$host_os" = linux-dietlibc; then
15331 case $cc_basename in
15332 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15333 esac
15334 fi
15335 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15336 && test "$tmp_diet" = no
15337 then
cristyda16f162011-02-19 23:52:17 +000015338 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015339 tmp_sharedflag='-shared'
15340 case $cc_basename,$host_cpu in
15341 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015342 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 +000015343 tmp_addflag=' $pic_flag'
15344 ;;
cristy0c60a692010-11-04 01:09:47 +000015345 pgf77* | pgf90* | pgf95* | pgfortran*)
15346 # Portland Group f77 and f90 compilers
15347 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 +000015348 tmp_addflag=' $pic_flag -Mnomain' ;;
15349 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15350 tmp_addflag=' -i_dynamic' ;;
15351 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15352 tmp_addflag=' -i_dynamic -nofor_main' ;;
15353 ifc* | ifort*) # Intel Fortran compiler
15354 tmp_addflag=' -nofor_main' ;;
15355 lf95*) # Lahey Fortran 8.1
15356 whole_archive_flag_spec=
15357 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015358 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015359 tmp_sharedflag='-qmkshrobj'
15360 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015361 nvcc*) # Cuda Compiler Driver 2.2
15362 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'
15363 compiler_needs_object=yes
15364 ;;
cristy73bd4a52010-10-05 11:24:23 +000015365 esac
15366 case `$CC -V 2>&1 | sed 5q` in
15367 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015368 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 +000015369 compiler_needs_object=yes
15370 tmp_sharedflag='-G' ;;
15371 *Sun\ F*) # Sun Fortran 8.3
15372 tmp_sharedflag='-G' ;;
15373 esac
15374 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15375
15376 if test "x$supports_anon_versioning" = xyes; then
15377 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15378 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15379 echo "local: *; };" >> $output_objdir/$libname.ver~
15380 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15381 fi
15382
15383 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015384 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015385 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15386 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015388 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015389 if test "x$supports_anon_versioning" = xyes; then
15390 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15392 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015393 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015394 fi
15395 ;;
15396 esac
15397 else
15398 ld_shlibs=no
15399 fi
15400 ;;
15401
15402 netbsd*)
15403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15404 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15405 wlarc=
15406 else
cristyda16f162011-02-19 23:52:17 +000015407 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15408 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 +000015409 fi
15410 ;;
15411
15412 solaris*)
15413 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15414 ld_shlibs=no
15415 cat <<_LT_EOF 1>&2
15416
15417*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15418*** create shared libraries on Solaris systems. Therefore, libtool
15419*** is disabling shared libraries support. We urge you to upgrade GNU
15420*** binutils to release 2.9.1 or newer. Another option is to modify
15421*** your PATH or compiler configuration so that the native linker is
15422*** used, and then restart.
15423
15424_LT_EOF
15425 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015426 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15427 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 +000015428 else
15429 ld_shlibs=no
15430 fi
15431 ;;
15432
15433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15434 case `$LD -v 2>&1` in
15435 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15436 ld_shlibs=no
15437 cat <<_LT_EOF 1>&2
15438
15439*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15440*** reliably create shared libraries on SCO systems. Therefore, libtool
15441*** is disabling shared libraries support. We urge you to upgrade GNU
15442*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15443*** your PATH or compiler configuration so that the native linker is
15444*** used, and then restart.
15445
15446_LT_EOF
15447 ;;
15448 *)
15449 # For security reasons, it is highly recommended that you always
15450 # use absolute paths for naming shared libraries, and exclude the
15451 # DT_RUNPATH tag from executables and libraries. But doing so
15452 # requires that you compile everything twice, which is a pain.
15453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15456 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15457 else
15458 ld_shlibs=no
15459 fi
15460 ;;
15461 esac
15462 ;;
15463
15464 sunos4*)
15465 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15466 wlarc=
15467 hardcode_direct=yes
15468 hardcode_shlibpath_var=no
15469 ;;
15470
15471 *)
15472 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015473 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15474 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 +000015475 else
15476 ld_shlibs=no
15477 fi
15478 ;;
15479 esac
15480
15481 if test "$ld_shlibs" = no; then
15482 runpath_var=
15483 hardcode_libdir_flag_spec=
15484 export_dynamic_flag_spec=
15485 whole_archive_flag_spec=
15486 fi
15487 else
15488 # PORTME fill in a description of your system's linker (not GNU ld)
15489 case $host_os in
15490 aix3*)
15491 allow_undefined_flag=unsupported
15492 always_export_symbols=yes
15493 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'
15494 # Note: this linker hardcodes the directories in LIBPATH if there
15495 # are no directories specified by -L.
15496 hardcode_minus_L=yes
15497 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15498 # Neither direct hardcoding nor static linking is supported with a
15499 # broken collect2.
15500 hardcode_direct=unsupported
15501 fi
15502 ;;
15503
15504 aix[4-9]*)
15505 if test "$host_cpu" = ia64; then
15506 # On IA64, the linker does run time linking by default, so we don't
15507 # have to do anything special.
15508 aix_use_runtimelinking=no
15509 exp_sym_flag='-Bexport'
15510 no_entry_flag=""
15511 else
15512 # If we're using GNU nm, then we don't want the "-C" option.
15513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015514 # Also, AIX nm treats weak defined symbols like other global
15515 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015516 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015517 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 +000015518 else
15519 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'
15520 fi
15521 aix_use_runtimelinking=no
15522
15523 # Test if we are trying to use run time linking or normal
15524 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15525 # need to do runtime linking.
15526 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15527 for ld_flag in $LDFLAGS; do
15528 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15529 aix_use_runtimelinking=yes
15530 break
15531 fi
15532 done
15533 ;;
15534 esac
15535
15536 exp_sym_flag='-bexport'
15537 no_entry_flag='-bnoentry'
15538 fi
15539
15540 # When large executables or shared objects are built, AIX ld can
15541 # have problems creating the table of contents. If linking a library
15542 # or program results in "error TOC overflow" add -mminimal-toc to
15543 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15544 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15545
15546 archive_cmds=''
15547 hardcode_direct=yes
15548 hardcode_direct_absolute=yes
15549 hardcode_libdir_separator=':'
15550 link_all_deplibs=yes
15551 file_list_spec='${wl}-f,'
15552
15553 if test "$GCC" = yes; then
15554 case $host_os in aix4.[012]|aix4.[012].*)
15555 # We only want to do this on AIX 4.2 and lower, the check
15556 # below for broken collect2 doesn't work under 4.3+
15557 collect2name=`${CC} -print-prog-name=collect2`
15558 if test -f "$collect2name" &&
15559 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15560 then
15561 # We have reworked collect2
15562 :
15563 else
15564 # We have old collect2
15565 hardcode_direct=unsupported
15566 # It fails to find uninstalled libraries when the uninstalled
15567 # path is not listed in the libpath. Setting hardcode_minus_L
15568 # to unsupported forces relinking
15569 hardcode_minus_L=yes
15570 hardcode_libdir_flag_spec='-L$libdir'
15571 hardcode_libdir_separator=
15572 fi
15573 ;;
15574 esac
15575 shared_flag='-shared'
15576 if test "$aix_use_runtimelinking" = yes; then
15577 shared_flag="$shared_flag "'${wl}-G'
15578 fi
15579 else
15580 # not using gcc
15581 if test "$host_cpu" = ia64; then
15582 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15583 # chokes on -Wl,-G. The following line is correct:
15584 shared_flag='-G'
15585 else
15586 if test "$aix_use_runtimelinking" = yes; then
15587 shared_flag='${wl}-G'
15588 else
15589 shared_flag='${wl}-bM:SRE'
15590 fi
15591 fi
15592 fi
15593
15594 export_dynamic_flag_spec='${wl}-bexpall'
15595 # It seems that -bexpall does not export symbols beginning with
15596 # underscore (_), so it is better to generate a list of symbols to export.
15597 always_export_symbols=yes
15598 if test "$aix_use_runtimelinking" = yes; then
15599 # Warning - without using the other runtime loading flags (-brtl),
15600 # -berok will link without error, but may produce a broken library.
15601 allow_undefined_flag='-berok'
15602 # Determine the default libpath from the value encoded in an
15603 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015604 if test "${lt_cv_aix_libpath+set}" = set; then
15605 aix_libpath=$lt_cv_aix_libpath
15606else
15607 if ${lt_cv_aix_libpath_+:} false; then :
15608 $as_echo_n "(cached) " >&6
15609else
15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015611/* end confdefs.h. */
15612
15613int
15614main ()
15615{
15616
15617 ;
15618 return 0;
15619}
15620_ACEOF
15621if ac_fn_c_try_link "$LINENO"; then :
15622
cristyda16f162011-02-19 23:52:17 +000015623 lt_aix_libpath_sed='
15624 /Import File Strings/,/^$/ {
15625 /^0/ {
15626 s/^0 *\([^ ]*\) *$/\1/
15627 p
15628 }
15629 }'
15630 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15631 # Check for a 64-bit object if we didn't find anything.
15632 if test -z "$lt_cv_aix_libpath_"; then
15633 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15634 fi
cristy73bd4a52010-10-05 11:24:23 +000015635fi
15636rm -f core conftest.err conftest.$ac_objext \
15637 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015638 if test -z "$lt_cv_aix_libpath_"; then
15639 lt_cv_aix_libpath_="/usr/lib:/lib"
15640 fi
15641
15642fi
15643
15644 aix_libpath=$lt_cv_aix_libpath_
15645fi
cristy73bd4a52010-10-05 11:24:23 +000015646
15647 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015648 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 +000015649 else
15650 if test "$host_cpu" = ia64; then
15651 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15652 allow_undefined_flag="-z nodefs"
15653 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"
15654 else
15655 # Determine the default libpath from the value encoded in an
15656 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015657 if test "${lt_cv_aix_libpath+set}" = set; then
15658 aix_libpath=$lt_cv_aix_libpath
15659else
15660 if ${lt_cv_aix_libpath_+:} false; then :
15661 $as_echo_n "(cached) " >&6
15662else
15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015664/* end confdefs.h. */
15665
15666int
15667main ()
15668{
15669
15670 ;
15671 return 0;
15672}
15673_ACEOF
15674if ac_fn_c_try_link "$LINENO"; then :
15675
cristyda16f162011-02-19 23:52:17 +000015676 lt_aix_libpath_sed='
15677 /Import File Strings/,/^$/ {
15678 /^0/ {
15679 s/^0 *\([^ ]*\) *$/\1/
15680 p
15681 }
15682 }'
15683 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15684 # Check for a 64-bit object if we didn't find anything.
15685 if test -z "$lt_cv_aix_libpath_"; then
15686 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15687 fi
cristy73bd4a52010-10-05 11:24:23 +000015688fi
15689rm -f core conftest.err conftest.$ac_objext \
15690 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015691 if test -z "$lt_cv_aix_libpath_"; then
15692 lt_cv_aix_libpath_="/usr/lib:/lib"
15693 fi
15694
15695fi
15696
15697 aix_libpath=$lt_cv_aix_libpath_
15698fi
cristy73bd4a52010-10-05 11:24:23 +000015699
15700 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15701 # Warning - without using the other run time loading flags,
15702 # -berok will link without error, but may produce a broken library.
15703 no_undefined_flag=' ${wl}-bernotok'
15704 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015705 if test "$with_gnu_ld" = yes; then
15706 # We only use this code for GNU lds that support --whole-archive.
15707 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15708 else
15709 # Exported symbols can be pulled into shared objects from archives
15710 whole_archive_flag_spec='$convenience'
15711 fi
cristy73bd4a52010-10-05 11:24:23 +000015712 archive_cmds_need_lc=yes
15713 # This is similar to how AIX traditionally builds its shared libraries.
15714 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'
15715 fi
15716 fi
15717 ;;
15718
15719 amigaos*)
15720 case $host_cpu in
15721 powerpc)
15722 # see comment about AmigaOS4 .so support
15723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15724 archive_expsym_cmds=''
15725 ;;
15726 m68k)
15727 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)'
15728 hardcode_libdir_flag_spec='-L$libdir'
15729 hardcode_minus_L=yes
15730 ;;
15731 esac
15732 ;;
15733
15734 bsdi[45]*)
15735 export_dynamic_flag_spec=-rdynamic
15736 ;;
15737
15738 cygwin* | mingw* | pw32* | cegcc*)
15739 # When not using gcc, we currently assume that we are using
15740 # Microsoft Visual C++.
15741 # hardcode_libdir_flag_spec is actually meaningless, as there is
15742 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015743 case $cc_basename in
15744 cl*)
15745 # Native MSVC
15746 hardcode_libdir_flag_spec=' '
15747 allow_undefined_flag=unsupported
15748 always_export_symbols=yes
15749 file_list_spec='@'
15750 # Tell ltmain to make .lib files, not .a files.
15751 libext=lib
15752 # Tell ltmain to make .dll files, not .so files.
15753 shrext_cmds=".dll"
15754 # FIXME: Setting linknames here is a bad hack.
15755 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15756 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15757 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15758 else
15759 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15760 fi~
15761 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15762 linknames='
15763 # The linker will not automatically build a static lib if we build a DLL.
15764 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15765 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015766 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015767 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15768 # Don't use ranlib
15769 old_postinstall_cmds='chmod 644 $oldlib'
15770 postlink_cmds='lt_outputfile="@OUTPUT@"~
15771 lt_tool_outputfile="@TOOL_OUTPUT@"~
15772 case $lt_outputfile in
15773 *.exe|*.EXE) ;;
15774 *)
15775 lt_outputfile="$lt_outputfile.exe"
15776 lt_tool_outputfile="$lt_tool_outputfile.exe"
15777 ;;
15778 esac~
15779 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15780 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15781 $RM "$lt_outputfile.manifest";
15782 fi'
15783 ;;
15784 *)
15785 # Assume MSVC wrapper
15786 hardcode_libdir_flag_spec=' '
15787 allow_undefined_flag=unsupported
15788 # Tell ltmain to make .lib files, not .a files.
15789 libext=lib
15790 # Tell ltmain to make .dll files, not .so files.
15791 shrext_cmds=".dll"
15792 # FIXME: Setting linknames here is a bad hack.
15793 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15794 # The linker will automatically build a .lib file if we build a DLL.
15795 old_archive_from_new_cmds='true'
15796 # FIXME: Should let the user specify the lib program.
15797 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15798 enable_shared_with_static_runtimes=yes
15799 ;;
15800 esac
cristy73bd4a52010-10-05 11:24:23 +000015801 ;;
15802
15803 darwin* | rhapsody*)
15804
15805
15806 archive_cmds_need_lc=no
15807 hardcode_direct=no
15808 hardcode_automatic=yes
15809 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015810 if test "$lt_cv_ld_force_load" = "yes"; then
15811 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 +000015812
cristy0c60a692010-11-04 01:09:47 +000015813 else
15814 whole_archive_flag_spec=''
15815 fi
cristy73bd4a52010-10-05 11:24:23 +000015816 link_all_deplibs=yes
15817 allow_undefined_flag="$_lt_dar_allow_undefined"
15818 case $cc_basename in
15819 ifort*) _lt_dar_can_shared=yes ;;
15820 *) _lt_dar_can_shared=$GCC ;;
15821 esac
15822 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015823 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015824 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15825 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15826 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}"
15827 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}"
15828
15829 else
15830 ld_shlibs=no
15831 fi
15832
15833 ;;
15834
15835 dgux*)
15836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15837 hardcode_libdir_flag_spec='-L$libdir'
15838 hardcode_shlibpath_var=no
15839 ;;
15840
cristy73bd4a52010-10-05 11:24:23 +000015841 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15842 # support. Future versions do this automatically, but an explicit c++rt0.o
15843 # does not break anything, and helps significantly (at the cost of a little
15844 # extra space).
15845 freebsd2.2*)
15846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15847 hardcode_libdir_flag_spec='-R$libdir'
15848 hardcode_direct=yes
15849 hardcode_shlibpath_var=no
15850 ;;
15851
15852 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015853 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15855 hardcode_direct=yes
15856 hardcode_minus_L=yes
15857 hardcode_shlibpath_var=no
15858 ;;
15859
15860 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15861 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015863 hardcode_libdir_flag_spec='-R$libdir'
15864 hardcode_direct=yes
15865 hardcode_shlibpath_var=no
15866 ;;
15867
15868 hpux9*)
15869 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015870 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 +000015871 else
15872 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'
15873 fi
15874 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15875 hardcode_libdir_separator=:
15876 hardcode_direct=yes
15877
15878 # hardcode_minus_L: Not really in the search PATH,
15879 # but as the default location of the library.
15880 hardcode_minus_L=yes
15881 export_dynamic_flag_spec='${wl}-E'
15882 ;;
15883
15884 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015885 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015886 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 +000015887 else
15888 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15889 fi
15890 if test "$with_gnu_ld" = no; then
15891 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015892 hardcode_libdir_separator=:
15893 hardcode_direct=yes
15894 hardcode_direct_absolute=yes
15895 export_dynamic_flag_spec='${wl}-E'
15896 # hardcode_minus_L: Not really in the search PATH,
15897 # but as the default location of the library.
15898 hardcode_minus_L=yes
15899 fi
15900 ;;
15901
15902 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015903 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015904 case $host_cpu in
15905 hppa*64*)
15906 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15907 ;;
15908 ia64*)
cristyda16f162011-02-19 23:52:17 +000015909 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015910 ;;
15911 *)
cristyda16f162011-02-19 23:52:17 +000015912 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 +000015913 ;;
15914 esac
15915 else
15916 case $host_cpu in
15917 hppa*64*)
15918 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15919 ;;
15920 ia64*)
15921 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15922 ;;
15923 *)
cristy0c60a692010-11-04 01:09:47 +000015924
15925 # Older versions of the 11.00 compiler do not understand -b yet
15926 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15928$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015929if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015930 $as_echo_n "(cached) " >&6
15931else
15932 lt_cv_prog_compiler__b=no
15933 save_LDFLAGS="$LDFLAGS"
15934 LDFLAGS="$LDFLAGS -b"
15935 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15936 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15937 # The linker can only warn and ignore the option if not recognized
15938 # So say no if there are warnings
15939 if test -s conftest.err; then
15940 # Append any errors to the config.log.
15941 cat conftest.err 1>&5
15942 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15944 if diff conftest.exp conftest.er2 >/dev/null; then
15945 lt_cv_prog_compiler__b=yes
15946 fi
15947 else
15948 lt_cv_prog_compiler__b=yes
15949 fi
15950 fi
15951 $RM -r conftest*
15952 LDFLAGS="$save_LDFLAGS"
15953
15954fi
15955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15956$as_echo "$lt_cv_prog_compiler__b" >&6; }
15957
15958if test x"$lt_cv_prog_compiler__b" = xyes; then
15959 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15960else
15961 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15962fi
15963
cristy73bd4a52010-10-05 11:24:23 +000015964 ;;
15965 esac
15966 fi
15967 if test "$with_gnu_ld" = no; then
15968 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15969 hardcode_libdir_separator=:
15970
15971 case $host_cpu in
15972 hppa*64*|ia64*)
15973 hardcode_direct=no
15974 hardcode_shlibpath_var=no
15975 ;;
15976 *)
15977 hardcode_direct=yes
15978 hardcode_direct_absolute=yes
15979 export_dynamic_flag_spec='${wl}-E'
15980
15981 # hardcode_minus_L: Not really in the search PATH,
15982 # but as the default location of the library.
15983 hardcode_minus_L=yes
15984 ;;
15985 esac
15986 fi
15987 ;;
15988
15989 irix5* | irix6* | nonstopux*)
15990 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015991 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 +000015992 # Try to use the -exported_symbol ld option, if it does not
15993 # work, assume that -exports_file does not work either and
15994 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015995 # This should be the same for all languages, so no per-tag cache variable.
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15997$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15998if ${lt_cv_irix_exported_symbol+:} false; then :
15999 $as_echo_n "(cached) " >&6
16000else
16001 save_LDFLAGS="$LDFLAGS"
16002 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016004/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016005int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016006_ACEOF
16007if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016008 lt_cv_irix_exported_symbol=yes
16009else
16010 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016011fi
16012rm -f core conftest.err conftest.$ac_objext \
16013 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016014 LDFLAGS="$save_LDFLAGS"
16015fi
16016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16017$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16018 if test "$lt_cv_irix_exported_symbol" = yes; then
16019 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'
16020 fi
cristy73bd4a52010-10-05 11:24:23 +000016021 else
cristy0c60a692010-11-04 01:09:47 +000016022 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'
16023 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 +000016024 fi
16025 archive_cmds_need_lc='no'
16026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16027 hardcode_libdir_separator=:
16028 inherit_rpath=yes
16029 link_all_deplibs=yes
16030 ;;
16031
16032 netbsd*)
16033 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16034 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16035 else
16036 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16037 fi
16038 hardcode_libdir_flag_spec='-R$libdir'
16039 hardcode_direct=yes
16040 hardcode_shlibpath_var=no
16041 ;;
16042
16043 newsos6)
16044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16045 hardcode_direct=yes
16046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16047 hardcode_libdir_separator=:
16048 hardcode_shlibpath_var=no
16049 ;;
16050
16051 *nto* | *qnx*)
16052 ;;
16053
16054 openbsd*)
16055 if test -f /usr/libexec/ld.so; then
16056 hardcode_direct=yes
16057 hardcode_shlibpath_var=no
16058 hardcode_direct_absolute=yes
16059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16060 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16061 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16062 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16063 export_dynamic_flag_spec='${wl}-E'
16064 else
16065 case $host_os in
16066 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16068 hardcode_libdir_flag_spec='-R$libdir'
16069 ;;
16070 *)
16071 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16072 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16073 ;;
16074 esac
16075 fi
16076 else
16077 ld_shlibs=no
16078 fi
16079 ;;
16080
16081 os2*)
16082 hardcode_libdir_flag_spec='-L$libdir'
16083 hardcode_minus_L=yes
16084 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016085 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 +000016086 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16087 ;;
16088
16089 osf3*)
16090 if test "$GCC" = yes; then
16091 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016092 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 +000016093 else
16094 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016095 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 +000016096 fi
16097 archive_cmds_need_lc='no'
16098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16099 hardcode_libdir_separator=:
16100 ;;
16101
16102 osf4* | osf5*) # as osf3* with the addition of -msym flag
16103 if test "$GCC" = yes; then
16104 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016105 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 +000016106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16107 else
16108 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016109 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 +000016110 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 +000016111 $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 +000016112
16113 # Both c and cxx compiler support -rpath directly
16114 hardcode_libdir_flag_spec='-rpath $libdir'
16115 fi
16116 archive_cmds_need_lc='no'
16117 hardcode_libdir_separator=:
16118 ;;
16119
16120 solaris*)
16121 no_undefined_flag=' -z defs'
16122 if test "$GCC" = yes; then
16123 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016124 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 +000016125 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 +000016126 $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 +000016127 else
16128 case `$CC -V 2>&1` in
16129 *"Compilers 5.0"*)
16130 wlarc=''
16131 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16132 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16133 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16134 ;;
16135 *)
16136 wlarc='${wl}'
16137 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16138 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16139 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16140 ;;
16141 esac
16142 fi
16143 hardcode_libdir_flag_spec='-R$libdir'
16144 hardcode_shlibpath_var=no
16145 case $host_os in
16146 solaris2.[0-5] | solaris2.[0-5].*) ;;
16147 *)
16148 # The compiler driver will combine and reorder linker options,
16149 # but understands `-z linker_flag'. GCC discards it without `$wl',
16150 # but is careful enough not to reorder.
16151 # Supported since Solaris 2.6 (maybe 2.5.1?)
16152 if test "$GCC" = yes; then
16153 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16154 else
16155 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16156 fi
16157 ;;
16158 esac
16159 link_all_deplibs=yes
16160 ;;
16161
16162 sunos4*)
16163 if test "x$host_vendor" = xsequent; then
16164 # Use $CC to link under sequent, because it throws in some extra .o
16165 # files that make .init and .fini sections work.
16166 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16167 else
16168 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16169 fi
16170 hardcode_libdir_flag_spec='-L$libdir'
16171 hardcode_direct=yes
16172 hardcode_minus_L=yes
16173 hardcode_shlibpath_var=no
16174 ;;
16175
16176 sysv4)
16177 case $host_vendor in
16178 sni)
16179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180 hardcode_direct=yes # is this really true???
16181 ;;
16182 siemens)
16183 ## LD is ld it makes a PLAMLIB
16184 ## CC just makes a GrossModule.
16185 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16186 reload_cmds='$CC -r -o $output$reload_objs'
16187 hardcode_direct=no
16188 ;;
16189 motorola)
16190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16192 ;;
16193 esac
16194 runpath_var='LD_RUN_PATH'
16195 hardcode_shlibpath_var=no
16196 ;;
16197
16198 sysv4.3*)
16199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16200 hardcode_shlibpath_var=no
16201 export_dynamic_flag_spec='-Bexport'
16202 ;;
16203
16204 sysv4*MP*)
16205 if test -d /usr/nec; then
16206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16207 hardcode_shlibpath_var=no
16208 runpath_var=LD_RUN_PATH
16209 hardcode_runpath_var=yes
16210 ld_shlibs=yes
16211 fi
16212 ;;
16213
16214 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16215 no_undefined_flag='${wl}-z,text'
16216 archive_cmds_need_lc=no
16217 hardcode_shlibpath_var=no
16218 runpath_var='LD_RUN_PATH'
16219
16220 if test "$GCC" = yes; then
16221 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16222 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16223 else
16224 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16225 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16226 fi
16227 ;;
16228
16229 sysv5* | sco3.2v5* | sco5v6*)
16230 # Note: We can NOT use -z defs as we might desire, because we do not
16231 # link with -lc, and that would cause any symbols used from libc to
16232 # always be unresolved, which means just about no library would
16233 # ever link correctly. If we're not using GNU ld we use -z text
16234 # though, which does catch some bad symbols but isn't as heavy-handed
16235 # as -z defs.
16236 no_undefined_flag='${wl}-z,text'
16237 allow_undefined_flag='${wl}-z,nodefs'
16238 archive_cmds_need_lc=no
16239 hardcode_shlibpath_var=no
16240 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16241 hardcode_libdir_separator=':'
16242 link_all_deplibs=yes
16243 export_dynamic_flag_spec='${wl}-Bexport'
16244 runpath_var='LD_RUN_PATH'
16245
16246 if test "$GCC" = yes; then
16247 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16248 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16249 else
16250 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16251 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16252 fi
16253 ;;
16254
16255 uts4*)
16256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16257 hardcode_libdir_flag_spec='-L$libdir'
16258 hardcode_shlibpath_var=no
16259 ;;
16260
16261 *)
16262 ld_shlibs=no
16263 ;;
16264 esac
16265
16266 if test x$host_vendor = xsni; then
16267 case $host in
16268 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16269 export_dynamic_flag_spec='${wl}-Blargedynsym'
16270 ;;
16271 esac
16272 fi
16273 fi
16274
16275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16276$as_echo "$ld_shlibs" >&6; }
16277test "$ld_shlibs" = no && can_build_shared=no
16278
16279with_gnu_ld=$with_gnu_ld
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295#
16296# Do we need to explicitly link libc?
16297#
16298case "x$archive_cmds_need_lc" in
16299x|xyes)
16300 # Assume -lc should be added
16301 archive_cmds_need_lc=yes
16302
16303 if test "$enable_shared" = yes && test "$GCC" = yes; then
16304 case $archive_cmds in
16305 *'~'*)
16306 # FIXME: we may have to deal with multi-command sequences.
16307 ;;
16308 '$CC '*)
16309 # Test whether the compiler implicitly links with -lc since on some
16310 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16311 # to ld, don't add -lc before -lgcc.
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16313$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016314if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016315 $as_echo_n "(cached) " >&6
16316else
16317 $RM conftest*
16318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016319
cristy0c60a692010-11-04 01:09:47 +000016320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016321 (eval $ac_compile) 2>&5
16322 ac_status=$?
16323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16324 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016325 soname=conftest
16326 lib=conftest
16327 libobjs=conftest.$ac_objext
16328 deplibs=
16329 wl=$lt_prog_compiler_wl
16330 pic_flag=$lt_prog_compiler_pic
16331 compiler_flags=-v
16332 linker_flags=-v
16333 verstring=
16334 output_objdir=.
16335 libname=conftest
16336 lt_save_allow_undefined_flag=$allow_undefined_flag
16337 allow_undefined_flag=
16338 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 +000016339 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16340 ac_status=$?
16341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16342 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016343 then
16344 lt_cv_archive_cmds_need_lc=no
16345 else
16346 lt_cv_archive_cmds_need_lc=yes
16347 fi
16348 allow_undefined_flag=$lt_save_allow_undefined_flag
16349 else
16350 cat conftest.err 1>&5
16351 fi
16352 $RM conftest*
16353
16354fi
16355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16356$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16357 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016358 ;;
16359 esac
16360 fi
16361 ;;
16362esac
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
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
cristy73bd4a52010-10-05 11:24:23 +000016515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16516$as_echo_n "checking dynamic linker characteristics... " >&6; }
16517
16518if test "$GCC" = yes; then
16519 case $host_os in
16520 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16521 *) lt_awk_arg="/^libraries:/" ;;
16522 esac
cristy0c60a692010-11-04 01:09:47 +000016523 case $host_os in
16524 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16525 *) lt_sed_strip_eq="s,=/,/,g" ;;
16526 esac
16527 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16528 case $lt_search_path_spec in
16529 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016530 # if the path contains ";" then we assume it to be the separator
16531 # otherwise default to the standard path separator (i.e. ":") - it is
16532 # assumed that no part of a normal pathname contains ";" but that should
16533 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016534 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16535 ;;
16536 *)
16537 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16538 ;;
16539 esac
cristy73bd4a52010-10-05 11:24:23 +000016540 # Ok, now we have the path, separated by spaces, we can step through it
16541 # and add multilib dir if necessary.
16542 lt_tmp_lt_search_path_spec=
16543 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16544 for lt_sys_path in $lt_search_path_spec; do
16545 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16546 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16547 else
16548 test -d "$lt_sys_path" && \
16549 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16550 fi
16551 done
cristy0c60a692010-11-04 01:09:47 +000016552 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016553BEGIN {RS=" "; FS="/|\n";} {
16554 lt_foo="";
16555 lt_count=0;
16556 for (lt_i = NF; lt_i > 0; lt_i--) {
16557 if ($lt_i != "" && $lt_i != ".") {
16558 if ($lt_i == "..") {
16559 lt_count++;
16560 } else {
16561 if (lt_count == 0) {
16562 lt_foo="/" $lt_i lt_foo;
16563 } else {
16564 lt_count--;
16565 }
16566 }
16567 }
16568 }
16569 if (lt_foo != "") { lt_freq[lt_foo]++; }
16570 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16571}'`
cristy0c60a692010-11-04 01:09:47 +000016572 # AWK program above erroneously prepends '/' to C:/dos/paths
16573 # for these hosts.
16574 case $host_os in
16575 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16576 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16577 esac
16578 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016579else
16580 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16581fi
16582library_names_spec=
16583libname_spec='lib$name'
16584soname_spec=
16585shrext_cmds=".so"
16586postinstall_cmds=
16587postuninstall_cmds=
16588finish_cmds=
16589finish_eval=
16590shlibpath_var=
16591shlibpath_overrides_runpath=unknown
16592version_type=none
16593dynamic_linker="$host_os ld.so"
16594sys_lib_dlsearch_path_spec="/lib /usr/lib"
16595need_lib_prefix=unknown
16596hardcode_into_libs=no
16597
16598# when you set need_version to no, make sure it does not cause -set_version
16599# flags to be left without arguments
16600need_version=unknown
16601
16602case $host_os in
16603aix3*)
cristy99bd5232011-12-07 14:38:20 +000016604 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16606 shlibpath_var=LIBPATH
16607
16608 # AIX 3 has no versioning support, so we append a major version to the name.
16609 soname_spec='${libname}${release}${shared_ext}$major'
16610 ;;
16611
16612aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016613 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016614 need_lib_prefix=no
16615 need_version=no
16616 hardcode_into_libs=yes
16617 if test "$host_cpu" = ia64; then
16618 # AIX 5 supports IA64
16619 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16620 shlibpath_var=LD_LIBRARY_PATH
16621 else
16622 # With GCC up to 2.95.x, collect2 would create an import file
16623 # for dependence libraries. The import file would start with
16624 # the line `#! .'. This would cause the generated library to
16625 # depend on `.', always an invalid library. This was fixed in
16626 # development snapshots of GCC prior to 3.0.
16627 case $host_os in
16628 aix4 | aix4.[01] | aix4.[01].*)
16629 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16630 echo ' yes '
16631 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16632 :
16633 else
16634 can_build_shared=no
16635 fi
16636 ;;
16637 esac
16638 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16639 # soname into executable. Probably we can add versioning support to
16640 # collect2, so additional links can be useful in future.
16641 if test "$aix_use_runtimelinking" = yes; then
16642 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16643 # instead of lib<name>.a to let people know that these are not
16644 # typical AIX shared libraries.
16645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16646 else
16647 # We preserve .a as extension for shared libraries through AIX4.2
16648 # and later when we are not doing run time linking.
16649 library_names_spec='${libname}${release}.a $libname.a'
16650 soname_spec='${libname}${release}${shared_ext}$major'
16651 fi
16652 shlibpath_var=LIBPATH
16653 fi
16654 ;;
16655
16656amigaos*)
16657 case $host_cpu in
16658 powerpc)
16659 # Since July 2007 AmigaOS4 officially supports .so libraries.
16660 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16662 ;;
16663 m68k)
16664 library_names_spec='$libname.ixlibrary $libname.a'
16665 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016666 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 +000016667 ;;
16668 esac
16669 ;;
16670
16671beos*)
16672 library_names_spec='${libname}${shared_ext}'
16673 dynamic_linker="$host_os ld.so"
16674 shlibpath_var=LIBRARY_PATH
16675 ;;
16676
16677bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016678 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016679 need_version=no
16680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16681 soname_spec='${libname}${release}${shared_ext}$major'
16682 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16683 shlibpath_var=LD_LIBRARY_PATH
16684 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16685 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16686 # the default ld.so.conf also contains /usr/contrib/lib and
16687 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16688 # libtool to hard-code these into programs
16689 ;;
16690
16691cygwin* | mingw* | pw32* | cegcc*)
16692 version_type=windows
16693 shrext_cmds=".dll"
16694 need_version=no
16695 need_lib_prefix=no
16696
cristyda16f162011-02-19 23:52:17 +000016697 case $GCC,$cc_basename in
16698 yes,*)
16699 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016700 library_names_spec='$libname.dll.a'
16701 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16702 postinstall_cmds='base_file=`basename \${file}`~
16703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16704 dldir=$destdir/`dirname \$dlpath`~
16705 test -d \$dldir || mkdir -p \$dldir~
16706 $install_prog $dir/$dlname \$dldir/$dlname~
16707 chmod a+x \$dldir/$dlname~
16708 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16709 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16710 fi'
16711 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16712 dlpath=$dir/\$dldll~
16713 $RM \$dlpath'
16714 shlibpath_overrides_runpath=yes
16715
16716 case $host_os in
16717 cygwin*)
16718 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16719 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016720
16721 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016722 ;;
16723 mingw* | cegcc*)
16724 # MinGW DLLs use traditional 'lib' prefix
16725 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016726 ;;
16727 pw32*)
16728 # pw32 DLLs use 'pw' prefix rather than 'lib'
16729 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16730 ;;
16731 esac
cristyda16f162011-02-19 23:52:17 +000016732 dynamic_linker='Win32 ld.exe'
16733 ;;
16734
16735 *,cl*)
16736 # Native MSVC
16737 libname_spec='$name'
16738 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16739 library_names_spec='${libname}.dll.lib'
16740
16741 case $build_os in
16742 mingw*)
16743 sys_lib_search_path_spec=
16744 lt_save_ifs=$IFS
16745 IFS=';'
16746 for lt_path in $LIB
16747 do
16748 IFS=$lt_save_ifs
16749 # Let DOS variable expansion print the short 8.3 style file name.
16750 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16751 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16752 done
16753 IFS=$lt_save_ifs
16754 # Convert to MSYS style.
16755 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16756 ;;
16757 cygwin*)
16758 # Convert to unix form, then to dos form, then back to unix form
16759 # but this time dos style (no spaces!) so that the unix form looks
16760 # like /cygdrive/c/PROGRA~1:/cygdr...
16761 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16762 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16763 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16764 ;;
16765 *)
16766 sys_lib_search_path_spec="$LIB"
16767 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16768 # It is most probably a Windows format PATH.
16769 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16770 else
16771 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16772 fi
16773 # FIXME: find the short name or the path components, as spaces are
16774 # common. (e.g. "Program Files" -> "PROGRA~1")
16775 ;;
16776 esac
16777
16778 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16779 postinstall_cmds='base_file=`basename \${file}`~
16780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16781 dldir=$destdir/`dirname \$dlpath`~
16782 test -d \$dldir || mkdir -p \$dldir~
16783 $install_prog $dir/$dlname \$dldir/$dlname'
16784 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16785 dlpath=$dir/\$dldll~
16786 $RM \$dlpath'
16787 shlibpath_overrides_runpath=yes
16788 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016789 ;;
16790
16791 *)
cristyda16f162011-02-19 23:52:17 +000016792 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016793 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016794 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016795 ;;
16796 esac
cristy73bd4a52010-10-05 11:24:23 +000016797 # FIXME: first we should search . and the directory the executable is in
16798 shlibpath_var=PATH
16799 ;;
16800
16801darwin* | rhapsody*)
16802 dynamic_linker="$host_os dyld"
16803 version_type=darwin
16804 need_lib_prefix=no
16805 need_version=no
16806 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16807 soname_spec='${libname}${release}${major}$shared_ext'
16808 shlibpath_overrides_runpath=yes
16809 shlibpath_var=DYLD_LIBRARY_PATH
16810 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16811
16812 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16813 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16814 ;;
16815
16816dgux*)
cristy99bd5232011-12-07 14:38:20 +000016817 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016818 need_lib_prefix=no
16819 need_version=no
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16821 soname_spec='${libname}${release}${shared_ext}$major'
16822 shlibpath_var=LD_LIBRARY_PATH
16823 ;;
16824
cristy73bd4a52010-10-05 11:24:23 +000016825freebsd* | dragonfly*)
16826 # DragonFly does not have aout. When/if they implement a new
16827 # versioning mechanism, adjust this.
16828 if test -x /usr/bin/objformat; then
16829 objformat=`/usr/bin/objformat`
16830 else
16831 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016832 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016833 *) objformat=elf ;;
16834 esac
16835 fi
16836 version_type=freebsd-$objformat
16837 case $version_type in
16838 freebsd-elf*)
16839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16840 need_version=no
16841 need_lib_prefix=no
16842 ;;
16843 freebsd-*)
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16845 need_version=yes
16846 ;;
16847 esac
16848 shlibpath_var=LD_LIBRARY_PATH
16849 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016850 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016851 shlibpath_overrides_runpath=yes
16852 ;;
16853 freebsd3.[01]* | freebsdelf3.[01]*)
16854 shlibpath_overrides_runpath=yes
16855 hardcode_into_libs=yes
16856 ;;
16857 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16858 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16859 shlibpath_overrides_runpath=no
16860 hardcode_into_libs=yes
16861 ;;
16862 *) # from 4.6 on, and DragonFly
16863 shlibpath_overrides_runpath=yes
16864 hardcode_into_libs=yes
16865 ;;
16866 esac
16867 ;;
16868
16869gnu*)
cristy99bd5232011-12-07 14:38:20 +000016870 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016871 need_lib_prefix=no
16872 need_version=no
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16874 soname_spec='${libname}${release}${shared_ext}$major'
16875 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016876 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016877 hardcode_into_libs=yes
16878 ;;
16879
cristy0c60a692010-11-04 01:09:47 +000016880haiku*)
cristy99bd5232011-12-07 14:38:20 +000016881 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016882 need_lib_prefix=no
16883 need_version=no
16884 dynamic_linker="$host_os runtime_loader"
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16886 soname_spec='${libname}${release}${shared_ext}$major'
16887 shlibpath_var=LIBRARY_PATH
16888 shlibpath_overrides_runpath=yes
16889 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16890 hardcode_into_libs=yes
16891 ;;
16892
cristy73bd4a52010-10-05 11:24:23 +000016893hpux9* | hpux10* | hpux11*)
16894 # Give a soname corresponding to the major version so that dld.sl refuses to
16895 # link against other versions.
16896 version_type=sunos
16897 need_lib_prefix=no
16898 need_version=no
16899 case $host_cpu in
16900 ia64*)
16901 shrext_cmds='.so'
16902 hardcode_into_libs=yes
16903 dynamic_linker="$host_os dld.so"
16904 shlibpath_var=LD_LIBRARY_PATH
16905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16907 soname_spec='${libname}${release}${shared_ext}$major'
16908 if test "X$HPUX_IA64_MODE" = X32; then
16909 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16910 else
16911 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16912 fi
16913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16914 ;;
16915 hppa*64*)
16916 shrext_cmds='.sl'
16917 hardcode_into_libs=yes
16918 dynamic_linker="$host_os dld.sl"
16919 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16922 soname_spec='${libname}${release}${shared_ext}$major'
16923 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16925 ;;
16926 *)
16927 shrext_cmds='.sl'
16928 dynamic_linker="$host_os dld.sl"
16929 shlibpath_var=SHLIB_PATH
16930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932 soname_spec='${libname}${release}${shared_ext}$major'
16933 ;;
16934 esac
cristy0c60a692010-11-04 01:09:47 +000016935 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016936 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016937 # or fails outright, so override atomically:
16938 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016939 ;;
16940
16941interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016942 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016943 need_lib_prefix=no
16944 need_version=no
16945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16946 soname_spec='${libname}${release}${shared_ext}$major'
16947 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16948 shlibpath_var=LD_LIBRARY_PATH
16949 shlibpath_overrides_runpath=no
16950 hardcode_into_libs=yes
16951 ;;
16952
16953irix5* | irix6* | nonstopux*)
16954 case $host_os in
16955 nonstopux*) version_type=nonstopux ;;
16956 *)
16957 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016958 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016959 else
16960 version_type=irix
16961 fi ;;
16962 esac
16963 need_lib_prefix=no
16964 need_version=no
16965 soname_spec='${libname}${release}${shared_ext}$major'
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16967 case $host_os in
16968 irix5* | nonstopux*)
16969 libsuff= shlibsuff=
16970 ;;
16971 *)
16972 case $LD in # libtool.m4 will add one of these switches to LD
16973 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16974 libsuff= shlibsuff= libmagic=32-bit;;
16975 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16976 libsuff=32 shlibsuff=N32 libmagic=N32;;
16977 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16978 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16979 *) libsuff= shlibsuff= libmagic=never-match;;
16980 esac
16981 ;;
16982 esac
16983 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16984 shlibpath_overrides_runpath=no
16985 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16986 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16987 hardcode_into_libs=yes
16988 ;;
16989
16990# No shared lib support for Linux oldld, aout, or coff.
16991linux*oldld* | linux*aout* | linux*coff*)
16992 dynamic_linker=no
16993 ;;
16994
cristy99bd5232011-12-07 14:38:20 +000016995# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016996linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016997 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016998 need_lib_prefix=no
16999 need_version=no
17000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17001 soname_spec='${libname}${release}${shared_ext}$major'
17002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17003 shlibpath_var=LD_LIBRARY_PATH
17004 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017005
cristy73bd4a52010-10-05 11:24:23 +000017006 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017007 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017008 $as_echo_n "(cached) " >&6
17009else
17010 lt_cv_shlibpath_overrides_runpath=no
17011 save_LDFLAGS=$LDFLAGS
17012 save_libdir=$libdir
17013 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17014 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017016/* end confdefs.h. */
17017
17018int
17019main ()
17020{
17021
17022 ;
17023 return 0;
17024}
17025_ACEOF
17026if ac_fn_c_try_link "$LINENO"; then :
17027 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017028 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017029fi
17030fi
17031rm -f core conftest.err conftest.$ac_objext \
17032 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017033 LDFLAGS=$save_LDFLAGS
17034 libdir=$save_libdir
17035
17036fi
17037
17038 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017039
17040 # This implies no fast_install, which is unacceptable.
17041 # Some rework will be needed to allow for fast_install
17042 # before this can be enabled.
17043 hardcode_into_libs=yes
17044
17045 # Add ABI-specific directories to the system library path.
17046 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17047
17048 # Append ld.so.conf contents to the search path
17049 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017050 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 +000017051 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017052
cristy73bd4a52010-10-05 11:24:23 +000017053 fi
17054
17055 # We used to test for /lib/ld.so.1 and disable shared libraries on
17056 # powerpc, because MkLinux only supported shared libraries with the
17057 # GNU dynamic linker. Since this was broken with cross compilers,
17058 # most powerpc-linux boxes support dynamic linking these days and
17059 # people can always --disable-shared, the test was removed, and we
17060 # assume the GNU/Linux dynamic linker is in use.
17061 dynamic_linker='GNU/Linux ld.so'
17062 ;;
17063
17064netbsd*)
17065 version_type=sunos
17066 need_lib_prefix=no
17067 need_version=no
17068 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17071 dynamic_linker='NetBSD (a.out) ld.so'
17072 else
17073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17074 soname_spec='${libname}${release}${shared_ext}$major'
17075 dynamic_linker='NetBSD ld.elf_so'
17076 fi
17077 shlibpath_var=LD_LIBRARY_PATH
17078 shlibpath_overrides_runpath=yes
17079 hardcode_into_libs=yes
17080 ;;
17081
17082newsos6)
cristy99bd5232011-12-07 14:38:20 +000017083 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17085 shlibpath_var=LD_LIBRARY_PATH
17086 shlibpath_overrides_runpath=yes
17087 ;;
17088
17089*nto* | *qnx*)
17090 version_type=qnx
17091 need_lib_prefix=no
17092 need_version=no
17093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17094 soname_spec='${libname}${release}${shared_ext}$major'
17095 shlibpath_var=LD_LIBRARY_PATH
17096 shlibpath_overrides_runpath=no
17097 hardcode_into_libs=yes
17098 dynamic_linker='ldqnx.so'
17099 ;;
17100
17101openbsd*)
17102 version_type=sunos
17103 sys_lib_dlsearch_path_spec="/usr/lib"
17104 need_lib_prefix=no
17105 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17106 case $host_os in
17107 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17108 *) need_version=no ;;
17109 esac
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17112 shlibpath_var=LD_LIBRARY_PATH
17113 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17114 case $host_os in
17115 openbsd2.[89] | openbsd2.[89].*)
17116 shlibpath_overrides_runpath=no
17117 ;;
17118 *)
17119 shlibpath_overrides_runpath=yes
17120 ;;
17121 esac
17122 else
17123 shlibpath_overrides_runpath=yes
17124 fi
17125 ;;
17126
17127os2*)
17128 libname_spec='$name'
17129 shrext_cmds=".dll"
17130 need_lib_prefix=no
17131 library_names_spec='$libname${shared_ext} $libname.a'
17132 dynamic_linker='OS/2 ld.exe'
17133 shlibpath_var=LIBPATH
17134 ;;
17135
17136osf3* | osf4* | osf5*)
17137 version_type=osf
17138 need_lib_prefix=no
17139 need_version=no
17140 soname_spec='${libname}${release}${shared_ext}$major'
17141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17142 shlibpath_var=LD_LIBRARY_PATH
17143 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17144 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17145 ;;
17146
17147rdos*)
17148 dynamic_linker=no
17149 ;;
17150
17151solaris*)
cristy99bd5232011-12-07 14:38:20 +000017152 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017153 need_lib_prefix=no
17154 need_version=no
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156 soname_spec='${libname}${release}${shared_ext}$major'
17157 shlibpath_var=LD_LIBRARY_PATH
17158 shlibpath_overrides_runpath=yes
17159 hardcode_into_libs=yes
17160 # ldd complains unless libraries are executable
17161 postinstall_cmds='chmod +x $lib'
17162 ;;
17163
17164sunos4*)
17165 version_type=sunos
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17167 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17168 shlibpath_var=LD_LIBRARY_PATH
17169 shlibpath_overrides_runpath=yes
17170 if test "$with_gnu_ld" = yes; then
17171 need_lib_prefix=no
17172 fi
17173 need_version=yes
17174 ;;
17175
17176sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017177 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17179 soname_spec='${libname}${release}${shared_ext}$major'
17180 shlibpath_var=LD_LIBRARY_PATH
17181 case $host_vendor in
17182 sni)
17183 shlibpath_overrides_runpath=no
17184 need_lib_prefix=no
17185 runpath_var=LD_RUN_PATH
17186 ;;
17187 siemens)
17188 need_lib_prefix=no
17189 ;;
17190 motorola)
17191 need_lib_prefix=no
17192 need_version=no
17193 shlibpath_overrides_runpath=no
17194 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17195 ;;
17196 esac
17197 ;;
17198
17199sysv4*MP*)
17200 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017201 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017202 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17203 soname_spec='$libname${shared_ext}.$major'
17204 shlibpath_var=LD_LIBRARY_PATH
17205 fi
17206 ;;
17207
17208sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17209 version_type=freebsd-elf
17210 need_lib_prefix=no
17211 need_version=no
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 shlibpath_var=LD_LIBRARY_PATH
17215 shlibpath_overrides_runpath=yes
17216 hardcode_into_libs=yes
17217 if test "$with_gnu_ld" = yes; then
17218 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17219 else
17220 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17221 case $host_os in
17222 sco3.2v5*)
17223 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17224 ;;
17225 esac
17226 fi
17227 sys_lib_dlsearch_path_spec='/usr/lib'
17228 ;;
17229
17230tpf*)
17231 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017232 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017233 need_lib_prefix=no
17234 need_version=no
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236 shlibpath_var=LD_LIBRARY_PATH
17237 shlibpath_overrides_runpath=no
17238 hardcode_into_libs=yes
17239 ;;
17240
17241uts4*)
cristy99bd5232011-12-07 14:38:20 +000017242 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17244 soname_spec='${libname}${release}${shared_ext}$major'
17245 shlibpath_var=LD_LIBRARY_PATH
17246 ;;
17247
17248*)
17249 dynamic_linker=no
17250 ;;
17251esac
17252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17253$as_echo "$dynamic_linker" >&6; }
17254test "$dynamic_linker" = no && can_build_shared=no
17255
17256variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17257if test "$GCC" = yes; then
17258 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17259fi
17260
17261if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17262 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17263fi
17264if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17265 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17266fi
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
cristy0c60a692010-11-04 01:09:47 +000017354
17355
17356
17357
17358
cristy73bd4a52010-10-05 11:24:23 +000017359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17360$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17361hardcode_action=
17362if test -n "$hardcode_libdir_flag_spec" ||
17363 test -n "$runpath_var" ||
17364 test "X$hardcode_automatic" = "Xyes" ; then
17365
17366 # We can hardcode non-existent directories.
17367 if test "$hardcode_direct" != no &&
17368 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17369 # have to relink, otherwise we might link with an installed library
17370 # when we should be linking with a yet-to-be-installed one
17371 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17372 test "$hardcode_minus_L" != no; then
17373 # Linking always hardcodes the temporary library directory.
17374 hardcode_action=relink
17375 else
17376 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17377 hardcode_action=immediate
17378 fi
17379else
17380 # We cannot hardcode anything, or else we can only hardcode existing
17381 # directories.
17382 hardcode_action=unsupported
17383fi
17384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17385$as_echo "$hardcode_action" >&6; }
17386
17387if test "$hardcode_action" = relink ||
17388 test "$inherit_rpath" = yes; then
17389 # Fast installation is not supported
17390 enable_fast_install=no
17391elif test "$shlibpath_overrides_runpath" = yes ||
17392 test "$enable_shared" = no; then
17393 # Fast installation is not necessary
17394 enable_fast_install=needless
17395fi
17396
17397
17398
17399
17400
17401
17402 if test "x$enable_dlopen" != xyes; then
17403 enable_dlopen=unknown
17404 enable_dlopen_self=unknown
17405 enable_dlopen_self_static=unknown
17406else
17407 lt_cv_dlopen=no
17408 lt_cv_dlopen_libs=
17409
17410 case $host_os in
17411 beos*)
17412 lt_cv_dlopen="load_add_on"
17413 lt_cv_dlopen_libs=
17414 lt_cv_dlopen_self=yes
17415 ;;
17416
17417 mingw* | pw32* | cegcc*)
17418 lt_cv_dlopen="LoadLibrary"
17419 lt_cv_dlopen_libs=
17420 ;;
17421
17422 cygwin*)
17423 lt_cv_dlopen="dlopen"
17424 lt_cv_dlopen_libs=
17425 ;;
17426
17427 darwin*)
17428 # if libdl is installed we need to link against it
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17430$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017431if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017432 $as_echo_n "(cached) " >&6
17433else
17434 ac_check_lib_save_LIBS=$LIBS
17435LIBS="-ldl $LIBS"
17436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437/* end confdefs.h. */
17438
17439/* Override any GCC internal prototype to avoid an error.
17440 Use char because int might match the return type of a GCC
17441 builtin and then its argument prototype would still apply. */
17442#ifdef __cplusplus
17443extern "C"
17444#endif
17445char dlopen ();
17446int
17447main ()
17448{
17449return dlopen ();
17450 ;
17451 return 0;
17452}
17453_ACEOF
17454if ac_fn_c_try_link "$LINENO"; then :
17455 ac_cv_lib_dl_dlopen=yes
17456else
17457 ac_cv_lib_dl_dlopen=no
17458fi
17459rm -f core conftest.err conftest.$ac_objext \
17460 conftest$ac_exeext conftest.$ac_ext
17461LIBS=$ac_check_lib_save_LIBS
17462fi
17463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17464$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017465if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017466 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17467else
17468
17469 lt_cv_dlopen="dyld"
17470 lt_cv_dlopen_libs=
17471 lt_cv_dlopen_self=yes
17472
17473fi
17474
17475 ;;
17476
17477 *)
17478 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017479if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017480 lt_cv_dlopen="shl_load"
17481else
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17483$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017484if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017485 $as_echo_n "(cached) " >&6
17486else
17487 ac_check_lib_save_LIBS=$LIBS
17488LIBS="-ldld $LIBS"
17489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17490/* end confdefs.h. */
17491
17492/* Override any GCC internal prototype to avoid an error.
17493 Use char because int might match the return type of a GCC
17494 builtin and then its argument prototype would still apply. */
17495#ifdef __cplusplus
17496extern "C"
17497#endif
17498char shl_load ();
17499int
17500main ()
17501{
17502return shl_load ();
17503 ;
17504 return 0;
17505}
17506_ACEOF
17507if ac_fn_c_try_link "$LINENO"; then :
17508 ac_cv_lib_dld_shl_load=yes
17509else
17510 ac_cv_lib_dld_shl_load=no
17511fi
17512rm -f core conftest.err conftest.$ac_objext \
17513 conftest$ac_exeext conftest.$ac_ext
17514LIBS=$ac_check_lib_save_LIBS
17515fi
17516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17517$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017518if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017519 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17520else
17521 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017522if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017523 lt_cv_dlopen="dlopen"
17524else
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17526$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017527if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017528 $as_echo_n "(cached) " >&6
17529else
17530 ac_check_lib_save_LIBS=$LIBS
17531LIBS="-ldl $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 dlopen ();
17542int
17543main ()
17544{
17545return dlopen ();
17546 ;
17547 return 0;
17548}
17549_ACEOF
17550if ac_fn_c_try_link "$LINENO"; then :
17551 ac_cv_lib_dl_dlopen=yes
17552else
17553 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
17560$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017561if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017562 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17563else
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17565$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017566if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017567 $as_echo_n "(cached) " >&6
17568else
17569 ac_check_lib_save_LIBS=$LIBS
17570LIBS="-lsvld $LIBS"
17571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572/* end confdefs.h. */
17573
17574/* Override any GCC internal prototype to avoid an error.
17575 Use char because int might match the return type of a GCC
17576 builtin and then its argument prototype would still apply. */
17577#ifdef __cplusplus
17578extern "C"
17579#endif
17580char dlopen ();
17581int
17582main ()
17583{
17584return dlopen ();
17585 ;
17586 return 0;
17587}
17588_ACEOF
17589if ac_fn_c_try_link "$LINENO"; then :
17590 ac_cv_lib_svld_dlopen=yes
17591else
17592 ac_cv_lib_svld_dlopen=no
17593fi
17594rm -f core conftest.err conftest.$ac_objext \
17595 conftest$ac_exeext conftest.$ac_ext
17596LIBS=$ac_check_lib_save_LIBS
17597fi
17598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17599$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017600if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017601 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17602else
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17604$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017605if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017606 $as_echo_n "(cached) " >&6
17607else
17608 ac_check_lib_save_LIBS=$LIBS
17609LIBS="-ldld $LIBS"
17610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17611/* end confdefs.h. */
17612
17613/* Override any GCC internal prototype to avoid an error.
17614 Use char because int might match the return type of a GCC
17615 builtin and then its argument prototype would still apply. */
17616#ifdef __cplusplus
17617extern "C"
17618#endif
17619char dld_link ();
17620int
17621main ()
17622{
17623return dld_link ();
17624 ;
17625 return 0;
17626}
17627_ACEOF
17628if ac_fn_c_try_link "$LINENO"; then :
17629 ac_cv_lib_dld_dld_link=yes
17630else
17631 ac_cv_lib_dld_dld_link=no
17632fi
17633rm -f core conftest.err conftest.$ac_objext \
17634 conftest$ac_exeext conftest.$ac_ext
17635LIBS=$ac_check_lib_save_LIBS
17636fi
17637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17638$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017639if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017640 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17641fi
17642
17643
17644fi
17645
17646
17647fi
17648
17649
17650fi
17651
17652
17653fi
17654
17655
17656fi
17657
17658 ;;
17659 esac
17660
17661 if test "x$lt_cv_dlopen" != xno; then
17662 enable_dlopen=yes
17663 else
17664 enable_dlopen=no
17665 fi
17666
17667 case $lt_cv_dlopen in
17668 dlopen)
17669 save_CPPFLAGS="$CPPFLAGS"
17670 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17671
17672 save_LDFLAGS="$LDFLAGS"
17673 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17674
17675 save_LIBS="$LIBS"
17676 LIBS="$lt_cv_dlopen_libs $LIBS"
17677
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17679$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017680if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017681 $as_echo_n "(cached) " >&6
17682else
17683 if test "$cross_compiling" = yes; then :
17684 lt_cv_dlopen_self=cross
17685else
17686 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17687 lt_status=$lt_dlunknown
17688 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017689#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017690#include "confdefs.h"
17691
17692#if HAVE_DLFCN_H
17693#include <dlfcn.h>
17694#endif
17695
17696#include <stdio.h>
17697
17698#ifdef RTLD_GLOBAL
17699# define LT_DLGLOBAL RTLD_GLOBAL
17700#else
17701# ifdef DL_GLOBAL
17702# define LT_DLGLOBAL DL_GLOBAL
17703# else
17704# define LT_DLGLOBAL 0
17705# endif
17706#endif
17707
17708/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17709 find out it does not work in some platform. */
17710#ifndef LT_DLLAZY_OR_NOW
17711# ifdef RTLD_LAZY
17712# define LT_DLLAZY_OR_NOW RTLD_LAZY
17713# else
17714# ifdef DL_LAZY
17715# define LT_DLLAZY_OR_NOW DL_LAZY
17716# else
17717# ifdef RTLD_NOW
17718# define LT_DLLAZY_OR_NOW RTLD_NOW
17719# else
17720# ifdef DL_NOW
17721# define LT_DLLAZY_OR_NOW DL_NOW
17722# else
17723# define LT_DLLAZY_OR_NOW 0
17724# endif
17725# endif
17726# endif
17727# endif
17728#endif
17729
cristy0c60a692010-11-04 01:09:47 +000017730/* When -fvisbility=hidden is used, assume the code has been annotated
17731 correspondingly for the symbols needed. */
17732#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017733int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017734#endif
17735
cristyda16f162011-02-19 23:52:17 +000017736int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017737int main ()
17738{
17739 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17740 int status = $lt_dlunknown;
17741
17742 if (self)
17743 {
17744 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017745 else
17746 {
17747 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17748 else puts (dlerror ());
17749 }
cristy73bd4a52010-10-05 11:24:23 +000017750 /* dlclose (self); */
17751 }
17752 else
17753 puts (dlerror ());
17754
17755 return status;
17756}
17757_LT_EOF
17758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17759 (eval $ac_link) 2>&5
17760 ac_status=$?
17761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17762 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17763 (./conftest; exit; ) >&5 2>/dev/null
17764 lt_status=$?
17765 case x$lt_status in
17766 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17767 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17768 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17769 esac
17770 else :
17771 # compilation failed
17772 lt_cv_dlopen_self=no
17773 fi
17774fi
17775rm -fr conftest*
17776
17777
17778fi
17779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17780$as_echo "$lt_cv_dlopen_self" >&6; }
17781
17782 if test "x$lt_cv_dlopen_self" = xyes; then
17783 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17785$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017786if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017787 $as_echo_n "(cached) " >&6
17788else
17789 if test "$cross_compiling" = yes; then :
17790 lt_cv_dlopen_self_static=cross
17791else
17792 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17793 lt_status=$lt_dlunknown
17794 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017795#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017796#include "confdefs.h"
17797
17798#if HAVE_DLFCN_H
17799#include <dlfcn.h>
17800#endif
17801
17802#include <stdio.h>
17803
17804#ifdef RTLD_GLOBAL
17805# define LT_DLGLOBAL RTLD_GLOBAL
17806#else
17807# ifdef DL_GLOBAL
17808# define LT_DLGLOBAL DL_GLOBAL
17809# else
17810# define LT_DLGLOBAL 0
17811# endif
17812#endif
17813
17814/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17815 find out it does not work in some platform. */
17816#ifndef LT_DLLAZY_OR_NOW
17817# ifdef RTLD_LAZY
17818# define LT_DLLAZY_OR_NOW RTLD_LAZY
17819# else
17820# ifdef DL_LAZY
17821# define LT_DLLAZY_OR_NOW DL_LAZY
17822# else
17823# ifdef RTLD_NOW
17824# define LT_DLLAZY_OR_NOW RTLD_NOW
17825# else
17826# ifdef DL_NOW
17827# define LT_DLLAZY_OR_NOW DL_NOW
17828# else
17829# define LT_DLLAZY_OR_NOW 0
17830# endif
17831# endif
17832# endif
17833# endif
17834#endif
17835
cristy0c60a692010-11-04 01:09:47 +000017836/* When -fvisbility=hidden is used, assume the code has been annotated
17837 correspondingly for the symbols needed. */
17838#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017839int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017840#endif
17841
cristyda16f162011-02-19 23:52:17 +000017842int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017843int main ()
17844{
17845 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17846 int status = $lt_dlunknown;
17847
17848 if (self)
17849 {
17850 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017851 else
17852 {
17853 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17854 else puts (dlerror ());
17855 }
cristy73bd4a52010-10-05 11:24:23 +000017856 /* dlclose (self); */
17857 }
17858 else
17859 puts (dlerror ());
17860
17861 return status;
17862}
17863_LT_EOF
17864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17865 (eval $ac_link) 2>&5
17866 ac_status=$?
17867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17868 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17869 (./conftest; exit; ) >&5 2>/dev/null
17870 lt_status=$?
17871 case x$lt_status in
17872 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17873 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17874 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17875 esac
17876 else :
17877 # compilation failed
17878 lt_cv_dlopen_self_static=no
17879 fi
17880fi
17881rm -fr conftest*
17882
17883
17884fi
17885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17886$as_echo "$lt_cv_dlopen_self_static" >&6; }
17887 fi
17888
17889 CPPFLAGS="$save_CPPFLAGS"
17890 LDFLAGS="$save_LDFLAGS"
17891 LIBS="$save_LIBS"
17892 ;;
17893 esac
17894
17895 case $lt_cv_dlopen_self in
17896 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17897 *) enable_dlopen_self=unknown ;;
17898 esac
17899
17900 case $lt_cv_dlopen_self_static in
17901 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17902 *) enable_dlopen_self_static=unknown ;;
17903 esac
17904fi
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922striplib=
17923old_striplib=
17924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17925$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17926if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17927 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17928 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17930$as_echo "yes" >&6; }
17931else
17932# FIXME - insert some real tests, host_os isn't really good enough
17933 case $host_os in
17934 darwin*)
17935 if test -n "$STRIP" ; then
17936 striplib="$STRIP -x"
17937 old_striplib="$STRIP -S"
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17939$as_echo "yes" >&6; }
17940 else
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17942$as_echo "no" >&6; }
17943 fi
17944 ;;
17945 *)
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17947$as_echo "no" >&6; }
17948 ;;
17949 esac
17950fi
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963 # Report which library types will actually be built
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17965$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17967$as_echo "$can_build_shared" >&6; }
17968
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17970$as_echo_n "checking whether to build shared libraries... " >&6; }
17971 test "$can_build_shared" = "no" && enable_shared=no
17972
17973 # On AIX, shared libraries and static libraries use the same namespace, and
17974 # are all built from PIC.
17975 case $host_os in
17976 aix3*)
17977 test "$enable_shared" = yes && enable_static=no
17978 if test -n "$RANLIB"; then
17979 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17980 postinstall_cmds='$RANLIB $lib'
17981 fi
17982 ;;
17983
17984 aix[4-9]*)
17985 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17986 test "$enable_shared" = yes && enable_static=no
17987 fi
17988 ;;
17989 esac
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17991$as_echo "$enable_shared" >&6; }
17992
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17994$as_echo_n "checking whether to build static libraries... " >&6; }
17995 # Make sure either enable_shared or enable_static is yes.
17996 test "$enable_shared" = yes || enable_static=yes
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17998$as_echo "$enable_static" >&6; }
17999
18000
18001
18002
18003fi
18004ac_ext=c
18005ac_cpp='$CPP $CPPFLAGS'
18006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18008ac_compiler_gnu=$ac_cv_c_compiler_gnu
18009
18010CC="$lt_save_CC"
18011
cristy0c60a692010-11-04 01:09:47 +000018012 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18013 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18014 (test "X$CXX" != "Xg++"))) ; then
18015 ac_ext=cpp
18016ac_cpp='$CXXCPP $CPPFLAGS'
18017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18021$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18022if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018023 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018024 $as_echo_n "(cached) " >&6
18025else
18026 # Double quotes because CXXCPP needs to be expanded
18027 for CXXCPP in "$CXX -E" "/lib/cpp"
18028 do
18029 ac_preproc_ok=false
18030for ac_cxx_preproc_warn_flag in '' yes
18031do
18032 # Use a header file that comes with gcc, so configuring glibc
18033 # with a fresh cross-compiler works.
18034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18035 # <limits.h> exists even on freestanding compilers.
18036 # On the NeXT, cc -E runs the code through the compiler's parser,
18037 # not just through cpp. "Syntax error" is here to catch this case.
18038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039/* end confdefs.h. */
18040#ifdef __STDC__
18041# include <limits.h>
18042#else
18043# include <assert.h>
18044#endif
18045 Syntax error
18046_ACEOF
18047if ac_fn_cxx_try_cpp "$LINENO"; then :
18048
18049else
18050 # Broken: fails on valid input.
18051continue
18052fi
cristyda16f162011-02-19 23:52:17 +000018053rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018054
18055 # OK, works on sane cases. Now check whether nonexistent headers
18056 # can be detected and how.
18057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058/* end confdefs.h. */
18059#include <ac_nonexistent.h>
18060_ACEOF
18061if ac_fn_cxx_try_cpp "$LINENO"; then :
18062 # Broken: success on invalid input.
18063continue
18064else
18065 # Passes both tests.
18066ac_preproc_ok=:
18067break
18068fi
cristyda16f162011-02-19 23:52:17 +000018069rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018070
18071done
18072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018073rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018074if $ac_preproc_ok; then :
18075 break
18076fi
18077
18078 done
18079 ac_cv_prog_CXXCPP=$CXXCPP
18080
18081fi
18082 CXXCPP=$ac_cv_prog_CXXCPP
18083else
18084 ac_cv_prog_CXXCPP=$CXXCPP
18085fi
18086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18087$as_echo "$CXXCPP" >&6; }
18088ac_preproc_ok=false
18089for ac_cxx_preproc_warn_flag in '' yes
18090do
18091 # Use a header file that comes with gcc, so configuring glibc
18092 # with a fresh cross-compiler works.
18093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18094 # <limits.h> exists even on freestanding compilers.
18095 # On the NeXT, cc -E runs the code through the compiler's parser,
18096 # not just through cpp. "Syntax error" is here to catch this case.
18097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18098/* end confdefs.h. */
18099#ifdef __STDC__
18100# include <limits.h>
18101#else
18102# include <assert.h>
18103#endif
18104 Syntax error
18105_ACEOF
18106if ac_fn_cxx_try_cpp "$LINENO"; then :
18107
18108else
18109 # Broken: fails on valid input.
18110continue
18111fi
cristyda16f162011-02-19 23:52:17 +000018112rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018113
18114 # OK, works on sane cases. Now check whether nonexistent headers
18115 # can be detected and how.
18116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18117/* end confdefs.h. */
18118#include <ac_nonexistent.h>
18119_ACEOF
18120if ac_fn_cxx_try_cpp "$LINENO"; then :
18121 # Broken: success on invalid input.
18122continue
18123else
18124 # Passes both tests.
18125ac_preproc_ok=:
18126break
18127fi
cristyda16f162011-02-19 23:52:17 +000018128rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018129
18130done
18131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018132rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018133if $ac_preproc_ok; then :
18134
18135else
18136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18138as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18139See \`config.log' for more details" "$LINENO" 5; }
18140fi
18141
18142ac_ext=c
18143ac_cpp='$CPP $CPPFLAGS'
18144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18146ac_compiler_gnu=$ac_cv_c_compiler_gnu
18147
18148else
18149 _lt_caught_CXX_error=yes
18150fi
cristy73bd4a52010-10-05 11:24:23 +000018151
18152ac_ext=cpp
18153ac_cpp='$CXXCPP $CPPFLAGS'
18154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18157
18158archive_cmds_need_lc_CXX=no
18159allow_undefined_flag_CXX=
18160always_export_symbols_CXX=no
18161archive_expsym_cmds_CXX=
18162compiler_needs_object_CXX=no
18163export_dynamic_flag_spec_CXX=
18164hardcode_direct_CXX=no
18165hardcode_direct_absolute_CXX=no
18166hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018167hardcode_libdir_separator_CXX=
18168hardcode_minus_L_CXX=no
18169hardcode_shlibpath_var_CXX=unsupported
18170hardcode_automatic_CXX=no
18171inherit_rpath_CXX=no
18172module_cmds_CXX=
18173module_expsym_cmds_CXX=
18174link_all_deplibs_CXX=unknown
18175old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018176reload_flag_CXX=$reload_flag
18177reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018178no_undefined_flag_CXX=
18179whole_archive_flag_spec_CXX=
18180enable_shared_with_static_runtimes_CXX=no
18181
18182# Source file extension for C++ test sources.
18183ac_ext=cpp
18184
18185# Object file extension for compiled C++ test sources.
18186objext=o
18187objext_CXX=$objext
18188
18189# No sense in running all these tests if we already determined that
18190# the CXX compiler isn't working. Some variables (like enable_shared)
18191# are currently assumed to apply to all compilers on this platform,
18192# and will be corrupted by setting them based on a non-working compiler.
18193if test "$_lt_caught_CXX_error" != yes; then
18194 # Code to be used in simple compile tests
18195 lt_simple_compile_test_code="int some_variable = 0;"
18196
18197 # Code to be used in simple link tests
18198 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18199
18200 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18201
18202
18203
18204
18205
18206
18207# If no C compiler was specified, use CC.
18208LTCC=${LTCC-"$CC"}
18209
18210# If no C compiler flags were specified, use CFLAGS.
18211LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18212
18213# Allow CC to be a program name with arguments.
18214compiler=$CC
18215
18216
18217 # save warnings/boilerplate of simple test code
18218 ac_outfile=conftest.$ac_objext
18219echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18220eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18221_lt_compiler_boilerplate=`cat conftest.err`
18222$RM conftest*
18223
18224 ac_outfile=conftest.$ac_objext
18225echo "$lt_simple_link_test_code" >conftest.$ac_ext
18226eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18227_lt_linker_boilerplate=`cat conftest.err`
18228$RM -r conftest*
18229
18230
18231 # Allow CC to be a program name with arguments.
18232 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018233 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018234 lt_save_LD=$LD
18235 lt_save_GCC=$GCC
18236 GCC=$GXX
18237 lt_save_with_gnu_ld=$with_gnu_ld
18238 lt_save_path_LD=$lt_cv_path_LD
18239 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18240 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18241 else
18242 $as_unset lt_cv_prog_gnu_ld
18243 fi
18244 if test -n "${lt_cv_path_LDCXX+set}"; then
18245 lt_cv_path_LD=$lt_cv_path_LDCXX
18246 else
18247 $as_unset lt_cv_path_LD
18248 fi
18249 test -z "${LDCXX+set}" || LD=$LDCXX
18250 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018251 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018252 compiler=$CC
18253 compiler_CXX=$CC
18254 for cc_temp in $compiler""; do
18255 case $cc_temp in
18256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18258 \-*) ;;
18259 *) break;;
18260 esac
18261done
cristy0c60a692010-11-04 01:09:47 +000018262cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018263
18264
18265 if test -n "$compiler"; then
18266 # We don't want -fno-exception when compiling C++ code, so set the
18267 # no_builtin_flag separately
18268 if test "$GXX" = yes; then
18269 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18270 else
18271 lt_prog_compiler_no_builtin_flag_CXX=
18272 fi
18273
18274 if test "$GXX" = yes; then
18275 # Set up default GNU C++ configuration
18276
18277
18278
18279# Check whether --with-gnu-ld was given.
18280if test "${with_gnu_ld+set}" = set; then :
18281 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18282else
18283 with_gnu_ld=no
18284fi
18285
18286ac_prog=ld
18287if test "$GCC" = yes; then
18288 # Check if gcc -print-prog-name=ld gives a path.
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18290$as_echo_n "checking for ld used by $CC... " >&6; }
18291 case $host in
18292 *-*-mingw*)
18293 # gcc leaves a trailing carriage return which upsets mingw
18294 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18295 *)
18296 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18297 esac
18298 case $ac_prog in
18299 # Accept absolute paths.
18300 [\\/]* | ?:[\\/]*)
18301 re_direlt='/[^/][^/]*/\.\./'
18302 # Canonicalize the pathname of ld
18303 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18304 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18305 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18306 done
18307 test -z "$LD" && LD="$ac_prog"
18308 ;;
18309 "")
18310 # If it fails, then pretend we aren't using GCC.
18311 ac_prog=ld
18312 ;;
18313 *)
18314 # If it is relative, then search for the first ld in PATH.
18315 with_gnu_ld=unknown
18316 ;;
18317 esac
18318elif test "$with_gnu_ld" = yes; then
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18320$as_echo_n "checking for GNU ld... " >&6; }
18321else
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18323$as_echo_n "checking for non-GNU ld... " >&6; }
18324fi
cristyda16f162011-02-19 23:52:17 +000018325if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018326 $as_echo_n "(cached) " >&6
18327else
18328 if test -z "$LD"; then
18329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18330 for ac_dir in $PATH; do
18331 IFS="$lt_save_ifs"
18332 test -z "$ac_dir" && ac_dir=.
18333 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18334 lt_cv_path_LD="$ac_dir/$ac_prog"
18335 # Check to see if the program is GNU ld. I'd rather use --version,
18336 # but apparently some variants of GNU ld only accept -v.
18337 # Break only if it was the GNU/non-GNU ld that we prefer.
18338 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18339 *GNU* | *'with BFD'*)
18340 test "$with_gnu_ld" != no && break
18341 ;;
18342 *)
18343 test "$with_gnu_ld" != yes && break
18344 ;;
18345 esac
18346 fi
18347 done
18348 IFS="$lt_save_ifs"
18349else
18350 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18351fi
18352fi
18353
18354LD="$lt_cv_path_LD"
18355if test -n "$LD"; then
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18357$as_echo "$LD" >&6; }
18358else
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18360$as_echo "no" >&6; }
18361fi
cristy98dddb52010-11-04 00:30:15 +000018362test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18364$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018365if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018366 $as_echo_n "(cached) " >&6
18367else
18368 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18369case `$LD -v 2>&1 </dev/null` in
18370*GNU* | *'with BFD'*)
18371 lt_cv_prog_gnu_ld=yes
18372 ;;
18373*)
18374 lt_cv_prog_gnu_ld=no
18375 ;;
18376esac
18377fi
18378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18379$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18380with_gnu_ld=$lt_cv_prog_gnu_ld
18381
18382
18383
18384
18385
18386
18387
18388 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18389 # archiving commands below assume that GNU ld is being used.
18390 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018391 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18392 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 +000018393
18394 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18395 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18396
18397 # If archive_cmds runs LD, not CC, wlarc should be empty
18398 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18399 # investigate it a little bit more. (MM)
18400 wlarc='${wl}'
18401
18402 # ancient GNU ld didn't support --whole-archive et. al.
18403 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18404 $GREP 'no-whole-archive' > /dev/null; then
18405 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18406 else
18407 whole_archive_flag_spec_CXX=
18408 fi
18409 else
18410 with_gnu_ld=no
18411 wlarc=
18412
18413 # A generic and very simple default shared library creation
18414 # command for GNU C++ for the case where it uses the native
18415 # linker, instead of GNU ld. If possible, this setting should
18416 # overridden to take advantage of the native linker features on
18417 # the platform it is being used on.
18418 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18419 fi
18420
18421 # Commands to make compiler produce verbose output that lists
18422 # what "hidden" libraries, object files and flags are used when
18423 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018424 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018425
18426 else
18427 GXX=no
18428 with_gnu_ld=no
18429 wlarc=
18430 fi
18431
18432 # PORTME: fill in a description of your system's C++ link characteristics
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18434$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18435 ld_shlibs_CXX=yes
18436 case $host_os in
18437 aix3*)
18438 # FIXME: insert proper C++ library support
18439 ld_shlibs_CXX=no
18440 ;;
18441 aix[4-9]*)
18442 if test "$host_cpu" = ia64; then
18443 # On IA64, the linker does run time linking by default, so we don't
18444 # have to do anything special.
18445 aix_use_runtimelinking=no
18446 exp_sym_flag='-Bexport'
18447 no_entry_flag=""
18448 else
18449 aix_use_runtimelinking=no
18450
18451 # Test if we are trying to use run time linking or normal
18452 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18453 # need to do runtime linking.
18454 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18455 for ld_flag in $LDFLAGS; do
18456 case $ld_flag in
18457 *-brtl*)
18458 aix_use_runtimelinking=yes
18459 break
18460 ;;
18461 esac
18462 done
18463 ;;
18464 esac
18465
18466 exp_sym_flag='-bexport'
18467 no_entry_flag='-bnoentry'
18468 fi
18469
18470 # When large executables or shared objects are built, AIX ld can
18471 # have problems creating the table of contents. If linking a library
18472 # or program results in "error TOC overflow" add -mminimal-toc to
18473 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18474 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18475
18476 archive_cmds_CXX=''
18477 hardcode_direct_CXX=yes
18478 hardcode_direct_absolute_CXX=yes
18479 hardcode_libdir_separator_CXX=':'
18480 link_all_deplibs_CXX=yes
18481 file_list_spec_CXX='${wl}-f,'
18482
18483 if test "$GXX" = yes; then
18484 case $host_os in aix4.[012]|aix4.[012].*)
18485 # We only want to do this on AIX 4.2 and lower, the check
18486 # below for broken collect2 doesn't work under 4.3+
18487 collect2name=`${CC} -print-prog-name=collect2`
18488 if test -f "$collect2name" &&
18489 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18490 then
18491 # We have reworked collect2
18492 :
18493 else
18494 # We have old collect2
18495 hardcode_direct_CXX=unsupported
18496 # It fails to find uninstalled libraries when the uninstalled
18497 # path is not listed in the libpath. Setting hardcode_minus_L
18498 # to unsupported forces relinking
18499 hardcode_minus_L_CXX=yes
18500 hardcode_libdir_flag_spec_CXX='-L$libdir'
18501 hardcode_libdir_separator_CXX=
18502 fi
18503 esac
18504 shared_flag='-shared'
18505 if test "$aix_use_runtimelinking" = yes; then
18506 shared_flag="$shared_flag "'${wl}-G'
18507 fi
18508 else
18509 # not using gcc
18510 if test "$host_cpu" = ia64; then
18511 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18512 # chokes on -Wl,-G. The following line is correct:
18513 shared_flag='-G'
18514 else
18515 if test "$aix_use_runtimelinking" = yes; then
18516 shared_flag='${wl}-G'
18517 else
18518 shared_flag='${wl}-bM:SRE'
18519 fi
18520 fi
18521 fi
18522
18523 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18524 # It seems that -bexpall does not export symbols beginning with
18525 # underscore (_), so it is better to generate a list of symbols to
18526 # export.
18527 always_export_symbols_CXX=yes
18528 if test "$aix_use_runtimelinking" = yes; then
18529 # Warning - without using the other runtime loading flags (-brtl),
18530 # -berok will link without error, but may produce a broken library.
18531 allow_undefined_flag_CXX='-berok'
18532 # Determine the default libpath from the value encoded in an empty
18533 # executable.
cristyda16f162011-02-19 23:52:17 +000018534 if test "${lt_cv_aix_libpath+set}" = set; then
18535 aix_libpath=$lt_cv_aix_libpath
18536else
18537 if ${lt_cv_aix_libpath__CXX+:} false; then :
18538 $as_echo_n "(cached) " >&6
18539else
18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018541/* end confdefs.h. */
18542
18543int
18544main ()
18545{
18546
18547 ;
18548 return 0;
18549}
18550_ACEOF
18551if ac_fn_cxx_try_link "$LINENO"; then :
18552
cristyda16f162011-02-19 23:52:17 +000018553 lt_aix_libpath_sed='
18554 /Import File Strings/,/^$/ {
18555 /^0/ {
18556 s/^0 *\([^ ]*\) *$/\1/
18557 p
18558 }
18559 }'
18560 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18561 # Check for a 64-bit object if we didn't find anything.
18562 if test -z "$lt_cv_aix_libpath__CXX"; then
18563 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18564 fi
cristy73bd4a52010-10-05 11:24:23 +000018565fi
18566rm -f core conftest.err conftest.$ac_objext \
18567 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018568 if test -z "$lt_cv_aix_libpath__CXX"; then
18569 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18570 fi
18571
18572fi
18573
18574 aix_libpath=$lt_cv_aix_libpath__CXX
18575fi
cristy73bd4a52010-10-05 11:24:23 +000018576
18577 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18578
cristy0c60a692010-11-04 01:09:47 +000018579 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 +000018580 else
18581 if test "$host_cpu" = ia64; then
18582 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18583 allow_undefined_flag_CXX="-z nodefs"
18584 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"
18585 else
18586 # Determine the default libpath from the value encoded in an
18587 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018588 if test "${lt_cv_aix_libpath+set}" = set; then
18589 aix_libpath=$lt_cv_aix_libpath
18590else
18591 if ${lt_cv_aix_libpath__CXX+:} false; then :
18592 $as_echo_n "(cached) " >&6
18593else
18594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018595/* end confdefs.h. */
18596
18597int
18598main ()
18599{
18600
18601 ;
18602 return 0;
18603}
18604_ACEOF
18605if ac_fn_cxx_try_link "$LINENO"; then :
18606
cristyda16f162011-02-19 23:52:17 +000018607 lt_aix_libpath_sed='
18608 /Import File Strings/,/^$/ {
18609 /^0/ {
18610 s/^0 *\([^ ]*\) *$/\1/
18611 p
18612 }
18613 }'
18614 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18615 # Check for a 64-bit object if we didn't find anything.
18616 if test -z "$lt_cv_aix_libpath__CXX"; then
18617 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18618 fi
cristy73bd4a52010-10-05 11:24:23 +000018619fi
18620rm -f core conftest.err conftest.$ac_objext \
18621 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018622 if test -z "$lt_cv_aix_libpath__CXX"; then
18623 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18624 fi
18625
18626fi
18627
18628 aix_libpath=$lt_cv_aix_libpath__CXX
18629fi
cristy73bd4a52010-10-05 11:24:23 +000018630
18631 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18632 # Warning - without using the other run time loading flags,
18633 # -berok will link without error, but may produce a broken library.
18634 no_undefined_flag_CXX=' ${wl}-bernotok'
18635 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018636 if test "$with_gnu_ld" = yes; then
18637 # We only use this code for GNU lds that support --whole-archive.
18638 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18639 else
18640 # Exported symbols can be pulled into shared objects from archives
18641 whole_archive_flag_spec_CXX='$convenience'
18642 fi
cristy73bd4a52010-10-05 11:24:23 +000018643 archive_cmds_need_lc_CXX=yes
18644 # This is similar to how AIX traditionally builds its shared
18645 # libraries.
18646 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'
18647 fi
18648 fi
18649 ;;
18650
18651 beos*)
18652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18653 allow_undefined_flag_CXX=unsupported
18654 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18655 # support --undefined. This deserves some investigation. FIXME
18656 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18657 else
18658 ld_shlibs_CXX=no
18659 fi
18660 ;;
18661
18662 chorus*)
18663 case $cc_basename in
18664 *)
18665 # FIXME: insert proper C++ library support
18666 ld_shlibs_CXX=no
18667 ;;
18668 esac
18669 ;;
18670
18671 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018672 case $GXX,$cc_basename in
18673 ,cl* | no,cl*)
18674 # Native MSVC
18675 # hardcode_libdir_flag_spec is actually meaningless, as there is
18676 # no search path for DLLs.
18677 hardcode_libdir_flag_spec_CXX=' '
18678 allow_undefined_flag_CXX=unsupported
18679 always_export_symbols_CXX=yes
18680 file_list_spec_CXX='@'
18681 # Tell ltmain to make .lib files, not .a files.
18682 libext=lib
18683 # Tell ltmain to make .dll files, not .so files.
18684 shrext_cmds=".dll"
18685 # FIXME: Setting linknames here is a bad hack.
18686 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18687 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18688 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18689 else
18690 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18691 fi~
18692 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18693 linknames='
18694 # The linker will not automatically build a static lib if we build a DLL.
18695 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18696 enable_shared_with_static_runtimes_CXX=yes
18697 # Don't use ranlib
18698 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18699 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18700 lt_tool_outputfile="@TOOL_OUTPUT@"~
18701 case $lt_outputfile in
18702 *.exe|*.EXE) ;;
18703 *)
18704 lt_outputfile="$lt_outputfile.exe"
18705 lt_tool_outputfile="$lt_tool_outputfile.exe"
18706 ;;
18707 esac~
18708 func_to_tool_file "$lt_outputfile"~
18709 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18710 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18711 $RM "$lt_outputfile.manifest";
18712 fi'
18713 ;;
18714 *)
18715 # g++
18716 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18717 # as there is no search path for DLLs.
18718 hardcode_libdir_flag_spec_CXX='-L$libdir'
18719 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18720 allow_undefined_flag_CXX=unsupported
18721 always_export_symbols_CXX=no
18722 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018723
cristyda16f162011-02-19 23:52:17 +000018724 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18725 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'
18726 # If the export-symbols file already is a .def file (1st line
18727 # is EXPORTS), use it as is; otherwise, prepend...
18728 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18729 cp $export_symbols $output_objdir/$soname.def;
18730 else
18731 echo EXPORTS > $output_objdir/$soname.def;
18732 cat $export_symbols >> $output_objdir/$soname.def;
18733 fi~
18734 $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'
18735 else
18736 ld_shlibs_CXX=no
18737 fi
18738 ;;
18739 esac
18740 ;;
cristy73bd4a52010-10-05 11:24:23 +000018741 darwin* | rhapsody*)
18742
18743
18744 archive_cmds_need_lc_CXX=no
18745 hardcode_direct_CXX=no
18746 hardcode_automatic_CXX=yes
18747 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018748 if test "$lt_cv_ld_force_load" = "yes"; then
18749 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 +000018750
cristy0c60a692010-11-04 01:09:47 +000018751 else
18752 whole_archive_flag_spec_CXX=''
18753 fi
cristy73bd4a52010-10-05 11:24:23 +000018754 link_all_deplibs_CXX=yes
18755 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18756 case $cc_basename in
18757 ifort*) _lt_dar_can_shared=yes ;;
18758 *) _lt_dar_can_shared=$GCC ;;
18759 esac
18760 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018761 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018762 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}"
18763 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18764 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}"
18765 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}"
18766 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18767 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}"
18768 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}"
18769 fi
18770
18771 else
18772 ld_shlibs_CXX=no
18773 fi
18774
18775 ;;
18776
18777 dgux*)
18778 case $cc_basename in
18779 ec++*)
18780 # FIXME: insert proper C++ library support
18781 ld_shlibs_CXX=no
18782 ;;
18783 ghcx*)
18784 # Green Hills C++ Compiler
18785 # FIXME: insert proper C++ library support
18786 ld_shlibs_CXX=no
18787 ;;
18788 *)
18789 # FIXME: insert proper C++ library support
18790 ld_shlibs_CXX=no
18791 ;;
18792 esac
18793 ;;
18794
cristy99bd5232011-12-07 14:38:20 +000018795 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018796 # C++ shared libraries reported to be fairly broken before
18797 # switch to ELF
18798 ld_shlibs_CXX=no
18799 ;;
18800
18801 freebsd-elf*)
18802 archive_cmds_need_lc_CXX=no
18803 ;;
18804
18805 freebsd* | dragonfly*)
18806 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18807 # conventions
18808 ld_shlibs_CXX=yes
18809 ;;
18810
18811 gnu*)
18812 ;;
18813
cristy0c60a692010-11-04 01:09:47 +000018814 haiku*)
18815 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18816 link_all_deplibs_CXX=yes
18817 ;;
18818
cristy73bd4a52010-10-05 11:24:23 +000018819 hpux9*)
18820 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18821 hardcode_libdir_separator_CXX=:
18822 export_dynamic_flag_spec_CXX='${wl}-E'
18823 hardcode_direct_CXX=yes
18824 hardcode_minus_L_CXX=yes # Not in the search PATH,
18825 # but as the default
18826 # location of the library.
18827
18828 case $cc_basename in
18829 CC*)
18830 # FIXME: insert proper C++ library support
18831 ld_shlibs_CXX=no
18832 ;;
18833 aCC*)
18834 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'
18835 # Commands to make compiler produce verbose output that lists
18836 # what "hidden" libraries, object files and flags are used when
18837 # linking a shared library.
18838 #
18839 # There doesn't appear to be a way to prevent this compiler from
18840 # explicitly linking system object files so we need to strip them
18841 # from the output so that they don't get included in the library
18842 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018843 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 +000018844 ;;
18845 *)
18846 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018847 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 +000018848 else
18849 # FIXME: insert proper C++ library support
18850 ld_shlibs_CXX=no
18851 fi
18852 ;;
18853 esac
18854 ;;
18855
18856 hpux10*|hpux11*)
18857 if test $with_gnu_ld = no; then
18858 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18859 hardcode_libdir_separator_CXX=:
18860
18861 case $host_cpu in
18862 hppa*64*|ia64*)
18863 ;;
18864 *)
18865 export_dynamic_flag_spec_CXX='${wl}-E'
18866 ;;
18867 esac
18868 fi
18869 case $host_cpu in
18870 hppa*64*|ia64*)
18871 hardcode_direct_CXX=no
18872 hardcode_shlibpath_var_CXX=no
18873 ;;
18874 *)
18875 hardcode_direct_CXX=yes
18876 hardcode_direct_absolute_CXX=yes
18877 hardcode_minus_L_CXX=yes # Not in the search PATH,
18878 # but as the default
18879 # location of the library.
18880 ;;
18881 esac
18882
18883 case $cc_basename in
18884 CC*)
18885 # FIXME: insert proper C++ library support
18886 ld_shlibs_CXX=no
18887 ;;
18888 aCC*)
18889 case $host_cpu in
18890 hppa*64*)
18891 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18892 ;;
18893 ia64*)
18894 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18895 ;;
18896 *)
18897 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18898 ;;
18899 esac
18900 # Commands to make compiler produce verbose output that lists
18901 # what "hidden" libraries, object files and flags are used when
18902 # linking a shared library.
18903 #
18904 # There doesn't appear to be a way to prevent this compiler from
18905 # explicitly linking system object files so we need to strip them
18906 # from the output so that they don't get included in the library
18907 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018908 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 +000018909 ;;
18910 *)
18911 if test "$GXX" = yes; then
18912 if test $with_gnu_ld = no; then
18913 case $host_cpu in
18914 hppa*64*)
18915 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18916 ;;
18917 ia64*)
cristyda16f162011-02-19 23:52:17 +000018918 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 +000018919 ;;
18920 *)
cristyda16f162011-02-19 23:52:17 +000018921 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 +000018922 ;;
18923 esac
18924 fi
18925 else
18926 # FIXME: insert proper C++ library support
18927 ld_shlibs_CXX=no
18928 fi
18929 ;;
18930 esac
18931 ;;
18932
18933 interix[3-9]*)
18934 hardcode_direct_CXX=no
18935 hardcode_shlibpath_var_CXX=no
18936 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18937 export_dynamic_flag_spec_CXX='${wl}-E'
18938 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18939 # Instead, shared libraries are loaded at an image base (0x10000000 by
18940 # default) and relocated if they conflict, which is a slow very memory
18941 # consuming and fragmenting process. To avoid this, we pick a random,
18942 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18943 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18944 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'
18945 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'
18946 ;;
18947 irix5* | irix6*)
18948 case $cc_basename in
18949 CC*)
18950 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018951 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 +000018952
18953 # Archives containing C++ object files must be created using
18954 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18955 # necessary to make sure instantiated templates are included
18956 # in the archive.
18957 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18958 ;;
18959 *)
18960 if test "$GXX" = yes; then
18961 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018962 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 +000018963 else
cristyda16f162011-02-19 23:52:17 +000018964 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 +000018965 fi
18966 fi
18967 link_all_deplibs_CXX=yes
18968 ;;
18969 esac
18970 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18971 hardcode_libdir_separator_CXX=:
18972 inherit_rpath_CXX=yes
18973 ;;
18974
cristy0c60a692010-11-04 01:09:47 +000018975 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018976 case $cc_basename in
18977 KCC*)
18978 # Kuck and Associates, Inc. (KAI) C++ Compiler
18979
18980 # KCC will only create a shared library if the output file
18981 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18982 # to its proper name (with version) after linking.
18983 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'
18984 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'
18985 # Commands to make compiler produce verbose output that lists
18986 # what "hidden" libraries, object files and flags are used when
18987 # linking a shared library.
18988 #
18989 # There doesn't appear to be a way to prevent this compiler from
18990 # explicitly linking system object files so we need to strip them
18991 # from the output so that they don't get included in the library
18992 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018993 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 +000018994
18995 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18996 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18997
18998 # Archives containing C++ object files must be created using
18999 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19000 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19001 ;;
19002 icpc* | ecpc* )
19003 # Intel C++
19004 with_gnu_ld=yes
19005 # version 8.0 and above of icpc choke on multiply defined symbols
19006 # if we add $predep_objects and $postdep_objects, however 7.1 and
19007 # earlier do not add the objects themselves.
19008 case `$CC -V 2>&1` in
19009 *"Version 7."*)
19010 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19011 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'
19012 ;;
19013 *) # Version 8.0 or newer
19014 tmp_idyn=
19015 case $host_cpu in
19016 ia64*) tmp_idyn=' -i_dynamic';;
19017 esac
19018 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19019 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'
19020 ;;
19021 esac
19022 archive_cmds_need_lc_CXX=no
19023 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19024 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19025 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19026 ;;
19027 pgCC* | pgcpp*)
19028 # Portland Group C++ compiler
19029 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019030 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019031 prelink_cmds_CXX='tpldir=Template.dir~
19032 rm -rf $tpldir~
19033 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019034 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019035 old_archive_cmds_CXX='tpldir=Template.dir~
19036 rm -rf $tpldir~
19037 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019038 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019039 $RANLIB $oldlib'
19040 archive_cmds_CXX='tpldir=Template.dir~
19041 rm -rf $tpldir~
19042 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019043 $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 +000019044 archive_expsym_cmds_CXX='tpldir=Template.dir~
19045 rm -rf $tpldir~
19046 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019047 $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 +000019048 ;;
cristy0c60a692010-11-04 01:09:47 +000019049 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019050 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19051 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'
19052 ;;
19053 esac
19054
19055 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19056 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019057 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 +000019058 ;;
19059 cxx*)
19060 # Compaq C++
19061 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19062 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'
19063
19064 runpath_var=LD_RUN_PATH
19065 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19066 hardcode_libdir_separator_CXX=:
19067
19068 # Commands to make compiler produce verbose output that lists
19069 # what "hidden" libraries, object files and flags are used when
19070 # linking a shared library.
19071 #
19072 # There doesn't appear to be a way to prevent this compiler from
19073 # explicitly linking system object files so we need to strip them
19074 # from the output so that they don't get included in the library
19075 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019076 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 +000019077 ;;
cristy0c60a692010-11-04 01:09:47 +000019078 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019079 # IBM XL 8.0 on PPC, with GNU ld
19080 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19081 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19082 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19083 if test "x$supports_anon_versioning" = xyes; then
19084 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19085 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19086 echo "local: *; };" >> $output_objdir/$libname.ver~
19087 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19088 fi
19089 ;;
19090 *)
19091 case `$CC -V 2>&1 | sed 5q` in
19092 *Sun\ C*)
19093 # Sun C++ 5.9
19094 no_undefined_flag_CXX=' -zdefs'
19095 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19096 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'
19097 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019098 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 +000019099 compiler_needs_object_CXX=yes
19100
19101 # Not sure whether something based on
19102 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19103 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019104 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019105
19106 # Archives containing C++ object files must be created using
19107 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19108 # necessary to make sure instantiated templates are included
19109 # in the archive.
19110 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19111 ;;
19112 esac
19113 ;;
19114 esac
19115 ;;
19116
19117 lynxos*)
19118 # FIXME: insert proper C++ library support
19119 ld_shlibs_CXX=no
19120 ;;
19121
19122 m88k*)
19123 # FIXME: insert proper C++ library support
19124 ld_shlibs_CXX=no
19125 ;;
19126
19127 mvs*)
19128 case $cc_basename in
19129 cxx*)
19130 # FIXME: insert proper C++ library support
19131 ld_shlibs_CXX=no
19132 ;;
19133 *)
19134 # FIXME: insert proper C++ library support
19135 ld_shlibs_CXX=no
19136 ;;
19137 esac
19138 ;;
19139
19140 netbsd*)
19141 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19142 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19143 wlarc=
19144 hardcode_libdir_flag_spec_CXX='-R$libdir'
19145 hardcode_direct_CXX=yes
19146 hardcode_shlibpath_var_CXX=no
19147 fi
19148 # Workaround some broken pre-1.5 toolchains
19149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19150 ;;
19151
19152 *nto* | *qnx*)
19153 ld_shlibs_CXX=yes
19154 ;;
19155
19156 openbsd2*)
19157 # C++ shared libraries are fairly broken
19158 ld_shlibs_CXX=no
19159 ;;
19160
19161 openbsd*)
19162 if test -f /usr/libexec/ld.so; then
19163 hardcode_direct_CXX=yes
19164 hardcode_shlibpath_var_CXX=no
19165 hardcode_direct_absolute_CXX=yes
19166 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19167 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19169 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19170 export_dynamic_flag_spec_CXX='${wl}-E'
19171 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19172 fi
cristy0c60a692010-11-04 01:09:47 +000019173 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019174 else
19175 ld_shlibs_CXX=no
19176 fi
19177 ;;
19178
19179 osf3* | osf4* | osf5*)
19180 case $cc_basename in
19181 KCC*)
19182 # Kuck and Associates, Inc. (KAI) C++ Compiler
19183
19184 # KCC will only create a shared library if the output file
19185 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19186 # to its proper name (with version) after linking.
19187 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'
19188
19189 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19190 hardcode_libdir_separator_CXX=:
19191
19192 # Archives containing C++ object files must be created using
19193 # the KAI C++ compiler.
19194 case $host in
19195 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19196 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19197 esac
19198 ;;
19199 RCC*)
19200 # Rational C++ 2.4.1
19201 # FIXME: insert proper C++ library support
19202 ld_shlibs_CXX=no
19203 ;;
19204 cxx*)
19205 case $host in
19206 osf3*)
19207 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019208 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 +000019209 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19210 ;;
19211 *)
19212 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019213 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 +000019214 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19215 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019216 $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 +000019217 $RM $lib.exp'
19218 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19219 ;;
19220 esac
19221
19222 hardcode_libdir_separator_CXX=:
19223
19224 # Commands to make compiler produce verbose output that lists
19225 # what "hidden" libraries, object files and flags are used when
19226 # linking a shared library.
19227 #
19228 # There doesn't appear to be a way to prevent this compiler from
19229 # explicitly linking system object files so we need to strip them
19230 # from the output so that they don't get included in the library
19231 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019232 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 +000019233 ;;
19234 *)
19235 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19236 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19237 case $host in
19238 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019239 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 +000019240 ;;
19241 *)
cristyda16f162011-02-19 23:52:17 +000019242 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 +000019243 ;;
19244 esac
19245
19246 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19247 hardcode_libdir_separator_CXX=:
19248
19249 # Commands to make compiler produce verbose output that lists
19250 # what "hidden" libraries, object files and flags are used when
19251 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019252 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019253
19254 else
19255 # FIXME: insert proper C++ library support
19256 ld_shlibs_CXX=no
19257 fi
19258 ;;
19259 esac
19260 ;;
19261
19262 psos*)
19263 # FIXME: insert proper C++ library support
19264 ld_shlibs_CXX=no
19265 ;;
19266
19267 sunos4*)
19268 case $cc_basename in
19269 CC*)
19270 # Sun C++ 4.x
19271 # FIXME: insert proper C++ library support
19272 ld_shlibs_CXX=no
19273 ;;
19274 lcc*)
19275 # Lucid
19276 # FIXME: insert proper C++ library support
19277 ld_shlibs_CXX=no
19278 ;;
19279 *)
19280 # FIXME: insert proper C++ library support
19281 ld_shlibs_CXX=no
19282 ;;
19283 esac
19284 ;;
19285
19286 solaris*)
19287 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019288 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019289 # Sun C++ 4.2, 5.x and Centerline C++
19290 archive_cmds_need_lc_CXX=yes
19291 no_undefined_flag_CXX=' -zdefs'
19292 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19293 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19294 $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'
19295
19296 hardcode_libdir_flag_spec_CXX='-R$libdir'
19297 hardcode_shlibpath_var_CXX=no
19298 case $host_os in
19299 solaris2.[0-5] | solaris2.[0-5].*) ;;
19300 *)
19301 # The compiler driver will combine and reorder linker options,
19302 # but understands `-z linker_flag'.
19303 # Supported since Solaris 2.6 (maybe 2.5.1?)
19304 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19305 ;;
19306 esac
19307 link_all_deplibs_CXX=yes
19308
cristy0c60a692010-11-04 01:09:47 +000019309 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019310
19311 # Archives containing C++ object files must be created using
19312 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19313 # necessary to make sure instantiated templates are included
19314 # in the archive.
19315 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19316 ;;
19317 gcx*)
19318 # Green Hills C++ Compiler
19319 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19320
19321 # The C++ compiler must be used to create the archive.
19322 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19323 ;;
19324 *)
19325 # GNU C++ compiler with Solaris linker
19326 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19327 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19328 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019329 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 +000019330 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 +000019331 $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 +000019332
19333 # Commands to make compiler produce verbose output that lists
19334 # what "hidden" libraries, object files and flags are used when
19335 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019336 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019337 else
19338 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19339 # platform.
19340 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19341 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19342 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19343
19344 # Commands to make compiler produce verbose output that lists
19345 # what "hidden" libraries, object files and flags are used when
19346 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019347 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019348 fi
19349
19350 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19351 case $host_os in
19352 solaris2.[0-5] | solaris2.[0-5].*) ;;
19353 *)
19354 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19355 ;;
19356 esac
19357 fi
19358 ;;
19359 esac
19360 ;;
19361
19362 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19363 no_undefined_flag_CXX='${wl}-z,text'
19364 archive_cmds_need_lc_CXX=no
19365 hardcode_shlibpath_var_CXX=no
19366 runpath_var='LD_RUN_PATH'
19367
19368 case $cc_basename in
19369 CC*)
19370 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19371 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19372 ;;
19373 *)
19374 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19375 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19376 ;;
19377 esac
19378 ;;
19379
19380 sysv5* | sco3.2v5* | sco5v6*)
19381 # Note: We can NOT use -z defs as we might desire, because we do not
19382 # link with -lc, and that would cause any symbols used from libc to
19383 # always be unresolved, which means just about no library would
19384 # ever link correctly. If we're not using GNU ld we use -z text
19385 # though, which does catch some bad symbols but isn't as heavy-handed
19386 # as -z defs.
19387 no_undefined_flag_CXX='${wl}-z,text'
19388 allow_undefined_flag_CXX='${wl}-z,nodefs'
19389 archive_cmds_need_lc_CXX=no
19390 hardcode_shlibpath_var_CXX=no
19391 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19392 hardcode_libdir_separator_CXX=':'
19393 link_all_deplibs_CXX=yes
19394 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19395 runpath_var='LD_RUN_PATH'
19396
19397 case $cc_basename in
19398 CC*)
19399 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19400 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 +000019401 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19402 '"$old_archive_cmds_CXX"
19403 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19404 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019405 ;;
19406 *)
19407 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19408 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19409 ;;
19410 esac
19411 ;;
19412
19413 tandem*)
19414 case $cc_basename in
19415 NCC*)
19416 # NonStop-UX NCC 3.20
19417 # FIXME: insert proper C++ library support
19418 ld_shlibs_CXX=no
19419 ;;
19420 *)
19421 # FIXME: insert proper C++ library support
19422 ld_shlibs_CXX=no
19423 ;;
19424 esac
19425 ;;
19426
19427 vxworks*)
19428 # FIXME: insert proper C++ library support
19429 ld_shlibs_CXX=no
19430 ;;
19431
19432 *)
19433 # FIXME: insert proper C++ library support
19434 ld_shlibs_CXX=no
19435 ;;
19436 esac
19437
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19439$as_echo "$ld_shlibs_CXX" >&6; }
19440 test "$ld_shlibs_CXX" = no && can_build_shared=no
19441
19442 GCC_CXX="$GXX"
19443 LD_CXX="$LD"
19444
19445 ## CAVEAT EMPTOR:
19446 ## There is no encapsulation within the following macros, do not change
19447 ## the running order or otherwise move them around unless you know exactly
19448 ## what you are doing...
19449 # Dependencies to place before and after the object being linked:
19450predep_objects_CXX=
19451postdep_objects_CXX=
19452predeps_CXX=
19453postdeps_CXX=
19454compiler_lib_search_path_CXX=
19455
19456cat > conftest.$ac_ext <<_LT_EOF
19457class Foo
19458{
19459public:
19460 Foo (void) { a = 0; }
19461private:
19462 int a;
19463};
19464_LT_EOF
19465
cristyda16f162011-02-19 23:52:17 +000019466
19467_lt_libdeps_save_CFLAGS=$CFLAGS
19468case "$CC $CFLAGS " in #(
19469*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19470*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019471*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019472esac
19473
cristy73bd4a52010-10-05 11:24:23 +000019474if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19475 (eval $ac_compile) 2>&5
19476 ac_status=$?
19477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19478 test $ac_status = 0; }; then
19479 # Parse the compiler output and extract the necessary
19480 # objects, libraries and library flags.
19481
19482 # Sentinel used to keep track of whether or not we are before
19483 # the conftest object file.
19484 pre_test_object_deps_done=no
19485
19486 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019487 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019488
19489 -L* | -R* | -l*)
19490 # Some compilers place space between "-{L,R}" and the path.
19491 # Remove the space.
19492 if test $p = "-L" ||
19493 test $p = "-R"; then
19494 prev=$p
19495 continue
cristy73bd4a52010-10-05 11:24:23 +000019496 fi
19497
cristyda16f162011-02-19 23:52:17 +000019498 # Expand the sysroot to ease extracting the directories later.
19499 if test -z "$prev"; then
19500 case $p in
19501 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19502 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19503 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19504 esac
19505 fi
19506 case $p in
19507 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19508 esac
cristy73bd4a52010-10-05 11:24:23 +000019509 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019510 case ${prev} in
19511 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019512 # Internal compiler library paths should come after those
19513 # provided the user. The postdeps already come after the
19514 # user supplied libs so there is no need to process them.
19515 if test -z "$compiler_lib_search_path_CXX"; then
19516 compiler_lib_search_path_CXX="${prev}${p}"
19517 else
19518 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19519 fi
19520 ;;
19521 # The "-l" case would never come before the object being
19522 # linked, so don't bother handling this case.
19523 esac
19524 else
19525 if test -z "$postdeps_CXX"; then
19526 postdeps_CXX="${prev}${p}"
19527 else
19528 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19529 fi
19530 fi
cristyda16f162011-02-19 23:52:17 +000019531 prev=
cristy73bd4a52010-10-05 11:24:23 +000019532 ;;
19533
cristyda16f162011-02-19 23:52:17 +000019534 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019535 *.$objext)
19536 # This assumes that the test object file only shows up
19537 # once in the compiler output.
19538 if test "$p" = "conftest.$objext"; then
19539 pre_test_object_deps_done=yes
19540 continue
19541 fi
19542
19543 if test "$pre_test_object_deps_done" = no; then
19544 if test -z "$predep_objects_CXX"; then
19545 predep_objects_CXX="$p"
19546 else
19547 predep_objects_CXX="$predep_objects_CXX $p"
19548 fi
19549 else
19550 if test -z "$postdep_objects_CXX"; then
19551 postdep_objects_CXX="$p"
19552 else
19553 postdep_objects_CXX="$postdep_objects_CXX $p"
19554 fi
19555 fi
19556 ;;
19557
19558 *) ;; # Ignore the rest.
19559
19560 esac
19561 done
19562
19563 # Clean up.
19564 rm -f a.out a.exe
19565else
19566 echo "libtool.m4: error: problem compiling CXX test program"
19567fi
19568
19569$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019570CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019571
19572# PORTME: override above test on systems where it is broken
19573case $host_os in
19574interix[3-9]*)
19575 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19576 # hack all around it, let's just trust "g++" to DTRT.
19577 predep_objects_CXX=
19578 postdep_objects_CXX=
19579 postdeps_CXX=
19580 ;;
19581
19582linux*)
19583 case `$CC -V 2>&1 | sed 5q` in
19584 *Sun\ C*)
19585 # Sun C++ 5.9
19586
19587 # The more standards-conforming stlport4 library is
19588 # incompatible with the Cstd library. Avoid specifying
19589 # it if it's in CXXFLAGS. Ignore libCrun as
19590 # -library=stlport4 depends on it.
19591 case " $CXX $CXXFLAGS " in
19592 *" -library=stlport4 "*)
19593 solaris_use_stlport4=yes
19594 ;;
19595 esac
19596
19597 if test "$solaris_use_stlport4" != yes; then
19598 postdeps_CXX='-library=Cstd -library=Crun'
19599 fi
19600 ;;
19601 esac
19602 ;;
19603
19604solaris*)
19605 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019606 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019607 # The more standards-conforming stlport4 library is
19608 # incompatible with the Cstd library. Avoid specifying
19609 # it if it's in CXXFLAGS. Ignore libCrun as
19610 # -library=stlport4 depends on it.
19611 case " $CXX $CXXFLAGS " in
19612 *" -library=stlport4 "*)
19613 solaris_use_stlport4=yes
19614 ;;
19615 esac
19616
19617 # Adding this requires a known-good setup of shared libraries for
19618 # Sun compiler versions before 5.6, else PIC objects from an old
19619 # archive will be linked into the output, leading to subtle bugs.
19620 if test "$solaris_use_stlport4" != yes; then
19621 postdeps_CXX='-library=Cstd -library=Crun'
19622 fi
19623 ;;
19624 esac
19625 ;;
19626esac
19627
19628
19629case " $postdeps_CXX " in
19630*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19631esac
19632 compiler_lib_search_dirs_CXX=
19633if test -n "${compiler_lib_search_path_CXX}"; then
19634 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19635fi
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667 lt_prog_compiler_wl_CXX=
19668lt_prog_compiler_pic_CXX=
19669lt_prog_compiler_static_CXX=
19670
cristy73bd4a52010-10-05 11:24:23 +000019671
19672 # C++ specific cases for pic, static, wl, etc.
19673 if test "$GXX" = yes; then
19674 lt_prog_compiler_wl_CXX='-Wl,'
19675 lt_prog_compiler_static_CXX='-static'
19676
19677 case $host_os in
19678 aix*)
19679 # All AIX code is PIC.
19680 if test "$host_cpu" = ia64; then
19681 # AIX 5 now supports IA64 processor
19682 lt_prog_compiler_static_CXX='-Bstatic'
19683 fi
19684 ;;
19685
19686 amigaos*)
19687 case $host_cpu in
19688 powerpc)
19689 # see comment about AmigaOS4 .so support
19690 lt_prog_compiler_pic_CXX='-fPIC'
19691 ;;
19692 m68k)
19693 # FIXME: we need at least 68020 code to build shared libraries, but
19694 # adding the `-m68020' flag to GCC prevents building anything better,
19695 # like `-m68040'.
19696 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19697 ;;
19698 esac
19699 ;;
19700
19701 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19702 # PIC is the default for these OSes.
19703 ;;
19704 mingw* | cygwin* | os2* | pw32* | cegcc*)
19705 # This hack is so that the source file can tell whether it is being
19706 # built for inclusion in a dll (and should export symbols for example).
19707 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19708 # (--disable-auto-import) libraries
19709 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19710 ;;
19711 darwin* | rhapsody*)
19712 # PIC is the default on this platform
19713 # Common symbols not allowed in MH_DYLIB files
19714 lt_prog_compiler_pic_CXX='-fno-common'
19715 ;;
19716 *djgpp*)
19717 # DJGPP does not support shared libraries at all
19718 lt_prog_compiler_pic_CXX=
19719 ;;
cristy0c60a692010-11-04 01:09:47 +000019720 haiku*)
19721 # PIC is the default for Haiku.
19722 # The "-static" flag exists, but is broken.
19723 lt_prog_compiler_static_CXX=
19724 ;;
cristy73bd4a52010-10-05 11:24:23 +000019725 interix[3-9]*)
19726 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19727 # Instead, we relocate shared libraries at runtime.
19728 ;;
19729 sysv4*MP*)
19730 if test -d /usr/nec; then
19731 lt_prog_compiler_pic_CXX=-Kconform_pic
19732 fi
19733 ;;
19734 hpux*)
19735 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19736 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19737 # sets the default TLS model and affects inlining.
19738 case $host_cpu in
19739 hppa*64*)
19740 ;;
19741 *)
19742 lt_prog_compiler_pic_CXX='-fPIC'
19743 ;;
19744 esac
19745 ;;
19746 *qnx* | *nto*)
19747 # QNX uses GNU C++, but need to define -shared option too, otherwise
19748 # it will coredump.
19749 lt_prog_compiler_pic_CXX='-fPIC -shared'
19750 ;;
19751 *)
19752 lt_prog_compiler_pic_CXX='-fPIC'
19753 ;;
19754 esac
19755 else
19756 case $host_os in
19757 aix[4-9]*)
19758 # All AIX code is PIC.
19759 if test "$host_cpu" = ia64; then
19760 # AIX 5 now supports IA64 processor
19761 lt_prog_compiler_static_CXX='-Bstatic'
19762 else
19763 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19764 fi
19765 ;;
19766 chorus*)
19767 case $cc_basename in
19768 cxch68*)
19769 # Green Hills C++ Compiler
19770 # _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"
19771 ;;
19772 esac
19773 ;;
cristyda16f162011-02-19 23:52:17 +000019774 mingw* | cygwin* | os2* | pw32* | cegcc*)
19775 # This hack is so that the source file can tell whether it is being
19776 # built for inclusion in a dll (and should export symbols for example).
19777 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19778 ;;
cristy73bd4a52010-10-05 11:24:23 +000019779 dgux*)
19780 case $cc_basename in
19781 ec++*)
19782 lt_prog_compiler_pic_CXX='-KPIC'
19783 ;;
19784 ghcx*)
19785 # Green Hills C++ Compiler
19786 lt_prog_compiler_pic_CXX='-pic'
19787 ;;
19788 *)
19789 ;;
19790 esac
19791 ;;
19792 freebsd* | dragonfly*)
19793 # FreeBSD uses GNU C++
19794 ;;
19795 hpux9* | hpux10* | hpux11*)
19796 case $cc_basename in
19797 CC*)
19798 lt_prog_compiler_wl_CXX='-Wl,'
19799 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19800 if test "$host_cpu" != ia64; then
19801 lt_prog_compiler_pic_CXX='+Z'
19802 fi
19803 ;;
19804 aCC*)
19805 lt_prog_compiler_wl_CXX='-Wl,'
19806 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19807 case $host_cpu in
19808 hppa*64*|ia64*)
19809 # +Z the default
19810 ;;
19811 *)
19812 lt_prog_compiler_pic_CXX='+Z'
19813 ;;
19814 esac
19815 ;;
19816 *)
19817 ;;
19818 esac
19819 ;;
19820 interix*)
19821 # This is c89, which is MS Visual C++ (no shared libs)
19822 # Anyone wants to do a port?
19823 ;;
19824 irix5* | irix6* | nonstopux*)
19825 case $cc_basename in
19826 CC*)
19827 lt_prog_compiler_wl_CXX='-Wl,'
19828 lt_prog_compiler_static_CXX='-non_shared'
19829 # CC pic flag -KPIC is the default.
19830 ;;
19831 *)
19832 ;;
19833 esac
19834 ;;
cristy0c60a692010-11-04 01:09:47 +000019835 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019836 case $cc_basename in
19837 KCC*)
19838 # KAI C++ Compiler
19839 lt_prog_compiler_wl_CXX='--backend -Wl,'
19840 lt_prog_compiler_pic_CXX='-fPIC'
19841 ;;
19842 ecpc* )
19843 # old Intel C++ for x86_64 which still supported -KPIC.
19844 lt_prog_compiler_wl_CXX='-Wl,'
19845 lt_prog_compiler_pic_CXX='-KPIC'
19846 lt_prog_compiler_static_CXX='-static'
19847 ;;
19848 icpc* )
19849 # Intel C++, used to be incompatible with GCC.
19850 # ICC 10 doesn't accept -KPIC any more.
19851 lt_prog_compiler_wl_CXX='-Wl,'
19852 lt_prog_compiler_pic_CXX='-fPIC'
19853 lt_prog_compiler_static_CXX='-static'
19854 ;;
19855 pgCC* | pgcpp*)
19856 # Portland Group C++ compiler
19857 lt_prog_compiler_wl_CXX='-Wl,'
19858 lt_prog_compiler_pic_CXX='-fpic'
19859 lt_prog_compiler_static_CXX='-Bstatic'
19860 ;;
19861 cxx*)
19862 # Compaq C++
19863 # Make sure the PIC flag is empty. It appears that all Alpha
19864 # Linux and Compaq Tru64 Unix objects are PIC.
19865 lt_prog_compiler_pic_CXX=
19866 lt_prog_compiler_static_CXX='-non_shared'
19867 ;;
cristy0c60a692010-11-04 01:09:47 +000019868 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19869 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019870 lt_prog_compiler_wl_CXX='-Wl,'
19871 lt_prog_compiler_pic_CXX='-qpic'
19872 lt_prog_compiler_static_CXX='-qstaticlink'
19873 ;;
19874 *)
19875 case `$CC -V 2>&1 | sed 5q` in
19876 *Sun\ C*)
19877 # Sun C++ 5.9
19878 lt_prog_compiler_pic_CXX='-KPIC'
19879 lt_prog_compiler_static_CXX='-Bstatic'
19880 lt_prog_compiler_wl_CXX='-Qoption ld '
19881 ;;
19882 esac
19883 ;;
19884 esac
19885 ;;
19886 lynxos*)
19887 ;;
19888 m88k*)
19889 ;;
19890 mvs*)
19891 case $cc_basename in
19892 cxx*)
19893 lt_prog_compiler_pic_CXX='-W c,exportall'
19894 ;;
19895 *)
19896 ;;
19897 esac
19898 ;;
19899 netbsd*)
19900 ;;
19901 *qnx* | *nto*)
19902 # QNX uses GNU C++, but need to define -shared option too, otherwise
19903 # it will coredump.
19904 lt_prog_compiler_pic_CXX='-fPIC -shared'
19905 ;;
19906 osf3* | osf4* | osf5*)
19907 case $cc_basename in
19908 KCC*)
19909 lt_prog_compiler_wl_CXX='--backend -Wl,'
19910 ;;
19911 RCC*)
19912 # Rational C++ 2.4.1
19913 lt_prog_compiler_pic_CXX='-pic'
19914 ;;
19915 cxx*)
19916 # Digital/Compaq C++
19917 lt_prog_compiler_wl_CXX='-Wl,'
19918 # Make sure the PIC flag is empty. It appears that all Alpha
19919 # Linux and Compaq Tru64 Unix objects are PIC.
19920 lt_prog_compiler_pic_CXX=
19921 lt_prog_compiler_static_CXX='-non_shared'
19922 ;;
19923 *)
19924 ;;
19925 esac
19926 ;;
19927 psos*)
19928 ;;
19929 solaris*)
19930 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019931 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019932 # Sun C++ 4.2, 5.x and Centerline C++
19933 lt_prog_compiler_pic_CXX='-KPIC'
19934 lt_prog_compiler_static_CXX='-Bstatic'
19935 lt_prog_compiler_wl_CXX='-Qoption ld '
19936 ;;
19937 gcx*)
19938 # Green Hills C++ Compiler
19939 lt_prog_compiler_pic_CXX='-PIC'
19940 ;;
19941 *)
19942 ;;
19943 esac
19944 ;;
19945 sunos4*)
19946 case $cc_basename in
19947 CC*)
19948 # Sun C++ 4.x
19949 lt_prog_compiler_pic_CXX='-pic'
19950 lt_prog_compiler_static_CXX='-Bstatic'
19951 ;;
19952 lcc*)
19953 # Lucid
19954 lt_prog_compiler_pic_CXX='-pic'
19955 ;;
19956 *)
19957 ;;
19958 esac
19959 ;;
19960 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19961 case $cc_basename in
19962 CC*)
19963 lt_prog_compiler_wl_CXX='-Wl,'
19964 lt_prog_compiler_pic_CXX='-KPIC'
19965 lt_prog_compiler_static_CXX='-Bstatic'
19966 ;;
19967 esac
19968 ;;
19969 tandem*)
19970 case $cc_basename in
19971 NCC*)
19972 # NonStop-UX NCC 3.20
19973 lt_prog_compiler_pic_CXX='-KPIC'
19974 ;;
19975 *)
19976 ;;
19977 esac
19978 ;;
19979 vxworks*)
19980 ;;
19981 *)
19982 lt_prog_compiler_can_build_shared_CXX=no
19983 ;;
19984 esac
19985 fi
19986
19987case $host_os in
19988 # For platforms which do not support PIC, -DPIC is meaningless:
19989 *djgpp*)
19990 lt_prog_compiler_pic_CXX=
19991 ;;
19992 *)
19993 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19994 ;;
19995esac
cristy73bd4a52010-10-05 11:24:23 +000019996
cristyda16f162011-02-19 23:52:17 +000019997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19998$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19999if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20000 $as_echo_n "(cached) " >&6
20001else
20002 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20003fi
20004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20005$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20006lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020007
20008#
20009# Check to make sure the PIC flag actually works.
20010#
20011if test -n "$lt_prog_compiler_pic_CXX"; then
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20013$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020014if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020015 $as_echo_n "(cached) " >&6
20016else
20017 lt_cv_prog_compiler_pic_works_CXX=no
20018 ac_outfile=conftest.$ac_objext
20019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20020 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20021 # Insert the option either (1) after the last *FLAGS variable, or
20022 # (2) before a word containing "conftest.", or (3) at the end.
20023 # Note that $ac_compile itself does not contain backslashes and begins
20024 # with a dollar sign (not a hyphen), so the echo should work correctly.
20025 # The option is referenced via a variable to avoid confusing sed.
20026 lt_compile=`echo "$ac_compile" | $SED \
20027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20029 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020030 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020031 (eval "$lt_compile" 2>conftest.err)
20032 ac_status=$?
20033 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020035 if (exit $ac_status) && test -s "$ac_outfile"; then
20036 # The compiler can only warn and ignore the option if not recognized
20037 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020039 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20040 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20041 lt_cv_prog_compiler_pic_works_CXX=yes
20042 fi
20043 fi
20044 $RM conftest*
20045
20046fi
20047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20048$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20049
20050if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20051 case $lt_prog_compiler_pic_CXX in
20052 "" | " "*) ;;
20053 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20054 esac
20055else
20056 lt_prog_compiler_pic_CXX=
20057 lt_prog_compiler_can_build_shared_CXX=no
20058fi
20059
20060fi
20061
20062
20063
cristyda16f162011-02-19 23:52:17 +000020064
20065
cristy73bd4a52010-10-05 11:24:23 +000020066#
20067# Check to make sure the static flag actually works.
20068#
20069wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20071$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020072if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020073 $as_echo_n "(cached) " >&6
20074else
20075 lt_cv_prog_compiler_static_works_CXX=no
20076 save_LDFLAGS="$LDFLAGS"
20077 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20078 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20079 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20080 # The linker can only warn and ignore the option if not recognized
20081 # So say no if there are warnings
20082 if test -s conftest.err; then
20083 # Append any errors to the config.log.
20084 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020085 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20087 if diff conftest.exp conftest.er2 >/dev/null; then
20088 lt_cv_prog_compiler_static_works_CXX=yes
20089 fi
20090 else
20091 lt_cv_prog_compiler_static_works_CXX=yes
20092 fi
20093 fi
20094 $RM -r conftest*
20095 LDFLAGS="$save_LDFLAGS"
20096
20097fi
20098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20099$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20100
20101if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20102 :
20103else
20104 lt_prog_compiler_static_CXX=
20105fi
20106
20107
20108
20109
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20111$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020112if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020113 $as_echo_n "(cached) " >&6
20114else
20115 lt_cv_prog_compiler_c_o_CXX=no
20116 $RM -r conftest 2>/dev/null
20117 mkdir conftest
20118 cd conftest
20119 mkdir out
20120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20121
20122 lt_compiler_flag="-o out/conftest2.$ac_objext"
20123 # Insert the option either (1) after the last *FLAGS variable, or
20124 # (2) before a word containing "conftest.", or (3) at the end.
20125 # Note that $ac_compile itself does not contain backslashes and begins
20126 # with a dollar sign (not a hyphen), so the echo should work correctly.
20127 lt_compile=`echo "$ac_compile" | $SED \
20128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20130 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020131 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020132 (eval "$lt_compile" 2>out/conftest.err)
20133 ac_status=$?
20134 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020136 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20137 then
20138 # The compiler can only warn and ignore the option if not recognized
20139 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020140 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020141 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20142 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20143 lt_cv_prog_compiler_c_o_CXX=yes
20144 fi
20145 fi
20146 chmod u+w . 2>&5
20147 $RM conftest*
20148 # SGI C++ compiler will create directory out/ii_files/ for
20149 # template instantiation
20150 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20151 $RM out/* && rmdir out
20152 cd ..
20153 $RM -r conftest
20154 $RM conftest*
20155
20156fi
20157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20158$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20159
20160
20161
20162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20163$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020164if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020165 $as_echo_n "(cached) " >&6
20166else
20167 lt_cv_prog_compiler_c_o_CXX=no
20168 $RM -r conftest 2>/dev/null
20169 mkdir conftest
20170 cd conftest
20171 mkdir out
20172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20173
20174 lt_compiler_flag="-o out/conftest2.$ac_objext"
20175 # Insert the option either (1) after the last *FLAGS variable, or
20176 # (2) before a word containing "conftest.", or (3) at the end.
20177 # Note that $ac_compile itself does not contain backslashes and begins
20178 # with a dollar sign (not a hyphen), so the echo should work correctly.
20179 lt_compile=`echo "$ac_compile" | $SED \
20180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20182 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020183 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020184 (eval "$lt_compile" 2>out/conftest.err)
20185 ac_status=$?
20186 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20189 then
20190 # The compiler can only warn and ignore the option if not recognized
20191 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020192 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20195 lt_cv_prog_compiler_c_o_CXX=yes
20196 fi
20197 fi
20198 chmod u+w . 2>&5
20199 $RM conftest*
20200 # SGI C++ compiler will create directory out/ii_files/ for
20201 # template instantiation
20202 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20203 $RM out/* && rmdir out
20204 cd ..
20205 $RM -r conftest
20206 $RM conftest*
20207
20208fi
20209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20210$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20211
20212
20213
20214
20215hard_links="nottested"
20216if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20217 # do not overwrite the value of need_locks provided by the user
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20219$as_echo_n "checking if we can lock with hard links... " >&6; }
20220 hard_links=yes
20221 $RM conftest*
20222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20223 touch conftest.a
20224 ln conftest.a conftest.b 2>&5 || hard_links=no
20225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20227$as_echo "$hard_links" >&6; }
20228 if test "$hard_links" = no; then
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20230$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20231 need_locks=warn
20232 fi
20233else
20234 need_locks=no
20235fi
20236
20237
20238
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20240$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20241
20242 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020243 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020244 case $host_os in
20245 aix[4-9]*)
20246 # If we're using GNU nm, then we don't want the "-C" option.
20247 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020248 # Also, AIX nm treats weak defined symbols like other global defined
20249 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020250 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020251 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 +000020252 else
20253 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'
20254 fi
20255 ;;
20256 pw32*)
20257 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020258 ;;
cristy73bd4a52010-10-05 11:24:23 +000020259 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020260 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020261 cl*)
20262 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20263 ;;
cristyda16f162011-02-19 23:52:17 +000020264 *)
20265 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'
20266 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20267 ;;
20268 esac
20269 ;;
cristy73bd4a52010-10-05 11:24:23 +000020270 *)
20271 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020272 ;;
cristy73bd4a52010-10-05 11:24:23 +000020273 esac
cristy73bd4a52010-10-05 11:24:23 +000020274
20275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20276$as_echo "$ld_shlibs_CXX" >&6; }
20277test "$ld_shlibs_CXX" = no && can_build_shared=no
20278
20279with_gnu_ld_CXX=$with_gnu_ld
20280
20281
20282
20283
20284
20285
20286#
20287# Do we need to explicitly link libc?
20288#
20289case "x$archive_cmds_need_lc_CXX" in
20290x|xyes)
20291 # Assume -lc should be added
20292 archive_cmds_need_lc_CXX=yes
20293
20294 if test "$enable_shared" = yes && test "$GCC" = yes; then
20295 case $archive_cmds_CXX in
20296 *'~'*)
20297 # FIXME: we may have to deal with multi-command sequences.
20298 ;;
20299 '$CC '*)
20300 # Test whether the compiler implicitly links with -lc since on some
20301 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20302 # to ld, don't add -lc before -lgcc.
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20304$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020305if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020306 $as_echo_n "(cached) " >&6
20307else
20308 $RM conftest*
20309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020310
cristy0c60a692010-11-04 01:09:47 +000020311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020312 (eval $ac_compile) 2>&5
20313 ac_status=$?
20314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20315 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020316 soname=conftest
20317 lib=conftest
20318 libobjs=conftest.$ac_objext
20319 deplibs=
20320 wl=$lt_prog_compiler_wl_CXX
20321 pic_flag=$lt_prog_compiler_pic_CXX
20322 compiler_flags=-v
20323 linker_flags=-v
20324 verstring=
20325 output_objdir=.
20326 libname=conftest
20327 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20328 allow_undefined_flag_CXX=
20329 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 +000020330 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20331 ac_status=$?
20332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20333 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020334 then
20335 lt_cv_archive_cmds_need_lc_CXX=no
20336 else
20337 lt_cv_archive_cmds_need_lc_CXX=yes
20338 fi
20339 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20340 else
20341 cat conftest.err 1>&5
20342 fi
20343 $RM conftest*
20344
20345fi
20346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20347$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20348 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020349 ;;
20350 esac
20351 fi
20352 ;;
20353esac
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
cristy73bd4a52010-10-05 11:24:23 +000020416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20417$as_echo_n "checking dynamic linker characteristics... " >&6; }
20418
20419library_names_spec=
20420libname_spec='lib$name'
20421soname_spec=
20422shrext_cmds=".so"
20423postinstall_cmds=
20424postuninstall_cmds=
20425finish_cmds=
20426finish_eval=
20427shlibpath_var=
20428shlibpath_overrides_runpath=unknown
20429version_type=none
20430dynamic_linker="$host_os ld.so"
20431sys_lib_dlsearch_path_spec="/lib /usr/lib"
20432need_lib_prefix=unknown
20433hardcode_into_libs=no
20434
20435# when you set need_version to no, make sure it does not cause -set_version
20436# flags to be left without arguments
20437need_version=unknown
20438
20439case $host_os in
20440aix3*)
cristy99bd5232011-12-07 14:38:20 +000020441 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20443 shlibpath_var=LIBPATH
20444
20445 # AIX 3 has no versioning support, so we append a major version to the name.
20446 soname_spec='${libname}${release}${shared_ext}$major'
20447 ;;
20448
20449aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020450 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020451 need_lib_prefix=no
20452 need_version=no
20453 hardcode_into_libs=yes
20454 if test "$host_cpu" = ia64; then
20455 # AIX 5 supports IA64
20456 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20457 shlibpath_var=LD_LIBRARY_PATH
20458 else
20459 # With GCC up to 2.95.x, collect2 would create an import file
20460 # for dependence libraries. The import file would start with
20461 # the line `#! .'. This would cause the generated library to
20462 # depend on `.', always an invalid library. This was fixed in
20463 # development snapshots of GCC prior to 3.0.
20464 case $host_os in
20465 aix4 | aix4.[01] | aix4.[01].*)
20466 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20467 echo ' yes '
20468 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20469 :
20470 else
20471 can_build_shared=no
20472 fi
20473 ;;
20474 esac
20475 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20476 # soname into executable. Probably we can add versioning support to
20477 # collect2, so additional links can be useful in future.
20478 if test "$aix_use_runtimelinking" = yes; then
20479 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20480 # instead of lib<name>.a to let people know that these are not
20481 # typical AIX shared libraries.
20482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483 else
20484 # We preserve .a as extension for shared libraries through AIX4.2
20485 # and later when we are not doing run time linking.
20486 library_names_spec='${libname}${release}.a $libname.a'
20487 soname_spec='${libname}${release}${shared_ext}$major'
20488 fi
20489 shlibpath_var=LIBPATH
20490 fi
20491 ;;
20492
20493amigaos*)
20494 case $host_cpu in
20495 powerpc)
20496 # Since July 2007 AmigaOS4 officially supports .so libraries.
20497 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20499 ;;
20500 m68k)
20501 library_names_spec='$libname.ixlibrary $libname.a'
20502 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020503 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 +000020504 ;;
20505 esac
20506 ;;
20507
20508beos*)
20509 library_names_spec='${libname}${shared_ext}'
20510 dynamic_linker="$host_os ld.so"
20511 shlibpath_var=LIBRARY_PATH
20512 ;;
20513
20514bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020515 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020516 need_version=no
20517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20518 soname_spec='${libname}${release}${shared_ext}$major'
20519 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20520 shlibpath_var=LD_LIBRARY_PATH
20521 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20522 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20523 # the default ld.so.conf also contains /usr/contrib/lib and
20524 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20525 # libtool to hard-code these into programs
20526 ;;
20527
20528cygwin* | mingw* | pw32* | cegcc*)
20529 version_type=windows
20530 shrext_cmds=".dll"
20531 need_version=no
20532 need_lib_prefix=no
20533
cristyda16f162011-02-19 23:52:17 +000020534 case $GCC,$cc_basename in
20535 yes,*)
20536 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020537 library_names_spec='$libname.dll.a'
20538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20539 postinstall_cmds='base_file=`basename \${file}`~
20540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20541 dldir=$destdir/`dirname \$dlpath`~
20542 test -d \$dldir || mkdir -p \$dldir~
20543 $install_prog $dir/$dlname \$dldir/$dlname~
20544 chmod a+x \$dldir/$dlname~
20545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20547 fi'
20548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20549 dlpath=$dir/\$dldll~
20550 $RM \$dlpath'
20551 shlibpath_overrides_runpath=yes
20552
20553 case $host_os in
20554 cygwin*)
20555 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20556 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020557
cristy73bd4a52010-10-05 11:24:23 +000020558 ;;
20559 mingw* | cegcc*)
20560 # MinGW DLLs use traditional 'lib' prefix
20561 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020562 ;;
20563 pw32*)
20564 # pw32 DLLs use 'pw' prefix rather than 'lib'
20565 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20566 ;;
20567 esac
cristyda16f162011-02-19 23:52:17 +000020568 dynamic_linker='Win32 ld.exe'
20569 ;;
20570
20571 *,cl*)
20572 # Native MSVC
20573 libname_spec='$name'
20574 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20575 library_names_spec='${libname}.dll.lib'
20576
20577 case $build_os in
20578 mingw*)
20579 sys_lib_search_path_spec=
20580 lt_save_ifs=$IFS
20581 IFS=';'
20582 for lt_path in $LIB
20583 do
20584 IFS=$lt_save_ifs
20585 # Let DOS variable expansion print the short 8.3 style file name.
20586 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20587 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20588 done
20589 IFS=$lt_save_ifs
20590 # Convert to MSYS style.
20591 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20592 ;;
20593 cygwin*)
20594 # Convert to unix form, then to dos form, then back to unix form
20595 # but this time dos style (no spaces!) so that the unix form looks
20596 # like /cygdrive/c/PROGRA~1:/cygdr...
20597 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20598 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20599 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20600 ;;
20601 *)
20602 sys_lib_search_path_spec="$LIB"
20603 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20604 # It is most probably a Windows format PATH.
20605 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20606 else
20607 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20608 fi
20609 # FIXME: find the short name or the path components, as spaces are
20610 # common. (e.g. "Program Files" -> "PROGRA~1")
20611 ;;
20612 esac
20613
20614 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20615 postinstall_cmds='base_file=`basename \${file}`~
20616 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20617 dldir=$destdir/`dirname \$dlpath`~
20618 test -d \$dldir || mkdir -p \$dldir~
20619 $install_prog $dir/$dlname \$dldir/$dlname'
20620 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20621 dlpath=$dir/\$dldll~
20622 $RM \$dlpath'
20623 shlibpath_overrides_runpath=yes
20624 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020625 ;;
20626
20627 *)
cristyda16f162011-02-19 23:52:17 +000020628 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020629 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020630 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020631 ;;
20632 esac
cristy73bd4a52010-10-05 11:24:23 +000020633 # FIXME: first we should search . and the directory the executable is in
20634 shlibpath_var=PATH
20635 ;;
20636
20637darwin* | rhapsody*)
20638 dynamic_linker="$host_os dyld"
20639 version_type=darwin
20640 need_lib_prefix=no
20641 need_version=no
20642 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20643 soname_spec='${libname}${release}${major}$shared_ext'
20644 shlibpath_overrides_runpath=yes
20645 shlibpath_var=DYLD_LIBRARY_PATH
20646 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20647
20648 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20649 ;;
20650
20651dgux*)
cristy99bd5232011-12-07 14:38:20 +000020652 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020653 need_lib_prefix=no
20654 need_version=no
20655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20656 soname_spec='${libname}${release}${shared_ext}$major'
20657 shlibpath_var=LD_LIBRARY_PATH
20658 ;;
20659
cristy73bd4a52010-10-05 11:24:23 +000020660freebsd* | dragonfly*)
20661 # DragonFly does not have aout. When/if they implement a new
20662 # versioning mechanism, adjust this.
20663 if test -x /usr/bin/objformat; then
20664 objformat=`/usr/bin/objformat`
20665 else
20666 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020667 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020668 *) objformat=elf ;;
20669 esac
20670 fi
20671 version_type=freebsd-$objformat
20672 case $version_type in
20673 freebsd-elf*)
20674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20675 need_version=no
20676 need_lib_prefix=no
20677 ;;
20678 freebsd-*)
20679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20680 need_version=yes
20681 ;;
20682 esac
20683 shlibpath_var=LD_LIBRARY_PATH
20684 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020685 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020686 shlibpath_overrides_runpath=yes
20687 ;;
20688 freebsd3.[01]* | freebsdelf3.[01]*)
20689 shlibpath_overrides_runpath=yes
20690 hardcode_into_libs=yes
20691 ;;
20692 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20693 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20694 shlibpath_overrides_runpath=no
20695 hardcode_into_libs=yes
20696 ;;
20697 *) # from 4.6 on, and DragonFly
20698 shlibpath_overrides_runpath=yes
20699 hardcode_into_libs=yes
20700 ;;
20701 esac
20702 ;;
20703
20704gnu*)
cristy99bd5232011-12-07 14:38:20 +000020705 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020706 need_lib_prefix=no
20707 need_version=no
20708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20709 soname_spec='${libname}${release}${shared_ext}$major'
20710 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020711 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020712 hardcode_into_libs=yes
20713 ;;
20714
cristy0c60a692010-11-04 01:09:47 +000020715haiku*)
cristy99bd5232011-12-07 14:38:20 +000020716 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020717 need_lib_prefix=no
20718 need_version=no
20719 dynamic_linker="$host_os runtime_loader"
20720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20721 soname_spec='${libname}${release}${shared_ext}$major'
20722 shlibpath_var=LIBRARY_PATH
20723 shlibpath_overrides_runpath=yes
20724 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20725 hardcode_into_libs=yes
20726 ;;
20727
cristy73bd4a52010-10-05 11:24:23 +000020728hpux9* | hpux10* | hpux11*)
20729 # Give a soname corresponding to the major version so that dld.sl refuses to
20730 # link against other versions.
20731 version_type=sunos
20732 need_lib_prefix=no
20733 need_version=no
20734 case $host_cpu in
20735 ia64*)
20736 shrext_cmds='.so'
20737 hardcode_into_libs=yes
20738 dynamic_linker="$host_os dld.so"
20739 shlibpath_var=LD_LIBRARY_PATH
20740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20742 soname_spec='${libname}${release}${shared_ext}$major'
20743 if test "X$HPUX_IA64_MODE" = X32; then
20744 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20745 else
20746 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20747 fi
20748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20749 ;;
20750 hppa*64*)
20751 shrext_cmds='.sl'
20752 hardcode_into_libs=yes
20753 dynamic_linker="$host_os dld.sl"
20754 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20757 soname_spec='${libname}${release}${shared_ext}$major'
20758 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20760 ;;
20761 *)
20762 shrext_cmds='.sl'
20763 dynamic_linker="$host_os dld.sl"
20764 shlibpath_var=SHLIB_PATH
20765 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20767 soname_spec='${libname}${release}${shared_ext}$major'
20768 ;;
20769 esac
cristy0c60a692010-11-04 01:09:47 +000020770 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020771 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020772 # or fails outright, so override atomically:
20773 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020774 ;;
20775
20776interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020777 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020778 need_lib_prefix=no
20779 need_version=no
20780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20781 soname_spec='${libname}${release}${shared_ext}$major'
20782 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20783 shlibpath_var=LD_LIBRARY_PATH
20784 shlibpath_overrides_runpath=no
20785 hardcode_into_libs=yes
20786 ;;
20787
20788irix5* | irix6* | nonstopux*)
20789 case $host_os in
20790 nonstopux*) version_type=nonstopux ;;
20791 *)
20792 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020793 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020794 else
20795 version_type=irix
20796 fi ;;
20797 esac
20798 need_lib_prefix=no
20799 need_version=no
20800 soname_spec='${libname}${release}${shared_ext}$major'
20801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20802 case $host_os in
20803 irix5* | nonstopux*)
20804 libsuff= shlibsuff=
20805 ;;
20806 *)
20807 case $LD in # libtool.m4 will add one of these switches to LD
20808 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20809 libsuff= shlibsuff= libmagic=32-bit;;
20810 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20811 libsuff=32 shlibsuff=N32 libmagic=N32;;
20812 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20813 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20814 *) libsuff= shlibsuff= libmagic=never-match;;
20815 esac
20816 ;;
20817 esac
20818 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20819 shlibpath_overrides_runpath=no
20820 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20821 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20822 hardcode_into_libs=yes
20823 ;;
20824
20825# No shared lib support for Linux oldld, aout, or coff.
20826linux*oldld* | linux*aout* | linux*coff*)
20827 dynamic_linker=no
20828 ;;
20829
cristy99bd5232011-12-07 14:38:20 +000020830# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020831linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020832 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020833 need_lib_prefix=no
20834 need_version=no
20835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20836 soname_spec='${libname}${release}${shared_ext}$major'
20837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20838 shlibpath_var=LD_LIBRARY_PATH
20839 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020840
cristy73bd4a52010-10-05 11:24:23 +000020841 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020842 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020843 $as_echo_n "(cached) " >&6
20844else
20845 lt_cv_shlibpath_overrides_runpath=no
20846 save_LDFLAGS=$LDFLAGS
20847 save_libdir=$libdir
20848 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20849 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020851/* end confdefs.h. */
20852
20853int
20854main ()
20855{
20856
20857 ;
20858 return 0;
20859}
20860_ACEOF
20861if ac_fn_cxx_try_link "$LINENO"; then :
20862 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020863 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020864fi
20865fi
20866rm -f core conftest.err conftest.$ac_objext \
20867 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020868 LDFLAGS=$save_LDFLAGS
20869 libdir=$save_libdir
20870
20871fi
20872
20873 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020874
20875 # This implies no fast_install, which is unacceptable.
20876 # Some rework will be needed to allow for fast_install
20877 # before this can be enabled.
20878 hardcode_into_libs=yes
20879
20880 # Add ABI-specific directories to the system library path.
20881 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20882
20883 # Append ld.so.conf contents to the search path
20884 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020885 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 +000020886 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020887
cristy73bd4a52010-10-05 11:24:23 +000020888 fi
20889
20890 # We used to test for /lib/ld.so.1 and disable shared libraries on
20891 # powerpc, because MkLinux only supported shared libraries with the
20892 # GNU dynamic linker. Since this was broken with cross compilers,
20893 # most powerpc-linux boxes support dynamic linking these days and
20894 # people can always --disable-shared, the test was removed, and we
20895 # assume the GNU/Linux dynamic linker is in use.
20896 dynamic_linker='GNU/Linux ld.so'
20897 ;;
20898
20899netbsd*)
20900 version_type=sunos
20901 need_lib_prefix=no
20902 need_version=no
20903 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20906 dynamic_linker='NetBSD (a.out) ld.so'
20907 else
20908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20909 soname_spec='${libname}${release}${shared_ext}$major'
20910 dynamic_linker='NetBSD ld.elf_so'
20911 fi
20912 shlibpath_var=LD_LIBRARY_PATH
20913 shlibpath_overrides_runpath=yes
20914 hardcode_into_libs=yes
20915 ;;
20916
20917newsos6)
cristy99bd5232011-12-07 14:38:20 +000020918 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20920 shlibpath_var=LD_LIBRARY_PATH
20921 shlibpath_overrides_runpath=yes
20922 ;;
20923
20924*nto* | *qnx*)
20925 version_type=qnx
20926 need_lib_prefix=no
20927 need_version=no
20928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20929 soname_spec='${libname}${release}${shared_ext}$major'
20930 shlibpath_var=LD_LIBRARY_PATH
20931 shlibpath_overrides_runpath=no
20932 hardcode_into_libs=yes
20933 dynamic_linker='ldqnx.so'
20934 ;;
20935
20936openbsd*)
20937 version_type=sunos
20938 sys_lib_dlsearch_path_spec="/usr/lib"
20939 need_lib_prefix=no
20940 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20941 case $host_os in
20942 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20943 *) need_version=no ;;
20944 esac
20945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20947 shlibpath_var=LD_LIBRARY_PATH
20948 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20949 case $host_os in
20950 openbsd2.[89] | openbsd2.[89].*)
20951 shlibpath_overrides_runpath=no
20952 ;;
20953 *)
20954 shlibpath_overrides_runpath=yes
20955 ;;
20956 esac
20957 else
20958 shlibpath_overrides_runpath=yes
20959 fi
20960 ;;
20961
20962os2*)
20963 libname_spec='$name'
20964 shrext_cmds=".dll"
20965 need_lib_prefix=no
20966 library_names_spec='$libname${shared_ext} $libname.a'
20967 dynamic_linker='OS/2 ld.exe'
20968 shlibpath_var=LIBPATH
20969 ;;
20970
20971osf3* | osf4* | osf5*)
20972 version_type=osf
20973 need_lib_prefix=no
20974 need_version=no
20975 soname_spec='${libname}${release}${shared_ext}$major'
20976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20977 shlibpath_var=LD_LIBRARY_PATH
20978 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20979 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20980 ;;
20981
20982rdos*)
20983 dynamic_linker=no
20984 ;;
20985
20986solaris*)
cristy99bd5232011-12-07 14:38:20 +000020987 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020988 need_lib_prefix=no
20989 need_version=no
20990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20991 soname_spec='${libname}${release}${shared_ext}$major'
20992 shlibpath_var=LD_LIBRARY_PATH
20993 shlibpath_overrides_runpath=yes
20994 hardcode_into_libs=yes
20995 # ldd complains unless libraries are executable
20996 postinstall_cmds='chmod +x $lib'
20997 ;;
20998
20999sunos4*)
21000 version_type=sunos
21001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21002 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21003 shlibpath_var=LD_LIBRARY_PATH
21004 shlibpath_overrides_runpath=yes
21005 if test "$with_gnu_ld" = yes; then
21006 need_lib_prefix=no
21007 fi
21008 need_version=yes
21009 ;;
21010
21011sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021012 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21014 soname_spec='${libname}${release}${shared_ext}$major'
21015 shlibpath_var=LD_LIBRARY_PATH
21016 case $host_vendor in
21017 sni)
21018 shlibpath_overrides_runpath=no
21019 need_lib_prefix=no
21020 runpath_var=LD_RUN_PATH
21021 ;;
21022 siemens)
21023 need_lib_prefix=no
21024 ;;
21025 motorola)
21026 need_lib_prefix=no
21027 need_version=no
21028 shlibpath_overrides_runpath=no
21029 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21030 ;;
21031 esac
21032 ;;
21033
21034sysv4*MP*)
21035 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021036 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021037 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21038 soname_spec='$libname${shared_ext}.$major'
21039 shlibpath_var=LD_LIBRARY_PATH
21040 fi
21041 ;;
21042
21043sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21044 version_type=freebsd-elf
21045 need_lib_prefix=no
21046 need_version=no
21047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21048 soname_spec='${libname}${release}${shared_ext}$major'
21049 shlibpath_var=LD_LIBRARY_PATH
21050 shlibpath_overrides_runpath=yes
21051 hardcode_into_libs=yes
21052 if test "$with_gnu_ld" = yes; then
21053 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21054 else
21055 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21056 case $host_os in
21057 sco3.2v5*)
21058 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21059 ;;
21060 esac
21061 fi
21062 sys_lib_dlsearch_path_spec='/usr/lib'
21063 ;;
21064
21065tpf*)
21066 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021067 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021068 need_lib_prefix=no
21069 need_version=no
21070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21071 shlibpath_var=LD_LIBRARY_PATH
21072 shlibpath_overrides_runpath=no
21073 hardcode_into_libs=yes
21074 ;;
21075
21076uts4*)
cristy99bd5232011-12-07 14:38:20 +000021077 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21079 soname_spec='${libname}${release}${shared_ext}$major'
21080 shlibpath_var=LD_LIBRARY_PATH
21081 ;;
21082
21083*)
21084 dynamic_linker=no
21085 ;;
21086esac
21087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21088$as_echo "$dynamic_linker" >&6; }
21089test "$dynamic_linker" = no && can_build_shared=no
21090
21091variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21092if test "$GCC" = yes; then
21093 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21094fi
21095
21096if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21097 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21098fi
21099if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21100 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21101fi
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
cristy0c60a692010-11-04 01:09:47 +000021138
21139
cristy73bd4a52010-10-05 11:24:23 +000021140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21141$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21142hardcode_action_CXX=
21143if test -n "$hardcode_libdir_flag_spec_CXX" ||
21144 test -n "$runpath_var_CXX" ||
21145 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21146
21147 # We can hardcode non-existent directories.
21148 if test "$hardcode_direct_CXX" != no &&
21149 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21150 # have to relink, otherwise we might link with an installed library
21151 # when we should be linking with a yet-to-be-installed one
21152 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21153 test "$hardcode_minus_L_CXX" != no; then
21154 # Linking always hardcodes the temporary library directory.
21155 hardcode_action_CXX=relink
21156 else
21157 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21158 hardcode_action_CXX=immediate
21159 fi
21160else
21161 # We cannot hardcode anything, or else we can only hardcode existing
21162 # directories.
21163 hardcode_action_CXX=unsupported
21164fi
21165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21166$as_echo "$hardcode_action_CXX" >&6; }
21167
21168if test "$hardcode_action_CXX" = relink ||
21169 test "$inherit_rpath_CXX" = yes; then
21170 # Fast installation is not supported
21171 enable_fast_install=no
21172elif test "$shlibpath_overrides_runpath" = yes ||
21173 test "$enable_shared" = no; then
21174 # Fast installation is not necessary
21175 enable_fast_install=needless
21176fi
21177
21178
21179
21180
21181
21182
21183
21184 fi # test -n "$compiler"
21185
21186 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021187 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021188 LDCXX=$LD
21189 LD=$lt_save_LD
21190 GCC=$lt_save_GCC
21191 with_gnu_ld=$lt_save_with_gnu_ld
21192 lt_cv_path_LDCXX=$lt_cv_path_LD
21193 lt_cv_path_LD=$lt_save_path_LD
21194 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21195 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21196fi # test "$_lt_caught_CXX_error" != yes
21197
21198ac_ext=c
21199ac_cpp='$CPP $CPPFLAGS'
21200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21202ac_compiler_gnu=$ac_cv_c_compiler_gnu
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
cristy99bd5232011-12-07 14:38:20 +000021216
21217
cristy73bd4a52010-10-05 11:24:23 +000021218 ac_config_commands="$ac_config_commands libtool"
21219
21220
21221
21222
21223# Only expand once:
21224
21225
21226
cristy3ed852e2009-09-05 21:47:34 +000021227
21228
cristy3ed852e2009-09-05 21:47:34 +000021229# Check to see if building shared libraries
21230libtool_build_shared_libs='no'
21231if test "$enable_shared" = 'yes'; then
21232 libtool_build_shared_libs='yes'
21233fi
21234
21235# Check to see if building static libraries
21236libtool_build_static_libs='no'
21237if test "$enable_static" = 'yes'; then
21238 libtool_build_static_libs='yes'
21239fi
21240
cristy73bd4a52010-10-05 11:24:23 +000021241 if test "${libtool_build_shared_libs}" = 'yes'; then
21242 WITH_SHARED_LIBS_TRUE=
21243 WITH_SHARED_LIBS_FALSE='#'
21244else
21245 WITH_SHARED_LIBS_TRUE='#'
21246 WITH_SHARED_LIBS_FALSE=
21247fi
21248
cristy3ed852e2009-09-05 21:47:34 +000021249#
21250# Enable support for building loadable modules
21251#
cristyaf4cbf32012-10-16 23:47:41 +000021252build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021253
21254# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021255if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021256 withval=$with_modules; with_modules=$withval
21257else
cristy5a1cefd2010-01-06 20:42:35 +000021258 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021259fi
21260
21261
21262# Only allow building loadable modules if we are building shared libraries
21263if test "$with_modules" != 'no' ; then
21264 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021265 { $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 +000021266$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021267 build_modules='no'
21268 else
21269 build_modules='yes'
21270 fi
cristy3ed852e2009-09-05 21:47:34 +000021271fi
cristyc6722092012-10-14 00:19:31 +000021272if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021273
cristy8b350f62009-11-15 23:12:43 +000021274$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021275
cristyfa161182012-12-19 15:45:28 +000021276 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021277fi
cristyc6722092012-10-14 00:19:31 +000021278 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021279 WITH_MODULES_TRUE=
21280 WITH_MODULES_FALSE='#'
21281else
21282 WITH_MODULES_TRUE='#'
21283 WITH_MODULES_FALSE=
21284fi
21285
cristy3ed852e2009-09-05 21:47:34 +000021286
cristy3ed852e2009-09-05 21:47:34 +000021287# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021288# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021289# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021290if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021291 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21292else
21293 enable_delegate_build='no'
21294fi
21295
21296
21297# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021298if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021299 enableval=$enable_deprecated; enable_deprecated=$enableval
21300else
21301 enable_deprecated='no'
21302fi
21303
21304
21305if test "$enable_deprecated" = 'yes'; then
21306
cristy8b350f62009-11-15 23:12:43 +000021307$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021308
21309else
21310 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21311fi
21312
21313# Build a version of ImageMagick which operates uninstalled.
21314# Used to build distributions located via MAGICK_HOME / executable path
21315# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021316if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021317 enableval=$enable_installed; enable_installed=$enableval
21318else
21319 enable_installed='yes'
21320fi
21321
21322
21323if test "$enable_installed" = 'yes'; then
21324
cristy8b350f62009-11-15 23:12:43 +000021325$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021326
21327else
21328 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21329fi
21330
21331# Permit enciphering and deciphering image pixels.
21332# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021333if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021334 enableval=$enable_cipher; enable_cipher=$enableval
21335else
21336 enable_cipher='yes'
21337fi
21338
21339
21340if test "$enable_cipher" = 'yes'; then
21341
cristy8b350f62009-11-15 23:12:43 +000021342$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021343
21344fi
21345
cristy6e3607c2011-09-13 13:59:17 +000021346# Build a zero-configuration version of ImageMagick.
21347# Check whether --enable-zero-configuration was given.
21348if test "${enable_zero_configuration+set}" = set; then :
21349 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021350else
cristy6e3607c2011-09-13 13:59:17 +000021351 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021352fi
21353
21354
cristy6e3607c2011-09-13 13:59:17 +000021355if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021356
cristy6e3607c2011-09-13 13:59:17 +000021357$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021358
cristy81af5702011-09-13 14:20:58 +000021359 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021360fi
21361
21362# Build a high dynamic range version of ImageMagick.
21363# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021364if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021365 enableval=$enable_hdri; enable_hdri=$enableval
21366else
cristy191c0b72012-08-12 16:29:52 +000021367 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021368fi
21369
21370
21371MAGICK_HDRI=""
21372if test "$enable_hdri" = 'yes'; then
21373 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021374 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021375 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021376else
21377 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021378fi
21379
cristye52f12f2012-12-31 15:32:36 +000021380cat >>confdefs.h <<_ACEOF
21381#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21382_ACEOF
21383
21384MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21385CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021386CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021387
cristy3ed852e2009-09-05 21:47:34 +000021388# Build a version of ImageMagick with assert statements.
21389# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021390if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021391 enableval=$enable_assert; enable_assert=$enableval
21392else
21393 enable_assert='yes'
21394fi
21395
21396
21397if test "$enable_assert" = 'no'; then
21398
cristy8b350f62009-11-15 23:12:43 +000021399$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021400
21401fi
21402
cristya448bd22011-10-14 12:38:13 +000021403# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021404
21405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21406$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21407 # Check whether --enable-maintainer-mode was given.
21408if test "${enable_maintainer_mode+set}" = set; then :
21409 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21410else
21411 USE_MAINTAINER_MODE=no
21412fi
21413
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21415$as_echo "$USE_MAINTAINER_MODE" >&6; }
21416 if test $USE_MAINTAINER_MODE = yes; then
21417 MAINTAINER_MODE_TRUE=
21418 MAINTAINER_MODE_FALSE='#'
21419else
21420 MAINTAINER_MODE_TRUE='#'
21421 MAINTAINER_MODE_FALSE=
21422fi
21423
21424 MAINT=$MAINTAINER_MODE_TRUE
21425
21426
cristy3ed852e2009-09-05 21:47:34 +000021427
cristy944e51f2013-04-16 18:45:02 +000021428# Enable hugepages support
21429# Check whether --enable-hugepages was given.
21430if test "${enable_hugepages+set}" = set; then :
21431 enableval=$enable_hugepages; enable_hugepages=$enableval
21432else
21433 enable_hugepages='no'
21434fi
21435
21436
cristy3ed852e2009-09-05 21:47:34 +000021437# Enable ccmalloc memory debugging support
21438# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021439if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021440 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21441else
21442 enable_ccmalloc='no'
21443fi
21444
21445
21446# Enable Electric Fence memory debugging support
21447# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021448if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021449 enableval=$enable_efence; enable_efence=$enableval
21450else
21451 enable_efence='no'
21452fi
21453
21454
21455# Enable prof-based profiling support
21456# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021457if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021458 enableval=$enable_prof; enable_prof=$enableval
21459else
21460 enable_prof='no'
21461fi
21462
21463
21464# Enable gprof-based profiling support
21465# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021466if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021467 enableval=$enable_gprof; enable_gprof=$enableval
21468else
21469 enable_gprof='no'
21470fi
21471
21472
21473# Enable gcov-based profiling support
21474# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021475if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021476 enableval=$enable_gcov; enable_gcov=$enableval
21477else
21478 enable_gcov='no'
21479fi
21480
21481
21482enable_profiling='no'
21483if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21484 enable_profiling='yes'
21485 if test "$libtool_build_shared_libs" = 'yes'; then
21486 echo "Warning: Can not profile code using shared libraries"
21487 fi
21488fi
21489
21490# Magick API method prefix
21491
21492# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021493if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021494 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021495else
cristyfc3d0222012-02-07 15:05:57 +000021496 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021497fi
21498
21499
cristyfc3d0222012-02-07 15:05:57 +000021500if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021501
21502cat >>confdefs.h <<_ACEOF
21503#define NAMESPACE_PREFIX $with_method_prefix
21504_ACEOF
21505
cristyfc3d0222012-02-07 15:05:57 +000021506 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021507fi
21508
cristy71d8c202012-03-20 17:05:01 +000021509# Enable legacy support (default no)
21510# Check whether --enable-legacy-support was given.
21511if test "${enable_legacy_support+set}" = set; then :
21512 enableval=$enable_legacy_support; with_legacy_support=$enableval
21513else
21514 with_legacy_support='no'
21515fi
21516
21517 if test "$with_legacy_support" != 'no'; then
21518 LEGACY_SUPPORT_TRUE=
21519 LEGACY_SUPPORT_FALSE='#'
21520else
21521 LEGACY_SUPPORT_TRUE='#'
21522 LEGACY_SUPPORT_FALSE=
21523fi
21524
21525
cristy3ed852e2009-09-05 21:47:34 +000021526# Number of bits in a Quantum
21527
21528# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021529if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021530 withval=$with_quantum_depth; with_quantum_depth=$withval
21531else
21532 with_quantum_depth=16
21533fi
21534
21535
21536if test "$with_quantum_depth" != '8'; then
21537 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21538fi
21539
21540case "${with_quantum_depth}" in
21541 8 ) ;;
21542 16 ) ;;
21543 32 ) ;;
21544 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021545 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021546esac
21547QUANTUM_DEPTH="$with_quantum_depth"
21548
21549cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021550#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021551_ACEOF
21552
cristya371edf2013-02-06 13:42:17 +000021553MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021554CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021555CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021556
cristy01ff9f32012-12-01 18:15:29 +000021557# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021558MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021559if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021560 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021561fi
cristy01ff9f32012-12-01 18:15:29 +000021562
21563
cristy3ed852e2009-09-05 21:47:34 +000021564# Set pixel cache threshold
21565
21566# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021567if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021568 withval=$with_cache; with_cache=$withval
21569else
21570 with_cache=''
21571fi
21572
21573
21574if test "$with_cache" != ''; then
21575
21576cat >>confdefs.h <<_ACEOF
21577#define PixelCacheThreshold $with_cache
21578_ACEOF
21579
21580 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21581fi
21582
21583# Disable/Enable support for full delegate paths
21584
21585# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021586if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021587 withval=$with_frozenpaths; with_frozenpaths=$withval
21588else
21589 with_frozenpaths='no'
21590fi
21591
21592
21593# Enable build/install of Magick++
21594
21595# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021596if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021597 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21598else
21599 with_magick_plus_plus='yes'
21600fi
21601
21602
cristy3a75f062012-09-08 23:29:40 +000021603# Encode the this name into the shared library.
21604
21605# Check whether --with-package-release-name was given.
21606if test "${with_package_release_name+set}" = set; then :
21607 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21608fi
21609
21610
21611
cristy3ed852e2009-09-05 21:47:34 +000021612# Disable build/install of PerlMagick.
21613
21614# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021615if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021616 withval=$with_perl; with_perl=$withval
21617else
cristyb5f4e2f2010-04-25 00:49:11 +000021618 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021619fi
21620
21621
21622# Options to pass when configuring PerlMagick
21623
21624# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021625if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021626 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021627fi
21628
21629
cristy3ed852e2009-09-05 21:47:34 +000021630
21631# Enable umem, object-caching memory allocation library.
21632
21633# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021634if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021635 withval=$with_umem; with_umem=$withval
21636else
21637 with_umem='no'
21638fi
21639
21640if test "$with_umem" != 'yes' ; then
21641 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21642fi
21643
21644#
21645# Specify path to shared libstdc++ if not in normal location
21646#
21647
21648# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021649if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021650 withval=$with_libstdc; with_libstdc=$withval
21651else
21652 with_libstdc=''
21653fi
21654
21655
21656if test "$with_libstdc" != ''; then
21657 if test -d "$with_libstdc"; then
21658 LIBSTDCLDFLAGS="-L$with_libstdc"
21659 fi
21660fi
21661
21662
21663# Does gcc required -traditional?
21664if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021666$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021667if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021668 $as_echo_n "(cached) " >&6
21669else
21670 ac_pattern="Autoconf.*'x'"
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 <sgtty.h>
21674Autoconf TIOCGETP
21675_ACEOF
21676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021677 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021678 ac_cv_prog_gcc_traditional=yes
21679else
21680 ac_cv_prog_gcc_traditional=no
21681fi
21682rm -f conftest*
21683
21684
21685 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021687/* end confdefs.h. */
21688#include <termio.h>
21689Autoconf TCGETA
21690_ACEOF
21691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021692 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021693 ac_cv_prog_gcc_traditional=yes
21694fi
21695rm -f conftest*
21696
21697 fi
21698fi
cristy8b350f62009-11-15 23:12:43 +000021699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021700$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21701 if test $ac_cv_prog_gcc_traditional = yes; then
21702 CC="$CC -traditional"
21703 fi
21704fi
21705
21706
21707########
21708#
21709# Set defines required to build DLLs and modules using MinGW
21710#
21711########
21712# These options are set for multi-thread DLL module build
21713# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21714# module: _DLL
21715# executable/Magick++: _DLL _MAGICKMOD_
21716MODULE_EXTRA_CPPFLAGS=''
21717LIBRARY_EXTRA_CPPFLAGS=''
21718if test "${native_win32_build}" = 'yes'; then
21719 if test "${libtool_build_shared_libs}" = 'yes'; then
21720 CPPFLAGS="$CPPFLAGS -D_DLL"
21721 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21722 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21723 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021724 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021725 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21726 else
21727 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21728 fi
21729 else
21730 CPPFLAGS="$CPPFLAGS -D_LIB"
21731 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21732 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21733 fi
21734 if test "$with_threads" = 'yes'; then
21735 CPPFLAGS="$CPPFLAGS -D_MT"
21736 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21737 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21738 fi
21739fi
21740
21741
21742
21743# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021745$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021746if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021747 $as_echo_n "(cached) " >&6
21748else
cristy8b350f62009-11-15 23:12:43 +000021749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021750/* end confdefs.h. */
21751#include <stdlib.h>
21752#include <stdarg.h>
21753#include <string.h>
21754#include <float.h>
21755
21756int
21757main ()
21758{
21759
21760 ;
21761 return 0;
21762}
21763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021764if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021765 ac_cv_header_stdc=yes
21766else
cristy8b350f62009-11-15 23:12:43 +000021767 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021768fi
cristy3ed852e2009-09-05 21:47:34 +000021769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770
21771if test $ac_cv_header_stdc = yes; then
21772 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021774/* end confdefs.h. */
21775#include <string.h>
21776
21777_ACEOF
21778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021779 $EGREP "memchr" >/dev/null 2>&1; then :
21780
cristy3ed852e2009-09-05 21:47:34 +000021781else
21782 ac_cv_header_stdc=no
21783fi
21784rm -f conftest*
21785
21786fi
21787
21788if test $ac_cv_header_stdc = yes; then
21789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021791/* end confdefs.h. */
21792#include <stdlib.h>
21793
21794_ACEOF
21795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021796 $EGREP "free" >/dev/null 2>&1; then :
21797
cristy3ed852e2009-09-05 21:47:34 +000021798else
21799 ac_cv_header_stdc=no
21800fi
21801rm -f conftest*
21802
21803fi
21804
21805if test $ac_cv_header_stdc = yes; then
21806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021807 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021808 :
21809else
cristy8b350f62009-11-15 23:12:43 +000021810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021811/* end confdefs.h. */
21812#include <ctype.h>
21813#include <stdlib.h>
21814#if ((' ' & 0x0FF) == 0x020)
21815# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21816# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21817#else
21818# define ISLOWER(c) \
21819 (('a' <= (c) && (c) <= 'i') \
21820 || ('j' <= (c) && (c) <= 'r') \
21821 || ('s' <= (c) && (c) <= 'z'))
21822# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21823#endif
21824
21825#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21826int
21827main ()
21828{
21829 int i;
21830 for (i = 0; i < 256; i++)
21831 if (XOR (islower (i), ISLOWER (i))
21832 || toupper (i) != TOUPPER (i))
21833 return 2;
21834 return 0;
21835}
21836_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021837if ac_fn_c_try_run "$LINENO"; then :
21838
cristy3ed852e2009-09-05 21:47:34 +000021839else
cristy8b350f62009-11-15 23:12:43 +000021840 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021841fi
cristy8b350f62009-11-15 23:12:43 +000021842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21843 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021844fi
21845
cristy3ed852e2009-09-05 21:47:34 +000021846fi
21847fi
cristy8b350f62009-11-15 23:12:43 +000021848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021849$as_echo "$ac_cv_header_stdc" >&6; }
21850if test $ac_cv_header_stdc = yes; then
21851
cristy8b350f62009-11-15 23:12:43 +000021852$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021853
21854fi
21855
21856if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021857 { $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 +000021858 header files. Compilation cannot proceed. Please install the ANSI C
21859 headers and rerun this script." >&5
21860$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21861 header files. Compilation cannot proceed. Please install the ANSI C
21862 headers and rerun this script." >&2;};
21863fi
cristya0b81c32010-01-22 02:54:33 +000021864
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21866$as_echo_n "checking whether to enable assertions... " >&6; }
21867 # Check whether --enable-assert was given.
21868if test "${enable_assert+set}" = set; then :
21869 enableval=$enable_assert; ac_enable_assert=$enableval
21870 if test "x$enableval" = xno; then :
21871
21872$as_echo "#define NDEBUG 1" >>confdefs.h
21873
21874elif test "x$enableval" != xyes; then :
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21876$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21877 ac_enable_assert=yes
21878fi
21879else
21880 ac_enable_assert=yes
21881fi
21882
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21884$as_echo "$ac_enable_assert" >&6; }
21885
cristy3ed852e2009-09-05 21:47:34 +000021886ac_header_dirent=no
21887for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21888 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021890$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021891if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021892 $as_echo_n "(cached) " >&6
21893else
cristy8b350f62009-11-15 23:12:43 +000021894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021895/* end confdefs.h. */
21896#include <sys/types.h>
21897#include <$ac_hdr>
21898
21899int
21900main ()
21901{
21902if ((DIR *) 0)
21903return 0;
21904 ;
21905 return 0;
21906}
21907_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021908if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021909 eval "$as_ac_Header=yes"
21910else
cristy8b350f62009-11-15 23:12:43 +000021911 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021912fi
cristy3ed852e2009-09-05 21:47:34 +000021913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21914fi
cristy8b350f62009-11-15 23:12:43 +000021915eval ac_res=\$$as_ac_Header
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021917$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021918if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021919 cat >>confdefs.h <<_ACEOF
21920#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21921_ACEOF
21922
21923ac_header_dirent=$ac_hdr; break
21924fi
21925
21926done
21927# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21928if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021930$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021931if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021932 $as_echo_n "(cached) " >&6
21933else
21934 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021936/* end confdefs.h. */
21937
21938/* Override any GCC internal prototype to avoid an error.
21939 Use char because int might match the return type of a GCC
21940 builtin and then its argument prototype would still apply. */
21941#ifdef __cplusplus
21942extern "C"
21943#endif
21944char opendir ();
21945int
21946main ()
21947{
21948return opendir ();
21949 ;
21950 return 0;
21951}
21952_ACEOF
21953for ac_lib in '' dir; do
21954 if test -z "$ac_lib"; then
21955 ac_res="none required"
21956 else
21957 ac_res=-l$ac_lib
21958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21959 fi
cristy8b350f62009-11-15 23:12:43 +000021960 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021961 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021962fi
cristy8b350f62009-11-15 23:12:43 +000021963rm -f core conftest.err conftest.$ac_objext \
21964 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021965 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021966 break
21967fi
21968done
cristyda16f162011-02-19 23:52:17 +000021969if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021970
cristy3ed852e2009-09-05 21:47:34 +000021971else
21972 ac_cv_search_opendir=no
21973fi
21974rm conftest.$ac_ext
21975LIBS=$ac_func_search_save_LIBS
21976fi
cristy8b350f62009-11-15 23:12:43 +000021977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021978$as_echo "$ac_cv_search_opendir" >&6; }
21979ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021980if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21982
21983fi
21984
21985else
cristy8b350f62009-11-15 23:12:43 +000021986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021987$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021988if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021989 $as_echo_n "(cached) " >&6
21990else
21991 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021993/* end confdefs.h. */
21994
21995/* Override any GCC internal prototype to avoid an error.
21996 Use char because int might match the return type of a GCC
21997 builtin and then its argument prototype would still apply. */
21998#ifdef __cplusplus
21999extern "C"
22000#endif
22001char opendir ();
22002int
22003main ()
22004{
22005return opendir ();
22006 ;
22007 return 0;
22008}
22009_ACEOF
22010for ac_lib in '' x; do
22011 if test -z "$ac_lib"; then
22012 ac_res="none required"
22013 else
22014 ac_res=-l$ac_lib
22015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22016 fi
cristy8b350f62009-11-15 23:12:43 +000022017 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022018 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022019fi
cristy8b350f62009-11-15 23:12:43 +000022020rm -f core conftest.err conftest.$ac_objext \
22021 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022022 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022023 break
22024fi
22025done
cristyda16f162011-02-19 23:52:17 +000022026if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022027
cristy3ed852e2009-09-05 21:47:34 +000022028else
22029 ac_cv_search_opendir=no
22030fi
22031rm conftest.$ac_ext
22032LIBS=$ac_func_search_save_LIBS
22033fi
cristy8b350f62009-11-15 23:12:43 +000022034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022035$as_echo "$ac_cv_search_opendir" >&6; }
22036ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022037if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22039
22040fi
22041
22042fi
22043
22044
22045# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000022046for 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 +000022047do :
22048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22049ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022050if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022051 cat >>confdefs.h <<_ACEOF
22052#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22053_ACEOF
22054
22055fi
22056
22057done
22058
22059
22060########
22061#
22062# Checks for typedefs, structures, and compiler characteristics.
22063#
22064########
22065
cristy8b350f62009-11-15 23:12:43 +000022066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022067$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022068if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022069 $as_echo_n "(cached) " >&6
22070else
cristy8b350f62009-11-15 23:12:43 +000022071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022072/* end confdefs.h. */
22073
cristy14fefe52012-05-21 00:59:18 +000022074 #include <stdbool.h>
22075 #ifndef bool
22076 "error: bool is not defined"
22077 #endif
22078 #ifndef false
22079 "error: false is not defined"
22080 #endif
22081 #if false
22082 "error: false is not 0"
22083 #endif
22084 #ifndef true
22085 "error: true is not defined"
22086 #endif
22087 #if true != 1
22088 "error: true is not 1"
22089 #endif
22090 #ifndef __bool_true_false_are_defined
22091 "error: __bool_true_false_are_defined is not defined"
22092 #endif
cristy3ed852e2009-09-05 21:47:34 +000022093
cristy14fefe52012-05-21 00:59:18 +000022094 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022095
cristy14fefe52012-05-21 00:59:18 +000022096 char a[true == 1 ? 1 : -1];
22097 char b[false == 0 ? 1 : -1];
22098 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22099 char d[(bool) 0.5 == true ? 1 : -1];
22100 /* See body of main program for 'e'. */
22101 char f[(_Bool) 0.0 == false ? 1 : -1];
22102 char g[true];
22103 char h[sizeof (_Bool)];
22104 char i[sizeof s.t];
22105 enum { j = false, k = true, l = false * true, m = true * 256 };
22106 /* The following fails for
22107 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22108 _Bool n[m];
22109 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22110 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22111 /* Catch a bug in an HP-UX C compiler. See
22112 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22113 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22114 */
22115 _Bool q = true;
22116 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022117
22118int
22119main ()
22120{
22121
cristy14fefe52012-05-21 00:59:18 +000022122 bool e = &s;
22123 *pq |= q;
22124 *pq |= ! q;
22125 /* Refer to every declared value, to avoid compiler optimizations. */
22126 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22127 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022128
22129 ;
22130 return 0;
22131}
22132_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022133if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022134 ac_cv_header_stdbool_h=yes
22135else
cristy8b350f62009-11-15 23:12:43 +000022136 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022137fi
cristy3ed852e2009-09-05 21:47:34 +000022138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22139fi
cristy8b350f62009-11-15 23:12:43 +000022140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022141$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022142 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022143if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022144
22145cat >>confdefs.h <<_ACEOF
22146#define HAVE__BOOL 1
22147_ACEOF
22148
22149
22150fi
22151
cristy14fefe52012-05-21 00:59:18 +000022152
cristy3ed852e2009-09-05 21:47:34 +000022153if test $ac_cv_header_stdbool_h = yes; then
22154
cristy8b350f62009-11-15 23:12:43 +000022155$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022156
22157fi
22158
cristy8b350f62009-11-15 23:12:43 +000022159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022160$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022161if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022162 $as_echo_n "(cached) " >&6
22163else
cristy8b350f62009-11-15 23:12:43 +000022164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022165/* end confdefs.h. */
22166
22167int
22168main ()
22169{
22170
22171volatile int x;
22172int * volatile y = (int *) 0;
22173return !x && !y;
22174 ;
22175 return 0;
22176}
22177_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022178if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022179 ac_cv_c_volatile=yes
22180else
cristy8b350f62009-11-15 23:12:43 +000022181 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022182fi
cristy3ed852e2009-09-05 21:47:34 +000022183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22184fi
cristy8b350f62009-11-15 23:12:43 +000022185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022186$as_echo "$ac_cv_c_volatile" >&6; }
22187if test $ac_cv_c_volatile = no; then
22188
cristy8b350f62009-11-15 23:12:43 +000022189$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022190
22191fi
22192
cristy8b350f62009-11-15 23:12:43 +000022193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022194$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022195if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022196 $as_echo_n "(cached) " >&6
22197else
cristy8b350f62009-11-15 23:12:43 +000022198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022199/* end confdefs.h. */
22200#define x(y) #y
22201
22202char *s = x(teststring);
22203_ACEOF
22204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022205 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022206 ac_cv_c_stringize=no
22207else
22208 ac_cv_c_stringize=yes
22209fi
22210rm -f conftest*
22211
22212fi
cristy8b350f62009-11-15 23:12:43 +000022213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022214$as_echo "$ac_cv_c_stringize" >&6; }
22215if test $ac_cv_c_stringize = yes; then
22216
cristy8b350f62009-11-15 23:12:43 +000022217$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022218
22219fi
22220
cristy8b350f62009-11-15 23:12:43 +000022221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022222$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022223if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022224 $as_echo_n "(cached) " >&6
22225else
cristy8b350f62009-11-15 23:12:43 +000022226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022227/* end confdefs.h. */
22228#include <sys/types.h>
22229#include <sys/stat.h>
22230
22231#if defined S_ISBLK && defined S_IFDIR
22232extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22233#endif
22234
22235#if defined S_ISBLK && defined S_IFCHR
22236extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22237#endif
22238
22239#if defined S_ISLNK && defined S_IFREG
22240extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22241#endif
22242
22243#if defined S_ISSOCK && defined S_IFREG
22244extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22245#endif
22246
22247_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022248if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022249 ac_cv_header_stat_broken=no
22250else
cristy8b350f62009-11-15 23:12:43 +000022251 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022252fi
cristy3ed852e2009-09-05 21:47:34 +000022253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22254fi
cristy8b350f62009-11-15 23:12:43 +000022255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022256$as_echo "$ac_cv_header_stat_broken" >&6; }
22257if test $ac_cv_header_stat_broken = yes; then
22258
cristy8b350f62009-11-15 23:12:43 +000022259$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022260
22261fi
22262
cristy8b350f62009-11-15 23:12:43 +000022263{ $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 +000022264$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022265if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022266 $as_echo_n "(cached) " >&6
22267else
cristy8b350f62009-11-15 23:12:43 +000022268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022269/* end confdefs.h. */
22270#include <sys/types.h>
22271#include <sys/time.h>
22272#include <time.h>
22273
22274int
22275main ()
22276{
22277if ((struct tm *) 0)
22278return 0;
22279 ;
22280 return 0;
22281}
22282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022283if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022284 ac_cv_header_time=yes
22285else
cristy8b350f62009-11-15 23:12:43 +000022286 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022287fi
cristy3ed852e2009-09-05 21:47:34 +000022288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22289fi
cristy8b350f62009-11-15 23:12:43 +000022290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022291$as_echo "$ac_cv_header_time" >&6; }
22292if test $ac_cv_header_time = yes; then
22293
cristy8b350f62009-11-15 23:12:43 +000022294$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022295
22296fi
22297
cristy8b350f62009-11-15 23:12:43 +000022298{ $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 +000022299$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022300if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022301 $as_echo_n "(cached) " >&6
22302else
cristy8b350f62009-11-15 23:12:43 +000022303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022304/* end confdefs.h. */
22305#include <sys/types.h>
22306#include <time.h>
22307
22308int
22309main ()
22310{
22311struct tm tm;
22312 int *p = &tm.tm_sec;
22313 return !p;
22314 ;
22315 return 0;
22316}
22317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022318if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022319 ac_cv_struct_tm=time.h
22320else
cristy8b350f62009-11-15 23:12:43 +000022321 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022322fi
cristy3ed852e2009-09-05 21:47:34 +000022323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22324fi
cristy8b350f62009-11-15 23:12:43 +000022325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022326$as_echo "$ac_cv_struct_tm" >&6; }
22327if test $ac_cv_struct_tm = sys/time.h; then
22328
cristy8b350f62009-11-15 23:12:43 +000022329$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022330
22331fi
22332
cristy92703d82010-04-26 00:18:18 +000022333ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22334#include <$ac_cv_struct_tm>
22335
22336"
cristyda16f162011-02-19 23:52:17 +000022337if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022338
22339cat >>confdefs.h <<_ACEOF
22340#define HAVE_STRUCT_TM_TM_ZONE 1
22341_ACEOF
22342
22343
22344fi
22345
22346if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22347
22348$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22349
22350else
22351 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22352"
cristyda16f162011-02-19 23:52:17 +000022353if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022354 ac_have_decl=1
22355else
22356 ac_have_decl=0
22357fi
22358
22359cat >>confdefs.h <<_ACEOF
22360#define HAVE_DECL_TZNAME $ac_have_decl
22361_ACEOF
22362
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22364$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022365if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022366 $as_echo_n "(cached) " >&6
22367else
22368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22369/* end confdefs.h. */
22370#include <time.h>
22371#if !HAVE_DECL_TZNAME
22372extern char *tzname[];
22373#endif
22374
22375int
22376main ()
22377{
22378return tzname[0][0];
22379 ;
22380 return 0;
22381}
22382_ACEOF
22383if ac_fn_c_try_link "$LINENO"; then :
22384 ac_cv_var_tzname=yes
22385else
22386 ac_cv_var_tzname=no
22387fi
22388rm -f core conftest.err conftest.$ac_objext \
22389 conftest$ac_exeext conftest.$ac_ext
22390fi
22391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22392$as_echo "$ac_cv_var_tzname" >&6; }
22393 if test $ac_cv_var_tzname = yes; then
22394
22395$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22396
22397 fi
22398fi
22399
cristy8b350f62009-11-15 23:12:43 +000022400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022401$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022402if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022403 $as_echo_n "(cached) " >&6
22404else
22405 echo '#! /bin/cat
22406exit 69
22407' >conftest
22408chmod u+x conftest
22409(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22410if test $? -ne 69; then
22411 ac_cv_sys_interpreter=yes
22412else
22413 ac_cv_sys_interpreter=no
22414fi
22415rm -f conftest
22416fi
cristy8b350f62009-11-15 23:12:43 +000022417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022418$as_echo "$ac_cv_sys_interpreter" >&6; }
22419interpval=$ac_cv_sys_interpreter
22420
22421
cristye80f9cb2013-01-09 01:09:31 +000022422#
22423# Checks for language qualifiers and semantics.
22424#
22425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22426$as_echo_n "checking whether char is unsigned... " >&6; }
22427if ${ac_cv_c_char_unsigned+:} false; then :
22428 $as_echo_n "(cached) " >&6
22429else
22430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22431/* end confdefs.h. */
22432$ac_includes_default
22433int
22434main ()
22435{
22436static int test_array [1 - 2 * !(((char) -1) < 0)];
22437test_array [0] = 0;
22438return test_array [0];
22439
22440 ;
22441 return 0;
22442}
22443_ACEOF
22444if ac_fn_c_try_compile "$LINENO"; then :
22445 ac_cv_c_char_unsigned=no
22446else
22447 ac_cv_c_char_unsigned=yes
22448fi
22449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22450fi
22451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22452$as_echo "$ac_cv_c_char_unsigned" >&6; }
22453if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22454 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22455
22456fi
22457
22458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22459$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22460if ${ac_cv_c_const+:} false; then :
22461 $as_echo_n "(cached) " >&6
22462else
22463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22464/* end confdefs.h. */
22465
22466int
22467main ()
22468{
22469
22470#ifndef __cplusplus
22471 /* Ultrix mips cc rejects this sort of thing. */
22472 typedef int charset[2];
22473 const charset cs = { 0, 0 };
22474 /* SunOS 4.1.1 cc rejects this. */
22475 char const *const *pcpcc;
22476 char **ppc;
22477 /* NEC SVR4.0.2 mips cc rejects this. */
22478 struct point {int x, y;};
22479 static struct point const zero = {0,0};
22480 /* AIX XL C 1.02.0.0 rejects this.
22481 It does not let you subtract one const X* pointer from another in
22482 an arm of an if-expression whose if-part is not a constant
22483 expression */
22484 const char *g = "string";
22485 pcpcc = &g + (g ? g-g : 0);
22486 /* HPUX 7.0 cc rejects these. */
22487 ++pcpcc;
22488 ppc = (char**) pcpcc;
22489 pcpcc = (char const *const *) ppc;
22490 { /* SCO 3.2v4 cc rejects this sort of thing. */
22491 char tx;
22492 char *t = &tx;
22493 char const *s = 0 ? (char *) 0 : (char const *) 0;
22494
22495 *t++ = 0;
22496 if (s) return 0;
22497 }
22498 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22499 int x[] = {25, 17};
22500 const int *foo = &x[0];
22501 ++foo;
22502 }
22503 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22504 typedef const int *iptr;
22505 iptr p = 0;
22506 ++p;
22507 }
22508 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22509 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22510 struct s { int j; const int *ap[3]; } bx;
22511 struct s *b = &bx; b->j = 5;
22512 }
22513 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22514 const int foo = 10;
22515 if (!foo) return 0;
22516 }
22517 return !cs[0] && !zero.x;
22518#endif
22519
22520 ;
22521 return 0;
22522}
22523_ACEOF
22524if ac_fn_c_try_compile "$LINENO"; then :
22525 ac_cv_c_const=yes
22526else
22527 ac_cv_c_const=no
22528fi
22529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530fi
22531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22532$as_echo "$ac_cv_c_const" >&6; }
22533if test $ac_cv_c_const = no; then
22534
22535$as_echo "#define const /**/" >>confdefs.h
22536
22537fi
22538
cristy8b350f62009-11-15 23:12:43 +000022539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022540$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022541if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022542 $as_echo_n "(cached) " >&6
22543else
22544 ac_cv_c_inline=no
22545for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022547/* end confdefs.h. */
22548#ifndef __cplusplus
22549typedef int foo_t;
22550static $ac_kw foo_t static_foo () {return 0; }
22551$ac_kw foo_t foo () {return 0; }
22552#endif
22553
22554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022555if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022556 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022557fi
cristy3ed852e2009-09-05 21:47:34 +000022558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 test "$ac_cv_c_inline" != no && break
22560done
22561
22562fi
cristy8b350f62009-11-15 23:12:43 +000022563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022564$as_echo "$ac_cv_c_inline" >&6; }
22565
cristy3ed852e2009-09-05 21:47:34 +000022566case $ac_cv_c_inline in
22567 inline | yes) ;;
22568 *)
22569 case $ac_cv_c_inline in
22570 no) ac_val=;;
22571 *) ac_val=$ac_cv_c_inline;;
22572 esac
22573 cat >>confdefs.h <<_ACEOF
22574#ifndef __cplusplus
22575#define inline $ac_val
22576#endif
22577_ACEOF
22578 ;;
22579esac
22580
cristy8b350f62009-11-15 23:12:43 +000022581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022582$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022583if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022584 $as_echo_n "(cached) " >&6
22585else
22586 ac_cv_c_restrict=no
22587 # The order here caters to the fact that C++ does not require restrict.
22588 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022590/* end confdefs.h. */
22591typedef int * int_ptr;
22592 int foo (int_ptr $ac_kw ip) {
22593 return ip[0];
22594 }
22595int
22596main ()
22597{
22598int s[1];
22599 int * $ac_kw t = s;
22600 t[0] = 0;
22601 return foo(t)
22602 ;
22603 return 0;
22604}
22605_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022606if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022607 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022608fi
cristy3ed852e2009-09-05 21:47:34 +000022609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22610 test "$ac_cv_c_restrict" != no && break
22611 done
22612
22613fi
cristy8b350f62009-11-15 23:12:43 +000022614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022615$as_echo "$ac_cv_c_restrict" >&6; }
22616
cristy3ed852e2009-09-05 21:47:34 +000022617 case $ac_cv_c_restrict in
22618 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022619 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022620 ;;
22621 *) cat >>confdefs.h <<_ACEOF
22622#define restrict $ac_cv_c_restrict
22623_ACEOF
22624 ;;
22625 esac
22626
cristye80f9cb2013-01-09 01:09:31 +000022627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22628$as_echo_n "checking for working volatile... " >&6; }
22629if ${ac_cv_c_volatile+:} false; then :
22630 $as_echo_n "(cached) " >&6
22631else
22632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22633/* end confdefs.h. */
22634
22635int
22636main ()
22637{
22638
22639volatile int x;
22640int * volatile y = (int *) 0;
22641return !x && !y;
22642 ;
22643 return 0;
22644}
22645_ACEOF
22646if ac_fn_c_try_compile "$LINENO"; then :
22647 ac_cv_c_volatile=yes
22648else
22649 ac_cv_c_volatile=no
22650fi
22651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22652fi
22653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22654$as_echo "$ac_cv_c_volatile" >&6; }
22655if test $ac_cv_c_volatile = no; then
22656
22657$as_echo "#define volatile /**/" >>confdefs.h
22658
22659fi
22660
cristy3ed852e2009-09-05 21:47:34 +000022661
22662# If words are stored with the most significant byte first (like
22663# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022665$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022666if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022667 $as_echo_n "(cached) " >&6
22668else
22669 ac_cv_c_bigendian=unknown
22670 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022672/* end confdefs.h. */
22673#ifndef __APPLE_CC__
22674 not a universal capable compiler
22675 #endif
22676 typedef int dummy;
22677
22678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022679if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022680
22681 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022682 # there are at least two -arch flags with different values.
22683 ac_arch=
22684 ac_prev=
22685 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22686 if test -n "$ac_prev"; then
22687 case $ac_word in
22688 i?86 | x86_64 | ppc | ppc64)
22689 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22690 ac_arch=$ac_word
22691 else
22692 ac_cv_c_bigendian=universal
22693 break
22694 fi
22695 ;;
22696 esac
22697 ac_prev=
22698 elif test "x$ac_word" = "x-arch"; then
22699 ac_prev=arch
22700 fi
22701 done
cristy3ed852e2009-09-05 21:47:34 +000022702fi
cristy3ed852e2009-09-05 21:47:34 +000022703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704 if test $ac_cv_c_bigendian = unknown; then
22705 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022707/* end confdefs.h. */
22708#include <sys/types.h>
22709 #include <sys/param.h>
22710
22711int
22712main ()
22713{
22714#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22715 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22716 && LITTLE_ENDIAN)
22717 bogus endian macros
22718 #endif
22719
22720 ;
22721 return 0;
22722}
22723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022724if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022725 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022727/* end confdefs.h. */
22728#include <sys/types.h>
22729 #include <sys/param.h>
22730
22731int
22732main ()
22733{
22734#if BYTE_ORDER != BIG_ENDIAN
22735 not big endian
22736 #endif
22737
22738 ;
22739 return 0;
22740}
22741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022742if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022743 ac_cv_c_bigendian=yes
22744else
cristy8b350f62009-11-15 23:12:43 +000022745 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022746fi
cristy3ed852e2009-09-05 21:47:34 +000022747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022748fi
cristy3ed852e2009-09-05 21:47:34 +000022749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22750 fi
22751 if test $ac_cv_c_bigendian = unknown; then
22752 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022754/* end confdefs.h. */
22755#include <limits.h>
22756
22757int
22758main ()
22759{
22760#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22761 bogus endian macros
22762 #endif
22763
22764 ;
22765 return 0;
22766}
22767_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022768if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022769 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022771/* end confdefs.h. */
22772#include <limits.h>
22773
22774int
22775main ()
22776{
22777#ifndef _BIG_ENDIAN
22778 not big endian
22779 #endif
22780
22781 ;
22782 return 0;
22783}
22784_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022785if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022786 ac_cv_c_bigendian=yes
22787else
cristy8b350f62009-11-15 23:12:43 +000022788 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022789fi
cristy3ed852e2009-09-05 21:47:34 +000022790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022791fi
cristy3ed852e2009-09-05 21:47:34 +000022792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22793 fi
22794 if test $ac_cv_c_bigendian = unknown; then
22795 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022796 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022797 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022799/* end confdefs.h. */
22800short int ascii_mm[] =
22801 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22802 short int ascii_ii[] =
22803 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22804 int use_ascii (int i) {
22805 return ascii_mm[i] + ascii_ii[i];
22806 }
22807 short int ebcdic_ii[] =
22808 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22809 short int ebcdic_mm[] =
22810 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22811 int use_ebcdic (int i) {
22812 return ebcdic_mm[i] + ebcdic_ii[i];
22813 }
22814 extern int foo;
22815
22816int
22817main ()
22818{
22819return use_ascii (foo) == use_ebcdic (foo);
22820 ;
22821 return 0;
22822}
22823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022824if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022825 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22826 ac_cv_c_bigendian=yes
22827 fi
22828 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22829 if test "$ac_cv_c_bigendian" = unknown; then
22830 ac_cv_c_bigendian=no
22831 else
22832 # finding both strings is unlikely to happen, but who knows?
22833 ac_cv_c_bigendian=unknown
22834 fi
22835 fi
cristy3ed852e2009-09-05 21:47:34 +000022836fi
cristy3ed852e2009-09-05 21:47:34 +000022837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838else
cristy8b350f62009-11-15 23:12:43 +000022839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022840/* end confdefs.h. */
22841$ac_includes_default
22842int
22843main ()
22844{
22845
22846 /* Are we little or big endian? From Harbison&Steele. */
22847 union
22848 {
22849 long int l;
22850 char c[sizeof (long int)];
22851 } u;
22852 u.l = 1;
22853 return u.c[sizeof (long int) - 1] == 1;
22854
22855 ;
22856 return 0;
22857}
22858_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022859if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022860 ac_cv_c_bigendian=no
22861else
cristy8b350f62009-11-15 23:12:43 +000022862 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022863fi
cristy8b350f62009-11-15 23:12:43 +000022864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22865 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022866fi
22867
cristy3ed852e2009-09-05 21:47:34 +000022868 fi
22869fi
cristy8b350f62009-11-15 23:12:43 +000022870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022871$as_echo "$ac_cv_c_bigendian" >&6; }
22872 case $ac_cv_c_bigendian in #(
22873 yes)
cristy8b350f62009-11-15 23:12:43 +000022874 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022875;; #(
22876 no)
22877 ;; #(
22878 universal)
22879
cristy8b350f62009-11-15 23:12:43 +000022880$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022881
22882 ;; #(
22883 *)
cristy98dddb52010-11-04 00:30:15 +000022884 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022885 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022886 esac
22887
22888
cristy501c8042011-05-26 17:46:28 +000022889# Define to a suitable type, if standard headers do not define it.
22890ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22891case $ac_cv_c_int8_t in #(
22892 no|yes) ;; #(
22893 *)
cristy3ed852e2009-09-05 21:47:34 +000022894
22895cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022896#define int8_t $ac_cv_c_int8_t
22897_ACEOF
22898;;
22899esac
22900
22901ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22902case $ac_cv_c_int16_t in #(
22903 no|yes) ;; #(
22904 *)
22905
22906cat >>confdefs.h <<_ACEOF
22907#define int16_t $ac_cv_c_int16_t
22908_ACEOF
22909;;
22910esac
22911
22912ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22913case $ac_cv_c_int32_t in #(
22914 no|yes) ;; #(
22915 *)
22916
22917cat >>confdefs.h <<_ACEOF
22918#define int32_t $ac_cv_c_int32_t
22919_ACEOF
22920;;
22921esac
22922
22923ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22924case $ac_cv_c_int64_t in #(
22925 no|yes) ;; #(
22926 *)
22927
22928cat >>confdefs.h <<_ACEOF
22929#define int64_t $ac_cv_c_int64_t
22930_ACEOF
22931;;
22932esac
22933
22934
cristy045228a2013-06-23 11:00:16 +000022935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22936$as_echo_n "checking for unsigned long long int... " >&6; }
22937if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022938 $as_echo_n "(cached) " >&6
22939else
cristy045228a2013-06-23 11:00:16 +000022940 ac_cv_type_unsigned_long_long_int=yes
22941 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022943/* end confdefs.h. */
22944
22945 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022946 implementations with broken preprocessors. Perhaps this can
22947 be revisited in 2012. In the meantime, code should not expect
22948 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022949 /* Test literals. */
22950 long long int ll = 9223372036854775807ll;
22951 long long int nll = -9223372036854775807LL;
22952 unsigned long long int ull = 18446744073709551615ULL;
22953 /* Test constant expressions. */
22954 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022955 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022956 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022957 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022958 int i = 63;
22959int
22960main ()
22961{
22962/* Test availability of runtime routines for shift and division. */
22963 long long int llmax = 9223372036854775807ll;
22964 unsigned long long int ullmax = 18446744073709551615ull;
22965 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022966 | (llmax / ll) | (llmax % ll)
22967 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22968 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022969 ;
22970 return 0;
22971}
22972
22973_ACEOF
22974if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022975
22976else
22977 ac_cv_type_unsigned_long_long_int=no
22978fi
22979rm -f core conftest.err conftest.$ac_objext \
22980 conftest$ac_exeext conftest.$ac_ext
22981 fi
22982fi
22983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22984$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22985 if test $ac_cv_type_unsigned_long_long_int = yes; then
22986
22987$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22988
22989 fi
22990
22991
22992
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22994$as_echo_n "checking for long long int... " >&6; }
22995if ${ac_cv_type_long_long_int+:} false; then :
22996 $as_echo_n "(cached) " >&6
22997else
cristy501c8042011-05-26 17:46:28 +000022998 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022999 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023000 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23001 if test $ac_cv_type_long_long_int = yes; then
23002 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023003 :
cristy501c8042011-05-26 17:46:28 +000023004else
23005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23006/* end confdefs.h. */
23007#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023008 #ifndef LLONG_MAX
23009 # define HALF \
23010 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23011 # define LLONG_MAX (HALF - 1 + HALF)
23012 #endif
cristy501c8042011-05-26 17:46:28 +000023013int
23014main ()
23015{
23016long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023017 int i;
23018 for (i = 0; ; i++)
23019 {
23020 long long int m = n << i;
23021 if (m >> i != n)
23022 return 1;
23023 if (LLONG_MAX / 2 < m)
23024 break;
23025 }
23026 return 0;
cristy501c8042011-05-26 17:46:28 +000023027 ;
23028 return 0;
23029}
23030_ACEOF
23031if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023032
cristy501c8042011-05-26 17:46:28 +000023033else
23034 ac_cv_type_long_long_int=no
23035fi
23036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23037 conftest.$ac_objext conftest.beam conftest.$ac_ext
23038fi
23039
cristy5ed9c6e2013-07-14 21:20:31 +000023040 fi
cristy045228a2013-06-23 11:00:16 +000023041 fi
cristy501c8042011-05-26 17:46:28 +000023042fi
23043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23044$as_echo "$ac_cv_type_long_long_int" >&6; }
23045 if test $ac_cv_type_long_long_int = yes; then
23046
23047$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23048
23049 fi
23050
23051
23052
23053 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23054if test "x$ac_cv_type_intmax_t" = xyes; then :
23055
23056$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23057
23058else
23059 test $ac_cv_type_long_long_int = yes \
23060 && ac_type='long long int' \
23061 || ac_type='long int'
23062
23063cat >>confdefs.h <<_ACEOF
23064#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023065_ACEOF
23066
23067fi
23068
23069
cristy501c8042011-05-26 17:46:28 +000023070
23071 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23072if test "x$ac_cv_type_intptr_t" = xyes; then :
23073
23074$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023075
cristy3ed852e2009-09-05 21:47:34 +000023076else
cristy501c8042011-05-26 17:46:28 +000023077 for ac_type in 'int' 'long int' 'long long int'; do
23078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23079/* end confdefs.h. */
23080$ac_includes_default
23081int
23082main ()
23083{
23084static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023085test_array [0] = 0;
23086return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023087
23088 ;
23089 return 0;
23090}
23091_ACEOF
23092if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023093
23094cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023095#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023096_ACEOF
23097
cristy501c8042011-05-26 17:46:28 +000023098 ac_type=
23099fi
23100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23101 test -z "$ac_type" && break
23102 done
cristy3ed852e2009-09-05 21:47:34 +000023103fi
23104
23105
cristy3ed852e2009-09-05 21:47:34 +000023106
cristy501c8042011-05-26 17:46:28 +000023107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23108$as_echo_n "checking for long double... " >&6; }
23109if ${ac_cv_type_long_double+:} false; then :
23110 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023111else
cristy501c8042011-05-26 17:46:28 +000023112 if test "$GCC" = yes; then
23113 ac_cv_type_long_double=yes
23114 else
23115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23116/* end confdefs.h. */
23117/* The Stardent Vistra knows sizeof (long double), but does
23118 not support it. */
23119 long double foo = 0.0L;
23120int
23121main ()
23122{
23123static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23124 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023125test_array [0] = 0;
23126return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023127
cristy501c8042011-05-26 17:46:28 +000023128 ;
23129 return 0;
23130}
cristy3ed852e2009-09-05 21:47:34 +000023131_ACEOF
cristy501c8042011-05-26 17:46:28 +000023132if ac_fn_c_try_compile "$LINENO"; then :
23133 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023134else
cristy501c8042011-05-26 17:46:28 +000023135 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023136fi
cristy501c8042011-05-26 17:46:28 +000023137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23138 fi
cristy3ed852e2009-09-05 21:47:34 +000023139fi
cristy501c8042011-05-26 17:46:28 +000023140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23141$as_echo "$ac_cv_type_long_double" >&6; }
23142 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023143
cristy501c8042011-05-26 17:46:28 +000023144$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023145
cristy501c8042011-05-26 17:46:28 +000023146 fi
23147
cristy3ed852e2009-09-05 21:47:34 +000023148
cristy8b350f62009-11-15 23:12:43 +000023149 { $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 +000023150$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023151if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023152 $as_echo_n "(cached) " >&6
23153else
cristy8b350f62009-11-15 23:12:43 +000023154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023155/* end confdefs.h. */
23156#include <float.h>
23157 long double const a[] =
23158 {
23159 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23160 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23161 };
23162 long double
23163 f (long double x)
23164 {
23165 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23166 + (x ? f (x) : 'c'));
23167 }
23168
23169int
23170main ()
23171{
23172static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23173 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23174 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23175 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23176 && (int) LDBL_EPSILON == 0
23177 )];
cristy14fefe52012-05-21 00:59:18 +000023178test_array [0] = 0;
23179return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023180
23181 ;
23182 return 0;
23183}
23184_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023185if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023186 ac_cv_type_long_double_wider=yes
23187else
cristy8b350f62009-11-15 23:12:43 +000023188 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023189fi
cristy3ed852e2009-09-05 21:47:34 +000023190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23191fi
cristy8b350f62009-11-15 23:12:43 +000023192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023193$as_echo "$ac_cv_type_long_double_wider" >&6; }
23194 if test $ac_cv_type_long_double_wider = yes; then
23195
cristy8b350f62009-11-15 23:12:43 +000023196$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023197
23198 fi
23199
23200
cristy045228a2013-06-23 11:00:16 +000023201
cristy501c8042011-05-26 17:46:28 +000023202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23203$as_echo_n "checking for long long int... " >&6; }
23204if ${ac_cv_type_long_long_int+:} false; then :
23205 $as_echo_n "(cached) " >&6
23206else
cristy501c8042011-05-26 17:46:28 +000023207 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023208 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023209 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23210 if test $ac_cv_type_long_long_int = yes; then
23211 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023212 :
cristy501c8042011-05-26 17:46:28 +000023213else
23214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23215/* end confdefs.h. */
23216#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023217 #ifndef LLONG_MAX
23218 # define HALF \
23219 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23220 # define LLONG_MAX (HALF - 1 + HALF)
23221 #endif
cristy501c8042011-05-26 17:46:28 +000023222int
23223main ()
23224{
23225long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023226 int i;
23227 for (i = 0; ; i++)
23228 {
23229 long long int m = n << i;
23230 if (m >> i != n)
23231 return 1;
23232 if (LLONG_MAX / 2 < m)
23233 break;
23234 }
23235 return 0;
cristy501c8042011-05-26 17:46:28 +000023236 ;
23237 return 0;
23238}
23239_ACEOF
23240if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023241
cristy501c8042011-05-26 17:46:28 +000023242else
23243 ac_cv_type_long_long_int=no
23244fi
23245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23246 conftest.$ac_objext conftest.beam conftest.$ac_ext
23247fi
23248
cristy5ed9c6e2013-07-14 21:20:31 +000023249 fi
cristy045228a2013-06-23 11:00:16 +000023250 fi
cristy501c8042011-05-26 17:46:28 +000023251fi
23252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23253$as_echo "$ac_cv_type_long_long_int" >&6; }
23254 if test $ac_cv_type_long_long_int = yes; then
23255
23256$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23257
23258 fi
23259
23260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23261$as_echo_n "checking for mbstate_t... " >&6; }
23262if ${ac_cv_type_mbstate_t+:} false; then :
23263 $as_echo_n "(cached) " >&6
23264else
23265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23266/* end confdefs.h. */
23267$ac_includes_default
23268# include <wchar.h>
23269int
23270main ()
23271{
23272mbstate_t x; return sizeof x;
23273 ;
23274 return 0;
23275}
23276_ACEOF
23277if ac_fn_c_try_compile "$LINENO"; then :
23278 ac_cv_type_mbstate_t=yes
23279else
23280 ac_cv_type_mbstate_t=no
23281fi
23282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23283fi
23284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23285$as_echo "$ac_cv_type_mbstate_t" >&6; }
23286 if test $ac_cv_type_mbstate_t = yes; then
23287
23288$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23289
23290 else
23291
23292$as_echo "#define mbstate_t int" >>confdefs.h
23293
23294 fi
23295ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23296if test "x$ac_cv_type_mode_t" = xyes; then :
23297
23298else
23299
23300cat >>confdefs.h <<_ACEOF
23301#define mode_t int
23302_ACEOF
23303
23304fi
23305
23306ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23307if test "x$ac_cv_type_off_t" = xyes; then :
23308
23309else
23310
23311cat >>confdefs.h <<_ACEOF
23312#define off_t long int
23313_ACEOF
23314
23315fi
23316
23317ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23318if test "x$ac_cv_type_pid_t" = xyes; then :
23319
23320else
23321
23322cat >>confdefs.h <<_ACEOF
23323#define pid_t int
23324_ACEOF
23325
23326fi
23327
23328ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23329if test "x$ac_cv_type_size_t" = xyes; then :
23330
23331else
23332
23333cat >>confdefs.h <<_ACEOF
23334#define size_t unsigned int
23335_ACEOF
23336
23337fi
23338
23339ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23340if test "x$ac_cv_type_ssize_t" = xyes; then :
23341
23342else
23343
23344cat >>confdefs.h <<_ACEOF
23345#define ssize_t int
23346_ACEOF
23347
23348fi
23349
23350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23351$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23352if ${ac_cv_type_uid_t+:} false; then :
23353 $as_echo_n "(cached) " >&6
23354else
23355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23356/* end confdefs.h. */
23357#include <sys/types.h>
23358
23359_ACEOF
23360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23361 $EGREP "uid_t" >/dev/null 2>&1; then :
23362 ac_cv_type_uid_t=yes
23363else
23364 ac_cv_type_uid_t=no
23365fi
23366rm -f conftest*
23367
23368fi
23369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23370$as_echo "$ac_cv_type_uid_t" >&6; }
23371if test $ac_cv_type_uid_t = no; then
23372
23373$as_echo "#define uid_t int" >>confdefs.h
23374
23375
23376$as_echo "#define gid_t int" >>confdefs.h
23377
23378fi
23379
23380ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23381case $ac_cv_c_uint8_t in #(
23382 no|yes) ;; #(
23383 *)
23384
23385$as_echo "#define _UINT8_T 1" >>confdefs.h
23386
23387
23388cat >>confdefs.h <<_ACEOF
23389#define uint8_t $ac_cv_c_uint8_t
23390_ACEOF
23391;;
23392 esac
23393
23394ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23395case $ac_cv_c_uint16_t in #(
23396 no|yes) ;; #(
23397 *)
23398
23399
23400cat >>confdefs.h <<_ACEOF
23401#define uint16_t $ac_cv_c_uint16_t
23402_ACEOF
23403;;
23404 esac
23405
23406ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23407case $ac_cv_c_uint32_t in #(
23408 no|yes) ;; #(
23409 *)
23410
23411$as_echo "#define _UINT32_T 1" >>confdefs.h
23412
23413
23414cat >>confdefs.h <<_ACEOF
23415#define uint32_t $ac_cv_c_uint32_t
23416_ACEOF
23417;;
23418 esac
23419
23420ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23421case $ac_cv_c_uint64_t in #(
23422 no|yes) ;; #(
23423 *)
23424
23425$as_echo "#define _UINT64_T 1" >>confdefs.h
23426
23427
23428cat >>confdefs.h <<_ACEOF
23429#define uint64_t $ac_cv_c_uint64_t
23430_ACEOF
23431;;
23432 esac
23433
23434
cristy501c8042011-05-26 17:46:28 +000023435
23436 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23437if test "x$ac_cv_type_uintmax_t" = xyes; then :
23438
23439$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23440
23441else
23442 test $ac_cv_type_unsigned_long_long_int = yes \
23443 && ac_type='unsigned long long int' \
23444 || ac_type='unsigned long int'
23445
23446cat >>confdefs.h <<_ACEOF
23447#define uintmax_t $ac_type
23448_ACEOF
23449
23450fi
23451
23452
23453
23454 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23455if test "x$ac_cv_type_uintptr_t" = xyes; then :
23456
23457$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23458
23459else
23460 for ac_type in 'unsigned int' 'unsigned long int' \
23461 'unsigned long long int'; do
23462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23463/* end confdefs.h. */
23464$ac_includes_default
23465int
23466main ()
23467{
23468static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023469test_array [0] = 0;
23470return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023471
23472 ;
23473 return 0;
23474}
23475_ACEOF
23476if ac_fn_c_try_compile "$LINENO"; then :
23477
23478cat >>confdefs.h <<_ACEOF
23479#define uintptr_t $ac_type
23480_ACEOF
23481
23482 ac_type=
23483fi
23484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23485 test -z "$ac_type" && break
23486 done
23487fi
23488
23489
23490
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23492$as_echo_n "checking for unsigned long long int... " >&6; }
23493if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23494 $as_echo_n "(cached) " >&6
23495else
cristy045228a2013-06-23 11:00:16 +000023496 ac_cv_type_unsigned_long_long_int=yes
23497 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023499/* end confdefs.h. */
23500
23501 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023502 implementations with broken preprocessors. Perhaps this can
23503 be revisited in 2012. In the meantime, code should not expect
23504 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023505 /* Test literals. */
23506 long long int ll = 9223372036854775807ll;
23507 long long int nll = -9223372036854775807LL;
23508 unsigned long long int ull = 18446744073709551615ULL;
23509 /* Test constant expressions. */
23510 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023511 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023512 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023513 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023514 int i = 63;
23515int
23516main ()
23517{
23518/* Test availability of runtime routines for shift and division. */
23519 long long int llmax = 9223372036854775807ll;
23520 unsigned long long int ullmax = 18446744073709551615ull;
23521 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023522 | (llmax / ll) | (llmax % ll)
23523 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23524 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023525 ;
23526 return 0;
23527}
23528
23529_ACEOF
23530if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023531
cristy501c8042011-05-26 17:46:28 +000023532else
23533 ac_cv_type_unsigned_long_long_int=no
23534fi
23535rm -f core conftest.err conftest.$ac_objext \
23536 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023537 fi
cristy501c8042011-05-26 17:46:28 +000023538fi
23539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23540$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23541 if test $ac_cv_type_unsigned_long_long_int = yes; then
23542
23543$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23544
23545 fi
23546
23547
cristyfec31822013-05-23 12:32:12 +000023548# Float_t and double_t are intended to be the the most efficient type.
23549ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23550"
23551if test "x$ac_cv_type_float_t" = xyes; then :
23552
23553cat >>confdefs.h <<_ACEOF
23554#define HAVE_FLOAT_T 1
23555_ACEOF
23556
23557
23558fi
23559
23560ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23561"
23562if test "x$ac_cv_type_double_t" = xyes; then :
23563
23564cat >>confdefs.h <<_ACEOF
23565#define HAVE_DOUBLE_T 1
23566_ACEOF
23567
23568
23569fi
23570
23571# The cast to long int works around a bug in the HP C Compiler
23572# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23573# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23574# This bug is HP SR number 8606223364.
23575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23576$as_echo_n "checking size of float_t... " >&6; }
23577if ${ac_cv_sizeof_float_t+:} false; then :
23578 $as_echo_n "(cached) " >&6
23579else
23580 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23581"; then :
23582
23583else
23584 if test "$ac_cv_type_float_t" = yes; then
23585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23587as_fn_error 77 "cannot compute sizeof (float_t)
23588See \`config.log' for more details" "$LINENO" 5; }
23589 else
23590 ac_cv_sizeof_float_t=0
23591 fi
23592fi
23593
23594fi
23595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23596$as_echo "$ac_cv_sizeof_float_t" >&6; }
23597
23598
23599
23600cat >>confdefs.h <<_ACEOF
23601#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23602_ACEOF
23603
23604
23605# The cast to long int works around a bug in the HP C Compiler
23606# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23607# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23608# This bug is HP SR number 8606223364.
23609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23610$as_echo_n "checking size of double_t... " >&6; }
23611if ${ac_cv_sizeof_double_t+:} false; then :
23612 $as_echo_n "(cached) " >&6
23613else
23614 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23615"; then :
23616
23617else
23618 if test "$ac_cv_type_double_t" = yes; then
23619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23621as_fn_error 77 "cannot compute sizeof (double_t)
23622See \`config.log' for more details" "$LINENO" 5; }
23623 else
23624 ac_cv_sizeof_double_t=0
23625 fi
23626fi
23627
23628fi
23629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23630$as_echo "$ac_cv_sizeof_double_t" >&6; }
23631
23632
23633
23634cat >>confdefs.h <<_ACEOF
23635#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23636_ACEOF
23637
23638
23639
cristy9b86f202012-11-28 21:55:35 +000023640# Get size of float, double and long double for comparaison.
23641# The cast to long int works around a bug in the HP C Compiler
23642# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23643# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23644# This bug is HP SR number 8606223364.
23645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23646$as_echo_n "checking size of float... " >&6; }
23647if ${ac_cv_sizeof_float+:} false; then :
23648 $as_echo_n "(cached) " >&6
23649else
23650 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23651
23652else
23653 if test "$ac_cv_type_float" = yes; then
23654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23656as_fn_error 77 "cannot compute sizeof (float)
23657See \`config.log' for more details" "$LINENO" 5; }
23658 else
23659 ac_cv_sizeof_float=0
23660 fi
23661fi
23662
23663fi
23664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23665$as_echo "$ac_cv_sizeof_float" >&6; }
23666
23667
23668
23669cat >>confdefs.h <<_ACEOF
23670#define SIZEOF_FLOAT $ac_cv_sizeof_float
23671_ACEOF
23672
23673
23674# The cast to long int works around a bug in the HP C Compiler
23675# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23676# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23677# This bug is HP SR number 8606223364.
23678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23679$as_echo_n "checking size of double... " >&6; }
23680if ${ac_cv_sizeof_double+:} false; then :
23681 $as_echo_n "(cached) " >&6
23682else
23683 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23684
23685else
23686 if test "$ac_cv_type_double" = yes; then
23687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23689as_fn_error 77 "cannot compute sizeof (double)
23690See \`config.log' for more details" "$LINENO" 5; }
23691 else
23692 ac_cv_sizeof_double=0
23693 fi
23694fi
23695
23696fi
23697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23698$as_echo "$ac_cv_sizeof_double" >&6; }
23699
23700
23701
23702cat >>confdefs.h <<_ACEOF
23703#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23704_ACEOF
23705
23706
cristy9e2b6242014-03-25 11:49:41 +000023707# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000023708# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23709# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23710# This bug is HP SR number 8606223364.
23711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23712$as_echo_n "checking size of long double... " >&6; }
23713if ${ac_cv_sizeof_long_double+:} false; then :
23714 $as_echo_n "(cached) " >&6
23715else
23716 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23717
23718else
23719 if test "$ac_cv_type_long_double" = yes; then
23720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23722as_fn_error 77 "cannot compute sizeof (long double)
23723See \`config.log' for more details" "$LINENO" 5; }
23724 else
23725 ac_cv_sizeof_long_double=0
23726 fi
23727fi
23728
23729fi
23730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23731$as_echo "$ac_cv_sizeof_long_double" >&6; }
23732
23733
23734
23735cat >>confdefs.h <<_ACEOF
23736#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23737_ACEOF
23738
23739
cristyf0cf9a22012-10-24 12:05:01 +000023740
cristy3ed852e2009-09-05 21:47:34 +000023741# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23742# The cast to long int works around a bug in the HP C Compiler
23743# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23744# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23745# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023747$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023748if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023749 $as_echo_n "(cached) " >&6
23750else
cristy8b350f62009-11-15 23:12:43 +000023751 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 +000023752
cristy3ed852e2009-09-05 21:47:34 +000023753else
cristy8b350f62009-11-15 23:12:43 +000023754 if test "$ac_cv_type_signed_short" = yes; then
23755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023757as_fn_error 77 "cannot compute sizeof (signed short)
23758See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023759 else
23760 ac_cv_sizeof_signed_short=0
23761 fi
23762fi
cristy8b350f62009-11-15 23:12:43 +000023763
cristy3ed852e2009-09-05 21:47:34 +000023764fi
cristy8b350f62009-11-15 23:12:43 +000023765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023766$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23767
23768
23769
23770cat >>confdefs.h <<_ACEOF
23771#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23772_ACEOF
23773
23774
23775
23776# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23777# The cast to long int works around a bug in the HP C Compiler
23778# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23779# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23780# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023782$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023783if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023784 $as_echo_n "(cached) " >&6
23785else
cristy8b350f62009-11-15 23:12:43 +000023786 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023787
cristy3ed852e2009-09-05 21:47:34 +000023788else
cristy8b350f62009-11-15 23:12:43 +000023789 if test "$ac_cv_type_unsigned_short" = yes; then
23790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023792as_fn_error 77 "cannot compute sizeof (unsigned short)
23793See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023794 else
23795 ac_cv_sizeof_unsigned_short=0
23796 fi
23797fi
cristy8b350f62009-11-15 23:12:43 +000023798
cristy3ed852e2009-09-05 21:47:34 +000023799fi
cristy8b350f62009-11-15 23:12:43 +000023800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023801$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23802
23803
23804
23805cat >>confdefs.h <<_ACEOF
23806#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23807_ACEOF
23808
23809
23810
23811# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23812# The cast to long int works around a bug in the HP C Compiler
23813# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23814# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23815# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023817$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023818if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023819 $as_echo_n "(cached) " >&6
23820else
cristy8b350f62009-11-15 23:12:43 +000023821 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 +000023822
cristy3ed852e2009-09-05 21:47:34 +000023823else
cristy8b350f62009-11-15 23:12:43 +000023824 if test "$ac_cv_type_signed_int" = yes; then
23825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023827as_fn_error 77 "cannot compute sizeof (signed int)
23828See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023829 else
23830 ac_cv_sizeof_signed_int=0
23831 fi
23832fi
cristy8b350f62009-11-15 23:12:43 +000023833
cristy3ed852e2009-09-05 21:47:34 +000023834fi
cristy8b350f62009-11-15 23:12:43 +000023835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023836$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23837
23838
23839
23840cat >>confdefs.h <<_ACEOF
23841#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23842_ACEOF
23843
23844
23845
23846# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23847# The cast to long int works around a bug in the HP C Compiler
23848# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23849# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23850# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023852$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023853if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023854 $as_echo_n "(cached) " >&6
23855else
cristy8b350f62009-11-15 23:12:43 +000023856 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 +000023857
cristy3ed852e2009-09-05 21:47:34 +000023858else
cristy8b350f62009-11-15 23:12:43 +000023859 if test "$ac_cv_type_unsigned_int" = yes; then
23860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023862as_fn_error 77 "cannot compute sizeof (unsigned int)
23863See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023864 else
23865 ac_cv_sizeof_unsigned_int=0
23866 fi
23867fi
cristy8b350f62009-11-15 23:12:43 +000023868
cristy3ed852e2009-09-05 21:47:34 +000023869fi
cristy8b350f62009-11-15 23:12:43 +000023870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023871$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23872
23873
23874
23875cat >>confdefs.h <<_ACEOF
23876#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23877_ACEOF
23878
23879
23880
23881# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23882# The cast to long int works around a bug in the HP C Compiler
23883# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23884# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23885# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023887$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023888if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023889 $as_echo_n "(cached) " >&6
23890else
cristy8b350f62009-11-15 23:12:43 +000023891 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 +000023892
cristy3ed852e2009-09-05 21:47:34 +000023893else
cristy8b350f62009-11-15 23:12:43 +000023894 if test "$ac_cv_type_signed_long" = yes; then
23895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023896$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023897as_fn_error 77 "cannot compute sizeof (signed long)
23898See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023899 else
23900 ac_cv_sizeof_signed_long=0
23901 fi
23902fi
cristy8b350f62009-11-15 23:12:43 +000023903
cristy3ed852e2009-09-05 21:47:34 +000023904fi
cristy8b350f62009-11-15 23:12:43 +000023905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023906$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23907
23908
23909
23910cat >>confdefs.h <<_ACEOF
23911#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23912_ACEOF
23913
23914
23915
23916# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23917# The cast to long int works around a bug in the HP C Compiler
23918# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23919# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23920# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023922$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023923if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023924 $as_echo_n "(cached) " >&6
23925else
cristy8b350f62009-11-15 23:12:43 +000023926 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 +000023927
cristy3ed852e2009-09-05 21:47:34 +000023928else
cristy8b350f62009-11-15 23:12:43 +000023929 if test "$ac_cv_type_unsigned_long" = yes; then
23930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023932as_fn_error 77 "cannot compute sizeof (unsigned long)
23933See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023934 else
23935 ac_cv_sizeof_unsigned_long=0
23936 fi
23937fi
cristy8b350f62009-11-15 23:12:43 +000023938
cristy3ed852e2009-09-05 21:47:34 +000023939fi
cristy8b350f62009-11-15 23:12:43 +000023940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023941$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23942
23943
23944
23945cat >>confdefs.h <<_ACEOF
23946#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23947_ACEOF
23948
23949
23950
23951# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23952# 'signed long long' is not supported then the value defined is zero.
23953# The cast to long int works around a bug in the HP C Compiler
23954# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23955# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23956# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023958$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023959if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023960 $as_echo_n "(cached) " >&6
23961else
cristy8b350f62009-11-15 23:12:43 +000023962 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 +000023963
cristy3ed852e2009-09-05 21:47:34 +000023964else
cristy8b350f62009-11-15 23:12:43 +000023965 if test "$ac_cv_type_signed_long_long" = yes; then
23966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023968as_fn_error 77 "cannot compute sizeof (signed long long)
23969See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023970 else
23971 ac_cv_sizeof_signed_long_long=0
23972 fi
23973fi
cristy8b350f62009-11-15 23:12:43 +000023974
cristy3ed852e2009-09-05 21:47:34 +000023975fi
cristy8b350f62009-11-15 23:12:43 +000023976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023977$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23978
23979
23980
23981cat >>confdefs.h <<_ACEOF
23982#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23983_ACEOF
23984
23985
23986
23987# Obtain size of a 'unsigned long long' and define as
23988# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23989# supported then the value defined is zero.
23990# The cast to long int works around a bug in the HP C Compiler
23991# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23992# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23993# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023995$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023996if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023997 $as_echo_n "(cached) " >&6
23998else
cristy8b350f62009-11-15 23:12:43 +000023999 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 +000024000
cristy3ed852e2009-09-05 21:47:34 +000024001else
cristy8b350f62009-11-15 23:12:43 +000024002 if test "$ac_cv_type_unsigned_long_long" = yes; then
24003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024005as_fn_error 77 "cannot compute sizeof (unsigned long long)
24006See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024007 else
24008 ac_cv_sizeof_unsigned_long_long=0
24009 fi
24010fi
cristy8b350f62009-11-15 23:12:43 +000024011
cristy3ed852e2009-09-05 21:47:34 +000024012fi
cristy8b350f62009-11-15 23:12:43 +000024013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024014$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24015
24016
24017
24018cat >>confdefs.h <<_ACEOF
24019#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24020_ACEOF
24021
24022
24023
cristyfec31822013-05-23 12:32:12 +000024024# Obtain size of off_t and define as SIZEOF_OFF_T
24025# The cast to long int works around a bug in the HP C Compiler
24026# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24027# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24028# This bug is HP SR number 8606223364.
24029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24030$as_echo_n "checking size of off_t... " >&6; }
24031if ${ac_cv_sizeof_off_t+:} false; then :
24032 $as_echo_n "(cached) " >&6
24033else
24034 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24035
24036else
24037 if test "$ac_cv_type_off_t" = yes; then
24038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24040as_fn_error 77 "cannot compute sizeof (off_t)
24041See \`config.log' for more details" "$LINENO" 5; }
24042 else
24043 ac_cv_sizeof_off_t=0
24044 fi
24045fi
24046
24047fi
24048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24049$as_echo "$ac_cv_sizeof_off_t" >&6; }
24050
24051
24052
24053cat >>confdefs.h <<_ACEOF
24054#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24055_ACEOF
24056
24057
24058
24059# Obtain size of size_t and define as SIZEOF_SIZE_T
24060# The cast to long int works around a bug in the HP C Compiler
24061# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24062# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24063# This bug is HP SR number 8606223364.
24064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24065$as_echo_n "checking size of size_t... " >&6; }
24066if ${ac_cv_sizeof_size_t+:} false; then :
24067 $as_echo_n "(cached) " >&6
24068else
24069 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24070
24071else
24072 if test "$ac_cv_type_size_t" = yes; then
24073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24075as_fn_error 77 "cannot compute sizeof (size_t)
24076See \`config.log' for more details" "$LINENO" 5; }
24077 else
24078 ac_cv_sizeof_size_t=0
24079 fi
24080fi
24081
24082fi
24083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24084$as_echo "$ac_cv_sizeof_size_t" >&6; }
24085
24086
24087
24088cat >>confdefs.h <<_ACEOF
24089#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24090_ACEOF
24091
24092
24093
24094# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24095# The cast to long int works around a bug in the HP C Compiler
24096# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24097# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24098# This bug is HP SR number 8606223364.
24099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24100$as_echo_n "checking size of ssize_t... " >&6; }
24101if ${ac_cv_sizeof_ssize_t+:} false; then :
24102 $as_echo_n "(cached) " >&6
24103else
24104 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24105
24106else
24107 if test "$ac_cv_type_ssize_t" = yes; then
24108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24110as_fn_error 77 "cannot compute sizeof (ssize_t)
24111See \`config.log' for more details" "$LINENO" 5; }
24112 else
24113 ac_cv_sizeof_ssize_t=0
24114 fi
24115fi
24116
24117fi
24118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24119$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24120
24121
24122
24123cat >>confdefs.h <<_ACEOF
24124#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24125_ACEOF
24126
24127
24128
cristy3ed852e2009-09-05 21:47:34 +000024129# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24130# The cast to long int works around a bug in the HP C Compiler
24131# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24132# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24133# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024135$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024136if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024137 $as_echo_n "(cached) " >&6
24138else
cristy8b350f62009-11-15 23:12:43 +000024139 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 +000024140
cristy3ed852e2009-09-05 21:47:34 +000024141else
cristy8b350f62009-11-15 23:12:43 +000024142 if test "$ac_cv_type_unsigned_intp" = yes; then
24143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024145as_fn_error 77 "cannot compute sizeof (unsigned int*)
24146See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024147 else
24148 ac_cv_sizeof_unsigned_intp=0
24149 fi
24150fi
cristy8b350f62009-11-15 23:12:43 +000024151
cristy3ed852e2009-09-05 21:47:34 +000024152fi
cristy8b350f62009-11-15 23:12:43 +000024153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024154$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24155
24156
24157
24158cat >>confdefs.h <<_ACEOF
24159#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24160_ACEOF
24161
24162
24163
24164#
24165# Compute sized types for current CPU and compiler options.
24166#
24167
cristy8b350f62009-11-15 23:12:43 +000024168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024169$as_echo_n "checking for signed 8-bit type... " >&6; }
24170INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24172$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024173
24174
cristy8b350f62009-11-15 23:12:43 +000024175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024176$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24177UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24179$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024180
24181
cristy8b350f62009-11-15 23:12:43 +000024182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024183$as_echo_n "checking for signed 16-bit type... " >&6; }
24184INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24186$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024187
24188
cristy8b350f62009-11-15 23:12:43 +000024189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024190$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24191UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24193$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024194
24195
cristy8b350f62009-11-15 23:12:43 +000024196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024197$as_echo_n "checking for signed 32-bit type... " >&6; }
24198INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024199INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024200if test $ac_cv_sizeof_signed_int -eq 4; then
24201 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024202 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024203elif test $ac_cv_sizeof_signed_long -eq 4; then
24204 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024205 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024206fi
cristyad38abe2012-12-23 23:03:21 +000024207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24208$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024209
24210
cristy6d5e20f2011-04-25 13:48:54 +000024211
cristy8b350f62009-11-15 23:12:43 +000024212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024213$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24214UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024215UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024216if test $ac_cv_sizeof_unsigned_int -eq 4; then
24217 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024218 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024219elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24220 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024221 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024222fi
cristyad38abe2012-12-23 23:03:21 +000024223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24224$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024225
24226
cristy6d5e20f2011-04-25 13:48:54 +000024227
cristy8b350f62009-11-15 23:12:43 +000024228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024229$as_echo_n "checking for signed 64-bit type... " >&6; }
24230INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024231INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024232if test $ac_cv_sizeof_signed_long -eq 8; then
24233 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024234 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024235elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24236 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024237 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024238fi
cristy3a99dcf2011-12-17 01:29:40 +000024239case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024240 mingw* )
24241 INT64_F='"I64"'
24242 ;;
24243esac
cristyad38abe2012-12-23 23:03:21 +000024244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24245$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024246
24247
cristy6d5e20f2011-04-25 13:48:54 +000024248
cristy8b350f62009-11-15 23:12:43 +000024249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024250$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24251UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024252UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024253if test $ac_cv_sizeof_unsigned_long -eq 8; then
24254 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024255 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024256elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24257 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024258 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024259fi
cristy3a99dcf2011-12-17 01:29:40 +000024260case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024261 mingw* )
24262 UINT64_F='"I64"'
24263 ;;
24264esac
cristyad38abe2012-12-23 23:03:21 +000024265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24266$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024267
24268
cristy6d5e20f2011-04-25 13:48:54 +000024269
cristy8b350f62009-11-15 23:12:43 +000024270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024271$as_echo_n "checking for unsigned maximum type... " >&6; }
24272UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024273UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024274if test "$UINT64_T" != 'none'; then
24275 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024276 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024277elif test "$UINT32_T" != 'none'; then
24278 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024279 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024280fi
cristyad38abe2012-12-23 23:03:21 +000024281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24282$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024283
24284
cristy6d5e20f2011-04-25 13:48:54 +000024285
cristy8b350f62009-11-15 23:12:43 +000024286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024287$as_echo_n "checking for pointer difference type... " >&6; }
24288UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024289UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024290if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24291 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024292 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024293elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24294 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024295 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024296fi
cristyad38abe2012-12-23 23:03:21 +000024297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24298$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024299
24300
cristy6d5e20f2011-04-25 13:48:54 +000024301
cristy8b350f62009-11-15 23:12:43 +000024302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024303$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024305/* end confdefs.h. */
24306
24307int
24308main ()
24309{
24310{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24311 ;
24312 return 0;
24313}
24314_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024315if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24317$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024318else
cristyad38abe2012-12-23 23:03:21 +000024319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24320$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024322$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024324/* end confdefs.h. */
24325
24326int
24327main ()
24328{
24329{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24330 ;
24331 return 0;
24332}
24333_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024334if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24336$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024337
cristy8b350f62009-11-15 23:12:43 +000024338$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024339
24340else
cristyad38abe2012-12-23 23:03:21 +000024341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24342$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024343
cristy8b350f62009-11-15 23:12:43 +000024344$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024345
24346fi
cristy3ed852e2009-09-05 21:47:34 +000024347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24348fi
cristy3ed852e2009-09-05 21:47:34 +000024349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24350
24351########
24352#
24353# Check for functions
24354#
24355########
cristy8b350f62009-11-15 23:12:43 +000024356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024357$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024358if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024359 $as_echo_n "(cached) " >&6
24360else
cristy8b350f62009-11-15 23:12:43 +000024361 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024362 ac_cv_func_closedir_void=yes
24363else
cristy8b350f62009-11-15 23:12:43 +000024364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024365/* end confdefs.h. */
24366$ac_includes_default
24367#include <$ac_header_dirent>
24368#ifndef __cplusplus
24369int closedir ();
24370#endif
24371
24372int
24373main ()
24374{
24375return closedir (opendir (".")) != 0;
24376 ;
24377 return 0;
24378}
24379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024380if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024381 ac_cv_func_closedir_void=no
24382else
cristy8b350f62009-11-15 23:12:43 +000024383 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024384fi
cristy8b350f62009-11-15 23:12:43 +000024385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24386 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024387fi
24388
cristy3ed852e2009-09-05 21:47:34 +000024389fi
cristy8b350f62009-11-15 23:12:43 +000024390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024391$as_echo "$ac_cv_func_closedir_void" >&6; }
24392if test $ac_cv_func_closedir_void = yes; then
24393
cristy8b350f62009-11-15 23:12:43 +000024394$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024395
24396fi
24397
cristycd4c5312009-11-22 01:19:08 +000024398
24399
24400
24401 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024402do :
24403 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024404ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24405"
cristy98dddb52010-11-04 00:30:15 +000024406if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024407 cat >>confdefs.h <<_ACEOF
24408#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24409_ACEOF
24410
24411fi
24412
24413done
24414
cristycd4c5312009-11-22 01:19:08 +000024415
24416
24417
24418
24419
24420
24421
cristy3ed852e2009-09-05 21:47:34 +000024422for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024423do :
24424 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024425if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024426 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024427#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024428_ACEOF
24429
24430fi
24431done
24432
cristy8b350f62009-11-15 23:12:43 +000024433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024434$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024435if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024436 $as_echo_n "(cached) " >&6
24437else
cristy8b350f62009-11-15 23:12:43 +000024438 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024439 ac_cv_func_mmap_fixed_mapped=no
24440else
cristy8b350f62009-11-15 23:12:43 +000024441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024442/* end confdefs.h. */
24443$ac_includes_default
24444/* malloc might have been renamed as rpl_malloc. */
24445#undef malloc
24446
24447/* Thanks to Mike Haertel and Jim Avera for this test.
24448 Here is a matrix of mmap possibilities:
24449 mmap private not fixed
24450 mmap private fixed at somewhere currently unmapped
24451 mmap private fixed at somewhere already mapped
24452 mmap shared not fixed
24453 mmap shared fixed at somewhere currently unmapped
24454 mmap shared fixed at somewhere already mapped
24455 For private mappings, we should verify that changes cannot be read()
24456 back from the file, nor mmap's back from the file at a different
24457 address. (There have been systems where private was not correctly
24458 implemented like the infamous i386 svr4.0, and systems where the
24459 VM page cache was not coherent with the file system buffer cache
24460 like early versions of FreeBSD and possibly contemporary NetBSD.)
24461 For shared mappings, we should conversely verify that changes get
24462 propagated back to all the places they're supposed to be.
24463
24464 Grep wants private fixed already mapped.
24465 The main things grep needs to know about mmap are:
24466 * does it exist and is it safe to write into the mmap'd area
24467 * how to use it (BSD variants) */
24468
24469#include <fcntl.h>
24470#include <sys/mman.h>
24471
24472#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24473char *malloc ();
24474#endif
24475
24476/* This mess was copied from the GNU getpagesize.h. */
24477#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024478# ifdef _SC_PAGESIZE
24479# define getpagesize() sysconf(_SC_PAGESIZE)
24480# else /* no _SC_PAGESIZE */
24481# ifdef HAVE_SYS_PARAM_H
24482# include <sys/param.h>
24483# ifdef EXEC_PAGESIZE
24484# define getpagesize() EXEC_PAGESIZE
24485# else /* no EXEC_PAGESIZE */
24486# ifdef NBPG
24487# define getpagesize() NBPG * CLSIZE
24488# ifndef CLSIZE
24489# define CLSIZE 1
24490# endif /* no CLSIZE */
24491# else /* no NBPG */
24492# ifdef NBPC
24493# define getpagesize() NBPC
24494# else /* no NBPC */
24495# ifdef PAGESIZE
24496# define getpagesize() PAGESIZE
24497# endif /* PAGESIZE */
24498# endif /* no NBPC */
24499# endif /* no NBPG */
24500# endif /* no EXEC_PAGESIZE */
24501# else /* no HAVE_SYS_PARAM_H */
24502# define getpagesize() 8192 /* punt totally */
24503# endif /* no HAVE_SYS_PARAM_H */
24504# endif /* no _SC_PAGESIZE */
24505
24506#endif /* no HAVE_GETPAGESIZE */
24507
24508int
24509main ()
24510{
24511 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024512 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024513 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024514 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024515
24516 pagesize = getpagesize ();
24517
24518 /* First, make a file with some known garbage in it. */
24519 data = (char *) malloc (pagesize);
24520 if (!data)
24521 return 1;
24522 for (i = 0; i < pagesize; ++i)
24523 *(data + i) = rand ();
24524 umask (0);
24525 fd = creat ("conftest.mmap", 0600);
24526 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024527 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024528 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024529 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024530 close (fd);
24531
cristycd4c5312009-11-22 01:19:08 +000024532 /* Next, check that the tail of a page is zero-filled. File must have
24533 non-zero length, otherwise we risk SIGBUS for entire page. */
24534 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24535 if (fd2 < 0)
24536 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024537 cdata2 = "";
24538 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024539 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024540 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024541 if (data2 == MAP_FAILED)
24542 return 6;
24543 for (i = 0; i < pagesize; ++i)
24544 if (*(data2 + i))
24545 return 7;
24546 close (fd2);
24547 if (munmap (data2, pagesize))
24548 return 8;
24549
cristy3ed852e2009-09-05 21:47:34 +000024550 /* Next, try to mmap the file at a fixed address which already has
24551 something else allocated at it. If we can, also make sure that
24552 we see the same garbage. */
24553 fd = open ("conftest.mmap", O_RDWR);
24554 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024555 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024556 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24557 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024558 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024559 for (i = 0; i < pagesize; ++i)
24560 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024561 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024562
24563 /* Finally, make sure that changes to the mapped area do not
24564 percolate back to the file as seen by read(). (This is a bug on
24565 some variants of i386 svr4.0.) */
24566 for (i = 0; i < pagesize; ++i)
24567 *(data2 + i) = *(data2 + i) + 1;
24568 data3 = (char *) malloc (pagesize);
24569 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024570 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024571 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024572 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024573 for (i = 0; i < pagesize; ++i)
24574 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024575 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024576 close (fd);
24577 return 0;
24578}
24579_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024580if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024581 ac_cv_func_mmap_fixed_mapped=yes
24582else
cristy8b350f62009-11-15 23:12:43 +000024583 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024584fi
cristy8b350f62009-11-15 23:12:43 +000024585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24586 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024587fi
24588
cristy3ed852e2009-09-05 21:47:34 +000024589fi
cristy8b350f62009-11-15 23:12:43 +000024590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024591$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24592if test $ac_cv_func_mmap_fixed_mapped = yes; then
24593
cristy8b350f62009-11-15 23:12:43 +000024594$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024595
24596fi
cristycd4c5312009-11-22 01:19:08 +000024597rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024598
cristy3ed852e2009-09-05 21:47:34 +000024599for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024600do :
24601 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024602if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024603 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024604#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024605_ACEOF
24606
24607fi
24608
24609done
24610
cristy3ed852e2009-09-05 21:47:34 +000024611for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024612do :
24613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24614ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024615if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024616 cat >>confdefs.h <<_ACEOF
24617#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24618_ACEOF
24619
24620fi
24621done
24622
24623if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024625$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024626if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024627 $as_echo_n "(cached) " >&6
24628else
cristy8b350f62009-11-15 23:12:43 +000024629 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024630 ac_cv_func_fork_works=cross
24631else
cristy8b350f62009-11-15 23:12:43 +000024632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024633/* end confdefs.h. */
24634$ac_includes_default
24635int
24636main ()
24637{
24638
24639 /* By Ruediger Kuhlmann. */
24640 return fork () < 0;
24641
24642 ;
24643 return 0;
24644}
24645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024646if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024647 ac_cv_func_fork_works=yes
24648else
cristy8b350f62009-11-15 23:12:43 +000024649 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024650fi
cristy8b350f62009-11-15 23:12:43 +000024651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24652 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024653fi
24654
cristy3ed852e2009-09-05 21:47:34 +000024655fi
cristy8b350f62009-11-15 23:12:43 +000024656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024657$as_echo "$ac_cv_func_fork_works" >&6; }
24658
24659else
24660 ac_cv_func_fork_works=$ac_cv_func_fork
24661fi
24662if test "x$ac_cv_func_fork_works" = xcross; then
24663 case $host in
24664 *-*-amigaos* | *-*-msdosdjgpp*)
24665 # Override, as these systems have only a dummy fork() stub
24666 ac_cv_func_fork_works=no
24667 ;;
24668 *)
24669 ac_cv_func_fork_works=yes
24670 ;;
24671 esac
cristy8b350f62009-11-15 23:12:43 +000024672 { $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 +000024673$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24674fi
24675ac_cv_func_vfork_works=$ac_cv_func_vfork
24676if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024678$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024679if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024680 $as_echo_n "(cached) " >&6
24681else
cristy8b350f62009-11-15 23:12:43 +000024682 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024683 ac_cv_func_vfork_works=cross
24684else
cristy8b350f62009-11-15 23:12:43 +000024685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024686/* end confdefs.h. */
24687/* Thanks to Paul Eggert for this test. */
24688$ac_includes_default
24689#include <sys/wait.h>
24690#ifdef HAVE_VFORK_H
24691# include <vfork.h>
24692#endif
24693/* On some sparc systems, changes by the child to local and incoming
24694 argument registers are propagated back to the parent. The compiler
24695 is told about this with #include <vfork.h>, but some compilers
24696 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24697 static variable whose address is put into a register that is
24698 clobbered by the vfork. */
24699static void
24700#ifdef __cplusplus
24701sparc_address_test (int arg)
24702# else
24703sparc_address_test (arg) int arg;
24704#endif
24705{
24706 static pid_t child;
24707 if (!child) {
24708 child = vfork ();
24709 if (child < 0) {
24710 perror ("vfork");
24711 _exit(2);
24712 }
24713 if (!child) {
24714 arg = getpid();
24715 write(-1, "", 0);
24716 _exit (arg);
24717 }
24718 }
24719}
24720
24721int
24722main ()
24723{
24724 pid_t parent = getpid ();
24725 pid_t child;
24726
24727 sparc_address_test (0);
24728
24729 child = vfork ();
24730
24731 if (child == 0) {
24732 /* Here is another test for sparc vfork register problems. This
24733 test uses lots of local variables, at least as many local
24734 variables as main has allocated so far including compiler
24735 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24736 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24737 reuse the register of parent for one of the local variables,
24738 since it will think that parent can't possibly be used any more
24739 in this routine. Assigning to the local variable will thus
24740 munge parent in the parent process. */
24741 pid_t
24742 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24743 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24744 /* Convince the compiler that p..p7 are live; otherwise, it might
24745 use the same hardware register for all 8 local variables. */
24746 if (p != p1 || p != p2 || p != p3 || p != p4
24747 || p != p5 || p != p6 || p != p7)
24748 _exit(1);
24749
24750 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24751 from child file descriptors. If the child closes a descriptor
24752 before it execs or exits, this munges the parent's descriptor
24753 as well. Test for this by closing stdout in the child. */
24754 _exit(close(fileno(stdout)) != 0);
24755 } else {
24756 int status;
24757 struct stat st;
24758
24759 while (wait(&status) != child)
24760 ;
24761 return (
24762 /* Was there some problem with vforking? */
24763 child < 0
24764
24765 /* Did the child fail? (This shouldn't happen.) */
24766 || status
24767
24768 /* Did the vfork/compiler bug occur? */
24769 || parent != getpid()
24770
24771 /* Did the file descriptor bug occur? */
24772 || fstat(fileno(stdout), &st) != 0
24773 );
24774 }
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_vfork_works=yes
24779else
cristy8b350f62009-11-15 23:12:43 +000024780 ac_cv_func_vfork_works=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_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024788$as_echo "$ac_cv_func_vfork_works" >&6; }
24789
24790fi;
24791if test "x$ac_cv_func_fork_works" = xcross; then
24792 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024793 { $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 +000024794$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24795fi
24796
24797if test "x$ac_cv_func_vfork_works" = xyes; then
24798
cristy8b350f62009-11-15 23:12:43 +000024799$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024800
24801else
24802
cristy8b350f62009-11-15 23:12:43 +000024803$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024804
24805fi
24806if test "x$ac_cv_func_fork_works" = xyes; then
24807
cristy8b350f62009-11-15 23:12:43 +000024808$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024809
24810fi
24811
cristy8b350f62009-11-15 23:12:43 +000024812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024813$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024814if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024815 $as_echo_n "(cached) " >&6
24816else
cristy8b350f62009-11-15 23:12:43 +000024817 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024818 ac_cv_func_memcmp_working=no
24819else
cristy8b350f62009-11-15 23:12:43 +000024820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024821/* end confdefs.h. */
24822$ac_includes_default
24823int
24824main ()
24825{
24826
24827 /* Some versions of memcmp are not 8-bit clean. */
24828 char c0 = '\100', c1 = '\200', c2 = '\201';
24829 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24830 return 1;
24831
24832 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24833 or more and with at least one buffer not starting on a 4-byte boundary.
24834 William Lewis provided this test program. */
24835 {
24836 char foo[21];
24837 char bar[21];
24838 int i;
24839 for (i = 0; i < 4; i++)
24840 {
24841 char *a = foo + i;
24842 char *b = bar + i;
24843 strcpy (a, "--------01111111");
24844 strcpy (b, "--------10000000");
24845 if (memcmp (a, b, 16) >= 0)
24846 return 1;
24847 }
24848 return 0;
24849 }
24850
24851 ;
24852 return 0;
24853}
24854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024855if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024856 ac_cv_func_memcmp_working=yes
24857else
cristy8b350f62009-11-15 23:12:43 +000024858 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024859fi
cristy8b350f62009-11-15 23:12:43 +000024860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24861 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024862fi
24863
cristy3ed852e2009-09-05 21:47:34 +000024864fi
cristy8b350f62009-11-15 23:12:43 +000024865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024866$as_echo "$ac_cv_func_memcmp_working" >&6; }
24867test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24868 *" memcmp.$ac_objext "* ) ;;
24869 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24870 ;;
24871esac
24872
24873
cristy3ed852e2009-09-05 21:47:34 +000024874for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024875do :
24876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24877ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024878if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024879 cat >>confdefs.h <<_ACEOF
24880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24881_ACEOF
24882
24883fi
24884
24885done
24886
cristy8b350f62009-11-15 23:12:43 +000024887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024888$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024889if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024890 $as_echo_n "(cached) " >&6
24891else
24892 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24893 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24894 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024896/* end confdefs.h. */
24897$ac_includes_default
24898#ifdef HAVE_SYS_SELECT_H
24899# include <sys/select.h>
24900#endif
24901#ifdef HAVE_SYS_SOCKET_H
24902# include <sys/socket.h>
24903#endif
24904
24905int
24906main ()
24907{
24908extern int select ($ac_arg1,
24909 $ac_arg234, $ac_arg234, $ac_arg234,
24910 $ac_arg5);
24911 ;
24912 return 0;
24913}
24914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024915if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024916 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024917fi
cristy3ed852e2009-09-05 21:47:34 +000024918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24919 done
24920 done
24921done
24922# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024923: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024924
24925fi
cristy8b350f62009-11-15 23:12:43 +000024926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024927$as_echo "$ac_cv_func_select_args" >&6; }
24928ac_save_IFS=$IFS; IFS=','
24929set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24930IFS=$ac_save_IFS
24931shift
24932
24933cat >>confdefs.h <<_ACEOF
24934#define SELECT_TYPE_ARG1 $1
24935_ACEOF
24936
24937
24938cat >>confdefs.h <<_ACEOF
24939#define SELECT_TYPE_ARG234 ($2)
24940_ACEOF
24941
24942
24943cat >>confdefs.h <<_ACEOF
24944#define SELECT_TYPE_ARG5 ($3)
24945_ACEOF
24946
24947rm -f conftest*
24948
cristyda16f162011-02-19 23:52:17 +000024949if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024950 $as_echo_n "(cached) " >&6
24951else
24952 ac_cv_func_setvbuf_reversed=no
24953fi
24954
24955
cristy8b350f62009-11-15 23:12:43 +000024956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024957$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024958if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024959 $as_echo_n "(cached) " >&6
24960else
cristy8b350f62009-11-15 23:12:43 +000024961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024962/* end confdefs.h. */
24963#include <sys/types.h>
24964#include <signal.h>
24965
24966int
24967main ()
24968{
24969return *(signal (0, 0)) (0) == 1;
24970 ;
24971 return 0;
24972}
24973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024974if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024975 ac_cv_type_signal=int
24976else
cristy8b350f62009-11-15 23:12:43 +000024977 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024978fi
cristy3ed852e2009-09-05 21:47:34 +000024979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24980fi
cristy8b350f62009-11-15 23:12:43 +000024981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024982$as_echo "$ac_cv_type_signal" >&6; }
24983
24984cat >>confdefs.h <<_ACEOF
24985#define RETSIGTYPE $ac_cv_type_signal
24986_ACEOF
24987
24988
cristy8b350f62009-11-15 23:12:43 +000024989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024990$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024991if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024992 $as_echo_n "(cached) " >&6
24993else
cristy8b350f62009-11-15 23:12:43 +000024994 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024995 ac_cv_func_strtod=no
24996else
cristy8b350f62009-11-15 23:12:43 +000024997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024998/* end confdefs.h. */
24999
25000$ac_includes_default
25001#ifndef strtod
25002double strtod ();
25003#endif
25004int
25005main()
25006{
25007 {
25008 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25009 char *string = " +69";
25010 char *term;
25011 double value;
25012 value = strtod (string, &term);
25013 if (value != 69 || term != (string + 4))
25014 return 1;
25015 }
25016
25017 {
25018 /* Under Solaris 2.4, strtod returns the wrong value for the
25019 terminating character under some conditions. */
25020 char *string = "NaN";
25021 char *term;
25022 strtod (string, &term);
25023 if (term != string && *(term - 1) == 0)
25024 return 1;
25025 }
25026 return 0;
25027}
25028
25029_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025030if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025031 ac_cv_func_strtod=yes
25032else
cristy8b350f62009-11-15 23:12:43 +000025033 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025034fi
cristy8b350f62009-11-15 23:12:43 +000025035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25036 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025037fi
25038
cristy3ed852e2009-09-05 21:47:34 +000025039fi
cristy8b350f62009-11-15 23:12:43 +000025040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025041$as_echo "$ac_cv_func_strtod" >&6; }
25042if test $ac_cv_func_strtod = no; then
25043 case " $LIBOBJS " in
25044 *" strtod.$ac_objext "* ) ;;
25045 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25046 ;;
25047esac
25048
cristy8b350f62009-11-15 23:12:43 +000025049ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025050if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025051
cristy3ed852e2009-09-05 21:47:34 +000025052fi
25053
cristy3ed852e2009-09-05 21:47:34 +000025054if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025056$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025057if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025058 $as_echo_n "(cached) " >&6
25059else
25060 ac_check_lib_save_LIBS=$LIBS
25061LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025063/* end confdefs.h. */
25064
25065/* Override any GCC internal prototype to avoid an error.
25066 Use char because int might match the return type of a GCC
25067 builtin and then its argument prototype would still apply. */
25068#ifdef __cplusplus
25069extern "C"
25070#endif
25071char pow ();
25072int
25073main ()
25074{
25075return pow ();
25076 ;
25077 return 0;
25078}
25079_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025080if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025081 ac_cv_lib_m_pow=yes
25082else
cristy8b350f62009-11-15 23:12:43 +000025083 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025084fi
cristy8b350f62009-11-15 23:12:43 +000025085rm -f core conftest.err conftest.$ac_objext \
25086 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025087LIBS=$ac_check_lib_save_LIBS
25088fi
cristy8b350f62009-11-15 23:12:43 +000025089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025090$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025091if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025092 POW_LIB=-lm
25093else
cristy8b350f62009-11-15 23:12:43 +000025094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025095$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25096fi
25097
25098fi
25099
25100fi
25101
cristy7d4a1d62011-10-13 15:54:12 +000025102ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25103if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25104 ac_have_decl=1
25105else
25106 ac_have_decl=0
25107fi
25108
25109cat >>confdefs.h <<_ACEOF
25110#define HAVE_DECL_STRERROR_R $ac_have_decl
25111_ACEOF
25112
25113for ac_func in strerror_r
25114do :
25115 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25116if test "x$ac_cv_func_strerror_r" = xyes; then :
25117 cat >>confdefs.h <<_ACEOF
25118#define HAVE_STRERROR_R 1
25119_ACEOF
25120
25121fi
25122done
25123
25124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25125$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25126if ${ac_cv_func_strerror_r_char_p+:} false; then :
25127 $as_echo_n "(cached) " >&6
25128else
25129
25130 ac_cv_func_strerror_r_char_p=no
25131 if test $ac_cv_have_decl_strerror_r = yes; then
25132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25133/* end confdefs.h. */
25134$ac_includes_default
25135int
25136main ()
25137{
25138
25139 char buf[100];
25140 char x = *strerror_r (0, buf, sizeof buf);
25141 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025142 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025143
25144 ;
25145 return 0;
25146}
25147_ACEOF
25148if ac_fn_c_try_compile "$LINENO"; then :
25149 ac_cv_func_strerror_r_char_p=yes
25150fi
25151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25152 else
25153 # strerror_r is not declared. Choose between
25154 # systems that have relatively inaccessible declarations for the
25155 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25156 # former has a strerror_r that returns char*, while the latter
25157 # has a strerror_r that returns `int'.
25158 # This test should segfault on the DEC system.
25159 if test "$cross_compiling" = yes; then :
25160 :
25161else
25162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25163/* end confdefs.h. */
25164$ac_includes_default
25165 extern char *strerror_r ();
25166int
25167main ()
25168{
25169char buf[100];
25170 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025171 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025172 ;
25173 return 0;
25174}
25175_ACEOF
25176if ac_fn_c_try_run "$LINENO"; then :
25177 ac_cv_func_strerror_r_char_p=yes
25178fi
25179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25180 conftest.$ac_objext conftest.beam conftest.$ac_ext
25181fi
25182
25183 fi
25184
25185fi
25186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25187$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25188if test $ac_cv_func_strerror_r_char_p = yes; then
25189
25190$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25191
25192fi
25193
cristy3ed852e2009-09-05 21:47:34 +000025194for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025195do :
25196 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025197if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025198 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025199#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025200_ACEOF
25201
cristy8b350f62009-11-15 23:12:43 +000025202ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025203if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025204
cristy8b350f62009-11-15 23:12:43 +000025205$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025206
25207fi
25208
25209fi
25210done
25211
25212
25213
cristy161b9262010-03-20 19:34:32 +000025214#
25215# Find math library
25216#
25217MATH_LIBS=''
25218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25219$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025220if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025221 $as_echo_n "(cached) " >&6
25222else
25223 ac_check_lib_save_LIBS=$LIBS
25224LIBS="-lm $LIBS"
25225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25226/* end confdefs.h. */
25227
25228/* Override any GCC internal prototype to avoid an error.
25229 Use char because int might match the return type of a GCC
25230 builtin and then its argument prototype would still apply. */
25231#ifdef __cplusplus
25232extern "C"
25233#endif
25234char sqrt ();
25235int
25236main ()
25237{
25238return sqrt ();
25239 ;
25240 return 0;
25241}
25242_ACEOF
25243if ac_fn_c_try_link "$LINENO"; then :
25244 ac_cv_lib_m_sqrt=yes
25245else
25246 ac_cv_lib_m_sqrt=no
25247fi
25248rm -f core conftest.err conftest.$ac_objext \
25249 conftest$ac_exeext conftest.$ac_ext
25250LIBS=$ac_check_lib_save_LIBS
25251fi
25252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25253$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025254if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025255 MATH_LIBS="-lm"
25256fi
25257
25258LIBS="$MATH_LIBS $LIBS"
25259
25260
cristy85572162013-01-04 19:19:32 +000025261#
25262# Find socket library
25263#
cristy8a5d7f42013-01-06 15:24:33 +000025264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25265$as_echo_n "checking for library containing gethostbyname... " >&6; }
25266if ${ac_cv_search_gethostbyname+:} false; then :
25267 $as_echo_n "(cached) " >&6
25268else
25269 ac_func_search_save_LIBS=$LIBS
25270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25271/* end confdefs.h. */
25272
25273/* Override any GCC internal prototype to avoid an error.
25274 Use char because int might match the return type of a GCC
25275 builtin and then its argument prototype would still apply. */
25276#ifdef __cplusplus
25277extern "C"
25278#endif
25279char gethostbyname ();
25280int
25281main ()
25282{
25283return gethostbyname ();
25284 ;
25285 return 0;
25286}
25287_ACEOF
25288for ac_lib in '' resolv nsl; do
25289 if test -z "$ac_lib"; then
25290 ac_res="none required"
25291 else
25292 ac_res=-l$ac_lib
25293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25294 fi
25295 if ac_fn_c_try_link "$LINENO"; then :
25296 ac_cv_search_gethostbyname=$ac_res
25297fi
25298rm -f core conftest.err conftest.$ac_objext \
25299 conftest$ac_exeext
25300 if ${ac_cv_search_gethostbyname+:} false; then :
25301 break
25302fi
25303done
25304if ${ac_cv_search_gethostbyname+:} false; then :
25305
25306else
25307 ac_cv_search_gethostbyname=no
25308fi
25309rm conftest.$ac_ext
25310LIBS=$ac_func_search_save_LIBS
25311fi
25312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25313$as_echo "$ac_cv_search_gethostbyname" >&6; }
25314ac_res=$ac_cv_search_gethostbyname
25315if test "$ac_res" != no; then :
25316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25317
25318fi
25319
cristy85572162013-01-04 19:19:32 +000025320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25321$as_echo_n "checking for library containing socket... " >&6; }
25322if ${ac_cv_search_socket+:} false; then :
25323 $as_echo_n "(cached) " >&6
25324else
25325 ac_func_search_save_LIBS=$LIBS
25326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25327/* 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 socket ();
25336int
25337main ()
25338{
25339return socket ();
25340 ;
25341 return 0;
25342}
25343_ACEOF
25344for ac_lib in '' socket; 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
25351 if ac_fn_c_try_link "$LINENO"; then :
25352 ac_cv_search_socket=$ac_res
25353fi
25354rm -f core conftest.err conftest.$ac_objext \
25355 conftest$ac_exeext
25356 if ${ac_cv_search_socket+:} false; then :
25357 break
25358fi
25359done
25360if ${ac_cv_search_socket+:} false; then :
25361
25362else
25363 ac_cv_search_socket=no
25364fi
25365rm conftest.$ac_ext
25366LIBS=$ac_func_search_save_LIBS
25367fi
25368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25369$as_echo "$ac_cv_search_socket" >&6; }
25370ac_res=$ac_cv_search_socket
25371if test "$ac_res" != no; then :
25372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25373
cristy85572162013-01-04 19:19:32 +000025374
cristy8a5d7f42013-01-06 15:24:33 +000025375$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025376
cristy03f187e2013-01-24 00:22:19 +000025377 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025378
25379fi
25380
25381
25382for 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 +000025383do :
25384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25385ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025386if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025387 cat >>confdefs.h <<_ACEOF
25388#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25389_ACEOF
25390
25391fi
25392done
25393
25394
cristye43a45e2009-09-28 14:49:00 +000025395#
25396# Check for clock_gettime().
25397#
cristy8b350f62009-11-15 23:12:43 +000025398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025399$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025400if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025401 $as_echo_n "(cached) " >&6
25402else
25403 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025405/* end confdefs.h. */
25406
25407/* Override any GCC internal prototype to avoid an error.
25408 Use char because int might match the return type of a GCC
25409 builtin and then its argument prototype would still apply. */
25410#ifdef __cplusplus
25411extern "C"
25412#endif
25413char clock_gettime ();
25414int
25415main ()
25416{
25417return clock_gettime ();
25418 ;
25419 return 0;
25420}
25421_ACEOF
25422for ac_lib in '' rt; do
25423 if test -z "$ac_lib"; then
25424 ac_res="none required"
25425 else
25426 ac_res=-l$ac_lib
25427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25428 fi
cristy8b350f62009-11-15 23:12:43 +000025429 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025430 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025431fi
cristy8b350f62009-11-15 23:12:43 +000025432rm -f core conftest.err conftest.$ac_objext \
25433 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025434 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025435 break
25436fi
25437done
cristyda16f162011-02-19 23:52:17 +000025438if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025439
cristye43a45e2009-09-28 14:49:00 +000025440else
25441 ac_cv_search_clock_gettime=no
25442fi
25443rm conftest.$ac_ext
25444LIBS=$ac_func_search_save_LIBS
25445fi
cristy8b350f62009-11-15 23:12:43 +000025446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025447$as_echo "$ac_cv_search_clock_gettime" >&6; }
25448ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025449if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25451
25452
cristy8b350f62009-11-15 23:12:43 +000025453$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025454
cristy8b350f62009-11-15 23:12:43 +000025455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025456$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025458/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025459
25460 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025461int
25462main ()
25463{
25464clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025465 ;
25466 return 0;
25467}
25468_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025469if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025470
cristyad38abe2012-12-23 23:03:21 +000025471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25472$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025473
cristy8b350f62009-11-15 23:12:43 +000025474$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025475
25476
25477else
cristyad38abe2012-12-23 23:03:21 +000025478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25479$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025480
25481fi
cristye43a45e2009-09-28 14:49:00 +000025482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25483
25484else
25485
cristy8b350f62009-11-15 23:12:43 +000025486 for ac_func in gettimeofday ftime
25487do :
25488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25489ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025490if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025491 cat >>confdefs.h <<_ACEOF
25492#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25493_ACEOF
25494 break
25495fi
25496done
25497
25498
25499
25500fi
25501
25502
cristy3ed852e2009-09-05 21:47:34 +000025503########
25504#
25505# Check for function prototypes
25506#
25507########
25508
cristy8b350f62009-11-15 23:12:43 +000025509ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025510#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025511"
cristyda16f162011-02-19 23:52:17 +000025512if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025513 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025514else
cristy8b350f62009-11-15 23:12:43 +000025515 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025516fi
25517
cristy3ed852e2009-09-05 21:47:34 +000025518cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025519#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025521ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025522#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025523"
cristyda16f162011-02-19 23:52:17 +000025524if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025525 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025526else
cristy8b350f62009-11-15 23:12:43 +000025527 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025528fi
25529
cristy3ed852e2009-09-05 21:47:34 +000025530cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025531#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025532_ACEOF
25533
25534
cristy8b350f62009-11-15 23:12:43 +000025535ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025536#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025537"
cristyda16f162011-02-19 23:52:17 +000025538if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025539 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025540else
cristy8b350f62009-11-15 23:12:43 +000025541 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025542fi
25543
cristy3ed852e2009-09-05 21:47:34 +000025544cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025545#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025546_ACEOF
25547
25548
cristy8b350f62009-11-15 23:12:43 +000025549ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025550#include <stdio.h>
25551#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025552"
cristyda16f162011-02-19 23:52:17 +000025553if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025554 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025555else
cristy8b350f62009-11-15 23:12:43 +000025556 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025557fi
25558
cristy3ed852e2009-09-05 21:47:34 +000025559cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025560#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025561_ACEOF
25562
25563
cristy3ed852e2009-09-05 21:47:34 +000025564########
25565#
25566# C++ Support Tests (For Magick++)
25567#
25568########
25569have_magick_plus_plus='no'
25570if test "$with_magick_plus_plus" = 'yes'; then
25571 OLIBS="$LIBS"
25572 LIBS=''
25573 ac_ext=cpp
25574ac_cpp='$CXXCPP $CPPFLAGS'
25575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25578
25579
25580 # Full set of headers used...
25581 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25582 # functional iomanip iosfwd iostream iterator list string strstream utility
25583 ac_ext=cpp
25584ac_cpp='$CXXCPP $CPPFLAGS'
25585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25588
25589 ac_ext=cpp
25590ac_cpp='$CXXCPP $CPPFLAGS'
25591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25594if test -z "$CXX"; then
25595 if test -n "$CCC"; then
25596 CXX=$CCC
25597 else
25598 if test -n "$ac_tool_prefix"; then
25599 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25600 do
25601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25602set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025604$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025605if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025606 $as_echo_n "(cached) " >&6
25607else
25608 if test -n "$CXX"; then
25609 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25610else
25611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25612for as_dir in $PATH
25613do
25614 IFS=$as_save_IFS
25615 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025618 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025620 break 2
25621 fi
25622done
cristy8b350f62009-11-15 23:12:43 +000025623 done
cristy3ed852e2009-09-05 21:47:34 +000025624IFS=$as_save_IFS
25625
25626fi
25627fi
25628CXX=$ac_cv_prog_CXX
25629if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025631$as_echo "$CXX" >&6; }
25632else
cristy8b350f62009-11-15 23:12:43 +000025633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025634$as_echo "no" >&6; }
25635fi
25636
25637
25638 test -n "$CXX" && break
25639 done
25640fi
25641if test -z "$CXX"; then
25642 ac_ct_CXX=$CXX
25643 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25644do
25645 # Extract the first word of "$ac_prog", so it can be a program name with args.
25646set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025648$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025649if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025650 $as_echo_n "(cached) " >&6
25651else
25652 if test -n "$ac_ct_CXX"; then
25653 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25654else
25655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25656for as_dir in $PATH
25657do
25658 IFS=$as_save_IFS
25659 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025660 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025662 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025664 break 2
25665 fi
25666done
cristy8b350f62009-11-15 23:12:43 +000025667 done
cristy3ed852e2009-09-05 21:47:34 +000025668IFS=$as_save_IFS
25669
25670fi
25671fi
25672ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25673if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025675$as_echo "$ac_ct_CXX" >&6; }
25676else
cristy8b350f62009-11-15 23:12:43 +000025677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025678$as_echo "no" >&6; }
25679fi
25680
25681
25682 test -n "$ac_ct_CXX" && break
25683done
25684
25685 if test "x$ac_ct_CXX" = x; then
25686 CXX="g++"
25687 else
25688 case $cross_compiling:$ac_tool_warned in
25689yes:)
cristy8b350f62009-11-15 23:12:43 +000025690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25692ac_tool_warned=yes ;;
25693esac
25694 CXX=$ac_ct_CXX
25695 fi
25696fi
25697
25698 fi
25699fi
25700# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025701$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025702set X $ac_compile
25703ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025704for ac_option in --version -v -V -qversion; do
25705 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025706case "(($ac_try" in
25707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25708 *) ac_try_echo=$ac_try;;
25709esac
cristy8b350f62009-11-15 23:12:43 +000025710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25711$as_echo "$ac_try_echo"; } >&5
25712 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025713 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025714 if test -s conftest.err; then
25715 sed '10a\
25716... rest of stderr output deleted ...
25717 10q' conftest.err >conftest.er1
25718 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025719 fi
cristycd4c5312009-11-22 01:19:08 +000025720 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25722 test $ac_status = 0; }
25723done
cristy3ed852e2009-09-05 21:47:34 +000025724
cristy8b350f62009-11-15 23:12:43 +000025725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025726$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025727if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025728 $as_echo_n "(cached) " >&6
25729else
cristy8b350f62009-11-15 23:12:43 +000025730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025731/* end confdefs.h. */
25732
25733int
25734main ()
25735{
25736#ifndef __GNUC__
25737 choke me
25738#endif
25739
25740 ;
25741 return 0;
25742}
25743_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025744if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025745 ac_compiler_gnu=yes
25746else
cristy8b350f62009-11-15 23:12:43 +000025747 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025748fi
cristy3ed852e2009-09-05 21:47:34 +000025749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25750ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25751
25752fi
cristy8b350f62009-11-15 23:12:43 +000025753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025754$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25755if test $ac_compiler_gnu = yes; then
25756 GXX=yes
25757else
25758 GXX=
25759fi
25760ac_test_CXXFLAGS=${CXXFLAGS+set}
25761ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025763$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025764if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025765 $as_echo_n "(cached) " >&6
25766else
25767 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25768 ac_cxx_werror_flag=yes
25769 ac_cv_prog_cxx_g=no
25770 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025772/* end confdefs.h. */
25773
25774int
25775main ()
25776{
25777
25778 ;
25779 return 0;
25780}
25781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025782if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025783 ac_cv_prog_cxx_g=yes
25784else
cristy8b350f62009-11-15 23:12:43 +000025785 CXXFLAGS=""
25786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025787/* end confdefs.h. */
25788
25789int
25790main ()
25791{
25792
25793 ;
25794 return 0;
25795}
25796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025797if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025798
cristy8b350f62009-11-15 23:12:43 +000025799else
25800 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025801 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025803/* end confdefs.h. */
25804
25805int
25806main ()
25807{
25808
25809 ;
25810 return 0;
25811}
25812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025813if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025814 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025815fi
cristy3ed852e2009-09-05 21:47:34 +000025816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25817fi
cristy3ed852e2009-09-05 21:47:34 +000025818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25819fi
cristy3ed852e2009-09-05 21:47:34 +000025820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25821 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25822fi
cristy8b350f62009-11-15 23:12:43 +000025823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025824$as_echo "$ac_cv_prog_cxx_g" >&6; }
25825if test "$ac_test_CXXFLAGS" = set; then
25826 CXXFLAGS=$ac_save_CXXFLAGS
25827elif test $ac_cv_prog_cxx_g = yes; then
25828 if test "$GXX" = yes; then
25829 CXXFLAGS="-g -O2"
25830 else
25831 CXXFLAGS="-g"
25832 fi
25833else
25834 if test "$GXX" = yes; then
25835 CXXFLAGS="-O2"
25836 else
25837 CXXFLAGS=
25838 fi
25839fi
25840ac_ext=cpp
25841ac_cpp='$CXXCPP $CPPFLAGS'
25842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25845
cristy73bd4a52010-10-05 11:24:23 +000025846depcc="$CXX" am_compiler_list=
25847
25848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25849$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025850if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025851 $as_echo_n "(cached) " >&6
25852else
25853 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25854 # We make a subdir and do the tests there. Otherwise we can end up
25855 # making bogus files that we don't know about and never remove. For
25856 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025857 # making a dummy file named 'D' -- because '-MD' means "put the output
25858 # in D".
cristy7247bba2012-02-05 16:37:27 +000025859 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025860 mkdir conftest.dir
25861 # Copy depcomp to subdir because otherwise we won't find it if we're
25862 # using a relative directory.
25863 cp "$am_depcomp" conftest.dir
25864 cd conftest.dir
25865 # We will build objects and dependencies in a subdirectory because
25866 # it helps to detect inapplicable dependency modes. For instance
25867 # both Tru64's cc and ICC support -MD to output dependencies as a
25868 # side effect of compilation, but ICC will put the dependencies in
25869 # the current directory while Tru64 will put them in the object
25870 # directory.
25871 mkdir sub
25872
25873 am_cv_CXX_dependencies_compiler_type=none
25874 if test "$am_compiler_list" = ""; then
25875 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25876 fi
25877 am__universal=false
25878 case " $depcc " in #(
25879 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25880 esac
25881
25882 for depmode in $am_compiler_list; do
25883 # Setup a source with many dependencies, because some compilers
25884 # like to wrap large dependency lists on column 80 (with \), and
25885 # we should not choose a depcomp mode which is confused by this.
25886 #
25887 # We need to recreate these files for each test, as the compiler may
25888 # overwrite some of them when testing with obscure command lines.
25889 # This happens at least with the AIX C compiler.
25890 : > sub/conftest.c
25891 for i in 1 2 3 4 5 6; do
25892 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025893 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25894 # Solaris 10 /bin/sh.
25895 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025896 done
25897 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25898
cristyc0890a62012-07-19 00:18:20 +000025899 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025900 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025901 # handle '-M -o', and we need to detect this. Also, some Intel
25902 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025903 am__obj=sub/conftest.${OBJEXT-o}
25904 am__minus_obj="-o $am__obj"
25905 case $depmode in
25906 gcc)
25907 # This depmode causes a compiler race in universal mode.
25908 test "$am__universal" = false || continue
25909 ;;
25910 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025911 # After this tag, mechanisms are not by side-effect, so they'll
25912 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025913 if test "x$enable_dependency_tracking" = xyes; then
25914 continue
25915 else
25916 break
25917 fi
25918 ;;
cristy7247bba2012-02-05 16:37:27 +000025919 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025920 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025921 # not run yet. These depmodes are late enough in the game, and
25922 # so weak that their functioning should not be impacted.
25923 am__obj=conftest.${OBJEXT-o}
25924 am__minus_obj=
25925 ;;
25926 none) break ;;
25927 esac
25928 if depmode=$depmode \
25929 source=sub/conftest.c object=$am__obj \
25930 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25931 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25932 >/dev/null 2>conftest.err &&
25933 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25934 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25935 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25936 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25937 # icc doesn't choke on unknown options, it will just issue warnings
25938 # or remarks (even with -Werror). So we grep stderr for any message
25939 # that says an option was ignored or not supported.
25940 # When given -MP, icc 7.0 and 7.1 complain thusly:
25941 # icc: Command line warning: ignoring option '-M'; no argument required
25942 # The diagnosis changed in icc 8.0:
25943 # icc: Command line remark: option '-MP' not supported
25944 if (grep 'ignoring option' conftest.err ||
25945 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25946 am_cv_CXX_dependencies_compiler_type=$depmode
25947 break
25948 fi
25949 fi
25950 done
25951
25952 cd ..
25953 rm -rf conftest.dir
25954else
25955 am_cv_CXX_dependencies_compiler_type=none
25956fi
25957
25958fi
25959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25960$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25961CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25962
25963 if
25964 test "x$enable_dependency_tracking" != xno \
25965 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25966 am__fastdepCXX_TRUE=
25967 am__fastdepCXX_FALSE='#'
25968else
25969 am__fastdepCXX_TRUE='#'
25970 am__fastdepCXX_FALSE=
25971fi
25972
25973
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25975$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025976if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025977 $as_echo_n "(cached) " >&6
25978else
25979
25980 ac_ext=cpp
25981ac_cpp='$CXXCPP $CPPFLAGS'
25982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25985
25986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25987/* end confdefs.h. */
25988
25989int f(int x){return 1;}
25990int f(char x){return 1;}
25991int f(bool x){return 1;}
25992
25993int
25994main ()
25995{
25996bool b = true; return f(b);
25997 ;
25998 return 0;
25999}
26000_ACEOF
26001if ac_fn_cxx_try_compile "$LINENO"; then :
26002 ax_cv_cxx_bool=yes
26003else
26004 ax_cv_cxx_bool=no
26005fi
26006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26007 ac_ext=cpp
26008ac_cpp='$CXXCPP $CPPFLAGS'
26009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26012
26013
26014fi
26015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26016$as_echo "$ax_cv_cxx_bool" >&6; }
26017if test "$ax_cv_cxx_bool" = yes; then
26018
26019$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26020
26021fi
26022
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26024$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026025if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026026 $as_echo_n "(cached) " >&6
26027else
cristy17491be2014-06-24 01:10:53 +000026028 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026029ac_cpp='$CXXCPP $CPPFLAGS'
26030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26033
26034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26035/* end confdefs.h. */
26036namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026037 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026038_ACEOF
26039if ac_fn_cxx_try_compile "$LINENO"; then :
26040 ax_cv_cxx_namespaces=yes
26041else
26042 ax_cv_cxx_namespaces=no
26043fi
26044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26045 ac_ext=cpp
26046ac_cpp='$CXXCPP $CPPFLAGS'
26047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26050
26051
26052fi
26053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26054$as_echo "$ax_cv_cxx_namespaces" >&6; }
26055if test "$ax_cv_cxx_namespaces" = yes; then
26056
26057$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26058
26059fi
26060
26061
26062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26063$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026064if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026065 $as_echo_n "(cached) " >&6
26066else
26067
26068 ac_ext=cpp
26069ac_cpp='$CXXCPP $CPPFLAGS'
26070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26073
26074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26075/* end confdefs.h. */
26076#include <iostream>
26077 std::istream& is = std::cin;
26078int
26079main ()
26080{
26081
26082 ;
26083 return 0;
26084}
26085_ACEOF
26086if ac_fn_cxx_try_compile "$LINENO"; then :
26087 ax_cv_cxx_have_std_namespace=yes
26088else
26089 ax_cv_cxx_have_std_namespace=no
26090fi
26091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26092 ac_ext=cpp
26093ac_cpp='$CXXCPP $CPPFLAGS'
26094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26097
26098
26099fi
26100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26101$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26102 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26103
26104$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26105
26106 fi
26107
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26109$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026110if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026111 $as_echo_n "(cached) " >&6
26112else
26113
26114
26115 ac_ext=cpp
26116ac_cpp='$CXXCPP $CPPFLAGS'
26117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26120
26121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26122/* end confdefs.h. */
26123#include <iostream>
26124#include <map>
26125#include <iomanip>
26126#include <cmath>
26127#ifdef HAVE_NAMESPACES
26128using namespace std;
26129#endif
26130int
26131main ()
26132{
26133return 0;
26134 ;
26135 return 0;
26136}
26137_ACEOF
26138if ac_fn_cxx_try_compile "$LINENO"; then :
26139 ac_cv_cxx_have_std_libs=yes
26140else
26141 ac_cv_cxx_have_std_libs=no
26142fi
26143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26144 ac_ext=cpp
26145ac_cpp='$CXXCPP $CPPFLAGS'
26146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26149
26150
26151fi
26152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26153$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26154if test "$ac_cv_cxx_have_std_libs" = yes; then
26155
26156$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26157
26158fi
26159
cristy3ed852e2009-09-05 21:47:34 +000026160
26161 OPENMP_CXXFLAGS=
26162 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026163if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026164 enableval=$enable_openmp;
26165fi
26166
26167 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26169$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026170if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026171 $as_echo_n "(cached) " >&6
26172else
cristy8b350f62009-11-15 23:12:43 +000026173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26174/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026175
26176#ifndef _OPENMP
26177 choke me
26178#endif
26179#include <omp.h>
26180int main () { return omp_get_num_threads (); }
26181
26182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026183if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026184 ac_cv_prog_cxx_openmp='none needed'
26185else
cristy8b350f62009-11-15 23:12:43 +000026186 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026187 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26188 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026189 ac_save_CXXFLAGS=$CXXFLAGS
26190 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26192/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026193
26194#ifndef _OPENMP
26195 choke me
26196#endif
26197#include <omp.h>
26198int main () { return omp_get_num_threads (); }
26199
26200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026201if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026202 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026203fi
cristy8b350f62009-11-15 23:12:43 +000026204rm -f core conftest.err conftest.$ac_objext \
26205 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026206 CXXFLAGS=$ac_save_CXXFLAGS
26207 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26208 break
26209 fi
26210 done
26211fi
cristy8b350f62009-11-15 23:12:43 +000026212rm -f core conftest.err conftest.$ac_objext \
26213 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026214fi
cristy8b350f62009-11-15 23:12:43 +000026215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026216$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26217 case $ac_cv_prog_cxx_openmp in #(
26218 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026219 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026220 *)
cristy8b350f62009-11-15 23:12:43 +000026221 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026222 esac
26223 fi
26224
26225
26226 ac_ext=c
26227ac_cpp='$CPP $CPPFLAGS'
26228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26230ac_compiler_gnu=$ac_cv_c_compiler_gnu
26231
26232
cristy8b350f62009-11-15 23:12:43 +000026233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026234$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26235 if \
cristy964cb7f2010-04-25 23:18:00 +000026236 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026237 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026238 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026239 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026240 have_magick_plus_plus='yes'
26241 else
26242 have_magick_plus_plus='no (failed tests)'
26243 fi
cristyad38abe2012-12-23 23:03:21 +000026244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26245$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026246 LIBS="$OLIBS"
26247fi
cristy73bd4a52010-10-05 11:24:23 +000026248 if test "$have_magick_plus_plus" = 'yes'; then
26249 WITH_MAGICK_PLUS_PLUS_TRUE=
26250 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26251else
26252 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26253 WITH_MAGICK_PLUS_PLUS_FALSE=
26254fi
26255
cristy3ed852e2009-09-05 21:47:34 +000026256
26257# Only check for delegate libraries in subdirectories if requested.
26258if test "$enable_delegate_build" != 'no'; then
26259 # Check for delegate sub-directories and add -I & -L options as required.
26260 # This presumes that delegates are installed as detailed in the ImageMagick
26261 # README. If delegates are installed in a standard location where the
26262 # compiler will automatically find them then these options should not be
26263 # required.
26264
26265 #
26266 # Most delegates have includes in the same directory as the library, but not all...
26267 #
26268 # Includes
cristy31269aa2014-04-06 13:07:35 +000026269 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026270 if test -d "$builddir/$dir"; then
26271 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26272 else
26273 if test -d "$srcdirfull/$dir"; then
26274 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26275 fi
26276 fi
26277 done
26278
26279 # Libraries
cristy31269aa2014-04-06 13:07:35 +000026280 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026281 if test -d "$builddir/$dir/.libs"; then
26282 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26283 else
26284 if test -d "$srcdirfull/$dir/.libs"; then
26285 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26286 fi
26287 fi
26288 if test -d "$builddir/$dir"; then
26289 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26290 else
26291 if test -d "$srcdirfull/$dir"; then
26292 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26293 fi
26294 fi
26295 done
26296fi
26297
26298# Assume that delegate headers reside under same directory as ImageMagick
26299# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026300MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026301
26302#
26303# Find the X11 RGB database
26304#
cristy8b350f62009-11-15 23:12:43 +000026305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026306$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026307if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026308 $as_echo_n "(cached) " >&6
26309else
26310 # Look for the header file in a standard set of common directories.
26311# Check X11 before X11Rn because it is often a symlink to the current release.
26312 for ac_dir in \
26313 /lib/usr/lib/X11 \
26314 /usr/X11/lib \
26315 /usr/X11R4/lib \
26316 /usr/X11R5/lib \
26317 /usr/X11R6/lib \
26318 /usr/X11R7/lib \
26319 /usr/X386/lib \
26320 /usr/XFree86/lib/X11 \
26321 /usr/athena/lib \
26322 /usr/lib \
26323 /usr/lib/X11 \
26324 /usr/lib/X11R4 \
26325 /usr/lib/X11R5 \
26326 /usr/lib/X11R6 \
26327 /usr/lib/X11R7 \
26328 /usr/local/X11/lib \
26329 /usr/local/X11R4/lib \
26330 /usr/local/X11R5/lib \
26331 /usr/local/X11R6/lib \
26332 /usr/local/lib \
26333 /usr/local/lib/X11 \
26334 /usr/local/lib/X11R4 \
26335 /usr/local/lib/X11R5 \
26336 /usr/local/lib/X11R6 \
26337 /usr/local/lib/X11R7 \
26338 /usr/local/x11r5/lib \
26339 /usr/lpp/Xamples/lib \
26340 /usr/openwin/lib \
26341 /usr/openwin/share/lib \
26342 /usr/unsupported/lib \
26343 /usr/x386/lib \
26344 ; do
26345 if test -f "$ac_dir/X11/rgb.txt"; then
26346 im_cv_x_configure="$ac_dir/X11/"
26347 break
26348 elif test -f "$ac_dir/rgb.txt"; then
26349 im_cv_x_configure="$ac_dir/"
26350 break
26351 fi
26352
26353 done
26354fi
cristy8b350f62009-11-15 23:12:43 +000026355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026356$as_echo "$im_cv_x_configure" >&6; }
26357X11_CONFIGURE_PATH="$im_cv_x_configure"
26358case "${build_os}" in
26359 mingw* )
26360 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26361 ;;
26362esac
26363
26364cat >>confdefs.h <<_ACEOF
26365#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26366_ACEOF
26367
26368
26369#
26370# Find OpenMP library
26371#
26372GOMP_LIBS=''
26373if test "$enable_openmp" != 'no'; then
26374 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026375 # Open64 (passes for GCC but uses different OpenMP implementation)
26376 if test "x$GOMP_LIBS" = x ; then
26377 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26379$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26380if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26381 $as_echo_n "(cached) " >&6
26382else
26383 ac_check_lib_save_LIBS=$LIBS
26384LIBS="-lopenmp $LIBS"
26385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26386/* end confdefs.h. */
26387
26388/* Override any GCC internal prototype to avoid an error.
26389 Use char because int might match the return type of a GCC
26390 builtin and then its argument prototype would still apply. */
26391#ifdef __cplusplus
26392extern "C"
26393#endif
26394char omp_get_num_procs ();
26395int
26396main ()
26397{
26398return omp_get_num_procs ();
26399 ;
26400 return 0;
26401}
26402_ACEOF
26403if ac_fn_c_try_link "$LINENO"; then :
26404 ac_cv_lib_openmp_omp_get_num_procs=yes
26405else
26406 ac_cv_lib_openmp_omp_get_num_procs=no
26407fi
26408rm -f core conftest.err conftest.$ac_objext \
26409 conftest$ac_exeext conftest.$ac_ext
26410LIBS=$ac_check_lib_save_LIBS
26411fi
26412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26413$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26414if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26415 GOMP_LIBS="-lopenmp"
26416fi
26417
26418 fi
26419 fi
26420 # GCC
26421 if test "x$GOMP_LIBS" = x ; then
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026423$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026424if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026425 $as_echo_n "(cached) " >&6
26426else
26427 ac_check_lib_save_LIBS=$LIBS
26428LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026430/* end confdefs.h. */
26431
26432/* Override any GCC internal prototype to avoid an error.
26433 Use char because int might match the return type of a GCC
26434 builtin and then its argument prototype would still apply. */
26435#ifdef __cplusplus
26436extern "C"
26437#endif
26438char GOMP_parallel_start ();
26439int
26440main ()
26441{
26442return GOMP_parallel_start ();
26443 ;
26444 return 0;
26445}
26446_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026447if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026448 ac_cv_lib_gomp_GOMP_parallel_start=yes
26449else
cristy8b350f62009-11-15 23:12:43 +000026450 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026451fi
cristy8b350f62009-11-15 23:12:43 +000026452rm -f core conftest.err conftest.$ac_objext \
26453 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026454LIBS=$ac_check_lib_save_LIBS
26455fi
cristy8b350f62009-11-15 23:12:43 +000026456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026457$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026458if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026459 GOMP_LIBS="-lgomp"
26460fi
cristy18307f12011-12-30 01:20:16 +000026461
26462 fi
cristy3ed852e2009-09-05 21:47:34 +000026463 else
cristy18307f12011-12-30 01:20:16 +000026464 # Sun CC
26465 if test "x$GOMP_LIBS" = x ; then
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026467$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026468if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026469 $as_echo_n "(cached) " >&6
26470else
26471 ac_check_lib_save_LIBS=$LIBS
26472LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026474/* end confdefs.h. */
26475
26476/* Override any GCC internal prototype to avoid an error.
26477 Use char because int might match the return type of a GCC
26478 builtin and then its argument prototype would still apply. */
26479#ifdef __cplusplus
26480extern "C"
26481#endif
26482char sunw_mp_register_warn ();
26483int
26484main ()
26485{
26486return sunw_mp_register_warn ();
26487 ;
26488 return 0;
26489}
26490_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026491if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026492 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26493else
cristy8b350f62009-11-15 23:12:43 +000026494 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026495fi
cristy8b350f62009-11-15 23:12:43 +000026496rm -f core conftest.err conftest.$ac_objext \
26497 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026498LIBS=$ac_check_lib_save_LIBS
26499fi
cristy8b350f62009-11-15 23:12:43 +000026500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026501$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026502if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026503 GOMP_LIBS="-lmtsk"
26504fi
cristy18307f12011-12-30 01:20:16 +000026505
26506 fi
26507 # AIX xlc
26508 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026510$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026511if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026512 $as_echo_n "(cached) " >&6
26513else
26514 ac_check_lib_save_LIBS=$LIBS
26515LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026517/* end confdefs.h. */
26518
26519/* Override any GCC internal prototype to avoid an error.
26520 Use char because int might match the return type of a GCC
26521 builtin and then its argument prototype would still apply. */
26522#ifdef __cplusplus
26523extern "C"
26524#endif
26525char _xlsmpFlush ();
26526int
26527main ()
26528{
26529return _xlsmpFlush ();
26530 ;
26531 return 0;
26532}
26533_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026534if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026535 ac_cv_lib_xlsmp__xlsmpFlush=yes
26536else
cristy8b350f62009-11-15 23:12:43 +000026537 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026538fi
cristy8b350f62009-11-15 23:12:43 +000026539rm -f core conftest.err conftest.$ac_objext \
26540 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026541LIBS=$ac_check_lib_save_LIBS
26542fi
cristy8b350f62009-11-15 23:12:43 +000026543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026544$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026545if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026546 GOMP_LIBS="-lxlsmp"
26547fi
cristy18307f12011-12-30 01:20:16 +000026548
26549 fi
26550 # SGI IRIX 6.5 MIPSpro C/C++
26551 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026553$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026554if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026555 $as_echo_n "(cached) " >&6
26556else
26557 ac_check_lib_save_LIBS=$LIBS
26558LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026560/* end confdefs.h. */
26561
26562/* Override any GCC internal prototype to avoid an error.
26563 Use char because int might match the return type of a GCC
26564 builtin and then its argument prototype would still apply. */
26565#ifdef __cplusplus
26566extern "C"
26567#endif
26568char mp_destroy ();
26569int
26570main ()
26571{
26572return mp_destroy ();
26573 ;
26574 return 0;
26575}
26576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026577if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026578 ac_cv_lib_mp_mp_destroy=yes
26579else
cristy8b350f62009-11-15 23:12:43 +000026580 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026581fi
cristy8b350f62009-11-15 23:12:43 +000026582rm -f core conftest.err conftest.$ac_objext \
26583 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026584LIBS=$ac_check_lib_save_LIBS
26585fi
cristy8b350f62009-11-15 23:12:43 +000026586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026587$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026588if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026589 GOMP_LIBS="-lmp"
26590fi
cristy18307f12011-12-30 01:20:16 +000026591
26592 fi
cristy3ed852e2009-09-05 21:47:34 +000026593 fi
26594 LIBS="$GOMP_LIBS $LIBS"
26595fi
26596
26597
cristy3ed852e2009-09-05 21:47:34 +000026598
26599
26600#
26601# Check for umem.
26602#
26603have_umem='no'
26604UMEM_LIBS=''
26605if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026607$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26609$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026610 failed=0
26611 passed=0
cristy8b350f62009-11-15 23:12:43 +000026612 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026613if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026614 passed=`expr $passed + 1`
26615else
26616 failed=`expr $failed + 1`
26617fi
26618
26619
cristy8b350f62009-11-15 23:12:43 +000026620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026621$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026622if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026623 $as_echo_n "(cached) " >&6
26624else
26625 ac_check_lib_save_LIBS=$LIBS
26626LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026628/* end confdefs.h. */
26629
26630/* Override any GCC internal prototype to avoid an error.
26631 Use char because int might match the return type of a GCC
26632 builtin and then its argument prototype would still apply. */
26633#ifdef __cplusplus
26634extern "C"
26635#endif
26636char umem_alloc ();
26637int
26638main ()
26639{
26640return umem_alloc ();
26641 ;
26642 return 0;
26643}
26644_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026645if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026646 ac_cv_lib_umem_umem_alloc=yes
26647else
cristy8b350f62009-11-15 23:12:43 +000026648 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026649fi
cristy8b350f62009-11-15 23:12:43 +000026650rm -f core conftest.err conftest.$ac_objext \
26651 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026652LIBS=$ac_check_lib_save_LIBS
26653fi
cristy8b350f62009-11-15 23:12:43 +000026654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026655$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026656if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026657 passed=`expr $passed + 1`
26658else
26659 failed=`expr $failed + 1`
26660fi
26661
cristy8b350f62009-11-15 23:12:43 +000026662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026663$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026664if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026665 $as_echo_n "(cached) " >&6
26666else
26667 ac_check_lib_save_LIBS=$LIBS
26668LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026670/* end confdefs.h. */
26671
26672/* Override any GCC internal prototype to avoid an error.
26673 Use char because int might match the return type of a GCC
26674 builtin and then its argument prototype would still apply. */
26675#ifdef __cplusplus
26676extern "C"
26677#endif
26678char umem_free ();
26679int
26680main ()
26681{
26682return umem_free ();
26683 ;
26684 return 0;
26685}
26686_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026687if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026688 ac_cv_lib_umem_umem_free=yes
26689else
cristy8b350f62009-11-15 23:12:43 +000026690 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026691fi
cristy8b350f62009-11-15 23:12:43 +000026692rm -f core conftest.err conftest.$ac_objext \
26693 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026694LIBS=$ac_check_lib_save_LIBS
26695fi
cristy8b350f62009-11-15 23:12:43 +000026696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026697$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026698if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026699 passed=`expr $passed + 1`
26700else
26701 failed=`expr $failed + 1`
26702fi
26703
cristy8b350f62009-11-15 23:12:43 +000026704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026705$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26706 if test $passed -gt 0; then
26707 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26709$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026710 have_umem='no (failed tests)'
26711 else
26712 UMEM_LIBS='-lumem'
26713 LIBS="$UMEM_LIBS $LIBS"
26714
cristy8b350f62009-11-15 23:12:43 +000026715$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026716
cristyad38abe2012-12-23 23:03:21 +000026717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26718$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026719 have_umem='yes'
26720 fi
26721 else
cristyad38abe2012-12-23 23:03:21 +000026722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26723$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026724 fi
26725fi
cristy73bd4a52010-10-05 11:24:23 +000026726 if test "$have_umem" = 'yes'; then
26727 HasUMEM_TRUE=
26728 HasUMEM_FALSE='#'
26729else
26730 HasUMEM_TRUE='#'
26731 HasUMEM_FALSE=
26732fi
26733
cristy3ed852e2009-09-05 21:47:34 +000026734
26735
26736#
26737# Add support for ccmalloc memory debugging library if requested
26738#
26739have_ccmalloc='no'
26740CCMALLOC_LIBS=''
26741if test "$enable_ccmalloc" = 'yes'; then
26742 # Extract the first word of "ccmalloc", so it can be a program name with args.
26743set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026745$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026746if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026747 $as_echo_n "(cached) " >&6
26748else
26749 case $CCMALLOCDelegate in
26750 [\\/]* | ?:[\\/]*)
26751 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26752 ;;
26753 *)
26754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26755for as_dir in $PATH
26756do
26757 IFS=$as_save_IFS
26758 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026759 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026761 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026763 break 2
26764 fi
26765done
cristy8b350f62009-11-15 23:12:43 +000026766 done
cristy3ed852e2009-09-05 21:47:34 +000026767IFS=$as_save_IFS
26768
26769 ;;
26770esac
26771fi
26772CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26773if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026775$as_echo "$CCMALLOCDelegate" >&6; }
26776else
cristy8b350f62009-11-15 23:12:43 +000026777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026778$as_echo "no" >&6; }
26779fi
26780
26781
26782 if test -n "$CCMALLOCDelegate"; then
26783 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26784 OLIBS="$LIBS"
26785 # Assume that gcc is used with ccmalloc.
26786 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026788$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026789if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026790 $as_echo_n "(cached) " >&6
26791else
26792 ac_check_lib_save_LIBS=$LIBS
26793LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026795/* end confdefs.h. */
26796
26797/* Override any GCC internal prototype to avoid an error.
26798 Use char because int might match the return type of a GCC
26799 builtin and then its argument prototype would still apply. */
26800#ifdef __cplusplus
26801extern "C"
26802#endif
26803char ccmalloc_malloc ();
26804int
26805main ()
26806{
26807return ccmalloc_malloc ();
26808 ;
26809 return 0;
26810}
26811_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026812if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026813 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26814else
cristy8b350f62009-11-15 23:12:43 +000026815 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026816fi
cristy8b350f62009-11-15 23:12:43 +000026817rm -f core conftest.err conftest.$ac_objext \
26818 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026819LIBS=$ac_check_lib_save_LIBS
26820fi
cristy8b350f62009-11-15 23:12:43 +000026821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026822$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026823if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026824 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26825fi
26826
26827 if test -n "$CCMALLOC_LIBS"; then
26828 LIBS="$OLIBS"
26829 LIBS="$LIBS $CCMALLOC_LIBS"
26830 have_ccmalloc='yes'
26831 else
26832 LIBS="$OLIBS"
26833 fi
26834 fi
26835fi
26836
26837#
cristy944e51f2013-04-16 18:45:02 +000026838# Add support for 'huge pages' if requested
26839#
26840if test "x$enable_hugepages" != "xno"; then :
26841
26842
26843$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26844
26845
26846fi
26847
26848#
cristy3ed852e2009-09-05 21:47:34 +000026849# Add support for efence memory debugging library if requested
26850#
26851if test "$enable_efence" = 'yes'; then
26852 EFENCE_LIBS='-lefence'
26853 LIBS="$EFENCE_LIBS $LIBS"
26854fi
26855
cristy3ed852e2009-09-05 21:47:34 +000026856
26857#
26858# Check for BZLIB
26859#
26860
26861
26862# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026863if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026864 withval=$with_bzlib; with_bzlib=$withval
26865else
26866 with_bzlib='yes'
26867fi
26868
26869
26870if test "$with_bzlib" != 'yes'; then
26871 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26872fi
26873
26874have_bzlib='no'
26875if test "$with_bzlib" != 'no'; then
26876 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26878$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026880$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26882$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026883 failed=0
26884 passed=0
26885 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026886 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026887if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026888 passed=`expr $passed + 1`
26889else
26890 failed=`expr $failed + 1`
26891fi
26892
26893
cristy8b350f62009-11-15 23:12:43 +000026894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026895$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026896if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026897 $as_echo_n "(cached) " >&6
26898else
26899 ac_check_lib_save_LIBS=$LIBS
26900LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026902/* end confdefs.h. */
26903
26904/* Override any GCC internal prototype to avoid an error.
26905 Use char because int might match the return type of a GCC
26906 builtin and then its argument prototype would still apply. */
26907#ifdef __cplusplus
26908extern "C"
26909#endif
26910char BZ2_bzDecompress ();
26911int
26912main ()
26913{
26914return BZ2_bzDecompress ();
26915 ;
26916 return 0;
26917}
26918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026919if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026920 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26921else
cristy8b350f62009-11-15 23:12:43 +000026922 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026923fi
cristy8b350f62009-11-15 23:12:43 +000026924rm -f core conftest.err conftest.$ac_objext \
26925 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026926LIBS=$ac_check_lib_save_LIBS
26927fi
cristy8b350f62009-11-15 23:12:43 +000026928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026929$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026930if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026931 found_libbz=`expr $found_libbz + 1`
26932fi
26933
26934 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026936$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026937if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026938 $as_echo_n "(cached) " >&6
26939else
26940 ac_check_lib_save_LIBS=$LIBS
26941LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026943/* end confdefs.h. */
26944
26945/* Override any GCC internal prototype to avoid an error.
26946 Use char because int might match the return type of a GCC
26947 builtin and then its argument prototype would still apply. */
26948#ifdef __cplusplus
26949extern "C"
26950#endif
26951char _imp__BZ2_decompress ();
26952int
26953main ()
26954{
26955return _imp__BZ2_decompress ();
26956 ;
26957 return 0;
26958}
26959_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026960if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026961 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26962else
cristy8b350f62009-11-15 23:12:43 +000026963 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026964fi
cristy8b350f62009-11-15 23:12:43 +000026965rm -f core conftest.err conftest.$ac_objext \
26966 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026967LIBS=$ac_check_lib_save_LIBS
26968fi
cristy8b350f62009-11-15 23:12:43 +000026969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026970$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026971if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026972 found_libbz=`expr $found_libbz + 1`
26973fi
26974
26975 fi
26976 if test $found_libbz -gt 0; then
26977 passed=`expr $passed + 1`
26978 else
26979 failed=`expr $failed + 1`
26980 fi
cristy8b350f62009-11-15 23:12:43 +000026981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026982$as_echo_n "checking if BZLIB package is complete... " >&6; }
26983 if test $passed -gt 0; then
26984 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26986$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026987 have_bzlib='no (failed tests)'
26988 else
26989 BZLIB_LIBS='-lbz2'
26990 LIBS="$BZLIB_LIBS $LIBS"
26991
cristy8b350f62009-11-15 23:12:43 +000026992$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026993
cristyad38abe2012-12-23 23:03:21 +000026994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26995$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026996 have_bzlib='yes'
26997 fi
26998 else
cristyad38abe2012-12-23 23:03:21 +000026999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27000$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027001 fi
27002fi
cristy73bd4a52010-10-05 11:24:23 +000027003 if test "$have_bzlib" = 'yes'; then
27004 BZLIB_DELEGATE_TRUE=
27005 BZLIB_DELEGATE_FALSE='#'
27006else
27007 BZLIB_DELEGATE_TRUE='#'
27008 BZLIB_DELEGATE_FALSE=
27009fi
27010
cristy3ed852e2009-09-05 21:47:34 +000027011
27012
27013#
27014# Find the X11 include and library directories.
27015#
27016IPC_LIBS=''
27017X11_LIBS=''
27018XEXT_LIBS=''
27019XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027021$as_echo_n "checking for X... " >&6; }
27022
27023
27024# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027025if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027026 withval=$with_x;
27027fi
27028
27029# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27030if test "x$with_x" = xno; then
27031 # The user explicitly disabled X.
27032 have_x=disabled
27033else
27034 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027035 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027036 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027037 $as_echo_n "(cached) " >&6
27038else
27039 # One or both of the vars are not set, and there is no cached value.
27040ac_x_includes=no ac_x_libraries=no
27041rm -f -r conftest.dir
27042if mkdir conftest.dir; then
27043 cd conftest.dir
27044 cat >Imakefile <<'_ACEOF'
27045incroot:
27046 @echo incroot='${INCROOT}'
27047usrlibdir:
27048 @echo usrlibdir='${USRLIBDIR}'
27049libdir:
27050 @echo libdir='${LIBDIR}'
27051_ACEOF
27052 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027053 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027054 for ac_var in incroot usrlibdir libdir; do
27055 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27056 done
27057 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27058 for ac_extension in a so sl dylib la dll; do
27059 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27060 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27061 ac_im_usrlibdir=$ac_im_libdir; break
27062 fi
27063 done
27064 # Screen out bogus values from the imake configuration. They are
27065 # bogus both because they are the default anyway, and because
27066 # using them would break gcc on systems where it needs fixed includes.
27067 case $ac_im_incroot in
27068 /usr/include) ac_x_includes= ;;
27069 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27070 esac
27071 case $ac_im_usrlibdir in
27072 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27073 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27074 esac
27075 fi
27076 cd ..
27077 rm -f -r conftest.dir
27078fi
27079
27080# Standard set of common directories for X headers.
27081# Check X11 before X11Rn because it is often a symlink to the current release.
27082ac_x_header_dirs='
27083/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027084/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027085/usr/X11R6/include
27086/usr/X11R5/include
27087/usr/X11R4/include
27088
27089/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027090/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027091/usr/include/X11R6
27092/usr/include/X11R5
27093/usr/include/X11R4
27094
27095/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027096/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027097/usr/local/X11R6/include
27098/usr/local/X11R5/include
27099/usr/local/X11R4/include
27100
27101/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027102/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027103/usr/local/include/X11R6
27104/usr/local/include/X11R5
27105/usr/local/include/X11R4
27106
27107/usr/X386/include
27108/usr/x386/include
27109/usr/XFree86/include/X11
27110
27111/usr/include
27112/usr/local/include
27113/usr/unsupported/include
27114/usr/athena/include
27115/usr/local/x11r5/include
27116/usr/lpp/Xamples/include
27117
27118/usr/openwin/include
27119/usr/openwin/share/include'
27120
27121if test "$ac_x_includes" = no; then
27122 # Guess where to find include files, by looking for Xlib.h.
27123 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027125/* end confdefs.h. */
27126#include <X11/Xlib.h>
27127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027128if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027129 # We can compile using X headers with no special include directory.
27130ac_x_includes=
27131else
cristyc7083c12009-10-14 03:16:55 +000027132 for ac_dir in $ac_x_header_dirs; do
27133 if test -r "$ac_dir/X11/Xlib.h"; then
27134 ac_x_includes=$ac_dir
27135 break
27136 fi
27137done
27138fi
cristyda16f162011-02-19 23:52:17 +000027139rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027140fi # $ac_x_includes = no
27141
27142if test "$ac_x_libraries" = no; then
27143 # Check for the libraries.
27144 # See if we find them without any special options.
27145 # Don't add to $LIBS permanently.
27146 ac_save_LIBS=$LIBS
27147 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027149/* end confdefs.h. */
27150#include <X11/Xlib.h>
27151int
27152main ()
27153{
27154XrmInitialize ()
27155 ;
27156 return 0;
27157}
27158_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027159if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027160 LIBS=$ac_save_LIBS
27161# We can link X programs with no special library path.
27162ac_x_libraries=
27163else
cristy8b350f62009-11-15 23:12:43 +000027164 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027165for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27166do
27167 # Don't even attempt the hair of trying to link an X program!
27168 for ac_extension in a so sl dylib la dll; do
27169 if test -r "$ac_dir/libX11.$ac_extension"; then
27170 ac_x_libraries=$ac_dir
27171 break 2
27172 fi
27173 done
27174done
27175fi
cristy8b350f62009-11-15 23:12:43 +000027176rm -f core conftest.err conftest.$ac_objext \
27177 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027178fi # $ac_x_libraries = no
27179
27180case $ac_x_includes,$ac_x_libraries in #(
27181 no,* | *,no | *\'*)
27182 # Didn't find X, or a directory has "'" in its name.
27183 ac_cv_have_x="have_x=no";; #(
27184 *)
27185 # Record where we found X for the cache.
27186 ac_cv_have_x="have_x=yes\
27187 ac_x_includes='$ac_x_includes'\
27188 ac_x_libraries='$ac_x_libraries'"
27189esac
27190fi
27191;; #(
27192 *) have_x=yes;;
27193 esac
27194 eval "$ac_cv_have_x"
27195fi # $with_x != no
27196
27197if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027199$as_echo "$have_x" >&6; }
27200 no_x=yes
27201else
27202 # If each of the values was on the command line, it overrides each guess.
27203 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27204 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27205 # Update the cache value to reflect the command line values.
27206 ac_cv_have_x="have_x=yes\
27207 ac_x_includes='$x_includes'\
27208 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027210$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27211fi
27212
cristy3ed852e2009-09-05 21:47:34 +000027213if test "$no_x" = yes; then
27214 # Not all programs may use this symbol, but it does not hurt to define it.
27215
cristy8b350f62009-11-15 23:12:43 +000027216$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027217
27218 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27219else
27220 if test -n "$x_includes"; then
27221 X_CFLAGS="$X_CFLAGS -I$x_includes"
27222 fi
27223
27224 # It would also be nice to do this for all -L options, not just this one.
27225 if test -n "$x_libraries"; then
27226 X_LIBS="$X_LIBS -L$x_libraries"
27227 # For Solaris; some versions of Sun CC require a space after -R and
27228 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027230$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27231 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27232 ac_xsave_c_werror_flag=$ac_c_werror_flag
27233 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027235/* end confdefs.h. */
27236
27237int
27238main ()
27239{
27240
27241 ;
27242 return 0;
27243}
27244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027245if ac_fn_c_try_link "$LINENO"; then :
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027247$as_echo "no" >&6; }
27248 X_LIBS="$X_LIBS -R$x_libraries"
27249else
cristy8b350f62009-11-15 23:12:43 +000027250 LIBS="$ac_xsave_LIBS -R $x_libraries"
27251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027252/* end confdefs.h. */
27253
27254int
27255main ()
27256{
27257
27258 ;
27259 return 0;
27260}
27261_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027262if ac_fn_c_try_link "$LINENO"; then :
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027264$as_echo "yes" >&6; }
27265 X_LIBS="$X_LIBS -R $x_libraries"
27266else
cristy8b350f62009-11-15 23:12:43 +000027267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027268$as_echo "neither works" >&6; }
27269fi
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 +000027272fi
cristy8b350f62009-11-15 23:12:43 +000027273rm -f core conftest.err conftest.$ac_objext \
27274 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027275 ac_c_werror_flag=$ac_xsave_c_werror_flag
27276 LIBS=$ac_xsave_LIBS
27277 fi
27278
27279 # Check for system-dependent libraries X programs must link with.
27280 # Do this before checking for the system-independent R6 libraries
27281 # (-lICE), since we may need -lsocket or whatever for X linking.
27282
27283 if test "$ISC" = yes; then
27284 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27285 else
27286 # Martyn Johnson says this is needed for Ultrix, if the X
27287 # libraries were built with DECnet support. And Karl Berry says
27288 # the Alpha needs dnet_stub (dnet does not exist).
27289 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027291/* end confdefs.h. */
27292
27293/* Override any GCC internal prototype to avoid an error.
27294 Use char because int might match the return type of a GCC
27295 builtin and then its argument prototype would still apply. */
27296#ifdef __cplusplus
27297extern "C"
27298#endif
27299char XOpenDisplay ();
27300int
27301main ()
27302{
27303return XOpenDisplay ();
27304 ;
27305 return 0;
27306}
27307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027308if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027309
cristy8b350f62009-11-15 23:12:43 +000027310else
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027312$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027313if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027314 $as_echo_n "(cached) " >&6
27315else
27316 ac_check_lib_save_LIBS=$LIBS
27317LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027319/* end confdefs.h. */
27320
27321/* Override any GCC internal prototype to avoid an error.
27322 Use char because int might match the return type of a GCC
27323 builtin and then its argument prototype would still apply. */
27324#ifdef __cplusplus
27325extern "C"
27326#endif
27327char dnet_ntoa ();
27328int
27329main ()
27330{
27331return dnet_ntoa ();
27332 ;
27333 return 0;
27334}
27335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027336if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027337 ac_cv_lib_dnet_dnet_ntoa=yes
27338else
cristy8b350f62009-11-15 23:12:43 +000027339 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027340fi
cristy8b350f62009-11-15 23:12:43 +000027341rm -f core conftest.err conftest.$ac_objext \
27342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027343LIBS=$ac_check_lib_save_LIBS
27344fi
cristy8b350f62009-11-15 23:12:43 +000027345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027346$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027347if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027348 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27349fi
27350
27351 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027353$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027354if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027355 $as_echo_n "(cached) " >&6
27356else
27357 ac_check_lib_save_LIBS=$LIBS
27358LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027360/* end confdefs.h. */
27361
27362/* Override any GCC internal prototype to avoid an error.
27363 Use char because int might match the return type of a GCC
27364 builtin and then its argument prototype would still apply. */
27365#ifdef __cplusplus
27366extern "C"
27367#endif
27368char dnet_ntoa ();
27369int
27370main ()
27371{
27372return dnet_ntoa ();
27373 ;
27374 return 0;
27375}
27376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027377if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027378 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27379else
cristy8b350f62009-11-15 23:12:43 +000027380 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027381fi
cristy8b350f62009-11-15 23:12:43 +000027382rm -f core conftest.err conftest.$ac_objext \
27383 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027384LIBS=$ac_check_lib_save_LIBS
27385fi
cristy8b350f62009-11-15 23:12:43 +000027386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027387$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027388if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027389 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27390fi
27391
27392 fi
27393fi
cristy8b350f62009-11-15 23:12:43 +000027394rm -f core conftest.err conftest.$ac_objext \
27395 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027396 LIBS="$ac_xsave_LIBS"
27397
27398 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27399 # to get the SysV transport functions.
27400 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27401 # needs -lnsl.
27402 # The nsl library prevents programs from opening the X display
27403 # on Irix 5.2, according to T.E. Dickey.
27404 # The functions gethostbyname, getservbyname, and inet_addr are
27405 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027406 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027407if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027408
cristy3ed852e2009-09-05 21:47:34 +000027409fi
27410
cristy3ed852e2009-09-05 21:47:34 +000027411 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027413$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027414if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027415 $as_echo_n "(cached) " >&6
27416else
27417 ac_check_lib_save_LIBS=$LIBS
27418LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027420/* end confdefs.h. */
27421
27422/* Override any GCC internal prototype to avoid an error.
27423 Use char because int might match the return type of a GCC
27424 builtin and then its argument prototype would still apply. */
27425#ifdef __cplusplus
27426extern "C"
27427#endif
27428char gethostbyname ();
27429int
27430main ()
27431{
27432return gethostbyname ();
27433 ;
27434 return 0;
27435}
27436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027437if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027438 ac_cv_lib_nsl_gethostbyname=yes
27439else
cristy8b350f62009-11-15 23:12:43 +000027440 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027441fi
cristy8b350f62009-11-15 23:12:43 +000027442rm -f core conftest.err conftest.$ac_objext \
27443 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027444LIBS=$ac_check_lib_save_LIBS
27445fi
cristy8b350f62009-11-15 23:12:43 +000027446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027447$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027448if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027449 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27450fi
27451
27452 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027454$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027455if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027456 $as_echo_n "(cached) " >&6
27457else
27458 ac_check_lib_save_LIBS=$LIBS
27459LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027461/* end confdefs.h. */
27462
27463/* Override any GCC internal prototype to avoid an error.
27464 Use char because int might match the return type of a GCC
27465 builtin and then its argument prototype would still apply. */
27466#ifdef __cplusplus
27467extern "C"
27468#endif
27469char gethostbyname ();
27470int
27471main ()
27472{
27473return gethostbyname ();
27474 ;
27475 return 0;
27476}
27477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027478if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027479 ac_cv_lib_bsd_gethostbyname=yes
27480else
cristy8b350f62009-11-15 23:12:43 +000027481 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027482fi
cristy8b350f62009-11-15 23:12:43 +000027483rm -f core conftest.err conftest.$ac_objext \
27484 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027485LIBS=$ac_check_lib_save_LIBS
27486fi
cristy8b350f62009-11-15 23:12:43 +000027487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027488$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027489if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027490 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27491fi
27492
27493 fi
27494 fi
27495
27496 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27497 # socket/setsockopt and other routines are undefined under SCO ODT
27498 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27499 # on later versions), says Simon Leinen: it contains gethostby*
27500 # variants that don't use the name server (or something). -lsocket
27501 # must be given before -lnsl if both are needed. We assume that
27502 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027503 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027504if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027505
cristy3ed852e2009-09-05 21:47:34 +000027506fi
27507
cristy3ed852e2009-09-05 21:47:34 +000027508 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027510$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027511if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027512 $as_echo_n "(cached) " >&6
27513else
27514 ac_check_lib_save_LIBS=$LIBS
27515LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027517/* end confdefs.h. */
27518
27519/* Override any GCC internal prototype to avoid an error.
27520 Use char because int might match the return type of a GCC
27521 builtin and then its argument prototype would still apply. */
27522#ifdef __cplusplus
27523extern "C"
27524#endif
27525char connect ();
27526int
27527main ()
27528{
27529return connect ();
27530 ;
27531 return 0;
27532}
27533_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027534if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027535 ac_cv_lib_socket_connect=yes
27536else
cristy8b350f62009-11-15 23:12:43 +000027537 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027538fi
cristy8b350f62009-11-15 23:12:43 +000027539rm -f core conftest.err conftest.$ac_objext \
27540 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027541LIBS=$ac_check_lib_save_LIBS
27542fi
cristy8b350f62009-11-15 23:12:43 +000027543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027544$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027545if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027546 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27547fi
27548
27549 fi
27550
27551 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027552 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027553if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027554
cristy3ed852e2009-09-05 21:47:34 +000027555fi
27556
cristy3ed852e2009-09-05 21:47:34 +000027557 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027559$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027560if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027561 $as_echo_n "(cached) " >&6
27562else
27563 ac_check_lib_save_LIBS=$LIBS
27564LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027566/* end confdefs.h. */
27567
27568/* Override any GCC internal prototype to avoid an error.
27569 Use char because int might match the return type of a GCC
27570 builtin and then its argument prototype would still apply. */
27571#ifdef __cplusplus
27572extern "C"
27573#endif
27574char remove ();
27575int
27576main ()
27577{
27578return remove ();
27579 ;
27580 return 0;
27581}
27582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027583if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027584 ac_cv_lib_posix_remove=yes
27585else
cristy8b350f62009-11-15 23:12:43 +000027586 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027587fi
cristy8b350f62009-11-15 23:12:43 +000027588rm -f core conftest.err conftest.$ac_objext \
27589 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027590LIBS=$ac_check_lib_save_LIBS
27591fi
cristy8b350f62009-11-15 23:12:43 +000027592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027593$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027594if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027595 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27596fi
27597
27598 fi
27599
27600 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027601 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027602if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027603
cristy3ed852e2009-09-05 21:47:34 +000027604fi
27605
cristy3ed852e2009-09-05 21:47:34 +000027606 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027608$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027609if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027610 $as_echo_n "(cached) " >&6
27611else
27612 ac_check_lib_save_LIBS=$LIBS
27613LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027615/* end confdefs.h. */
27616
27617/* Override any GCC internal prototype to avoid an error.
27618 Use char because int might match the return type of a GCC
27619 builtin and then its argument prototype would still apply. */
27620#ifdef __cplusplus
27621extern "C"
27622#endif
27623char shmat ();
27624int
27625main ()
27626{
27627return shmat ();
27628 ;
27629 return 0;
27630}
27631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027632if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027633 ac_cv_lib_ipc_shmat=yes
27634else
cristy8b350f62009-11-15 23:12:43 +000027635 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027636fi
cristy8b350f62009-11-15 23:12:43 +000027637rm -f core conftest.err conftest.$ac_objext \
27638 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027639LIBS=$ac_check_lib_save_LIBS
27640fi
cristy8b350f62009-11-15 23:12:43 +000027641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027642$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027643if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027644 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27645fi
27646
27647 fi
27648 fi
27649
27650 # Check for libraries that X11R6 Xt/Xaw programs need.
27651 ac_save_LDFLAGS=$LDFLAGS
27652 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27653 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27654 # check for ICE first), but we must link in the order -lSM -lICE or
27655 # we get undefined symbols. So assume we have SM if we have ICE.
27656 # These have to be linked with before -lX11, unlike the other
27657 # libraries we check for below, so use a different variable.
27658 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027660$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027661if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027662 $as_echo_n "(cached) " >&6
27663else
27664 ac_check_lib_save_LIBS=$LIBS
27665LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027667/* end confdefs.h. */
27668
27669/* Override any GCC internal prototype to avoid an error.
27670 Use char because int might match the return type of a GCC
27671 builtin and then its argument prototype would still apply. */
27672#ifdef __cplusplus
27673extern "C"
27674#endif
27675char IceConnectionNumber ();
27676int
27677main ()
27678{
27679return IceConnectionNumber ();
27680 ;
27681 return 0;
27682}
27683_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027684if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027685 ac_cv_lib_ICE_IceConnectionNumber=yes
27686else
cristy8b350f62009-11-15 23:12:43 +000027687 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027688fi
cristy8b350f62009-11-15 23:12:43 +000027689rm -f core conftest.err conftest.$ac_objext \
27690 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027691LIBS=$ac_check_lib_save_LIBS
27692fi
cristy8b350f62009-11-15 23:12:43 +000027693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027694$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027695if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027696 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27697fi
27698
27699 LDFLAGS=$ac_save_LDFLAGS
27700
27701fi
27702
27703if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27705$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027707$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27709$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027710 LDFLAGS="$LDFLAGS $X_LIBS"
27711 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27712 LIBS="$X11_LIBS $LIBS"
27713 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27714
27715
cristy8b350f62009-11-15 23:12:43 +000027716$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027717
27718 #
27719 # Check for X11 shared memory extension
27720 #
27721 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027722 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027723if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027724 have_shmctl='yes'
27725fi
27726
27727 if test "$have_shmctl" != 'yes'; then
27728 PERSIST_LIBS=$LIBS
27729 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027731/* end confdefs.h. */
27732
27733/* Override any GCC internal prototype to avoid an error.
27734 Use char because int might match the return type of a GCC
27735 builtin and then its argument prototype would still apply. */
27736#ifdef __cplusplus
27737extern "C"
27738#endif
27739char shmctl ();
27740int
27741main ()
27742{
27743return shmctl ();
27744 ;
27745 return 0;
27746}
27747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027748if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027749 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027750fi
cristy8b350f62009-11-15 23:12:43 +000027751rm -f core conftest.err conftest.$ac_objext \
27752 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027753 LIBS=$PERSIST_LIBS
27754 fi
27755
27756 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027758$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027759if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027760 $as_echo_n "(cached) " >&6
27761else
27762 ac_check_lib_save_LIBS=$LIBS
27763LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027765/* end confdefs.h. */
27766
27767/* Override any GCC internal prototype to avoid an error.
27768 Use char because int might match the return type of a GCC
27769 builtin and then its argument prototype would still apply. */
27770#ifdef __cplusplus
27771extern "C"
27772#endif
27773char XShmAttach ();
27774int
27775main ()
27776{
27777return XShmAttach ();
27778 ;
27779 return 0;
27780}
27781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027782if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027783 ac_cv_lib_Xext_XShmAttach=yes
27784else
cristy8b350f62009-11-15 23:12:43 +000027785 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027786fi
cristy8b350f62009-11-15 23:12:43 +000027787rm -f core conftest.err conftest.$ac_objext \
27788 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027789LIBS=$ac_check_lib_save_LIBS
27790fi
cristy8b350f62009-11-15 23:12:43 +000027791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027792$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027793if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027794 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027795$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027796
27797fi
27798
27799 fi
27800
27801 #
27802 # Check for X11 shape extension
27803 #
cristy8b350f62009-11-15 23:12:43 +000027804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027805$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027806if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027807 $as_echo_n "(cached) " >&6
27808else
27809 ac_check_lib_save_LIBS=$LIBS
27810LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027812/* end confdefs.h. */
27813
27814/* Override any GCC internal prototype to avoid an error.
27815 Use char because int might match the return type of a GCC
27816 builtin and then its argument prototype would still apply. */
27817#ifdef __cplusplus
27818extern "C"
27819#endif
27820char XShapeCombineMask ();
27821int
27822main ()
27823{
27824return XShapeCombineMask ();
27825 ;
27826 return 0;
27827}
27828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027829if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027830 ac_cv_lib_Xext_XShapeCombineMask=yes
27831else
cristy8b350f62009-11-15 23:12:43 +000027832 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027833fi
cristy8b350f62009-11-15 23:12:43 +000027834rm -f core conftest.err conftest.$ac_objext \
27835 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027836LIBS=$ac_check_lib_save_LIBS
27837fi
cristy8b350f62009-11-15 23:12:43 +000027838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027839$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027840if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027841 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027842$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027843
27844fi
27845
cristy8b350f62009-11-15 23:12:43 +000027846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027847$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027848if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027849 $as_echo_n "(cached) " >&6
27850else
27851 ac_check_lib_save_LIBS=$LIBS
27852LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027854/* end confdefs.h. */
27855
27856/* Override any GCC internal prototype to avoid an error.
27857 Use char because int might match the return type of a GCC
27858 builtin and then its argument prototype would still apply. */
27859#ifdef __cplusplus
27860extern "C"
27861#endif
27862char XtSetEventDispatcher ();
27863int
27864main ()
27865{
27866return XtSetEventDispatcher ();
27867 ;
27868 return 0;
27869}
27870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027871if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027872 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27873else
cristy8b350f62009-11-15 23:12:43 +000027874 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027875fi
cristy8b350f62009-11-15 23:12:43 +000027876rm -f core conftest.err conftest.$ac_objext \
27877 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027878LIBS=$ac_check_lib_save_LIBS
27879fi
cristy8b350f62009-11-15 23:12:43 +000027880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027881$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027882if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027883 XT_LIBS='-lXt'
27884fi
27885
27886 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27887fi
27888if test "$no_x" != 'yes'; then
27889 have_x='yes'
27890else
27891 have_x='no'
27892fi
cristy73bd4a52010-10-05 11:24:23 +000027893 if test "$have_x" = 'yes'; then
27894 X11_DELEGATE_TRUE=
27895 X11_DELEGATE_FALSE='#'
27896else
27897 X11_DELEGATE_TRUE='#'
27898 X11_DELEGATE_FALSE=
27899fi
27900
cristy3ed852e2009-09-05 21:47:34 +000027901
27902
27903
27904
27905#
27906# Check for ZLIB
27907#
27908
27909# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027910if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027911 withval=$with_zlib; with_zlib=$withval
27912else
27913 with_zlib='yes'
27914fi
27915
27916
27917if test "$with_zlib" != 'yes'; then
27918 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27919fi
27920
27921have_zlib='no'
27922ZLIB_LIBS=''
27923if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27925$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027927$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27929$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027930 ZLIB_LIBS=''
27931 failed=0
27932 passed=0
cristy8b350f62009-11-15 23:12:43 +000027933 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027934if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027935 passed=`expr $passed + 1`
27936else
27937 failed=`expr $failed + 1`
27938fi
27939
27940
cristy8b350f62009-11-15 23:12:43 +000027941 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027942if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027943 passed=`expr $passed + 1`
27944else
27945 failed=`expr $failed + 1`
27946fi
27947
27948
cristy8b350f62009-11-15 23:12:43 +000027949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027950$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027951if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027952 $as_echo_n "(cached) " >&6
27953else
27954 ac_check_lib_save_LIBS=$LIBS
27955LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027957/* end confdefs.h. */
27958
27959/* Override any GCC internal prototype to avoid an error.
27960 Use char because int might match the return type of a GCC
27961 builtin and then its argument prototype would still apply. */
27962#ifdef __cplusplus
27963extern "C"
27964#endif
27965char compress ();
27966int
27967main ()
27968{
27969return compress ();
27970 ;
27971 return 0;
27972}
27973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027974if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027975 ac_cv_lib_z_compress=yes
27976else
cristy8b350f62009-11-15 23:12:43 +000027977 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027978fi
cristy8b350f62009-11-15 23:12:43 +000027979rm -f core conftest.err conftest.$ac_objext \
27980 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027981LIBS=$ac_check_lib_save_LIBS
27982fi
cristy8b350f62009-11-15 23:12:43 +000027983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027984$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027985if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027986 passed=`expr $passed + 1`
27987else
27988 failed=`expr $failed + 1`
27989fi
27990
cristy8b350f62009-11-15 23:12:43 +000027991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027992$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027993if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027994 $as_echo_n "(cached) " >&6
27995else
27996 ac_check_lib_save_LIBS=$LIBS
27997LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027999/* end confdefs.h. */
28000
28001/* Override any GCC internal prototype to avoid an error.
28002 Use char because int might match the return type of a GCC
28003 builtin and then its argument prototype would still apply. */
28004#ifdef __cplusplus
28005extern "C"
28006#endif
28007char uncompress ();
28008int
28009main ()
28010{
28011return uncompress ();
28012 ;
28013 return 0;
28014}
28015_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028016if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028017 ac_cv_lib_z_uncompress=yes
28018else
cristy8b350f62009-11-15 23:12:43 +000028019 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028020fi
cristy8b350f62009-11-15 23:12:43 +000028021rm -f core conftest.err conftest.$ac_objext \
28022 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028023LIBS=$ac_check_lib_save_LIBS
28024fi
cristy8b350f62009-11-15 23:12:43 +000028025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028026$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028027if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028028 passed=`expr $passed + 1`
28029else
28030 failed=`expr $failed + 1`
28031fi
28032
cristy8b350f62009-11-15 23:12:43 +000028033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028034$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028035if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028036 $as_echo_n "(cached) " >&6
28037else
28038 ac_check_lib_save_LIBS=$LIBS
28039LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028041/* end confdefs.h. */
28042
28043/* Override any GCC internal prototype to avoid an error.
28044 Use char because int might match the return type of a GCC
28045 builtin and then its argument prototype would still apply. */
28046#ifdef __cplusplus
28047extern "C"
28048#endif
28049char deflate ();
28050int
28051main ()
28052{
28053return deflate ();
28054 ;
28055 return 0;
28056}
28057_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028058if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028059 ac_cv_lib_z_deflate=yes
28060else
cristy8b350f62009-11-15 23:12:43 +000028061 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028062fi
cristy8b350f62009-11-15 23:12:43 +000028063rm -f core conftest.err conftest.$ac_objext \
28064 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028065LIBS=$ac_check_lib_save_LIBS
28066fi
cristy8b350f62009-11-15 23:12:43 +000028067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028068$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028069if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028070 passed=`expr $passed + 1`
28071else
28072 failed=`expr $failed + 1`
28073fi
28074
cristy8b350f62009-11-15 23:12:43 +000028075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028076$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028077if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028078 $as_echo_n "(cached) " >&6
28079else
28080 ac_check_lib_save_LIBS=$LIBS
28081LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028083/* end confdefs.h. */
28084
28085/* Override any GCC internal prototype to avoid an error.
28086 Use char because int might match the return type of a GCC
28087 builtin and then its argument prototype would still apply. */
28088#ifdef __cplusplus
28089extern "C"
28090#endif
28091char inflate ();
28092int
28093main ()
28094{
28095return inflate ();
28096 ;
28097 return 0;
28098}
28099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028100if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028101 ac_cv_lib_z_inflate=yes
28102else
cristy8b350f62009-11-15 23:12:43 +000028103 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028104fi
cristy8b350f62009-11-15 23:12:43 +000028105rm -f core conftest.err conftest.$ac_objext \
28106 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028107LIBS=$ac_check_lib_save_LIBS
28108fi
cristy8b350f62009-11-15 23:12:43 +000028109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028110$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028111if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028112 passed=`expr $passed + 1`
28113else
28114 failed=`expr $failed + 1`
28115fi
28116
cristy8b350f62009-11-15 23:12:43 +000028117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028118$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028119if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028120 $as_echo_n "(cached) " >&6
28121else
28122 ac_check_lib_save_LIBS=$LIBS
28123LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028125/* end confdefs.h. */
28126
28127/* Override any GCC internal prototype to avoid an error.
28128 Use char because int might match the return type of a GCC
28129 builtin and then its argument prototype would still apply. */
28130#ifdef __cplusplus
28131extern "C"
28132#endif
28133char gzseek ();
28134int
28135main ()
28136{
28137return gzseek ();
28138 ;
28139 return 0;
28140}
28141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028142if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028143 ac_cv_lib_z_gzseek=yes
28144else
cristy8b350f62009-11-15 23:12:43 +000028145 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028146fi
cristy8b350f62009-11-15 23:12:43 +000028147rm -f core conftest.err conftest.$ac_objext \
28148 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028149LIBS=$ac_check_lib_save_LIBS
28150fi
cristy8b350f62009-11-15 23:12:43 +000028151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028152$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028153if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028154 passed=`expr $passed + 1`
28155else
28156 failed=`expr $failed + 1`
28157fi
28158
cristy8b350f62009-11-15 23:12:43 +000028159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028160$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028161if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028162 $as_echo_n "(cached) " >&6
28163else
28164 ac_check_lib_save_LIBS=$LIBS
28165LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028167/* end confdefs.h. */
28168
28169/* Override any GCC internal prototype to avoid an error.
28170 Use char because int might match the return type of a GCC
28171 builtin and then its argument prototype would still apply. */
28172#ifdef __cplusplus
28173extern "C"
28174#endif
28175char gztell ();
28176int
28177main ()
28178{
28179return gztell ();
28180 ;
28181 return 0;
28182}
28183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028184if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028185 ac_cv_lib_z_gztell=yes
28186else
cristy8b350f62009-11-15 23:12:43 +000028187 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028188fi
cristy8b350f62009-11-15 23:12:43 +000028189rm -f core conftest.err conftest.$ac_objext \
28190 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028191LIBS=$ac_check_lib_save_LIBS
28192fi
cristy8b350f62009-11-15 23:12:43 +000028193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028194$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028195if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028196 passed=`expr $passed + 1`
28197else
28198 failed=`expr $failed + 1`
28199fi
28200
cristy8b350f62009-11-15 23:12:43 +000028201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028202$as_echo_n "checking if ZLIB package is complete... " >&6; }
28203 if test $passed -gt 0; then
28204 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28206$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028207 have_zlib='no (failed tests)'
28208 else
28209 ZLIB_LIBS='-lz'
28210 LIBS="$ZLIB_LIBS $LIBS"
28211
cristy8b350f62009-11-15 23:12:43 +000028212$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028213
cristyad38abe2012-12-23 23:03:21 +000028214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28215$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028216 have_zlib='yes'
28217 fi
28218 else
cristyad38abe2012-12-23 23:03:21 +000028219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28220$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028221 fi
28222fi
cristy73bd4a52010-10-05 11:24:23 +000028223 if test "$have_zlib" = 'yes'; then
28224 ZLIB_DELEGATE_TRUE=
28225 ZLIB_DELEGATE_FALSE='#'
28226else
28227 ZLIB_DELEGATE_TRUE='#'
28228 ZLIB_DELEGATE_FALSE=
28229fi
28230
cristy3ed852e2009-09-05 21:47:34 +000028231
28232
cristy5eef09f2012-10-16 12:08:28 +000028233# whether modules are built or not.
28234with_ltdl='yes'
28235have_ltdl='no'
28236LTDL_LIBS=''
28237if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28239$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28241$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28243$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028244 failed=0
28245 passed=0
28246 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28247if test "x$ac_cv_header_ltdl_h" = xyes; then :
28248 passed=`expr $passed + 1`
28249else
28250 failed=`expr $failed + 1`
28251fi
28252
28253
28254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28255$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28256if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28257 $as_echo_n "(cached) " >&6
28258else
28259 ac_check_lib_save_LIBS=$LIBS
28260LIBS="-lltdl $LIBS"
28261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28262/* end confdefs.h. */
28263
28264/* Override any GCC internal prototype to avoid an error.
28265 Use char because int might match the return type of a GCC
28266 builtin and then its argument prototype would still apply. */
28267#ifdef __cplusplus
28268extern "C"
28269#endif
28270char lt_dlinit ();
28271int
28272main ()
28273{
28274return lt_dlinit ();
28275 ;
28276 return 0;
28277}
28278_ACEOF
28279if ac_fn_c_try_link "$LINENO"; then :
28280 ac_cv_lib_ltdl_lt_dlinit=yes
28281else
28282 ac_cv_lib_ltdl_lt_dlinit=no
28283fi
28284rm -f core conftest.err conftest.$ac_objext \
28285 conftest$ac_exeext conftest.$ac_ext
28286LIBS=$ac_check_lib_save_LIBS
28287fi
28288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28289$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28290if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28291 passed=`expr $passed + 1`
28292else
28293 failed=`expr $failed + 1`
28294fi
28295
28296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28297$as_echo_n "checking if libltdl package is complete... " >&6; }
28298 if test $passed -gt 0 ; then
28299 if test $failed -gt 0 ; then
28300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28301$as_echo "no -- some components failed test" >&6; }
28302 have_ltdl='no (failed tests)'
28303 else
28304 LTDL_LIBS='-lltdl'
28305 LIBS="$LTDL_LIBS $LIBS"
28306
28307$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28308
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28310$as_echo "yes" >&6; }
28311 have_ltdl='yes'
28312 fi
28313 else
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28315$as_echo "no" >&6; }
28316 fi
cristyaf4cbf32012-10-16 23:47:41 +000028317 if test "$have_ltdl" != 'yes' ; then
28318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28320as_fn_error 1 "libltdl is required for modules build
28321See \`config.log' for more details" "$LINENO" 5; }
28322 fi
cristy5eef09f2012-10-16 12:08:28 +000028323fi
28324 if test "$have_ltdl" != 'no'; then
28325 WITH_LTDL_TRUE=
28326 WITH_LTDL_FALSE='#'
28327else
28328 WITH_LTDL_TRUE='#'
28329 WITH_LTDL_FALSE=
28330fi
28331
28332
cristy3ed852e2009-09-05 21:47:34 +000028333#
28334# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28335#
28336LIB_DL=''
28337if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028339$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028340if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028341 $as_echo_n "(cached) " >&6
28342else
28343 ac_check_lib_save_LIBS=$LIBS
28344LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028346/* end confdefs.h. */
28347
28348/* Override any GCC internal prototype to avoid an error.
28349 Use char because int might match the return type of a GCC
28350 builtin and then its argument prototype would still apply. */
28351#ifdef __cplusplus
28352extern "C"
28353#endif
28354char dlopen ();
28355int
28356main ()
28357{
28358return dlopen ();
28359 ;
28360 return 0;
28361}
28362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028363if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028364 ac_cv_lib_dl_dlopen=yes
28365else
cristy8b350f62009-11-15 23:12:43 +000028366 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028367fi
cristy8b350f62009-11-15 23:12:43 +000028368rm -f core conftest.err conftest.$ac_objext \
28369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028370LIBS=$ac_check_lib_save_LIBS
28371fi
cristy8b350f62009-11-15 23:12:43 +000028372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028373$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028374if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028375 LIB_DL='-ldl'
28376fi
28377
28378 LIBS="$LIB_DL $LIBS"
28379fi
28380
28381
28382
28383#
28384# Check for Autotrace delegate library.
28385#
28386
28387# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028388if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028389 withval=$with_autotrace; with_autotrace=$withval
28390else
28391 with_autotrace='no'
28392fi
28393
28394
28395if test "$with_autotrace" != 'yes'; then
28396 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28397fi
28398
28399have_autotrace='no'
28400AUTOTRACE_CFLAGS=""
28401AUTOTRACE_LIBS=""
28402AUTOTRACE_PKG=""
28403if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28405$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028406
28407pkg_failed=no
28408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28409$as_echo_n "checking for AUTOTRACE... " >&6; }
28410
28411if test -n "$AUTOTRACE_CFLAGS"; then
28412 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28413 elif test -n "$PKG_CONFIG"; then
28414 if test -n "$PKG_CONFIG" && \
28415 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28416 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28417 ac_status=$?
28418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28419 test $ac_status = 0; }; then
28420 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28421else
28422 pkg_failed=yes
28423fi
28424 else
28425 pkg_failed=untried
28426fi
28427if test -n "$AUTOTRACE_LIBS"; then
28428 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28429 elif test -n "$PKG_CONFIG"; then
28430 if test -n "$PKG_CONFIG" && \
28431 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28432 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28433 ac_status=$?
28434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28435 test $ac_status = 0; }; then
28436 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28437else
28438 pkg_failed=yes
28439fi
28440 else
28441 pkg_failed=untried
28442fi
28443
28444
28445
28446if test $pkg_failed = yes; then
28447
28448if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28449 _pkg_short_errors_supported=yes
28450else
28451 _pkg_short_errors_supported=no
28452fi
28453 if test $_pkg_short_errors_supported = yes; then
28454 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28455 else
28456 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28457 fi
28458 # Put the nasty error message in config.log where it belongs
28459 echo "$AUTOTRACE_PKG_ERRORS" >&5
28460
28461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28462$as_echo "no" >&6; }
28463 have_autotrace=no
28464elif test $pkg_failed = untried; then
28465 have_autotrace=no
28466else
28467 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28468 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28470$as_echo "yes" >&6; }
28471 have_autotrace=yes
28472fi
cristyad38abe2012-12-23 23:03:21 +000028473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28474$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028475fi
28476
28477if test "$have_autotrace" = 'yes'; then
28478 failed=0
28479
cristy8b350f62009-11-15 23:12:43 +000028480$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028481
cristyc6722092012-10-14 00:19:31 +000028482 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028483 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028484 fi
28485fi
28486
cristy73bd4a52010-10-05 11:24:23 +000028487 if test "$have_autotrace" = 'yes'; then
28488 AUTOTRACE_DELEGATE_TRUE=
28489 AUTOTRACE_DELEGATE_FALSE='#'
28490else
28491 AUTOTRACE_DELEGATE_TRUE='#'
28492 AUTOTRACE_DELEGATE_FALSE=
28493fi
28494
cristy3ed852e2009-09-05 21:47:34 +000028495
28496
28497
28498
28499#
28500# Check for Display Postscript delegate library.
28501#
28502
28503# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028504if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028505 withval=$with_dps; with_dps=$withval
28506else
28507 with_dps='yes'
28508fi
28509
28510
28511if test "$with_dps" != 'yes'; then
28512 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28513fi
28514
28515have_dps='no'
28516DPS_LIBS=''
28517if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28519$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028521$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28523$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028524 failed=0
28525 passed=0
28526 PERSIST_CPPFLAGS="$CPPFLAGS"
28527 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028528 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 +000028529if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028530 passed=`expr $passed + 1`
28531else
28532 failed=`expr $failed + 1`
28533fi
28534
28535
28536 # DPS issues:
28537 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28538 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28539 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28540 # ImageMagick itself doesn't use -lXt.
28541 have_libdps='no'
28542 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028544$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028545if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028546 $as_echo_n "(cached) " >&6
28547else
28548 ac_check_lib_save_LIBS=$LIBS
28549LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028551/* end confdefs.h. */
28552
28553/* Override any GCC internal prototype to avoid an error.
28554 Use char because int might match the return type of a GCC
28555 builtin and then its argument prototype would still apply. */
28556#ifdef __cplusplus
28557extern "C"
28558#endif
28559char DPSInitialize ();
28560int
28561main ()
28562{
28563return DPSInitialize ();
28564 ;
28565 return 0;
28566}
28567_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028568if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028569 ac_cv_lib_dps_DPSInitialize=yes
28570else
cristy8b350f62009-11-15 23:12:43 +000028571 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028572fi
cristy8b350f62009-11-15 23:12:43 +000028573rm -f core conftest.err conftest.$ac_objext \
28574 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028575LIBS=$ac_check_lib_save_LIBS
28576fi
cristy8b350f62009-11-15 23:12:43 +000028577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028578$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028579if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028580 have_libdps='yes'
28581else
28582 have_libdps='no'
28583fi
28584
28585 if test "$have_libdps" != 'yes'; then
28586 # Unset cache variable so we can try again.
28587 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028589$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028590if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028591 $as_echo_n "(cached) " >&6
28592else
28593 ac_check_lib_save_LIBS=$LIBS
28594LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028596/* end confdefs.h. */
28597
28598/* Override any GCC internal prototype to avoid an error.
28599 Use char because int might match the return type of a GCC
28600 builtin and then its argument prototype would still apply. */
28601#ifdef __cplusplus
28602extern "C"
28603#endif
28604char DPSInitialize ();
28605int
28606main ()
28607{
28608return DPSInitialize ();
28609 ;
28610 return 0;
28611}
28612_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028613if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028614 ac_cv_lib_dps_DPSInitialize=yes
28615else
cristy8b350f62009-11-15 23:12:43 +000028616 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028617fi
cristy8b350f62009-11-15 23:12:43 +000028618rm -f core conftest.err conftest.$ac_objext \
28619 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028620LIBS=$ac_check_lib_save_LIBS
28621fi
cristy8b350f62009-11-15 23:12:43 +000028622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028623$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028624if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028625 have_libdps='yes'
28626else
28627 have_libdps='no'
28628fi
28629
28630 if test "$have_libdps" = 'yes'; then
28631 LIBDPS_XT='-lXt'
28632 fi
28633 fi
28634 if test "$have_libdps" = 'yes'; then
28635 passed=`expr $passed + 1`
28636 else
28637 failed=`expr $failed + 1`
28638 fi
cristy8b350f62009-11-15 23:12:43 +000028639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028640$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028641if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028642 $as_echo_n "(cached) " >&6
28643else
28644 ac_check_lib_save_LIBS=$LIBS
28645LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028647/* end confdefs.h. */
28648
28649/* Override any GCC internal prototype to avoid an error.
28650 Use char because int might match the return type of a GCC
28651 builtin and then its argument prototype would still apply. */
28652#ifdef __cplusplus
28653extern "C"
28654#endif
28655char XDPSPixelsPerPoint ();
28656int
28657main ()
28658{
28659return XDPSPixelsPerPoint ();
28660 ;
28661 return 0;
28662}
28663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028664if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028665 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28666else
cristy8b350f62009-11-15 23:12:43 +000028667 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028668fi
cristy8b350f62009-11-15 23:12:43 +000028669rm -f core conftest.err conftest.$ac_objext \
28670 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028671LIBS=$ac_check_lib_save_LIBS
28672fi
cristy8b350f62009-11-15 23:12:43 +000028673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028674$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028675if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028676 passed=`expr $passed + 1`
28677else
28678 failed=`expr $failed + 1`
28679fi
28680
cristy8b350f62009-11-15 23:12:43 +000028681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028682$as_echo_n "checking if DPS package is complete... " >&6; }
28683 if test $passed -gt 0; then
28684 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28686$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028687 have_dps='no (failed tests)'
28688 CPPFLAGS="$PERSIST_CPPFLAGS"
28689 else
28690 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28691 LIBS="$DPS_LIBS $LIBS"
28692
cristy8b350f62009-11-15 23:12:43 +000028693$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028694
cristyad38abe2012-12-23 23:03:21 +000028695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28696$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028697 have_dps='yes'
28698 fi
28699 else
cristyad38abe2012-12-23 23:03:21 +000028700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28701$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028702 CPPFLAGS=$PERSIST_CPPFLAGS
28703 fi
28704fi
cristy73bd4a52010-10-05 11:24:23 +000028705 if test "$have_dps" = 'yes'; then
28706 DPS_DELEGATE_TRUE=
28707 DPS_DELEGATE_FALSE='#'
28708else
28709 DPS_DELEGATE_TRUE='#'
28710 DPS_DELEGATE_FALSE=
28711fi
28712
cristy3ed852e2009-09-05 21:47:34 +000028713
28714
28715
28716#
28717# Check for DJVU delegate library.
28718#
28719
28720# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028721if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028722 withval=$with_djvu; with_djvu=$withval
28723else
28724 with_djvu='yes'
28725fi
28726
28727
28728if test "$with_djvu" != 'yes'; then
28729 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28730fi
28731
28732have_djvu='no'
28733DJVU_LIBS=''
28734if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28736$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028738$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28740$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028741 failed=0
28742 passed=0
cristy8b350f62009-11-15 23:12:43 +000028743 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 +000028744if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028745 passed=`expr $passed + 1`
28746else
28747 failed=`expr $failed + 1`
28748fi
28749
28750
cristy8b350f62009-11-15 23:12:43 +000028751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028752$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028753if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028754 $as_echo_n "(cached) " >&6
28755else
28756 ac_check_lib_save_LIBS=$LIBS
28757LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028759/* end confdefs.h. */
28760
28761/* Override any GCC internal prototype to avoid an error.
28762 Use char because int might match the return type of a GCC
28763 builtin and then its argument prototype would still apply. */
28764#ifdef __cplusplus
28765extern "C"
28766#endif
28767char ddjvu_context_create ();
28768int
28769main ()
28770{
28771return ddjvu_context_create ();
28772 ;
28773 return 0;
28774}
28775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028776if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028777 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28778else
cristy8b350f62009-11-15 23:12:43 +000028779 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028780fi
cristy8b350f62009-11-15 23:12:43 +000028781rm -f core conftest.err conftest.$ac_objext \
28782 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028783LIBS=$ac_check_lib_save_LIBS
28784fi
cristy8b350f62009-11-15 23:12:43 +000028785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028786$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028787if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028788 passed=`expr $passed + 1`
28789else
28790 failed=`expr $failed + 1`
28791fi
28792
cristy8b350f62009-11-15 23:12:43 +000028793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028794$as_echo_n "checking if DJVU package is complete... " >&6; }
28795 if test $passed -gt 0; then
28796 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28798$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028799 have_djvu='no (failed tests)'
28800 else
28801 DJVU_LIBS='-ldjvulibre'
28802 LIBS="$DJVU_LIBS $LIBS"
28803
cristy8b350f62009-11-15 23:12:43 +000028804$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028805
cristyad38abe2012-12-23 23:03:21 +000028806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28807$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028808 have_djvu='yes'
28809 fi
28810 else
cristyad38abe2012-12-23 23:03:21 +000028811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28812$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028813 fi
28814fi
cristy73bd4a52010-10-05 11:24:23 +000028815 if test "$have_djvu" = 'yes'; then
28816 DJVU_DELEGATE_TRUE=
28817 DJVU_DELEGATE_FALSE='#'
28818else
28819 DJVU_DELEGATE_TRUE='#'
28820 DJVU_DELEGATE_FALSE=
28821fi
28822
cristy3ed852e2009-09-05 21:47:34 +000028823
28824
28825
28826#
cristy430a7312010-01-21 20:44:04 +000028827# Set DejaVu font directory.
28828#
28829
28830# Check whether --with-dejavu-font-dir was given.
28831if test "${with_dejavu_font_dir+set}" = set; then :
28832 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28833else
28834 with_dejavu_font_dir='default'
28835fi
28836
28837
28838if test "$with_dejavu_font_dir" != 'default'; then
28839 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28840fi
28841
28842
28843#
cristy3ed852e2009-09-05 21:47:34 +000028844# Check for FFTW delegate library.
28845#
28846
28847# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028848if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028849 withval=$with_fftw; with_fftw=$withval
28850else
28851 with_fftw='yes'
28852fi
28853
28854
28855if test "$with_fftw" != 'yes'; then
28856 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28857fi
28858
cristy81beccd2011-10-03 18:17:24 +000028859have_fftw='no'
28860FFTW_LIBS=''
28861if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28863$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28865$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28867$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028868 failed=0
28869 passed=0
28870 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28871if test "x$ac_cv_header_fftw3_h" = xyes; then :
28872 passed=`expr $passed + 1`
28873else
28874 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028875fi
28876
cristy81beccd2011-10-03 18:17:24 +000028877
28878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28879$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28880if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28881 $as_echo_n "(cached) " >&6
28882else
28883 ac_check_lib_save_LIBS=$LIBS
28884LIBS="-lfftw3 $LIBS"
28885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28886/* end confdefs.h. */
28887
28888/* Override any GCC internal prototype to avoid an error.
28889 Use char because int might match the return type of a GCC
28890 builtin and then its argument prototype would still apply. */
28891#ifdef __cplusplus
28892extern "C"
28893#endif
28894char fftw_execute ();
28895int
28896main ()
28897{
28898return fftw_execute ();
28899 ;
28900 return 0;
28901}
28902_ACEOF
28903if ac_fn_c_try_link "$LINENO"; then :
28904 ac_cv_lib_fftw3_fftw_execute=yes
28905else
28906 ac_cv_lib_fftw3_fftw_execute=no
28907fi
28908rm -f core conftest.err conftest.$ac_objext \
28909 conftest$ac_exeext conftest.$ac_ext
28910LIBS=$ac_check_lib_save_LIBS
28911fi
28912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28913$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28914if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28915 passed=`expr $passed + 1`
28916else
28917 failed=`expr $failed + 1`
28918fi
28919
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28921$as_echo_n "checking if FFTW package is complete... " >&6; }
28922 if test $passed -gt 0; then
28923 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28925$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028926 have_fftw='no (failed tests)'
28927 else
28928 FFTW_LIBS='-lfftw3'
28929 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028930
cristy8b350f62009-11-15 23:12:43 +000028931$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028932
cristyad38abe2012-12-23 23:03:21 +000028933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28934$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028935 have_fftw='yes'
28936 fi
28937 else
cristyad38abe2012-12-23 23:03:21 +000028938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28939$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028940 fi
28941fi
cristy73bd4a52010-10-05 11:24:23 +000028942 if test "$have_fftw" = 'yes'; then
28943 FFTW_DELEGATE_TRUE=
28944 FFTW_DELEGATE_FALSE='#'
28945else
28946 FFTW_DELEGATE_TRUE='#'
28947 FFTW_DELEGATE_FALSE=
28948fi
28949
cristy3ed852e2009-09-05 21:47:34 +000028950
28951
28952
28953#
28954# Check for FlashPIX delegate library.
28955#
28956
28957# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028958if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028959 withval=$with_fpx; with_fpx=$withval
28960else
28961 with_fpx='yes'
28962fi
28963
28964
28965if test "$with_fpx" != 'yes'; then
28966 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28967fi
28968
28969have_fpx='no'
28970FPX_LIBS=''
cristyd7f73ad2014-03-05 00:25:29 +000028971SAVED_LIBS=${LIBS}
28972LIBS=${LIBS/-ldjvulibre/}
cristy3ed852e2009-09-05 21:47:34 +000028973if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28975$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028977$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28979$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028980 failed=0
28981 passed=0
28982 ac_ext=cpp
28983ac_cpp='$CXXCPP $CPPFLAGS'
28984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28987
28988
cristy8b350f62009-11-15 23:12:43 +000028989ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028990if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028991 passed=`expr $passed + 1`
28992else
28993 failed=`expr $failed + 1`
28994fi
28995
28996
cristy8b350f62009-11-15 23:12:43 +000028997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028998$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028999if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029000 $as_echo_n "(cached) " >&6
29001else
29002 ac_check_lib_save_LIBS=$LIBS
29003LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029005/* end confdefs.h. */
29006
29007/* Override any GCC internal prototype to avoid an error.
29008 Use char because int might match the return type of a GCC
29009 builtin and then its argument prototype would still apply. */
29010#ifdef __cplusplus
29011extern "C"
29012#endif
29013char FPX_OpenImageByFilename ();
29014int
29015main ()
29016{
29017return FPX_OpenImageByFilename ();
29018 ;
29019 return 0;
29020}
29021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029022if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029023 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29024else
cristy8b350f62009-11-15 23:12:43 +000029025 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029026fi
cristy8b350f62009-11-15 23:12:43 +000029027rm -f core conftest.err conftest.$ac_objext \
29028 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029029LIBS=$ac_check_lib_save_LIBS
29030fi
cristy8b350f62009-11-15 23:12:43 +000029031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029032$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029033if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029034 passed=`expr $passed + 1`
29035else
29036 failed=`expr $failed + 1`
29037fi
29038
29039 ac_ext=c
29040ac_cpp='$CPP $CPPFLAGS'
29041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29043ac_compiler_gnu=$ac_cv_c_compiler_gnu
29044
cristy8b350f62009-11-15 23:12:43 +000029045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029046$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29047 if test $passed -gt 0; then
29048 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29050$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029051 have_fpx='no (failed tests)'
29052 else
29053 FPX_LIBS='-lfpx'
29054
cristy8b350f62009-11-15 23:12:43 +000029055$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029056
cristyad38abe2012-12-23 23:03:21 +000029057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29058$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029059 have_fpx='yes'
29060 PERLMAINCC="$CXX"
29061 fi
29062 else
cristyad38abe2012-12-23 23:03:21 +000029063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29064$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029065 fi
29066fi
cristy73bd4a52010-10-05 11:24:23 +000029067 if test "$have_fpx" = 'yes'; then
29068 FPX_DELEGATE_TRUE=
29069 FPX_DELEGATE_FALSE='#'
29070else
29071 FPX_DELEGATE_TRUE='#'
29072 FPX_DELEGATE_FALSE=
29073fi
29074
cristy3ed852e2009-09-05 21:47:34 +000029075
cristyd7f73ad2014-03-05 00:25:29 +000029076LIBS=${SAVED_LIBS}
cristy3ed852e2009-09-05 21:47:34 +000029077
29078
29079#
29080# Check for fontconfig delegate library.
29081#
29082
29083# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029084if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029085 withval=$with_fontconfig; with_fontconfig=$withval
29086else
cristyfc3d0222012-02-07 15:05:57 +000029087 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029088fi
29089
29090
29091if test "$with_fontconfig" != 'yes'; then
29092 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29093fi
29094
29095have_fontconfig='no'
29096FONTCONFIG_CFLAGS=""
29097FONTCONFIG_LIBS=""
29098FONTCONFIG_PKG=""
29099if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29101$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029102
29103pkg_failed=no
29104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29105$as_echo_n "checking for FONTCONFIG... " >&6; }
29106
29107if test -n "$FONTCONFIG_CFLAGS"; then
29108 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29109 elif test -n "$PKG_CONFIG"; then
29110 if test -n "$PKG_CONFIG" && \
29111 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29112 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29113 ac_status=$?
29114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29115 test $ac_status = 0; }; then
29116 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29117else
29118 pkg_failed=yes
29119fi
29120 else
29121 pkg_failed=untried
29122fi
29123if test -n "$FONTCONFIG_LIBS"; then
29124 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29125 elif test -n "$PKG_CONFIG"; then
29126 if test -n "$PKG_CONFIG" && \
29127 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29128 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29129 ac_status=$?
29130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29131 test $ac_status = 0; }; then
29132 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29133else
29134 pkg_failed=yes
29135fi
29136 else
29137 pkg_failed=untried
29138fi
29139
29140
29141
29142if test $pkg_failed = yes; then
29143
29144if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29145 _pkg_short_errors_supported=yes
29146else
29147 _pkg_short_errors_supported=no
29148fi
29149 if test $_pkg_short_errors_supported = yes; then
29150 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29151 else
29152 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29153 fi
29154 # Put the nasty error message in config.log where it belongs
29155 echo "$FONTCONFIG_PKG_ERRORS" >&5
29156
29157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29158$as_echo "no" >&6; }
29159 have_fontconfig=no
29160elif test $pkg_failed = untried; then
29161 have_fontconfig=no
29162else
29163 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29164 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29166$as_echo "yes" >&6; }
29167 have_fontconfig=yes
29168fi
cristyad38abe2012-12-23 23:03:21 +000029169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29170$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029171fi
29172
29173if test "$have_fontconfig" = 'yes'; then
29174
cristy8b350f62009-11-15 23:12:43 +000029175$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029176
cristyc6722092012-10-14 00:19:31 +000029177 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029178 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029179 fi
cristy3ed852e2009-09-05 21:47:34 +000029180fi
29181
cristy73bd4a52010-10-05 11:24:23 +000029182 if test "$have_fontconfig" = 'yes'; then
29183 FONTCONFIG_DELEGATE_TRUE=
29184 FONTCONFIG_DELEGATE_FALSE='#'
29185else
29186 FONTCONFIG_DELEGATE_TRUE='#'
29187 FONTCONFIG_DELEGATE_FALSE=
29188fi
29189
cristy3ed852e2009-09-05 21:47:34 +000029190
29191
29192
29193
29194#
cristy03f187e2013-01-24 00:22:19 +000029195# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029196#
29197
29198# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029199if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029200 withval=$with_freetype; with_freetype=$withval
29201else
29202 with_freetype='yes'
29203fi
29204
29205
cristy3ed852e2009-09-05 21:47:34 +000029206if test "$with_freetype" != 'yes'; then
29207 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29208fi
29209
cristy81beccd2011-10-03 18:17:24 +000029210have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029211FREETYPE_CFLAGS=""
29212FREETYPE_LIBS=""
29213FREETYPE_PKG=""
29214if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29216$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029217
29218pkg_failed=no
29219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29220$as_echo_n "checking for FREETYPE... " >&6; }
29221
29222if test -n "$FREETYPE_CFLAGS"; then
29223 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29224 elif test -n "$PKG_CONFIG"; then
29225 if test -n "$PKG_CONFIG" && \
29226 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29227 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29228 ac_status=$?
29229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29230 test $ac_status = 0; }; then
29231 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29232else
29233 pkg_failed=yes
29234fi
29235 else
29236 pkg_failed=untried
29237fi
29238if test -n "$FREETYPE_LIBS"; then
29239 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29240 elif test -n "$PKG_CONFIG"; then
29241 if test -n "$PKG_CONFIG" && \
29242 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29243 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29244 ac_status=$?
29245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29246 test $ac_status = 0; }; then
29247 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29248else
29249 pkg_failed=yes
29250fi
29251 else
29252 pkg_failed=untried
29253fi
29254
29255
29256
29257if test $pkg_failed = yes; then
29258
29259if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29260 _pkg_short_errors_supported=yes
29261else
29262 _pkg_short_errors_supported=no
29263fi
29264 if test $_pkg_short_errors_supported = yes; then
29265 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29266 else
29267 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29268 fi
29269 # Put the nasty error message in config.log where it belongs
29270 echo "$FREETYPE_PKG_ERRORS" >&5
29271
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29273$as_echo "no" >&6; }
29274 have_freetype=no
29275elif test $pkg_failed = untried; then
29276 have_freetype=no
29277else
29278 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29279 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29281$as_echo "yes" >&6; }
29282 have_freetype=yes
29283fi
cristyad38abe2012-12-23 23:03:21 +000029284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29285$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029286fi
29287
cristy03f187e2013-01-24 00:22:19 +000029288if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029289
cristy8b350f62009-11-15 23:12:43 +000029290$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029291
cristy03f187e2013-01-24 00:22:19 +000029292 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029293fi
cristy03f187e2013-01-24 00:22:19 +000029294
cristy73bd4a52010-10-05 11:24:23 +000029295 if test "$have_freetype" = 'yes'; then
29296 FREETYPE_DELEGATE_TRUE=
29297 FREETYPE_DELEGATE_FALSE='#'
29298else
29299 FREETYPE_DELEGATE_TRUE='#'
29300 FREETYPE_DELEGATE_FALSE=
29301fi
29302
cristy3ed852e2009-09-05 21:47:34 +000029303
29304
29305
cristy03f187e2013-01-24 00:22:19 +000029306
cristy3ed852e2009-09-05 21:47:34 +000029307#
29308# Check for Ghostscript library or framework.
29309#
29310# Test for iapi.h & test for gsapi_new_instance in -lgs
29311# or -framework Ghostscript
29312
29313
29314# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029315if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029316 withval=$with_gslib; with_gslib=$withval
29317else
29318 with_gslib='no'
29319fi
29320
29321
cristyb7931f12009-09-25 10:22:21 +000029322gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029323if test "$with_gslib" != 'yes'; then
29324 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29325fi
29326
29327have_gslib='no'
29328GS_LIBS=''
29329if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29331$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029333$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29335$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029336 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029337 failed=0
29338 passed=0
cristy8b350f62009-11-15 23:12:43 +000029339 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 +000029340if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029341 passed=`expr $passed + 1`
29342else
29343 failed=`expr $failed + 1`
29344fi
29345
29346
cristy8b350f62009-11-15 23:12:43 +000029347 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 +000029348if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029349 passed=`expr $passed + 1`
29350else
29351 failed=`expr $failed + 1`
29352fi
29353
29354
cristy73bd4a52010-10-05 11:24:23 +000029355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29356$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029357if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029358 $as_echo_n "(cached) " >&6
29359else
29360 ac_check_framework_save_LIBS=$LIBS
29361LIBS="-framework Ghostscript $LIBS"
29362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29363/* end confdefs.h. */
29364
29365/* Override any GCC internal prototype to avoid an error.
29366 Use char because int might match the return type of a GCC
29367 builtin and then its argument prototype would still apply. */
29368#ifdef __cplusplus
29369extern "C"
29370#endif
29371char gsapi_new_instance ();
29372int
29373main ()
29374{
29375return gsapi_new_instance ();
29376 ;
29377 return 0;
29378}
29379_ACEOF
29380if ac_fn_c_try_link "$LINENO"; then :
29381 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29382else
29383 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29384fi
29385rm -f core conftest.err conftest.$ac_objext \
29386 conftest$ac_exeext conftest.$ac_ext
29387LIBS=$ac_check_framework_save_LIBS
29388fi
29389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29390$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29391if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29392 framework=`expr $framework + 1`
29393else
29394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029395$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029396if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029397 $as_echo_n "(cached) " >&6
29398else
29399 ac_check_lib_save_LIBS=$LIBS
29400LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029402/* end confdefs.h. */
29403
29404/* Override any GCC internal prototype to avoid an error.
29405 Use char because int might match the return type of a GCC
29406 builtin and then its argument prototype would still apply. */
29407#ifdef __cplusplus
29408extern "C"
29409#endif
29410char gsapi_new_instance ();
29411int
29412main ()
29413{
29414return gsapi_new_instance ();
29415 ;
29416 return 0;
29417}
29418_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029419if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029420 ac_cv_lib_gs_gsapi_new_instance=yes
29421else
cristy8b350f62009-11-15 23:12:43 +000029422 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029423fi
cristy8b350f62009-11-15 23:12:43 +000029424rm -f core conftest.err conftest.$ac_objext \
29425 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029426LIBS=$ac_check_lib_save_LIBS
29427fi
cristy8b350f62009-11-15 23:12:43 +000029428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029429$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029430if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029431 passed=`expr $passed + 1`
29432else
29433 failed=`expr $failed + 1`
29434fi
cristy73bd4a52010-10-05 11:24:23 +000029435
29436fi
cristy8b350f62009-11-15 23:12:43 +000029437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029438$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29439 if test $passed -gt 0; then
29440 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29442$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029443 have_gslib='no (failed tests)'
29444 else
29445 if test $framework -gt 0; then
29446 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029447 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29449$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029450 else
cristyad38abe2012-12-23 23:03:21 +000029451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29452$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029453 GS_LIBS='-lgs'
29454 fi
29455 LIBS="$GS_LIBS $LIBS"
29456
cristy8b350f62009-11-15 23:12:43 +000029457$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029458
29459 have_gslib='yes'
29460 fi
29461 else
cristyad38abe2012-12-23 23:03:21 +000029462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29463$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029464 fi
29465fi
cristy73bd4a52010-10-05 11:24:23 +000029466 if test "$have_gslib" = 'yes'; then
29467 GS_DELEGATE_TRUE=
29468 GS_DELEGATE_FALSE='#'
29469else
29470 GS_DELEGATE_TRUE='#'
29471 GS_DELEGATE_FALSE=
29472fi
29473
cristy3ed852e2009-09-05 21:47:34 +000029474
29475
29476# Set default font search path
29477
29478# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029479if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029480 withval=$with_fontpath; with_fontpath=$withval
29481else
29482 with_fontpath=''
29483fi
29484
29485
29486if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29487 with_fontpath=''
29488else
29489
29490cat >>confdefs.h <<_ACEOF
29491#define MAGICK_FONT_PATH "$with_fontpath"
29492_ACEOF
29493
29494fi
29495if test "$with_fontpath=" != ''; then
29496 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29497fi
29498
29499# Set Ghostscript font directory
29500
29501# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029502if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029503 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29504else
29505 with_gs_font_dir='default'
29506fi
29507
29508
29509if test "$with_gs_font_dir" != 'default'; then
29510 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29511fi
29512
29513
29514#
29515# Check for GVC delegate library.
29516#
29517
29518# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029519if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029520 withval=$with_gvc; with_gvc=$withval
29521else
cristy1b70dc82012-07-01 23:15:05 +000029522 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029523fi
29524
29525
29526if test "$with_gvc" != 'yes'; then
29527 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29528fi
29529
29530GVC_PKG=""
29531if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29533$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029534
29535pkg_failed=no
29536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29537$as_echo_n "checking for GVC... " >&6; }
29538
29539if test -n "$GVC_CFLAGS"; then
29540 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29541 elif test -n "$PKG_CONFIG"; then
29542 if test -n "$PKG_CONFIG" && \
29543 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29544 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29545 ac_status=$?
29546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29547 test $ac_status = 0; }; then
29548 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29549else
29550 pkg_failed=yes
29551fi
29552 else
29553 pkg_failed=untried
29554fi
29555if test -n "$GVC_LIBS"; then
29556 pkg_cv_GVC_LIBS="$GVC_LIBS"
29557 elif test -n "$PKG_CONFIG"; then
29558 if test -n "$PKG_CONFIG" && \
29559 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29560 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29561 ac_status=$?
29562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29563 test $ac_status = 0; }; then
29564 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29565else
29566 pkg_failed=yes
29567fi
29568 else
29569 pkg_failed=untried
29570fi
29571
29572
29573
29574if test $pkg_failed = yes; then
29575
29576if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29577 _pkg_short_errors_supported=yes
29578else
29579 _pkg_short_errors_supported=no
29580fi
29581 if test $_pkg_short_errors_supported = yes; then
29582 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29583 else
29584 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29585 fi
29586 # Put the nasty error message in config.log where it belongs
29587 echo "$GVC_PKG_ERRORS" >&5
29588
29589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29590$as_echo "no" >&6; }
29591 have_gvc=no
29592elif test $pkg_failed = untried; then
29593 have_gvc=no
29594else
29595 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29596 GVC_LIBS=$pkg_cv_GVC_LIBS
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29598$as_echo "yes" >&6; }
29599 have_gvc=yes
29600fi
cristyad38abe2012-12-23 23:03:21 +000029601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29602$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029603fi
29604
29605if test "$have_gvc" = 'yes'; then
29606
cristy8b350f62009-11-15 23:12:43 +000029607$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029608
cristyc6722092012-10-14 00:19:31 +000029609 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029610 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29611 fi
29612fi
29613
cristy73bd4a52010-10-05 11:24:23 +000029614 if test "$have_gvc" = 'yes'; then
29615 GVC_DELEGATE_TRUE=
29616 GVC_DELEGATE_FALSE='#'
29617else
29618 GVC_DELEGATE_TRUE='#'
29619 GVC_DELEGATE_FALSE=
29620fi
29621
cristy3ed852e2009-09-05 21:47:34 +000029622
29623
29624
29625
29626#
29627# Check for JBIG delegate library.
29628#
29629
29630
29631# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029632if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029633 withval=$with_jbig; with_jbig=$withval
29634else
29635 with_jbig='yes'
29636fi
29637
29638
29639have_jbig='no'
29640JBIG_LIBS=''
29641if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29643$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029645$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29647$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029648 failed=0
29649 passed=0
cristy8b350f62009-11-15 23:12:43 +000029650 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029651if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029652 passed=`expr $passed + 1`
29653else
29654 failed=`expr $failed + 1`
29655fi
29656
29657
cristy8b350f62009-11-15 23:12:43 +000029658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029659$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029660if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029661 $as_echo_n "(cached) " >&6
29662else
29663 ac_check_lib_save_LIBS=$LIBS
29664LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029666/* end confdefs.h. */
29667
29668/* Override any GCC internal prototype to avoid an error.
29669 Use char because int might match the return type of a GCC
29670 builtin and then its argument prototype would still apply. */
29671#ifdef __cplusplus
29672extern "C"
29673#endif
29674char jbg_dec_init ();
29675int
29676main ()
29677{
29678return jbg_dec_init ();
29679 ;
29680 return 0;
29681}
29682_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029683if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029684 ac_cv_lib_jbig_jbg_dec_init=yes
29685else
cristy8b350f62009-11-15 23:12:43 +000029686 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029687fi
cristy8b350f62009-11-15 23:12:43 +000029688rm -f core conftest.err conftest.$ac_objext \
29689 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029690LIBS=$ac_check_lib_save_LIBS
29691fi
cristy8b350f62009-11-15 23:12:43 +000029692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029693$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029694if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029695 passed=`expr $passed + 1`
29696else
29697 failed=`expr $failed + 1`
29698fi
29699
cristy8b350f62009-11-15 23:12:43 +000029700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029701$as_echo_n "checking if JBIG package is complete... " >&6; }
29702 if test $passed -gt 0; then
29703 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29705$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029706 have_jbig='no (failed tests)'
29707 else
29708 JBIG_LIBS='-ljbig'
29709 LIBS="$JBIG_LIBS $LIBS"
29710
cristy8b350f62009-11-15 23:12:43 +000029711$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029712
cristyad38abe2012-12-23 23:03:21 +000029713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29714$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029715 have_jbig='yes'
29716 fi
29717 else
cristyad38abe2012-12-23 23:03:21 +000029718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29719$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029720 fi
29721fi
cristy73bd4a52010-10-05 11:24:23 +000029722 if test "$have_jbig" = 'yes'; then
29723 JBIG_DELEGATE_TRUE=
29724 JBIG_DELEGATE_FALSE='#'
29725else
29726 JBIG_DELEGATE_TRUE='#'
29727 JBIG_DELEGATE_FALSE=
29728fi
29729
cristy3ed852e2009-09-05 21:47:34 +000029730
29731
29732
29733#
29734# Check for JPEG delegate library.
29735#
29736
29737# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029738if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029739 withval=$with_jpeg; with_jpeg=$withval
29740else
29741 with_jpeg='yes'
29742fi
29743
29744
29745if test "$with_jpeg" != 'yes'; then
29746 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29747fi
29748
29749have_jpeg='no'
29750JPEG_LIBS=''
29751if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29753$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029755$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29757$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029758 failed=0
29759 passed=0
cristy8b350f62009-11-15 23:12:43 +000029760 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029761if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029762 passed=`expr $passed + 1`
29763else
29764 failed=`expr $failed + 1`
29765fi
29766
29767
cristy8b350f62009-11-15 23:12:43 +000029768 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029769if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029770 passed=`expr $passed + 1`
29771else
29772 failed=`expr $failed + 1`
29773fi
29774
29775
cristy8b350f62009-11-15 23:12:43 +000029776 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029777if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029778 passed=`expr $passed + 1`
29779else
29780 failed=`expr $failed + 1`
29781fi
29782
29783
cristy8b350f62009-11-15 23:12:43 +000029784 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029785if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029786 passed=`expr $passed + 1`
29787else
29788 failed=`expr $failed + 1`
29789fi
29790
29791
cristy8b350f62009-11-15 23:12:43 +000029792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029793$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029794if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029795 $as_echo_n "(cached) " >&6
29796else
29797 ac_check_lib_save_LIBS=$LIBS
29798LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029800/* end confdefs.h. */
29801
29802/* Override any GCC internal prototype to avoid an error.
29803 Use char because int might match the return type of a GCC
29804 builtin and then its argument prototype would still apply. */
29805#ifdef __cplusplus
29806extern "C"
29807#endif
29808char jpeg_read_header ();
29809int
29810main ()
29811{
29812return jpeg_read_header ();
29813 ;
29814 return 0;
29815}
29816_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029817if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029818 ac_cv_lib_jpeg_jpeg_read_header=yes
29819else
cristy8b350f62009-11-15 23:12:43 +000029820 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029821fi
cristy8b350f62009-11-15 23:12:43 +000029822rm -f core conftest.err conftest.$ac_objext \
29823 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029824LIBS=$ac_check_lib_save_LIBS
29825fi
cristy8b350f62009-11-15 23:12:43 +000029826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029827$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029828if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029829 passed=`expr $passed + 1`
29830else
29831 failed=`expr $failed + 1`
29832fi
29833
29834
29835# Test for compatible JPEG library
29836if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029838$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029839if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029840 $as_echo_n "(cached) " >&6
29841else
cristy8b350f62009-11-15 23:12:43 +000029842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029843/* end confdefs.h. */
29844#include <stdio.h>
29845#include <stdlib.h>
29846#include <jpeglib.h>
29847
29848int
29849main ()
29850{
29851
29852#if JPEG_LIB_VERSION < 62
29853#error IJG JPEG library must be version 6b or newer!
29854#endif
29855return 0;
29856
29857 ;
29858 return 0;
29859}
29860_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029861if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029862 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29863else
cristy8b350f62009-11-15 23:12:43 +000029864 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029865fi
cristy3ed852e2009-09-05 21:47:34 +000029866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29867fi
cristy8b350f62009-11-15 23:12:43 +000029868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029869$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29870fi
cristy8b350f62009-11-15 23:12:43 +000029871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029872$as_echo_n "checking if JPEG package is complete... " >&6; }
29873 if test $passed -gt 0; then
29874 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29876$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029877 have_jpeg='no (failed tests)'
29878 else
29879 JPEG_LIBS='-ljpeg'
29880 LIBS="$JPEG_LIBS $LIBS"
29881
cristy8b350f62009-11-15 23:12:43 +000029882$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029883
cristyad38abe2012-12-23 23:03:21 +000029884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29885$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029886 have_jpeg='yes'
29887 fi
29888 else
cristyad38abe2012-12-23 23:03:21 +000029889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29890$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029891 fi
29892fi
cristy73bd4a52010-10-05 11:24:23 +000029893 if test "$have_jpeg" = 'yes'; then
29894 JPEG_DELEGATE_TRUE=
29895 JPEG_DELEGATE_FALSE='#'
29896else
29897 JPEG_DELEGATE_TRUE='#'
29898 JPEG_DELEGATE_FALSE=
29899fi
29900
cristy3ed852e2009-09-05 21:47:34 +000029901
29902
29903
29904#
cristy3ed852e2009-09-05 21:47:34 +000029905# Check for LCMS delegate library.
29906#
cristy71203402010-06-18 13:12:03 +000029907# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029908
29909# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029910if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029911 withval=$with_lcms; with_lcms=$withval
29912else
29913 with_lcms='yes'
29914fi
29915
cristy71203402010-06-18 13:12:03 +000029916if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029917 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29918fi
29919
cristy71203402010-06-18 13:12:03 +000029920# Disable LCMS2.
29921
29922# Check whether --with-lcms2 was given.
29923if test "${with_lcms2+set}" = set; then :
29924 withval=$with_lcms2; with_lcms2=$withval
29925else
29926 with_lcms2='yes'
29927fi
29928
29929if test "$with_lcms2" != 'yes' ; then
29930 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29931fi
29932
29933have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029934LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029935if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29937$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29939$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29941$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029942 failed=0
29943 passed=0
29944 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029945
29946 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029947 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029948if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029949 have_lcms_header='yes'
29950fi
29951
29952
29953 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029954
29955$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29956
cristy71203402010-06-18 13:12:03 +000029957 passed=`expr $passed + 1`
29958 fi
29959
29960 # Check for <lcms2/lcms2.h)
29961 if test "$have_lcms_header" != 'yes'; then
29962 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 +000029963if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029964 have_lcms_header='yes'
29965fi
29966
29967
cristy71203402010-06-18 13:12:03 +000029968 if test "$have_lcms_header" = 'yes'; then
29969 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029970
cristy71203402010-06-18 13:12:03 +000029971$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029972
cristy71203402010-06-18 13:12:03 +000029973 fi
cristyd09bcf92010-03-25 03:04:45 +000029974 fi
cristy71203402010-06-18 13:12:03 +000029975
29976 # Failed to find lcms header?
29977 if test "$have_lcms_header" != 'yes'; then
29978 failed=`expr $failed + 1`
29979 fi
29980
29981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29982$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029983if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029984 $as_echo_n "(cached) " >&6
29985else
29986 ac_check_lib_save_LIBS=$LIBS
29987LIBS="-llcms2 $LIBS"
29988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29989/* end confdefs.h. */
29990
29991/* Override any GCC internal prototype to avoid an error.
29992 Use char because int might match the return type of a GCC
29993 builtin and then its argument prototype would still apply. */
29994#ifdef __cplusplus
29995extern "C"
29996#endif
cristy71203402010-06-18 13:12:03 +000029997char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029998int
29999main ()
30000{
cristy71203402010-06-18 13:12:03 +000030001return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030002 ;
30003 return 0;
30004}
30005_ACEOF
30006if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030007 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030008else
cristy71203402010-06-18 13:12:03 +000030009 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030010fi
30011rm -f core conftest.err conftest.$ac_objext \
30012 conftest$ac_exeext conftest.$ac_ext
30013LIBS=$ac_check_lib_save_LIBS
30014fi
cristy71203402010-06-18 13:12:03 +000030015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30016$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030017if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030018 passed=`expr $passed + 1`
30019else
30020 failed=`expr $failed + 1`
30021fi
30022
cristy71203402010-06-18 13:12:03 +000030023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30024$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030025 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030026 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30028$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030029 have_lcms2='no (failed tests)'
30030 else
30031 LCMS_LIBS='-llcms2'
30032 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30034$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030035 have_lcms2='yes'
30036 fi
cristyd09bcf92010-03-25 03:04:45 +000030037 else
cristyad38abe2012-12-23 23:03:21 +000030038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30039$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030040 fi
30041fi
30042
cristy71203402010-06-18 13:12:03 +000030043#
30044# Check for LCMS v1 (1.11 or later)
30045#
30046if test $have_lcms2 = 'yes'; then
30047 with_lcms='no'
30048fi
30049
30050have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030051if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30053$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30055$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30057$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030058 failed=0
30059 passed=0
30060 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030061
30062 # Check for <lcms.h>
30063 if test "$have_lcms_header" != 'yes'; then
30064 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030065if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030066 have_lcms_header='yes'
30067fi
30068
30069
cristy71203402010-06-18 13:12:03 +000030070 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030071 passed=`expr $passed + 1`
30072
cristy8b350f62009-11-15 23:12:43 +000030073$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030074
cristy71203402010-06-18 13:12:03 +000030075 fi
30076 fi
30077
30078 # Check for <lcms/lcms.h>
30079 if test "$have_lcms_header" != 'yes'; then
30080 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 +000030081if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030082 have_lcms_header='yes'
30083fi
30084
30085
cristy71203402010-06-18 13:12:03 +000030086 if test "$have_lcms_header" = 'yes'; then
30087 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030088
cristy8b350f62009-11-15 23:12:43 +000030089$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030090
cristy71203402010-06-18 13:12:03 +000030091 fi
cristy3ed852e2009-09-05 21:47:34 +000030092 fi
cristy71203402010-06-18 13:12:03 +000030093
30094 # Failed to find lcms header?
30095 if test "$have_lcms_header" != 'yes'; then
30096 failed=`expr $failed + 1`
30097 fi
30098
30099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30100$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030101if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030102 $as_echo_n "(cached) " >&6
30103else
30104 ac_check_lib_save_LIBS=$LIBS
30105LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030107/* end confdefs.h. */
30108
30109/* Override any GCC internal prototype to avoid an error.
30110 Use char because int might match the return type of a GCC
30111 builtin and then its argument prototype would still apply. */
30112#ifdef __cplusplus
30113extern "C"
30114#endif
cristy71203402010-06-18 13:12:03 +000030115char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030116int
30117main ()
30118{
cristy71203402010-06-18 13:12:03 +000030119return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030120 ;
30121 return 0;
30122}
30123_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030124if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030125 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030126else
cristy71203402010-06-18 13:12:03 +000030127 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030128fi
cristy8b350f62009-11-15 23:12:43 +000030129rm -f core conftest.err conftest.$ac_objext \
30130 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030131LIBS=$ac_check_lib_save_LIBS
30132fi
cristy71203402010-06-18 13:12:03 +000030133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30134$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030135if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030136 passed=`expr $passed + 1`
30137else
30138 failed=`expr $failed + 1`
30139fi
30140
cristy8b350f62009-11-15 23:12:43 +000030141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030142$as_echo_n "checking if LCMS package is complete... " >&6; }
30143 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030144 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30146$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030147 have_lcms='no (failed tests)'
30148 else
30149 LCMS_LIBS='-llcms'
30150 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30152$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030153 have_lcms='yes'
30154 fi
cristy3ed852e2009-09-05 21:47:34 +000030155 else
cristyad38abe2012-12-23 23:03:21 +000030156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30157$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030158 fi
30159fi
cristy71203402010-06-18 13:12:03 +000030160
cristy73bd4a52010-10-05 11:24:23 +000030161 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30162 LCMS_DELEGATE_TRUE=
30163 LCMS_DELEGATE_FALSE='#'
30164else
30165 LCMS_DELEGATE_TRUE='#'
30166 LCMS_DELEGATE_FALSE=
30167fi
30168
cristy71203402010-06-18 13:12:03 +000030169if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30170
30171$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30172
30173fi
30174
cristy3ed852e2009-09-05 21:47:34 +000030175
30176
30177
30178#
cristy99db3872014-01-01 15:11:34 +000030179# Check for the OpenJP2 delegate library.
30180#
30181
30182# Check whether --with-openjp2 was given.
30183if test "${with_openjp2+set}" = set; then :
30184 withval=$with_openjp2; with_openjp2=$withval
30185else
30186 with_openjp2='yes'
30187fi
30188
30189
30190if test "$with_openjp2" != 'yes'; then
30191 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30192fi
30193
30194have_openjp2='no'
30195LIBOPENJP2_CFLAGS=""
30196LIBOPENJP2_LIBS=""
30197LIBOPENJP2_PKG=""
30198if test "x$with_openjp2" = "xyes"; then
30199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30200$as_echo "-------------------------------------------------------------" >&6; }
30201
30202pkg_failed=no
30203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30204$as_echo_n "checking for LIBOPENJP2... " >&6; }
30205
30206if test -n "$LIBOPENJP2_CFLAGS"; then
30207 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30208 elif test -n "$PKG_CONFIG"; then
30209 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030210 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30211 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030212 ac_status=$?
30213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30214 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030215 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030216else
30217 pkg_failed=yes
30218fi
30219 else
30220 pkg_failed=untried
30221fi
30222if test -n "$LIBOPENJP2_LIBS"; then
30223 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30224 elif test -n "$PKG_CONFIG"; then
30225 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030226 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30227 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030228 ac_status=$?
30229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30230 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030231 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030232else
30233 pkg_failed=yes
30234fi
30235 else
30236 pkg_failed=untried
30237fi
30238
30239
30240
30241if test $pkg_failed = yes; then
30242
30243if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30244 _pkg_short_errors_supported=yes
30245else
30246 _pkg_short_errors_supported=no
30247fi
30248 if test $_pkg_short_errors_supported = yes; then
cristybc964932014-05-08 21:45:03 +000030249 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030250 else
cristybc964932014-05-08 21:45:03 +000030251 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030252 fi
30253 # Put the nasty error message in config.log where it belongs
30254 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30255
30256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30257$as_echo "no" >&6; }
30258 have_openjp2=no
30259elif test $pkg_failed = untried; then
30260 have_openjp2=no
30261else
30262 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30263 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30265$as_echo "yes" >&6; }
30266 have_openjp2=yes
30267fi
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30269$as_echo "" >&6; }
30270fi
30271
30272if test "$have_openjp2" = 'yes'; then
30273
30274$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30275
30276 if test "$build_modules" = 'no'; then
30277 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30278 fi
30279fi
30280
30281 if test "$have_openjp2" = 'yes'; then
30282 LIBOPENJP2_DELEGATE_TRUE=
30283 LIBOPENJP2_DELEGATE_FALSE='#'
30284else
30285 LIBOPENJP2_DELEGATE_TRUE='#'
30286 LIBOPENJP2_DELEGATE_FALSE=
30287fi
30288
30289
30290
30291
30292
30293
30294#
cristy3ed852e2009-09-05 21:47:34 +000030295# Check for the LQR (Liquid Rescale) delegate library.
30296#
30297
30298# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030299if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030300 withval=$with_lqr; with_lqr=$withval
30301else
30302 with_lqr='yes'
30303fi
30304
30305
30306if test "$with_lqr" != 'yes'; then
30307 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30308fi
30309
30310have_lqr='no'
30311LQR_CFLAGS=""
30312LQR_LIBS=""
30313LQR_PKG=""
30314if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30316$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030317
30318pkg_failed=no
30319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30320$as_echo_n "checking for LQR... " >&6; }
30321
30322if test -n "$LQR_CFLAGS"; then
30323 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30324 elif test -n "$PKG_CONFIG"; then
30325 if test -n "$PKG_CONFIG" && \
30326 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30327 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30328 ac_status=$?
30329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30330 test $ac_status = 0; }; then
30331 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30332else
30333 pkg_failed=yes
30334fi
30335 else
30336 pkg_failed=untried
30337fi
30338if test -n "$LQR_LIBS"; then
30339 pkg_cv_LQR_LIBS="$LQR_LIBS"
30340 elif test -n "$PKG_CONFIG"; then
30341 if test -n "$PKG_CONFIG" && \
30342 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30343 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30344 ac_status=$?
30345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30346 test $ac_status = 0; }; then
30347 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30348else
30349 pkg_failed=yes
30350fi
30351 else
30352 pkg_failed=untried
30353fi
30354
30355
30356
30357if test $pkg_failed = yes; then
30358
30359if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30360 _pkg_short_errors_supported=yes
30361else
30362 _pkg_short_errors_supported=no
30363fi
30364 if test $_pkg_short_errors_supported = yes; then
30365 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30366 else
30367 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30368 fi
30369 # Put the nasty error message in config.log where it belongs
30370 echo "$LQR_PKG_ERRORS" >&5
30371
30372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30373$as_echo "no" >&6; }
30374 have_lqr=no
30375elif test $pkg_failed = untried; then
30376 have_lqr=no
30377else
30378 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30379 LQR_LIBS=$pkg_cv_LQR_LIBS
30380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30381$as_echo "yes" >&6; }
30382 have_lqr=yes
30383fi
cristyad38abe2012-12-23 23:03:21 +000030384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30385$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030386fi
30387
30388if test "$have_lqr" = 'yes'; then
30389
cristy8b350f62009-11-15 23:12:43 +000030390$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030391
30392 CFLAGS="$LQR_CFLAGS $CFLAGS"
30393fi
30394
cristy73bd4a52010-10-05 11:24:23 +000030395 if test "$have_lqr" = 'yes'; then
30396 LQR_DELEGATE_TRUE=
30397 LQR_DELEGATE_FALSE='#'
30398else
30399 LQR_DELEGATE_TRUE='#'
30400 LQR_DELEGATE_FALSE=
30401fi
30402
cristy3ed852e2009-09-05 21:47:34 +000030403
30404
30405
30406
cristy81beccd2011-10-03 18:17:24 +000030407# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030408
30409# Check whether --with-lzma was given.
30410if test "${with_lzma+set}" = set; then :
30411 withval=$with_lzma; with_lzma=$withval
30412else
30413 with_lzma='yes'
30414fi
30415
cristy81beccd2011-10-03 18:17:24 +000030416if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030417 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30418fi
30419
cristyb94e5002011-11-14 13:20:10 +000030420LZMA_PKG=""
30421if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30423$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030424
30425pkg_failed=no
30426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030427$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030428
30429if test -n "$LZMA_CFLAGS"; then
30430 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30431 elif test -n "$PKG_CONFIG"; then
30432 if test -n "$PKG_CONFIG" && \
30433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30434 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30435 ac_status=$?
30436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30437 test $ac_status = 0; }; then
30438 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30439else
30440 pkg_failed=yes
30441fi
30442 else
30443 pkg_failed=untried
30444fi
30445if test -n "$LZMA_LIBS"; then
30446 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30447 elif test -n "$PKG_CONFIG"; then
30448 if test -n "$PKG_CONFIG" && \
30449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30450 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30451 ac_status=$?
30452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30453 test $ac_status = 0; }; then
30454 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30455else
30456 pkg_failed=yes
30457fi
30458 else
30459 pkg_failed=untried
30460fi
30461
30462
30463
30464if test $pkg_failed = yes; then
30465
30466if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30467 _pkg_short_errors_supported=yes
30468else
30469 _pkg_short_errors_supported=no
30470fi
30471 if test $_pkg_short_errors_supported = yes; then
30472 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30473 else
30474 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30475 fi
30476 # Put the nasty error message in config.log where it belongs
30477 echo "$LZMA_PKG_ERRORS" >&5
30478
30479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30480$as_echo "no" >&6; }
30481 have_lzma=no
30482elif test $pkg_failed = untried; then
30483 have_lzma=no
30484else
30485 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30486 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30488$as_echo "yes" >&6; }
30489 have_lzma=yes
30490fi
cristyad38abe2012-12-23 23:03:21 +000030491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30492$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030493fi
30494
cristyb94e5002011-11-14 13:20:10 +000030495if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030496
30497$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30498
cristyc6722092012-10-14 00:19:31 +000030499 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030500 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030501 fi
cristyfbb0ef02010-12-19 02:32:11 +000030502fi
cristyb94e5002011-11-14 13:20:10 +000030503
cristyfbb0ef02010-12-19 02:32:11 +000030504 if test "$have_lzma" = 'yes'; then
30505 LZMA_DELEGATE_TRUE=
30506 LZMA_DELEGATE_FALSE='#'
30507else
30508 LZMA_DELEGATE_TRUE='#'
30509 LZMA_DELEGATE_FALSE=
30510fi
30511
30512
30513
30514
cristyb94e5002011-11-14 13:20:10 +000030515
cristy3ed852e2009-09-05 21:47:34 +000030516#
30517# Check for the OpenEXR delegate library.
30518#
30519
30520# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030521if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030522 withval=$with_openexr; with_openexr=$withval
30523else
30524 with_openexr='yes'
30525fi
30526
30527
30528if test "$with_openexr" != 'yes'; then
30529 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30530fi
30531
30532have_openexr='no'
30533OPENEXR_CFLAGS=""
30534OPENEXR_LIBS=""
30535OPENEXR_PKG=""
30536if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30538$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030539
30540pkg_failed=no
30541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30542$as_echo_n "checking for OPENEXR... " >&6; }
30543
30544if test -n "$OPENEXR_CFLAGS"; then
30545 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30546 elif test -n "$PKG_CONFIG"; then
30547 if test -n "$PKG_CONFIG" && \
30548 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30549 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30550 ac_status=$?
30551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30552 test $ac_status = 0; }; then
30553 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30554else
30555 pkg_failed=yes
30556fi
30557 else
30558 pkg_failed=untried
30559fi
30560if test -n "$OPENEXR_LIBS"; then
30561 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30562 elif test -n "$PKG_CONFIG"; then
30563 if test -n "$PKG_CONFIG" && \
30564 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30565 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30566 ac_status=$?
30567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30568 test $ac_status = 0; }; then
30569 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30570else
30571 pkg_failed=yes
30572fi
30573 else
30574 pkg_failed=untried
30575fi
30576
30577
30578
30579if test $pkg_failed = yes; then
30580
30581if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30582 _pkg_short_errors_supported=yes
30583else
30584 _pkg_short_errors_supported=no
30585fi
30586 if test $_pkg_short_errors_supported = yes; then
30587 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30588 else
30589 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30590 fi
30591 # Put the nasty error message in config.log where it belongs
30592 echo "$OPENEXR_PKG_ERRORS" >&5
30593
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30595$as_echo "no" >&6; }
30596 have_openexr=no
30597elif test $pkg_failed = untried; then
30598 have_openexr=no
30599else
30600 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30601 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30603$as_echo "yes" >&6; }
30604 have_openexr=yes
30605fi
cristyad38abe2012-12-23 23:03:21 +000030606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30607$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030608fi
30609
30610if test "$have_openexr" = 'yes'; then
30611
cristy8b350f62009-11-15 23:12:43 +000030612$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030613
cristyc6722092012-10-14 00:19:31 +000030614 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030615 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30616 fi
30617fi
30618
cristy73bd4a52010-10-05 11:24:23 +000030619 if test "$have_openexr" = 'yes'; then
30620 OPENEXR_DELEGATE_TRUE=
30621 OPENEXR_DELEGATE_FALSE='#'
30622else
30623 OPENEXR_DELEGATE_TRUE='#'
30624 OPENEXR_DELEGATE_FALSE=
30625fi
30626
cristy3ed852e2009-09-05 21:47:34 +000030627
30628
30629
30630
30631#
cristy41cbe8a2011-10-27 01:35:18 +000030632# Check for PANGO delegate library.
30633#
30634
30635# Check whether --with-pango was given.
30636if test "${with_pango+set}" = set; then :
30637 withval=$with_pango; with_pango=$withval
30638else
cristyfc3d0222012-02-07 15:05:57 +000030639 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030640fi
30641
30642
30643if test "$with_pango" != 'yes'; then
30644 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30645fi
30646
30647have_pango='no'
cristya054b762012-03-26 23:16:00 +000030648have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030649PANGO_CFLAGS=""
30650PANGO_LIBS=""
30651PANGO_PKG=""
30652if test "x$with_pango" = "xyes"; then
30653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30654$as_echo "-------------------------------------------------------------" >&6; }
30655
30656pkg_failed=no
30657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30658$as_echo_n "checking for PANGO... " >&6; }
30659
30660if test -n "$PANGO_CFLAGS"; then
30661 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30662 elif test -n "$PKG_CONFIG"; then
30663 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30665 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030666 ac_status=$?
30667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30668 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030669 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030670else
30671 pkg_failed=yes
30672fi
30673 else
30674 pkg_failed=untried
30675fi
30676if test -n "$PANGO_LIBS"; then
30677 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30678 elif test -n "$PKG_CONFIG"; then
30679 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30681 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030682 ac_status=$?
30683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30684 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030685 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030686else
30687 pkg_failed=yes
30688fi
30689 else
30690 pkg_failed=untried
30691fi
30692
30693
30694
30695if test $pkg_failed = yes; then
30696
30697if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30698 _pkg_short_errors_supported=yes
30699else
30700 _pkg_short_errors_supported=no
30701fi
30702 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030703 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030704 else
cristya054b762012-03-26 23:16:00 +000030705 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030706 fi
30707 # Put the nasty error message in config.log where it belongs
30708 echo "$PANGO_PKG_ERRORS" >&5
30709
30710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30711$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030712 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030713elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030714 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030715else
30716 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30717 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30719$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030720 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030721fi
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30723$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030724
30725pkg_failed=no
30726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30727$as_echo_n "checking for PANGO... " >&6; }
30728
30729if test -n "$PANGO_CFLAGS"; then
30730 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30731 elif test -n "$PKG_CONFIG"; then
30732 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30734 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030735 ac_status=$?
30736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30737 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030738 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030739else
30740 pkg_failed=yes
30741fi
30742 else
30743 pkg_failed=untried
30744fi
30745if test -n "$PANGO_LIBS"; then
30746 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30747 elif test -n "$PKG_CONFIG"; then
30748 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030749 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30750 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030751 ac_status=$?
30752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30753 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030754 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030755else
30756 pkg_failed=yes
30757fi
30758 else
30759 pkg_failed=untried
30760fi
30761
30762
30763
30764if test $pkg_failed = yes; then
30765
30766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30767 _pkg_short_errors_supported=yes
30768else
30769 _pkg_short_errors_supported=no
30770fi
30771 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030772 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030773 else
cristy2542fc62011-12-06 17:50:25 +000030774 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030775 fi
30776 # Put the nasty error message in config.log where it belongs
30777 echo "$PANGO_PKG_ERRORS" >&5
30778
30779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30780$as_echo "no" >&6; }
30781 have_pango=no
30782elif test $pkg_failed = untried; then
30783 have_pango=no
30784else
30785 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30786 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30788$as_echo "yes" >&6; }
30789 have_pango=yes
30790fi
30791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30792$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030793fi
30794
30795if test "$have_pango" = 'yes'; then
30796
30797$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30798
cristyc6722092012-10-14 00:19:31 +000030799 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030800 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30801 fi
30802fi
30803
cristya054b762012-03-26 23:16:00 +000030804if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030805
cristya054b762012-03-26 23:16:00 +000030806$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030807
cristyc6722092012-10-14 00:19:31 +000030808 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030809 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030810 fi
30811fi
30812
30813 if test "$have_pango" = 'yes'; then
30814 PANGO_DELEGATE_TRUE=
30815 PANGO_DELEGATE_FALSE='#'
30816else
30817 PANGO_DELEGATE_TRUE='#'
30818 PANGO_DELEGATE_FALSE=
30819fi
30820
cristya054b762012-03-26 23:16:00 +000030821 if test "$have_pangocairo" = 'yes'; then
30822 PANGOCAIRO_DELEGATE_TRUE=
30823 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030824else
cristya054b762012-03-26 23:16:00 +000030825 PANGOCAIRO_DELEGATE_TRUE='#'
30826 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030827fi
30828
30829
30830
30831
30832
30833#
cristy3ed852e2009-09-05 21:47:34 +000030834# Check for PNG delegate library.
30835#
30836
30837# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030838if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030839 withval=$with_png; with_png=$withval
30840else
30841 with_png='yes'
30842fi
30843
30844
30845if test "$with_png" != 'yes'; then
30846 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30847fi
30848
cristy81beccd2011-10-03 18:17:24 +000030849have_png='no'
30850PNG_LIBS=''
30851
30852if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30854$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30856$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30858$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030859 failed=0
30860 passed=0
30861 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30862if test "x$ac_cv_header_png_h" = xyes; then :
30863 passed=`expr $passed + 1`
30864else
30865 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030866fi
30867
cristy81beccd2011-10-03 18:17:24 +000030868
30869
30870 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030871 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030872 if test "$have_png" = 'no' ; then
30873 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030874 pnglib='png'
30875 else
30876 pnglib="png1${var}"
30877 fi
30878
30879# Test for compatible LIBPNG library
30880 failed=0
30881 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030882 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030883 if test "${pnglib}" != 'png' ; then
30884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30885$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30887/* end confdefs.h. */
30888#include <stdio.h>
30889#include <stdlib.h>
30890#include <png.h>
30891
30892int
30893main ()
30894{
30895
30896#if PNG_LIBPNG_VER_MINOR != ${var}
30897#error LIBPNG library must be version 1${var}!
30898Kaboom, Kaboom
30899#endif
30900return 0;
30901
30902 ;
30903 return 0;
30904}
30905_ACEOF
30906if ac_fn_c_try_compile "$LINENO"; then :
30907 ac_cv_libpng_ok='yes'
30908else
30909 ac_cv_libpng_ok='no'
30910fi
30911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30912 if test "$ac_cv_libpng_ok" = 'yes' ; then
30913 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30915$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030916 else
30917 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30919$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030920 fi
30921 else
30922 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30924$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030925 fi
30926 fi
30927
30928 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030929 if test "1${var}" = '17' ; then
30930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30931$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30932if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30933 $as_echo_n "(cached) " >&6
30934else
30935 ac_check_lib_save_LIBS=$LIBS
30936LIBS="-lpng17 $LIBS"
30937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30938/* end confdefs.h. */
30939
30940/* Override any GCC internal prototype to avoid an error.
30941 Use char because int might match the return type of a GCC
30942 builtin and then its argument prototype would still apply. */
30943#ifdef __cplusplus
30944extern "C"
30945#endif
30946char png_get_io_ptr ();
30947int
30948main ()
30949{
30950return png_get_io_ptr ();
30951 ;
30952 return 0;
30953}
30954_ACEOF
30955if ac_fn_c_try_link "$LINENO"; then :
30956 ac_cv_lib_png17_png_get_io_ptr=yes
30957else
30958 ac_cv_lib_png17_png_get_io_ptr=no
30959fi
30960rm -f core conftest.err conftest.$ac_objext \
30961 conftest$ac_exeext conftest.$ac_ext
30962LIBS=$ac_check_lib_save_LIBS
30963fi
30964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30965$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30966if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30967 passed=`expr $passed + 1`
30968else
30969 failed=`expr $failed + 1`
30970fi
30971
30972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30973$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30974if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30975 $as_echo_n "(cached) " >&6
30976else
30977 ac_check_lib_save_LIBS=$LIBS
30978LIBS="-lpng17 $LIBS"
30979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30980/* end confdefs.h. */
30981
30982/* Override any GCC internal prototype to avoid an error.
30983 Use char because int might match the return type of a GCC
30984 builtin and then its argument prototype would still apply. */
30985#ifdef __cplusplus
30986extern "C"
30987#endif
30988char png_longjmp ();
30989int
30990main ()
30991{
30992return png_longjmp ();
30993 ;
30994 return 0;
30995}
30996_ACEOF
30997if ac_fn_c_try_link "$LINENO"; then :
30998 ac_cv_lib_png17_png_longjmp=yes
30999else
31000 ac_cv_lib_png17_png_longjmp=no
31001fi
31002rm -f core conftest.err conftest.$ac_objext \
31003 conftest$ac_exeext conftest.$ac_ext
31004LIBS=$ac_check_lib_save_LIBS
31005fi
31006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31007$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31008if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31009 passed=`expr $passed + 1`
31010else
31011 failed=`expr $failed + 1`
31012fi
31013
31014 fi
31015 if test "1${var}" = '16' ; then
31016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31017$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31018if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31019 $as_echo_n "(cached) " >&6
31020else
31021 ac_check_lib_save_LIBS=$LIBS
31022LIBS="-lpng16 $LIBS"
31023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31024/* end confdefs.h. */
31025
31026/* Override any GCC internal prototype to avoid an error.
31027 Use char because int might match the return type of a GCC
31028 builtin and then its argument prototype would still apply. */
31029#ifdef __cplusplus
31030extern "C"
31031#endif
31032char png_get_io_ptr ();
31033int
31034main ()
31035{
31036return png_get_io_ptr ();
31037 ;
31038 return 0;
31039}
31040_ACEOF
31041if ac_fn_c_try_link "$LINENO"; then :
31042 ac_cv_lib_png16_png_get_io_ptr=yes
31043else
31044 ac_cv_lib_png16_png_get_io_ptr=no
31045fi
31046rm -f core conftest.err conftest.$ac_objext \
31047 conftest$ac_exeext conftest.$ac_ext
31048LIBS=$ac_check_lib_save_LIBS
31049fi
31050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31051$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31052if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31053 passed=`expr $passed + 1`
31054else
31055 failed=`expr $failed + 1`
31056fi
31057
31058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31059$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31060if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31061 $as_echo_n "(cached) " >&6
31062else
31063 ac_check_lib_save_LIBS=$LIBS
31064LIBS="-lpng16 $LIBS"
31065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31066/* end confdefs.h. */
31067
31068/* Override any GCC internal prototype to avoid an error.
31069 Use char because int might match the return type of a GCC
31070 builtin and then its argument prototype would still apply. */
31071#ifdef __cplusplus
31072extern "C"
31073#endif
31074char png_longjmp ();
31075int
31076main ()
31077{
31078return png_longjmp ();
31079 ;
31080 return 0;
31081}
31082_ACEOF
31083if ac_fn_c_try_link "$LINENO"; then :
31084 ac_cv_lib_png16_png_longjmp=yes
31085else
31086 ac_cv_lib_png16_png_longjmp=no
31087fi
31088rm -f core conftest.err conftest.$ac_objext \
31089 conftest$ac_exeext conftest.$ac_ext
31090LIBS=$ac_check_lib_save_LIBS
31091fi
31092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31093$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31094if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31095 passed=`expr $passed + 1`
31096else
31097 failed=`expr $failed + 1`
31098fi
31099
31100 fi
cristy81beccd2011-10-03 18:17:24 +000031101 if test "1${var}" = '15' ; then
31102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31103$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31104if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31105 $as_echo_n "(cached) " >&6
31106else
31107 ac_check_lib_save_LIBS=$LIBS
31108LIBS="-lpng15 $LIBS"
31109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31110/* end confdefs.h. */
31111
31112/* Override any GCC internal prototype to avoid an error.
31113 Use char because int might match the return type of a GCC
31114 builtin and then its argument prototype would still apply. */
31115#ifdef __cplusplus
31116extern "C"
31117#endif
31118char png_get_io_ptr ();
31119int
31120main ()
31121{
31122return png_get_io_ptr ();
31123 ;
31124 return 0;
31125}
31126_ACEOF
31127if ac_fn_c_try_link "$LINENO"; then :
31128 ac_cv_lib_png15_png_get_io_ptr=yes
31129else
31130 ac_cv_lib_png15_png_get_io_ptr=no
31131fi
31132rm -f core conftest.err conftest.$ac_objext \
31133 conftest$ac_exeext conftest.$ac_ext
31134LIBS=$ac_check_lib_save_LIBS
31135fi
31136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31137$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31138if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31139 passed=`expr $passed + 1`
31140else
31141 failed=`expr $failed + 1`
31142fi
31143
31144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31145$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31146if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31147 $as_echo_n "(cached) " >&6
31148else
31149 ac_check_lib_save_LIBS=$LIBS
31150LIBS="-lpng15 $LIBS"
31151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31152/* end confdefs.h. */
31153
31154/* Override any GCC internal prototype to avoid an error.
31155 Use char because int might match the return type of a GCC
31156 builtin and then its argument prototype would still apply. */
31157#ifdef __cplusplus
31158extern "C"
31159#endif
31160char png_longjmp ();
31161int
31162main ()
31163{
31164return png_longjmp ();
31165 ;
31166 return 0;
31167}
31168_ACEOF
31169if ac_fn_c_try_link "$LINENO"; then :
31170 ac_cv_lib_png15_png_longjmp=yes
31171else
31172 ac_cv_lib_png15_png_longjmp=no
31173fi
31174rm -f core conftest.err conftest.$ac_objext \
31175 conftest$ac_exeext conftest.$ac_ext
31176LIBS=$ac_check_lib_save_LIBS
31177fi
31178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31179$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31180if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31181 passed=`expr $passed + 1`
31182else
31183 failed=`expr $failed + 1`
31184fi
31185
31186 fi
31187 if test "1${var}" = '14' ; then
31188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31189$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31190if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31191 $as_echo_n "(cached) " >&6
31192else
31193 ac_check_lib_save_LIBS=$LIBS
31194LIBS="-lpng14 $LIBS"
31195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31196/* end confdefs.h. */
31197
31198/* Override any GCC internal prototype to avoid an error.
31199 Use char because int might match the return type of a GCC
31200 builtin and then its argument prototype would still apply. */
31201#ifdef __cplusplus
31202extern "C"
31203#endif
31204char png_get_io_ptr ();
31205int
31206main ()
31207{
31208return png_get_io_ptr ();
31209 ;
31210 return 0;
31211}
31212_ACEOF
31213if ac_fn_c_try_link "$LINENO"; then :
31214 ac_cv_lib_png14_png_get_io_ptr=yes
31215else
31216 ac_cv_lib_png14_png_get_io_ptr=no
31217fi
31218rm -f core conftest.err conftest.$ac_objext \
31219 conftest$ac_exeext conftest.$ac_ext
31220LIBS=$ac_check_lib_save_LIBS
31221fi
31222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31223$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31224if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31225 passed=`expr $passed + 1`
31226else
31227 failed=`expr $failed + 1`
31228fi
31229
31230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31231$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31232if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31233 $as_echo_n "(cached) " >&6
31234else
31235 ac_check_lib_save_LIBS=$LIBS
31236LIBS="-lpng14 $LIBS"
31237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31238/* end confdefs.h. */
31239
31240/* Override any GCC internal prototype to avoid an error.
31241 Use char because int might match the return type of a GCC
31242 builtin and then its argument prototype would still apply. */
31243#ifdef __cplusplus
31244extern "C"
31245#endif
31246char png_get_io_state ();
31247int
31248main ()
31249{
31250return png_get_io_state ();
31251 ;
31252 return 0;
31253}
31254_ACEOF
31255if ac_fn_c_try_link "$LINENO"; then :
31256 ac_cv_lib_png14_png_get_io_state=yes
31257else
31258 ac_cv_lib_png14_png_get_io_state=no
31259fi
31260rm -f core conftest.err conftest.$ac_objext \
31261 conftest$ac_exeext conftest.$ac_ext
31262LIBS=$ac_check_lib_save_LIBS
31263fi
31264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31265$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31266if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31267 passed=`expr $passed + 1`
31268else
31269 failed=`expr $failed + 1`
31270fi
31271
31272 fi
31273 if test "1${var}" = '12' ; then
31274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31275$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31276if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31277 $as_echo_n "(cached) " >&6
31278else
31279 ac_check_lib_save_LIBS=$LIBS
31280LIBS="-lpng12 $LIBS"
31281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31282/* end confdefs.h. */
31283
31284/* Override any GCC internal prototype to avoid an error.
31285 Use char because int might match the return type of a GCC
31286 builtin and then its argument prototype would still apply. */
31287#ifdef __cplusplus
31288extern "C"
31289#endif
31290char png_get_io_ptr ();
31291int
31292main ()
31293{
31294return png_get_io_ptr ();
31295 ;
31296 return 0;
31297}
31298_ACEOF
31299if ac_fn_c_try_link "$LINENO"; then :
31300 ac_cv_lib_png12_png_get_io_ptr=yes
31301else
31302 ac_cv_lib_png12_png_get_io_ptr=no
31303fi
31304rm -f core conftest.err conftest.$ac_objext \
31305 conftest$ac_exeext conftest.$ac_ext
31306LIBS=$ac_check_lib_save_LIBS
31307fi
31308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31309$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31310if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31311 passed=`expr $passed + 1`
31312else
31313 failed=`expr $failed + 1`
31314fi
31315
31316 fi
31317 if test "1${var}" = '1' ; then
31318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31319$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31320if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31321 $as_echo_n "(cached) " >&6
31322else
31323 ac_check_lib_save_LIBS=$LIBS
31324LIBS="-lpng $LIBS"
31325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31326/* end confdefs.h. */
31327
31328/* Override any GCC internal prototype to avoid an error.
31329 Use char because int might match the return type of a GCC
31330 builtin and then its argument prototype would still apply. */
31331#ifdef __cplusplus
31332extern "C"
31333#endif
31334char png_get_io_ptr ();
31335int
31336main ()
31337{
31338return png_get_io_ptr ();
31339 ;
31340 return 0;
31341}
31342_ACEOF
31343if ac_fn_c_try_link "$LINENO"; then :
31344 ac_cv_lib_png_png_get_io_ptr=yes
31345else
31346 ac_cv_lib_png_png_get_io_ptr=no
31347fi
31348rm -f core conftest.err conftest.$ac_objext \
31349 conftest$ac_exeext conftest.$ac_ext
31350LIBS=$ac_check_lib_save_LIBS
31351fi
31352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31353$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31354if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31355 passed=`expr $passed + 1`
31356else
31357 failed=`expr $failed + 1`
31358fi
31359
31360 fi
31361 if test $passed -gt 0 -a $failed -le 0 ; then
31362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31363$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31364 if test $passed -gt 0 ; then
31365 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31367$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031368 have_png='no (failed tests)'
31369 else
31370 PNG_LIBS="-l${pnglib}"
31371 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031372
cristy8b350f62009-11-15 23:12:43 +000031373$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031374
cristyad38abe2012-12-23 23:03:21 +000031375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31376$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031377 have_png='yes'
31378 fi
31379 fi
31380 fi
31381 fi
31382 fi
31383 done
31384 fi
cristy3ed852e2009-09-05 21:47:34 +000031385fi
cristy64877302011-08-23 19:10:31 +000031386
cristy73bd4a52010-10-05 11:24:23 +000031387 if test "$have_png" = 'yes'; then
31388 PNG_DELEGATE_TRUE=
31389 PNG_DELEGATE_FALSE='#'
31390else
31391 PNG_DELEGATE_TRUE='#'
31392 PNG_DELEGATE_FALSE=
31393fi
31394
cristy3ed852e2009-09-05 21:47:34 +000031395
cristy50d3f5c2011-09-10 20:09:06 +000031396
cristy3ed852e2009-09-05 21:47:34 +000031397
31398
31399#
31400# Check for RSVG delegate library.
31401#
31402
31403# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031404if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031405 withval=$with_rsvg; with_rsvg=$withval
31406else
cristy1164d5f2012-08-15 00:58:25 +000031407 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031408fi
31409
31410
31411if test "$with_rsvg" != 'yes'; then
31412 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31413fi
31414
31415have_rsvg='no'
31416have_cairo='no'
31417RSVG_CFLAGS=""
31418RSVG_LIBS=""
31419RSVG_PKG=""
31420if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31422$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031423
31424pkg_failed=no
31425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31426$as_echo_n "checking for RSVG... " >&6; }
31427
31428if test -n "$RSVG_CFLAGS"; then
31429 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31430 elif test -n "$PKG_CONFIG"; then
31431 if test -n "$PKG_CONFIG" && \
31432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31433 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31434 ac_status=$?
31435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31436 test $ac_status = 0; }; then
31437 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31438else
31439 pkg_failed=yes
31440fi
31441 else
31442 pkg_failed=untried
31443fi
31444if test -n "$RSVG_LIBS"; then
31445 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31446 elif test -n "$PKG_CONFIG"; then
31447 if test -n "$PKG_CONFIG" && \
31448 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31449 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31450 ac_status=$?
31451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31452 test $ac_status = 0; }; then
31453 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31454else
31455 pkg_failed=yes
31456fi
31457 else
31458 pkg_failed=untried
31459fi
31460
31461
31462
31463if test $pkg_failed = yes; then
31464
31465if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31466 _pkg_short_errors_supported=yes
31467else
31468 _pkg_short_errors_supported=no
31469fi
31470 if test $_pkg_short_errors_supported = yes; then
31471 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31472 else
31473 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31474 fi
31475 # Put the nasty error message in config.log where it belongs
31476 echo "$RSVG_PKG_ERRORS" >&5
31477
31478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31479$as_echo "no" >&6; }
31480 have_rsvg=no
31481elif test $pkg_failed = untried; then
31482 have_rsvg=no
31483else
31484 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31485 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31487$as_echo "yes" >&6; }
31488 have_rsvg=yes
31489fi
cristyad38abe2012-12-23 23:03:21 +000031490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31491$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031492
31493pkg_failed=no
31494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31495$as_echo_n "checking for CAIRO_SVG... " >&6; }
31496
31497if test -n "$CAIRO_SVG_CFLAGS"; then
31498 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31499 elif test -n "$PKG_CONFIG"; then
31500 if test -n "$PKG_CONFIG" && \
31501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31502 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31503 ac_status=$?
31504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31505 test $ac_status = 0; }; then
31506 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31507else
31508 pkg_failed=yes
31509fi
31510 else
31511 pkg_failed=untried
31512fi
31513if test -n "$CAIRO_SVG_LIBS"; then
31514 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31515 elif test -n "$PKG_CONFIG"; then
31516 if test -n "$PKG_CONFIG" && \
31517 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31518 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31519 ac_status=$?
31520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31521 test $ac_status = 0; }; then
31522 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31523else
31524 pkg_failed=yes
31525fi
31526 else
31527 pkg_failed=untried
31528fi
31529
31530
31531
31532if test $pkg_failed = yes; then
31533
31534if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31535 _pkg_short_errors_supported=yes
31536else
31537 _pkg_short_errors_supported=no
31538fi
31539 if test $_pkg_short_errors_supported = yes; then
31540 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31541 else
31542 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31543 fi
31544 # Put the nasty error message in config.log where it belongs
31545 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31546
31547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31548$as_echo "no" >&6; }
31549 have_cairo=no
31550elif test $pkg_failed = untried; then
31551 have_cairo=no
31552else
31553 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31554 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31556$as_echo "yes" >&6; }
31557 have_cairo=yes
31558fi
cristyad38abe2012-12-23 23:03:21 +000031559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31560$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031561fi
31562
31563if test "$have_rsvg" = 'yes'; then
31564
cristy8b350f62009-11-15 23:12:43 +000031565$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031566
cristyc6722092012-10-14 00:19:31 +000031567 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031568 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31569 fi
31570fi
31571
31572if test "$have_cairo" = 'yes'; then
31573
cristy8b350f62009-11-15 23:12:43 +000031574$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031575
cristyc6722092012-10-14 00:19:31 +000031576 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031577 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31578 fi
31579fi
31580
cristy73bd4a52010-10-05 11:24:23 +000031581 if test "$have_rsvg" = 'yes'; then
31582 RSVG_DELEGATE_TRUE=
31583 RSVG_DELEGATE_FALSE='#'
31584else
31585 RSVG_DELEGATE_TRUE='#'
31586 RSVG_DELEGATE_FALSE=
31587fi
31588
31589 if test "$have_cairo" = 'yes'; then
31590 CAIRO_DELEGATE_TRUE=
31591 CAIRO_DELEGATE_FALSE='#'
31592else
31593 CAIRO_DELEGATE_TRUE='#'
31594 CAIRO_DELEGATE_FALSE=
31595fi
31596
cristy3ed852e2009-09-05 21:47:34 +000031597
31598
31599
31600
31601#
31602# Check for TIFF delegate library.
31603#
31604
31605# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031606if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031607 withval=$with_tiff; with_tiff=$withval
31608else
31609 with_tiff='yes'
31610fi
31611
31612
31613if test "$with_tiff" != 'yes'; then
31614 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31615fi
31616
31617have_tiff='no'
31618TIFF_LIBS=''
31619if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31621$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031623$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31625$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031626 failed=0
31627 passed=0
cristy8b350f62009-11-15 23:12:43 +000031628 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031629if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031630 passed=`expr $passed + 1`
31631else
31632 failed=`expr $failed + 1`
31633fi
31634
31635
cristy8b350f62009-11-15 23:12:43 +000031636 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031637if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031638 passed=`expr $passed + 1`
31639else
31640 failed=`expr $failed + 1`
31641fi
31642
31643
cristy8b350f62009-11-15 23:12:43 +000031644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031645$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031646if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031647 $as_echo_n "(cached) " >&6
31648else
31649 ac_check_lib_save_LIBS=$LIBS
31650LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031652/* end confdefs.h. */
31653
31654/* Override any GCC internal prototype to avoid an error.
31655 Use char because int might match the return type of a GCC
31656 builtin and then its argument prototype would still apply. */
31657#ifdef __cplusplus
31658extern "C"
31659#endif
31660char TIFFOpen ();
31661int
31662main ()
31663{
31664return TIFFOpen ();
31665 ;
31666 return 0;
31667}
31668_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031669if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031670 ac_cv_lib_tiff_TIFFOpen=yes
31671else
cristy8b350f62009-11-15 23:12:43 +000031672 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031673fi
cristy8b350f62009-11-15 23:12:43 +000031674rm -f core conftest.err conftest.$ac_objext \
31675 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031676LIBS=$ac_check_lib_save_LIBS
31677fi
cristy8b350f62009-11-15 23:12:43 +000031678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031679$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031680if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031681 passed=`expr $passed + 1`
31682else
31683 failed=`expr $failed + 1`
31684fi
31685
cristy8b350f62009-11-15 23:12:43 +000031686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031687$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031688if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031689 $as_echo_n "(cached) " >&6
31690else
31691 ac_check_lib_save_LIBS=$LIBS
31692LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031694/* end confdefs.h. */
31695
31696/* Override any GCC internal prototype to avoid an error.
31697 Use char because int might match the return type of a GCC
31698 builtin and then its argument prototype would still apply. */
31699#ifdef __cplusplus
31700extern "C"
31701#endif
31702char TIFFClientOpen ();
31703int
31704main ()
31705{
31706return TIFFClientOpen ();
31707 ;
31708 return 0;
31709}
31710_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031711if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031712 ac_cv_lib_tiff_TIFFClientOpen=yes
31713else
cristy8b350f62009-11-15 23:12:43 +000031714 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031715fi
cristy8b350f62009-11-15 23:12:43 +000031716rm -f core conftest.err conftest.$ac_objext \
31717 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031718LIBS=$ac_check_lib_save_LIBS
31719fi
cristy8b350f62009-11-15 23:12:43 +000031720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031721$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031722if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031723 passed=`expr $passed + 1`
31724else
31725 failed=`expr $failed + 1`
31726fi
31727
cristy8b350f62009-11-15 23:12:43 +000031728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031729$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031730if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031731 $as_echo_n "(cached) " >&6
31732else
31733 ac_check_lib_save_LIBS=$LIBS
31734LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031736/* end confdefs.h. */
31737
31738/* Override any GCC internal prototype to avoid an error.
31739 Use char because int might match the return type of a GCC
31740 builtin and then its argument prototype would still apply. */
31741#ifdef __cplusplus
31742extern "C"
31743#endif
31744char TIFFIsByteSwapped ();
31745int
31746main ()
31747{
31748return TIFFIsByteSwapped ();
31749 ;
31750 return 0;
31751}
31752_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031753if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031754 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31755else
cristy8b350f62009-11-15 23:12:43 +000031756 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031757fi
cristy8b350f62009-11-15 23:12:43 +000031758rm -f core conftest.err conftest.$ac_objext \
31759 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031760LIBS=$ac_check_lib_save_LIBS
31761fi
cristy8b350f62009-11-15 23:12:43 +000031762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031763$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031764if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031765 passed=`expr $passed + 1`
31766else
31767 failed=`expr $failed + 1`
31768fi
31769
cristy8b350f62009-11-15 23:12:43 +000031770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031771$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031772if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031773 $as_echo_n "(cached) " >&6
31774else
31775 ac_check_lib_save_LIBS=$LIBS
31776LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031778/* end confdefs.h. */
31779
31780/* Override any GCC internal prototype to avoid an error.
31781 Use char because int might match the return type of a GCC
31782 builtin and then its argument prototype would still apply. */
31783#ifdef __cplusplus
31784extern "C"
31785#endif
31786char TIFFReadRGBATile ();
31787int
31788main ()
31789{
31790return TIFFReadRGBATile ();
31791 ;
31792 return 0;
31793}
31794_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031795if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031796 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31797else
cristy8b350f62009-11-15 23:12:43 +000031798 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031799fi
cristy8b350f62009-11-15 23:12:43 +000031800rm -f core conftest.err conftest.$ac_objext \
31801 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031802LIBS=$ac_check_lib_save_LIBS
31803fi
cristy8b350f62009-11-15 23:12:43 +000031804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031805$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031806if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031807 passed=`expr $passed + 1`
31808else
31809 failed=`expr $failed + 1`
31810fi
31811
cristy8b350f62009-11-15 23:12:43 +000031812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031813$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031814if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031815 $as_echo_n "(cached) " >&6
31816else
31817 ac_check_lib_save_LIBS=$LIBS
31818LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031820/* end confdefs.h. */
31821
31822/* Override any GCC internal prototype to avoid an error.
31823 Use char because int might match the return type of a GCC
31824 builtin and then its argument prototype would still apply. */
31825#ifdef __cplusplus
31826extern "C"
31827#endif
31828char TIFFReadRGBAStrip ();
31829int
31830main ()
31831{
31832return TIFFReadRGBAStrip ();
31833 ;
31834 return 0;
31835}
31836_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031837if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031838 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31839else
cristy8b350f62009-11-15 23:12:43 +000031840 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031841fi
cristy8b350f62009-11-15 23:12:43 +000031842rm -f core conftest.err conftest.$ac_objext \
31843 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031844LIBS=$ac_check_lib_save_LIBS
31845fi
cristy8b350f62009-11-15 23:12:43 +000031846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031847$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031848if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031849 passed=`expr $passed + 1`
31850else
31851 failed=`expr $failed + 1`
31852fi
31853
cristy8b350f62009-11-15 23:12:43 +000031854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031855$as_echo_n "checking if TIFF package is complete... " >&6; }
31856 if test $passed -gt 0; then
31857 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31859$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031860 have_tiff='no (failed tests)'
31861 else
31862 TIFF_LIBS='-ltiff'
31863 LIBS="$TIFF_LIBS $LIBS"
31864
cristy8b350f62009-11-15 23:12:43 +000031865$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031866
cristyad38abe2012-12-23 23:03:21 +000031867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31868$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031869 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031870 for ac_header in tiffconf.h
31871do :
31872 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031873if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031874 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031875#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031876_ACEOF
31877
31878fi
31879
31880done
31881
cristy8b350f62009-11-15 23:12:43 +000031882 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031883 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31884 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31885 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031886do :
31887 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31888ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031889if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031890 cat >>confdefs.h <<_ACEOF
31891#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31892_ACEOF
31893
31894fi
31895done
31896
31897 fi
31898 else
cristyad38abe2012-12-23 23:03:21 +000031899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31900$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031901 fi
31902fi
cristy73bd4a52010-10-05 11:24:23 +000031903 if test "$have_tiff" = 'yes'; then
31904 TIFF_DELEGATE_TRUE=
31905 TIFF_DELEGATE_FALSE='#'
31906else
31907 TIFF_DELEGATE_TRUE='#'
31908 TIFF_DELEGATE_FALSE=
31909fi
31910
cristy3ed852e2009-09-05 21:47:34 +000031911
31912
31913
31914#
cristyb1860752011-03-14 00:27:46 +000031915# Check for WEBP delegate library.
31916#
31917
31918# Check whether --with-webp was given.
31919if test "${with_webp+set}" = set; then :
31920 withval=$with_webp; with_webp=$withval
31921else
31922 with_webp='yes'
31923fi
31924
31925
31926if test "$with_webp" != 'yes'; then
31927 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31928fi
31929
31930have_webp='no'
31931WEBP_LIBS=''
31932if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31934$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31936$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31938$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031939 failed=0
31940 passed=0
31941 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31942if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31943 passed=`expr $passed + 1`
31944else
31945 failed=`expr $failed + 1`
31946fi
31947
31948
cristy6d670312013-03-22 23:23:01 +000031949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31950$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31951if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031952 $as_echo_n "(cached) " >&6
31953else
31954 ac_check_lib_save_LIBS=$LIBS
31955LIBS="-lwebp $LIBS"
31956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31957/* end confdefs.h. */
31958
31959/* Override any GCC internal prototype to avoid an error.
31960 Use char because int might match the return type of a GCC
31961 builtin and then its argument prototype would still apply. */
31962#ifdef __cplusplus
31963extern "C"
31964#endif
cristy6d670312013-03-22 23:23:01 +000031965char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031966int
31967main ()
31968{
cristy6d670312013-03-22 23:23:01 +000031969return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031970 ;
31971 return 0;
31972}
31973_ACEOF
31974if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031975 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031976else
cristy6d670312013-03-22 23:23:01 +000031977 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031978fi
31979rm -f core conftest.err conftest.$ac_objext \
31980 conftest$ac_exeext conftest.$ac_ext
31981LIBS=$ac_check_lib_save_LIBS
31982fi
cristy6d670312013-03-22 23:23:01 +000031983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31984$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31985if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031986 passed=`expr $passed + 1`
31987else
31988 failed=`expr $failed + 1`
31989fi
31990
31991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31992$as_echo_n "checking if WEBP package is complete... " >&6; }
31993 if test $passed -gt 0; then
31994 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31996$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031997 have_webp='no (failed tests)'
31998 else
31999 WEBP_LIBS='-lwebp'
32000 LIBS="$WEBP_LIBS $LIBS"
32001
32002$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32003
cristyad38abe2012-12-23 23:03:21 +000032004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32005$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032006 have_webp='yes'
32007 fi
32008 else
cristyad38abe2012-12-23 23:03:21 +000032009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32010$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032011 fi
32012fi
32013 if test "$have_webp" = 'yes'; then
32014 WEBP_DELEGATE_TRUE=
32015 WEBP_DELEGATE_FALSE='#'
32016else
32017 WEBP_DELEGATE_TRUE='#'
32018 WEBP_DELEGATE_FALSE=
32019fi
32020
32021
32022
32023
32024#
cristy3ed852e2009-09-05 21:47:34 +000032025# Set Windows font directory.
32026#
32027
32028# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032029if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032030 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32031else
32032 with_windows_font_dir=''
32033fi
32034
32035if test "$with_windows_font_dir" != '' ; then
32036 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32037fi
32038
32039
32040#
32041# Check for WMF delegate library.
32042#
32043
32044# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032045if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032046 withval=$with_wmf; with_wmf=$withval
32047else
cristyfc3d0222012-02-07 15:05:57 +000032048 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032049fi
32050
32051
32052if test "$with_wmf" != 'yes'; then
32053 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32054fi
32055
32056have_wmf='no'
32057WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032058WMF_LIBS_DEPS=''
32059OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032060if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32062$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032064$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32066$as_echo "" >&6; }
32067 have_libwmf='no'
32068 have_libwmflite='no'
32069 have_libwmf_ipa_h='no'
32070
32071 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32072"
32073if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32074 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032075fi
32076
32077
cristy03f7cf92011-12-15 01:40:41 +000032078 if test "$have_libwmf_ipa_h" = 'yes'; then
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32080$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32081if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032082 $as_echo_n "(cached) " >&6
32083else
32084 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032085LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032087/* end confdefs.h. */
32088
32089/* Override any GCC internal prototype to avoid an error.
32090 Use char because int might match the return type of a GCC
32091 builtin and then its argument prototype would still apply. */
32092#ifdef __cplusplus
32093extern "C"
32094#endif
cristy03f7cf92011-12-15 01:40:41 +000032095char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032096int
32097main ()
32098{
cristy03f7cf92011-12-15 01:40:41 +000032099return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032100 ;
32101 return 0;
32102}
32103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032104if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032105 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032106else
cristy03f7cf92011-12-15 01:40:41 +000032107 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032108fi
cristy8b350f62009-11-15 23:12:43 +000032109rm -f core conftest.err conftest.$ac_objext \
32110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032111LIBS=$ac_check_lib_save_LIBS
32112fi
cristy03f7cf92011-12-15 01:40:41 +000032113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32114$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32115if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32116 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032117fi
32118
cristy03f7cf92011-12-15 01:40:41 +000032119 if test "$have_libwmflite" = 'yes'; then
32120
32121$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32122
32123 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032124 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032125 have_wmf='yes'
32126 else
32127 WMF_LIBS_DEPS=''
32128 WMF_CONFIG_LIBS=`libwmf-config --libs`
32129 for lib in xml2 expat freetype jpeg png z; do
32130 testlib="-l${lib}"
32131 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32132 done
32133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32134$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32135if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32136 $as_echo_n "(cached) " >&6
32137else
32138 ac_check_lib_save_LIBS=$LIBS
32139LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32141/* end confdefs.h. */
32142
32143/* Override any GCC internal prototype to avoid an error.
32144 Use char because int might match the return type of a GCC
32145 builtin and then its argument prototype would still apply. */
32146#ifdef __cplusplus
32147extern "C"
32148#endif
32149char wmf_api_create ();
32150int
32151main ()
32152{
32153return wmf_api_create ();
32154 ;
32155 return 0;
32156}
32157_ACEOF
32158if ac_fn_c_try_link "$LINENO"; then :
32159 ac_cv_lib_wmf_wmf_api_create=yes
32160else
32161 ac_cv_lib_wmf_wmf_api_create=no
32162fi
32163rm -f core conftest.err conftest.$ac_objext \
32164 conftest$ac_exeext conftest.$ac_ext
32165LIBS=$ac_check_lib_save_LIBS
32166fi
32167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32168$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32169if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32170 have_libwmf='yes'
32171fi
32172
32173 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032174
cristy8b350f62009-11-15 23:12:43 +000032175$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032176
cristy03f7cf92011-12-15 01:40:41 +000032177 WMF_LIBS='-lwmf'
32178 LIBS="$WMF_LIBS $LIBS"
32179 have_wmf='yes'
32180 else
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32182$as_echo "no -- some components failed test" >&6; }
32183 have_wmf='no (failed tests)'
32184 have_wmflite='no (failed tests)'
32185 LIBS="$OLIBS"
32186 WMF_LIBS=''
32187 fi
glennrp33e524b2011-08-24 17:41:57 +000032188 fi
cristy03f7cf92011-12-15 01:40:41 +000032189 fi
32190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32191$as_echo_n "checking if WMF package is complete... " >&6; }
32192 if test "$have_wmf" = 'yes'; then
32193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32194$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032195 else
cristy03f7cf92011-12-15 01:40:41 +000032196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32197$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032198 fi
cristy3ed852e2009-09-05 21:47:34 +000032199fi
cristy73bd4a52010-10-05 11:24:23 +000032200 if test "$have_wmf" = 'yes'; then
32201 WMF_DELEGATE_TRUE=
32202 WMF_DELEGATE_FALSE='#'
32203else
32204 WMF_DELEGATE_TRUE='#'
32205 WMF_DELEGATE_FALSE=
32206fi
32207
cristy3ed852e2009-09-05 21:47:34 +000032208
32209
32210
cristy81beccd2011-10-03 18:17:24 +000032211
32212
cristy3ed852e2009-09-05 21:47:34 +000032213#
32214# Check for XML delegate library.
32215#
32216
32217# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032218if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032219 withval=$with_xml; with_xml=$withval
32220else
cristyfc3d0222012-02-07 15:05:57 +000032221 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032222fi
32223
32224
cristy81beccd2011-10-03 18:17:24 +000032225if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032226 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32227fi
32228
cristy81beccd2011-10-03 18:17:24 +000032229have_xml='no'
32230XML_LIBS=''
32231if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32233$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32235$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32237$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032238 PERSIST_LDFLAGS=$LDFLAGS
32239 PERSIST_CPPFLAGS=$CPPFLAGS
32240 xml2_config=''
32241 # Extract the first word of "xml2-config", so it can be a program name with args.
32242set dummy xml2-config; ac_word=$2
32243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32244$as_echo_n "checking for $ac_word... " >&6; }
32245if ${ac_cv_path_xml2_config+:} false; then :
32246 $as_echo_n "(cached) " >&6
32247else
32248 case $xml2_config in
32249 [\\/]* | ?:[\\/]*)
32250 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32251 ;;
32252 *)
32253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32254for as_dir in $PATH
32255do
32256 IFS=$as_save_IFS
32257 test -z "$as_dir" && as_dir=.
32258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032260 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32262 break 2
32263 fi
32264done
32265 done
32266IFS=$as_save_IFS
32267
32268 ;;
32269esac
32270fi
32271xml2_config=$ac_cv_path_xml2_config
32272if test -n "$xml2_config"; then
32273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32274$as_echo "$xml2_config" >&6; }
32275else
32276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32277$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032278fi
32279
cristy81beccd2011-10-03 18:17:24 +000032280 if test -n "$xml2_config"; then
32281 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32282 # the shared library installed under /usr/lib, whereas the package
32283 # installs itself under $prefix/libxml and $prefix/lib.
32284 xml2_prefix=`xml2-config --prefix`
32285 if test -d "${xml2_prefix}/include/libxml2"; then
32286 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32287 fi
32288 if test "${xml2_prefix}" != '/usr'; then
32289 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32290 fi
32291 fi
32292 failed=0
32293 passed=0
32294 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32295if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32296 passed=`expr $passed + 1`
32297else
32298 failed=`expr $failed + 1`
32299fi
32300
32301
32302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32303$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32304if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32305 $as_echo_n "(cached) " >&6
32306else
32307 ac_check_lib_save_LIBS=$LIBS
32308LIBS="-lxml2 $LIBS"
32309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32310/* end confdefs.h. */
32311
32312/* Override any GCC internal prototype to avoid an error.
32313 Use char because int might match the return type of a GCC
32314 builtin and then its argument prototype would still apply. */
32315#ifdef __cplusplus
32316extern "C"
32317#endif
32318char xmlSAXVersion ();
32319int
32320main ()
32321{
32322return xmlSAXVersion ();
32323 ;
32324 return 0;
32325}
32326_ACEOF
32327if ac_fn_c_try_link "$LINENO"; then :
32328 ac_cv_lib_xml2_xmlSAXVersion=yes
32329else
32330 ac_cv_lib_xml2_xmlSAXVersion=no
32331fi
32332rm -f core conftest.err conftest.$ac_objext \
32333 conftest$ac_exeext conftest.$ac_ext
32334LIBS=$ac_check_lib_save_LIBS
32335fi
32336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32337$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32338if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32339 passed=`expr $passed + 1`
32340else
32341 failed=`expr $failed + 1`
32342fi
32343
32344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32345$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32346if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32347 $as_echo_n "(cached) " >&6
32348else
32349 ac_check_lib_save_LIBS=$LIBS
32350LIBS="-lxml2 $LIBS"
32351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32352/* end confdefs.h. */
32353
32354/* Override any GCC internal prototype to avoid an error.
32355 Use char because int might match the return type of a GCC
32356 builtin and then its argument prototype would still apply. */
32357#ifdef __cplusplus
32358extern "C"
32359#endif
32360char xmlParseChunk ();
32361int
32362main ()
32363{
32364return xmlParseChunk ();
32365 ;
32366 return 0;
32367}
32368_ACEOF
32369if ac_fn_c_try_link "$LINENO"; then :
32370 ac_cv_lib_xml2_xmlParseChunk=yes
32371else
32372 ac_cv_lib_xml2_xmlParseChunk=no
32373fi
32374rm -f core conftest.err conftest.$ac_objext \
32375 conftest$ac_exeext conftest.$ac_ext
32376LIBS=$ac_check_lib_save_LIBS
32377fi
32378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32379$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32380if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32381 passed=`expr $passed + 1`
32382else
32383 failed=`expr $failed + 1`
32384fi
32385
32386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32387$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32388if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32389 $as_echo_n "(cached) " >&6
32390else
32391 ac_check_lib_save_LIBS=$LIBS
32392LIBS="-lxml2 $LIBS"
32393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32394/* end confdefs.h. */
32395
32396/* Override any GCC internal prototype to avoid an error.
32397 Use char because int might match the return type of a GCC
32398 builtin and then its argument prototype would still apply. */
32399#ifdef __cplusplus
32400extern "C"
32401#endif
32402char xmlCreatePushParserCtxt ();
32403int
32404main ()
32405{
32406return xmlCreatePushParserCtxt ();
32407 ;
32408 return 0;
32409}
32410_ACEOF
32411if ac_fn_c_try_link "$LINENO"; then :
32412 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32413else
32414 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32415fi
32416rm -f core conftest.err conftest.$ac_objext \
32417 conftest$ac_exeext conftest.$ac_ext
32418LIBS=$ac_check_lib_save_LIBS
32419fi
32420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32421$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32422if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32423 passed=`expr $passed + 1`
32424else
32425 failed=`expr $failed + 1`
32426fi
32427
32428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32429$as_echo_n "checking if XML package is complete... " >&6; }
32430 if test $passed -gt 0; then
32431 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32433$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032434 have_xml='no (failed tests)'
32435 LDFLAGS="$PERSIST_LDFLAGS"
32436 CPPFLAGS="$PERSIST_CPPFLAGS"
32437 else
32438 XML_LIBS='-lxml2'
32439 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032440
cristy8b350f62009-11-15 23:12:43 +000032441$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032442
cristyad38abe2012-12-23 23:03:21 +000032443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32444$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032445 have_xml='yes'
32446 fi
32447 else
cristyad38abe2012-12-23 23:03:21 +000032448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32449$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032450 fi
32451fi
cristy73bd4a52010-10-05 11:24:23 +000032452 if test "$have_xml" = 'yes'; then
32453 XML_DELEGATE_TRUE=
32454 XML_DELEGATE_FALSE='#'
32455else
32456 XML_DELEGATE_TRUE='#'
32457 XML_DELEGATE_FALSE=
32458fi
32459
cristy3ed852e2009-09-05 21:47:34 +000032460
32461
32462
32463# Substitute compiler name to build/link PerlMagick
32464#
32465
32466
32467#
32468# Configure install Paths
32469#
cristy7def36a2011-10-28 19:04:41 +000032470
cristy2a11bef2011-10-28 18:33:11 +000032471# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032472INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032473INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32474DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032475case "${build_os}" in
32476 mingw* )
32477 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32478 ;;
32479esac
32480
32481cat >>confdefs.h <<_ACEOF
32482#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32483_ACEOF
32484
32485
cristy3ed852e2009-09-05 21:47:34 +000032486
cristye52f12f2012-12-31 15:32:36 +000032487# Path to ImageMagick header files (arch part)
32488INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32489DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32490case "${build_os}" in
32491 mingw* )
32492 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32493 ;;
32494esac
32495
32496cat >>confdefs.h <<_ACEOF
32497#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32498_ACEOF
32499
32500
32501
cristy3ed852e2009-09-05 21:47:34 +000032502# Subdirectory under lib to place ImageMagick lib files
32503LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32504
32505cat >>confdefs.h <<_ACEOF
32506#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32507_ACEOF
32508
32509
32510# Path to ImageMagick bin directory
32511EXECUTABLE_PATH="${BIN_DIR}"
32512DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32513case "${build_os}" in
32514 mingw* )
32515 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32516 ;;
32517esac
32518
32519cat >>confdefs.h <<_ACEOF
32520#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32521_ACEOF
32522
32523
32524
32525# Path to ImageMagick lib
32526LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32527DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32528case "${build_os}" in
32529 mingw* )
32530 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32531 ;;
32532esac
32533
32534cat >>confdefs.h <<_ACEOF
32535#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32536_ACEOF
32537
32538
32539
cristy3ed852e2009-09-05 21:47:34 +000032540#
cristy8d0ff762013-03-10 20:33:28 +000032541# path to local binaries
32542if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32543 LIB_BIN_BASEDIRNAME="bin"
32544fi
32545
32546cat >>confdefs.h <<_ACEOF
32547#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32548_ACEOF
32549
32550
32551
32552if test "x$LIB_BIN_DIR" = "x"; then
32553 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32554fi
32555
32556
32557LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32558
32559LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32560
32561
32562#
cristy01ff9f32012-12-01 18:15:29 +000032563# path to modules lib
32564if test "x$MODULES_BASEDIRNAME" = "x"; then
32565 MODULES_BASEDIRNAME="modules"
32566fi
cristy3ed852e2009-09-05 21:47:34 +000032567
32568cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032569#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032570_ACEOF
32571
cristy01ff9f32012-12-01 18:15:29 +000032572
32573
32574if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032575 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32576else
cristy3ed852e2009-09-05 21:47:34 +000032577
32578cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032579#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032580_ACEOF
32581
cristycf4a3c22012-12-02 21:47:25 +000032582fi
cristy01ff9f32012-12-01 18:15:29 +000032583
32584
cristy371d4812012-12-01 19:48:10 +000032585MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032586
32587MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32588
32589
32590#
32591# path to coders lib
32592if test "x$CODER_DIRNAME" = "x"; then
32593 CODER_DIRNAME="coders"
32594fi
32595
32596cat >>confdefs.h <<_ACEOF
32597#define CODER_DIRNAME "$CODER_DIRNAME"
32598_ACEOF
32599
32600
32601
cristy371d4812012-12-01 19:48:10 +000032602CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032603CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032604
32605
32606#
32607# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032608#
32609# path to coders lib
32610if test "x$FILTER_DIRNAME" = "x"; then
32611 FILTER_DIRNAME="filters"
32612fi
cristy3ed852e2009-09-05 21:47:34 +000032613
32614cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032615#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032616_ACEOF
32617
cristy3ed852e2009-09-05 21:47:34 +000032618
cristy3ed852e2009-09-05 21:47:34 +000032619
cristy371d4812012-12-01 19:48:10 +000032620FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032621FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032622
32623
32624#
32625# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032626DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032627DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32628DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032629case "${build_os}" in
32630 mingw* )
32631 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32632 ;;
32633esac
32634
32635cat >>confdefs.h <<_ACEOF
32636#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32637_ACEOF
32638
32639
32640
cristydd17feb2014-03-05 02:06:32 +000032641#
32642# Enable/Disable documentation
32643# Check whether --enable-docs was given.
32644if test "${enable_docs+set}" = set; then :
32645 enableval=$enable_docs; wantdocs=$enableval
32646else
cristy02272312014-03-07 00:55:25 +000032647 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000032648fi
32649
cristy02272312014-03-07 00:55:25 +000032650 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000032651 INSTALL_DOC_TRUE=
32652 INSTALL_DOC_FALSE='#'
32653else
32654 INSTALL_DOC_TRUE='#'
32655 INSTALL_DOC_FALSE=
32656fi
32657
32658
cristy2a11bef2011-10-28 18:33:11 +000032659# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032660CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032661
32662cat >>confdefs.h <<_ACEOF
32663#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32664_ACEOF
32665
cristy7def36a2011-10-28 19:04:41 +000032666CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032667DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32668case "${build_os}" in
32669 mingw* )
32670 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32671 ;;
32672esac
32673
32674cat >>confdefs.h <<_ACEOF
32675#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32676_ACEOF
32677
32678
32679
cristy2a11bef2011-10-28 18:33:11 +000032680# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032681SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032682
32683cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032684#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032685_ACEOF
32686
cristy670aa3c2011-11-03 00:54:00 +000032687SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032688DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032689case "${build_os}" in
32690 mingw* )
cristy4f820712011-04-01 12:35:43 +000032691 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032692 ;;
32693esac
32694
32695cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032696#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032697_ACEOF
32698
32699
32700
cristy54378032012-12-04 15:52:20 +000032701#
32702# Subdirectory to place architecture-dependent configuration files.
32703if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32704 SHAREARCH_BASEDIRNAME="config"
32705fi
cristy670aa3c2011-11-03 00:54:00 +000032706
32707cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032708#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032709_ACEOF
32710
cristy54378032012-12-04 15:52:20 +000032711
32712
32713if test "x$SHAREARCH_DIRNAME" = "x"; then
32714 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32715else
cristy670aa3c2011-11-03 00:54:00 +000032716
32717cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032718#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032719_ACEOF
32720
cristy54378032012-12-04 15:52:20 +000032721fi
32722
32723
32724SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32725
32726SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032727
32728
cristy3ed852e2009-09-05 21:47:34 +000032729#
32730# program_transform_name is formed for use in a Makefile, so create a
32731# modified version for use in a shell script.
32732configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32733
32734# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32736$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032738$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32740$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032741AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032742BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032743BZIPDelegateDefault='bzip2'
32744BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032745CatDelegateDefault='cat'
32746DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000032747DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000032748GVCDecodeDelegateDefault='dot'
32749DVIDecodeDelegateDefault='dvips'
32750EchoDelegateDefault='echo'
32751EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032752ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32753DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32754MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32755GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032756HPGLDecodeDelegateDefault='hp2xx'
32757HTMLDecodeDelegateDefault='html2ps'
32758ILBMDecodeDelegateDefault='ilbmtoppm'
32759ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032760JXRDecodeDelegateDefault='JxrDecApp'
32761JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032762LPDelegateDefault='lp'
32763LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032764LaunchDelegateDefault='gimp'
32765MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032766MPEGDecodeDelegateDefault='avconv'
32767MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032768MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032769MVDelegateDefault='mv'
32770PCLDelegateDefault='pcl6'
32771PGPDecodeDelegateDefault='pgpv'
32772POVDelegateDefault='povray'
32773if test "$native_win32_build" = 'yes'; then
32774 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032775elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032776 PSDelegateDefault='gsc'
32777else
32778 PSDelegateDefault='gs'
32779fi
32780RLEEncodeDelegateDefault='rawtorle'
32781RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032782RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032783SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032784SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032785TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032786UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032787WebPDecodeDelegateDefault='dwebp'
32788WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032789WMFDecodeDelegateDefault='wmf2eps'
32790WWWDecodeDelegateDefault='curl'
32791XPSDelegateDefault='gxps'
32792ZipDelegateDefault='gzip'
32793
32794# Search for delegates
32795# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32796set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032798$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032799if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032800 $as_echo_n "(cached) " >&6
32801else
32802 case $AutotraceDecodeDelegate in
32803 [\\/]* | ?:[\\/]*)
32804 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32805 ;;
32806 *)
32807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32808for as_dir in $PATH
32809do
32810 IFS=$as_save_IFS
32811 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032814 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032816 break 2
32817 fi
32818done
cristy8b350f62009-11-15 23:12:43 +000032819 done
cristy3ed852e2009-09-05 21:47:34 +000032820IFS=$as_save_IFS
32821
32822 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32823 ;;
32824esac
32825fi
32826AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32827if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032829$as_echo "$AutotraceDecodeDelegate" >&6; }
32830else
cristy8b350f62009-11-15 23:12:43 +000032831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032832$as_echo "no" >&6; }
32833fi
32834
32835
cristy3ed852e2009-09-05 21:47:34 +000032836# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32837set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032839$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032840if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032841 $as_echo_n "(cached) " >&6
32842else
32843 case $BlenderDecodeDelegate in
32844 [\\/]* | ?:[\\/]*)
32845 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32846 ;;
32847 *)
32848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32849for as_dir in $PATH
32850do
32851 IFS=$as_save_IFS
32852 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032853 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032855 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032857 break 2
32858 fi
32859done
cristy8b350f62009-11-15 23:12:43 +000032860 done
cristy3ed852e2009-09-05 21:47:34 +000032861IFS=$as_save_IFS
32862
32863 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32864 ;;
32865esac
32866fi
32867BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32868if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032870$as_echo "$BlenderDecodeDelegate" >&6; }
32871else
cristy8b350f62009-11-15 23:12:43 +000032872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032873$as_echo "no" >&6; }
32874fi
32875
32876
32877# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32878set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032881if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032882 $as_echo_n "(cached) " >&6
32883else
32884 case $BZIPDelegate in
32885 [\\/]* | ?:[\\/]*)
32886 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32887 ;;
32888 *)
32889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32890for as_dir in $PATH
32891do
32892 IFS=$as_save_IFS
32893 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032896 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032898 break 2
32899 fi
32900done
cristy8b350f62009-11-15 23:12:43 +000032901 done
cristy3ed852e2009-09-05 21:47:34 +000032902IFS=$as_save_IFS
32903
32904 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32905 ;;
32906esac
32907fi
32908BZIPDelegate=$ac_cv_path_BZIPDelegate
32909if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911$as_echo "$BZIPDelegate" >&6; }
32912else
cristy8b350f62009-11-15 23:12:43 +000032913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032914$as_echo "no" >&6; }
32915fi
32916
32917
cristyc59f0e72012-08-27 12:59:33 +000032918for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32919do
32920 # Extract the first word of "$ac_prog", so it can be a program name with args.
32921set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032924if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032925 $as_echo_n "(cached) " >&6
32926else
32927 case $BrowseDelegate in
32928 [\\/]* | ?:[\\/]*)
32929 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32930 ;;
32931 *)
32932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32933for as_dir in $PATH
32934do
32935 IFS=$as_save_IFS
32936 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032939 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032941 break 2
32942 fi
32943done
cristy8b350f62009-11-15 23:12:43 +000032944 done
cristy3ed852e2009-09-05 21:47:34 +000032945IFS=$as_save_IFS
32946
cristy3ed852e2009-09-05 21:47:34 +000032947 ;;
32948esac
32949fi
32950BrowseDelegate=$ac_cv_path_BrowseDelegate
32951if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032953$as_echo "$BrowseDelegate" >&6; }
32954else
cristy8b350f62009-11-15 23:12:43 +000032955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032956$as_echo "no" >&6; }
32957fi
32958
32959
cristyc59f0e72012-08-27 12:59:33 +000032960 test -n "$BrowseDelegate" && break
32961done
32962test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32963
cristy3ed852e2009-09-05 21:47:34 +000032964# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32965set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032967$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032968if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032969 $as_echo_n "(cached) " >&6
32970else
32971 case $CatDelegate in
32972 [\\/]* | ?:[\\/]*)
32973 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32974 ;;
32975 *)
32976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32977for as_dir in $PATH
32978do
32979 IFS=$as_save_IFS
32980 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032983 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032985 break 2
32986 fi
32987done
cristy8b350f62009-11-15 23:12:43 +000032988 done
cristy3ed852e2009-09-05 21:47:34 +000032989IFS=$as_save_IFS
32990
32991 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32992 ;;
32993esac
32994fi
32995CatDelegate=$ac_cv_path_CatDelegate
32996if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032998$as_echo "$CatDelegate" >&6; }
32999else
cristy8b350f62009-11-15 23:12:43 +000033000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033001$as_echo "no" >&6; }
33002fi
33003
33004
33005# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33006set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033008$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033009if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033010 $as_echo_n "(cached) " >&6
33011else
33012 case $DNGDecodeDelegate in
33013 [\\/]* | ?:[\\/]*)
33014 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33015 ;;
33016 *)
33017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33018for as_dir in $PATH
33019do
33020 IFS=$as_save_IFS
33021 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033022 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033024 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033026 break 2
33027 fi
33028done
cristy8b350f62009-11-15 23:12:43 +000033029 done
cristy3ed852e2009-09-05 21:47:34 +000033030IFS=$as_save_IFS
33031
33032 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33033 ;;
33034esac
33035fi
33036DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33037if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033039$as_echo "$DNGDecodeDelegate" >&6; }
33040else
cristy8b350f62009-11-15 23:12:43 +000033041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033042$as_echo "no" >&6; }
33043fi
33044
33045
cristy66f238e2014-05-16 12:21:48 +000033046# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33047set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033049$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033050if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033051 $as_echo_n "(cached) " >&6
33052else
cristy66f238e2014-05-16 12:21:48 +000033053 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033054 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033055 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033056 ;;
33057 *)
33058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33059for as_dir in $PATH
33060do
33061 IFS=$as_save_IFS
33062 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033063 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033065 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033067 break 2
33068 fi
33069done
cristy8b350f62009-11-15 23:12:43 +000033070 done
cristy3ed852e2009-09-05 21:47:34 +000033071IFS=$as_save_IFS
33072
cristy66f238e2014-05-16 12:21:48 +000033073 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033074 ;;
33075esac
33076fi
cristy66f238e2014-05-16 12:21:48 +000033077DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33078if test -n "$DOCDecodeDelegate"; then
33079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33080$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033081else
cristy8b350f62009-11-15 23:12:43 +000033082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033083$as_echo "no" >&6; }
33084fi
33085
33086
33087# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33088set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033090$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033091if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033092 $as_echo_n "(cached) " >&6
33093else
33094 case $DVIDecodeDelegate in
33095 [\\/]* | ?:[\\/]*)
33096 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33097 ;;
33098 *)
33099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33100for as_dir in $PATH
33101do
33102 IFS=$as_save_IFS
33103 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033104 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033106 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033108 break 2
33109 fi
33110done
cristy8b350f62009-11-15 23:12:43 +000033111 done
cristy3ed852e2009-09-05 21:47:34 +000033112IFS=$as_save_IFS
33113
33114 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33115 ;;
33116esac
33117fi
33118DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33119if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033121$as_echo "$DVIDecodeDelegate" >&6; }
33122else
cristy8b350f62009-11-15 23:12:43 +000033123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033124$as_echo "no" >&6; }
33125fi
33126
33127
cristy3ed852e2009-09-05 21:47:34 +000033128# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33129set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033131$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033132if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033133 $as_echo_n "(cached) " >&6
33134else
33135 case $ConvertDelegate in
33136 [\\/]* | ?:[\\/]*)
33137 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33138 ;;
33139 *)
33140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33141for as_dir in $PATH
33142do
33143 IFS=$as_save_IFS
33144 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033145 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033147 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033149 break 2
33150 fi
33151done
cristy8b350f62009-11-15 23:12:43 +000033152 done
cristy3ed852e2009-09-05 21:47:34 +000033153IFS=$as_save_IFS
33154
33155 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33156 ;;
33157esac
33158fi
33159ConvertDelegate=$ac_cv_path_ConvertDelegate
33160if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033162$as_echo "$ConvertDelegate" >&6; }
33163else
cristy8b350f62009-11-15 23:12:43 +000033164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033165$as_echo "no" >&6; }
33166fi
33167
33168
33169# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33170set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033172$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033173if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033174 $as_echo_n "(cached) " >&6
33175else
33176 case $DisplayDelegate in
33177 [\\/]* | ?:[\\/]*)
33178 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33179 ;;
33180 *)
33181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33182for as_dir in $PATH
33183do
33184 IFS=$as_save_IFS
33185 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033188 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033190 break 2
33191 fi
33192done
cristy8b350f62009-11-15 23:12:43 +000033193 done
cristy3ed852e2009-09-05 21:47:34 +000033194IFS=$as_save_IFS
33195
33196 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33197 ;;
33198esac
33199fi
33200DisplayDelegate=$ac_cv_path_DisplayDelegate
33201if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033203$as_echo "$DisplayDelegate" >&6; }
33204else
cristy8b350f62009-11-15 23:12:43 +000033205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033206$as_echo "no" >&6; }
33207fi
33208
33209
cristy66f238e2014-05-16 12:21:48 +000033210# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33211set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033213$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033214if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033215 $as_echo_n "(cached) " >&6
33216else
cristy66f238e2014-05-16 12:21:48 +000033217 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033218 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033219 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033220 ;;
33221 *)
33222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33223for as_dir in $PATH
33224do
33225 IFS=$as_save_IFS
33226 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033227 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033229 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033231 break 2
33232 fi
33233done
cristy8b350f62009-11-15 23:12:43 +000033234 done
cristy3ed852e2009-09-05 21:47:34 +000033235IFS=$as_save_IFS
33236
cristy66f238e2014-05-16 12:21:48 +000033237 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033238 ;;
33239esac
33240fi
cristy66f238e2014-05-16 12:21:48 +000033241EchoDelegate=$ac_cv_path_EchoDelegate
33242if test -n "$EchoDelegate"; then
33243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33244$as_echo "$EchoDelegate" >&6; }
33245else
33246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33247$as_echo "no" >&6; }
33248fi
33249
33250
33251# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33252set dummy "$EditorDelegateDefault"; ac_word=$2
33253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33254$as_echo_n "checking for $ac_word... " >&6; }
33255if ${ac_cv_path_EditorDelegate+:} false; then :
33256 $as_echo_n "(cached) " >&6
33257else
33258 case $EditorDelegate in
33259 [\\/]* | ?:[\\/]*)
33260 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33261 ;;
33262 *)
33263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33264for as_dir in $PATH
33265do
33266 IFS=$as_save_IFS
33267 test -z "$as_dir" && as_dir=.
33268 for ac_exec_ext in '' $ac_executable_extensions; do
33269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33270 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33272 break 2
33273 fi
33274done
33275 done
33276IFS=$as_save_IFS
33277
33278 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33279 ;;
33280esac
33281fi
33282EditorDelegate=$ac_cv_path_EditorDelegate
33283if test -n "$EditorDelegate"; then
33284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33285$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033286else
cristy8b350f62009-11-15 23:12:43 +000033287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033288$as_echo "no" >&6; }
33289fi
33290
33291
33292# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33293set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033295$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033296if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033297 $as_echo_n "(cached) " >&6
33298else
33299 case $GnuplotDecodeDelegate in
33300 [\\/]* | ?:[\\/]*)
33301 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33302 ;;
33303 *)
33304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33305for as_dir in $PATH
33306do
33307 IFS=$as_save_IFS
33308 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033309 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033311 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033313 break 2
33314 fi
33315done
cristy8b350f62009-11-15 23:12:43 +000033316 done
cristy3ed852e2009-09-05 21:47:34 +000033317IFS=$as_save_IFS
33318
33319 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33320 ;;
33321esac
33322fi
33323GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33324if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033326$as_echo "$GnuplotDecodeDelegate" >&6; }
33327else
cristy8b350f62009-11-15 23:12:43 +000033328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033329$as_echo "no" >&6; }
33330fi
33331
33332
cristy66f238e2014-05-16 12:21:48 +000033333# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33334set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33336$as_echo_n "checking for $ac_word... " >&6; }
33337if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33338 $as_echo_n "(cached) " >&6
33339else
33340 case $GVCDecodeDelegate in
33341 [\\/]* | ?:[\\/]*)
33342 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33343 ;;
33344 *)
33345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33346for as_dir in $PATH
33347do
33348 IFS=$as_save_IFS
33349 test -z "$as_dir" && as_dir=.
33350 for ac_exec_ext in '' $ac_executable_extensions; do
33351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33352 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33354 break 2
33355 fi
33356done
33357 done
33358IFS=$as_save_IFS
33359
33360 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33361 ;;
33362esac
33363fi
33364GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33365if test -n "$GVCDecodeDelegate"; then
33366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33367$as_echo "$GVCDecodeDelegate" >&6; }
33368else
33369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33370$as_echo "no" >&6; }
33371fi
33372
33373
cristy3ed852e2009-09-05 21:47:34 +000033374# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33375set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033377$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033378if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033379 $as_echo_n "(cached) " >&6
33380else
33381 case $HPGLDecodeDelegate in
33382 [\\/]* | ?:[\\/]*)
33383 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33384 ;;
33385 *)
33386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33387for as_dir in $PATH
33388do
33389 IFS=$as_save_IFS
33390 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033391 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033393 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033395 break 2
33396 fi
33397done
cristy8b350f62009-11-15 23:12:43 +000033398 done
cristy3ed852e2009-09-05 21:47:34 +000033399IFS=$as_save_IFS
33400
33401 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33402 ;;
33403esac
33404fi
33405HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33406if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033408$as_echo "$HPGLDecodeDelegate" >&6; }
33409else
cristy8b350f62009-11-15 23:12:43 +000033410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033411$as_echo "no" >&6; }
33412fi
33413
33414
33415# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33416set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033418$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033419if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033420 $as_echo_n "(cached) " >&6
33421else
33422 case $HTMLDecodeDelegate in
33423 [\\/]* | ?:[\\/]*)
33424 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33425 ;;
33426 *)
33427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33428for as_dir in $PATH
33429do
33430 IFS=$as_save_IFS
33431 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033432 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033434 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033436 break 2
33437 fi
33438done
cristy8b350f62009-11-15 23:12:43 +000033439 done
cristy3ed852e2009-09-05 21:47:34 +000033440IFS=$as_save_IFS
33441
33442 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33443 ;;
33444esac
33445fi
33446HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33447if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033449$as_echo "$HTMLDecodeDelegate" >&6; }
33450else
cristy8b350f62009-11-15 23:12:43 +000033451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033452$as_echo "no" >&6; }
33453fi
33454
33455
33456# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33457set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033459$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033460if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033461 $as_echo_n "(cached) " >&6
33462else
33463 case $ILBMDecodeDelegate in
33464 [\\/]* | ?:[\\/]*)
33465 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33466 ;;
33467 *)
33468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33469for as_dir in $PATH
33470do
33471 IFS=$as_save_IFS
33472 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033473 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033475 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033477 break 2
33478 fi
33479done
cristy8b350f62009-11-15 23:12:43 +000033480 done
cristy3ed852e2009-09-05 21:47:34 +000033481IFS=$as_save_IFS
33482
33483 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33484 ;;
33485esac
33486fi
33487ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33488if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490$as_echo "$ILBMDecodeDelegate" >&6; }
33491else
cristy8b350f62009-11-15 23:12:43 +000033492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033493$as_echo "no" >&6; }
33494fi
33495
33496
33497# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33498set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033500$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033501if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033502 $as_echo_n "(cached) " >&6
33503else
33504 case $ILBMEncodeDelegate in
33505 [\\/]* | ?:[\\/]*)
33506 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33507 ;;
33508 *)
33509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33510for as_dir in $PATH
33511do
33512 IFS=$as_save_IFS
33513 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033516 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033518 break 2
33519 fi
33520done
cristy8b350f62009-11-15 23:12:43 +000033521 done
cristy3ed852e2009-09-05 21:47:34 +000033522IFS=$as_save_IFS
33523
33524 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33525 ;;
33526esac
33527fi
33528ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33529if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531$as_echo "$ILBMEncodeDelegate" >&6; }
33532else
cristy8b350f62009-11-15 23:12:43 +000033533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033534$as_echo "no" >&6; }
33535fi
33536
33537
cristy71f53d52013-04-27 13:33:59 +000033538# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33539set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33541$as_echo_n "checking for $ac_word... " >&6; }
33542if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33543 $as_echo_n "(cached) " >&6
33544else
33545 case $JXRDecodeDelegate in
33546 [\\/]* | ?:[\\/]*)
33547 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33548 ;;
33549 *)
33550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33551for as_dir in $PATH
33552do
33553 IFS=$as_save_IFS
33554 test -z "$as_dir" && as_dir=.
33555 for ac_exec_ext in '' $ac_executable_extensions; do
33556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33557 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33559 break 2
33560 fi
33561done
33562 done
33563IFS=$as_save_IFS
33564
33565 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33566 ;;
33567esac
33568fi
33569JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33570if test -n "$JXRDecodeDelegate"; then
33571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33572$as_echo "$JXRDecodeDelegate" >&6; }
33573else
33574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33575$as_echo "no" >&6; }
33576fi
33577
33578
33579# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33580set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33582$as_echo_n "checking for $ac_word... " >&6; }
33583if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33584 $as_echo_n "(cached) " >&6
33585else
33586 case $JXREncodeDelegate in
33587 [\\/]* | ?:[\\/]*)
33588 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33589 ;;
33590 *)
33591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33592for as_dir in $PATH
33593do
33594 IFS=$as_save_IFS
33595 test -z "$as_dir" && as_dir=.
33596 for ac_exec_ext in '' $ac_executable_extensions; do
33597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33598 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33600 break 2
33601 fi
33602done
33603 done
33604IFS=$as_save_IFS
33605
33606 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33607 ;;
33608esac
33609fi
33610JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33611if test -n "$JXREncodeDelegate"; then
33612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33613$as_echo "$JXREncodeDelegate" >&6; }
33614else
33615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33616$as_echo "no" >&6; }
33617fi
33618
33619
cristy3ed852e2009-09-05 21:47:34 +000033620# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33621set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033623$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033624if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033625 $as_echo_n "(cached) " >&6
33626else
33627 case $LPDelegate in
33628 [\\/]* | ?:[\\/]*)
33629 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33630 ;;
33631 *)
33632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33633for as_dir in $PATH
33634do
33635 IFS=$as_save_IFS
33636 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033637 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033639 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033641 break 2
33642 fi
33643done
cristy8b350f62009-11-15 23:12:43 +000033644 done
cristy3ed852e2009-09-05 21:47:34 +000033645IFS=$as_save_IFS
33646
33647 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33648 ;;
33649esac
33650fi
33651LPDelegate=$ac_cv_path_LPDelegate
33652if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033654$as_echo "$LPDelegate" >&6; }
33655else
cristy8b350f62009-11-15 23:12:43 +000033656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033657$as_echo "no" >&6; }
33658fi
33659
33660
33661# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33662set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033664$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033665if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033666 $as_echo_n "(cached) " >&6
33667else
33668 case $LPRDelegate in
33669 [\\/]* | ?:[\\/]*)
33670 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33671 ;;
33672 *)
33673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33674for as_dir in $PATH
33675do
33676 IFS=$as_save_IFS
33677 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033678 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033680 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033682 break 2
33683 fi
33684done
cristy8b350f62009-11-15 23:12:43 +000033685 done
cristy3ed852e2009-09-05 21:47:34 +000033686IFS=$as_save_IFS
33687
33688 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33689 ;;
33690esac
33691fi
33692LPRDelegate=$ac_cv_path_LPRDelegate
33693if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033695$as_echo "$LPRDelegate" >&6; }
33696else
cristy8b350f62009-11-15 23:12:43 +000033697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033698$as_echo "no" >&6; }
33699fi
33700
33701
cristy3ed852e2009-09-05 21:47:34 +000033702# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33703set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033705$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033706if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033707 $as_echo_n "(cached) " >&6
33708else
33709 case $LaunchDelegate in
33710 [\\/]* | ?:[\\/]*)
33711 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33712 ;;
33713 *)
33714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33715for as_dir in $PATH
33716do
33717 IFS=$as_save_IFS
33718 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033719 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033721 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033723 break 2
33724 fi
33725done
cristy8b350f62009-11-15 23:12:43 +000033726 done
cristy3ed852e2009-09-05 21:47:34 +000033727IFS=$as_save_IFS
33728
33729 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33730 ;;
33731esac
33732fi
33733LaunchDelegate=$ac_cv_path_LaunchDelegate
33734if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736$as_echo "$LaunchDelegate" >&6; }
33737else
cristy8b350f62009-11-15 23:12:43 +000033738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033739$as_echo "no" >&6; }
33740fi
33741
33742
33743# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33744set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033746$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033747if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033748 $as_echo_n "(cached) " >&6
33749else
33750 case $MANDelegate in
33751 [\\/]* | ?:[\\/]*)
33752 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33753 ;;
33754 *)
33755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33756for as_dir in $PATH
33757do
33758 IFS=$as_save_IFS
33759 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033760 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033762 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033764 break 2
33765 fi
33766done
cristy8b350f62009-11-15 23:12:43 +000033767 done
cristy3ed852e2009-09-05 21:47:34 +000033768IFS=$as_save_IFS
33769
33770 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33771 ;;
33772esac
33773fi
33774MANDelegate=$ac_cv_path_MANDelegate
33775if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033777$as_echo "$MANDelegate" >&6; }
33778else
cristy8b350f62009-11-15 23:12:43 +000033779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033780$as_echo "no" >&6; }
33781fi
33782
33783
cristy66f238e2014-05-16 12:21:48 +000033784# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33785set dummy "$MogrifyDelegateDefault"; ac_word=$2
33786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33787$as_echo_n "checking for $ac_word... " >&6; }
33788if ${ac_cv_path_MogrifyDelegate+:} false; then :
33789 $as_echo_n "(cached) " >&6
33790else
33791 case $MogrifyDelegate in
33792 [\\/]* | ?:[\\/]*)
33793 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33794 ;;
33795 *)
33796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33797for as_dir in $PATH
33798do
33799 IFS=$as_save_IFS
33800 test -z "$as_dir" && as_dir=.
33801 for ac_exec_ext in '' $ac_executable_extensions; do
33802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33803 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
33804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33805 break 2
33806 fi
33807done
33808 done
33809IFS=$as_save_IFS
33810
33811 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33812 ;;
33813esac
33814fi
33815MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33816if test -n "$MogrifyDelegate"; then
33817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
33818$as_echo "$MogrifyDelegate" >&6; }
33819else
33820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33821$as_echo "no" >&6; }
33822fi
33823
33824
cristy3ed852e2009-09-05 21:47:34 +000033825# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33826set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033828$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033829if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033830 $as_echo_n "(cached) " >&6
33831else
33832 case $MPEGDecodeDelegate in
33833 [\\/]* | ?:[\\/]*)
33834 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33835 ;;
33836 *)
33837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33838for as_dir in $PATH
33839do
33840 IFS=$as_save_IFS
33841 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033842 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033844 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033846 break 2
33847 fi
33848done
cristy8b350f62009-11-15 23:12:43 +000033849 done
cristy3ed852e2009-09-05 21:47:34 +000033850IFS=$as_save_IFS
33851
33852 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33853 ;;
33854esac
33855fi
33856MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33857if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859$as_echo "$MPEGDecodeDelegate" >&6; }
33860else
cristy8b350f62009-11-15 23:12:43 +000033861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033862$as_echo "no" >&6; }
33863fi
33864
33865
cristy81ab5af2013-10-06 18:28:39 +000033866if test "$MPEGDecodeDelegate" == "$MPEGDecodeDelegateDefault" ; then
33867 MPEGDecodeDelegateDefault='ffmpeg'
33868 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33869set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33871$as_echo_n "checking for $ac_word... " >&6; }
33872if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33873 $as_echo_n "(cached) " >&6
33874else
33875 case $MPEGDecodeDelegate in
33876 [\\/]* | ?:[\\/]*)
33877 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33878 ;;
33879 *)
33880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33881for as_dir in $PATH
33882do
33883 IFS=$as_save_IFS
33884 test -z "$as_dir" && as_dir=.
33885 for ac_exec_ext in '' $ac_executable_extensions; do
33886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33887 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33889 break 2
33890 fi
33891done
33892 done
33893IFS=$as_save_IFS
33894
33895 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33896 ;;
33897esac
33898fi
33899MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33900if test -n "$MPEGDecodeDelegate"; then
33901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33902$as_echo "$MPEGDecodeDelegate" >&6; }
33903else
33904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33905$as_echo "no" >&6; }
33906fi
33907
33908
33909fi;
cristy3ed852e2009-09-05 21:47:34 +000033910# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33911set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033913$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033914if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033915 $as_echo_n "(cached) " >&6
33916else
33917 case $MPEGEncodeDelegate in
33918 [\\/]* | ?:[\\/]*)
33919 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33920 ;;
33921 *)
33922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33923for as_dir in $PATH
33924do
33925 IFS=$as_save_IFS
33926 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033927 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033929 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033931 break 2
33932 fi
33933done
cristy8b350f62009-11-15 23:12:43 +000033934 done
cristy3ed852e2009-09-05 21:47:34 +000033935IFS=$as_save_IFS
33936
33937 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33938 ;;
33939esac
33940fi
33941MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33942if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033944$as_echo "$MPEGEncodeDelegate" >&6; }
33945else
cristy8b350f62009-11-15 23:12:43 +000033946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033947$as_echo "no" >&6; }
33948fi
33949
33950
cristy81ab5af2013-10-06 18:28:39 +000033951if test "$MPEGEncodeDelegate" == "$MPEGEncodeDelegateDefault" ; then
33952 MPEGEncodeDelegateDefault='ffmpeg'
33953 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33954set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33956$as_echo_n "checking for $ac_word... " >&6; }
33957if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33958 $as_echo_n "(cached) " >&6
33959else
33960 case $MPEGEncodeDelegate in
33961 [\\/]* | ?:[\\/]*)
33962 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33963 ;;
33964 *)
33965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33966for as_dir in $PATH
33967do
33968 IFS=$as_save_IFS
33969 test -z "$as_dir" && as_dir=.
33970 for ac_exec_ext in '' $ac_executable_extensions; do
33971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33972 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33974 break 2
33975 fi
33976done
33977 done
33978IFS=$as_save_IFS
33979
33980 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33981 ;;
33982esac
33983fi
33984MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33985if test -n "$MPEGEncodeDelegate"; then
33986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33987$as_echo "$MPEGEncodeDelegate" >&6; }
33988else
33989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33990$as_echo "no" >&6; }
33991fi
33992
33993
33994fi;
cristy935c86e2010-06-05 23:50:07 +000033995# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33996set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33998$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033999if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034000 $as_echo_n "(cached) " >&6
34001else
34002 case $MrSIDDecodeDelegate in
34003 [\\/]* | ?:[\\/]*)
34004 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34005 ;;
34006 *)
34007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34008for as_dir in $PATH
34009do
34010 IFS=$as_save_IFS
34011 test -z "$as_dir" && as_dir=.
34012 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034014 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34016 break 2
34017 fi
34018done
34019 done
34020IFS=$as_save_IFS
34021
34022 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34023 ;;
34024esac
34025fi
34026MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34027if test -n "$MrSIDDecodeDelegate"; then
34028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34029$as_echo "$MrSIDDecodeDelegate" >&6; }
34030else
34031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34032$as_echo "no" >&6; }
34033fi
34034
34035
cristy3ed852e2009-09-05 21:47:34 +000034036# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34037set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034039$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034040if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034041 $as_echo_n "(cached) " >&6
34042else
34043 case $MVDelegate in
34044 [\\/]* | ?:[\\/]*)
34045 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34046 ;;
34047 *)
34048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34049for as_dir in $PATH
34050do
34051 IFS=$as_save_IFS
34052 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034053 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034055 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034057 break 2
34058 fi
34059done
cristy8b350f62009-11-15 23:12:43 +000034060 done
cristy3ed852e2009-09-05 21:47:34 +000034061IFS=$as_save_IFS
34062
34063 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34064 ;;
34065esac
34066fi
34067MVDelegate=$ac_cv_path_MVDelegate
34068if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034070$as_echo "$MVDelegate" >&6; }
34071else
cristy8b350f62009-11-15 23:12:43 +000034072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034073$as_echo "no" >&6; }
34074fi
34075
34076
34077# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34078set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034081if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034082 $as_echo_n "(cached) " >&6
34083else
34084 case $PCLDelegate in
34085 [\\/]* | ?:[\\/]*)
34086 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34087 ;;
34088 *)
34089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34090for as_dir in $PATH
34091do
34092 IFS=$as_save_IFS
34093 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034096 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034098 break 2
34099 fi
34100done
cristy8b350f62009-11-15 23:12:43 +000034101 done
cristy3ed852e2009-09-05 21:47:34 +000034102IFS=$as_save_IFS
34103
34104 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34105 ;;
34106esac
34107fi
34108PCLDelegate=$ac_cv_path_PCLDelegate
34109if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034111$as_echo "$PCLDelegate" >&6; }
34112else
cristy8b350f62009-11-15 23:12:43 +000034113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034114$as_echo "no" >&6; }
34115fi
34116
34117
34118# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34119set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034121$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034122if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034123 $as_echo_n "(cached) " >&6
34124else
34125 case $PGPDecodeDelegate in
34126 [\\/]* | ?:[\\/]*)
34127 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34128 ;;
34129 *)
34130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34131for as_dir in $PATH
34132do
34133 IFS=$as_save_IFS
34134 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034135 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034137 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034139 break 2
34140 fi
34141done
cristy8b350f62009-11-15 23:12:43 +000034142 done
cristy3ed852e2009-09-05 21:47:34 +000034143IFS=$as_save_IFS
34144
34145 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34146 ;;
34147esac
34148fi
34149PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34150if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034152$as_echo "$PGPDecodeDelegate" >&6; }
34153else
cristy8b350f62009-11-15 23:12:43 +000034154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034155$as_echo "no" >&6; }
34156fi
34157
34158
34159# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34160set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034162$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034163if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034164 $as_echo_n "(cached) " >&6
34165else
34166 case $POVDelegate in
34167 [\\/]* | ?:[\\/]*)
34168 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34169 ;;
34170 *)
34171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34172for as_dir in $PATH
34173do
34174 IFS=$as_save_IFS
34175 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034176 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034178 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034180 break 2
34181 fi
34182done
cristy8b350f62009-11-15 23:12:43 +000034183 done
cristy3ed852e2009-09-05 21:47:34 +000034184IFS=$as_save_IFS
34185
34186 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34187 ;;
34188esac
34189fi
34190POVDelegate=$ac_cv_path_POVDelegate
34191if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034193$as_echo "$POVDelegate" >&6; }
34194else
cristy8b350f62009-11-15 23:12:43 +000034195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034196$as_echo "no" >&6; }
34197fi
34198
34199
34200for ac_prog in gsx gsc "$PSDelegateDefault"
34201do
34202 # Extract the first word of "$ac_prog", so it can be a program name with args.
34203set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034205$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034206if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034207 $as_echo_n "(cached) " >&6
34208else
34209 case $PSDelegate in
34210 [\\/]* | ?:[\\/]*)
34211 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34212 ;;
34213 *)
34214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34215for as_dir in $PATH
34216do
34217 IFS=$as_save_IFS
34218 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034219 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034221 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034223 break 2
34224 fi
34225done
cristy8b350f62009-11-15 23:12:43 +000034226 done
cristy3ed852e2009-09-05 21:47:34 +000034227IFS=$as_save_IFS
34228
34229 ;;
34230esac
34231fi
34232PSDelegate=$ac_cv_path_PSDelegate
34233if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034235$as_echo "$PSDelegate" >&6; }
34236else
cristy8b350f62009-11-15 23:12:43 +000034237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034238$as_echo "no" >&6; }
34239fi
34240
34241
34242 test -n "$PSDelegate" && break
34243done
34244test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34245
34246# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34247set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034249$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034250if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034251 $as_echo_n "(cached) " >&6
34252else
34253 case $RLEEncodeDelegate in
34254 [\\/]* | ?:[\\/]*)
34255 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34256 ;;
34257 *)
34258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34259for as_dir in $PATH
34260do
34261 IFS=$as_save_IFS
34262 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034263 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034265 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034267 break 2
34268 fi
34269done
cristy8b350f62009-11-15 23:12:43 +000034270 done
cristy3ed852e2009-09-05 21:47:34 +000034271IFS=$as_save_IFS
34272
34273 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34274 ;;
34275esac
34276fi
34277RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34278if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034280$as_echo "$RLEEncodeDelegate" >&6; }
34281else
cristy8b350f62009-11-15 23:12:43 +000034282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034283$as_echo "no" >&6; }
34284fi
34285
34286
34287# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34288set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034290$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034291if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034292 $as_echo_n "(cached) " >&6
34293else
34294 case $RMDelegate in
34295 [\\/]* | ?:[\\/]*)
34296 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34297 ;;
34298 *)
34299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34300for as_dir in $PATH
34301do
34302 IFS=$as_save_IFS
34303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034306 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034308 break 2
34309 fi
34310done
cristy8b350f62009-11-15 23:12:43 +000034311 done
cristy3ed852e2009-09-05 21:47:34 +000034312IFS=$as_save_IFS
34313
34314 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34315 ;;
34316esac
34317fi
34318RMDelegate=$ac_cv_path_RMDelegate
34319if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034321$as_echo "$RMDelegate" >&6; }
34322else
cristy8b350f62009-11-15 23:12:43 +000034323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034324$as_echo "no" >&6; }
34325fi
34326
34327
cristy4689cf02010-02-17 21:15:45 +000034328# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34329set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34331$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034332if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034333 $as_echo_n "(cached) " >&6
34334else
34335 case $RSVGDecodeDelegate in
34336 [\\/]* | ?:[\\/]*)
34337 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34338 ;;
34339 *)
34340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34341for as_dir in $PATH
34342do
34343 IFS=$as_save_IFS
34344 test -z "$as_dir" && as_dir=.
34345 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034347 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34349 break 2
34350 fi
34351done
34352 done
34353IFS=$as_save_IFS
34354
34355 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34356 ;;
34357esac
34358fi
34359RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34360if test -n "$RSVGDecodeDelegate"; then
34361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34362$as_echo "$RSVGDecodeDelegate" >&6; }
34363else
34364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34365$as_echo "no" >&6; }
34366fi
34367
34368
cristy3ed852e2009-09-05 21:47:34 +000034369# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34370set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034372$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034373if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034374 $as_echo_n "(cached) " >&6
34375else
34376 case $SCANDecodeDelegate in
34377 [\\/]* | ?:[\\/]*)
34378 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34379 ;;
34380 *)
34381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34382for as_dir in $PATH
34383do
34384 IFS=$as_save_IFS
34385 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034388 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034390 break 2
34391 fi
34392done
cristy8b350f62009-11-15 23:12:43 +000034393 done
cristy3ed852e2009-09-05 21:47:34 +000034394IFS=$as_save_IFS
34395
34396 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34397 ;;
34398esac
34399fi
34400SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34401if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034403$as_echo "$SCANDecodeDelegate" >&6; }
34404else
cristy8b350f62009-11-15 23:12:43 +000034405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034406$as_echo "no" >&6; }
34407fi
34408
34409
cristyec6934f2012-08-14 18:38:40 +000034410# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34411set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34413$as_echo_n "checking for $ac_word... " >&6; }
34414if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34415 $as_echo_n "(cached) " >&6
34416else
34417 case $SVGDecodeDelegate in
34418 [\\/]* | ?:[\\/]*)
34419 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34420 ;;
34421 *)
34422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34423for as_dir in $PATH
34424do
34425 IFS=$as_save_IFS
34426 test -z "$as_dir" && as_dir=.
34427 for ac_exec_ext in '' $ac_executable_extensions; do
34428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34429 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34431 break 2
34432 fi
34433done
34434 done
34435IFS=$as_save_IFS
34436
34437 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34438 ;;
34439esac
34440fi
34441SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34442if test -n "$SVGDecodeDelegate"; then
34443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34444$as_echo "$SVGDecodeDelegate" >&6; }
34445else
34446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34447$as_echo "no" >&6; }
34448fi
34449
34450
cristy3ed852e2009-09-05 21:47:34 +000034451# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34452set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034455if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034456 $as_echo_n "(cached) " >&6
34457else
34458 case $TXTDelegate in
34459 [\\/]* | ?:[\\/]*)
34460 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34461 ;;
34462 *)
34463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34464for as_dir in $PATH
34465do
34466 IFS=$as_save_IFS
34467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034470 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034472 break 2
34473 fi
34474done
cristy8b350f62009-11-15 23:12:43 +000034475 done
cristy3ed852e2009-09-05 21:47:34 +000034476IFS=$as_save_IFS
34477
34478 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34479 ;;
34480esac
34481fi
34482TXTDelegate=$ac_cv_path_TXTDelegate
34483if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034485$as_echo "$TXTDelegate" >&6; }
34486else
cristy8b350f62009-11-15 23:12:43 +000034487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034488$as_echo "no" >&6; }
34489fi
34490
34491
cristy5ac9ac82010-07-29 13:24:24 +000034492# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34493set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034496if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034497 $as_echo_n "(cached) " >&6
34498else
34499 case $UniconvertorDelegate in
34500 [\\/]* | ?:[\\/]*)
34501 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34502 ;;
34503 *)
34504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34505for as_dir in $PATH
34506do
34507 IFS=$as_save_IFS
34508 test -z "$as_dir" && as_dir=.
34509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034511 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34513 break 2
34514 fi
34515done
34516 done
34517IFS=$as_save_IFS
34518
34519 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34520 ;;
34521esac
34522fi
34523UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34524if test -n "$UniconvertorDelegate"; then
34525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34526$as_echo "$UniconvertorDelegate" >&6; }
34527else
34528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34529$as_echo "no" >&6; }
34530fi
34531
34532
cristy86e86092013-08-04 17:43:57 +000034533# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34534set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34536$as_echo_n "checking for $ac_word... " >&6; }
34537if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34538 $as_echo_n "(cached) " >&6
34539else
34540 case $WebPDecodeDelegate in
34541 [\\/]* | ?:[\\/]*)
34542 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34543 ;;
34544 *)
34545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34546for as_dir in $PATH
34547do
34548 IFS=$as_save_IFS
34549 test -z "$as_dir" && as_dir=.
34550 for ac_exec_ext in '' $ac_executable_extensions; do
34551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34552 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34554 break 2
34555 fi
34556done
34557 done
34558IFS=$as_save_IFS
34559
34560 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34561 ;;
34562esac
34563fi
34564WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34565if test -n "$WebPDecodeDelegate"; then
34566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34567$as_echo "$WebPDecodeDelegate" >&6; }
34568else
34569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34570$as_echo "no" >&6; }
34571fi
34572
34573
34574# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34575set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34577$as_echo_n "checking for $ac_word... " >&6; }
34578if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34579 $as_echo_n "(cached) " >&6
34580else
34581 case $WebPEncodeDelegate in
34582 [\\/]* | ?:[\\/]*)
34583 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34584 ;;
34585 *)
34586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34587for as_dir in $PATH
34588do
34589 IFS=$as_save_IFS
34590 test -z "$as_dir" && as_dir=.
34591 for ac_exec_ext in '' $ac_executable_extensions; do
34592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34593 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34595 break 2
34596 fi
34597done
34598 done
34599IFS=$as_save_IFS
34600
34601 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34602 ;;
34603esac
34604fi
34605WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34606if test -n "$WebPEncodeDelegate"; then
34607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34608$as_echo "$WebPEncodeDelegate" >&6; }
34609else
34610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34611$as_echo "no" >&6; }
34612fi
34613
34614
cristy3ed852e2009-09-05 21:47:34 +000034615# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34616set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034618$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034619if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034620 $as_echo_n "(cached) " >&6
34621else
34622 case $WMFDecodeDelegate in
34623 [\\/]* | ?:[\\/]*)
34624 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34625 ;;
34626 *)
34627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34628for as_dir in $PATH
34629do
34630 IFS=$as_save_IFS
34631 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034632 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034634 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034636 break 2
34637 fi
34638done
cristy8b350f62009-11-15 23:12:43 +000034639 done
cristy3ed852e2009-09-05 21:47:34 +000034640IFS=$as_save_IFS
34641
34642 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34643 ;;
34644esac
34645fi
34646WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34647if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034649$as_echo "$WMFDecodeDelegate" >&6; }
34650else
cristy8b350f62009-11-15 23:12:43 +000034651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034652$as_echo "no" >&6; }
34653fi
34654
34655
34656# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34657set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034659$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034660if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034661 $as_echo_n "(cached) " >&6
34662else
34663 case $WWWDecodeDelegate in
34664 [\\/]* | ?:[\\/]*)
34665 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34666 ;;
34667 *)
34668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34669for as_dir in $PATH
34670do
34671 IFS=$as_save_IFS
34672 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034675 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034677 break 2
34678 fi
34679done
cristy8b350f62009-11-15 23:12:43 +000034680 done
cristy3ed852e2009-09-05 21:47:34 +000034681IFS=$as_save_IFS
34682
34683 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34684 ;;
34685esac
34686fi
34687WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34688if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034690$as_echo "$WWWDecodeDelegate" >&6; }
34691else
cristy8b350f62009-11-15 23:12:43 +000034692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034693$as_echo "no" >&6; }
34694fi
34695
34696
34697# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34698set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034701if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034702 $as_echo_n "(cached) " >&6
34703else
34704 case $XPSDelegate in
34705 [\\/]* | ?:[\\/]*)
34706 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34707 ;;
34708 *)
34709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34710for as_dir in $PATH
34711do
34712 IFS=$as_save_IFS
34713 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034714 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034716 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034718 break 2
34719 fi
34720done
cristy8b350f62009-11-15 23:12:43 +000034721 done
cristy3ed852e2009-09-05 21:47:34 +000034722IFS=$as_save_IFS
34723
34724 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34725 ;;
34726esac
34727fi
34728XPSDelegate=$ac_cv_path_XPSDelegate
34729if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034731$as_echo "$XPSDelegate" >&6; }
34732else
cristy8b350f62009-11-15 23:12:43 +000034733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034734$as_echo "no" >&6; }
34735fi
34736
34737
34738# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34739set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034742if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034743 $as_echo_n "(cached) " >&6
34744else
34745 case $ZipDelegate in
34746 [\\/]* | ?:[\\/]*)
34747 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34748 ;;
34749 *)
34750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34751for as_dir in $PATH
34752do
34753 IFS=$as_save_IFS
34754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034757 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034759 break 2
34760 fi
34761done
cristy8b350f62009-11-15 23:12:43 +000034762 done
cristy3ed852e2009-09-05 21:47:34 +000034763IFS=$as_save_IFS
34764
34765 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34766 ;;
34767esac
34768fi
34769ZipDelegate=$ac_cv_path_ZipDelegate
34770if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034772$as_echo "$ZipDelegate" >&6; }
34773else
cristy8b350f62009-11-15 23:12:43 +000034774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034775$as_echo "no" >&6; }
34776fi
34777
34778
34779
34780# Prefer lpr to lp; lp needs options tacked on.
34781if test "$LPRDelegate" != no; then
34782 PrintDelegate="$LPRDelegate"
34783else
34784 PrintDelegate="$LPDelegate -c -s"
34785fi
34786
34787
34788# Installed ImageMagick utiltity paths
34789ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34790DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34791MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34792
34793# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034794have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034795have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34796have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34797have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034798have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034799have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34800have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034801have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34802
34803#
34804# Test for font directories
34805#
34806type_include_files=''
34807
cristy430a7312010-01-21 20:44:04 +000034808# Dejavu fonts.
34809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34810$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34811dejavu_font_dir=''
34812if test "${with_dejavu_font_dir}" != 'default'; then
34813 dejavu_font_dir="${with_dejavu_font_dir}/"
34814else
34815 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34816 if test -f "${font_dir}DejaVuSerif.ttf"; then
34817 dejavu_font_dir="${font_dir}"
34818 break 1
34819 fi
34820 done
34821fi
34822if test "${dejavu_font_dir}x" != 'x'; then
34823 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34825$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034826else
cristyad38abe2012-12-23 23:03:21 +000034827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34828$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034829fi
34830
34831
cristy3ed852e2009-09-05 21:47:34 +000034832# Windows
34833windows_font_dir=''
34834if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34835 windows_font_dir="${with_windows_font_dir}/"
34836fi
cristy430a7312010-01-21 20:44:04 +000034837if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034838 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34839 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34840 fi
34841 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34842 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34843 fi
34844 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34845 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34846 fi
34847fi
cristy430a7312010-01-21 20:44:04 +000034848if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034849 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34850fi
34851
34852
34853# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034855$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34856ghostscript_font_dir=''
34857if test "${with_gs_font_dir}" != 'default'; then
34858 ghostscript_font_dir="${with_gs_font_dir}/"
34859else
34860 if test "${native_win32_build}" = 'yes'; then
34861 # Native Windows Build
34862 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34863 if test -f "${font_dir}a010013l.pfb"; then
34864 ghostscript_font_dir="$font_dir"
34865 break 1
34866 fi
34867 done
34868 if test "${PSDelegate}" != 'gswin32c'; then
34869 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34870 fi
34871 else
34872 # Linux / Mac OS X / Unix Build
34873 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
34874 if test -f "${font_dir}a010013l.pfb"; then
34875 ghostscript_font_dir="${font_dir}"
34876 break 1
34877 fi
34878 done
34879 if test "${ghostscript_font_dir}x" = 'x'; then
34880 if test "$PSDelegate" != 'gs'; then
34881 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34882 fi
34883 fi
34884 fi
34885fi
34886if test "${ghostscript_font_dir}x" != 'x'; then
34887 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34889$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034890else
cristyad38abe2012-12-23 23:03:21 +000034891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34892$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034893fi
34894
34895case "${build_os}" in
34896 mingw* )
34897 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34898 ;;
34899esac
34900
34901
34902
34903#
34904# Handle case where user doesn't want frozen paths
34905#
34906if test "$with_frozenpaths" != 'yes'; then
34907 # Re-set delegate definitions to default (no paths)
34908 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034909 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34910 BZIPDelegate="$BZIPDelegateDefault"
34911 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034912 CatDelegate="$CatDelegateDefault"
34913 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034914 DisplayDelegate="$DisplayDelegateDefault"
34915 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000034916 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034917 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34918 EchoDelegate="$EchoDelegateDefault"
34919 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034920 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034921 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034922 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34923 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34924 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34925 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034926 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34927 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034928 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034929 LaunchDelegate="$LaunchDelegateDefault"
34930 MANDelegate="$MANDelegateDefault"
34931 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34932 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034933 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034934 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34935 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034936 PCLDelegate="$PCLDelegateDefault"
34937 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34938 POVDelegate="$POVDelegateDefault"
34939 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034940 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34941 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034942 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034943 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034944 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034945 ShowImageDelegate="$ShowImageDelegateDefault"
34946 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034947 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034948 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34949 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034950 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34951 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34952 XPSDelegate="$XPSDelegateDefault"
34953 ZipDelegate="$ZipDelegateDefault"
34954fi
34955
34956# Delegate substitutions
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
34993
34994
34995
34996
cristy71f53d52013-04-27 13:33:59 +000034997
34998
cristy3ed852e2009-09-05 21:47:34 +000034999#
35000# RPM support.
35001#
35002RPM=''
35003for ac_prog in gnutar gtar tar
35004do
35005 # Extract the first word of "$ac_prog", so it can be a program name with args.
35006set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035008$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035009if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035010 $as_echo_n "(cached) " >&6
35011else
35012 if test -n "$TAR"; then
35013 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35014else
35015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35016for as_dir in $PATH
35017do
35018 IFS=$as_save_IFS
35019 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035022 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035024 break 2
35025 fi
35026done
cristy8b350f62009-11-15 23:12:43 +000035027 done
cristy3ed852e2009-09-05 21:47:34 +000035028IFS=$as_save_IFS
35029
35030fi
35031fi
35032TAR=$ac_cv_prog_TAR
35033if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035035$as_echo "$TAR" >&6; }
35036else
cristy8b350f62009-11-15 23:12:43 +000035037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035038$as_echo "no" >&6; }
35039fi
35040
35041
35042 test -n "$TAR" && break
35043done
35044
35045for ac_prog in perl
35046do
35047 # Extract the first word of "$ac_prog", so it can be a program name with args.
35048set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035050$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035051if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035052 $as_echo_n "(cached) " >&6
35053else
35054 if test -n "$PERL"; then
35055 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35056else
35057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35058for as_dir in $PATH
35059do
35060 IFS=$as_save_IFS
35061 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035064 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035066 break 2
35067 fi
35068done
cristy8b350f62009-11-15 23:12:43 +000035069 done
cristy3ed852e2009-09-05 21:47:34 +000035070IFS=$as_save_IFS
35071
35072fi
35073fi
35074PERL=$ac_cv_prog_PERL
35075if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035077$as_echo "$PERL" >&6; }
35078else
cristy8b350f62009-11-15 23:12:43 +000035079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035080$as_echo "no" >&6; }
35081fi
35082
35083
35084 test -n "$PERL" && break
35085done
35086
35087for ac_prog in rpmbuild rpm
35088do
35089 # Extract the first word of "$ac_prog", so it can be a program name with args.
35090set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035092$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035093if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035094 $as_echo_n "(cached) " >&6
35095else
35096 if test -n "$RPM"; then
35097 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35098else
35099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35100for as_dir in $PATH
35101do
35102 IFS=$as_save_IFS
35103 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035104 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035106 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035108 break 2
35109 fi
35110done
cristy8b350f62009-11-15 23:12:43 +000035111 done
cristy3ed852e2009-09-05 21:47:34 +000035112IFS=$as_save_IFS
35113
35114fi
35115fi
35116RPM=$ac_cv_prog_RPM
35117if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035119$as_echo "$RPM" >&6; }
35120else
cristy8b350f62009-11-15 23:12:43 +000035121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035122$as_echo "no" >&6; }
35123fi
35124
35125
35126 test -n "$RPM" && break
35127done
35128
35129
cristy73bd4a52010-10-05 11:24:23 +000035130ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35131
35132
35133AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35134
35135
35136AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35137
35138
35139AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35140
35141
35142 if test "x$RPM" != "x" ; then
35143 RPM_DELEGATE_TRUE=
35144 RPM_DELEGATE_FALSE='#'
35145else
35146 RPM_DELEGATE_TRUE='#'
35147 RPM_DELEGATE_FALSE=
35148fi
35149
cristy3ed852e2009-09-05 21:47:34 +000035150
35151#
35152# 7ZIP support (http://p7zip.sourceforge.net/)
35153#
35154P7ZIP=''
35155for ac_prog in 7za
35156do
35157 # Extract the first word of "$ac_prog", so it can be a program name with args.
35158set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035160$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035161if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035162 $as_echo_n "(cached) " >&6
35163else
35164 if test -n "$P7ZIP"; then
35165 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35166else
35167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35168for as_dir in $PATH
35169do
35170 IFS=$as_save_IFS
35171 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035172 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035174 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035176 break 2
35177 fi
35178done
cristy8b350f62009-11-15 23:12:43 +000035179 done
cristy3ed852e2009-09-05 21:47:34 +000035180IFS=$as_save_IFS
35181
35182fi
35183fi
35184P7ZIP=$ac_cv_prog_P7ZIP
35185if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035187$as_echo "$P7ZIP" >&6; }
35188else
cristy8b350f62009-11-15 23:12:43 +000035189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035190$as_echo "no" >&6; }
35191fi
35192
35193
35194 test -n "$P7ZIP" && break
35195done
35196
35197
cristy73bd4a52010-10-05 11:24:23 +000035198 if test "x$P7ZIP" != "x" ; then
35199 P7ZIP_DELEGATE_TRUE=
35200 P7ZIP_DELEGATE_FALSE='#'
35201else
35202 P7ZIP_DELEGATE_TRUE='#'
35203 P7ZIP_DELEGATE_FALSE=
35204fi
35205
cristy3ed852e2009-09-05 21:47:34 +000035206
35207#
35208# ZIP support (http://www.info-zip.org/Zip.html)
35209#
35210ZIP=''
35211for ac_prog in zip
35212do
35213 # Extract the first word of "$ac_prog", so it can be a program name with args.
35214set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035216$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035217if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035218 $as_echo_n "(cached) " >&6
35219else
35220 if test -n "$ZIP"; then
35221 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35222else
35223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35224for as_dir in $PATH
35225do
35226 IFS=$as_save_IFS
35227 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035228 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035230 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035232 break 2
35233 fi
35234done
cristy8b350f62009-11-15 23:12:43 +000035235 done
cristy3ed852e2009-09-05 21:47:34 +000035236IFS=$as_save_IFS
35237
35238fi
35239fi
35240ZIP=$ac_cv_prog_ZIP
35241if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035243$as_echo "$ZIP" >&6; }
35244else
cristy8b350f62009-11-15 23:12:43 +000035245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035246$as_echo "no" >&6; }
35247fi
35248
35249
35250 test -n "$ZIP" && break
35251done
35252
35253
cristy73bd4a52010-10-05 11:24:23 +000035254 if test "x$ZIP" != "x" ; then
35255 ZIP_DELEGATE_TRUE=
35256 ZIP_DELEGATE_FALSE='#'
35257else
35258 ZIP_DELEGATE_TRUE='#'
35259 ZIP_DELEGATE_FALSE=
35260fi
35261
cristy3ed852e2009-09-05 21:47:34 +000035262
35263#
35264# GhostPCL related configuration.
35265#
35266PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035267PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035268PCLMonoDevice=pbmraw
35269if test -z "$PCLVersion"; then
35270 PCLVersion='unknown'
35271fi
35272if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35274$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035276$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35278$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035279 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035281$as_echo_n "checking for pcl color device... " >&6; }
35282 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35283 :
35284 else
35285 PCLColorDevice=ppmraw
35286 fi
cristyad38abe2012-12-23 23:03:21 +000035287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35288$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035289
35290 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035292$as_echo_n "checking for pcl CMYK device... " >&6; }
35293 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35294 :
35295 else
35296 PCLCMYKDevice=$PCLColorDevice
35297 fi
cristyad38abe2012-12-23 23:03:21 +000035298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35299$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035300
35301 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035303$as_echo_n "checking for pcl mono device... " >&6; }
35304 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35305 :
35306 else
35307 PCLMonoDevice=$PCLColorDevice
35308 fi
cristyad38abe2012-12-23 23:03:21 +000035309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35310$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035311fi
35312
35313
35314
35315
35316
35317
35318#
35319# GhostXPS related configuration.
35320#
35321XPSColorDevice=ppmraw
35322XPSCMYKDevice=bmpsep8
35323XPSMonoDevice=pbmraw
35324if test -z "$XPSVersion"; then
35325 XPSVersion='unknown'
35326fi
35327if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35329$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035331$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35333$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035334 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035336$as_echo_n "checking for xps color device... " >&6; }
35337 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35338 :
35339 else
35340 XPSColorDevice=ppmraw
35341 fi
cristyad38abe2012-12-23 23:03:21 +000035342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35343$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035344
35345 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035347$as_echo_n "checking for xps CMYK device... " >&6; }
35348 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35349 :
35350 else
35351 XPSCMYKDevice=$XPSColorDevice
35352 fi
cristyad38abe2012-12-23 23:03:21 +000035353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35354$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035355
35356 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035358$as_echo_n "checking for xps mono device... " >&6; }
35359 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35360 :
35361 else
35362 XPSMonoDevice=$XPSColorDevice
35363 fi
cristyad38abe2012-12-23 23:03:21 +000035364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35365$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035366fi
35367
35368
35369
35370
35371
35372
35373#
35374# Ghostscript related configuration.
35375#
cristya97426c2011-02-04 01:41:27 +000035376GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035377GSColorDevice=pnmraw
35378GSCMYKDevice=pam
35379GSMonoDevice=pbmraw
35380GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035381GSPSDevice=ps2write
cristy3ed852e2009-09-05 21:47:34 +000035382GSEPSDevice=epswrite
35383GSVersion='unknown'
35384if test $have_gs = 'yes'; then
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" >&5
cristy3ed852e2009-09-05 21:47:34 +000035388$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35390$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035392$as_echo_n "checking for Ghostscript version... " >&6; }
35393 if GSVersion=`$PSDelegate --version`; then
35394 :
35395 else
35396 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35397 fi
cristyad38abe2012-12-23 23:03:21 +000035398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35399$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035400
35401 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035403$as_echo_n "checking for gs alpha device... " >&6; }
35404 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35405 :
35406 else
35407 GSAlphaDevice=pnmraw
35408 fi
cristyad38abe2012-12-23 23:03:21 +000035409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35410$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035411
35412 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035414$as_echo_n "checking for gs color device... " >&6; }
35415 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35416 :
35417 else
35418 GSColorDevice=pnmraw
35419 fi
cristyad38abe2012-12-23 23:03:21 +000035420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35421$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035422
35423 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035425$as_echo_n "checking for gs CMYK device... " >&6; }
35426 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35427 :
35428 else
35429 GSCMYKDevice=bmpsep8
35430 fi
cristyad38abe2012-12-23 23:03:21 +000035431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35432$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035433
35434 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035436$as_echo_n "checking for gs mono device... " >&6; }
35437 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35438 :
35439 else
35440 GSMonoDevice=$GSColorDevice
35441 fi
cristyad38abe2012-12-23 23:03:21 +000035442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35443$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035444
35445 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035447$as_echo_n "checking for gs PDF writing device... " >&6; }
35448 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35449 :
35450 else
35451 GSPDFDevice=nodevice
35452 fi
cristyad38abe2012-12-23 23:03:21 +000035453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35454$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035455
35456 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035458$as_echo_n "checking for gs PS writing device... " >&6; }
35459 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35460 :
35461 else
35462 GSPSDevice=nodevice
35463 fi
cristyad38abe2012-12-23 23:03:21 +000035464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35465$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035466
35467 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035469$as_echo_n "checking for gs EPS writing device... " >&6; }
35470 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35471 :
35472 else
35473 GSEPSDevice=nodevice
35474 fi
cristyad38abe2012-12-23 23:03:21 +000035475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35476$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035477fi
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488#
35489# PerlMagick-related configuration
35490#
35491
35492# Look for PERL if PerlMagick requested
35493# If name/path of desired PERL interpreter is specified, look for that one first
35494have_perl='no'
35495if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35497$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035499$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35501$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035502 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035504$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035505if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035506 $as_echo_n "(cached) " >&6
35507else
35508 ac_cv_path_PERL="$with_perl"
35509fi
cristy8b350f62009-11-15 23:12:43 +000035510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035511$as_echo "$ac_cv_path_PERL" >&6; };
35512 PERL=$ac_cv_path_PERL
35513 have_perl="$ac_cv_path_PERL"
35514 else
35515 for ac_prog in perl perl5
35516do
35517 # Extract the first word of "$ac_prog", so it can be a program name with args.
35518set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035520$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035521if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035522 $as_echo_n "(cached) " >&6
35523else
35524 case $PERL in
35525 [\\/]* | ?:[\\/]*)
35526 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35527 ;;
35528 *)
35529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35530for as_dir in $PATH
35531do
35532 IFS=$as_save_IFS
35533 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035536 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035538 break 2
35539 fi
35540done
cristy8b350f62009-11-15 23:12:43 +000035541 done
cristy3ed852e2009-09-05 21:47:34 +000035542IFS=$as_save_IFS
35543
35544 ;;
35545esac
35546fi
35547PERL=$ac_cv_path_PERL
35548if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035550$as_echo "$PERL" >&6; }
35551else
cristy8b350f62009-11-15 23:12:43 +000035552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035553$as_echo "no" >&6; }
35554fi
35555
35556
35557 test -n "$PERL" && break
35558done
35559 if test "$ac_cv_path_PERL"; then
35560 have_perl="$ac_cv_path_PERL"
35561 fi
35562 fi
35563fi
35564
cristy949301e2010-01-06 01:38:40 +000035565if test "$with_perl" != 'yes' ; then
35566 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35567fi
35568
35569PERL_SUPPORTS_DESTDIR='no'
35570
cristy3ed852e2009-09-05 21:47:34 +000035571with_perl_static='no'
35572with_perl_dynamic='no'
35573if test "$have_perl" != 'no'; then
35574 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35575 with_perl_static='yes'
35576 fi
35577 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35578 with_perl_dynamic='yes'
35579 fi
35580 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035581
35582
35583
35584
35585 if test -n "$PERL"; then :
35586
35587 ax_perl_version="5.8.1"
35588
35589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35590$as_echo_n "checking for perl version... " >&6; }
35591
cristy17491be2014-06-24 01:10:53 +000035592 perl_version=`$PERL --version 2>&1 \
35593 | $SED -n -e '/This is perl/b inspect
35594b
35595: inspect
35596s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000035597
35598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35599$as_echo "$perl_version" >&6; }
35600
35601 PERL_VERSION=$perl_version
35602
35603
35604
35605
35606
35607 # Used to indicate true or false condition
35608 ax_compare_version=false
35609
35610 # Convert the two version strings to be compared into a format that
35611 # allows a simple string comparison. The end result is that a version
35612 # string of the form 1.12.5-r617 will be converted to the form
35613 # 0001001200050617. In other words, each number is zero padded to four
35614 # digits, and non digits are removed.
35615
35616 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35617 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35618 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35619 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35620 -e 's/[^0-9]//g'`
35621
35622
35623 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35624 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35625 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35626 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35627 -e 's/[^0-9]//g'`
35628
35629
35630 ax_compare_version=`echo "x$ax_compare_version_A
35631x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35632
35633
35634
35635 if test "$ax_compare_version" = "true" ; then
35636
35637 :
35638 PERL_SUPPORTS_DESTDIR='yes'
35639
35640 else
35641 :
35642 PERL_SUPPORTS_DESTDIR='no'
35643
35644 fi
35645
35646
35647else
35648
35649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35650$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35651 PERL_SUPPORTS_DESTDIR='no'
35652
cristy3ed852e2009-09-05 21:47:34 +000035653fi
cristy73bd4a52010-10-05 11:24:23 +000035654
35655fi
35656 if test "$have_perl" != 'no'; then
35657 WITH_PERL_TRUE=
35658 WITH_PERL_FALSE='#'
35659else
35660 WITH_PERL_TRUE='#'
35661 WITH_PERL_FALSE=
35662fi
35663
35664 if test $with_perl_static = 'yes'; then
35665 WITH_PERL_STATIC_TRUE=
35666 WITH_PERL_STATIC_FALSE='#'
35667else
35668 WITH_PERL_STATIC_TRUE='#'
35669 WITH_PERL_STATIC_FALSE=
35670fi
35671
35672 if test $with_perl_dynamic = 'yes'; then
35673 WITH_PERL_DYNAMIC_TRUE=
35674 WITH_PERL_DYNAMIC_FALSE='#'
35675else
35676 WITH_PERL_DYNAMIC_TRUE='#'
35677 WITH_PERL_DYNAMIC_FALSE=
35678fi
35679
cristy3ed852e2009-09-05 21:47:34 +000035680
35681
35682# Determine path to pick up MagickCore library from for use with building PerlMagick
35683MAGICKCORE_PATH="${LIB_DIR}"
35684if test $with_perl_static = 'yes'; then
35685 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35686 libtool_objdir=$objdir
35687
35688 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035689 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035690fi
35691
35692
cristy2a3eb392012-12-17 13:39:20 +000035693# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035694MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035695if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035696 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035697fi
cristy2a3eb392012-12-17 13:39:20 +000035698if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035699 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035700fi
35701if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035702 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035703fi
35704if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035705 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035706fi
cristy81ab5af2013-10-06 18:28:39 +000035707if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035708 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035709fi
35710if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035711 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035712fi
cristy2a3eb392012-12-17 13:39:20 +000035713if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035714 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035715fi
35716if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035717 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035718fi
35719if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035720 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035721fi
35722if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035723 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035724fi
35725if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035726 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035727fi
35728if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035729 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035730fi
35731if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035732 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035733fi
35734if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035735 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035736fi
35737if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035738 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035739fi
35740if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035741 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035742fi
35743if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035744 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035745fi
35746if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035747 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035748fi
cristy99db3872014-01-01 15:11:34 +000035749if test "$have_openjp2" = 'yes' ; then
35750 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000035751fi
cristy2a3eb392012-12-17 13:39:20 +000035752if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035753 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035754fi
35755if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035756 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035757fi
35758have_ps='no'
35759if test "$have_dps" = 'yes' || \
35760 test "$have_gs" = 'yes' || \
35761 test "${native_win32_build}" = 'yes' ; then
35762 have_ps='yes'
35763fi
35764if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035765 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035766fi
cristy2a3eb392012-12-17 13:39:20 +000035767if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035768 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035769fi
35770if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035771 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035772fi
35773if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035774 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035775fi
35776if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035777 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035778fi
cristy3b640ed2013-07-29 00:27:59 +000035779if test "$have_webp" = 'yes' ; then
35780 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35781fi
cristy2a3eb392012-12-17 13:39:20 +000035782if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035783 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035784fi
35785if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035786 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035787fi
35788if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035789 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035790fi
35791if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035792 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035793fi
cristy2a3eb392012-12-17 13:39:20 +000035794# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035795MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035796MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035797
35798
cristyfa161182012-12-19 15:45:28 +000035799
cristy3ed852e2009-09-05 21:47:34 +000035800#
35801# Handle special compiler flags
35802#
35803
35804# Add '-p' if prof source profiling support enabled
35805if test "$enable_prof" = 'yes'; then
35806 CFLAGS="-p $CFLAGS"
35807 CXXFLAGS="-p $CXXFLAGS"
35808 LDFLAGS="-p $LDFLAGS"
35809fi
35810
35811# Add '-pg' if gprof source profiling support enabled
35812if test "$enable_gprof" = 'yes'; then
35813 CFLAGS="-pg $CFLAGS"
35814 CXXFLAGS="-pg $CXXFLAGS"
35815 LDFLAGS="-pg $LDFLAGS"
35816fi
35817
35818# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35819# This is a gcc-specific feature
35820if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035822$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035823if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035824 $as_echo_n "(cached) " >&6
35825else
35826 ac_check_lib_save_LIBS=$LIBS
35827LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035829/* end confdefs.h. */
35830
35831/* Override any GCC internal prototype to avoid an error.
35832 Use char because int might match the return type of a GCC
35833 builtin and then its argument prototype would still apply. */
35834#ifdef __cplusplus
35835extern "C"
35836#endif
35837char _gcov_init ();
35838int
35839main ()
35840{
35841return _gcov_init ();
35842 ;
35843 return 0;
35844}
35845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035846if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035847 ac_cv_lib_gcov__gcov_init=yes
35848else
cristy8b350f62009-11-15 23:12:43 +000035849 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035850fi
cristy8b350f62009-11-15 23:12:43 +000035851rm -f core conftest.err conftest.$ac_objext \
35852 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035853LIBS=$ac_check_lib_save_LIBS
35854fi
cristy8b350f62009-11-15 23:12:43 +000035855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035856$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035857if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035858 cat >>confdefs.h <<_ACEOF
35859#define HAVE_LIBGCOV 1
35860_ACEOF
35861
35862 LIBS="-lgcov $LIBS"
35863
35864fi
35865
cristy8b350f62009-11-15 23:12:43 +000035866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035867$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035868if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035869 $as_echo_n "(cached) " >&6
35870else
35871 ac_check_lib_save_LIBS=$LIBS
35872LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035874/* end confdefs.h. */
35875
35876/* Override any GCC internal prototype to avoid an error.
35877 Use char because int might match the return type of a GCC
35878 builtin and then its argument prototype would still apply. */
35879#ifdef __cplusplus
35880extern "C"
35881#endif
35882char __gcov_init ();
35883int
35884main ()
35885{
35886return __gcov_init ();
35887 ;
35888 return 0;
35889}
35890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035891if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035892 ac_cv_lib_gcov___gcov_init=yes
35893else
cristy8b350f62009-11-15 23:12:43 +000035894 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035895fi
cristy8b350f62009-11-15 23:12:43 +000035896rm -f core conftest.err conftest.$ac_objext \
35897 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035898LIBS=$ac_check_lib_save_LIBS
35899fi
cristy8b350f62009-11-15 23:12:43 +000035900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035901$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035902if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035903 cat >>confdefs.h <<_ACEOF
35904#define HAVE_LIBGCOV 1
35905_ACEOF
35906
35907 LIBS="-lgcov $LIBS"
35908
35909fi
35910
35911 case "$target_os" in
35912 darwin*)
35913 OSX_GCOV_LDFLAG="-Wl,-single_module"
35914 ;;
35915 *)
35916 OSX_GCOV_LDFLAG=""
35917 ;;
35918 esac
35919
35920 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35921 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35922 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35923fi
35924
35925#
35926# Build library dependency list for libMagickCore
35927#
35928
cristyc6722092012-10-14 00:19:31 +000035929if test "$build_modules" != 'no'; then
cristy5e2e2382014-04-20 02:06:01 +000035930 MAGICK_DEP_LIBS="$USER_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 +000035931else
cristy5e2e2382014-04-20 02:06:01 +000035932 MAGICK_DEP_LIBS="$USER_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 +000035933fi
35934
35935
35936#
35937# Remove extraneous spaces from output variables (asthetic)
35938#
35939X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35940X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35941X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35942X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35943
35944CC=`echo $CC | sed -e 's/ */ /g'`
35945CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35946CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35947CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035948DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35949LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35950TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35951MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35952#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35953
35954# Pass only user-provided LIBS as "global" libraries
35955LIBS=$USER_LIBS
35956
35957#AC_SUBST(CPPFLAGS)
35958
35959#AC_SUBST(LDFLAGS)
35960#AC_SUBST(X_PRE_LIBS)
35961#AC_SUBST(X_LIBS)
35962#AC_SUBST(X_EXTRA_LIBS)
35963
35964MAGICK_CFLAGS=$CFLAGS
35965MAGICK_CXXFLAGS="$CXXFLAGS"
35966MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35967MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35968MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000035969MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035970
35971
35972
35973
35974
35975
35976
35977
35978# Set configured scripts to executable.
35979ac_config_commands="$ac_config_commands default"
35980
cristy2bd4b6e2012-07-22 15:29:11 +000035981ac_config_commands="$ac_config_commands magick.sh.in"
35982
cristy3ed852e2009-09-05 21:47:34 +000035983ac_config_commands="$ac_config_commands MagickCore-config.in"
35984
cristy3ed852e2009-09-05 21:47:34 +000035985ac_config_commands="$ac_config_commands MagickWand-config.in"
35986
cristy3ed852e2009-09-05 21:47:34 +000035987ac_config_commands="$ac_config_commands Magick++-config.in"
35988
35989ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35990
35991
cristyad38abe2012-12-23 23:03:21 +000035992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35993$as_echo "-------------------------------------------------------------" >&6; }
35994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35995$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035996cat >confcache <<\_ACEOF
35997# This file is a shell script that caches the results of configure
35998# tests run on this system so they can be shared between configure
35999# scripts and configure runs, see configure's option --config-cache.
36000# It is not useful on other systems. If it contains results you don't
36001# want to keep, you may remove or edit it.
36002#
36003# config.status only pays attention to the cache file if you give it
36004# the --recheck option to rerun configure.
36005#
36006# `ac_cv_env_foo' variables (set or unset) will be overridden when
36007# loading this file, other *unset* `ac_cv_foo' will be assigned the
36008# following values.
36009
36010_ACEOF
36011
36012# The following way of writing the cache mishandles newlines in values,
36013# but we know of no workaround that is simple, portable, and efficient.
36014# So, we kill variables containing newlines.
36015# Ultrix sh set writes to stderr and can't be redirected directly,
36016# and sets the high bit in the cache file unless we assign to the vars.
36017(
36018 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36019 eval ac_val=\$$ac_var
36020 case $ac_val in #(
36021 *${as_nl}*)
36022 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036023 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036024$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36025 esac
36026 case $ac_var in #(
36027 _ | IFS | as_nl) ;; #(
36028 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036029 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036030 esac ;;
36031 esac
36032 done
36033
36034 (set) 2>&1 |
36035 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36036 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036037 # `set' does not quote correctly, so add quotes: double-quote
36038 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036039 sed -n \
36040 "s/'/'\\\\''/g;
36041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36042 ;; #(
36043 *)
36044 # `set' quotes correctly as required by POSIX, so do not add quotes.
36045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36046 ;;
36047 esac |
36048 sort
36049) |
36050 sed '
36051 /^ac_cv_env_/b end
36052 t clear
36053 :clear
36054 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36055 t end
36056 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36057 :end' >>confcache
36058if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36059 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036060 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036061 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036062$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036063 if test ! -f "$cache_file" || test -h "$cache_file"; then
36064 cat confcache >"$cache_file"
36065 else
36066 case $cache_file in #(
36067 */* | ?:*)
36068 mv -f confcache "$cache_file"$$ &&
36069 mv -f "$cache_file"$$ "$cache_file" ;; #(
36070 *)
36071 mv -f confcache "$cache_file" ;;
36072 esac
36073 fi
36074 fi
cristy3ed852e2009-09-05 21:47:34 +000036075 else
cristy8b350f62009-11-15 23:12:43 +000036076 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036077$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36078 fi
36079fi
36080rm -f confcache
36081
36082test "x$prefix" = xNONE && prefix=$ac_default_prefix
36083# Let make expand exec_prefix.
36084test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36085
36086DEFS=-DHAVE_CONFIG_H
36087
36088ac_libobjs=
36089ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036090U=
cristy3ed852e2009-09-05 21:47:34 +000036091for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36092 # 1. Remove the extension, and $U if already installed.
36093 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36094 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36095 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36096 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036097 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36098 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036099done
36100LIBOBJS=$ac_libobjs
36101
36102LTLIBOBJS=$ac_ltlibobjs
36103
36104
cristyc0890a62012-07-19 00:18:20 +000036105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36106$as_echo_n "checking that generated files are newer than configure... " >&6; }
36107 if test -n "$am_sleep_pid"; then
36108 # Hide warnings about reused PIDs.
36109 wait $am_sleep_pid 2>/dev/null
36110 fi
36111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36112$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036113 if test -n "$EXEEXT"; then
36114 am__EXEEXT_TRUE=
36115 am__EXEEXT_FALSE='#'
36116else
36117 am__EXEEXT_TRUE='#'
36118 am__EXEEXT_FALSE=
36119fi
cristy3ed852e2009-09-05 21:47:34 +000036120
cristy73bd4a52010-10-05 11:24:23 +000036121if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036122 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036123Usually this means the macro was only invoked conditionally." "$LINENO" 5
36124fi
36125if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036126 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036127Usually this means the macro was only invoked conditionally." "$LINENO" 5
36128fi
36129if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036130 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036131Usually this means the macro was only invoked conditionally." "$LINENO" 5
36132fi
36133if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036134 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036135Usually this means the macro was only invoked conditionally." "$LINENO" 5
36136fi
cristy9b86f202012-11-28 21:55:35 +000036137if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36138 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36139Usually this means the macro was only invoked conditionally." "$LINENO" 5
36140fi
cristy73bd4a52010-10-05 11:24:23 +000036141if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036142 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036143Usually this means the macro was only invoked conditionally." "$LINENO" 5
36144fi
36145if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036146 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036147Usually this means the macro was only invoked conditionally." "$LINENO" 5
36148fi
36149if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036150 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036151Usually this means the macro was only invoked conditionally." "$LINENO" 5
36152fi
36153if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036154 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036155Usually this means the macro was only invoked conditionally." "$LINENO" 5
36156fi
cristy73bd4a52010-10-05 11:24:23 +000036157if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036158 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036159Usually this means the macro was only invoked conditionally." "$LINENO" 5
36160fi
36161if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036162 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036163Usually this means the macro was only invoked conditionally." "$LINENO" 5
36164fi
cristy73bd4a52010-10-05 11:24:23 +000036165if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036166 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036167Usually this means the macro was only invoked conditionally." "$LINENO" 5
36168fi
cristy71d8c202012-03-20 17:05:01 +000036169if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36170 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36171Usually this means the macro was only invoked conditionally." "$LINENO" 5
36172fi
cristy73bd4a52010-10-05 11:24:23 +000036173
36174if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036175 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036176Usually this means the macro was only invoked conditionally." "$LINENO" 5
36177fi
36178if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036179 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036180Usually this means the macro was only invoked conditionally." "$LINENO" 5
36181fi
36182if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036183 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036184Usually this means the macro was only invoked conditionally." "$LINENO" 5
36185fi
36186if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036187 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036188Usually this means the macro was only invoked conditionally." "$LINENO" 5
36189fi
36190if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036191 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036192Usually this means the macro was only invoked conditionally." "$LINENO" 5
36193fi
36194if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036195 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036196Usually this means the macro was only invoked conditionally." "$LINENO" 5
36197fi
cristy5eef09f2012-10-16 12:08:28 +000036198if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36199 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36200Usually this means the macro was only invoked conditionally." "$LINENO" 5
36201fi
cristy73bd4a52010-10-05 11:24:23 +000036202if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036203 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036204Usually this means the macro was only invoked conditionally." "$LINENO" 5
36205fi
36206if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036207 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036208Usually this means the macro was only invoked conditionally." "$LINENO" 5
36209fi
36210if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036211 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036212Usually this means the macro was only invoked conditionally." "$LINENO" 5
36213fi
36214if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036215 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036216Usually this means the macro was only invoked conditionally." "$LINENO" 5
36217fi
36218if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036219 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036220Usually this means the macro was only invoked conditionally." "$LINENO" 5
36221fi
36222if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036223 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036224Usually this means the macro was only invoked conditionally." "$LINENO" 5
36225fi
36226if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036227 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036228Usually this means the macro was only invoked conditionally." "$LINENO" 5
36229fi
36230if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036231 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036232Usually this means the macro was only invoked conditionally." "$LINENO" 5
36233fi
36234if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036235 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036236Usually this means the macro was only invoked conditionally." "$LINENO" 5
36237fi
36238if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036239 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036240Usually this means the macro was only invoked conditionally." "$LINENO" 5
36241fi
36242if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036243 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036244Usually this means the macro was only invoked conditionally." "$LINENO" 5
36245fi
cristy73bd4a52010-10-05 11:24:23 +000036246if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036247 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036248Usually this means the macro was only invoked conditionally." "$LINENO" 5
36249fi
cristy99db3872014-01-01 15:11:34 +000036250if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36251 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36252Usually this means the macro was only invoked conditionally." "$LINENO" 5
36253fi
cristy73bd4a52010-10-05 11:24:23 +000036254if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036255 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036256Usually this means the macro was only invoked conditionally." "$LINENO" 5
36257fi
cristyfbb0ef02010-12-19 02:32:11 +000036258if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36259 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36260Usually this means the macro was only invoked conditionally." "$LINENO" 5
36261fi
cristy73bd4a52010-10-05 11:24:23 +000036262if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036263 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036264Usually this means the macro was only invoked conditionally." "$LINENO" 5
36265fi
cristy41cbe8a2011-10-27 01:35:18 +000036266if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36267 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36268Usually this means the macro was only invoked conditionally." "$LINENO" 5
36269fi
cristya054b762012-03-26 23:16:00 +000036270if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36271 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036272Usually this means the macro was only invoked conditionally." "$LINENO" 5
36273fi
cristy73bd4a52010-10-05 11:24:23 +000036274if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036275 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036276Usually this means the macro was only invoked conditionally." "$LINENO" 5
36277fi
36278if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036279 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036280Usually this means the macro was only invoked conditionally." "$LINENO" 5
36281fi
36282if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036283 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036284Usually this means the macro was only invoked conditionally." "$LINENO" 5
36285fi
36286if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036287 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036288Usually this means the macro was only invoked conditionally." "$LINENO" 5
36289fi
cristyb1860752011-03-14 00:27:46 +000036290if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36291 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36292Usually this means the macro was only invoked conditionally." "$LINENO" 5
36293fi
cristy73bd4a52010-10-05 11:24:23 +000036294if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036295 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036296Usually this means the macro was only invoked conditionally." "$LINENO" 5
36297fi
36298if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036299 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036300Usually this means the macro was only invoked conditionally." "$LINENO" 5
36301fi
cristydd17feb2014-03-05 02:06:32 +000036302if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36303 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36304Usually this means the macro was only invoked conditionally." "$LINENO" 5
36305fi
cristy73bd4a52010-10-05 11:24:23 +000036306if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036307 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036308Usually this means the macro was only invoked conditionally." "$LINENO" 5
36309fi
36310if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036311 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036312Usually this means the macro was only invoked conditionally." "$LINENO" 5
36313fi
36314if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036315 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036316Usually this means the macro was only invoked conditionally." "$LINENO" 5
36317fi
36318if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036319 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036320Usually this means the macro was only invoked conditionally." "$LINENO" 5
36321fi
36322if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036323 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036324Usually this means the macro was only invoked conditionally." "$LINENO" 5
36325fi
36326if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036327 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036328Usually this means the macro was only invoked conditionally." "$LINENO" 5
36329fi
cristy3ed852e2009-09-05 21:47:34 +000036330
cristyda16f162011-02-19 23:52:17 +000036331: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036332ac_write_fail=0
36333ac_clean_files_save=$ac_clean_files
36334ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036335{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036336$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036337as_write_fail=0
36338cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036339#! $SHELL
36340# Generated by $as_me.
36341# Run this file to recreate the current configuration.
36342# Compiler output produced by configure, useful for debugging
36343# configure, is in config.log if it exists.
36344
36345debug=false
36346ac_cs_recheck=false
36347ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036348
cristy8b350f62009-11-15 23:12:43 +000036349SHELL=\${CONFIG_SHELL-$SHELL}
36350export SHELL
36351_ASEOF
36352cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36353## -------------------- ##
36354## M4sh Initialization. ##
36355## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036356
36357# Be more Bourne compatible
36358DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036359if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036360 emulate sh
36361 NULLCMD=:
36362 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36363 # is contrary to our usage. Disable this feature.
36364 alias -g '${1+"$@"}'='"$@"'
36365 setopt NO_GLOB_SUBST
36366else
cristy8b350f62009-11-15 23:12:43 +000036367 case `(set -o) 2>/dev/null` in #(
36368 *posix*) :
36369 set -o posix ;; #(
36370 *) :
36371 ;;
cristy3ed852e2009-09-05 21:47:34 +000036372esac
cristy3ed852e2009-09-05 21:47:34 +000036373fi
36374
36375
cristy3ed852e2009-09-05 21:47:34 +000036376as_nl='
36377'
36378export as_nl
36379# Printing a long string crashes Solaris 7 /usr/bin/printf.
36380as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36381as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36382as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036383# Prefer a ksh shell builtin over an external printf program on Solaris,
36384# but without wasting forks for bash or zsh.
36385if test -z "$BASH_VERSION$ZSH_VERSION" \
36386 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36387 as_echo='print -r --'
36388 as_echo_n='print -rn --'
36389elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036390 as_echo='printf %s\n'
36391 as_echo_n='printf %s'
36392else
36393 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36394 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36395 as_echo_n='/usr/ucb/echo -n'
36396 else
36397 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36398 as_echo_n_body='eval
36399 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036400 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036401 *"$as_nl"*)
36402 expr "X$arg" : "X\\(.*\\)$as_nl";
36403 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36404 esac;
36405 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36406 '
36407 export as_echo_n_body
36408 as_echo_n='sh -c $as_echo_n_body as_echo'
36409 fi
36410 export as_echo_body
36411 as_echo='sh -c $as_echo_body as_echo'
36412fi
36413
36414# The user is always right.
36415if test "${PATH_SEPARATOR+set}" != set; then
36416 PATH_SEPARATOR=:
36417 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36418 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36419 PATH_SEPARATOR=';'
36420 }
36421fi
36422
cristy3ed852e2009-09-05 21:47:34 +000036423
36424# IFS
36425# We need space, tab and new line, in precisely that order. Quoting is
36426# there to prevent editors from complaining about space-tab.
36427# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36428# splitting by setting IFS to empty value.)
36429IFS=" "" $as_nl"
36430
36431# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036432as_myself=
cristy8b350f62009-11-15 23:12:43 +000036433case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036434 *[\\/]* ) as_myself=$0 ;;
36435 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36436for as_dir in $PATH
36437do
36438 IFS=$as_save_IFS
36439 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036440 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36441 done
cristy3ed852e2009-09-05 21:47:34 +000036442IFS=$as_save_IFS
36443
36444 ;;
36445esac
36446# We did not find ourselves, most probably we were run as `sh COMMAND'
36447# in which case we are not to be found in the path.
36448if test "x$as_myself" = x; then
36449 as_myself=$0
36450fi
36451if test ! -f "$as_myself"; then
36452 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036453 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036454fi
36455
cristy8b350f62009-11-15 23:12:43 +000036456# Unset variables that we do not need and which cause bugs (e.g. in
36457# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36458# suppresses any "Segmentation fault" message there. '((' could
36459# trigger a bug in pdksh 5.2.14.
36460for as_var in BASH_ENV ENV MAIL MAILPATH
36461do eval test x\${$as_var+set} = xset \
36462 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036463done
36464PS1='$ '
36465PS2='> '
36466PS4='+ '
36467
36468# NLS nuisances.
36469LC_ALL=C
36470export LC_ALL
36471LANGUAGE=C
36472export LANGUAGE
36473
cristy8b350f62009-11-15 23:12:43 +000036474# CDPATH.
36475(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36476
36477
cristy98dddb52010-11-04 00:30:15 +000036478# as_fn_error STATUS ERROR [LINENO LOG_FD]
36479# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036480# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36481# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036482# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036483as_fn_error ()
36484{
cristy98dddb52010-11-04 00:30:15 +000036485 as_status=$1; test $as_status -eq 0 && as_status=1
36486 if test "$4"; then
36487 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36488 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036489 fi
cristy98dddb52010-11-04 00:30:15 +000036490 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036491 as_fn_exit $as_status
36492} # as_fn_error
36493
36494
36495# as_fn_set_status STATUS
36496# -----------------------
36497# Set $? to STATUS, without forking.
36498as_fn_set_status ()
36499{
36500 return $1
36501} # as_fn_set_status
36502
36503# as_fn_exit STATUS
36504# -----------------
36505# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36506as_fn_exit ()
36507{
36508 set +e
36509 as_fn_set_status $1
36510 exit $1
36511} # as_fn_exit
36512
36513# as_fn_unset VAR
36514# ---------------
36515# Portably unset VAR.
36516as_fn_unset ()
36517{
36518 { eval $1=; unset $1;}
36519}
36520as_unset=as_fn_unset
36521# as_fn_append VAR VALUE
36522# ----------------------
36523# Append the text in VALUE to the end of the definition contained in VAR. Take
36524# advantage of any shell optimizations that allow amortized linear growth over
36525# repeated appends, instead of the typical quadratic growth present in naive
36526# implementations.
36527if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36528 eval 'as_fn_append ()
36529 {
36530 eval $1+=\$2
36531 }'
36532else
36533 as_fn_append ()
36534 {
36535 eval $1=\$$1\$2
36536 }
36537fi # as_fn_append
36538
36539# as_fn_arith ARG...
36540# ------------------
36541# Perform arithmetic evaluation on the ARGs, and store the result in the
36542# global $as_val. Take advantage of shells that can avoid forks. The arguments
36543# must be portable across $(()) and expr.
36544if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36545 eval 'as_fn_arith ()
36546 {
36547 as_val=$(( $* ))
36548 }'
36549else
36550 as_fn_arith ()
36551 {
36552 as_val=`expr "$@" || test $? -eq 1`
36553 }
36554fi # as_fn_arith
36555
36556
cristy3ed852e2009-09-05 21:47:34 +000036557if expr a : '\(a\)' >/dev/null 2>&1 &&
36558 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36559 as_expr=expr
36560else
36561 as_expr=false
36562fi
36563
36564if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36565 as_basename=basename
36566else
36567 as_basename=false
36568fi
36569
cristy8b350f62009-11-15 23:12:43 +000036570if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36571 as_dirname=dirname
36572else
36573 as_dirname=false
36574fi
cristy3ed852e2009-09-05 21:47:34 +000036575
cristy3ed852e2009-09-05 21:47:34 +000036576as_me=`$as_basename -- "$0" ||
36577$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36578 X"$0" : 'X\(//\)$' \| \
36579 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36580$as_echo X/"$0" |
36581 sed '/^.*\/\([^/][^/]*\)\/*$/{
36582 s//\1/
36583 q
36584 }
36585 /^X\/\(\/\/\)$/{
36586 s//\1/
36587 q
36588 }
36589 /^X\/\(\/\).*/{
36590 s//\1/
36591 q
36592 }
36593 s/.*/./; q'`
36594
cristy8b350f62009-11-15 23:12:43 +000036595# Avoid depending upon Character Ranges.
36596as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36597as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36598as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36599as_cr_digits='0123456789'
36600as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036601
36602ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036603case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036604-n*)
cristy8b350f62009-11-15 23:12:43 +000036605 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036606 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036607 xy) ECHO_C='\c';;
36608 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36609 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036610 esac;;
36611*)
36612 ECHO_N='-n';;
36613esac
cristy3ed852e2009-09-05 21:47:34 +000036614
36615rm -f conf$$ conf$$.exe conf$$.file
36616if test -d conf$$.dir; then
36617 rm -f conf$$.dir/conf$$.file
36618else
36619 rm -f conf$$.dir
36620 mkdir conf$$.dir 2>/dev/null
36621fi
36622if (echo >conf$$.file) 2>/dev/null; then
36623 if ln -s conf$$.file conf$$ 2>/dev/null; then
36624 as_ln_s='ln -s'
36625 # ... but there are two gotchas:
36626 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36627 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036628 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036629 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036630 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036631 elif ln conf$$.file conf$$ 2>/dev/null; then
36632 as_ln_s=ln
36633 else
cristy14fefe52012-05-21 00:59:18 +000036634 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036635 fi
36636else
cristy14fefe52012-05-21 00:59:18 +000036637 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036638fi
36639rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36640rmdir conf$$.dir 2>/dev/null
36641
cristy8b350f62009-11-15 23:12:43 +000036642
36643# as_fn_mkdir_p
36644# -------------
36645# Create "$as_dir" as a directory, including parents if necessary.
36646as_fn_mkdir_p ()
36647{
36648
36649 case $as_dir in #(
36650 -*) as_dir=./$as_dir;;
36651 esac
36652 test -d "$as_dir" || eval $as_mkdir_p || {
36653 as_dirs=
36654 while :; do
36655 case $as_dir in #(
36656 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36657 *) as_qdir=$as_dir;;
36658 esac
36659 as_dirs="'$as_qdir' $as_dirs"
36660 as_dir=`$as_dirname -- "$as_dir" ||
36661$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36662 X"$as_dir" : 'X\(//\)[^/]' \| \
36663 X"$as_dir" : 'X\(//\)$' \| \
36664 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36665$as_echo X"$as_dir" |
36666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36667 s//\1/
36668 q
36669 }
36670 /^X\(\/\/\)[^/].*/{
36671 s//\1/
36672 q
36673 }
36674 /^X\(\/\/\)$/{
36675 s//\1/
36676 q
36677 }
36678 /^X\(\/\).*/{
36679 s//\1/
36680 q
36681 }
36682 s/.*/./; q'`
36683 test -d "$as_dir" && break
36684 done
36685 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036686 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036687
36688
36689} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036690if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036691 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036692else
36693 test -d ./-p && rmdir ./-p
36694 as_mkdir_p=false
36695fi
36696
cristy14fefe52012-05-21 00:59:18 +000036697
36698# as_fn_executable_p FILE
36699# -----------------------
36700# Test if FILE is an executable regular file.
36701as_fn_executable_p ()
36702{
36703 test -f "$1" && test -x "$1"
36704} # as_fn_executable_p
36705as_test_x='test -x'
36706as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036707
36708# Sed expression to map a string onto a valid CPP name.
36709as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36710
36711# Sed expression to map a string onto a valid variable name.
36712as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36713
36714
36715exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036716## ----------------------------------- ##
36717## Main body of $CONFIG_STATUS script. ##
36718## ----------------------------------- ##
36719_ASEOF
36720test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036721
cristy8b350f62009-11-15 23:12:43 +000036722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36723# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036724# report actual input values of CONFIG_FILES etc. instead of their
36725# values after options handling.
36726ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036727This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036728generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036729
36730 CONFIG_FILES = $CONFIG_FILES
36731 CONFIG_HEADERS = $CONFIG_HEADERS
36732 CONFIG_LINKS = $CONFIG_LINKS
36733 CONFIG_COMMANDS = $CONFIG_COMMANDS
36734 $ $0 $@
36735
36736on `(hostname || uname -n) 2>/dev/null | sed 1q`
36737"
36738
36739_ACEOF
36740
36741case $ac_config_files in *"
36742"*) set x $ac_config_files; shift; ac_config_files=$*;;
36743esac
36744
36745case $ac_config_headers in *"
36746"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36747esac
36748
36749
36750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36751# Files that config.status was made for.
36752config_files="$ac_config_files"
36753config_headers="$ac_config_headers"
36754config_commands="$ac_config_commands"
36755
36756_ACEOF
36757
36758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36759ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036760\`$as_me' instantiates files and other configuration actions
36761from templates according to the current configuration. Unless the files
36762and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036763
cristy8b350f62009-11-15 23:12:43 +000036764Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036765
36766 -h, --help print this help, then exit
36767 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036768 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036769 -q, --quiet, --silent
36770 do not print progress messages
36771 -d, --debug don't remove temporary files
36772 --recheck update $as_me by reconfiguring in the same conditions
36773 --file=FILE[:TEMPLATE]
36774 instantiate the configuration file FILE
36775 --header=FILE[:TEMPLATE]
36776 instantiate the configuration header FILE
36777
36778Configuration files:
36779$config_files
36780
36781Configuration headers:
36782$config_headers
36783
36784Configuration commands:
36785$config_commands
36786
cristy8b350f62009-11-15 23:12:43 +000036787Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036788
36789_ACEOF
36790cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036791ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036792ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036793ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036794configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036795 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036796
cristy14fefe52012-05-21 00:59:18 +000036797Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036798This config.status script is free software; the Free Software Foundation
36799gives unlimited permission to copy, distribute and modify it."
36800
36801ac_pwd='$ac_pwd'
36802srcdir='$srcdir'
36803INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036804MKDIR_P='$MKDIR_P'
36805AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036806test -n "\$AWK" || AWK=awk
36807_ACEOF
36808
36809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36810# The default lists apply if the user does not specify any file.
36811ac_need_defaults=:
36812while test $# != 0
36813do
36814 case $1 in
cristyda16f162011-02-19 23:52:17 +000036815 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036816 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36817 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36818 ac_shift=:
36819 ;;
cristyda16f162011-02-19 23:52:17 +000036820 --*=)
36821 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36822 ac_optarg=
36823 ac_shift=:
36824 ;;
cristy3ed852e2009-09-05 21:47:34 +000036825 *)
36826 ac_option=$1
36827 ac_optarg=$2
36828 ac_shift=shift
36829 ;;
36830 esac
36831
36832 case $ac_option in
36833 # Handling of the options.
36834 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36835 ac_cs_recheck=: ;;
36836 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36837 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036838 --config | --confi | --conf | --con | --co | --c )
36839 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036840 --debug | --debu | --deb | --de | --d | -d )
36841 debug=: ;;
36842 --file | --fil | --fi | --f )
36843 $ac_shift
36844 case $ac_optarg in
36845 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036846 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036847 esac
cristy8b350f62009-11-15 23:12:43 +000036848 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036849 ac_need_defaults=false;;
36850 --header | --heade | --head | --hea )
36851 $ac_shift
36852 case $ac_optarg in
36853 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36854 esac
cristy8b350f62009-11-15 23:12:43 +000036855 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036856 ac_need_defaults=false;;
36857 --he | --h)
36858 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036859 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036860Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036861 --help | --hel | -h )
36862 $as_echo "$ac_cs_usage"; exit ;;
36863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36864 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36865 ac_cs_silent=: ;;
36866
36867 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036868 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036869Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036870
cristy8b350f62009-11-15 23:12:43 +000036871 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036872 ac_need_defaults=false ;;
36873
36874 esac
36875 shift
36876done
36877
36878ac_configure_extra_args=
36879
36880if $ac_cs_silent; then
36881 exec 6>/dev/null
36882 ac_configure_extra_args="$ac_configure_extra_args --silent"
36883fi
36884
36885_ACEOF
36886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36887if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036888 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036889 shift
36890 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36891 CONFIG_SHELL='$SHELL'
36892 export CONFIG_SHELL
36893 exec "\$@"
36894fi
36895
36896_ACEOF
36897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36898exec 5>>config.log
36899{
36900 echo
36901 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36902## Running $as_me. ##
36903_ASBOX
36904 $as_echo "$ac_log"
36905} >&5
36906
36907_ACEOF
36908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036909#
36910# INIT-COMMANDS
36911#
36912PACKAGE="$PACKAGE"
36913AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36914
36915
36916# The HP-UX ksh and POSIX shell print the target directory to stdout
36917# if CDPATH is set.
36918(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36919
36920sed_quote_subst='$sed_quote_subst'
36921double_quote_subst='$double_quote_subst'
36922delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036923SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36924Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36925GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36926EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36927FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36928SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36929ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36930LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36931macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36932macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36933AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36934DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36935OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36936enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36937enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36938pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36939enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036940PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036941host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36942host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36943host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36944build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36945build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36946build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36947NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36948LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36949max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36950ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36951exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36952lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36953lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36954lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036955lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36956lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036957reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36958reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36959deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36960file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036961file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36962want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36963sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036964AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36965AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036966archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036967STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36968RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36969old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36970old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36971old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36972lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36973CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36974CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36975compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36976GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36977lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36978lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36979lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36980lt_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 +000036981nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36982lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036983objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36984MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36985lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036986lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036987lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036988lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36989lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36990need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036991MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036992DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36993NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36994LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36995OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36996OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36997libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36998shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36999extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37000archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37001enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37002export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37003whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37004compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37005old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37006old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37007archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37008archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37009module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37010module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37011with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37012allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37013no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37014hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037015hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37016hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37017hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37018hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37019hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37020hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37021inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37022link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037023always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37024export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37025exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37026include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37027prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037028postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037029file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37030variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37031need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37032need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37033version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37034runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37035shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37036shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37037libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37038library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37039soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37040install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37041postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37042postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37043finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37044finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37045hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37046sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37047sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37048hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37049enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37050enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37051enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37052old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37053striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37054compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37055predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37056postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37057predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37058postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37059compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37060LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37061reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37062reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37063old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37064compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37065GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37066lt_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 +000037067lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037068lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037069lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37070lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37071archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37072enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37073export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37074whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37075compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37076old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37077old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37078archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37079archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37080module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37081module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37082with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37083allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37084no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37085hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037086hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37087hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37088hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37089hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37090hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37091hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37092inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37093link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037094always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37095export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37096exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37097include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37098prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037099postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037100file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37101hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37102compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37103predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37104postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37105predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37106postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37107compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037108
37109LTCC='$LTCC'
37110LTCFLAGS='$LTCFLAGS'
37111compiler='$compiler_DEFAULT'
37112
cristy0c60a692010-11-04 01:09:47 +000037113# A function that is used when there is no print builtin or printf.
37114func_fallback_echo ()
37115{
37116 eval 'cat <<_LTECHO_EOF
37117\$1
37118_LTECHO_EOF'
37119}
37120
cristy73bd4a52010-10-05 11:24:23 +000037121# Quote evaled strings.
37122for var in SED \
37123GREP \
37124EGREP \
37125FGREP \
cristy0c60a692010-11-04 01:09:47 +000037126SHELL \
37127ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037128LD \
cristy0c60a692010-11-04 01:09:47 +000037129AS \
37130DLLTOOL \
37131OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037132PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037133NM \
37134LN_S \
37135lt_SP2NL \
37136lt_NL2SP \
37137reload_flag \
37138deplibs_check_method \
37139file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037140file_magic_glob \
37141want_nocaseglob \
37142sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037143AR \
37144AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037145archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037146STRIP \
37147RANLIB \
37148CC \
37149CFLAGS \
37150compiler \
37151lt_cv_sys_global_symbol_pipe \
37152lt_cv_sys_global_symbol_to_cdecl \
37153lt_cv_sys_global_symbol_to_c_name_address \
37154lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037155nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037156lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037157lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037158lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037159lt_prog_compiler_static \
37160lt_cv_prog_compiler_c_o \
37161need_locks \
cristyda16f162011-02-19 23:52:17 +000037162MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037163DSYMUTIL \
37164NMEDIT \
37165LIPO \
37166OTOOL \
37167OTOOL64 \
37168shrext_cmds \
37169export_dynamic_flag_spec \
37170whole_archive_flag_spec \
37171compiler_needs_object \
37172with_gnu_ld \
37173allow_undefined_flag \
37174no_undefined_flag \
37175hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037176hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037177exclude_expsyms \
37178include_expsyms \
37179file_list_spec \
37180variables_saved_for_relink \
37181libname_spec \
37182library_names_spec \
37183soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037184install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037185finish_eval \
37186old_striplib \
37187striplib \
37188compiler_lib_search_dirs \
37189predep_objects \
37190postdep_objects \
37191predeps \
37192postdeps \
37193compiler_lib_search_path \
37194LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037195reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037196compiler_CXX \
37197lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037198lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037199lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037200lt_prog_compiler_static_CXX \
37201lt_cv_prog_compiler_c_o_CXX \
37202export_dynamic_flag_spec_CXX \
37203whole_archive_flag_spec_CXX \
37204compiler_needs_object_CXX \
37205with_gnu_ld_CXX \
37206allow_undefined_flag_CXX \
37207no_undefined_flag_CXX \
37208hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037209hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037210exclude_expsyms_CXX \
37211include_expsyms_CXX \
37212file_list_spec_CXX \
37213compiler_lib_search_dirs_CXX \
37214predep_objects_CXX \
37215postdep_objects_CXX \
37216predeps_CXX \
37217postdeps_CXX \
37218compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037219 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037220 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037221 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037222 ;;
37223 *)
37224 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37225 ;;
37226 esac
37227done
37228
37229# Double-quote double-evaled strings.
37230for var in reload_cmds \
37231old_postinstall_cmds \
37232old_postuninstall_cmds \
37233old_archive_cmds \
37234extract_expsyms_cmds \
37235old_archive_from_new_cmds \
37236old_archive_from_expsyms_cmds \
37237archive_cmds \
37238archive_expsym_cmds \
37239module_cmds \
37240module_expsym_cmds \
37241export_symbols_cmds \
37242prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037243postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037244postinstall_cmds \
37245postuninstall_cmds \
37246finish_cmds \
37247sys_lib_search_path_spec \
37248sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037249reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037250old_archive_cmds_CXX \
37251old_archive_from_new_cmds_CXX \
37252old_archive_from_expsyms_cmds_CXX \
37253archive_cmds_CXX \
37254archive_expsym_cmds_CXX \
37255module_cmds_CXX \
37256module_expsym_cmds_CXX \
37257export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037258prelink_cmds_CXX \
37259postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037260 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037261 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037262 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037263 ;;
37264 *)
37265 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37266 ;;
37267 esac
37268done
37269
cristy73bd4a52010-10-05 11:24:23 +000037270ac_aux_dir='$ac_aux_dir'
37271xsi_shell='$xsi_shell'
37272lt_shell_append='$lt_shell_append'
37273
37274# See if we are running on zsh, and set the options which allow our
37275# commands through without removal of \ escapes INIT.
37276if test -n "\${ZSH_VERSION+set}" ; then
37277 setopt NO_GLOB_SUBST
37278fi
37279
37280
37281 PACKAGE='$PACKAGE'
37282 VERSION='$VERSION'
37283 TIMESTAMP='$TIMESTAMP'
37284 RM='$RM'
37285 ofile='$ofile'
37286
37287
37288
37289
37290
37291
cristy3ed852e2009-09-05 21:47:34 +000037292_ACEOF
37293
37294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37295
37296# Handling of arguments.
37297for ac_config_target in $ac_config_targets
37298do
37299 case $ac_config_target in
37300 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037301 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037302 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037303 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37304 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37305 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37306 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37307 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037308 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037309 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037310 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37311 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37312 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37313 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37314 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037315 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037316 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037317 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37318 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37319 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037320 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37321 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037322 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037323 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037324 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037325 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037326 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37327 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37328 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37329 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037330 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37331 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37332 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37333 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37334 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37335 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37336 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37337 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37338 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37339 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37340 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37341 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037342 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37343 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037344 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37345 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037346 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037347 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037348 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037349 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037350 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37351 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37352
cristy98dddb52010-11-04 00:30:15 +000037353 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037354 esac
37355done
37356
37357
37358# If the user did not use the arguments to specify the items to instantiate,
37359# then the envvar interface is used. Set only those that are not.
37360# We use the long form for the default assignment because of an extremely
37361# bizarre bug on SunOS 4.1.3.
37362if $ac_need_defaults; then
37363 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37364 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37365 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37366fi
37367
37368# Have a temporary directory for convenience. Make it in the build tree
37369# simply because there is no reason against having it here, and in addition,
37370# creating and moving files from /tmp can sometimes cause problems.
37371# Hook for its removal unless debugging.
37372# Note that there is a small window in which the directory will not be cleaned:
37373# after its creation but before its name has been assigned to `$tmp'.
37374$debug ||
37375{
cristyda16f162011-02-19 23:52:17 +000037376 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037377 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037378 : "${ac_tmp:=$tmp}"
37379 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037380' 0
cristy8b350f62009-11-15 23:12:43 +000037381 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037382}
37383# Create a (secure) tmp directory for tmp files.
37384
37385{
37386 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037387 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037388} ||
37389{
37390 tmp=./conf$$-$RANDOM
37391 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037392} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037393ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037394
37395# Set up the scripts for CONFIG_FILES section.
37396# No need to generate them if there are no CONFIG_FILES.
37397# This happens for instance with `./config.status config.h'.
37398if test -n "$CONFIG_FILES"; then
37399
37400
cristy8b350f62009-11-15 23:12:43 +000037401ac_cr=`echo X | tr X '\015'`
37402# On cygwin, bash can eat \r inside `` if the user requested igncr.
37403# But we know of no other shell where ac_cr would be empty at this
37404# point, so we can use a bashism as a fallback.
37405if test "x$ac_cr" = x; then
37406 eval ac_cr=\$\'\\r\'
37407fi
cristy3ed852e2009-09-05 21:47:34 +000037408ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37409if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037410 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037411else
37412 ac_cs_awk_cr=$ac_cr
37413fi
37414
cristyda16f162011-02-19 23:52:17 +000037415echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037416_ACEOF
37417
37418
37419{
37420 echo "cat >conf$$subs.awk <<_ACEOF" &&
37421 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37422 echo "_ACEOF"
37423} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037424 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37425ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037426ac_delim='%!_!# '
37427for ac_last_try in false false false false false :; do
37428 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037429 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037430
37431 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37432 if test $ac_delim_n = $ac_delim_num; then
37433 break
37434 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037435 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037436 else
37437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37438 fi
37439done
37440rm -f conf$$subs.sh
37441
37442cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037443cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037444_ACEOF
37445sed -n '
37446h
37447s/^/S["/; s/!.*/"]=/
37448p
37449g
37450s/^[^!]*!//
37451:repl
37452t repl
37453s/'"$ac_delim"'$//
37454t delim
37455:nl
37456h
cristycd4c5312009-11-22 01:19:08 +000037457s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037458t more1
37459s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37460p
37461n
37462b repl
37463:more1
37464s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37465p
37466g
37467s/.\{148\}//
37468t nl
37469:delim
37470h
cristycd4c5312009-11-22 01:19:08 +000037471s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037472t more2
37473s/["\\]/\\&/g; s/^/"/; s/$/"/
37474p
37475b
37476:more2
37477s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37478p
37479g
37480s/.\{148\}//
37481t delim
37482' <conf$$subs.awk | sed '
37483/^[^""]/{
37484 N
37485 s/\n//
37486}
37487' >>$CONFIG_STATUS || ac_write_fail=1
37488rm -f conf$$subs.awk
37489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37490_ACAWK
cristyda16f162011-02-19 23:52:17 +000037491cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037492 for (key in S) S_is_set[key] = 1
37493 FS = ""
37494
37495}
37496{
37497 line = $ 0
37498 nfields = split(line, field, "@")
37499 substed = 0
37500 len = length(field[1])
37501 for (i = 2; i < nfields; i++) {
37502 key = field[i]
37503 keylen = length(key)
37504 if (S_is_set[key]) {
37505 value = S[key]
37506 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37507 len += length(value) + length(field[++i])
37508 substed = 1
37509 } else
37510 len += 1 + keylen
37511 }
37512
37513 print line
37514}
37515
37516_ACAWK
37517_ACEOF
37518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37519if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37520 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37521else
37522 cat
cristyda16f162011-02-19 23:52:17 +000037523fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037524 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037525_ACEOF
37526
cristy98dddb52010-11-04 00:30:15 +000037527# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37528# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037529# trailing colons and then remove the whole line if VPATH becomes empty
37530# (actually we leave an empty line to preserve line numbers).
37531if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037532 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37533h
37534s///
37535s/^/:/
37536s/[ ]*$/:/
37537s/:\$(srcdir):/:/g
37538s/:\${srcdir}:/:/g
37539s/:@srcdir@:/:/g
37540s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037541s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037542x
37543s/\(=[ ]*\).*/\1/
37544G
37545s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037546s/^[^=]*=[ ]*$//
37547}'
37548fi
37549
37550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37551fi # test -n "$CONFIG_FILES"
37552
37553# Set up the scripts for CONFIG_HEADERS section.
37554# No need to generate them if there are no CONFIG_HEADERS.
37555# This happens for instance with `./config.status Makefile'.
37556if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037557cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037558BEGIN {
37559_ACEOF
37560
37561# Transform confdefs.h into an awk script `defines.awk', embedded as
37562# here-document in config.status, that substitutes the proper values into
37563# config.h.in to produce config.h.
37564
37565# Create a delimiter string that does not exist in confdefs.h, to ease
37566# handling of long lines.
37567ac_delim='%!_!# '
37568for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037569 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37570 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037571 break
37572 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037573 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037574 else
37575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37576 fi
37577done
37578
37579# For the awk script, D is an array of macro values keyed by name,
37580# likewise P contains macro parameters if any. Preserve backslash
37581# newline sequences.
37582
37583ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37584sed -n '
37585s/.\{148\}/&'"$ac_delim"'/g
37586t rset
37587:rset
37588s/^[ ]*#[ ]*define[ ][ ]*/ /
37589t def
37590d
37591:def
37592s/\\$//
37593t bsnl
37594s/["\\]/\\&/g
37595s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37596D["\1"]=" \3"/p
37597s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37598d
37599:bsnl
37600s/["\\]/\\&/g
37601s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37602D["\1"]=" \3\\\\\\n"\\/p
37603t cont
37604s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37605t cont
37606d
37607:cont
37608n
37609s/.\{148\}/&'"$ac_delim"'/g
37610t clear
37611:clear
37612s/\\$//
37613t bsnlc
37614s/["\\]/\\&/g; s/^/"/; s/$/"/p
37615d
37616:bsnlc
37617s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37618b cont
37619' <confdefs.h | sed '
37620s/'"$ac_delim"'/"\\\
37621"/g' >>$CONFIG_STATUS || ac_write_fail=1
37622
37623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37624 for (key in D) D_is_set[key] = 1
37625 FS = ""
37626}
37627/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37628 line = \$ 0
37629 split(line, arg, " ")
37630 if (arg[1] == "#") {
37631 defundef = arg[2]
37632 mac1 = arg[3]
37633 } else {
37634 defundef = substr(arg[1], 2)
37635 mac1 = arg[2]
37636 }
37637 split(mac1, mac2, "(") #)
37638 macro = mac2[1]
37639 prefix = substr(line, 1, index(line, defundef) - 1)
37640 if (D_is_set[macro]) {
37641 # Preserve the white space surrounding the "#".
37642 print prefix "define", macro P[macro] D[macro]
37643 next
37644 } else {
37645 # Replace #undef with comments. This is necessary, for example,
37646 # in the case of _POSIX_SOURCE, which is predefined and required
37647 # on some systems where configure will not decide to define it.
37648 if (defundef == "undef") {
37649 print "/*", prefix defundef, macro, "*/"
37650 next
37651 }
37652 }
37653}
37654{ print }
37655_ACAWK
37656_ACEOF
37657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037658 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037659fi # test -n "$CONFIG_HEADERS"
37660
37661
37662eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37663shift
37664for ac_tag
37665do
37666 case $ac_tag in
37667 :[FHLC]) ac_mode=$ac_tag; continue;;
37668 esac
37669 case $ac_mode$ac_tag in
37670 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037671 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037672 :[FH]-) ac_tag=-:-;;
37673 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37674 esac
37675 ac_save_IFS=$IFS
37676 IFS=:
37677 set x $ac_tag
37678 IFS=$ac_save_IFS
37679 shift
37680 ac_file=$1
37681 shift
37682
37683 case $ac_mode in
37684 :L) ac_source=$1;;
37685 :[FH])
37686 ac_file_inputs=
37687 for ac_f
37688 do
37689 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037690 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037691 *) # Look for the file first in the build tree, then in the source tree
37692 # (if the path is not absolute). The absolute path cannot be DOS-style,
37693 # because $ac_f cannot contain `:'.
37694 test -f "$ac_f" ||
37695 case $ac_f in
37696 [\\/$]*) false;;
37697 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37698 esac ||
cristy98dddb52010-11-04 00:30:15 +000037699 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037700 esac
37701 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037702 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037703 done
37704
37705 # Let's still pretend it is `configure' which instantiates (i.e., don't
37706 # use $as_me), people would be surprised to read:
37707 # /* config.h. Generated by config.status. */
37708 configure_input='Generated from '`
37709 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37710 `' by configure.'
37711 if test x"$ac_file" != x-; then
37712 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037713 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037714$as_echo "$as_me: creating $ac_file" >&6;}
37715 fi
37716 # Neutralize special characters interpreted by sed in replacement strings.
37717 case $configure_input in #(
37718 *\&* | *\|* | *\\* )
37719 ac_sed_conf_input=`$as_echo "$configure_input" |
37720 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37721 *) ac_sed_conf_input=$configure_input;;
37722 esac
37723
37724 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037725 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037726 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037727 esac
37728 ;;
37729 esac
37730
37731 ac_dir=`$as_dirname -- "$ac_file" ||
37732$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37733 X"$ac_file" : 'X\(//\)[^/]' \| \
37734 X"$ac_file" : 'X\(//\)$' \| \
37735 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37736$as_echo X"$ac_file" |
37737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37738 s//\1/
37739 q
37740 }
37741 /^X\(\/\/\)[^/].*/{
37742 s//\1/
37743 q
37744 }
37745 /^X\(\/\/\)$/{
37746 s//\1/
37747 q
37748 }
37749 /^X\(\/\).*/{
37750 s//\1/
37751 q
37752 }
37753 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037754 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037755 ac_builddir=.
37756
37757case "$ac_dir" in
37758.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37759*)
37760 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37761 # A ".." for each directory in $ac_dir_suffix.
37762 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37763 case $ac_top_builddir_sub in
37764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37766 esac ;;
37767esac
37768ac_abs_top_builddir=$ac_pwd
37769ac_abs_builddir=$ac_pwd$ac_dir_suffix
37770# for backward compatibility:
37771ac_top_builddir=$ac_top_build_prefix
37772
37773case $srcdir in
37774 .) # We are building in place.
37775 ac_srcdir=.
37776 ac_top_srcdir=$ac_top_builddir_sub
37777 ac_abs_top_srcdir=$ac_pwd ;;
37778 [\\/]* | ?:[\\/]* ) # Absolute name.
37779 ac_srcdir=$srcdir$ac_dir_suffix;
37780 ac_top_srcdir=$srcdir
37781 ac_abs_top_srcdir=$srcdir ;;
37782 *) # Relative name.
37783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37784 ac_top_srcdir=$ac_top_build_prefix$srcdir
37785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37786esac
37787ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37788
37789
37790 case $ac_mode in
37791 :F)
37792 #
37793 # CONFIG_FILE
37794 #
37795
37796 case $INSTALL in
37797 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37798 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37799 esac
cristy73bd4a52010-10-05 11:24:23 +000037800 ac_MKDIR_P=$MKDIR_P
37801 case $MKDIR_P in
37802 [\\/$]* | ?:[\\/]* ) ;;
37803 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37804 esac
cristy3ed852e2009-09-05 21:47:34 +000037805_ACEOF
37806
37807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37808# If the template does not know about datarootdir, expand it.
37809# FIXME: This hack should be removed a few years after 2.60.
37810ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037811ac_sed_dataroot='
37812/datarootdir/ {
37813 p
37814 q
37815}
37816/@datadir@/p
37817/@docdir@/p
37818/@infodir@/p
37819/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037820/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037821case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37822*datarootdir*) ac_datarootdir_seen=yes;;
37823*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037825$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37826_ACEOF
37827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37828 ac_datarootdir_hack='
37829 s&@datadir@&$datadir&g
37830 s&@docdir@&$docdir&g
37831 s&@infodir@&$infodir&g
37832 s&@localedir@&$localedir&g
37833 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037834 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037835esac
37836_ACEOF
37837
37838# Neutralize VPATH when `$srcdir' = `.'.
37839# Shell code in configure.ac might set extrasub.
37840# FIXME: do we really want to maintain this feature?
37841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37842ac_sed_extra="$ac_vpsub
37843$extrasub
37844_ACEOF
37845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37846:t
37847/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37848s|@configure_input@|$ac_sed_conf_input|;t t
37849s&@top_builddir@&$ac_top_builddir_sub&;t t
37850s&@top_build_prefix@&$ac_top_build_prefix&;t t
37851s&@srcdir@&$ac_srcdir&;t t
37852s&@abs_srcdir@&$ac_abs_srcdir&;t t
37853s&@top_srcdir@&$ac_top_srcdir&;t t
37854s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37855s&@builddir@&$ac_builddir&;t t
37856s&@abs_builddir@&$ac_abs_builddir&;t t
37857s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37858s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037859s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037860$ac_datarootdir_hack
37861"
cristyda16f162011-02-19 23:52:17 +000037862eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37863 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037864
37865test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037866 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37867 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37868 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037870which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037871$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037872which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037873
cristyda16f162011-02-19 23:52:17 +000037874 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037875 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037876 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37877 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037878 esac \
cristy98dddb52010-11-04 00:30:15 +000037879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037880 ;;
37881 :H)
37882 #
37883 # CONFIG_HEADER
37884 #
37885 if test x"$ac_file" != x-; then
37886 {
37887 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037888 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37889 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037891 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037892 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037893$as_echo "$as_me: $ac_file is unchanged" >&6;}
37894 else
37895 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037896 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037898 fi
37899 else
37900 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037901 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037902 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037903 fi
cristy73bd4a52010-10-05 11:24:23 +000037904# Compute "$ac_file"'s index in $config_headers.
37905_am_arg="$ac_file"
37906_am_stamp_count=1
37907for _am_header in $config_headers :; do
37908 case $_am_header in
37909 $_am_arg | $_am_arg:* )
37910 break ;;
37911 * )
37912 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37913 esac
37914done
37915echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37916$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37917 X"$_am_arg" : 'X\(//\)[^/]' \| \
37918 X"$_am_arg" : 'X\(//\)$' \| \
37919 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37920$as_echo X"$_am_arg" |
37921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37922 s//\1/
37923 q
37924 }
37925 /^X\(\/\/\)[^/].*/{
37926 s//\1/
37927 q
37928 }
37929 /^X\(\/\/\)$/{
37930 s//\1/
37931 q
37932 }
37933 /^X\(\/\).*/{
37934 s//\1/
37935 q
37936 }
37937 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037938 ;;
37939
cristy8b350f62009-11-15 23:12:43 +000037940 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037941$as_echo "$as_me: executing $ac_file commands" >&6;}
37942 ;;
37943 esac
37944
37945
37946 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037947 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037948ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37949ac_prefix_conf_PKG=`echo MagickCore`
37950ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37951ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37952ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37953if test ".$ac_prefix_conf_INP" = "."; then
37954 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37955 case "$ac_file" in
37956 *.h) ac_prefix_conf_INP=$ac_file ;;
37957 *)
37958 esac
37959 test ".$ac_prefix_conf_INP" != "." && break
37960 done
37961fi
37962if test ".$ac_prefix_conf_INP" = "."; then
37963 case "$ac_prefix_conf_OUT" in
37964 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37965 ;;
37966 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37967 ;;
37968 *) ac_prefix_conf_INP=config.h
37969 ;;
37970 esac
37971fi
37972if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037973 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037974else
37975 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37976 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37977 fi fi
37978 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37979$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37980 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037981 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37982 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37983 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37984 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37985 $as_echo "#endif/" >> conftest.prefix
37986 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37987 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37988 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037989 # now executing _script on _DEF input to create _OUT output file
37990 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37991 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37992 echo ' ' >>$tmp/pconfig.h
37993 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37994
37995 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37996 echo ' ' >>$tmp/pconfig.h
37997 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37998 echo "#endif" >>$tmp/pconfig.h
37999 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38000 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38001$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38002 else
38003 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38004$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38005 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38006 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38007 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38008$as_echo X"$ac_prefix_conf_OUT" |
38009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38010 s//\1/
38011 q
38012 }
38013 /^X\(\/\/\)[^/].*/{
38014 s//\1/
38015 q
38016 }
38017 /^X\(\/\/\)$/{
38018 s//\1/
38019 q
38020 }
38021 /^X\(\/\).*/{
38022 s//\1/
38023 q
38024 }
38025 s/.*/./; q'`
38026 as_dir="$ac_dir"; as_fn_mkdir_p
38027 rm -f "$ac_prefix_conf_OUT"
38028 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38029 fi
cristy73bd4a52010-10-05 11:24:23 +000038030 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
39033OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039034PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039035PERL --with-perl=$with_perl $have_perl
39036PNG --with-png=$with_png $have_png
39037RSVG --with-rsvg=$with_rsvg $have_rsvg
39038TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039039WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039040Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039041WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039042X11 --with-x=$with_x $have_x
39043XML --with-xml=$with_xml $have_xml
39044ZLIB --with-zlib=$with_zlib $have_zlib
39045
39046X11 Configuration:
39047 X_CFLAGS = $X_CFLAGS
39048 X_PRE_LIBS = $X_PRE_LIBS
39049 X_LIBS = $X_LIBS
39050 X_EXTRA_LIBS = $X_EXTRA_LIBS
39051
39052Options used to compile and link:
39053 PREFIX = $PREFIX_DIR
39054 EXEC-PREFIX = $EXEC_PREFIX_DIR
39055 VERSION = $PACKAGE_VERSION
39056 CC = $CC
39057 CFLAGS = $CFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039058 CPPFLAGS = $CPPFLAGS
39059 PCFLAGS = $PCFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039060 DEFS = $DEFS
39061 LDFLAGS = $LDFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039062 LIBS = $LIBS
cristy3ed852e2009-09-05 21:47:34 +000039063 CXX = $CXX
39064 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039065 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039066 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000039067" >&5
cristyad38abe2012-12-23 23:03:21 +000039068$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000039069ImageMagick is configured as follows. Please verify that this configuration
39070matches your expectations.
39071
39072Host system type: $host
39073Build system type: $build
39074
39075 Option Value
39076-------------------------------------------------------------------------------
39077Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39078Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039079Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039080GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39081Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39082High Dynamic Range Imagery
39083 --enable-hdri=$enable_hdri $enable_hdri
39084
39085Delegate Configuration:
39086BZLIB --with-bzlib=$with_bzlib $have_bzlib
39087Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039088Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039089DJVU --with-djvu=$with_djvu $have_djvu
39090DPS --with-dps=$with_dps $have_dps
39091FFTW --with-fftw=$with_fftw $have_fftw
39092FlashPIX --with-fpx=$with_fpx $have_fpx
39093FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39094FreeType --with-freetype=$with_freetype $have_freetype
39095GhostPCL None $PCLDelegate ($PCLVersion)
39096GhostXPS None $XPSDelegate ($XPSVersion)
39097Ghostscript None $PSDelegate ($GSVersion)
39098Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39099Ghostscript lib --with-gslib=$with_gslib $have_gslib
39100Graphviz --with-gvc=$with_gvc $have_gvc
39101JBIG --with-jbig=$with_jbig $have_jbig
39102JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39103JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039104LCMS v1 --with-lcms=$with_lcms $have_lcms
39105LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039106LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039107LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039108LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039109LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039110Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39111OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039112PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039113PERL --with-perl=$with_perl $have_perl
39114PNG --with-png=$with_png $have_png
39115RSVG --with-rsvg=$with_rsvg $have_rsvg
39116TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039117WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039118Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039119WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039120X11 --with-x=$with_x $have_x
39121XML --with-xml=$with_xml $have_xml
39122ZLIB --with-zlib=$with_zlib $have_zlib
39123
39124X11 Configuration:
39125 X_CFLAGS = $X_CFLAGS
39126 X_PRE_LIBS = $X_PRE_LIBS
39127 X_LIBS = $X_LIBS
39128 X_EXTRA_LIBS = $X_EXTRA_LIBS
39129
39130Options used to compile and link:
39131 PREFIX = $PREFIX_DIR
39132 EXEC-PREFIX = $EXEC_PREFIX_DIR
39133 VERSION = $PACKAGE_VERSION
39134 CC = $CC
39135 CFLAGS = $CFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039136 CPPFLAGS = $CPPFLAGS
39137 PCFLAGS = $PCFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039138 DEFS = $DEFS
39139 LDFLAGS = $LDFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039140 LIBS = $LIBS
cristy3ed852e2009-09-05 21:47:34 +000039141 CXX = $CXX
39142 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039143 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039144 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000039145" >&6; }